/* ============================================================
   БАНКИРРО — лендинг реструктуризации долгов. Самописная вёрстка.
   Без внешних зависимостей. Шрифт — системный (без Google Fonts).
   ============================================================ */

:root{
  --navy:#1f2d5e;
  --heading:#1c2a47;
  --footer-bg:#16213f;
  --red:#c2392e;          /* CTA-кнопки */
  --red-dark:#a82f26;
  --red-accent:#e02b1f;   /* акценты: сумма долга, прогресс, валидация */
  --bg:#eef1f5;
  --card:#ffffff;
  --line:#e3e8f0;
  --text:#3b4659;
  --muted:#5b6b86;
  --gold:#ffb400;
  --container:1200px;
  --radius:16px;
  --shadow:0 18px 40px -22px rgba(20,30,60,.35);
  --font:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--font);
  background:var(--bg); color:var(--text);
  line-height:1.55; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }

.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 20px; }
.section{ padding:clamp(44px,6.5vw,84px) 0; }

/* ── Типографика секций ── */
.h2{
  font-size:clamp(26px,3.4vw,40px); line-height:1.12; font-weight:800;
  color:var(--heading); margin:0 0 12px;
}
.section__sub{ font-size:clamp(16px,1.6vw,19px); color:var(--muted); margin:0 0 32px; max-width:760px; }

/* ── Кнопки ── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; text-align:center;
  font:inherit; font-weight:700; font-size:16px; cursor:pointer;
  border-radius:14px; padding:16px 28px; min-height:58px;
  border:2px solid transparent; transition:background .15s,color .15s,transform .05s;
  text-decoration:none; line-height:1.2;
}
.btn:active{ transform:translateY(1px); }
.btn--primary{ background:var(--red); color:#fff; }
.btn--primary:hover{ background:var(--red-dark); }
.btn--outline{ background:#fff; color:var(--red); border-color:var(--red); }
.btn--outline:hover{ background:var(--red); color:#fff; }
.btn--lg{ min-height:64px; font-size:17px; padding:18px 34px; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }
/* пульсирующий красный ореол для кнопки обратного звонка */
.btn--pulse{ animation:btnPulse 1.8s ease-out infinite; }
@keyframes btnPulse{
  0%{ box-shadow:0 0 0 0 rgba(194,57,46,.5); }
  70%{ box-shadow:0 0 0 16px rgba(194,57,46,0); }
  100%{ box-shadow:0 0 0 0 rgba(194,57,46,0); }
}
@media (prefers-reduced-motion:reduce){ .btn--pulse{ animation:none; } }
/* плавающая КРУГЛАЯ кнопка обратного звонка — небольшая, с иконкой и кольцами; видна со 2-го экрана */
.callfab{
  position:fixed; right:24px; bottom:24px; z-index:8000;
  width:58px; height:58px; border-radius:50%; border:0; cursor:pointer;
  background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center; padding:0;
  box-shadow:0 8px 20px -6px rgba(194,57,46,.65);
  opacity:0; visibility:hidden; pointer-events:none;          /* показываем по скроллу (main.js) */
  transition:opacity .25s ease, transform .15s, background .15s;
}
.callfab.is-visible{ opacity:1; visibility:visible; pointer-events:auto; }
.callfab svg{ position:relative; z-index:1; width:26px; height:26px; fill:#fff; }
.callfab:hover{ background:var(--red-dark); transform:scale(1.06); }
.callfab:active{ transform:scale(.95); }
/* расходящиеся кольца (пульс) */
.callfab::before, .callfab::after{
  content:""; position:absolute; inset:0; border-radius:50%;
  border:2px solid var(--red); z-index:0;
  animation:callfabRipple 2.4s ease-out infinite;
}
.callfab::after{ animation-delay:1.2s; }
@keyframes callfabRipple{
  0%{   transform:scale(1);    opacity:.6; }
  100%{ transform:scale(1.85); opacity:0; }
}
@media (prefers-reduced-motion:reduce){ .callfab::before,.callfab::after{ animation:none; display:none; } }
@media (max-width:480px){ .callfab{ right:16px; bottom:16px; width:52px; height:52px; } .callfab svg{ width:24px; height:24px; } }

/* ============================================================
   ШАПКА
   ============================================================ */
.hero-shell{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg,#eef1f6 0%,#f6f8fb 100%);
}
.hero-shell .container{ max-width:1490px; padding-left:60px; padding-right:60px; }
.site-header{ position:relative; z-index:5; background:transparent; border-bottom:0; }
.header__inner{
  display:grid; grid-template-columns:auto minmax(260px,1fr) auto; align-items:center; gap:28px;
  min-height:122px; padding:18px 0;
}
.header__logo img{ height:92px; width:auto; }
.header__slogan{ color:var(--muted); font-size:13px; line-height:1.3; max-width:180px; }
.header__rating{ display:flex; align-items:center; gap:2px 7px; flex-wrap:wrap; }
.header__rating .score{ font-weight:800; color:var(--heading); font-size:18px; }
.header__rating .stars{ color:var(--gold); font-size:14px; letter-spacing:1px; }
.header__rating .cap{ flex-basis:100%; font-size:11px; color:var(--muted); line-height:1.3; }
.header__address{
  display:flex; gap:12px; align-items:flex-start; color:var(--muted);
  font-size:17px; line-height:1.35; max-width:720px; justify-self:center;
}
.header__address svg{ flex:none; width:28px; height:28px; fill:var(--red); margin-top:0; }
.header__address b{ color:var(--heading); }
.header__address span{ display:block; text-align:left; }
.header__address .header__addr-lines{ display:flex; flex-direction:column; gap:3px; }
.header__address-mobile{ display:none !important; }
.header__cta .btn{
  min-width:285px; min-height:72px; padding:14px 28px;
  border-radius:20px; font-size:20px; white-space:nowrap;
  background:rgba(255,255,255,.34);
}
/* На ховере — сплошной красный фон с белым текстом (как у основной кнопки). */
.header__cta .btn:hover{ background:var(--red); color:#fff; border-color:var(--red); }
.header__cta{ justify-self:end; }
@media (min-width:1200px){ .header__cta{ transform:translateX(30px); } }

@media (max-width:1080px){
  .hero-shell .container{ padding-left:24px; padding-right:24px; }
  .header__inner{ grid-template-columns:auto auto; min-height:82px; gap:10px 16px; }
  .header__logo img{ height:58px; }
  .header__address{ grid-column:1 / -1; width:100%; max-width:none; font-size:12px; justify-self:start; }
  .header__address svg{ width:20px; height:20px; }
  .header__cta .btn{ min-width:0; min-height:46px; padding:9px 16px; border-radius:14px; font-size:14px; }
}
@media (max-width:560px){
  .hero-shell{ background:#eef0f5; }
  .site-header{ background:transparent; }
  .hero-shell .container{ padding-left:20px; padding-right:20px; }
  .header__inner{
    display:grid; grid-template-columns:minmax(124px,.9fr) minmax(0,1.1fr);
    align-items:center; gap:8px; min-height:72px; padding:10px 0; width:100%;
  }
  .header__logo{ display:block; min-width:0; }
  .header__logo img{ width:clamp(140px,40vw,164px); height:auto; }
  .header__address{
    display:flex; grid-column:2; justify-self:end; align-items:flex-start;
    width:auto; max-width:100%; gap:6px; font-size:clamp(10.5px,2.8vw,12.5px);
    line-height:1.25; color:var(--heading);
  }
  .header__address svg{ width:20px; height:20px; margin-top:1px; }
  .header__address-full{ display:none !important; }
  .header__addr-lines{ display:none !important; }
  .header__address-mobile{ display:block !important; }
  .header__address-mobile b{ font-weight:800; }
  .header__cta{ display:none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; z-index:1; background:transparent; }
.hero__inner{
  position:relative; display:flex; flex-direction:column; gap:0;
  padding:10px 0 0; min-height:calc(100svh - 64px);
}
.hero__content{
  position:relative; z-index:2; order:2; min-width:0;
  padding:30px 0 50px;
}
.hero__h1{
  max-width:780px; font-size:clamp(34px,3.9vw,58px);
  line-height:1.15; font-weight:800; letter-spacing:0;
  color:var(--heading); margin:0 0 22px;
  overflow-wrap:break-word; hyphens:auto;
}
.hero__h1 span{ display:block; white-space:nowrap; }
.hero__sub{
  font-size:clamp(16px,1.45vw,21px); line-height:1.65;
  color:#526079; margin:0 0 28px; max-width:720px;
}
.hero__cta{
  width:100%; max-width:480px; min-height:86px;
  border-radius:20px; font-size:22px;
}
.hero__bonus{
  display:flex; align-items:center; gap:20px; max-width:620px;
  margin-top:44px; padding:0;
  background:transparent; border:0;
}
.hero__bonus-ico{
  flex:none; width:68px; height:78px; border:0; border-radius:0;
  display:flex; align-items:center; justify-content:center;
  background:transparent; box-shadow:none;
}
.hero__bonus-file{
  width:68px; height:78px; stroke:#5b6b86; fill:none; stroke-width:1.25;
  stroke-linecap:round; stroke-linejoin:round;
}
.hero__bonus-file text{
  fill:#5b6b86; stroke:none; font-size:9.5px; font-weight:800; letter-spacing:0;
  text-anchor:middle; font-family:var(--font);
}
.hero__bonus-cap{ font-size:17px; color:var(--muted); }
.hero__bonus-title{ font-weight:800; color:var(--heading); font-size:18px; line-height:1.35; }
.hero__bonus-sub{ font-size:17px; color:var(--muted); line-height:1.35; }
.hero__disclaimer{ max-width:620px; margin-top:16px; font-size:12px; line-height:1.42; color:var(--muted); }

/* ── Контентные секции посадочных под автотаргетинг (/dolg-banku/ и др.) ── */
.lp-section{ padding:clamp(26px,4vw,48px) 0 0; }
.lp-section .container{ max-width:920px; }
.lp-section h2{ font-size:clamp(20px,2.4vw,28px); font-weight:800; color:var(--heading); line-height:1.25; margin:0 0 14px; }
.lp-section p{ color:var(--text); font-size:16px; line-height:1.7; margin:0 0 14px; }
.lp-section ol,.lp-section ul{ margin:0 0 14px; padding-left:22px; color:var(--text); font-size:16px; line-height:1.7; }
.lp-section li{ margin-bottom:8px; }
.lp-note{ font-size:12.5px; color:var(--muted); line-height:1.5; }
/* статичные вопросы квиза (fallback в исходнике; JS заменяет их интерактивом) */
#quizBody h2.quiz__q{ font-size:20px; margin:18px 0 10px; }
.quiz-static{ list-style:none; margin:0 0 6px; padding:0; }
.quiz-static li{ padding:6px 0; border-bottom:1px solid var(--line); color:var(--text); font-size:15px; }
/* аккордеоны доп-текстов (нативные details/summary — текст остаётся в исходнике) */
.lp-acc{ border:1px solid var(--line); border-radius:14px; background:#fff; margin-bottom:12px; overflow:hidden; }
.lp-acc summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; }
.lp-acc summary::-webkit-details-marker{ display:none; }
.lp-acc summary h2{ margin:0; font-size:clamp(17px,2vw,20px); line-height:1.3; }
.lp-acc summary::after{ content:"+"; flex:none; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#f2f4f8; color:var(--heading); font-size:18px; font-weight:700; }
.lp-acc[open] summary::after{ content:"–"; }
.lp-acc__body{ padding:0 18px 16px; }

.hero__media{
  position:relative; order:1; min-height:clamp(340px,56vh,520px);
  margin:0 -20px; display:flex; justify-content:center; align-items:flex-start;
  overflow:hidden;
}
.hero__photo{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  height:clamp(540px,88vh,820px); width:auto; max-width:none; object-fit:contain;
  filter:none;
}
.hero__namecard{
  position:absolute; z-index:3; left:50%; bottom:18px; transform:translateX(-50%);
  width:min(350px,calc(100% - 40px)); padding:18px 22px 18px 48px; text-align:left;
  background:rgba(255,255,255,.94); border:1px solid rgba(227,232,240,.95);
  border-radius:20px; box-shadow:0 20px 45px -28px rgba(20,30,60,.45);
}
.hero__namecard::before{
  content:""; position:absolute; left:28px; top:26px; width:3px; height:34px; background:var(--red);
}
.hero__namecard b{ color:var(--heading); display:block; font-size:24px; line-height:1.2; }
.hero__namecard span{ color:var(--heading); display:block; margin-top:12px; font-size:17px; line-height:1.45; }

@media (min-width:980px){
  .hero__inner{
    display:grid; grid-template-columns:minmax(0,54%) minmax(420px,46%);
    align-items:end; gap:0;
    min-height:calc(100svh - 122px); padding-top:28px;
  }
  .hero__content{
    order:0; align-self:center;
    padding:30px 20px 70px 0;
  }
  .hero__media{
    order:0; align-self:stretch; min-height:calc(100svh - 122px);
    margin:0 -60px 0 0; justify-content:flex-end; overflow:visible;
  }
  .hero__photo{
    top:-30px; left:calc(50% - 30px); transform:translateX(-50%);
    height:clamp(760px,calc(100svh - 76px),1000px);
    -webkit-mask-image:none; mask-image:none;
  }
  .hero__namecard{
    left:auto; right:clamp(60px,6vw,88px); top:auto; bottom:clamp(92px,11.2vh,118px);
    transform:none; text-align:left;
  }
}
@media (max-width:560px){
  .hero{ min-height:0; }
  .hero__inner{ display:block; min-height:0; padding:0 0 26px; }
  .hero__media{
    position:absolute; z-index:1; top:-35px; left:-20px; right:-20px;
    width:auto; height:440px; min-height:0; margin:0;
    display:block; overflow:hidden; background:#eef0f5;
  }
  .hero__media::after{
    content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
    background:linear-gradient(180deg,
      rgba(238,240,245,0) 42%,
      rgba(238,240,245,.25) 52%,
      rgba(238,240,245,.82) 68%,
      #eef0f5 88%,
      #eef0f5 100%);
  }
  .hero__photo{
    top:0; left:50%; transform:translateX(-50%);
    height:640px; width:auto; max-width:none; object-fit:contain;
    -webkit-mask-image:none; mask-image:none;
  }
  .hero__namecard{
    z-index:3; top:260px; left:40px; bottom:auto; transform:none;
    width:calc(100% - 60px); padding:0 0 0 18px; text-align:left;
    background:transparent; border:0; border-radius:0; box-shadow:none;
  }
  .hero__namecard::before{ left:0; top:2px; width:3px; height:46px; }
  .hero__namecard b{ font-size:20px; line-height:1.15; }
  .hero__namecard span{
    max-width:100%; margin-top:4px; font-size:12.5px; line-height:1.3;
    color:var(--heading);
  }
  .hero__content{
    position:relative; z-index:4; order:0;
    padding:285px 0 24px;
  }
  .hero__h1{
    max-width:none; margin:0 0 14px;
    font-size:clamp(25px,6.85vw,27px); line-height:1.08; hyphens:none;
  }
  .hero__h1 span{ display:block; white-space:nowrap; }
  .hero__h1 span:not(:last-child)::after{ content:none; }
  .hero__sub{
    max-width:none; margin:0 0 18px;
    font-size:14px; line-height:1.42; color:#3f4e69;
  }
  .hero__cta{
    max-width:none; min-height:62px; padding:14px 18px;
    border-radius:15px; font-size:18px;
  }
  .hero__bonus{
    align-items:center; gap:12px; max-width:none;
    margin-top:18px; padding:0;
  }
  .hero__bonus-ico{ width:50px; height:58px; }
  .hero__bonus-file{ width:50px; height:58px; }
  .hero__bonus-cap,.hero__bonus-sub{ font-size:12px; line-height:1.3; }
  .hero__bonus-title{ font-size:13px; line-height:1.3; }
  .hero__disclaimer{ max-width:none; margin-top:12px; font-size:11px; line-height:1.35; }
}
@media (max-width:380px){
  .header__logo img{ width:140px; }
  .hero__h1{ font-size:25px; }
}

/* ============================================================
   «УЗНАЁТЕ СЕБЯ?»
   ============================================================ */
.pains__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.pain-card{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:26px 18px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px;
}
.pain-card svg{ width:54px; height:54px; stroke:var(--navy); fill:none; stroke-width:1.6; }
.pain-card b{ color:var(--heading); font-size:16px; }
.pains__note{ margin-top:24px; color:var(--muted); font-size:14px; max-width:900px; }

/* ============================================================
   ВИДЕО-КЕЙСЫ (тёмная секция)
   ============================================================ */
.cases{ background:#2a2d35; }
.cases .h2{ color:#fff; }
.cases__carousel{ position:relative; }
.cases__track{
  display:flex; gap:18px; overflow-x:auto;
  padding:26px 24px 44px; scrollbar-width:none;
  touch-action:pan-y;   /* горизонтальный свайп обрабатываем сами (см. main.js) */
}
.cases__track::-webkit-scrollbar{ display:none; }
.case-card{
  flex:0 0 300px; max-width:300px;
  aspect-ratio:9/16; position:relative; border-radius:16px; overflow:hidden;
  background:#3a3d45; cursor:default; opacity:.78;
  transition:transform .45s ease, box-shadow .45s ease, opacity .45s ease;
}
.case-card.is-current{
  opacity:1; transform:scale(1.06); z-index:2;
  box-shadow:0 14px 30px rgba(0,0,0,.5);
}
.case-card picture{ display:block; width:100%; height:100%; }
.case-card img{ width:100%; height:100%; object-fit:cover; }
.case-card__overlay{
  position:absolute; inset:0; z-index:2;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:14px 12px;
}
/* плотный градиент по нижней половине кадра — белый текст всегда контрастный */
.case-card__overlay::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(180deg,
    rgba(12,15,20,0) 44%,
    rgba(12,15,20,.5) 64%,
    rgba(12,15,20,.86) 100%);
}
.case-card__play{
  position:absolute; top:40%; left:50%; transform:translate(-50%,-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:none; border:0; padding:0; cursor:pointer; font:inherit;
}
.case-card__play .circle{
  width:64px; height:64px; border-radius:50%;
  background:rgba(95,98,105,.6);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 12px rgba(0,0,0,.3);
  transition:background .2s, transform .2s;
}
.case-card__play .circle svg{ width:26px; height:26px; fill:#fff; stroke:#fff; margin-left:2px; }
.case-card__play:hover .circle,
.case-card__play:focus-visible .circle{ background:rgba(95,98,105,.85); transform:scale(1.06); }
/* блок «твёрдых фактов» — над бабблом, на тёмном градиенте */
.case-card__facts{ position:relative; z-index:1; margin-bottom:9px; text-shadow:0 1px 4px rgba(0,0,0,.65); }
.case-card__debt{ color:#fff; font-weight:700; font-size:14px; line-height:1.25; }
.case-card__debt span{ color:#ff5a4d; font-weight:800; font-size:17px; }
.case-card__term{ color:#fff; font-weight:400; font-size:13px; line-height:1.3; margin-top:2px; }
/* цитата клиента — облачко сообщения (перекликается с подсказкой юриста в квизе) */
.case-card__bubble{
  position:relative; z-index:1;
  background:#fff; color:#1a1a1a;
  border-radius:12px; padding:10px 13px;
  font-size:12.5px; line-height:1.42; font-style:italic;
  box-shadow:0 10px 24px -10px rgba(0,0,0,.55);
}
/* хвостик-указатель вверх (к лицу клиента на видео) */
.case-card__bubble::before{
  content:""; position:absolute; top:-5px; left:18px;
  width:12px; height:12px; background:#fff;
  border-radius:3px 0 0 0; transform:rotate(45deg);
}
/* Стрелки ручного переключения (десктоп) */
.cases__arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:48px; height:48px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.92); color:#2a2d35; font-size:26px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.35); transition:background .15s, transform .1s;
}
.cases__arrow:hover{ background:#fff; }
.cases__arrow:active{ transform:translateY(-50%) scale(.93); }
.cases__arrow--prev{ left:8px; }
.cases__arrow--next{ right:8px; }
@media (max-width:700px){  /* на мобильных листаем кнопками-стрелками (свайп убран) */
  .cases__arrow{ width:44px; height:44px; font-size:24px; }
  .cases__arrow--prev{ left:4px; }
  .cases__arrow--next{ right:4px; }
}
.cases__dots{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:22px; }
.cases__dot{ position:relative; overflow:hidden; width:30px; height:5px; border:0; padding:0;
  border-radius:3px; cursor:pointer; background:rgba(255,255,255,.28); transition:background .2s; }
.cases__dot:hover{ background:rgba(255,255,255,.5); }
.cases__dot-fill{ position:absolute; left:0; top:0; bottom:0; width:0; background:#fff; border-radius:3px; }
.cases__cta{ text-align:center; margin-top:28px; }

/* ============================================================
   ИНЛАЙН-ФОРМА «ОБРАТНЫЙ ЗВОНОК» (после отзывов)
   ============================================================ */
/* Меньше пустого пространства между отзывами и формой заявки */
.reviews{ padding-bottom:clamp(24px,3vw,40px); }
.callback{ padding-top:clamp(24px,3vw,40px); }
.callback__card{
  max-width:760px; margin:0 auto; background:#fff;
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:clamp(24px,4vw,40px); text-align:center;
}
.callback__title{ font-size:clamp(22px,2.6vw,30px); line-height:1.15; font-weight:800;
  color:var(--heading); margin:0 0 10px; }
.callback__sub{ color:var(--muted); margin:0 0 24px; }
.callback__card .quiz__field,
.callback__card .consent-note{ text-align:left; }

/* ряд формы: на мобильных — колонкой, на ПК — имя + телефон + кнопка в строку */
.callback__row{ display:flex; flex-direction:column; gap:14px; text-align:left; }
.callback__row .quiz__field{ margin-bottom:0; }
.callback__btn{ width:100%; }
@media (min-width:760px){
  .callback__row{ flex-direction:row; align-items:flex-end; }
  .callback__row .quiz__field{ flex:1 1 0; }
  .callback__row .quiz__field input,
  .callback__btn{ height:54px; }
  .callback__btn{ width:auto; min-height:0; padding:0 28px; white-space:nowrap; }
}

/* согласие текстом (вместо чекбоксов) */
.consent-note{ font-size:12px; color:var(--muted); line-height:1.45; margin:8px 0 0; }
.consent-note a{ color:var(--muted); text-decoration:underline; }
.quiz__consent{ margin-top:14px; }
.quiz__consent[hidden]{ display:none; }

/* Лайтбокс с видео */
.vlightbox{ position:fixed; inset:0; z-index:9600; background:rgba(10,15,25,.85);
  display:none; align-items:center; justify-content:center; padding:20px; }
.vlightbox.is-open{ display:flex; }
.vlightbox__inner{ position:relative; }
.vlightbox__frame{ height:min(86vh,720px); aspect-ratio:9/16; background:#000;
  border-radius:14px; overflow:hidden; }
.vlightbox__frame iframe{ width:100%; height:100%; border:0; display:block; }
.vlightbox__close{ position:absolute; top:-44px; right:0; width:38px; height:38px; border:0;
  border-radius:50%; background:rgba(255,255,255,.18); color:#fff; font-size:24px; cursor:pointer; line-height:1; }

/* ============================================================
   ТАРИФЫ «КАКОЙ СПОСОБ ПОДОЙДЁТ»
   ============================================================ */
.methods__grid{ display:grid; grid-template-columns:1fr; gap:20px; }
.method-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px clamp(20px,3vw,32px); box-shadow:var(--shadow);
  display:flex; flex-direction:column;
}
.method-card__tag{ text-align:center; color:var(--muted); font-size:13px; letter-spacing:2px; text-transform:uppercase; }
.method-card__title{ text-align:center; color:var(--heading); font-weight:800; font-size:20px; margin:6px 0 18px; }
.method-card__list{ list-style:none; margin:0 0 18px; padding:0; }
.method-card__list li{
  display:flex; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--line);
}
.method-card__list li:last-child{ border-bottom:1px solid var(--line); }
.method-card__list .check{ flex:none; width:20px; height:20px; }
.method-card__list .check svg{ width:20px; height:20px; stroke:var(--heading); stroke-width:2.4; fill:none; }
.method-card__list .lbl{ color:var(--muted); }
.method-card__list .val{ color:var(--heading); font-weight:700; }
.method-card__note{ color:var(--muted); font-size:14px; margin:0 0 18px; }
.method-card__note b{ color:var(--heading); }
.method-card__bullets{ margin:0 0 22px; padding-left:18px; color:var(--muted); font-size:14px; }
.method-card__bullets li{ margin-bottom:6px; }
.method-card .btn{ margin-top:auto; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews__rating{ display:flex; align-items:center; gap:12px; margin-bottom:28px; flex-wrap:wrap; }
.reviews__rating .num{ font-size:22px; font-weight:800; color:var(--heading); }
.reviews__rating .stars{ color:var(--gold); font-size:22px; letter-spacing:2px; }
.reviews__rating .based{ color:var(--muted); font-size:14px; }
.reviews__carousel{ position:relative; }
.reviews__track{
  display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:8px; scrollbar-width:none;
}
.reviews__track::-webkit-scrollbar{ display:none; }
.review-card{
  scroll-snap-align:start; flex:0 0 100%;
  background:var(--card); border:1px solid var(--line); border-radius:16px; padding:22px;
}
.review-card__head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.review-card__ava{
  width:42px; height:42px; border-radius:50%; background:#eef1f6; flex:none;
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.review-card__name{ display:flex; align-items:center; gap:6px; font-weight:700; color:var(--heading); }
.review-card__badge{ width:16px; height:16px; fill:#3b82f6; }
.review-card__stars{ color:var(--gold); font-size:14px; letter-spacing:1px; }
.review-card__date{ color:var(--muted); font-size:12px; }
.review-card__text{ font-size:14px; color:var(--text); }
.review-card__text.clamp{ display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.review-card__more{ color:var(--red); font-size:13px; background:none; border:0; padding:6px 0 0; cursor:pointer; }
.reviews__btns{ display:flex; gap:12px; margin-top:18px; }
.reviews__arrow{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:#fff;
  cursor:pointer; font-size:18px; color:var(--heading);
  display:flex; align-items:center; justify-content:center;
}
.reviews__arrow:hover{ background:var(--bg); }

/* ============================================================
   КВИЗ
   ============================================================ */
.quiz{ background:#fff; }
.quiz-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); max-width:960px; margin:0 auto; padding:clamp(20px,3vw,34px);
}

/* ── Консультант + квиз в ОДНОМ блоке ── */
.quiz__layout{
  display:flex; gap:clamp(20px,3vw,36px); align-items:flex-start;
  max-width:1040px; margin:0 auto;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:clamp(20px,3vw,34px);
}
/* внутренняя карточка-форма больше не рисует свою рамку — общий блок один */
.quiz__layout .quiz-card{
  max-width:none; margin:0; flex:1 1 auto; min-width:0;
  background:transparent; border:0; box-shadow:none; border-radius:0; padding:0;
}
.quiz__consultant{
  flex:0 0 230px; text-align:center;
  border-right:1px solid var(--line); padding-right:clamp(20px,3vw,36px);
}
.quiz__consultant-photo-wrap{ position:relative; width:100%; max-width:200px; margin:0 auto 14px; }
.quiz__consultant-photo{
  width:100%; aspect-ratio:1/1;
  border-radius:50%;       /* круглая рамка, без окантовки */
  background:#eef1f6 url('/assets/img/kristina-grigorieva-clean.png?v=5') no-repeat center top; /* фолбэк PNG */
  background-image:-webkit-image-set(url('/assets/img/kristina-grigorieva-clean.avif?v=1') type('image/avif'), url('/assets/img/kristina-grigorieva-clean.webp?v=2') type('image/webp'), url('/assets/img/kristina-grigorieva-clean.png?v=5') type('image/png'));
  background-image:image-set(url('/assets/img/kristina-grigorieva-clean.avif?v=1') type('image/avif'), url('/assets/img/kristina-grigorieva-clean.webp?v=2') type('image/webp'), url('/assets/img/kristina-grigorieva-clean.png?v=5') type('image/png'));
  background-size:100%;
  box-shadow:0 10px 26px -10px rgba(31,45,94,.5);
}
@keyframes onlinePulse{
  0%{ box-shadow:0 0 0 0 rgba(34,197,94,.6); }
  70%{ box-shadow:0 0 0 8px rgba(34,197,94,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
}
.quiz__consultant-name{ font-weight:800; color:var(--heading); font-size:18px; }
.quiz__consultant-role{ color:var(--muted); font-size:12px; margin-top:2px; white-space:nowrap; }
.quiz__consultant-status{
  display:inline-flex; align-items:center; gap:7px; margin-top:6px;
  font-size:13px; font-weight:600; color:#16a34a;
}
/* зелёная мигающая точка у надписи «Онлайн» */
.quiz__consultant-status .dot{
  width:10px; height:10px; border-radius:50%; background:#22c55e;
  box-shadow:0 0 0 0 rgba(34,197,94,.6); animation:onlinePulse 1.8s ease-out infinite;
}
@media (prefers-reduced-motion:reduce){ .quiz__consultant-status .dot{ animation:none; } }
.quiz__consultant-msg{
  position:relative; margin-top:18px; background:#fdf3f2; border:1px solid #f3d9d6;
  border-radius:14px; padding:14px 16px; font-size:14px; line-height:1.45;
  color:var(--text); text-align:left;
}
.quiz__consultant-msg::before{
  content:""; position:absolute; top:-8px; left:50%; transform:translateX(-50%) rotate(45deg);
  width:15px; height:15px; background:#fdf3f2; border-left:1px solid #f3d9d6; border-top:1px solid #f3d9d6;
}
.quiz__consultant-msg:empty{ display:none; }
/* чат-эффект: «печатает» (точки) -> всплывающее облачко -> появление текста */
.quiz__consultant-msg.is-pop{ animation:msgPop .28s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes msgPop{ from{ opacity:0; transform:translateY(8px) scale(.92); } to{ opacity:1; transform:translateY(0) scale(1); } }
.quiz__consultant-msg.is-textin{ animation:msgTextIn .25s ease both; }
@keyframes msgTextIn{ from{ opacity:.25; } to{ opacity:1; } }
.quiz__consultant-msg .typing{ display:inline-flex; align-items:center; gap:8px; }
.quiz__consultant-msg .typing-txt{ color:var(--muted); font-size:13px; }
.quiz__consultant-msg .dots{ display:inline-flex; align-items:center; gap:5px; padding:3px 2px; }
.quiz__consultant-msg .dots i{ width:7px; height:7px; border-radius:50%; background:#c9a6a2; display:inline-block; animation:dotJump 1s infinite ease-in-out; }
.quiz__consultant-msg .dots i:nth-child(2){ animation-delay:.15s; }
.quiz__consultant-msg .dots i:nth-child(3){ animation-delay:.3s; }
@keyframes dotJump{ 0%,60%,100%{ transform:translateY(0); opacity:.45; } 30%{ transform:translateY(-4px); opacity:1; } }
@media (prefers-reduced-motion:reduce){
  .quiz__consultant-msg.is-pop,.quiz__consultant-msg.is-textin{ animation:none; }
  .quiz__consultant-msg .dots i{ animation:none; }
}

@media (max-width:860px){
  .quiz__layout{ flex-direction:column; }
  .quiz__consultant{
    flex:none; width:100%;
    border-right:0; border-bottom:1px solid var(--line); padding:0 0 18px;
    display:grid; grid-template-columns:auto 1fr; align-items:center; gap:2px 16px; text-align:left;
  }
  .quiz__consultant-photo-wrap{ max-width:none; margin:0; grid-column:1; grid-row:1 / span 3; align-self:center; }
  .quiz__consultant-photo{ width:104px; height:104px; aspect-ratio:auto; background-size:100%; }
  .quiz__consultant-name{ grid-column:2; }
  .quiz__consultant-role{ grid-column:2; white-space:normal; }
  .quiz__consultant-status{ grid-column:2; }
  .quiz__consultant-msg{ grid-column:1 / -1; margin-top:10px; }
  .quiz__consultant-msg::before{ left:40px; }
}
.quiz__progress{ margin-bottom:24px; }
.quiz__progress-top{ display:flex; gap:8px; font-size:14px; margin-bottom:8px; }
.quiz__progress-top .lbl{ color:var(--muted); }
.quiz__percent{ color:var(--red-accent); font-weight:800; }
.quiz__bar{ height:6px; background:var(--line); border-radius:6px; overflow:hidden; }
.quiz__bar-fill{ height:100%; background:var(--red); width:17%; transition:width .3s; }
.quiz__q{ font-size:clamp(20px,2.4vw,26px); font-weight:800; color:var(--heading); margin:0 0 18px; line-height:1.2; }
.quiz__sublabel{ color:var(--muted); font-size:15px; margin-bottom:10px; }
.quiz__options{ display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
.quiz-opt{
  display:flex; align-items:center; gap:14px; padding:14px 18px;
  border:1px solid var(--line); border-radius:12px; cursor:pointer; transition:border-color .15s,background .15s;
  font-size:16px; color:var(--heading);
}
.quiz-opt:hover{ border-color:#c3cbdb; }
.quiz-opt input{ accent-color:var(--red); width:20px; height:20px; flex:none; }
.quiz-opt.is-selected{ border-color:var(--red); background:#fdf3f2; }
/* Каналы связи (последний шаг) — иконки и цвета мессенджеров */
.quiz-opt__ic{ flex:none; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; }
.quiz-opt__ic svg{ width:19px; height:19px; fill:currentColor; }
.quiz-opt__ic img{ width:34px; height:34px; display:block; }
.quiz-opt--phone .quiz-opt__ic{ background:#34c759; border-radius:50%; color:#fff; }
/* убираем радио-кружок у каналов — это просто кнопки */
.quiz-opt--ch input{ position:absolute; opacity:0; pointer-events:none; }
.quiz-opt--phone.is-selected{ border-color:#34c759; background:#eafaf0; }
.quiz-opt--tg.is-selected{ border-color:#229ed9; background:#eaf6fd; }
.quiz-opt--max.is-selected{ border-color:#6a40e8; background:#f2eefc; }
.quiz__hint{ color:var(--red-accent); font-size:13px; margin:10px 0 0; min-height:18px; }
.quiz__nav{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; }
.quiz__back{ background:none; border:0; color:var(--muted); cursor:pointer; font:inherit; font-size:15px; }
.quiz__back[hidden]{ visibility:hidden; }
.quiz__next{ margin-left:auto; }

/* Контактная форма (последний шаг) */
.quiz__field{ margin-bottom:14px; }
.quiz__field label{ display:block; font-size:14px; color:var(--muted); margin-bottom:6px; }
.quiz__field input{
  width:100%; font:inherit; font-size:16px; padding:14px 16px;
  border:1px solid var(--line); border-radius:12px; background:#fff;
}
.quiz__field input:focus{ outline:2px solid var(--red); outline-offset:1px; border-color:var(--red); }

/* honeypot */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ── Чекбоксы согласия ── */
.consent{ display:flex; gap:10px; align-items:flex-start; cursor:pointer; user-select:none;
  font-size:13px; line-height:1.45; color:var(--muted); margin:0 0 12px; }
.consent__input{ position:absolute; opacity:0; width:0; height:0; }
.consent__box{ flex-shrink:0; width:20px; height:20px; margin-top:1px; border:1.5px solid #94a3b8;
  border-radius:5px; background:#fff; position:relative; transition:background .15s,border-color .15s; }
.consent__input:checked + .consent__box{ background:var(--red); border-color:var(--red); }
.consent__input:checked + .consent__box::after{ content:""; position:absolute; left:6px; top:2px;
  width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.consent__input:focus-visible + .consent__box{ outline:2px solid var(--red); outline-offset:2px; }
.consent a{ color:var(--red); text-decoration:underline; }
.consent--error .consent__box{ border-color:var(--red-accent); box-shadow:0 0 0 3px rgba(224,43,31,.15); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer{ background:#fff; color:#1c2a47; padding:clamp(28px,4vw,44px) 0; font-size:13px; line-height:1.6; border-top:1px solid var(--line); }
.site-footer .container{ display:flex; flex-direction:column; gap:6px; }
.site-footer p{ margin:0; }
.site-footer a[href^="tel:"]{ color:#1c2a47; font-weight:700; text-decoration:none; }
.site-footer a[href^="tel:"]:hover{ text-decoration:underline; }
.site-footer__legal{ margin-top:16px; display:flex; flex-wrap:wrap; gap:10px 22px; }
.site-footer__legal a{ color:#6b7689; text-decoration:underline; text-underline-offset:2px; transition:color .15s; }
.site-footer__legal a:hover{ color:#1c2a47; }
.site-footer__note{ margin-top:14px; color:#8a93a3; font-size:12px; max-width:920px; }
@media (max-width:768px){
  .site-footer{ text-align:left; }
  .site-footer .container{ align-items:flex-start; }
  .site-footer p,.site-footer__note{ width:100%; }
  .site-footer__legal{ flex-direction:column; align-items:flex-start; gap:10px; margin-top:18px; }
  .site-footer__legal a{ display:inline-block; }
}

/* ============================================================
   КУКИ-БАННЕР (мягкий)
   ============================================================ */
/* Cookie-баннер: на мобильной — тонкая полоса снизу; на десктопе — компактная карточка снизу слева */
.cookie{ position:fixed; left:0; right:0; bottom:0; z-index:9000;
  background:#fff; color:#0f172a; border-top:1px solid var(--line);
  box-shadow:0 -6px 20px -10px rgba(0,0,0,.22); padding:10px 14px;
  display:flex; flex-direction:row; align-items:center; gap:12px; }
.cookie[hidden]{ display:none; }
.cookie__text{ margin:0; font-size:12px; line-height:1.4; color:var(--muted); flex:1 1 auto; min-width:0; }
.cookie__text a{ color:var(--red); text-decoration:underline; }
.cookie__btn{ flex:none; padding:8px 16px; border-radius:9px; cursor:pointer; white-space:nowrap;
  font:inherit; font-weight:700; font-size:13px; background:var(--red); color:#fff; border:0; }

/* ============================================================
   МОДАЛКА «ЗАКАЗАТЬ ЗВОНОК»
   ============================================================ */
.cbmodal{ position:fixed; inset:0; z-index:9700; background:rgba(15,23,42,.6);
  display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; overflow:auto; }
.cbmodal[hidden]{ display:none; }
.cbmodal__box{ position:relative; background:#fff; border-radius:18px; width:100%; max-width:440px;
  margin:auto; padding:34px clamp(20px,4vw,36px); box-shadow:var(--shadow); }
.cbmodal__close{ position:absolute; top:12px; right:12px; width:36px; height:36px; border:0;
  border-radius:50%; background:#f1f5f9; font-size:22px; line-height:1; cursor:pointer; color:#475569; }
.cbmodal__close:hover{ background:#e2e8f0; }
.cbmodal__title{ text-align:center; font-size:clamp(21px,3vw,27px); font-weight:800;
  color:var(--heading); line-height:1.2; margin:0 0 22px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (min-width:640px){
  .pains__grid{ grid-template-columns:repeat(4,1fr); }
  .cookie{ left:20px; right:auto; bottom:20px; max-width:340px;
    flex-direction:column; align-items:flex-start; gap:10px;
    border:1px solid var(--line); border-radius:14px; padding:15px 17px;
    box-shadow:0 18px 44px -16px rgba(0,0,0,.3); }
  .cookie__btn{ align-self:flex-start; }
}
@media (min-width:760px){
  .review-card{ flex:0 0 calc((100% - 36px)/3); }
}
@media (min-width:980px){
  .methods__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:639px){
  .case-card{ flex-basis:78vw; max-width:78vw; }
}

/* ============================================================
   НСК (31.10.2026): шапка под длинный адрес + чекбоксы согласия (как на сайте МФЦ-596).
   Блок добавляется сборкой _tools/build-nsk-bfl.py в конец донорского styles.css.
   ============================================================ */
/* 1081–1280: адрес в одну строку — компактнее шрифт адреса и кнопка */
@media (max-width:1280px) and (min-width:1081px){
  .header__address{ font-size:15px; }
  .header__cta .btn{ min-width:240px; min-height:64px; padding:12px 22px; font-size:18px; }
}
/* 1081–1150 (ноутбук 1366 px при масштабе 125 %): чуть меньше лого и шрифт адреса, чтобы адрес шёл одной строкой */
@media (max-width:1150px) and (min-width:1081px){
  .header__logo img{ height:80px; }
  .header__address{ font-size:14px; }
}
/* 821–1080 (ноутбук с масштабом 125–175 %, планшет-альбом): одна строка лого | адрес | кнопка.
   У донора здесь сетка auto auto, адрес на всю ширину — и кнопка уезжала в третью строку. */
@media (max-width:1080px) and (min-width:561px){
  .header__inner{ grid-template-columns:auto minmax(0,1fr) auto; gap:12px 18px; min-height:82px; }
  .header__address{ grid-column:auto; grid-row:auto; width:auto; max-width:none; justify-self:center; font-size:13px; }
  .header__cta{ justify-self:end; }
}
/* 561–820: адрес в строку уже не влезает — лого + кнопка в первой строке, адрес второй строкой */
@media (max-width:820px) and (min-width:561px){
  .header__inner{ grid-template-columns:auto auto; }
  .header__logo{ grid-row:1; grid-column:1; }
  .header__cta{ grid-row:1; grid-column:2; }
  .header__address{ grid-row:2; grid-column:1 / -1; justify-self:start; font-size:12px; }
}
/* ≤560: мобильный адрес длиннее екатеринбургского — не даём ему вылезти за свою колонку */
@media (max-width:560px){
  .header__address{ min-width:0; }
  .header__address-mobile{ min-width:0; overflow-wrap:anywhere; }
}

/* Чекбоксы согласия — отступы и размеры как на сайте МФЦ-596 (chat.css): бокс 16px, gap 8px, 12.5px/1.45,
   каждая строка с отступом сверху 8px; от капчи до первой галочки = 14px поля + 8px (как у МФЦ). Обе галочки сразу под капчей. */
.consent-check{ display:flex; align-items:flex-start; gap:8px; margin:8px 0 0; font-size:12.5px; line-height:1.45; color:var(--text); text-align:left; cursor:pointer; }
.consent-check[hidden]{ display:none; }
.consent-check__box{ flex:none; width:16px; height:16px; margin:2px 0 0; accent-color:var(--red); cursor:pointer; }
.consent-check a{ color:var(--muted); text-decoration:underline; }
.consent-check--ads{ font-size:12px; }
.consent-check--error{ color:#c62828; }
.consent-check--error a{ color:#c62828; }
.consent-check--error .consent-check__box{ outline:2px solid #c62828; outline-offset:2px; border-radius:4px; }
.quiz__field--captcha{ margin-bottom:14px; }
#quizConsentHolder[hidden]{ display:none; }
.quiz__contact-fields .quiz__consent{ margin:0; }

/* Главная (01.11.2026, по скрину пользователя): серый подзаголовок с жирной частью + крупная строка «Заполните анкету…» */
.hero__sub--tight{ margin-bottom:14px; }
.hero__sub b{ color:#3f4e69; font-weight:700; }
.hero__free-note{ display:none; }                   /* на десктопе эта фраза внутри абзаца */
.hero__lead{ font-size:clamp(18px,1.7vw,25px); line-height:1.3; font-weight:500; color:var(--heading); margin:0 0 26px; max-width:720px; }
@media (max-width:560px){
  .hero__sub--tight{ margin-bottom:10px; }
  .hero__lead{ font-size:16px; line-height:1.35; margin:0 0 16px; }
  .hero__sub-br{ display:none; }                    /* «Это бесплатно…» на мобильной не в абзаце, а под кнопкой (01.11.2026) */
  .hero__free-note{ display:block; margin:10px 0 0; font-size:13px; line-height:1.4; color:#3f4e69; text-align:center; }
}
