/* ==========================================================================
   page32 — рефинансирование. Редизайн «Сапфир» (21.09.2026).
   Палитра и приём с фото взяты из прототипа `Прототипы/10-экранов-MAX/01.html`
   (тёмно-синий фон, светлая типографика, голубой акцент, синие кнопки 16px).
   ГЕОМЕТРИЯ — один в один с MAX-версией `refinans-msk.ru/max/page32/`
   (`Сайты локальные/refinans-msk.ru-max/page32/styles.css`): размеры кеглей,
   сетки, ширины кнопок и все медиаблоки, включая правки drag-редактора на
   768–1209 и мобильные сдвиги. Здесь меняются только цвет, фон и рамки.
   ========================================================================== */

/* ---------- Шрифт ---------- */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/fira-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/fira-sans-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: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/fira-sans-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/fira-sans-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;
}

/* ---------- Переменные: палитра «Сапфир» ---------- */
:root {
  --bg:            #101f37;   /* фон страницы */
  --bg-2:          #152845;   /* чередующиеся секции */
  --card:          #1a3157;   /* карточки */
  --line:          rgba(255, 255, 255, .10);
  --text:          #f3f6fc;   /* основной текст */
  --muted:         #b7c5df;   /* второстепенный текст */
  --accent:        #91bbff;   /* заголовок первого экрана, акценты */
  --button:        #3479ed;   /* кнопки и бейдж */
  --button-hover:  #2b6be0;
  --button-text:   #ffffff;
  --red:           #ff6b6b;   /* крестики */
  --photo-box:     #eef2f7;   /* светлая подложка фото с белым фоном */
  --radius:        16px;
  --photo-opacity: .22;       /* прозрачность фото Москва-Сити в первом экране */
}

/* ---------- Базовое ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* место под полосу прокрутки резервируется всегда: иначе при открытии квиза
     (body overflow:hidden) страница за модалкой дёргается на 15px */
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4286 'Fira Sans', Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
p   { margin: 0; }
ul  { margin: 0; padding: 0; list-style: none; }
a   { color: inherit; }

/* Сцена: ниже 370 px раскладка не переверстывается, а целиком масштабируется.
   Ширину и коэффициент выставляет app.js от clientWidth (см. комментарий там).
   Модалка квиза и лайтбокс лежат вне сцены: они занимают реальный вьюпорт. */
.stage {
  width: var(--stage-width, auto);
  zoom: var(--stage-zoom, 1);
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 5px;
}

/* ---------- Кнопки ---------- */
/* Геометрия (отступы, кегли, круг 40px) — как в MAX-версии: под неё заложены
   ширины кнопок в вёрстке. Внешний вид — «Сапфир»: синяя кнопка, белый круг
   со стрелкой (кнопки открывают квиз, а не MAX). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--button);
  color: var(--button-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4286;
  text-align: center;
  padding: 17px 22px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(52, 121, 237, .35);
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}
.btn::after {
  content: '';
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--button-text) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233479ed' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.btn:hover {
  background: var(--button-hover);
  box-shadow: 0 12px 26px rgba(52, 121, 237, .45);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 6px 14px rgba(52, 121, 237, .3);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--sm { font-size: 14px; line-height: 20px; padding: 14px 14px; gap: 10px; }
.btn--sm::after { width: 32px; height: 32px; background-size: 16px 16px; }
.btn--lg { font-size: 22px; line-height: 1.4286; padding: 17px 20px; }

/* ---------- Переносы, включаемые по ширине ---------- */
.edbr-375 { display: none; }

/* ---------- Заголовки секций ---------- */
.h2 {
  margin: 10px 0 0;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН
   Фон: тёмно-синий, поверх — ч/б фото Москва-Сити в режиме luminosity с малой
   прозрачностью (приём из прототипа), снизу растворяется в цвет фона.
   Геометрия — MAX-версия.
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg); }

.hero__bg,
.hero__overlay { position: absolute; inset: 0; }

.hero__bg {
  background: url('assets/img/moscow-city.jpg') center 30% / cover no-repeat;
  opacity: var(--photo-opacity);
  mix-blend-mode: luminosity;
}
.hero__overlay {
  background:
    linear-gradient(180deg, rgba(16, 31, 55, .15) 0%, rgba(16, 31, 55, 0) 35%, rgba(16, 31, 55, .55) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(16, 31, 55, .55) 0%, rgba(16, 31, 55, 0) 60%);
}

.hero__inner {
  position: relative;   /* база для абсолютной иллюстрации */
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 0 92px;
  color: var(--text);
}

/* --- шапка --- */
.topbar {
  display: flex;
  align-items: center;
  gap: 29px;
  min-height: 74px;
  padding: 0 5px 0 10px;
}
.topbar__logo { width: 46px; height: 54px; flex: none; }
.topbar__text { font-size: 14px; line-height: 22.4px; }
.topbar__btn  { margin-left: auto; flex: none; min-width: 248px; white-space: nowrap; }
/* текст этой кнопки длиннее, чем «Задать вопрос в MAX» в MAX-версии, — в 248px
   он переносился на две строки, поэтому ширина авто, минимум те же 248 */

/* --- заголовок и подзаголовок --- */
.hero__title {
  margin: 53px 0 0;
  padding: 0 5px;
  font-size: 50px;
  line-height: 60px;
  font-weight: 700;
  color: #ffffff;   /* на tropik1.ru белый (на finpravo77.ru/page32 — var(--accent)) */
}
.hero__sub {
  margin: 24px 0 0;
  padding: 0 5px;
  font-size: 28px;
  line-height: 39.2px;
}

/* --- список + иллюстрация --- */
/* Пачка денег выходит за свою колонку и заезжает на текст ниже,
   поэтому на десктопе она позиционируется абсолютно, а список идёт потоком. */
.hero__mid { padding: 0 10px; }
.hero__list {
  margin-top: 56px;
  padding-left: 24px;
  font-size: 20px;
  line-height: 32px;
}
.hero__list li { list-style: disc; }
.hero__list li::marker { color: var(--accent); }

.hero__art {
  position: absolute;
  left: 567px;   /* 640 − 73 */
  top: 330px;
  width: 520px;
  height: 328px;
}
.hero__money {
  width: 520px;
  height: 328px;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .35));
}
/* Бейдж «99,8%» рисуется CSS: синий круг, белый текст. Размер шрифта задаётся
   на самом круге, strong/span — в em, поэтому на адаптиве достаточно менять
   font-size круга вместе с его шириной (как в MAX-версии). */
.hero__badge {
  position: absolute;
  left: 299px;   /* 939 − 640 */
  top: 150px;    /* 480 − 330 */
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: var(--button);
  color: var(--button-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 16px 36px rgba(52, 121, 237, .4);
}
.hero__badge strong { font-size: 2.05em; line-height: 1.15; margin-bottom: .3em; }
.hero__badge span   { font-size: 1em; line-height: 1.15; }

/* --- нижний призыв --- */
.hero__cta-text {
  margin: 66px 0 0;
  padding: 0 5px;
  font-size: 26px;
  line-height: 36.4px;
  font-weight: 700;
}
.hero__cta {
  margin: 29px 0 0 10px;
  width: 500px;        /* +62px под круг со стрелкой, чтобы текст остался в одну строку */
  padding: 19px 18px;
}

/* ==========================================================================
   ТРЕБОВАНИЯ К ЗАЁМЩИКУ
   ========================================================================== */
.reqs { padding: 80px 0 90px; background: var(--bg-2); }

.reqs__grid {
  display: grid;
  grid-template-columns: 489px 1fr;
  column-gap: 39px;
  align-items: start;
  margin-top: 80px;
  padding: 0 15px;
}

/* фото кошелька снято на светлом фоне — держим его в светлой карточке */
.reqs__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 464px;
  border-radius: var(--radius);
  background: var(--photo-box);
  overflow: hidden;
}
.reqs__photo img { max-height: 100%; width: auto; }

.reqs__title  { font-size: 30px; line-height: 48px; font-weight: 700; }
.reqs__rule   { display: block; width: 40px; height: 2px; margin: 20px 0 31px; background: var(--accent); }
.reqs__item   { font-size: 20px; line-height: 32px; }
.reqs__item + .reqs__item { margin-top: 10px; }
.reqs__note   { font-size: 16px; color: var(--muted); }
.reqs__ask    { margin-top: 81px; font-size: 24px; line-height: 38.4px; font-weight: 700; }
.reqs__btn    { margin: 31px 0 0 5px; width: 404px; padding: 17px 20px; }

/* ==========================================================================
   «С НАМИ ВЫ ПОЛУЧИТЕ КРЕДИТ, ДАЖЕ ЕСЛИ»
   ========================================================================== */
.cases { padding: 60px 0 48px; background: var(--bg); }

.cases__grid {
  display: grid;
  grid-template-columns: 357px 1fr 357px;
  align-items: center;
  margin-top: 67px;
  padding: 0 10px;
}

.cases__col li {
  display: flex;
  align-items: center;
  gap: 29px;
  min-height: 67px;
  font-size: 20px;
  line-height: 24px;
}
.cases__col li + li { margin-top: 13px; }

/* крестик в круглой тёмной плашке; габарит 66×67 — как в MAX-версии */
.ico-cross {
  flex: none;
  width: 66px;
  height: 67px;
  border-radius: 50%;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--red) calc(50% - 1.5px), var(--red) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(to bottom left,  transparent calc(50% - 1.5px), var(--red) calc(50% - 1.5px), var(--red) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    var(--card);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px, 22px 22px, auto;
  border: 1px solid var(--line);
}

.cases__photo { display: flex; justify-content: center; }
.cases__photo img {
  width: 363px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #fff;
}

/* ==========================================================================
   CTA «ВСЕГО 1 КЛИК»
   ========================================================================== */
.click { padding: 20px 0 52px; background: var(--bg); }

.click__grid {
  display: grid;
  grid-template-columns: 1fr 366px;
  column-gap: 30px;
  align-items: center;
  padding: 0 20px;
}
.click__body { text-align: center; }

.click__text {
  font-size: 26px;
  line-height: 40px;
}
.click__text strong { font-size: 40px; line-height: 40px; font-weight: 700; color: var(--accent); }

.click__btn { margin-top: 17px; width: 670px; max-width: 100%; padding: 14px 20px; }

.click__photo img {
  width: 366px;
  height: 221px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .35));
}

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
.reviews { padding: 29px 0 44px; background: var(--bg-2); }

.reviews__sub {
  margin-top: 20px;
  font-size: 24px;
  line-height: 28.8px;
  text-align: center;
  color: var(--muted);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 30px;
  margin-top: 74px;
  padding: 0 10px;
}

/* карточка отзыва — только фон и рамка, сетка та же */
.rev {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.rev__head {
  display: flex;
  align-items: center;
  gap: 29px;
  padding-left: 15px;
}
.rev__avatar { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--accent); }
.rev__name   { font-size: 21px; line-height: 33.6px; font-weight: 700; }
.rev__sum    { font-size: 18px; line-height: 21.6px; color: var(--muted); }
.rev__sum strong { font-weight: 700; color: var(--accent); }

/* --- спойлер с текстом отзыва --- */
.spoiler {
  margin-top: 17px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  padding: 0 25px;
}
.spoiler__head {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  border: 0;
  background: none;
  padding: 15px 0;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.spoiler__title {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 22.4px;
  font-weight: 700;
  text-transform: uppercase;
}
.spoiler__arrow {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.spoiler__head[aria-expanded="true"] .spoiler__arrow {
  transform: rotate(225deg) translate(-3px, -3px);
}
.spoiler__body {
  display: none;
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 22.4px;
  color: var(--muted);
}
.spoiler__body.is-open { display: block; }

.rev__doc {
  display: block;
  margin-top: 20px;
  height: 360px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.rev__doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.reviews__cta-text {
  margin-top: 62px;
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
}
.reviews__btn {
  display: flex;        /* блочный flex, а не inline: иначе margin:auto не центрует */
  margin: 25px auto 0;
  width: 446px;
  max-width: 100%;
  padding: 16px 20px;
  font-size: 20px;
}

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.foot { padding: 28px 0 37px; background: #0b1729; border-top: 1px solid var(--line); }
.foot__text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 25.6px;
  text-align: center;
  color: var(--muted);
}
.foot__seo { margin-top: 20px; }
.foot a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.foot a:hover { text-decoration: underline; }

/* ==========================================================================
   ЛАЙТБОКС ДОКУМЕНТОВ и КВИЗ («Реф Квиз») — без изменений.
   Палитра квиза объявлена внутри .quiz-modal и наружу не протекает;
   его оформление утверждено заказчиком отдельно (12.09.2026).
   ========================================================================== */
[hidden] { display: none !important; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, .8);
}
.lb__img { max-width: 100%; max-height: 100%; width: auto; }
.lb__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.lb__close::before,
.lb__close::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 17px;
  width: 18px;
  height: 2px;
  background: #fff;
}
.lb__close::before { transform: rotate(45deg); }
.lb__close::after  { transform: rotate(-45deg); }

.rev-dots { display: none; }   /* точки нужны только мобильной карусели */

/* ==========================================================================
   КВИЗ («Реф Квиз») — модалка и оформление перенесены 1:1 с /refnew/.
   Палитра квиза объявлена внутри .quiz-modal и наружу не протекает:
   жёлто-чёрная схема лендинга остаётся нетронутой.
   ========================================================================== */
.modal{
  position:fixed;inset:0;z-index:900;display:none;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
}
.modal.is-open{display:block}
.modal-back{position:fixed;inset:0;background:rgba(0,0,0,.5)}
.modal-dialog{
  position:relative;width:900px;max-width:calc(100% - 20px);
  margin:40px auto;
}
.modal-root{
  position:relative;border-radius:10px;box-shadow:0 3px 9px rgba(0,0,0,.5);
  opacity:0;transform:scale(1.1);transition:300ms all ease-in;
}
.modal.is-open .modal-root{opacity:1;transform:scale(1)}
.modal-panel{padding:10px;border-radius:14px;background:#f0f7ec;position:relative}
.modal-close{
  position:absolute;top:-10px;right:-10px;width:30px;height:30px;padding:0;
  background:#fff;border:2px solid #000;border-radius:100px;cursor:pointer;
  transition:transform .2s;
}
.modal-close:hover{transform:scale(1.1)}
.modal-close span{
  position:absolute;left:50%;top:50%;width:16px;height:2px;background:#000;display:block;
}
.modal-close span:first-child{transform:translate(-50%,-50%) rotate(45deg)}
.modal-close span:last-child{transform:translate(-50%,-50%) rotate(135deg)}

  /* ============ КВИЗ — встроен после первого экрана (стили заскоплены под .quiz-modal) ============ */
  .quiz-modal{
    --ink:#122217; --ink-2:#334236; --green:#00951a;
    --ink-3:#6a786a; --line:#e1eadc; --line-2:#bdd0b7;
    --card:#ffffff; --soft:#f0f7ec;
    --shadow-lg:0 18px 50px rgba(0,0,0,.07);
    --card-min:440px;
    color:var(--ink);
  }
  .quiz-modal .block{margin:0 auto}

  .quiz-modal .head{text-align:center;margin-bottom:34px}
  .quiz-modal .head h2{margin:0;font-size:clamp(30px,3.4vw,38px);font-weight:800;letter-spacing:-.02em;line-height:1.08;color:var(--ink)}
  .quiz-modal .head p{margin-top:14px;font-size:clamp(15px,1.4vw,19px);color:var(--ink-3);line-height:1.5}
  .quiz-modal .quiz-sub-br{display:none}   /* перенос в подзаголовке — только на шаге 780 (вкл. ниже) */

  .quiz-modal .card{background:var(--card);border:0;border-radius:20px;padding:28px;display:grid;grid-template-columns:280px 1fr;gap:0}

  .quiz-modal .side{padding-right:40px;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;text-align:center}
  .quiz-modal .s-id{display:flex;flex-direction:column;align-items:center;width:100%}   /* блок «личности» консультанта (аватар+имя+роль+описание) — отдельно от прогресса, чтобы на мобиле уехать вниз цельной группой */
  .quiz-modal .avatar{position:relative;width:84px;height:84px;border-radius:50%;flex:0 0 auto;background:#fff;border:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;color:#b4b4b4;overflow:hidden;box-shadow:0 10px 20px rgba(23,105,31,.12)}
  .quiz-modal .avatar img{display:block;position:absolute;top:0;left:-16.5%;width:132%;height:auto;max-width:none}   /* кадр «по грудь»: голова целиком + грудь, по центру круга */
  .quiz-modal .avatar svg{width:46px;height:46px}
  .quiz-modal .s-name{margin-top:16px;font-size:17px;font-weight:700}
  .quiz-modal .s-role{margin-top:4px;font-size:13px;color:var(--ink-3)}
  .quiz-modal .s-desc{margin-top:16px;font-size:13px;line-height:1.55;color:var(--ink-3)}

  .quiz-modal .prog{margin-top:auto;padding-top:28px;width:100%}
  .quiz-modal .prog .lbl{font-size:13px;color:var(--ink-2);margin-bottom:10px}
  .quiz-modal .prog .track{height:3px;background:var(--line);border-radius:3px;overflow:hidden}
  .quiz-modal .prog .fill{height:100%;background:var(--green);border-radius:3px;width:0;transition:width .4s cubic-bezier(.4,0,.2,1)}
  .quiz-modal .prog .dots{display:flex;gap:8px;justify-content:center;margin-top:14px}
  .quiz-modal .prog .dot{width:7px;height:7px;border-radius:50%;background:var(--line-2);transition:.3s}
  .quiz-modal .prog .dot.on{background:var(--green)}

  .quiz-modal .panel{padding-left:40px;display:flex;flex-direction:column}
  .quiz-modal .hint{margin-top:14px;background:var(--soft);border-radius:14px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5;color:var(--ink-3)}
  .quiz-modal .hint-q{flex:0 0 auto;width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}

  .quiz-modal .q-title{margin-top:0;font-size:clamp(22px,2.1vw,28px);font-weight:800;line-height:1.2;letter-spacing:-.01em;color:var(--ink)}

  .quiz-modal .options{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .quiz-modal .opt{display:flex;align-items:center;gap:14px;text-align:left;cursor:pointer;min-height:72px;background:var(--card);border:1.5px solid var(--line);border-radius:16px;padding:14px 16px;font-size:15px;font-weight:600;color:var(--ink);transition:.14s}
  .quiz-modal .opt:hover{border-color:var(--green);transform:translateY(-1px)}
  .quiz-modal .opt .ic{flex:0 0 auto;width:44px;height:44px;border-radius:12px;color:var(--ink);background:var(--soft);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;transition:.14s}
  .quiz-modal .opt .ic svg{width:22px;height:22px}
  .quiz-modal .opt[aria-checked="true"]{border-color:var(--green);box-shadow:0 6px 18px rgba(23,105,31,.12)}
  .quiz-modal .opt[aria-checked="true"] .ic{background:var(--green);border-color:var(--green);color:#fff}

  .quiz-modal .actions{margin-top:22px;display:flex;align-items:center}
  .quiz-modal .back{background:none;border:none;cursor:pointer;color:var(--ink-3);font-size:15px;font-weight:600;padding:6px 4px;transition:.14s}
  .quiz-modal .back:hover{color:var(--ink)}

  .quiz-modal .summary{margin-top:20px;border:1px solid var(--line);border-radius:16px;overflow:hidden}
  .quiz-modal .srow{display:flex;justify-content:space-between;gap:16px;padding:11px 16px;font-size:14px;border-top:1px solid var(--line)}
  .quiz-modal .srow:first-child{border-top:none}
  .quiz-modal .sq{color:var(--ink-3)}
  .quiz-modal .sa{font-weight:700;color:var(--ink);text-align:right}

  .quiz-modal .field{margin-top:20px}
  .quiz-modal .field input{width:100%;border:1.5px solid var(--line-2);border-radius:14px;padding:16px 18px;font-size:17px;font-family:inherit;color:var(--ink);background:#fff;transition:.14s}
  .quiz-modal .field input:focus{outline:none;border-color:var(--green)}
  .quiz-modal .field input.err{border-color:#c0392b}
  .quiz-modal .err-msg{font-size:12px;color:#c0392b;margin-top:6px;min-height:14px}

  .quiz-modal .actions--final{margin-top:20px;gap:14px;justify-content:space-between}
  .quiz-modal .next{flex:1;min-height:56px;border-radius:16px;border:2px solid var(--green);background:var(--green);color:#fff;font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:.15s}
  .quiz-modal .next:hover:not(:disabled){background:#fff;color:var(--green)}
  .quiz-modal .next:disabled{opacity:.5;cursor:not-allowed}
  .quiz-modal .consent{margin-top:14px;font-size:12px;color:var(--ink-3);text-align:center;line-height:1.45}
  .quiz-modal .consent a{color:var(--ink-2)}

  .quiz-modal .fade{animation:quizfade .3s ease}
  @keyframes quizfade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

  @media (min-width:768px){   /* две колонки — на планшете и шире (макет там 1280px) */
    .quiz-modal .card{min-height:var(--card-min)}
    .quiz-modal .hint{min-height:76px}
    .quiz-modal .q-title{min-height:44px}
    .quiz-modal .options{min-height:158px;align-content:start}
  }
  @media (max-width:767px){   /* телефон — одна колонка: прогресс, вопрос */
    /* одноколоночный квиз: карточка — flex-колонка, .side «раскрываем» (display:contents),
       чтобы прогресс стал прямым элементом карточки и встал над вопросом.
       Порядок: прогресс → вопрос (+пометка +варианты). Блок консультанта скрыт.
       Панель (#panel) остаётся цельной — сохраняется её анимация перелистывания. */
    .quiz-modal .card{display:flex;flex-direction:column;padding:18px;border-radius:16px}
    .quiz-modal .side{display:contents}
    .quiz-modal #prog{order:1;margin:0 0 22px;padding-top:0}        /* шкала статуса — наверх */
    .quiz-modal .panel{order:2;padding-left:0}                      /* заголовок → пометка «зачем» → варианты ответов */
    .quiz-modal .s-id{display:none}   /* консультант на телефоне не показывается: экран узкий, место нужно вопросу */
    .quiz-modal .options{grid-template-columns:1fr}
    .quiz-modal .head{margin-bottom:24px}
  }

/* ==========================================================================
   АДАПТИВ — планшет (768–1209)
   Композиция повторяет десктоп: те же колонки, только уже. Кегли заданы через
   clamp() и текут по ширине, поэтому отдельный блок на 992 не нужен.
   ========================================================================== */
@media (max-width: 1209px) {
  .container   { padding: 0 20px; }
  .hero__inner { padding: 40px 20px 50px; }

  /* --- первый экран: список слева, деньги справа --- */
  .hero__title    { margin-top: 34px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.18; padding: 0; }
  .hero__sub      { margin-top: 18px; font-size: clamp(16px, 2.1vw, 26px); line-height: 1.4; padding: 0; }
  .hero__mid      { display: grid; grid-template-columns: minmax(0, 1fr) 44%;
                    align-items: center; column-gap: 24px; margin-top: 26px; padding: 0; min-height: 0; }
  .hero__list     { margin-top: 0; padding-left: 22px; font-size: clamp(14px, 1.75vw, 20px); line-height: 1.7; }
  .hero__art      { position: relative; left: auto; top: auto; width: 100%; height: auto; }
  .hero__money    { width: 100%; height: auto; }
  .hero__badge    { left: auto; right: 2%; top: 44%; width: 40%; height: auto; aspect-ratio: 1;
                    font-size: clamp(10px, 1.6vw, 20px); }
  .hero__cta-text { margin-top: 28px; font-size: clamp(16px, 2vw, 26px); line-height: 1.4; padding: 0; }
  .hero__cta      { margin: 20px 0 0; width: auto; max-width: 100%;
                    font-size: clamp(15px, 1.8vw, 22px); padding: 16px 22px; }

  .h2 { font-size: clamp(22px, 3vw, 40px); line-height: 1.2; }

  /* --- требования: фото слева, текст справа --- */
  .reqs        { padding: 50px 0 56px; }
  .reqs__grid  { grid-template-columns: 42% minmax(0, 1fr); column-gap: 24px; margin-top: 40px; padding: 0; }
  .reqs__photo { height: auto; aspect-ratio: 489 / 464; }
  .reqs__photo img { max-width: 100%; max-height: 100%; width: auto; }
  .reqs__title { font-size: clamp(18px, 2.4vw, 30px); line-height: 1.4; }
  .reqs__rule  { margin: 14px 0 20px; }
  .reqs__item  { font-size: clamp(13px, 1.6vw, 20px); line-height: 1.55; }
  .reqs__item + .reqs__item { margin-top: 12px; }
  .reqs__note  { font-size: .82em; }
  .reqs__ask   { margin-top: 28px; font-size: clamp(15px, 1.9vw, 24px); line-height: 1.4; }
  .reqs__btn   { margin: 18px 0 0; width: 100%; max-width: 352px; font-size: clamp(12px, 1.4vw, 16px); }

  /* --- «даже если»: три колонки --- */
  .cases       { padding: 44px 0 40px; }
  .cases__grid { grid-template-columns: minmax(0, 1fr) 28% minmax(0, 1fr);
                 column-gap: 16px; align-items: center; margin-top: 36px; padding: 0; }
  .cases__col li { gap: 14px; min-height: 0; font-size: clamp(13px, 1.7vw, 20px); line-height: 1.35; }
  .cases__col li + li { margin-top: 18px; }
  .ico-cross   { width: clamp(30px, 3.6vw, 66px); height: clamp(30px, 3.6vw, 66px); background-size: 55% 55%; }
  .cases__photo img { width: 100%; height: auto; object-fit: contain; }

  /* --- «всего 1 клик»: текст слева, деньги справа --- */
  .click       { padding: 16px 0 40px; }
  .click__grid { grid-template-columns: minmax(0, 1fr) 30%; column-gap: 24px; padding: 0; }
  .click__text { font-size: clamp(13px, 1.7vw, 26px); line-height: 1.5; }
  .click__text strong { font-size: clamp(19px, 2.6vw, 40px); line-height: 1.25; }
  .click__btn  { width: 100%; font-size: clamp(12px, 1.4vw, 16px); }
  .click__photo img { width: 100%; height: auto; }

  /* --- отзывы: три карточки в ряд --- */
  .reviews       { padding: 26px 0 40px; }
  .reviews__sub  { margin-top: 14px; font-size: clamp(13px, 1.7vw, 24px); line-height: 1.35; }
  .reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr));
                   column-gap: 16px; row-gap: 40px; margin-top: 40px; padding: 0; }
  .rev__head     { padding-left: 0; gap: 12px; }
  .rev__avatar   { width: clamp(46px, 5.6vw, 85px); height: clamp(46px, 5.6vw, 85px); }
  .rev__name     { font-size: clamp(13px, 1.6vw, 21px); line-height: 1.4; }
  .rev__sum      { font-size: clamp(11px, 1.4vw, 18px); line-height: 1.3; }
  .spoiler       { margin-top: 14px; padding: 0 14px; }
  .spoiler__head { gap: 10px; padding: 12px 0; }
  .spoiler__title{ font-size: clamp(10px, 1.15vw, 14px); line-height: 1.45; }
  .spoiler__body { padding-bottom: 14px; font-size: clamp(11px, 1.3vw, 14px); line-height: 1.5; }
  .rev__doc      { margin-top: 14px; height: clamp(190px, 25vw, 360px); }
  .reviews__cta-text { margin-top: 40px; font-size: clamp(14px, 1.8vw, 24px); line-height: 1.3; }
  .reviews__btn  { width: auto; max-width: 100%; font-size: clamp(14px, 1.6vw, 20px); }

  .foot__text { font-size: clamp(12px, 1.4vw, 16px); line-height: 1.6; }

}

/* ==========================================================================
   Правки drag-редактора, брейкпоинт 768
   Сняты на ширине 768 в пикселях, поэтому диапазон ограничен планшетом.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1209px) {
  /* шапка прижата к верху и поджата */
  .hero__inner   { padding-top: 0; padding-bottom: 0; margin-bottom: -70px; }
  .topbar__logo  { transform: translate(-10px, 2px); }
  .topbar__text  { transform: translate(-15.7px, 2px); font-size: 10px; }
  .topbar__btn   { transform: translate(8px, 7px); }

  /* Пачка денег и бейдж крупнее и смещены влево. Сдвиг в процентах, а не в
     пикселях: колонка резиновая, и пиксельный сдвиг, снятый на 768, к 1100
     переставал совпадать — пачку обрезало справа. Проценты считаются от
     размера самого элемента, поэтому геометрия держится по всему диапазону. */
  .hero__money   { transform: translate(-16.7%, 0) scale(1.21); transform-origin: 0 0; }
  .hero__badge   { transform: translate(-25.6%, 46.1%) scale(1.21); transform-origin: 0 0; }

  /* содержимое первого экрана подтянуто вверх */
  .hero__mid      { transform: translate(-10.5px, -58px); }
  .hero__cta-text { transform: translate(0, -120.3px); }
  .hero__cta      { transform: translate(0, -110px); }
}

/* ==========================================================================
   АДАПТИВ — мобильный (до 767)
   ========================================================================== */
@media (max-width: 767px) {
  /* Мобильная база: контент держится в 370px по центру и НЕ растягивается на
     широком телефоне. Фоны секций при этом занимают всю ширину экрана —
     поэтому ограничиваем контейнеры, а не саму сцену. */
  .container,
  .hero__inner { max-width: 370px; margin-left: auto; margin-right: auto; }

  .hero__inner { padding: 24px 16px 40px; text-align: center; }

  .topbar { flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0; text-align: center; }
  .topbar__text { order: 3; width: 100%; }
  .topbar__btn  { margin-left: 0; }

  .hero__title { margin-top: 28px; font-size: 30px; line-height: 36px; }
  .hero__sub   { margin-top: 16px; font-size: 18px; line-height: 25.2px; }
  .hero__sub br { display: none; }   /* пробел перед <br> в разметке сохраняет отбивку слов */
  .hero__mid   { grid-template-columns: minmax(0, 1fr); justify-items: center;
                 margin-top: 24px; row-gap: 20px; }
  .hero__list  { justify-self: start; text-align: left; font-size: 15px; line-height: 24px; padding-left: 22px; }
  .hero__art   { width: 100%; max-width: 320px; height: auto; }
  .hero__money { width: 100%; height: auto; }
  .hero__badge { left: auto; right: 0; top: 40%; width: 110px; height: 110px; font-size: 11px; }
  .hero__cta-text { margin-top: 28px; font-size: 18px; line-height: 25.2px; }
  .hero__cta   { margin-top: 20px; width: 100%; font-size: 18px; padding: 16px 12px; }

  .h2 { font-size: 26px; line-height: 32px; }

  .reqs        { padding: 40px 0; }
  .reqs__grid  { grid-template-columns: minmax(0, 1fr); row-gap: 30px; margin-top: 30px; }
  .reqs__photo { aspect-ratio: auto; padding: 24px 0; }
  .reqs__photo img { max-height: 300px; }
  .reqs__body  { text-align: center; }
  .reqs__title { font-size: 22px; line-height: 32px; }
  .reqs__rule  { margin: 14px auto 22px; }
  .reqs__item  { font-size: 18px; line-height: 28.8px; }
  .reqs__note  { font-size: 15px; }
  .reqs__ask   { margin-top: 30px; font-size: 20px; line-height: 32px; }
  .reqs__btn   { max-width: none; font-size: 15px; }

  .cases       { padding: 40px 0 30px; }
  .cases__grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; margin-top: 24px; }
  .cases__photo{ order: -1; margin-bottom: 4px; }
  .cases__photo img { width: 100%; max-width: 320px; }
  .cases__col li { gap: 14px; font-size: 16px; line-height: 21px; text-align: left; }
  .cases__col li + li { margin-top: 18px; }
  .ico-cross   { width: 34px; height: 34px; background-size: 20px 20px; }

  .click       { padding: 10px 0 36px; }
  .click__grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .click__photo{ order: -1; }
  .click__text { font-size: 16px; line-height: 24px; }
  .click__text strong { font-size: 26px; line-height: 34px; }
  .click__btn  { margin-top: 18px; font-size: 15px; }
  .click__photo img { max-width: 240px; }

  .reviews       { padding: 30px 0 36px; }
  .reviews__sub  { margin-top: 14px; font-size: 16px; line-height: 22px; }
  /* Отзывы на телефоне — карусель: горизонтальная лента с прилипанием,
     по одной карточке на экран. Точки-индикаторы рисует app.js. */
  .reviews__grid {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    margin-top: 30px;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                 /* полосу прокрутки не показываем */
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .reviews__grid > .rev {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    padding: 0 4px;
  }

  /* точки-индикаторы под лентой */
  .rev-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }
  .rev-dots button {
    width: 8px; height: 8px; padding: 0;
    border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
  }
  .rev-dots button.is-on { background: #000; transform: scale(1.25); }
  .rev__head     { padding-left: 0; gap: 18px; }
  .rev__avatar   { width: 64px; height: 64px; }
  .rev__name     { font-size: 17px; line-height: 27.2px; }
  .rev__sum      { font-size: 15px; line-height: 20.4px; }
  .spoiler       { padding: 0 18px; }
  .rev__doc      { height: 300px; }
  .reviews__cta-text { margin-top: 40px; font-size: 18px; line-height: 24px; }
  .reviews__btn  { width: 100%; margin-top: 20px; font-size: 17px; }

  .foot__text { font-size: 14px; line-height: 22.4px; }

  /* --- правки drag-редактора, брейкпоинт 375 --- */
  .edbr-375 { display: inline; }

  /* шапка на мобильном не показывается: логотип, телефонная кнопка и подпись убраны */
  .topbar__logo,
  .topbar__btn,
  .topbar__text { display: none; }

  /* первый экран подтянут вверх на освободившееся место */
  .hero__inner    { padding-top: 0; padding-bottom: 0; margin-bottom: -56px; }
  .hero__title    { transform: translate(0, -82px); }
  .hero__sub      { transform: translate(29.5px, -87px); width: 283px; }
  .hero__mid      { transform: translate(0, -90px); }
  .hero__cta-text { transform: translate(0, -96px); }
  .hero__cta      { transform: translate(0, -90px); }

  /* модалка квиза на мобильном — правила лежат в блоке «Реф Квиз» выше */
  /* модалка квиза живёт вне .stage, поэтому ширину задаём ей отдельно —
     та же мобильная база 370, что и у страницы */
  .modal-dialog { width: calc(100% - 26px); max-width: 370px; margin: 20px auto; }
}


/* ==========================================================================
   Цветовые поправки к медиаблокам MAX-версии (геометрию не меняют)
   ========================================================================== */
@media (max-width: 1209px) {
  .reqs__photo { height: auto; aspect-ratio: 489 / 464; }
  .ico-cross   { background-size: 34% 34%, 34% 34%, auto; }
}
@media (max-width: 767px) {
  .rev-dots button       { background: rgba(255, 255, 255, .25); }
  .rev-dots button.is-on { background: var(--accent); }
  .ico-cross   { background-size: 13px 13px, 13px 13px, auto; }
  .rev         { padding: 16px; }
  .reviews__grid > .rev { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
