/* IvansMedia — ivansmedia.ae
   Сдержанная «продуктовая» эстетика: чистая типографика, светлые секции с плитками,
   тёмные акцентные экраны, золото — только как точечный акцент. */

:root {
  --bg: #fff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --dark-ink-2: #a1a1a6;
  --dark-line: #333336;
  --gold: #c9a66b;
  --gold-ink: #9a7440;

  --f-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --pad: clamp(22px, 4vw, 48px);
  --max: 1200px;
  --sec: clamp(96px, 12vw, 168px);
  --r-lg: clamp(22px, 2.4vw, 30px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header: 52px;

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 var(--f-text);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- типографика секций ---------- */
.kicker {
  font: 600 clamp(17px, 1.4vw, 21px)/1.2 var(--f-display);
  letter-spacing: -0.015em;
  color: var(--gold-ink);
  margin-bottom: 14px;
}
.h2 {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.mute { color: var(--ink-2); }
.head { margin-bottom: clamp(48px, 6vw, 80px); }
.head-center { text-align: center; }
.head-center .h2 { margin-inline: auto; }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px;
  border-radius: 980px;
  background: var(--ink); color: #fff;
  font: 500 17px/1 var(--f-text); letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { background: #3a3a3c; }
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8e8ed; }
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; background: #fff; color: var(--ink); }
.btn-sm:hover { background: #e8e8ed; }
.btn-lg { height: 58px; padding: 0 36px; font-size: 18px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 17px/1.3 var(--f-text); letter-spacing: -0.01em;
  color: var(--gold-ink);
}
.link svg { width: 14px; height: 14px; stroke-width: 2.2; transition: transform .3s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover svg { transform: translateX(3px); }

.ticks li { position: relative; padding-left: 28px; }
.ticks li + li { margin-top: 10px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08a52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  background: rgba(22, 22, 23, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #e8e8ed;
}
.header, .logo, .nav a, .burger span { transition: background-color .4s, color .4s; }
.header-light .header { background: rgba(251, 251, 253, .8); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.header-light .logo { color: var(--ink); }
.header-light .nav a { color: rgba(29, 29, 31, .72); }
.header-light .nav a:hover, .header-light .nav a.active { color: #000; }
.header-light .burger span { background: var(--ink); }
.header-light .header .btn-sm { background: var(--ink); color: #fff; }
.menu-open .header { background: #000; box-shadow: none; }
.menu-open .logo { color: #f5f5f7; }
.menu-open .burger span { background: #e8e8ed; }
.header-in {
  height: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.logo { font: 600 19px/1 var(--f-display); letter-spacing: -0.03em; color: #f5f5f7; margin-right: auto; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 36px); font-size: 13px; letter-spacing: -0.005em; }
.nav a { color: rgba(232, 232, 237, .8); transition: color .25s; }
.nav a:hover, .nav a.active { color: #fff; }
.burger { display: none; width: 40px; height: 40px; margin-right: -10px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #e8e8ed; border-radius: 2px; transition: transform .4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header) 0 0; z-index: 49;
  background: #000; color: #f5f5f7;
  padding: 24px var(--pad) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  animation: menuIn .45s var(--ease);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font: 600 30px/1.2 var(--f-display); letter-spacing: -0.03em;
  padding: 14px 0; border-bottom: 1px solid var(--dark-line);
}
.menu .btn { width: 100%; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  background: #000; color: #f5f5f7;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header) + 48px) 0 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 70% 50%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 65%),
    linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 32%);
}
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.hero-kicker { font: 600 clamp(15px, 1.3vw, 19px)/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--gold); margin-bottom: 18px; }
.hero-title {
  font-size: clamp(54px, 8vw, 116px);
  line-height: 1; letter-spacing: -0.035em;
  max-width: 9.5ch;
}
.hero-title .mute { display: block; color: rgba(245, 245, 247, .68); }
.hero-lead {
  max-width: 34ch; margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; letter-spacing: -0.015em;
  color: rgba(245, 245, 247, .78);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.hero .link { color: #f5f5f7; }
.hero-stats {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-top: 28px; padding-bottom: 36px;
}
.hero-stats::before { content: ''; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: rgba(255, 255, 255, .18); }
.hero-stats div + div { padding-left: 24px; }
.hero-stats dt { font: 600 clamp(22px, 2.2vw, 32px)/1.1 var(--f-display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.hero-stats dd { margin-top: 6px; font-size: 14px; line-height: 1.35; color: rgba(245, 245, 247, .72); }

/* ---------- бегущая строка ---------- */
.marquee {
  background: #000; color: #f5f5f7;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px) 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; will-change: transform; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span {
  font: 600 clamp(36px, 6vw, 84px)/1.1 var(--f-display); letter-spacing: -0.03em;
  white-space: nowrap; padding-right: .75em;
}
.marquee-group span:nth-child(2) { color: #6e6e73; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- манифест ---------- */
.intro { padding: var(--sec) 0; }
.intro-text {
  font: 600 clamp(28px, 3.7vw, 52px)/1.18 var(--f-display);
  letter-spacing: -0.022em;
  max-width: 24ch;
}

/* ---------- услуги ---------- */
.services { background: var(--bg-2); padding: var(--sec) 0; }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg);
}
.tile-text { padding: clamp(28px, 3.4vw, 48px) clamp(26px, 3.4vw, 48px) 32px; flex: 1; }
.tile-num { font: 600 14px/1 var(--f-display); color: var(--ink-3); margin-bottom: 18px; }
.tile-title { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -0.022em; max-width: 14ch; }
.tile-lead { margin-top: 12px; color: var(--ink-2); max-width: 36ch; }
.tile .ticks { margin-top: 24px; font-size: 16px; }
.tile-media { position: relative; height: clamp(260px, 26vw, 340px); overflow: hidden; }
.tile-media { background: var(--line-2); }
.tile-dark .tile-media { background: #000; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; color: transparent; }
.bento .tile:nth-child(1) .tile-media img { object-position: 50% 40%; }
.bento .tile:nth-child(3) .tile-media img { object-position: 50% 44%; }
.bento .tile:nth-child(4) .tile-media img { object-position: 50% 12%; }

.tile-dark { background: #000; color: #f5f5f7; }
.tile-dark .tile-num { color: #6e6e73; }
.tile-dark .tile-lead { color: var(--dark-ink-2); }
.tile-stat { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--dark-ink-2); font-size: 15px; }
.tile-stat b { font: 600 clamp(34px, 3.2vw, 44px)/1 var(--f-display); letter-spacing: -0.04em; color: var(--gold); }
.tile-media-globe img { object-position: 50% 45%; }
.tile-media-globe::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 40%);
}

/* ---------- аудитория ---------- */
.audience { background: #000; color: #f5f5f7; padding: var(--sec) 0 calc(var(--sec) * .8); text-align: center; overflow: hidden; }
.audience .kicker { color: var(--gold); }
.audience-num {
  font: 600 clamp(72px, 21vw, 280px)/.9 var(--f-display);
  white-space: nowrap;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 35%, #c9a66b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.audience-cap { max-width: 26ch; margin: 18px auto 0; font: 600 clamp(20px, 2vw, 28px)/1.25 var(--f-display); letter-spacing: -0.02em; color: var(--dark-ink-2); }
.audience-globe { width: min(920px, 100%); margin: clamp(8px, 2vw, 24px) auto 0; }
.audience-globe img {
  width: 100%;
  -webkit-mask: radial-gradient(60% 75% at 50% 45%, #000 45%, transparent 100%);
  mask: radial-gradient(60% 75% at 50% 45%, #000 45%, transparent 100%);
}
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(24px, 4vw, 56px); text-align: left; }
.feats li { border-top: 1px solid var(--dark-line); padding-top: 28px; }
.feats svg { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.5; margin-bottom: 18px; }
.feats h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.feats p { margin-top: 8px; font-size: 16px; color: var(--dark-ink-2); }

/* ---------- почему это работает ---------- */
.why { padding: var(--sec) 0; }
.why-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.why-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 5; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.why-list li { border-top: 1px solid var(--line); padding-top: 24px; }
.why-list span { display: block; font: 600 14px/1 var(--f-display); color: var(--gold-ink); margin-bottom: 20px; }
.why-list h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; }
.why-list p { margin-top: 10px; color: var(--ink-2); }

/* ---------- стоимость ---------- */
.price { background: var(--bg-2); padding: var(--sec) 0; }
.price-box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .75fr);
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
}
.price-main { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; }
.price-label { font-weight: 600; color: var(--ink-2); }
.price-sum { margin-top: 18px; font: 600 clamp(52px, 5.4vw, 76px)/1 var(--f-display); letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-per { margin-top: 8px; margin-bottom: 40px; color: var(--ink-2); }
.price-main .btn { margin-top: auto; }
.price-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-3); }
.price-side { padding: clamp(32px, 4vw, 56px); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; }
.price-side .ticks li + li { margin-top: 16px; }
.price-plus {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-2);
  font-size: 15px; color: var(--ink-2);
}
.price-plus span { flex: 1; padding-top: 5px; }
.price-plus b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.price-plus svg { flex: none; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--bg-2); color: var(--ink); stroke-width: 2; }
.price-media { position: relative; min-height: 100%; overflow: hidden; }
.price-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 60%; transform-origin: 74% 72%; transform: translateX(-6%) scale(1.6); }

/* ---------- шаги ---------- */
.process { padding: var(--sec) 0; }
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps::before, .steps::after {
  content: ''; position: absolute; top: 21px; left: 22px; right: 22px; height: 1px; background: var(--line);
}
.steps::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.steps li { position: relative; z-index: 1; }
.step-n {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  font: 600 16px/1 var(--f-display); color: var(--ink-2);
  transition: background-color .4s, color .4s, border-color .4s;
}
.steps li.on .step-n { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps h3 { margin-top: 28px; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.steps p { margin-top: 10px; font-size: 16px; color: var(--ink-2); max-width: 28ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); padding: var(--sec) 0; }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .head { margin: 0; position: sticky; top: calc(var(--header) + 40px); }
.faq-sub { margin: 20px 0 16px; color: var(--ink-2); max-width: 30ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--f-display); letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 16px; height: 16px; }
.faq-list summary i::before, .faq-list summary i::after {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--ink-2);
  transition: transform .4s var(--ease);
}
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-a p { padding-bottom: 28px; color: var(--ink-2); max-width: 58ch; }

/* ---------- финал ---------- */
.final {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  background: #000; color: #f5f5f7;
  display: flex; align-items: flex-start; text-align: center;
}
.final-frame {
  --cy: 0%; --cx: 0%; --cr: 0px;
  position: absolute; inset: 0;
  clip-path: inset(var(--cy) var(--cx) round var(--cr));
}
.final-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.final-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.75) 100%);
}
.final-inner { position: relative; padding-top: clamp(120px, 18vh, 200px); padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; }
.final .kicker { color: var(--gold); }
.final-title { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.04; letter-spacing: -0.032em; max-width: 13ch; }
.final-title .mute { color: rgba(245, 245, 247, .7); }
.final-lead { max-width: 40ch; margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; color: rgba(245, 245, 247, .8); }
.final-actions { margin-top: 36px; }
.final-perks { display: flex; justify-content: center; margin-top: 40px; font-size: 15px; color: rgba(245, 245, 247, .7); }
.final-perks li { padding: 0 24px; line-height: 1.2; }
.final-perks li + li { border-left: 1px solid rgba(255, 255, 255, .25); }

/* ---------- подвал ---------- */
.footer { background: var(--bg-2); color: var(--ink-2); font-size: 14px; padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; padding-bottom: 40px; }
.footer-logo { font: 600 21px/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 12px; }
.footer-text { max-width: 32ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; justify-content: start; }
.footer-nav a:hover { color: var(--ink); }
.footer .link { font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- плавающая кнопка (мобильные) ---------- */
.mobile-cta { display: none; }

/* ---------- модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fadeIn .35s; }
.modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px);
  animation: boxIn .5s var(--ease);
}
.modal-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); transition: background-color .25s; }
.modal-x:hover { background: var(--line-2); }
.modal-x svg { width: 18px; height: 18px; transform: rotate(45deg); stroke-width: 2; }
.modal-title { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.035em; padding-right: 40px; }
.modal-sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
#lead-form { margin-top: 26px; display: grid; gap: 12px; }
.chips { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 980px; border: 1px solid var(--line); font-size: 14px; transition: background-color .25s, color .25s, border-color .25s; }
.chips label:hover span { border-color: var(--ink-3); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 16px 8px; font: 400 17px/1.3 var(--f-text); color: var(--ink); background: #fff;
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field textarea { min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 29, 31, .08); }
.field span { position: absolute; left: 17px; top: 17px; font-size: 17px; color: var(--ink-3); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.72); }
.field .invalid { border-color: #d70015; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
.agree input { margin: 2px 0 0; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.agree a { text-decoration: underline; text-underline-offset: 2px; }
.form-msg { font-size: 14px; color: var(--ink-2); min-height: 1em; text-align: center; }
.form-msg.err { color: #d70015; }
.form-done { text-align: center; padding: 24px 0 8px; }
.form-done svg { width: 64px; height: 64px; color: var(--gold-ink); stroke-width: 2; margin: 0 auto 20px; }
.form-done circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .5s var(--ease) forwards; }
.form-done h3 { font-size: 28px; letter-spacing: -0.03em; }
.form-done p { margin: 8px 0 24px; color: var(--ink-2); }
.modal-open { overflow: hidden; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes boxIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- стартовые состояния анимаций (только если GSAP загрузился) ---------- */
.gsap [data-hero], .gsap [data-reveal], .gsap [data-fade], .gsap main .kicker,
.gsap .tile, .gsap .feats li, .gsap .why-list li, .gsap .why-media,
.gsap .price-box, .gsap .steps li, .gsap .faq-list details, .gsap .audience-num { opacity: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .price-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .price-media { display: none; }
  .why-grid { grid-template-columns: 5fr 7fr; }
  .why-list { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav, .header .btn-sm { display: none; }
  .burger { display: block; }
  .bento { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq .head { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .steps::before, .steps::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > .link { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --sec: 72px; }
  body { font-size: 16px; }
  .head { margin-bottom: 36px; }
  .hero { justify-content: flex-end; padding-top: calc(var(--header) + 24px); }
  .hero-media img { object-position: 60% 30%; }
  .hero-media::after {
    background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.88) 42%, rgba(0,0,0,.45) 66%, rgba(0,0,0,.1) 85%);
  }
  .hero-inner { flex: none; padding-bottom: 28px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
  .hero-stats { padding-top: 20px; padding-bottom: 28px; }
  .hero-stats div + div { padding-left: 14px; }
  .hero-stats dt { font-size: 20px; }
  .hero-stats dd { font-size: 13.5px; }

  .h2 { font-size: clamp(36px, 10vw, 48px); }
  .tile-title { font-size: 26px; }
  .tile .ticks { font-size: 15px; }
  .tile-media { height: 240px; }

  .feats { grid-template-columns: 1fr; gap: 0; }
  .feats li { padding: 24px 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
  .feats svg { grid-row: span 2; margin: 0; width: 28px; height: 28px; }
  .feats p { margin-top: 4px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-media { aspect-ratio: 4 / 3; }
  .why-media img { object-position: 50% 35%; }
  .why-list { gap: 28px; }

  .price-box { grid-template-columns: minmax(0, 1fr); }
  .price-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .price-per { margin-bottom: 28px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding-bottom: 36px; }
  .steps li::before { content: ''; position: absolute; left: 21.5px; top: 44px; bottom: 0; width: 1px; background: var(--line); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .step-n { grid-row: span 2; }
  .steps h3 { margin-top: 10px; font-size: 19px; }
  .steps p { margin-top: 6px; font-size: 15px; }

  .faq-list summary { padding: 22px 0; }

  .final { min-height: 0; }
  .final-inner { padding-top: 112px; padding-bottom: 120px; }
  .final-perks { flex-direction: column; gap: 0; margin-top: 32px; width: 100%; max-width: 300px; }
  .final-perks li { padding: 14px 0; }
  .final-perks li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }

  .footer { padding-top: 48px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer-top { grid-template-columns: 1fr; }

  .mobile-cta {
    display: inline-flex; position: fixed; z-index: 40;
    left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translate(-50%, 140%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .4s, background-color .3s, color .3s;
  }
  .past-hero .mobile-cta { transform: translate(-50%, 0); opacity: 1; }
  .cta-hidden .mobile-cta, .cta-reading .mobile-cta, .modal-open .mobile-cta, .menu-open .mobile-cta { transform: translate(-50%, 140%); opacity: 0; }
  .cta-on-dark .mobile-cta { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
}
