/* ============================================================
   Бюро Харитонова — лендинг
   Design system: light · trust · modern IT · orange accent
   ============================================================ */

:root {
  /* Paper / ink */
  --paper:    #FFFFFF;
  --paper-2:  #F6F4EF;   /* warm off-white section */
  --paper-3:  #EDE9E1;   /* deeper warm */
  --ink:      #15161B;   /* near-black */
  --ink-2:    #3B3E47;
  --muted:    #767A85;
  --line:     #E7E3DA;
  --line-2:   #D8D3C8;

  /* Accent (tweakable) */
  --accent:        #FF6B35;
  --accent-press:  #E5531F;
  --accent-tint:   #FFF1E9;
  --on-accent:     #FFFFFF;

  /* Dark band */
  --night:    #14151A;
  --night-2:  #1D1F26;
  --night-line: #2E313B;
  --night-muted: #9AA0AD;

  /* Type */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body:    "Golos Text", system-ui, sans-serif;

  /* Geometry */
  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(20,21,26,.04), 0 2px 8px rgba(20,21,26,.04);
  --shadow-md: 0 6px 24px rgba(20,21,26,.08), 0 2px 8px rgba(20,21,26,.05);
  --shadow-lg: 0 24px 60px rgba(20,21,26,.14), 0 8px 24px rgba(20,21,26,.08);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--paper2 { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.eyebrow--light { color: var(--accent); }

h2.h-section { font-size: clamp(30px, 3.6vw, 52px); }
.section-sub { margin-top: 22px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); max-width: 70ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  padding: 16px 26px; line-height: 1; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn--primary:hover { background: var(--accent-press); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 19px 32px; font-size: 18px; }
.btn--on-night { background: var(--accent); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 17px; position: relative; overflow: hidden;
}
.brand__mark::after { content:""; position:absolute; right:-6px; bottom:-6px; width:18px; height:18px; background: var(--accent); border-radius: 50%; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--muted); text-transform: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: 16px; color: var(--ink-2); font-weight: 500; transition: color .15s; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--accent); transition:width .2s; border-radius:2px; }
.nav a:hover::after { width:100%; }
.header__phone { font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.header__cta { font-size: 15px; padding: 12px 18px; }

/* Burger + mobile menu */
.header__call { display: none; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: var(--ink); color: #fff; }
.header__call:hover { background: var(--accent); }
.burger { display:none; flex: none; width: 44px; height: 44px; margin-left: -4px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; border-radius: 10px; }
.burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 18px var(--gutter) 24px; }
.mobile-menu.is-open { display: block; animation: mmIn .22s ease; }
@keyframes mmIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); padding: 14px 2px; border-bottom: 1px solid var(--line); }
.mobile-menu__foot { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.mobile-menu__phone svg { color: var(--accent); flex: none; }

/* ---------- HERO (shared) ---------- */
.hero { position: relative; overflow: hidden; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; flex: none; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 999px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex:none; }
.badge strong { color: var(--ink); font-weight: 700; }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero__sub { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 54ch; }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero__note { margin-top: 18px; font-size: 14.5px; color: var(--muted); display:flex; align-items:center; gap:8px; }
.hero__note svg { color: var(--accent); flex:none; }

.portrait { position: relative; }
.portrait image-slot { display:block; width:100%; }
.float-stat {
  position: absolute; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md);
  display:flex; flex-direction:column; gap:2px;
}
.float-stat b { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing:-.02em; line-height:1; }
.float-stat span { font-size: 13px; color: var(--muted); }

/* hide all hero variants by default, show selected */
.hero-variant { display: none; }
[data-hero="split"]     .hero-variant--split,
[data-hero="editorial"] .hero-variant--editorial,
[data-hero="bold"]      .hero-variant--bold { display: block; }

/* Variant A — Split */
.hero-variant--split .hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(36px, 4vw, 64px);
}
.hero-variant--split .portrait image-slot { width: 100%; height: auto; aspect-ratio: 4/5; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper-2); }
.hero-variant--split .float-stat { bottom: 26px; left: -22px; }
.hero-variant--split .float-stat.fs2 { top: 30px; right: -18px; bottom: auto; left: auto; }

/* Variant B — Editorial / centered */
.hero-variant--editorial { text-align: center; padding-top: clamp(48px, 6vw, 88px); }
.hero-variant--editorial .hero__badges { justify-content: center; }
.hero-variant--editorial h1 { max-width: 16ch; margin-inline: auto; font-size: clamp(40px, 6vw, 82px); }
.hero-variant--editorial .hero__sub { margin-inline: auto; }
.hero-variant--editorial .hero__cta { justify-content: center; }
.hero-variant--editorial .hero__band {
  margin-top: clamp(48px, 6vw, 80px); position: relative;
}
.hero-variant--editorial .hero__band image-slot { width: 100%; height: auto; aspect-ratio: 21/9; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper-2); }
.hero-variant--editorial .float-stat.fs1 { left: 4%; bottom: -26px; }
.hero-variant--editorial .float-stat.fs2 { right: 4%; top: -26px; }

/* Variant C — Bold asymmetric */
.hero-variant--bold { position: relative; padding-top: clamp(40px, 5vw, 76px); }
.hero-variant--bold .hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 56px); align-items: end; }
.hero-variant--bold h1 { font-size: clamp(44px, 7.2vw, 104px); letter-spacing: -.03em; line-height: .98; }
.hero-variant--bold h1 em { background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--accent) 32%, transparent) 60%); color: var(--ink); padding-inline: 2px; }
.hero-variant--bold .portrait image-slot { width: 100%; height: auto; aspect-ratio: 3/4; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper-2); }
.hero-variant--bold .float-stat { left: -28px; top: 34px; }
.hero-variant--bold .hero__cluster { display:flex; flex-direction:column; gap: 16px; }
.hero-variant--bold .stat-pill {
  background: var(--ink); color:#fff; border-radius: 16px; padding: 16px 20px;
  display:flex; align-items:baseline; gap: 12px;
}
.hero-variant--bold .stat-pill b { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--accent); letter-spacing:-.02em; }
.hero-variant--bold .stat-pill span { font-size: 14px; color: #C9CCD3; }
.hero-bg-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .45;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__cell { padding: clamp(28px, 4vw, 48px) clamp(18px, 2.5vw, 34px); border-left: 1px solid var(--line); }
.trust__cell:first-child { border-left: 0; }
.trust__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4vw, 52px); letter-spacing: -.03em; line-height: 1; }
.trust__num span { color: var(--accent); }
.trust__label { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* ---------- Cases ---------- */
.cases__intro { color: var(--ink-2); }
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px);
  align-items: center; padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.case:first-of-type { border-top: 0; }
.case--flip .case__media { order: 2; }
.case__media { position: relative; }
.case__media image-slot { display:block; width: 100%; height: auto; aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--line); }
.case__shot-cap { margin-top: 12px; font-size: 14px; color: var(--muted); display:flex; gap:8px; align-items:center; }
.case__shot-cap::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); flex:none; }
.case__tag { font-size: 13px; font-weight: 600; letter-spacing:.02em; color: var(--accent); text-transform: uppercase; }
.case h3 { font-size: clamp(26px, 2.4vw, 36px); margin-top: 12px; }
.case__site { margin-top: 8px; color: var(--muted); font-size: 15px; }
.case__task { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.35; }
.ba-table { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; }
.ba-row + .ba-row { border-top: 1px solid var(--line); }
.ba-cell { padding: 13px 16px; font-size: 15.5px; display:flex; align-items:flex-start; gap:9px; line-height:1.35; }
.ba-cell--was { color: var(--muted); background: var(--paper-2); }
.ba-cell--now { color: var(--ink); border-left: 1px solid var(--line); font-weight: 500; }
.ba-cell .ico { flex:none; margin-top:2px; }
.ba-cell--was .ico { color: var(--line-2); }
.ba-cell--now .ico { color: var(--accent); }
.case__quote { margin-top: 22px; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink-2); font-size: 17px; line-height:1.5; }

/* ---------- Pain ---------- */
.pain { background: var(--paper-2); }
.pain__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.pain-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.pain-card__n { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--accent); letter-spacing: .02em; }
.pain-card h3 { font-size: 22px; margin-top: 14px; line-height: 1.2; }
.pain-card p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }

/* ---------- Form (dark band) ---------- */
.cta-band { background: var(--night); color: #fff; }
.cta-band .eyebrow { color: var(--accent); }
.cta-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 3.6vw, 50px); }
.cta-band__lead { margin-top: 22px; color: #C7CBD3; font-size: 18.5px; max-width: 46ch; }
.steps { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 18px; }
.step__n { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--night-2); border:1px solid var(--night-line); color: var(--accent); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; }
.step__t { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.step__d { margin-top: 5px; color: var(--night-muted); font-size: 15.5px; line-height:1.45; }
.cta-band__disclaimer { margin-top: 30px; color: var(--night-muted); font-size: 15px; font-style: italic; line-height: 1.55; border-top: 1px solid var(--night-line); padding-top: 22px; }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 26px; }
.form-card__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input {
  width: 100%; font-family: var(--font-body); font-size: 17px; color: var(--ink);
  padding: 15px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--paper-2); transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input::placeholder { color: #A7A39A; }
.field input:focus { outline: none; border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px var(--accent-tint); }
.field.is-error input { border-color: #E0483B; background: #FEF3F2; }
.field__err { display: none; color: #C5392C; font-size: 13px; margin-top: 6px; }
.field.is-error .field__err { display: block; }
.form-card .btn { margin-top: 26px; }
.form-card__micro { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* consent checkboxes */
.consent { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.consent__row { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent__row--soft { color: var(--muted); }
.consent input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--paper); cursor: pointer; transition: background .15s, border-color .15s; position: relative; }
.consent input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.consent input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-tint); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { text-decoration: none; }
.consent .field__err { margin-top: -2px; }
.consent.is-error .field__err { display: block; }
.consent.is-error input[name="consent"] { border-color: #E0483B; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success__ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.form-success h3 { font-size: 24px; }
.form-success p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #C7CBD3; padding-block: clamp(48px, 6vw, 72px) 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer .brand small { color: var(--night-muted); }
.footer__about { margin-top: 18px; max-width: 42ch; color: var(--night-muted); font-size: 15.5px; line-height: 1.55; }
.footer__col h4 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--night-muted); font-weight: 700; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: #DDE0E6; font-size: 16px; margin-bottom: 10px; }
.footer__col a:hover { color: var(--accent); }
.footer__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 13.5px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }

.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* ---------- Benefits (Выгоды) ---------- */
.benefit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.benefit:first-of-type { border-top: 0; }
.benefit--flip .benefit__media { order: 2; }
.video-thumb { position: relative; }
.video-thumb image-slot { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); }
.video-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.video-thumb .play svg { margin-left: 4px; }
.video-cap { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.video-cap__badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.video-cap__badge .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.video-cap__who { font-size: 14px; color: var(--muted); }
.benefit__n { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.benefit h3 { font-size: clamp(24px, 2.4vw, 34px); margin-top: 12px; line-height: 1.12; }
.benefit__body { margin-top: 18px; color: var(--ink-2); font-size: 17.5px; line-height: 1.55; }
.benefit__quote { margin-top: 22px; padding: 20px 22px; background: var(--paper-2); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); font-size: 17px; line-height: 1.5; color: var(--ink); font-style: italic; }

/* ---------- Steps flow (Как работаем) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 14px; position: relative; }
.flow::before { content: ""; position: absolute; top: 25px; left: 8%; right: 8%; height: 2px; background: var(--line-2); z-index: 0; }
.flow-step { position: relative; z-index: 1; }
.flow-step__n { width: 50px; height: 50px; border-radius: 14px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; display: grid; place-items: center; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.flow-step__t { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-top: 18px; }
.flow-step__d { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.flow-note { margin-top: 36px; color: var(--muted); font-style: italic; font-size: 16px; }

/* ---------- Pricing (Стоимость) ---------- */
.price-main { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px); }
.price-main__num { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-main__num b { display: block; font-size: clamp(44px, 5vw, 68px); color: var(--accent); }
.price-main__num span { display: block; margin-top: 12px; font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--night-muted); max-width: 22ch; }
.price-main__label { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.price-main__desc { margin-top: 14px; color: #C7CBD3; font-size: 16.5px; line-height: 1.55; }
.price-sub { margin-top: 40px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.price-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.price-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.price-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-card__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.price-card__price { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); white-space: nowrap; }
.price-card__desc { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.price-note { margin-top: 24px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 78ch; }
.price-quote { margin-top: 32px; padding: 26px 28px; background: var(--paper-2); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.price-quote p { font-size: 18.5px; line-height: 1.5; }
.price-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14.5px; color: var(--muted); }

/* ---------- Why now ---------- */
.whynow__scarcity { display: flex; gap: 16px; align-items: flex-start; background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px; }
.whynow__scarcity svg { color: var(--accent); flex: none; margin-top: 2px; }
.whynow__scarcity p { font-size: 17px; line-height: 1.5; color: var(--ink); }
.whynow__scarcity b { font-family: var(--font-display); }
.whynow__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.whynow-item { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.whynow-item__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.whynow-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.whynow-item p { margin-top: 7px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.whynow__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.whynow__cta .note { color: var(--muted); font-size: 14.5px; }

/* ---------- Guarantee (dark) ---------- */
.guarantee { background: var(--night); color: #fff; }
.guarantee .eyebrow, .guarantee h2 { color: #fff; }
.guarantee .eyebrow { color: var(--accent); }
.guarantee__head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.guarantee__shield { flex: none; width: 56px; height: 56px; border-radius: 15px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.guarantee__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.guarantee-item { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 28px; }
.guarantee-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.guarantee-item p { margin-top: 12px; color: var(--night-muted); font-size: 15.5px; line-height: 1.5; }
.guarantee__quote { margin-top: 36px; border-top: 1px solid var(--night-line); padding-top: 30px; }
.guarantee__quote p { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; font-family: var(--font-display); font-weight: 600; max-width: 60ch; }
.guarantee__quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--night-muted); }

/* ---------- Fit (Кому подойдёт) ---------- */
.fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-col { border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); }
.fit-col--yes { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.fit-col--no { background: var(--paper-2); }
.fit-col h3 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.fit-col ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.fit-col li { display: flex; gap: 12px; font-size: 16.5px; line-height: 1.4; color: var(--ink); }
.fit-col li svg { flex: none; margin-top: 3px; }
.fit-col--yes li svg { color: var(--accent); }
.fit-col--no li { color: var(--ink-2); }
.fit-col--no li svg { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 920px; }
.faq-item { border-top: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-q { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.3; }
.faq-q::-webkit-details-marker { display: none; }
.faq-icn { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; transition: transform .25s ease, background .2s; margin-top: 2px; }
.faq-item[open] .faq-icn { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { padding: 0 56px 26px 4px; color: var(--ink-2); font-size: 17px; line-height: 1.6; animation: faqIn .3s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Formats ---------- */
.formats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.format-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); transition: border-color .2s, box-shadow .2s, transform .2s; cursor: pointer; }
.format-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.format-card__k { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.18; }
.format-card__d { color: var(--ink-2); font-size: 16.5px; }
.format-card__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.format-card:hover .format-card__go .arr { transform: translateX(4px); }
.format-card__go .arr { transition: transform .2s; }

/* ---------- Final CTA (dark) ---------- */
.final-cta { background: var(--night); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(32px, 4vw, 56px); max-width: 18ch; margin-inline: auto; }
.final-cta__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.final-cta__phone { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); color: #fff; }
.final-cta__phone span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--night-muted); margin-top: 4px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Tweaks root ---------- */
#tweaks-root { position: fixed; z-index: 9999; }

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 180;
  display: inline-flex; align-items: center; gap: 18px; max-width: 460px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 14px 16px 14px 22px;
  animation: cookieIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie__text { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie__text a:hover { text-decoration: none; }
.cookie__btn { flex: none; padding: 11px 22px; font-size: 15px; border-radius: 999px; }
@media (max-width: 560px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; }
  .cookie__text { font-size: 13px; }
  .cookie__btn { padding: 11px 18px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header__phone, .header__cta { display: none; }
  .header__call { display: inline-flex; }
  .burger { display: inline-flex; }
  .hero-variant--split .hero__grid,
  .hero-variant--bold .hero__grid { grid-template-columns: 1fr; }
  .hero-variant--split .portrait,
  .hero-variant--bold .portrait { max-width: 420px; }
  .hero-variant--split .slot-img--portrait { aspect-ratio: 3/3.4; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__cell:nth-child(3) { border-left: 0; }
  .trust__cell:nth-child(odd) { border-left: 0; }
  .trust__cell:nth-child(3), .trust__cell:nth-child(4) { border-top: 1px solid var(--line); }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
  .pain__grid { grid-template-columns: 1fr; }
  .cta-band__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .benefit, .benefit--flip { grid-template-columns: 1fr; }
  .benefit--flip .benefit__media { order: 0; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px; }
  .flow::before { display: none; }
  .price-main { grid-template-columns: 1fr; }
  .price-options, .whynow__grid, .guarantee__grid, .fit__grid, .formats__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .header__inner { height: 64px; }
  .hero-variant--split .float-stat, .hero-variant--bold .float-stat, .hero-variant--editorial .float-stat { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .ba-cell { font-size: 14px; }
  .flow { grid-template-columns: 1fr; }
  .faq-a { padding-right: 4px; }
  /* buttons must never exceed the viewport on phones */
  .btn { max-width: 100%; }
  .btn--lg { padding: 16px 20px; font-size: 16px; }
  .hero__cta, .whynow__cta, .final-cta__actions { width: 100%; }
  .hero__cta .btn, .whynow__cta .btn, .final-cta__actions .btn { width: 100%; white-space: normal; }
  .final-cta__actions { flex-direction: column; }
  .whynow__cta .note { text-align: center; }
}

/* ============================================================
   PRODUCTION additions — real <img> + video lightbox
   ============================================================ */
.slot-img { display: block; width: 100%; object-fit: cover; background: var(--paper-2); }
.slot-img--portrait { aspect-ratio: 4/5; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.slot-img--case { aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--line); }
.slot-img--video { aspect-ratio: 16/9; border-radius: var(--radius); border: 1px solid var(--line); }

/* video thumb as a real button */
button.video-thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
button.video-thumb .play { transition: transform .2s ease; }
button.video-thumb:hover .play { transform: scale(1.07); }
button.video-thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

/* video lightbox */
.vbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8,9,12,.82); backdrop-filter: blur(6px); }
.vbox.is-open { display: flex; animation: vboxIn .2s ease; }
@keyframes vboxIn { from { opacity: 0; } to { opacity: 1; } }
.vbox__inner { position: relative; width: min(1040px, 100%); aspect-ratio: 16/9; background: #000; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.vbox__media { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; }
.vbox__inner iframe, .vbox__inner video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vbox__msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #C7CBD3; font-size: 16px; padding: 32px; }
.vbox__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.vbox__close:hover { background: var(--accent-press); }
@media (max-width: 560px) { .vbox__close { top: 8px; right: 8px; } }
