@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════
   СОЛО — квиз-лендинг «Шкафы на заказ в Набережных Челнах»
   Тёплая нейтральная палитра и золотистые акценты собраны в токенах ниже.
   ═══════════════════════════════════════════════════════════ */

/* ─── Шрифт (локальный, OFL, без Google Fonts — требование 152-ФЗ) ─── */
@font-face{
  font-family:'Manrope';
  src:url('../fonts/Manrope-Variable.ttf') format('truetype-variations');
  font-weight:200 800;
  font-style:normal;
  font-display:swap;
}

/* ─── Токены ─── */
:root{
  --ink:      #171717;   /* основной текст, заголовки */
  --ink-2:    #555351;   /* вторичный текст */
  --ink-3:    #77736F;   /* приглушённый */
  --line:     #DDD8D1;   /* рамки */
  --line-2:   #EEEAE5;   /* очень светлые рамки */
  --bg:       #FCFBF9;
  --bg-2:     #F5F4F2;   /* секции */
  --bg-3:     #EEE8DF;   /* плашки */

  --accent:      #C88935;
  --accent-light:#DDA650;
  --accent-dark: #A96820;
  --accent-ink:  #FFFFFF;

  --radius:   10px;
  --radius-s: 8px;
  --container:1200px;
  --gap:      24px;
}

/* ─── База ─── */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:'Manrope','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
  font-size:16px; line-height:1.55; font-weight:500;
  color:var(--ink); background:var(--bg);
  overflow-x:hidden;                 /* ничего не уезжает вправо */
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; height:auto; display:block; }
/* Атрибут hidden должен побеждать любой display из классов.
   Без этого .btn{display:inline-flex} перебивает [hidden] и кнопка
   остаётся видимой, хотя JS её спрятал. */
[hidden]{ display:none !important; }
a{ color:inherit; }
button,input{ font:inherit; color:inherit; }
a:focus-visible,button:focus-visible{
  outline:3px solid rgba(200,137,53,.42);
  outline-offset:3px;
}

.container{
  width:100%; max-width:var(--container);
  margin:0 auto; padding:0 var(--gap);
}

.h2{
  font-size:40px; line-height:1.12;
  font-weight:800; letter-spacing:0; margin:0 0 12px;
}

/* ─── Маркер заглушек (снять class="draft" с <body> перед запуском) ─── */
.draft [data-tbd]{
  border-bottom:1.5px dashed var(--ink-3);
  cursor:help;
}

/* ═══════════ КНОПКИ ═══════════ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; text-align:center; text-decoration:none;
  font-weight:700; font-size:15px; line-height:1.2;
  padding:14px 22px; min-height:50px;
  border:1px solid transparent; border-radius:var(--radius-s);
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease,opacity .18s ease;
}
.btn--primary{
  color:var(--accent-ink);
  border-color:rgba(154,92,23,.18);
  background:linear-gradient(145deg,var(--accent-light),var(--accent) 58%,var(--accent-dark));
  box-shadow:0 10px 24px -14px rgba(143,81,19,.75),inset 0 1px rgba(255,255,255,.3);
}
.btn--primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px -14px rgba(143,81,19,.85),inset 0 1px rgba(255,255,255,.3);
}
.btn--primary:active{ transform:translateY(0); }
.btn--ghost{ background:var(--bg); color:var(--ink); border-color:var(--line); }
.btn--ghost:hover{ border-color:var(--ink); }
.btn--lg{ min-height:56px; padding:16px 28px; font-size:16px; border-radius:var(--radius); }
/* Главный CTA первого экрана. Микрокопию под ним убрали — место освободилось,
   поэтому кнопка выросла и по высоте, и по ширине. */
/* Главный CTA первого экрана. Микрокопию под ним убрали — место освободилось,
   поэтому кнопка выросла и по высоте, и по ширине. */
.btn--xl{
  min-height:78px; min-width:340px;
  padding:24px 44px; gap:14px;
  font-size:20px; letter-spacing:-.01em;
  border-radius:12px;
}
.btn--xl .btn__arrow{ font-size:23px; line-height:1; }
.btn--full{ width:100%; }
.btn:disabled{ opacity:.35; cursor:not-allowed; }

/* ═══════════ ШАПКА ═══════════ */
.hdr{
  position:relative; z-index:20;
  border-bottom:1px solid rgba(221,216,209,.8);
  background:rgba(252,251,249,.96);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.hdr__in{
  max-width:1480px;
  min-height:94px;
  display:flex; align-items:center; gap:24px;
  padding-top:13px; padding-bottom:13px;
}

.logo{ min-width:150px; text-decoration:none; flex:0 0 auto; }
.logo__mark{
  display:block; font-size:32px; font-weight:600;
  letter-spacing:0; line-height:1;
}
.logo__mark--sm{ font-size:20px; }
.logo__desc{
  display:block; margin-top:4px;
  font-size:10.5px; font-weight:600; letter-spacing:0;
  text-transform:uppercase; color:var(--ink-3);
}

.hdr__who{ flex:1 1 auto; min-width:260px; padding-left:24px; border-left:1px solid var(--line); }
.hdr__who-title{ margin:0 0 3px; font-size:16px; font-weight:800; line-height:1.2; }
.hdr__who-text{ margin:0; font-size:12.5px; line-height:1.4; color:var(--ink-2); max-width:410px; }
.soc{
  width:42px; height:42px; border:1px solid var(--line); border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.72);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.soc svg{ width:19px; height:19px; fill:var(--ink); }
.soc:hover{ transform:translateY(-1px); border-color:#BFB7AD; background:#fff; }

.hdr__contact{ flex:0 0 auto; text-align:right; }
.hdr__phone{
  display:block; font-size:22px; font-weight:800;
  letter-spacing:0; text-decoration:none; white-space:nowrap;
}
.hdr__hours{ display:block; font-size:12px; color:var(--ink-3); margin-top:3px; }

.hdr__cb{
  /* Была двухстрочной: заголовок + режим работы. Подпись убрали,
     осталась одна строка — высоту подтянули под неё. */
  flex:0 0 auto; min-width:206px; min-height:54px;
  justify-content:flex-start; gap:11px; padding:10px 16px;
  font-size:14px; text-align:left; white-space:nowrap;
}
.hdr__cb-ico{ width:22px; height:22px; fill:var(--accent-ink); flex:0 0 auto; }
.hdr__cb-copy{ display:block; }
.hdr__cb-copy strong{ display:block; font-size:14px; line-height:1.2; }

.hdr__cb .is-narrow{ display:none; }

/* Иконка-звонок — появляется только на мобильной */
.hdr__call{
  display:none; flex:0 0 auto;
  width:44px; height:44px; border:1.5px solid var(--line); border-radius:11px;
  place-items:center; transition:border-color .15s;
}
.hdr__call svg{ width:20px; height:20px; fill:var(--ink); }
.hdr__call:hover{ border-color:var(--ink); }

/* ═══════════ ПЕРВЫЙ ЭКРАН ═══════════ */
.hero{
  position:relative; isolation:isolate; overflow:hidden;
  min-height:calc(100dvh - 94px);
  display:flex; align-items:center;
  padding:48px 0 56px;
  background:#EEE2D7;
  border-top-left-radius:44px;
}

/* Кадр 2204x868 (2.54) заведомо ШИРЕ любого реального хиро (2.10-2.51),
   поэтому cover масштабирует его ПО ВЫСОТЕ: шкаф виден целиком всегда,
   срезается только левая стена — она всё равно под белой вуалью.
   Фото лежит ФОНОМ на самом слое, а не только в <img>: фон с cover кроет
   блок при любой геометрии и не зависит от того, как браузер посчитал
   размеры <picture>/<img>. */
.hero__bg{
  position:absolute; inset:0; z-index:0;
  overflow:hidden;
  background:#EEE2D7 url('../img/hero-desktop-v7.jpg') right center / cover no-repeat;
}
.hero__art{ display:contents; }
.hero__measures{ display:none; }
.hero__bg picture{
  position:absolute; inset:0; z-index:1;
  display:block;
}
.hero__bg::before{ content:none; }
.hero__bg img{
  position:absolute; inset:0; z-index:1;
  display:block; width:100%; height:100%; max-width:none;
  object-fit:cover; object-position:right center;
  transform:none;
  mask-image:none; -webkit-mask-image:none;
}
.hero__bg::after{
  content:''; position:absolute; inset:0; z-index:2;
  /* Молочная вуаль почти снята: текст лежит на непрозрачной карточке,
     затемнять фото ради читаемости больше не нужно. Остался лёгкий
     увод левого края в цвет фона, чтобы карточка не висела на стыке. */
  background:linear-gradient(90deg,
    rgba(252,251,249,.55) 0%,
    rgba(252,251,249,.28) 18%,
    rgba(252,251,249,.10) 32%,
    rgba(252,251,249,0) 46%);
  backdrop-filter:none; -webkit-backdrop-filter:none;
  mask-image:none; -webkit-mask-image:none;
}

/* padding как у .container в шапке — левый край карточки встаёт
   ровно под логотип. */
.hero__grid{ position:relative; z-index:3; max-width:1480px; padding-left:24px; }
.hero__text,
.bullets,
.hero__cta{ max-width:650px; }

/* ─ Белая карточка первого экрана ─
   Держит весь текстовый блок и задаёт его ширину. Правее её края
   начинается чистое фото. */
.hero__card{
  max-width:720px;
  padding:34px 38px 36px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(184,163,137,.16);
  box-shadow:0 40px 80px -50px rgba(70,45,18,.45),
             0 2px 10px -4px rgba(70,45,18,.08);
}
.hero__card .hero__text,
.hero__card .bullets,
.hero__card .hero__cta,
.hero__card .hero__h1,
.hero__card .hero__sub{ max-width:none; }

.pill{
  display:inline-flex; align-items:center; gap:7px; margin:0 0 16px;
  padding:8px 15px 8px 12px; border-radius:999px;
  font-size:13px; font-weight:700; letter-spacing:0;
  color:var(--ink);
  background:rgba(200,137,53,.10);
  backdrop-filter:none; -webkit-backdrop-filter:none;
  border:1px solid rgba(200,137,53,.22);
}
.pill__ico{ width:15px; height:15px; fill:var(--accent); flex:0 0 auto; }

.hero__h1{
  max-width:650px; margin:0 0 16px;
  font-size:54px;
  line-height:1.06; font-weight:800; letter-spacing:0;
}
.hero__h1 em{
  color:var(--accent); font-style:normal;
}
.hero__title-desktop > span{ display:block; }
.hero__title-mobile,
.hero__mobile-sub{ display:none; }

.hero__sub{
  margin:0 0 24px; max-width:630px;
  font-size:18px; line-height:1.5;
  color:var(--ink-2); font-weight:500;
}
.hero__sub b{ color:var(--ink); font-weight:800; }

/* ─ 3 буллета в строку. Визуал у всех в ОДНОЙ позиции (LANDING-DESIGN-GUIDE) ─ */
.bullets{
  list-style:none; margin:0 0 18px; padding:0;
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;
}
.bullet{
  min-width:0; padding:16px;
  background:var(--bg-2);
  backdrop-filter:none; -webkit-backdrop-filter:none;
  border:1px solid var(--line-2);
  border-radius:10px;
  box-shadow:none;
}
.bullet__ico{
  width:38px; height:38px; margin-bottom:12px; border-radius:8px;
  background:rgba(250,243,233,.92); border:1px solid rgba(200,137,53,.25);
  display:grid; place-items:center;
}
.bullet__ico svg{
  width:20px; height:20px; fill:none;
  stroke:var(--accent); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.bullet__t{ display:block; font-size:14px; font-weight:800; line-height:1.25; margin-bottom:5px; }
.bullet__d{ display:block; font-size:12px; line-height:1.4; color:var(--ink-2); }

/* ─ Кнопка первого экрана ─ */
.hero__cta{ max-width:650px; }
.offer{ display:flex; align-items:center; gap:18px; }
.offer .btn{ margin-left:0; }
.hero__phone-action{ display:none; }

.hero__note{
  margin:12px 0 0; font-size:12.5px; line-height:1.4; color:var(--ink-3);
}
.hero__note b{ color:var(--ink-2); }
.hero__note--c{ text-align:center; }

/* ═══════════ КВИЗ ═══════════ */
.quiz{ padding:64px 0 72px; background:var(--bg-2); border-top:1px solid var(--line); }
.quiz__head{ max-width:640px; margin-bottom:28px; }
.quiz__lead{ margin:0; font-size:16px; line-height:1.5; color:var(--ink-2); }

.quiz__box{
  background:var(--bg); border:1px solid var(--line);
  border-radius:18px; padding:32px;
}

.quiz__bar{ display:flex; align-items:center; gap:16px; margin-bottom:28px; }
.quiz__bar-track{
  flex:1 1 auto; height:6px; border-radius:99px;
  background:var(--bg-3); overflow:hidden;
}
.quiz__bar-fill{
  display:block; height:100%; width:20%;
  background:var(--accent); border-radius:99px;
  transition:width .3s ease;
}
.quiz__bar-num{ flex:0 0 auto; font-size:13px; font-weight:700; color:var(--ink-2); white-space:nowrap; }

.step{ border:0; padding:0; margin:0; display:none; }
.step.is-active{ display:block; }
.step__q{
  display:block; padding:0; margin:0 0 10px;
  font-size:27px; line-height:1.2;
  font-weight:800; letter-spacing:0;
}
.step__why{
  margin:0 0 22px; padding:12px 16px;
  background:var(--bg-2); border-left:3px solid var(--ink-3);
  border-radius:0 var(--radius-s) var(--radius-s) 0;
  font-size:13.5px; line-height:1.45; color:var(--ink-2);
}
.step__sub{
  margin:22px 0 10px; font-size:12px; font-weight:700;
  letter-spacing:0; text-transform:uppercase; color:var(--ink-3);
}
.step__sub:first-of-type{ margin-top:0; }
.step__hint{ margin:14px 0 0; font-size:13px; line-height:1.45; color:var(--ink-3); }

/* ─ Варианты ответов ─ */
.opts{ display:grid; gap:10px; }
.opts--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.opts--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }

.opt{ position:relative; display:block; cursor:pointer; }
.opt input{ position:absolute; opacity:0; width:0; height:0; }
.opt > span{
  display:block; height:100%;
  padding:15px 17px; border:1.5px solid var(--line);
  border-radius:var(--radius-s); background:var(--bg);
  font-size:14.5px; font-weight:600; line-height:1.3;
  transition:border-color .15s,background .15s;
}
.opt > span b{ display:block; font-weight:800; margin-bottom:3px; }
.opt > span i{ display:block; font-style:normal; font-size:12.5px; font-weight:500; color:var(--ink-3); line-height:1.35; }
.opt:hover > span{ border-color:var(--ink-3); }
.opt input:checked + span{ border-color:var(--accent); background:var(--bg-2); box-shadow:inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:2px; }
.opt--wide{ grid-column:1 / -1; }

/* ─ Навигация ─ */
.quiz__nav{ display:flex; gap:12px; margin-top:28px; padding-top:24px; border-top:1px solid var(--line-2); }
.quiz__nav .btn{ min-width:150px; }
#qNext{ margin-left:auto; }

/* ─ Результат ─ */
.step--result .result{
  padding:26px; margin-bottom:26px;
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
}
.result__label{
  margin:0 0 8px; font-size:12px; font-weight:700;
  letter-spacing:0; text-transform:uppercase; color:var(--ink-3);
}
.result__spec{ margin:0 0 14px; font-size:15px; font-weight:700; line-height:1.4; }
.result__price{
  margin:0 0 14px; font-size:44px;
  font-weight:800; letter-spacing:0; line-height:1.05;
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
}
.result__price i{ font-style:normal; color:var(--ink-3); }
.result__price b{ font-size:.6em; font-weight:800; }
.result__disc{ margin:0; font-size:13.5px; line-height:1.5; color:var(--ink-2); }

.lead__title{ margin:0 0 16px; font-size:18px; font-weight:800; }
.lead__fields{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }

.fld{ display:block; margin-bottom:12px; }
.fld__lab{
  display:block; margin-bottom:6px; font-size:12px; font-weight:700;
  letter-spacing:0; text-transform:uppercase; color:var(--ink-3);
}
.fld input{
  width:100%; padding:14px 16px; min-height:52px;
  border:1.5px solid var(--line); border-radius:var(--radius-s);
  background:var(--bg); font-size:16px; font-weight:600;
  transition:border-color .15s;
}
.fld input:focus{ outline:none; border-color:var(--accent); }
.fld input.is-error{ border-color:var(--ink); background:var(--bg-3); }

/* ─ Чекбокс согласия (никогда не предзаполнен — 152-ФЗ) ─ */
.consent{
  display:flex; gap:10px; align-items:flex-start;
  cursor:pointer; user-select:none;
  font-size:13px; line-height:1.45; color:var(--ink-2);
  margin:18px 0 16px;
}
.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 var(--ink-3); border-radius:5px;
  background:var(--bg); position:relative;
  transition:background .15s,border-color .15s;
}
.consent__input:checked + .consent__box{ background:var(--accent); border-color:var(--accent); }
.consent__input:checked + .consent__box::after{
  content:""; position:absolute; left:6px; top:2px;
  width:5px; height:10px;
  border:solid var(--accent-ink); border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.consent__input:focus-visible + .consent__box{ outline:2px solid var(--accent); outline-offset:2px; }
.consent--error .consent__box{ border-color:var(--ink); box-shadow:0 0 0 3px var(--bg-3); }
.consent a{ color:var(--ink); text-decoration:underline; }

/* ═══════════ ПОДВАЛ ═══════════ */
.ftr{ padding:48px 0 32px; border-top:1px solid var(--line); }
.ftr__in{ display:grid; grid-template-columns:1.4fr 1fr 1.2fr; gap:32px; }
.ftr__txt{ margin:6px 0 0; font-size:13.5px; line-height:1.5; color:var(--ink-2); }
.ftr__phone{ font-size:20px; font-weight:800; text-decoration:none; white-space:nowrap; }
.ftr__docs{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.ftr__docs a{ font-size:13.5px; color:var(--ink-2); text-decoration:underline; }
.ftr__docs a:hover{ color:var(--ink); }
.ftr__legal{ margin-top:28px; padding-top:20px; border-top:1px solid var(--line-2); }
.ftr__legal p{ margin:0; font-size:12.5px; color:var(--ink-3); }

/* ═══════════ МОДАЛКИ ═══════════ */
.modal{
  position:fixed; inset:0; z-index:9500;
  background:rgba(11,11,12,.62);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.modal[hidden]{ display:none; }
.modal__box{
  background:var(--bg); border-radius:18px; padding:32px;
  max-width:720px; width:100%; max-height:86vh; overflow:auto;
  position:relative;
}
.modal__box--sm{ max-width:440px; }
.modal__close{
  position:absolute; top:14px; right:14px;
  width:36px; height:36px; border:0; border-radius:9px;
  background:var(--bg-2); font-size:22px; line-height:1; cursor:pointer;
}
.modal__close:hover{ background:var(--bg-3); }
.modal__h{ margin:0 0 8px; font-size:22px; font-weight:800; letter-spacing:0; padding-right:40px; }
.modal__lead{ margin:0 0 20px; font-size:14px; line-height:1.5; color:var(--ink-2); }

.doc{ font-size:14px; line-height:1.6; color:var(--ink-2); }
.doc h2{ font-size:20px; margin:0 0 16px; color:var(--ink); padding-right:40px; letter-spacing:0; }
.doc h3{ font-size:15px; margin:22px 0 8px; color:var(--ink); }
.doc p{ margin:0 0 10px; }

/* ═══════════ КУКИ-БАННЕР (мягкий) ═══════════ */
/* ─── Куки-баннер ───
   Раньше это была карточка по центру экрана: она наезжала на первый экран,
   а кнопка «Принять» была ровно такой же жирной, как главный CTA, и спорила
   с ним за внимание. Теперь — тонкая полоса по нижнему краю: ничего не
   перекрывает, кнопка мельче и тише.
   Боковой padding повторяет сетку 1480: текст встаёт под логотип. */
.cookie{
  position:fixed; left:0; right:0; bottom:0; z-index:9000;
  max-width:none; margin:0;
  color:var(--ink);
  background:rgba(252,251,249,.97);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:0; border-top:1px solid var(--line); border-radius:0;
  box-shadow:0 -10px 30px -22px rgba(11,11,12,.4);
  padding:12px max(24px, calc((100% - 1480px) / 2 + 24px));
  display:flex; flex-direction:row; align-items:center; gap:20px;
}
.cookie[hidden]{ display:none; }
.cookie__text{
  margin:0; flex:1 1 auto; max-width:none;
  font-size:12.5px; line-height:1.45; color:var(--ink-2);
}
.cookie__text a{ color:var(--ink); text-decoration:underline; }
.cookie__actions{ flex:0 0 auto; }
/* Кнопка намеренно мельче главного CTA: мягкое уведомление не должно
   перетягивать на себя клик, который нужен на «Подобрать шкаф». */
.cookie .btn{
  min-height:38px; min-width:0;
  padding:9px 22px; gap:0;
  font-size:13.5px; border-radius:8px;
  box-shadow:none;
}
.cookie .btn:hover{ transform:none; box-shadow:none; opacity:.92; }

/* ═══════════════════════════════════════════════════════════
   АДАПТИВ
   ═══════════════════════════════════════════════════════════ */

@media (max-width:1279px){
  .hdr__in{ min-height:88px; flex-wrap:nowrap; gap:16px; padding-top:12px; padding-bottom:12px; }
  .hdr__who{ display:none; }
  .soc{ width:40px; height:40px; }
  .hdr__phone{ font-size:18px; }
  .hdr__hours{ font-size:11px; }
  .hdr__cb{ min-width:176px; min-height:50px; padding:10px 14px; }
  .hero__h1{ font-size:48px; }
  .hero{ min-height:calc(100dvh - 88px); }
}

/* Низкие экраны (ноутбуки 1366×768 и т.п.) — дожимаем, чтобы кнопка
   оставалась над сгибом */
@media (min-width:1024px) and (max-height:800px){
  .hero{ padding:24px 0 28px; }
  .hero__h1{ font-size:48px; margin-bottom:12px; }
  .hero__sub{ margin-bottom:16px; font-size:15px; }
  .pill{ margin-bottom:12px; padding:6px 13px 6px 11px; font-size:12.5px; }
  .bullets{ max-width:540px; margin-bottom:14px; }
  .bullet{ padding:12px; }
  .bullet__ico{ width:32px; height:32px; margin:0 0 8px; }
  .bullet__d{ font-size:11px; }
  .btn--lg{ min-height:52px; font-size:15.5px; }
  .btn--xl{ min-height:66px; min-width:300px; padding:20px 34px; font-size:18px; }
  .offer{ padding:0; gap:0; }
  .hero__note{ margin-top:9px; }
}

/* ═══════════ ПЛАНШЕТНАЯ ЛОГИКА ПЕРВОГО ЭКРАНА ═══════════ */
@media (max-width:1023px){

  .hero{
    min-height:0; display:block; padding:0 0 36px;
    background:var(--bg);
  }
  /* Планшет. Раньше тут стоял contain в рамке 1.60 — широкий кадр 2.54
     ложился в неё с бежевыми полосами примерно по 18% высоты сверху и снизу.
     Теперь cover в рамке 16/9 с якорем справа: видно правые 70% холста,
     шкаф целиком, полос нет. */
  .hero__bg{
    position:relative; inset:auto;
    width:100%; height:auto; aspect-ratio:16 / 9;
    background:#EEE2D7 url('../img/hero-desktop-v7.jpg') right center / cover no-repeat;
  }
  .hero__bg::before{ display:none; }
  .hero__bg img{
    position:absolute; inset:0; top:0; left:0;
    width:100%; height:100%; max-width:100%;
    object-fit:cover; object-position:right center;
    transform:none; mask-image:none; -webkit-mask-image:none;
  }
  .hero__bg::after{
    background:linear-gradient(180deg,
      rgba(252,251,249,0) 54%,
      rgba(252,251,249,.56) 76%,
      rgba(252,251,249,.98) 100%);
    backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px);
    mask-image:linear-gradient(180deg,transparent 48%,#000 78%,#000 100%);
    -webkit-mask-image:linear-gradient(180deg,transparent 48%,#000 78%,#000 100%);
  }

  /* Ниже 1024px фото становится отдельной полосой над текстом,
     поэтому белая карточка не нужна — она бы дублировала фон секции. */
  .hero__card{
    max-width:none; padding:0; border:0; border-radius:0;
    background:transparent; box-shadow:none;
  }
  .hero__grid{ margin-top:-42px; }
  .hero__text,.bullets,.hero__cta{ max-width:none; }
  .hero__h1{ font-size:40px; }
  .hero__sub{ font-size:16px; }

  .bullets{
    grid-template-columns:repeat(3,minmax(0,1fr));
    max-width:620px; gap:10px; margin-bottom:22px;
  }
  .bullet{
    min-height:145px; aspect-ratio:auto;
    display:flex; flex-direction:column; align-items:flex-start;
    padding:14px;
  }
  .bullet__ico{
    grid-row:auto; width:36px; height:36px; margin:0 0 10px;
  }
  .bullet__ico svg{ width:17px; height:17px; }
  .bullet__t{ margin-top:0; font-size:13.5px; }
  .bullet__d{ font-size:12px; line-height:1.35; }

  .pill{ margin-bottom:12px; font-size:12px; }
  .hero__h1{ margin-bottom:10px; }
  .hero__sub{ margin-bottom:18px; }

  .offer{ flex-direction:column; align-items:stretch; gap:12px; padding:12px; }
  .offer .btn{ margin-left:0; width:100%; }
  /* Мобильную кнопку не трогаем — там размер уже нормальный.
     min-width сбрасываем, иначе десктопные 340px рвут узкий экран. */
  .btn--xl{ min-height:58px; min-width:0; font-size:16.5px; }
  .hero__note{ text-align:center; }

  .ftr__in{ grid-template-columns:1fr 1fr; }
  .quiz__box{ padding:24px; }

  .hdr__in{ min-height:68px; flex-wrap:nowrap; gap:10px; padding-top:10px; padding-bottom:10px; }
  .hdr__who,.hdr__contact{ display:none; }
  .hdr__call{ display:grid; margin-left:auto; }
  .hdr__cb{
    min-width:0; min-height:46px; padding:10px 16px; font-size:14px;
  }
  .hdr__cb-ico{ display:none; }
  .hdr__cb .is-wide{ display:none; }
  .hdr__cb .is-narrow{ display:inline; }
  .logo{ min-width:0; }
  .logo__mark{ font-size:28px; }
  .logo__desc{ font-size:9.5px; letter-spacing:0; }
}

@media (max-width:720px){
  .h2{ font-size:32px; }
  .step__q{ font-size:22px; }
  .result__price{ font-size:34px; }
  .opts--2,.opts--3{ grid-template-columns:1fr; }
  .lead__fields{ grid-template-columns:1fr; }
  .quiz__nav{ flex-direction:column-reverse; align-items:stretch; }
  .quiz__nav .btn{ width:100%; min-width:0; }
  #qNext{ margin-left:0; }
  .ftr__in{ grid-template-columns:1fr; gap:24px; }
}

/* Полноэкранная телефонная композиция. Планшеты и десктоп используют
   исходный горизонтальный фон и прежнюю раскладку. */
@media (max-width:767px) and (orientation:portrait){
  :root{ --gap:16px; }

  /* Шапка лежит НА фото: фото уходит под самый верх экрана, как в референсе.
     Она не sticky, поэтому при скролле уезжает вместе с первым экраном
     и белый логотип нигде больше не оказывается на светлом фоне. */
  .hdr{
    position:absolute; top:0; left:0; right:0; z-index:20;
    background:transparent;
    border-bottom-color:transparent;
    box-shadow:none;
    backdrop-filter:none; -webkit-backdrop-filter:none;
  }
  .hdr__in{
    min-height:64px;
    /* по референсу верх «СОЛО» на 24px от края экрана */
    padding-top:calc(22px + env(safe-area-inset-top,0px)); padding-bottom:8px;
    gap:8px;
  }
  .logo{ color:#fff; text-shadow:0 1px 4px rgba(26,17,9,.5); }
  .logo__mark{ font-size:26px; }
  .logo__desc{ font-size:8.5px; color:rgba(255,255,255,.82); }
  .hdr__call{
    width:42px; height:42px; border-radius:11px;
    border-color:rgba(255,255,255,.55);
    background:rgba(255,255,255,.14);
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  }
  .hdr__call svg{ fill:#fff; }
  .hdr__cb{
    display:none; min-height:44px; padding:10px 14px;
    border-radius:8px; font-size:13px;
  }

  .hero{
    min-height:100svh;
    display:block; padding:0;
    color:#fff; background:#B08A68;
    /* Десктопное скругление вырезало бы светлый уголок под логотипом:
       на телефоне фото идёт встык с краем экрана. */
    border-top-left-radius:0;
  }
  .hero__bg{
    position:absolute; inset:0;
    width:100%; height:100%; aspect-ratio:auto;
    /* Тот же приём, что на десктопе: фон-страховка под <img> */
    background:#B08A68 url('../img/hero-mobile-v5.jpg') center top / cover no-repeat;
  }
  .hero__bg::before{ display:none; }
  .hero__bg picture{ position:absolute; inset:0; width:100%; height:100%; }
  /* Кадр 941×2037 (0.462) собран под пропорцию современного телефона:
     шкаф виден целиком и стоит по центру, низ кадра — свободный пол
     под карточку. Якорь сверху: на коротких экранах (SE, 16:9) cover
     режет только пол внизу, шкаф остаётся в кадре целиком. */
  .hero__bg img{
    position:absolute; inset:0; top:0; left:0;
    width:100%; height:100%; max-width:none;
    object-fit:cover; object-position:center top;
    transform:none;
    mask-image:none; -webkit-mask-image:none;
  }
  /* Вместо белой вуали — мягкое затемнение ровно под белым H1.
     Верх кадра и пол остаются чистыми: шкаф не белёсый — этого и требует
     LANDING-DESIGN-GUIDE («изображение не должно быть белёсым»). */
  .hero__bg::after{
    background:
      linear-gradient(180deg,
        rgba(24,17,10,.42) 0%,
        rgba(24,17,10,.20) 9%,
        rgba(24,17,10,.02) 20%,
        rgba(24,17,10,.10) 28%,
        rgba(24,17,10,.40) 35%,
        rgba(24,17,10,.56) 44%,
        rgba(24,17,10,.58) 56%,
        rgba(24,17,10,.36) 68%,
        rgba(24,17,10,.16) 82%,
        rgba(24,17,10,.12) 100%);
    backdrop-filter:none; -webkit-backdrop-filter:none;
    mask-image:none; -webkit-mask-image:none;
  }

  /* Белая карточка десктопа и обёртка текста на мобильной прозрачны:
     их дети становятся ячейками сетки первого экрана. */
  .hero__card{ display:contents; }
  .hero__text{ display:contents; }

  .hero__grid{
    position:relative; z-index:3;
    width:100%; max-width:none;
    min-height:100svh;
    margin:0;
    /* Все числа сняты с референса 853x1844 (= 390x844 css, масштаб 2.187):
       pill сверху 102, H1 302, подзаголовок 454, карточка 519..810,
       поля по 20. Пустая строка space держит эти позиции на 844 и
       растягивается на более высоких экранах. */
    padding:calc(99px + env(safe-area-inset-top,0px)) 20px max(47px,env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(12px,1fr) auto auto auto auto auto;
    grid-template-areas:
      'pill'
      'space'
      'title'
      'sub'
      'proof'
      'action'
      'trust';
    gap:0;
  }
  /* Светлая карточка на полу рисуется псевдоэлементом сетки и накрывает
     три нижние строки. Обёртки в разметке для этого не нужно — карточка
     переживает любую перекройку hero в index.html. */
  .hero__grid::after{
    content:''; grid-column:1; grid-row:5 / 8;
    /* по референсу: 10 сверху над первой плашкой, 13 под кнопкой */
    z-index:0; margin:-10px 0 -13px;
    /* Подложка чуть просвечивает — пол и ковёр читаются сквозь неё.
       Ниже .82 текст буллетов начинает терять контраст. */
    background:rgba(250,246,241,.82);
    border:1px solid rgba(255,255,255,.5);
    border-radius:14px;
    box-shadow:0 26px 54px -30px rgba(38,24,10,.75);
    backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px);
  }
  .pill{
    grid-area:pill; align-self:start;
    display:inline-flex; margin:0; padding:0;
    font-size:13px; line-height:1.2; font-weight:700;
    color:#fff; background:transparent;
    text-shadow:0 1px 3px rgba(26,17,9,.55);
    border:0; border-radius:0; box-shadow:none;
    backdrop-filter:none; -webkit-backdrop-filter:none;
  }
  .pill__ico{ width:15px; height:15px; fill:#EFB865; }
  .hero__title-desktop{ display:none; }
  .hero__title-mobile{ display:block; }
  .hero__title-mobile > span{ display:block; }
  /* Кегль референса — 46px, но там строки по 10 знаков («именно вам»).
     У нас строки до 15 знаков, поэтому берём максимум, влезающий
     в колонку 350px без переноса. */
  .hero__h1{
    grid-area:title;
    max-width:350px; margin:0;
    font-size:36px; line-height:1.06; font-weight:800;
    color:#fff; text-shadow:0 2px 14px rgba(24,16,8,.45);
  }
  /* На затемнённом фото обычный --accent (#C88935) даёт всего 2.4:1.
     Берём осветлённый оттенок того же золота — 3.9:1, норма AA
     для крупного текста. */
  .hero__h1 em{ color:#EFB865; }
  .hero__sub{ display:none; }
  .hero__mobile-sub{
    grid-area:sub;
    display:block; max-width:330px;
    /* 25 до H1 сверху; снизу воздух до карточки. У нас H1 в 3 строки
       и подзаголовок в 2 (в референсе 4 и 3), освободившиеся ~25px
       уходят сюда, чтобы H1 встал ровно на 303 как в референсе. */
    margin:25px 0 45px;
    font-size:15px; line-height:1.35; font-weight:600;
    color:rgba(255,255,255,.93); text-shadow:0 1px 8px rgba(24,16,8,.5);
  }

  /* ─ Содержимое карточки: доказательства, CTA, соцдоказательство ─
     Боковые padding:10px дают внутренние поля карточки-псевдоэлемента. */
  .bullets{
    grid-area:proof; position:relative; z-index:1;
    display:grid; grid-template-columns:minmax(0,1fr);
    width:100%; min-width:0; height:auto; max-width:none;
    /* плашки: 61px высотой, зазор 10, поля карточки 19 — с референса */
    margin:0 0 13px; padding:0 19px; gap:9px;
    pointer-events:auto;
  }
  /* Строкой: иконка слева, заголовок и пояснение справа в две строки. */
  .bullet{
    position:static; left:auto; right:auto; top:auto; bottom:auto;
    width:auto; max-width:none; min-width:0; min-height:0; aspect-ratio:auto;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:'ico t' 'ico d';
    align-items:center; column-gap:13px;
    min-height:62px; padding:6px 12px;
    color:var(--ink);
    background:rgba(255,255,255,.72);
    border-color:rgba(184,163,137,.28);
    border-radius:14px;
    box-shadow:none;
  }
  .bullet:nth-child(1),
  .bullet:nth-child(2){ position:static; }
  .bullet:nth-child(3){ display:grid; }
  /* grid-area:ico растягивает иконку на обе строки. Не добавлять сюда
     grid-row:auto — он отменяет растяжку и плашка распухает до 94px. */
  .bullet__ico{
    grid-area:ico; align-self:center;
    width:44px; height:44px;
    margin:0; border-radius:12px;
    background:#fff; border-color:rgba(200,137,53,.22);
  }
  .bullet__ico svg{ width:24px; height:24px; stroke-width:2.3; stroke:var(--accent-dark); }
  .bullet__t{
    grid-area:t; align-self:end;
    margin:0; font-size:15px; line-height:1.25;
    overflow-wrap:normal; hyphens:none;
  }
  .bullet__d{
    grid-area:d; align-self:start;
    display:block; margin:0;
    font-size:12px; line-height:1.28; color:var(--ink-2);
  }

  .hero__cta{
    grid-area:action; position:relative; z-index:1;
    display:block; width:100%; min-width:0; max-width:100%;
    margin:0; padding:0 19px;
    color:var(--ink); background:transparent;
    border:0; border-radius:0; box-shadow:none;
    backdrop-filter:none; -webkit-backdrop-filter:none;
  }
  .offer{
    display:block; width:100%; min-height:0; padding:0;
    color:var(--ink); background:transparent;
    border:0; border-radius:0; box-shadow:none;
    backdrop-filter:none; -webkit-backdrop-filter:none;
  }
  /* Кнопка с референса: 312x55, радиус 12, надпись по центру,
     стрелка прижата вправо. Селектор через .hero__cta, а не .offer —
     обёртка .offer в разметке то появляется, то исчезает. */
  .hero__cta .btn{
    position:relative;
    width:100%; min-width:0; height:auto; min-height:54px;
    margin:0; padding:14px 20px; border-radius:12px;
    justify-content:center; gap:0;
    font-size:17px;
    color:var(--accent-ink);
    background:linear-gradient(145deg,var(--accent-light),var(--accent) 58%,var(--accent-dark));
    box-shadow:0 14px 28px -18px rgba(94,53,13,.78),inset 0 1px rgba(255,255,255,.3);
  }
  .hero__cta .btn__label{ display:inline; }
  .hero__cta .btn__arrow{
    position:absolute; right:20px; top:50%; transform:translateY(-50%);
    margin:0; font-size:20px; line-height:1;
  }
  /* «Смотреть примеры работ» — тихая ссылка под кнопкой, внутри карточки */
  .hero__link{
    display:flex; align-items:center; justify-content:center; gap:6px;
    margin:9px 0 0; min-height:32px;
    font-size:13px; font-weight:700; text-decoration:none;
    color:var(--accent-dark);
  }
  .hero__proof{
    grid-area:trust; position:relative; z-index:1;
    display:flex; align-items:center; gap:10px;
    margin:10px 0 0; padding:0 10px;
    color:var(--ink-2);
  }
  .hero__faces{ flex:0 0 auto; display:flex; }
  .hero__faces span{
    width:24px; height:24px; border-radius:50%;
    background:var(--bg-3); border:2px solid #fff; margin-left:-8px;
  }
  .hero__faces span:first-child{ margin-left:0; }
  .hero__proof-t{ margin:0; font-size:11px; line-height:1.3; }
  .hero__proof-t b{ color:var(--ink); }
  .hero__phone-action{ display:none; }
  .hero__note{ display:none; }
}

@media (max-width:420px) and (orientation:portrait){
  /* 36px — предел, при котором «шкафа до замера» ещё держится в одну
     строку в колонке 350px. В референсе кегль крупнее, но там строки
     вдвое короче («именно вам»). */
  .hero__h1{ font-size:36px; }
}

@media (max-width:340px) and (orientation:portrait){
  .hero__grid{ padding-left:11px; padding-right:11px; }
  .hero__h1{ font-size:26px; }
  .hero__grid::after{ border-radius:16px; }
  .bullet{ min-height:0; padding:7px 9px; column-gap:9px; }
  .bullet__ico{ width:38px; height:38px; border-radius:10px; margin:0; }
  .bullet__ico svg{ width:21px; height:21px; }
  .bullet__t{ font-size:12.5px; }
  .bullet__d{ font-size:10.5px; }
}

/* Короткие экраны (SE, старые 16:9): карточка съедает почти весь запас,
   поэтому убираем pill и ужимаем всё, что можно, — шкаф всё равно
   остаётся в верхней половине кадра. */
@media (max-width:767px) and (orientation:portrait) and (max-height:700px){
  .hero__grid{
    padding-top:calc(58px + env(safe-area-inset-top,0px));
    padding-bottom:max(10px,env(safe-area-inset-bottom));
    grid-template-rows:auto minmax(12px,1fr) auto auto auto auto auto;
  }
  .pill{ display:none; }
  .hero__h1{ font-size:28px; }
  .hero__mobile-sub{ margin:7px 0 18px; font-size:12px; line-height:1.3; }
  .hero__grid::after{ border-radius:16px; }
  .bullets{ margin-bottom:8px; gap:5px; }
  .bullet{ min-height:0; padding:7px 10px; }
  .bullet__ico{ width:38px; height:38px; border-radius:10px; }
  .bullet__ico svg{ width:21px; height:21px; }
  .bullet__t{ font-size:13px; }
  .bullet__d{ font-size:11px; }
  .hero__cta .btn{ min-height:52px; padding:12px 17px; }
  /* На коротком экране (667 px и ниже) ни ссылке на примеры,
     ни счётчику шкафов места уже нет — кнопка важнее. */
  .hero__link{ display:none; }
  .hero__proof{ display:none; }
}

@media (max-width:340px) and (orientation:portrait) and (max-height:700px){
  .hero__h1{ font-size:25px; }
}

@media (max-width:520px){
  .quiz__box{ padding:18px; border-radius:14px; }
  .step__why{ padding:11px 13px; font-size:13px; }
  .modal__box{ padding:22px 18px; max-height:90vh; }
  .btn--lg{ min-height:52px; padding:14px 18px; font-size:15.5px; }
  .result__price{ gap:6px; }
  /* На узких экранах в строку не помещается — текст сверху, кнопка снизу */
  .cookie{
    flex-direction:column; align-items:stretch; gap:10px;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));
  }
  .cookie__text{ font-size:12px; }
  .cookie .btn{ width:100%; min-height:42px; }
}

@media (max-width:360px){
  .logo__mark{ font-size:24px; }
  .logo__desc{ font-size:8px; }
  .hdr__call{ width:40px; height:40px; }
  .hdr__cb{ min-height:42px; padding:9px 12px; font-size:12.5px; }
}

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