@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/manrope-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/manrope-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/manrope-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/manrope-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/manrope-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/manrope-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/manrope-800-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/manrope-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/rubik-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/rubik-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/rubik-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/rubik-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rubik-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rubik-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ============================================================
   ВЫКУП.ЕКБ — стили лендинга
   Палитра: графит #1E293B / #0F172A + акцент красный #DC2626
   ============================================================ */

:root{
  --bg:#F8FAFC;
  --surface:#FFFFFF;
  --surface-2:#F1F5F9;
  --dark:#1E293B;
  --dark-2:#0F172A;
  --fg:#0F172A;
  --fg-2:#334155;
  --fg-3:#64748B;
  --border:#E2E8F0;
  --border-2:#CBD5E1;
  --accent:#DC2626;
  --accent-600:#B91C1C;
  --accent-soft:#FEF2F2;
  --ok:#16A34A;
  --radius-sm:10px;
  --radius:16px;
  --radius-lg:24px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow:0 4px 12px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:0 18px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --shadow-accent:0 8px 20px rgba(220,38,38,.32);
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;
  --font-h:'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-b:'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h:72px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font-family:var(--font-b);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:var(--font-h);margin:0;line-height:1.12;letter-spacing:-.02em;font-weight:800}
p{margin:0}
a{color:inherit}
button{font:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}

.container{width:min(1200px,100% - 40px);margin-inline:auto}
@media (max-width:640px){.container{width:min(1200px,100% - 32px)}}

.section{padding:var(--space-9) 0}
@media (max-width:900px){.section{padding:var(--space-8) 0}}

.kicker{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-h);font-weight:700;font-size:12px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);
}
.kicker::before{content:"";width:22px;height:2px;background:var(--accent);border-radius:2px}

.section-heading{margin-bottom:var(--space-7)}
.section-heading .kicker{margin-bottom:14px}
.section-heading h2{font-size:clamp(28px,3.6vw,44px)}
.section-heading--row{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--space-6)}
.section-heading--row > p{color:var(--fg-3);font-size:15px;max-width:280px;flex-shrink:0}
@media (max-width:820px){
  .section-heading--row{flex-direction:column;align-items:flex-start;gap:var(--space-3)}
  .section-heading--row > p{max-width:none}
}

/* ---------- Кнопки ---------- */
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:56px;padding:0 28px;border:none;border-radius:var(--radius-sm);
  font-family:var(--font-h);font-weight:700;font-size:16px;letter-spacing:.01em;
  cursor:pointer;text-decoration:none;transition:background-color .2s ease,transform .15s ease,box-shadow .2s ease;
}
.button svg{width:18px;height:18px;flex-shrink:0}
.button__label{text-wrap:balance}
.button--primary{background:var(--accent);color:#fff;box-shadow:var(--shadow-accent)}
.button--primary:hover{background:var(--accent-600);transform:translateY(-1px)}
.button--primary:active{transform:translateY(0)}
.button--ghost{background:transparent;color:var(--fg-2);border:1.5px solid var(--border-2)}
.button--ghost:hover:not(:disabled){background:var(--surface-2);color:var(--fg)}
.button:disabled{opacity:.42;cursor:not-allowed;box-shadow:none;transform:none}
.button--lg{min-height:62px;padding:0 34px;font-size:17px}
@media (prefers-reduced-motion:reduce){.button{transition:background-color .2s ease}.button:hover{transform:none}}

/* ---------- Шапка (одна строка) ---------- */
.header{position:sticky;top:0;z-index:100;background:var(--dark-2);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.09)}
.header__inner{display:flex;align-items:center;gap:var(--space-5);min-height:var(--header-h)}
.logo{display:flex;flex-direction:column;text-decoration:none;line-height:1;flex-shrink:0}
.logo__row{font-family:var(--font-h);font-weight:800;font-size:23px;letter-spacing:-.01em;color:#fff}
.logo__row b{color:var(--accent)}
.logo small{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#94A3B8;margin-top:5px;font-weight:600}
.header__hours{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:#94A3B8;white-space:nowrap}
.header__dot{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(22,163,74,.2);flex-shrink:0}
.header__deal{display:inline-flex;align-items:baseline;gap:8px;font-size:13.5px;color:#94A3B8;white-space:nowrap}
.header__deal b{font-family:var(--font-h);font-size:15px;font-weight:700;color:#E2E8F0}
.header__right{margin-left:auto;display:flex;align-items:center;gap:var(--space-4)}
.socials{display:flex;gap:8px}
.socials a{
  width:42px;height:42px;border-radius:10px;background:rgba(255,255,255,.09);
  display:grid;place-items:center;transition:background-color .2s ease;
}
.socials a:hover{background:rgba(255,255,255,.18)}
.socials img{width:22px;height:22px}
.header__phone{font-family:var(--font-h);font-weight:800;font-size:19px;text-decoration:none;white-space:nowrap;transition:color .2s ease}
.header__phone:hover{color:var(--accent)}
@media (max-width:1140px){.header__deal{display:none}}
@media (max-width:900px){.header__hours{display:none}}
@media (max-width:560px){
  .header__inner{min-height:62px;gap:12px}
  .logo__row{font-size:19px}
  .header__phone{font-size:16px}
  .socials a{width:38px;height:38px}
}
@media (max-width:380px){
  .header__inner{
    display:grid;grid-template-columns:auto 1fr;gap:6px 10px;
    padding-block:8px;
  }
  .header__right{display:contents}
  .socials{grid-column:2;grid-row:1;justify-self:end}
  .header__phone{grid-column:1 / -1;grid-row:2;justify-self:center;font-size:18px}
}

/* ---------- Первый экран ---------- */
.hero{
  position:relative;isolation:isolate;
  min-height:calc(100svh - var(--header-h));
  display:flex;align-items:center;
  padding:var(--space-7) 0;
  background-color:var(--dark-2);
}
.hero__bg{
  position:absolute;inset:0;z-index:-2;
  background-image:url('images/hero-bg.jpg');
  background-size:cover;background-position:center right;background-repeat:no-repeat;
}
.hero__scrim{
  position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(100deg, rgba(15,23,42,.96) 0%, rgba(15,23,42,.88) 34%, rgba(15,23,42,.55) 58%, rgba(15,23,42,.25) 100%),
    linear-gradient(to top, rgba(15,23,42,.55), transparent 45%);
}
.hero__inner{max-width:660px;color:#fff}
.hero h1{font-size:clamp(34px,4.6vw,62px);margin-bottom:var(--space-5)}
.hero h1 em{font-style:normal;color:#F87171}
.hero__lead{font-size:clamp(17px,1.7vw,21px);color:#94A3B8;max-width:56ch;margin-bottom:var(--space-6)}
.hero__lead b{color:#fff;font-weight:600}
.hero__actions{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.hero__hint{display:inline-flex;align-items:flex-start;gap:8px;font-size:15.5px;color:#94A3B8;line-height:1.4}
.hero__hint svg{width:18px;height:18px;color:#4ADE80;flex-shrink:0;margin-top:3px}
@media (max-width:900px){
  .hero{min-height:auto;padding:26px 0 34px}
  .hero h1{font-size:30px;line-height:1.12;margin-bottom:14px}
  .hero__lead{font-size:16px;line-height:1.5;margin-bottom:18px}
  /* сдвигаем кадр к человеку и делаем плёнку легче — силуэт должен читаться */
  .hero__bg{background-position:90% center}
  .hero__scrim{
    background:
      linear-gradient(180deg, rgba(15,23,42,.9) 0%, rgba(15,23,42,.84) 42%, rgba(15,23,42,.74) 100%),
      linear-gradient(90deg, rgba(15,23,42,.34) 0%, rgba(15,23,42,0) 62%);
  }
  .hero__actions{align-self:stretch;width:100%}
  .hero__actions .button{width:100%;padding:14px 20px;min-height:60px;line-height:1.25}
  .hero__or{width:100%}
  .hero__or .chip{flex:1;justify-content:center}
  }
@media (max-height:720px) and (min-width:901px){
  .hero h1{font-size:clamp(30px,3.6vw,46px)}
  .hero__lead{font-size:18px;margin-bottom:var(--space-5)}
  }

/* Мягкая пульсация кнопки на первом экране */
.hero__actions .button--primary{animation:ctaPulse 2.8s ease-in-out infinite}
.hero__actions .button--primary:hover,
.hero__actions .button--primary:focus-visible{animation-play-state:paused}
@keyframes ctaPulse{
  0%,100%{box-shadow:0 8px 20px rgba(220,38,38,.32), 0 0 0 0 rgba(220,38,38,.5)}
  55%    {box-shadow:0 12px 28px rgba(220,38,38,.44), 0 0 0 16px rgba(220,38,38,0)}
}
@media (prefers-reduced-motion:reduce){
  .hero__actions .button--primary{animation:none}
}

/* Быстрая связь под кнопкой на первом экране */
.hero__or{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:var(--space-3)}
.hero__or > span{font-size:15px;color:#94A3B8}
.chip.chip--dark{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.24);color:#fff}
.chip.chip--dark:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.4);color:#fff}

/* Подсказка «листайте вниз» */
.hero__scroll{
  position:absolute;left:50%;bottom:20px;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:2px;
  color:#94A3B8;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  text-decoration:none;font-family:var(--font-h);font-weight:600;
  transition:color .2s ease;
}
.hero__scroll:hover{color:#fff}
.hero__scroll svg{width:20px;height:20px;animation:scrollBob 2.2s ease-in-out infinite}
@keyframes scrollBob{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){.hero__scroll svg{animation:none}}
@media (max-width:900px),(max-height:700px){.hero__scroll{display:none}}

/* ---------- Форма заявки на первом экране (2-я версия) ---------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.hero-form{width:100%;max-width:580px}
.hero-form__lure{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;
  font-family:var(--font-h);font-weight:700;font-size:16px;color:#fff;
}
.hero-form__lure svg{width:19px;height:19px;color:var(--accent);animation:lureBob 1.9s ease-in-out infinite}
@keyframes lureBob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@media (prefers-reduced-motion:reduce){.hero-form__lure svg{animation:none}}

.hero-form__row{display:flex;gap:10px}
.hero-form input[name="phone"]{
  flex:1;min-width:0;height:62px;padding:0 18px;
  border:2px solid #fff;border-radius:var(--radius-sm);
  background:#fff;color:var(--fg);
  font-family:var(--font-b);font-size:17px;font-weight:500;
  box-shadow:0 6px 18px rgba(15,23,42,.28);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.hero-form input[name="phone"]::placeholder{color:#94A3B8;font-weight:400}
.hero-form input[name="phone"]:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(220,38,38,.35), 0 6px 18px rgba(15,23,42,.28);
}
.hero-form .button{flex:0 0 auto;min-height:62px}
.hero-form__error{min-height:20px;margin-top:8px;font-size:14px;color:#FCA5A5}

.button--outline{
  background:var(--dark);color:#fff;border:2px solid var(--accent);
  box-shadow:0 6px 18px rgba(15,23,42,.3);
}
.button--outline:hover{background:#243449;border-color:var(--accent-600);color:#fff}
.hero__calc{width:100%;max-width:580px}

@media (max-width:640px){
  /* обе кнопки должны помещаться в первый экран */
  .hero__actions{gap:8px}
  .hero-form__lure{font-size:15px;margin-bottom:8px}
  .hero-form .button,.hero__calc{min-height:56px}
  .hero-form__row{flex-direction:column}
  /* в столбик flex:1 растягивал бы поле по высоте — фиксируем */
  .hero-form input[name="phone"]{flex:0 0 auto;width:100%;height:56px}
  .hero-form .button{width:100%}
  .hero__calc{max-width:none}
  /* убираем зарезервированное место под ошибку — калькулятор встаёт вплотную */
  .hero-form__error{min-height:0;margin-top:0}
  .hero-form__error:not(:empty){margin-top:8px}
  .hero__actions{gap:10px}
}

/* ---------- Преимущества ---------- */
.benefits{padding:var(--space-8) 0}
.benefits__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-5)}
.benefits article{
  position:relative;overflow:hidden;display:flex;align-items:center;
  min-height:186px;padding:var(--space-6);padding-right:42%;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .25s ease,transform .25s ease,border-color .25s ease;
}
.benefits article:hover{box-shadow:var(--shadow);transform:translateY(-2px);border-color:var(--border-2)}
.benefits article::before{
  content:"";position:absolute;left:0;top:var(--space-6);bottom:var(--space-6);
  width:3px;background:var(--accent);border-radius:0 3px 3px 0;
}
.benefits h3{font-size:clamp(19px,1.7vw,23px);margin-bottom:10px;font-weight:800}
.benefits p{font-size:15.5px;color:var(--fg-3);line-height:1.55}
.benefits p b{color:var(--fg-2);font-weight:700}
.benefits__pic{
  position:absolute;right:0;top:0;bottom:0;width:44%;
  background-repeat:no-repeat;background-position:right bottom;background-size:contain;
  pointer-events:none;
}
@media (max-width:900px){
  .benefits__grid{grid-template-columns:1fr}
  .benefits article{min-height:160px;padding:var(--space-5);padding-right:40%}
}
@media (max-width:480px){
  .benefits article{min-height:150px;padding:var(--space-4) var(--space-5);padding-right:38%}
  .benefits h3{font-size:18px;margin-bottom:6px}
  .benefits p{font-size:14.5px}
  .benefits__pic{width:40%}
}
@media (prefers-reduced-motion:reduce){.benefits article:hover{transform:none}}

/* ---------- Сделки ---------- */
.cases{background:var(--surface-2);border-block:1px solid var(--border)}
.cases__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-5)}
.case{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;
  transition:box-shadow .25s ease,transform .25s ease;
}
.case:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.case__image{position:relative;aspect-ratio:3/2;background:#E2E8F0}
.case__image img{width:100%;height:100%;object-fit:cover}
.case__image span{
  position:absolute;left:14px;top:14px;background:rgba(15,23,42,.86);color:#fff;
  font-family:var(--font-h);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:7px 12px;border-radius:100px;
}
.case__body{padding:var(--space-5) var(--space-5) var(--space-4);display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex:1}
.case__body h3{font-size:18px;margin-bottom:5px;font-weight:700}
.case__body p{font-size:13.5px;color:var(--fg-3)}
.case__price{font-family:var(--font-h);font-weight:800;font-size:21px;color:var(--accent);white-space:nowrap;font-variant-numeric:tabular-nums}
.case__actions{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
  padding:var(--space-4) var(--space-5);border-top:1px solid var(--border);background:#FCFDFE;
}
.case__actions > span{grid-column:1 / -1;font-size:12.5px;color:var(--fg-3)}
.chip{
  display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;
  border:1.5px solid var(--border);border-radius:100px;background:var(--surface);
  font-family:var(--font-h);font-weight:700;font-size:13.5px;color:var(--fg-2);text-decoration:none;
  transition:border-color .2s ease,color .2s ease,background-color .2s ease;
}
.chip img{width:18px;height:18px}
.chip{justify-content:center}
.chip:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.swipe-hint{
  display:none;align-items:center;gap:6px;justify-content:center;
  font-size:13px;color:var(--fg-3);margin-top:var(--space-3);
}
.swipe-hint svg{width:15px;height:15px}

.cases__cta{
  margin-top:var(--space-7);background:var(--dark);border-radius:var(--radius-lg);
  padding:var(--space-6) var(--space-7);display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-5);flex-wrap:wrap;
}
.cases__cta p{color:#fff;font-family:var(--font-h);font-size:clamp(19px,2.2vw,26px);font-weight:700;line-height:1.25}
@media (max-width:1000px){.cases__grid{grid-template-columns:repeat(2,1fr)}}
/* Мобильная карусель: карточки листаются пальцем влево/вправо */
@media (max-width:660px){
  .cases__grid{
    display:flex;grid-template-columns:none;
    overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;scroll-behavior:smooth;
    gap:14px;margin-inline:-16px;padding:4px 16px 12px;scroll-padding-inline:16px;
  }
  .cases__grid::-webkit-scrollbar{height:4px}
  .cases__grid::-webkit-scrollbar-track{background:transparent}
  .cases__grid::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:4px}
  .case{flex:0 0 86%;scroll-snap-align:start}
  .case:hover{transform:none}
  .swipe-hint{display:flex}
  .cases__cta{padding:var(--space-5);flex-direction:column;align-items:stretch;text-align:center}
  .cases__cta .button{width:100%}
}
@media (prefers-reduced-motion:reduce){.case:hover{transform:none}}

/* ---------- Квиз ---------- */
.quiz-section{background:var(--dark-2);color:#fff;padding:var(--space-8) 0}
.quiz-section .kicker{color:#F87171}
.quiz-section .kicker::before{background:#F87171}
.quiz-intro{text-align:center;max-width:660px;margin:0 auto var(--space-5)}
.quiz-intro .kicker{margin-bottom:10px}
.quiz-intro h2{font-size:clamp(22px,2.4vw,30px);margin-bottom:8px}
.quiz-intro p{color:#94A3B8;font-size:15px}

.quiz-wrap{display:grid;grid-template-columns:280px 1fr;background:var(--surface);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg)}

.expert{background:var(--surface-2);padding:var(--space-6);display:flex;flex-direction:column;border-right:1px solid var(--border)}
.expert__photo{width:104px;height:104px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:var(--shadow);margin-bottom:var(--space-4)}
.expert__name{font-family:var(--font-h);font-weight:800;font-size:19px;color:var(--fg)}
.expert__role{font-size:13px;color:var(--fg-3)}
.expert__id{margin-bottom:var(--space-5)}
.expert__bubble{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:16px 18px;font-size:14.5px;color:var(--fg-2);line-height:1.55;position:relative;box-shadow:var(--shadow-sm);
}
.expert__bubble::before{
  content:"";position:absolute;top:-8px;left:26px;width:14px;height:14px;background:#fff;
  border-left:1px solid var(--border);border-top:1px solid var(--border);transform:rotate(45deg);
}

.quiz{padding:var(--space-6) var(--space-7) var(--space-7);display:flex;flex-direction:column;min-height:520px}
.quiz__top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--fg-3);margin-bottom:10px}
.quiz__top b{font-family:var(--font-h);color:var(--fg);font-size:14px}
.progress{height:6px;background:var(--surface-2);border-radius:100px;overflow:hidden;margin-bottom:var(--space-5)}
.progress span{display:block;height:100%;background:var(--accent);border-radius:100px;transition:width .35s cubic-bezier(.4,0,.2,1);width:14%}
@media (prefers-reduced-motion:reduce){.progress span{transition:none}}

.quiz__page{border:0;padding:0;margin:0;display:none}
.quiz__page.active{display:block;animation:fadeStep .32s ease}
@keyframes fadeStep{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.quiz__page.active{animation:none}}
.quiz__page legend{font-family:var(--font-h);font-weight:800;font-size:clamp(20px,2.2vw,26px);color:var(--fg);padding:0;margin-bottom:6px;line-height:1.2}
.quiz__page > p{font-size:15.5px;color:var(--fg-3);margin-bottom:var(--space-5)}

.opt-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.opt-grid--2{grid-template-columns:repeat(2,1fr)}
.opt-grid--3{grid-template-columns:repeat(3,1fr)}

/* Простые варианты (без картинок) */
.opt{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;text-align:center;min-height:96px;padding:16px 12px;cursor:pointer;
  background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm);
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.opt:hover{border-color:var(--border-2);background:var(--surface-2)}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt svg{width:26px;height:26px;color:var(--fg-3);transition:color .18s ease}
.opt b{font-family:var(--font-h);font-size:16.5px;font-weight:700;color:var(--fg);line-height:1.25}
.opt:has(input:checked){border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 3px rgba(220,38,38,.1)}
.opt:has(input:checked) svg{color:var(--accent)}
.opt:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px}
.opt--row{flex-direction:row;justify-content:flex-start;text-align:left;min-height:64px;padding:14px 18px;gap:14px}
.opt--row img{width:26px;height:26px;flex-shrink:0}

/* Варианты-картинки (состояние авто): фото + плашка на нём + подпись снизу */
.opt--img{
  padding:0;min-height:0;overflow:hidden;aspect-ratio:auto;
  flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;
  background:var(--surface);border:2px solid var(--border);
}
.opt__frame{position:relative;display:block;width:100%;aspect-ratio:800/469;overflow:hidden;background:#94A3B8}
.opt__photo{position:absolute;inset:0;background-size:cover;background-position:center}
.opt__badge{
  position:absolute;left:10px;top:10px;z-index:1;
  background:var(--accent);color:#fff;
  font-family:var(--font-h);font-weight:800;font-size:12.5px;letter-spacing:.05em;
  text-transform:uppercase;line-height:1;padding:7px 11px;border-radius:6px;
  box-shadow:0 3px 10px rgba(15,23,42,.4);
}
.opt--img b{
  display:block;width:100%;text-align:left;padding:9px 12px 10px;
  font-size:15px;font-weight:700;color:var(--fg);line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.opt--img:hover{border-color:var(--border-2)}
.opt--img:has(input:checked){border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 3px rgba(220,38,38,.16)}
.opt--img:has(input:checked) b{color:var(--accent)}
.opt__tick{
  position:absolute;z-index:2;top:10px;right:10px;width:30px;height:30px;border-radius:50%;
  background:#fff;display:none;place-items:center;box-shadow:0 2px 8px rgba(15,23,42,.35);
}
.opt__tick svg{width:17px;height:17px;color:var(--accent)}
.opt--img:has(input:checked) .opt__tick{display:grid}

.quiz-field{display:flex;flex-direction:column;gap:8px;max-width:460px}
.quiz-field label{font-family:var(--font-h);font-weight:600;font-size:14.5px;color:var(--fg-2)}
.quiz-field input,.quiz-field select{
  height:56px;padding:0 16px;border:1.5px solid var(--border);border-radius:var(--radius-sm);
  font-family:var(--font-b);font-size:16px;color:var(--fg);background:var(--surface);
  transition:border-color .18s ease,box-shadow .18s ease;width:100%;
}
.quiz-field select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;background-size:20px;padding-right:48px;
}
.quiz-field input:focus,.quiz-field select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(220,38,38,.12)}

.quiz__error{color:var(--accent);font-size:14px;font-weight:500;min-height:20px;margin-top:14px}
.quiz__navhold{margin-top:auto}
.quiz__nav{display:flex;gap:12px;padding-top:var(--space-6)}
.quiz__nav .button{flex:0 0 auto}
.quiz__nav .button--primary{min-width:240px;margin-left:auto}
.hidden{display:none !important}
.privacy-note{font-size:12.5px;color:var(--fg-3);margin-top:14px;line-height:1.5}
.privacy-note a{color:var(--fg-2)}

.consent{display:flex;gap:12px;align-items:flex-start;margin-top:var(--space-5);cursor:pointer}
.consent input{width:22px;height:22px;margin:1px 0 0;accent-color:var(--accent);flex-shrink:0;cursor:pointer}
.consent span{font-size:13.5px;color:var(--fg-3);line-height:1.5}
.consent a{color:var(--fg-2)}

.trust-row{display:flex;align-items:center;gap:10px;margin-top:var(--space-5);font-size:13.5px;color:var(--fg-3)}
.trust-row svg{width:18px;height:18px;color:var(--ok);flex-shrink:0}

.bot-field{position:absolute;left:-9999px;opacity:0;height:0;width:0}

@media (max-width:900px){
  .quiz-wrap{grid-template-columns:1fr}
  .expert{flex-direction:row;align-items:center;gap:var(--space-4);padding:var(--space-5);border-right:0;border-bottom:1px solid var(--border)}
  .expert__photo{width:60px;height:60px;margin-bottom:0;flex-shrink:0}
  .expert__bubble{display:none}
  .expert__id{margin-bottom:0;min-width:0}
  .expert__name{font-size:17px}
  .quiz{padding:var(--space-5);min-height:auto}
  .opt-grid{grid-template-columns:repeat(2,1fr)}
  .opt-grid--3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  .opt-grid,.opt-grid--2,.opt-grid--3{grid-template-columns:1fr}
  .opt{flex-direction:row;justify-content:flex-start;text-align:left;min-height:60px;padding:14px 16px;gap:14px}
  /* На телефоне: два столбца, как в примере */
  /* сетка выходит за поля карточки — плитки шире, подпись влезает в строку */
  .opt-grid--img{grid-template-columns:repeat(2,1fr);gap:10px;margin-inline:-16px}
  .opt--img{flex-direction:column;justify-content:flex-start;padding:0;min-height:0}
  .opt--img b{font-size:clamp(12px,3.4vw,15px);padding:6px 9px 7px;line-height:1.15;letter-spacing:-.01em}
  .opt__badge{font-size:11px;padding:6px 9px;left:8px;top:8px}
  .opt__tick{width:26px;height:26px;top:8px;right:8px}
  .opt__tick svg{width:15px;height:15px}
  /* «Далее» всегда на виду: панель всплывает над экраном, пока квиз открыт */
  .quiz__nav{
    flex-direction:row;gap:10px;
    padding-top:var(--space-4);
  }
  .quiz__navhold.is-floating{min-height:78px}
  .quiz__navhold.is-floating .quiz__nav{
    position:fixed;left:0;right:0;bottom:0;z-index:60;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:var(--surface);
    box-shadow:0 -10px 26px rgba(15,23,42,.22);
  }
  .quiz__nav .button{width:auto;min-width:0;font-size:16px;padding:0 16px;gap:8px}
  .quiz__nav .button--ghost{flex:0 0 auto;padding:0 14px}
  .quiz__nav .button--primary{flex:1;margin-left:0}
  .quiz__nav .button__label{white-space:nowrap;text-wrap:nowrap}
  .quiz{padding:18px}
  .quiz__page > p{margin-bottom:var(--space-4)}
  .privacy-note{margin-top:10px}
}

/* ---------- Экран «идёт расчёт» ---------- */
.quiz__calc{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;
  min-height:300px;padding:var(--space-6) var(--space-4);text-align:center;
  opacity:1;
}
.quiz__calc-ring{
  width:56px;height:56px;border-radius:50%;
  border:4px solid var(--surface-2);border-top-color:var(--accent);
  animation:calcSpin .9s linear infinite;
}
.quiz__calc b{
  font-family:var(--font-h);font-weight:800;font-size:clamp(17px,2vw,21px);
  color:var(--fg);line-height:1.25;max-width:22ch;
}
.quiz__calc-bar{
  display:block;width:min(300px,80%);height:6px;border-radius:100px;
  background:var(--surface-2);overflow:hidden;
}
.quiz__calc-bar i{
  display:block;height:100%;width:0;border-radius:100px;background:var(--accent);
  animation:calcFill 2.2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes calcSpin{to{transform:rotate(360deg)}}
@keyframes calcFill{0%{width:4%}45%{width:62%}80%{width:88%}100%{width:100%}}
@media (prefers-reduced-motion:reduce){
  .quiz__calc,.quiz__calc-ring,.quiz__calc-bar i{animation:none}
  .quiz__calc-bar i{width:100%}
}

/* ---------- Подвал ---------- */
.footer{background:var(--dark-2);color:#94A3B8;padding-top:var(--space-8)}
.footer__top{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-6);flex-wrap:wrap;padding-bottom:var(--space-6)}
.footer__top p{font-size:15px;line-height:1.6}
.footer__contacts{display:flex;flex-direction:column;gap:14px;align-items:flex-end}
.footer__phone{font-family:var(--font-h);font-weight:800;font-size:26px;color:#fff;text-decoration:none}
.footer__phone:hover{color:var(--accent)}
.footer__bottom{
  border-top:1px solid rgba(255,255,255,.1);padding:var(--space-5) 0 var(--space-6);
  display:flex;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;font-size:13px;
}
.footer__bottom a{color:#94A3B8}
.footer__bottom a:hover{color:#fff}
@media (max-width:760px){
  .footer__top{flex-direction:column;gap:var(--space-5)}
  .footer__contacts{align-items:flex-start}
}
