/* Сайт выкупа авто avtovykup-spb.ru — стили (общий шаблон лендинга выкупа авто) */
/* Шрифты — свои файлы. Заголовки — Montserrat (700–900), текст — Rubik. Оба «резиновые»: один файл на алфавит даёт все толщины */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/montserrat-cyrillic.woff2) format('woff2');unicode-range:U+0401, U+0410-044F, U+0451, U+2116;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700 900;font-display:swap;src:url(fonts/montserrat-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00AB, U+00BB, U+00B7, U+00D7, U+2013-2014, U+2019, U+201C-201D, U+2026, U+20BD, U+2192, U+2212;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/rubik-cyrillic.woff2) format('woff2');unicode-range:U+0401, U+0410-044F, U+0451, U+2116;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/rubik-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00AB, U+00BB, U+00B7, U+00D7, U+2013-2014, U+2019, U+201C-201D, U+2026, U+20BD, U+2192, U+2212;}

:root{
  --bg:#F8FAFC;
  --surface:#FFFFFF;
  --surface-2:#F1F5F9;
  --dark:#1E293B;
  --dark-2:#0F172A;
  --fg:#0F172A;
  --fg-2:#334155;
  --fg-3:#526072;
  --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:'Montserrat', 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:clip;
}
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:16px;max-width:300px;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(--surface);color:var(--fg);box-shadow:0 1px 0 var(--border), 0 4px 14px rgba(15,23,42,.05)}
.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:var(--fg)}
.logo__row b{color:var(--accent)}
.logo small{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--fg-3);margin-top:5px;font-weight:600}
.header__contact{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.header__hours{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--fg-3);white-space:nowrap;line-height:1}
.header__reply{font-size:13px;line-height:1.25;color:var(--fg-3);text-align:right;white-space:nowrap}
.header__reply b{font-family:var(--font-h);font-weight:700;color:var(--fg)}
.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:14px;color:var(--fg-3);white-space:nowrap}
.header__deal b{font-family:var(--font-h);font-size:15px;font-weight:700;color:var(--fg)}
.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:var(--surface-2);border:1px solid var(--border);
  display:grid;place-items:center;transition:background-color .2s ease,border-color .2s ease;
}
.socials a:hover{background:#fff;border-color:var(--border-2)}
.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:560px){
.header__reply{display:none}          /* на телефоне места нет: остаются номер, «круглосуточно» и мессенджеры */
.header__hours{font-size:10.5px;gap:5px}
.header__dot{width:6px;height:6px}
.header__contact{gap:2px}
}
@media (max-width:560px){
.header__inner{min-height:62px;gap:10px}
.logo__row{font-size:18px}
.logo small{font-size:9px;letter-spacing:.16em}
.header__phone{font-size:15.5px}
.header__right{gap:10px}
.socials{gap:6px}
.socials a{width:34px;height:34px}
.socials img{width:19px;height:19px}
}
@media (max-width:440px){
.header__inner{gap:8px}
.header__right{gap:8px}
.logo__row{font-size:17px}
.logo small{font-size:8.5px;letter-spacing:.12em}
.header__phone{font-size:15.5px}
}
@media (max-width:370px){
.logo__row{font-size:15.5px}
.header__phone{font-size:14.5px}
.socials a{width:32px;height:32px}
.socials img{width:18px;height:18px}
}
.hero{
  position:relative;isolation:isolate;
  min-height:calc(100svh - var(--header-h));
  display:flex;align-items:center;
  padding:var(--space-6) 0;
  background-color:#E8EDF2;
}
.hero__bg{
  position:absolute;inset:0;z-index:-2;
  background-image:url('images/hero-bg.webp?v=2');
  background-size:cover;background-position:right center;background-repeat:no-repeat;
}
/* затемнения нет: картинка светлая. Лёгкая дымка снизу — только чтобы блок мягко переходил в следующий */
.hero__scrim{position:absolute;inset:0;z-index:-1;background:linear-gradient(to top, rgba(248,250,252,.55), transparent 22%)}
.hero__inner{
  max-width:640px;color:var(--fg);
  padding:32px 36px 30px;border-radius:var(--radius-lg);
  background:rgba(255,255,255,.93);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 18px 50px rgba(15,23,42,.16);
}
/* где браузер умеет размывать фон — плашка полупрозрачная и размывает картинку под собой */
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
.hero__inner{background:rgba(255,255,255,.74);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2)}
}
.hero h1{font-size:clamp(32px,3.6vw,52px);margin-bottom:var(--space-4)}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero__lead{font-size:clamp(17px,1.5vw,19px);color:var(--fg-2);max-width:56ch;margin-bottom:var(--space-5)}
.hero__lead b{color:var(--fg);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:16px;color:var(--fg-3);line-height:1.4}
.hero__hint svg{width:18px;height:18px;color:var(--ok);flex-shrink:0;margin-top:3px}
@media (max-width:900px){
.hero{min-height:auto;padding:14px 0 22px}
.hero__inner{padding:20px 18px 18px;max-width:none}
.hero h1{font-size:29px;line-height:1.12;margin-bottom:12px}
.hero__lead{font-size:16px;line-height:1.5;margin-bottom:16px}
.hero__bg{background-position:center 55%}
.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}
}
/* невысокий ноутбук (1366×650): заголовок, подзаголовок, призыв и кнопка — без прокрутки */
@media (max-height:720px) and (min-width:901px){
.hero{padding:18px 0}
.hero__inner{padding:24px 30px 22px}
.hero h1{font-size:clamp(30px,3.2vw,44px);margin-bottom:12px}
.hero__lead{font-size:17px;margin-bottom:16px}
.hero-form__lure{margin-bottom:8px}
}
.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:var(--fg-3)}
.hero__scroll{
  position:absolute;left:50%;bottom:20px;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:2px;
  color:var(--fg-2);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:var(--fg)}
.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}
}
.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:var(--fg);
}
.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[type="tel"]{
  flex:1;min-width:0;height:62px;padding:0 18px;
  border:2px solid var(--border-2);border-radius:var(--radius-sm);
  background:#fff;color:var(--fg);
  font-family:var(--font-b);font-size:17px;font-weight:500;
  box-shadow:0 2px 6px rgba(15,23,42,.06);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.hero-form input[type="tel"]::placeholder{color:#94A3B8;font-weight:400}
.hero-form input[type="tel"]:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(220,38,38,.2);
}
.hero-form .button{flex:0 0 auto;min-height:62px}
.hero-form__error{min-height:20px;margin-top:8px;font-size:14px;color:var(--accent)}
.button--outline{
  background:#fff;color:var(--fg);border:2px solid var(--accent);
  box-shadow:0 2px 6px rgba(15,23,42,.06);
}
.button--outline:hover{background:var(--accent-soft);border-color:var(--accent-600);color:var(--fg)}
.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}
.hero-form input[type="tel"]{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:16px;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:16px}
.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{position:absolute;inset:0;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(--surface);border:1px solid var(--border);box-shadow:var(--shadow);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:var(--fg);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(--surface-2);color:var(--fg);padding:var(--space-8) 0}
.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:var(--fg-3);font-size:16px}
.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:16px;color:var(--fg-2);line-height:1.5;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:16px;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:18px;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:18px;font-weight:700;color:var(--fg);line-height:1.2;
}
.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:14px;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{flex-wrap:wrap}
.expert__bubble{flex-basis:100%;margin-top:4px;padding:10px 14px;font-size:16px;line-height:1.45}
.expert__bubble::before{left:24px}
.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:17px;padding:9px 10px 10px;line-height:1.2}
.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(--surface);color:var(--fg-3);padding-top:var(--space-8);border-top:1px solid var(--border)}
.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:var(--fg);text-decoration:none}
.footer__phone:hover{color:var(--accent)}
.footer__bottom{
  border-top:1px solid var(--border);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:var(--fg-3)}
.footer__bottom a:hover{color:var(--fg)}
@media (max-width:760px){
.footer__top{flex-direction:column;gap:var(--space-5)}
.footer__contacts{align-items:flex-start}
}

/* ============================================================
   Дополнения для сайта avtovykup-spb.ru (СПб)
   ============================================================ */

/* На телефонах — облегчённая картинка первого экрана */
@media (max-width:900px){
.hero__bg{background-image:url('images/hero-bg-m.webp?v=2')}
}

/* Согласие под формой первого экрана — на тёмном фоне */
.consent--hero{margin-top:10px;max-width:560px;gap:10px}
.consent--hero span{font-size:13px}
.consent--hero input{width:20px;height:20px;margin-top:0}

/* Сделки: цена на Авито и цена выкупа */
.case__body--prices{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px}
.case__body--prices h3{margin-bottom:0}
.case__prices{margin:0;display:grid;gap:4px}
.case__prices div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.case__prices dt{font-size:13.5px;color:var(--fg-3)}
.case__prices dd{margin:0;font-family:var(--font-h);font-weight:700;font-size:16px;color:var(--fg-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.case__prices .is-buy dt{color:var(--fg-2);font-weight:500}
.case__prices .is-buy dd.case__price{font-size:21px;font-weight:800;color:var(--accent)}

/* Отправка идёт */
.button.is-busy{opacity:.7;cursor:progress}

/* Не получилось отправить — телефон и мессенджеры */
.form-fail{
  margin-top:14px;padding:14px 16px;border-radius:var(--radius-sm);
  background:var(--accent-soft);border:1px solid #FECACA;color:var(--fg-2);
  font-size:14.5px;line-height:1.5;
}
.form-fail b{color:var(--accent-600)}
.form-fail__phone{display:block;margin:6px 0;font-family:var(--font-h);font-weight:800;font-size:20px;color:var(--fg);text-decoration:none}
.form-fail__links{display:flex;flex-wrap:wrap;gap:8px 14px}
.form-fail__links a{color:var(--fg-2);font-weight:600}
.form-fail--hero{max-width:560px}

/* Галочка согласия не отмечена при отправке — подсвечиваем */
.consent{border-radius:8px;transition:background-color .2s ease}
.consent--error{background:rgba(220,38,38,.1);box-shadow:0 0 0 2px var(--accent);padding:6px 8px;animation:consentShake .4s ease}
.consent--error span{color:var(--accent)}
.consent--error input{outline:2px solid var(--accent);outline-offset:2px}
@keyframes consentShake{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.consent--error{animation:none}}

/* Неактивная кнопка отправки (номер ещё не введён полностью) */
/* кнопка ждёт полный номер: цвет остаётся полным, неактивность — мягко (курсор и чуть ниже яркость) */
.button.is-inactive{cursor:not-allowed;filter:brightness(.95) saturate(.92)}   /* пульсация кнопки остаётся — она зовёт оставить номер */
.button.is-inactive:hover{transform:none}
/* поле телефона не заполнено до конца — подсветка */
input.field-error, .hero-form input.field-error, .exit-form__row input.field-error, .quiz-field input.field-error{
  border-color:var(--accent) !important;box-shadow:0 0 0 3px rgba(220,38,38,.18) !important;animation:consentShake .4s ease
}
@media (prefers-reduced-motion:reduce){input.field-error{animation:none}}

/* Тёмная кнопка (в окне при уходе, рядом с красной) */
.button--dark{background:var(--dark);color:#fff}
.button--dark:hover:not(:disabled){background:var(--dark-2)}
.exit-form .button{min-height:56px}

/* ---- Окно при уходе (только компьютер) ---- */
.modal-open{overflow:hidden}
.exit-modal{
  position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:24px;
  background:rgba(15,23,42,.62);animation:modalIn .2s ease;
}
.exit-modal__card{
  position:relative;display:grid;grid-template-columns:300px 1fr;width:min(860px,100%);
  max-height:calc(100svh - 48px);overflow:auto;
  background:var(--surface);color:var(--fg);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
}
.exit-modal__photo{background:var(--surface-2) url('images/hero-bg.webp?v=2') 86% center/cover no-repeat;min-height:100%}
.exit-modal__body{padding:36px 36px 30px}
.exit-modal h2{font-size:28px;margin:8px 0 16px}
.exit-modal__list{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:10px}
.exit-modal__list li{display:flex;gap:10px;align-items:flex-start;font-size:16px;color:var(--fg-2);line-height:1.45}
.exit-modal__list svg{width:20px;height:20px;color:var(--ok);flex-shrink:0;margin-top:2px}
.exit-modal__quiz{width:100%}
.exit-modal__or{margin:18px 0 10px;font-size:15px;color:var(--fg-3);text-align:center}
.exit-form__row{display:flex;gap:10px}
.exit-form__row input{
  flex:1;min-width:0;height:56px;padding:0 16px;border:2px solid var(--border-2);border-radius:var(--radius-sm);
  font:500 17px var(--font-b);color:var(--fg);background:#fff;
}
.exit-form__row input:focus{outline:none;border-color:var(--accent)}
.exit-form .consent{margin-top:12px}
.exit-form .hero-form__error{color:var(--accent);min-height:0;margin-top:6px;font-size:14px}
.exit-modal__close{
  position:absolute;top:12px;right:12px;z-index:2;width:40px;height:40px;border:none;border-radius:50%;
  background:var(--surface-2);color:var(--fg-2);display:grid;place-items:center;cursor:pointer;
}
.exit-modal__close:hover{background:var(--border)}
.exit-modal__close svg{width:20px;height:20px}
@keyframes modalIn{from{opacity:0}to{opacity:1}}
@media (max-width:1023px){.exit-modal{display:none !important}}

/* ---- Плашка о cookie: компактная; на телефоне — тонкая полоса в одну строку ---- */
.cookie-bar{
  position:fixed;right:16px;bottom:16px;z-index:200;max-width:400px;
  display:flex;gap:14px;align-items:center;padding:10px 10px 10px 16px;
  background:var(--surface);color:var(--fg-2);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow-lg);font-size:14px;line-height:1.4;
}
.cookie-bar p{margin:0}
.cookie-bar a{color:var(--fg);white-space:nowrap}
.cookie-bar__ok{
  flex-shrink:0;min-height:40px;padding:0 18px;border:none;border-radius:var(--radius-sm);cursor:pointer;
  background:var(--dark);color:#fff;font:700 15px var(--font-h);
}
.cookie-bar__ok:hover{background:var(--dark-2)}
@media (max-width:520px){
.cookie-bar{
  left:0;right:0;bottom:0;max-width:none;border-radius:0;border-width:1px 0 0;box-shadow:0 -4px 14px rgba(15,23,42,.08);
  padding:6px 8px 6px 12px;padding-bottom:calc(6px + env(safe-area-inset-bottom));
  font-size:13px;gap:8px;white-space:nowrap;
}
.cookie-bar p{overflow:hidden;text-overflow:ellipsis}
.cookie-bar__ok{min-height:32px;padding:0 14px;font-size:14px}
/* пока полоса на экране, плавающие «Назад / Далее» квиза поднимаем над ней */
.has-cookie-bar .quiz__navhold.is-floating .quiz__nav{bottom:44px}
}

/* ---- Окно с капчей (после отправки открытой формы) ---- */
.captcha-modal{
  position:fixed;inset:0;z-index:320;display:grid;place-items:center;padding:16px;
  background:rgba(15,23,42,.55);animation:modalIn .2s ease;
}
.captcha-modal__card{
  position:relative;width:min(440px,100%);padding:30px 26px 24px;
  background:var(--surface);color:var(--fg);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);text-align:center;
}
.captcha-modal h2{font-size:24px;margin-bottom:10px}
.captcha-modal__text{font-size:16px;color:var(--fg-2);margin-bottom:18px}
.captcha-modal__widget{min-height:102px;display:flex;justify-content:center}
.captcha-modal__error{margin-top:10px;color:var(--accent);font-size:15px}
.form-done{margin-top:10px;font-size:15px;font-weight:600;color:var(--ok)}
/* картинка ещё не подгрузилась — не показываем подпись к ней в пустой рамке */
img[data-src]{opacity:0}
img{transition:opacity .25s ease}
/* кнопки мессенджеров — под палец, не ниже 48 px */
.chip{min-height:48px}
/* метки над заголовками — чуть темнее красного кнопок, чтобы читались и на сером фоне */
.kicker{color:var(--accent-600)}
.kicker::before{background:var(--accent-600)}
/* планшет (641–900 px): поле телефона и кнопка в одну строку, поле не сжимается */
@media (min-width:641px) and (max-width:900px){
.hero-form__row .button{width:auto;flex:0 0 auto}
.hero-form input[type="tel"]{min-width:260px}
}

/* ============ Правки Дмитрия (24.09) ============ */

/* Первый экран: плашка целиком помещается в первый экран */
.hero{min-height:calc(100svh - var(--header-h));padding:20px 0}
.hero__inner{padding:26px 32px 24px}
.hero h1{font-size:clamp(30px,3.1vw,46px);margin-bottom:12px}
.hero__lead{margin-bottom:16px}
.hero__actions{gap:10px}
.hero-form__lure{margin-bottom:8px}
.hero__or{margin-top:2px}
@media (max-height:760px) and (min-width:901px){
.hero{padding:14px 0}
.hero__inner{padding:20px 28px 18px}
.hero h1{font-size:clamp(28px,2.8vw,40px);margin-bottom:10px}
.hero__lead{font-size:16.5px;margin-bottom:12px}
.hero-form input[type="tel"], .hero-form .button{height:56px;min-height:56px}
.hero__calc{min-height:52px}
.consent--hero{margin-top:6px}
}
@media (max-width:900px){
.hero{min-height:auto;padding:12px 0 16px}
.hero__inner{padding:18px 16px 16px}
.hero__or{display:none}              /* мессенджеры есть в шапке — плашка помещается в экран телефона */
}

/* Реальные сделки: заголовок в одну строку */
.section-heading--one h2{font-size:clamp(26px,3vw,40px)}
@media (min-width:901px){ .section-heading--one h2{white-space:nowrap} }

/* Квиз: заголовок в одну строку, сам блок заметно выделяется на фоне секции */
.quiz-intro{max-width:none}
@media (min-width:901px){ .quiz-intro h2{white-space:nowrap} }
.quiz-section{background:linear-gradient(180deg,#E3E9F1 0%,#D9E1EC 100%)}
.quiz-wrap{border:1px solid #C8D2DF;border-top:5px solid var(--accent);box-shadow:0 24px 60px rgba(15,23,42,.18), 0 6px 16px rgba(15,23,42,.08)}
h1, h2{text-wrap:balance}

/* ============ Правки Дмитрия (24.09, вторая партия) ============ */

/* Заголовки — плотнее и жирнее, чтобы не терялись рядом с текстом */
h1, h2, h3{font-family:var(--font-h)}
.hero h1{font-weight:900;letter-spacing:-.025em;line-height:1.08;color:#0B1220}
.section-heading h2, .quiz-intro h2{font-weight:800;letter-spacing:-.02em}

/* Логотип «ВЫКУП АВТО», подпись — справа от него */
.logo{flex-direction:row;align-items:center;gap:12px}
.logo small{margin-top:0;padding-left:12px;border-left:1px solid var(--border-2);line-height:1.3;letter-spacing:.14em;font-size:10.5px}
.logo__row{font-weight:900;letter-spacing:-.02em}

/* Иконки мессенджеров крупнее */
.socials a{width:48px;height:48px;border-radius:12px}
.socials img{width:28px;height:28px}

/* Галочка согласия под формой первого экрана — мельче и тише */
.consent--hero{margin-top:8px;gap:8px;align-items:center}
.consent--hero span{font-size:11.5px;line-height:1.35;color:#8190A5}
.consent--hero a{color:#6B7A90}
.consent--hero input{width:16px;height:16px;margin:0}

@media (max-width:560px){
.logo small{display:none}                 /* на телефоне места нет: логотип, мессенджеры и номер */
.logo__row{font-size:19px}
.socials a{width:40px;height:40px;border-radius:10px}
.socials img{width:24px;height:24px}
.header__phone{font-size:15px}
.consent--hero span{font-size:11px}
/* мессенджеры на первом экране телефона — возвращаем, компактной строкой */
.hero__or{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin-top:0;width:100%}
.hero__or > span{font-size:14px;white-space:nowrap}
.hero__or .chip{flex:1;min-height:44px;padding:0 10px}
}
@media (max-width:370px){
.logo__row{font-size:16.5px}
.header__phone{font-size:14px}
.socials a{width:36px;height:36px}
.socials img{width:22px;height:22px}
.hero__or > span{display:none}
}
@media (min-width:561px) and (max-width:900px){ .hero__or{display:flex} }
/* узкие телефоны (до 400 px): шапка и плашка первого экрана без выхода за край */
@media (max-width:400px){
.header__inner{gap:6px}
.header__right{gap:6px}
.logo__row{font-size:16.5px}
.socials{gap:5px}
.socials a{width:38px;height:38px}
.socials img{width:23px;height:23px}
.header__phone{font-size:14.5px}
.hero{padding:8px 0 12px}
.hero__inner{padding:16px 14px 14px}
.hero h1{font-size:27px;margin-bottom:8px}
.hero__lead{font-size:15.5px;margin-bottom:12px}
.hero-form__lure{font-size:14.5px;margin-bottom:6px}
.hero__actions{gap:8px}
}
@media (max-width:370px){
.logo__row{font-size:15.5px}
.header__hours{font-size:9.5px;gap:4px}
.header__phone{font-size:14px}
}

/* ============ Правки Дмитрия (24.09, третья партия) ============ */

/* Главный заголовок — капслоком */
.hero h1{text-transform:uppercase;letter-spacing:-.01em;line-height:1.06}

/* Дескриптор рядом с лого — развёрнуто, в две строки */
.logo small{font-size:10px;letter-spacing:.08em;line-height:1.35}

/* Заголовки блоков — одного размера */
.section-heading h2, .section-heading--one h2, .quiz-intro h2{font-size:clamp(24px,2.5vw,34px)}

/* Иконки мессенджеров крупнее внутри своих рамок */
.socials img{width:32px;height:32px}
.chip img{width:24px;height:24px}

/* Варианты в квизе: подписи — основным шрифтом (он уже), «Без документов» помещается в строку */
.opt b, .opt--img b{font-family:var(--font-b)}
.opt__badge{white-space:nowrap}

@media (max-width:560px){
.socials img{width:28px;height:28px}
.opt__badge{font-size:10.5px;letter-spacing:.02em;padding:5px 7px;left:6px;top:6px}
.opt--img b{font-size:17px;padding:9px 9px 10px}
/* мессенджеры на первом экране телефона — только иконки */
.hero__or .chip__text{display:none}
.hero__or .chip{min-height:48px}
.hero__or .chip img{width:30px;height:30px}
}
@media (max-width:400px){
.socials img{width:26px;height:26px}
}
@media (max-width:400px){ .hero h1{font-size:24.5px} }
@media (max-width:400px){ .opt-grid--img{gap:8px} .opt--img b{font-size:16.5px;padding:9px 6px 10px;letter-spacing:-.015em} }

/* ============ Типограф и окно при уходе (24.09) ============ */
/* абзацы — без одного слова на последней строке; заголовки — ровные строки (balance выше) */
p, li, .consent span, .form-fail{text-wrap:pretty}
h1, h2, h3, .button, .button__label{hyphens:none}

/* Окно при уходе: только форма с открытым полем телефона */
.exit-modal h2{font-size:clamp(22px,2vw,26px);white-space:nowrap}
.exit-modal__lure{margin:4px 0 12px;font-family:var(--font-h);font-weight:700;font-size:16px;color:var(--fg)}
.exit-form .consent--hero{margin-top:10px}

/* кнопка под сделками — всегда в одну строку */
.cases__cta .button{white-space:nowrap}
.cases__cta .button__label{white-space:nowrap}

/* подвал: мессенджеры крупными кнопками с названием */
.footer__messengers{display:flex;gap:10px;flex-wrap:wrap}
.footer__msg{
  display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:0 22px 0 14px;
  border:1px solid var(--border);border-radius:14px;background:var(--surface-2);
  font-family:var(--font-h);font-weight:700;font-size:17px;color:var(--fg);text-decoration:none;
  transition:border-color .2s ease,background-color .2s ease;
}
.footer__msg:hover{border-color:var(--accent);background:var(--accent-soft)}
.footer__msg img{width:32px;height:32px;flex-shrink:0}
@media (max-width:560px){
.footer__messengers{width:100%}
.footer__msg{flex:1;justify-content:center}
}

/* первый экран: «Калькулятор онлайн» и мессенджеры ближе к строке согласия
   (место под текст ошибки появляется, только когда ошибка есть) */
.hero-form__error{min-height:0;margin-top:0}
.hero-form__error:not(:empty){margin-top:6px}
.hero-form .form-fail:not(.hidden){margin-top:8px}
@media (min-width:901px){ .hero__actions{gap:12px} .hero__calc{margin-top:2px} }
