/* ───────────────────────────────────────────────────────────
   НЕЧТО — Онбординг: редакторская вёрстка на тёмном холсте.
   Форма «дышит» отступами и типографикой, без плашек на каждом
   блоке. Карточки — только для продающих блоков (экосистема, слёты).
   Палитра/типографика — tokens.css.
   ─────────────────────────────────────────────────────────── */

/* Benzin — фирменный дисплейный шрифт Нечто (локальные файлы) */
@font-face { font-family: "Benzin"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Benzin-Regular.ttf") format("truetype"); }
@font-face { font-family: "Benzin"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Benzin-Medium.woff2") format("woff2"); }
@font-face { font-family: "Benzin"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Benzin-Bold.woff2") format("woff2"); }

:root {
  --pad: 64px;
  /* 4pt-шкала отступов */
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  /* Ширина текстовой колонки для читаемости */
  --measure: 64ch;
  --measure-q: 800px;
  --hair: rgba(255,255,255,0.09);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Акцент — фирменный сейдж/олива (ярче для читаемости на тёмном) */
  --accent: #CAD5A1;            /* sage-light — акцентный текст/детали */
  --accent-soft: rgba(202,213,161,0.12);
  --accent-line: rgba(202,213,161,0.40);
}

html, body { font-size: 16px; line-height: 1.5; }
body { background: #0E0E0E; }

.scene {
  position: relative; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(60% 48% at 12% 4%, rgba(104,111,77,0.12), transparent 60%),
    radial-gradient(55% 45% at 92% 20%, rgba(99,197,127,0.06), transparent 60%),
    radial-gradient(45% 45% at 82% 82%, rgba(238,243,255,0.035), transparent 60%),
    radial-gradient(75% 55% at 50% 122%, rgba(104,111,77,0.15), transparent 60%),
    #0A0A0A;
  isolation: isolate;
}
/* Фоновый паттерн — растянут на всю страницу, скроллится (не фиксирован) */
.scene::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("/assets/bg-pattern-dark.png");
  background-size: 740px; background-repeat: repeat;
  opacity: 0.55; pointer-events: none; z-index: 0;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 3; }

/* ── Top bar ─────────────────────────────────────────────── */
.top-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.top-bar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 42%, transparent 100%); pointer-events: none; z-index: -1; }
.top-bar__inner { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-4); padding-bottom: var(--s-4); }
.brand { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: var(--tr-tight); color: var(--n-paper-soft); }
.brand-logo { height: 22px; width: auto; display: block; }
.top-bar__meta { color: var(--n-stone); font-size: 13px; letter-spacing: 0.04em; }

#app { padding-bottom: 160px; }

/* ── Typographic helpers ─────────────────────────────────── */
.eyebrow { font-size: 12px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--n-stone); font-weight: 600; margin-bottom: var(--s-4); }

/* ── Ритм экранов — отступы и тонкие разделители ─────────── */
.screen { margin-top: var(--s-20); }
#app > .screen:first-child { margin-top: var(--s-6); }
.screen__inner { max-width: 1040px; margin: 0 auto; }
.screen__head { margin-bottom: var(--s-8); }
.screen__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.04; letter-spacing: var(--tr-tight); margin: var(--s-2) 0 0; color: var(--n-paper-soft); }
.screen__title--big { font-size: clamp(34px, 4.4vw, 56px); }
.screen__intro { color: var(--n-mist); max-width: var(--measure); margin: var(--s-4) 0 0; font-size: 17px; line-height: 1.6; }

/* Открыватели «глав» — светящаяся линия-разделитель + крупный заголовок + воздух */
.screen--band, .screen--diagintro, .screen--offline, .screen--joinnow {
  margin-top: var(--s-24); padding-top: var(--s-16); position: relative;
}
.screen--band::before, .screen--diagintro::before, .screen--offline::before, .screen--joinnow::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226,234,244,0.30) 50%, transparent);
}
/* Фирменный знак-маркер раздела (cool-shape) */
.shape-mark { color: var(--o-sage); opacity: 0.9; margin-bottom: var(--s-6); }
.shape-mark svg { display: block; }
.band__inner, .offline > .band__inner { max-width: 1040px; margin: 0 auto; }
/* Фирменный объект справа от большого заголовка (в пустой правой зоне) */
.heading-deco { position: absolute; right: clamp(0px, 1.5vw, 36px); top: 50%; transform: translateY(-50%); width: clamp(200px, 20vw, 320px); opacity: 0.9; pointer-events: none; z-index: 0; filter: drop-shadow(0 24px 60px rgba(0,0,0,0.5)); }
.screen--band .band__inner, .screen--diagintro .diagintro { position: relative; z-index: 1; }
.screen--band .band__title, .screen--band .band__sub, .screen--band .band__bullets { max-width: min(58%, var(--measure)); }
.screen--diagintro .screen__title, .screen--diagintro .screen__intro, .screen--diagintro .diagintro__label { max-width: 58%; }
@media (max-width: 1100px) {
  .heading-deco { display: none; }
  .screen--band .band__title, .screen--band .band__sub, .screen--band .band__bullets,
  .screen--diagintro .screen__title, .screen--diagintro .screen__intro, .screen--diagintro .diagintro__label { max-width: 100%; }
}
.band__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: var(--tr-tight); margin: 0; color: var(--n-paper-soft); }
.band__sub { margin-top: var(--s-6); color: var(--n-mist); max-width: var(--measure); font-size: 17px; line-height: 1.6; }
.band__bullets-title { margin-top: var(--s-8); font-weight: 600; color: var(--n-paper); }
.band__bullets { margin: var(--s-3) 0 0; padding-left: 22px; color: var(--n-mist); display: grid; gap: var(--s-2); max-width: var(--measure); }

/* ── HERO — обложка: фон-фото + текст внизу слева ─────────── */
/* Full-bleed обложка на весь экран (выходит за рамки контейнера) */
#app > .screen--hero { position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw; margin-top: 0; min-height: 100vh; border-radius: 0; }
.screen--hero { overflow: hidden; display: flex; align-items: flex-end; }
.hero__bg { position: absolute; top: 0; left: 0; right: 0; z-index: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 6px; }
.hero__shot { height: 230px; width: auto; flex: 1 1 auto; min-width: 0; object-fit: cover; display: block; border-radius: 6px; }
.screen--hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,12,12,0.62) 0%, rgba(12,12,12,0.28) 18%, rgba(12,12,12,0.40) 60%, rgba(12,12,12,0.96) 100%); }
/* Атмосфера: свет-купол сверху + виньетка по краям */
.hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(135% 78% at 50% -12%, rgba(200,214,228,0.26), rgba(200,214,228,0.05) 42%, transparent 60%),
    radial-gradient(760px 760px at 50% -300px, transparent 60.5%, rgba(226,234,244,0.40) 62.5%, transparent 66%),
    radial-gradient(120% 100% at 50% 46%, transparent 52%, rgba(0,0,0,0.55) 100%); }
.hero__overlay { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad) var(--s-16); }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: var(--tr-tight); margin: 0; max-width: 16ch; color: var(--n-paper-soft); text-shadow: 0 2px 40px rgba(0,0,0,0.55); }
.hero__today { margin-top: var(--s-8); max-width: 960px; background: rgba(8,10,8,0.46); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(202,213,161,0.20); border-radius: 18px; padding: var(--s-6) var(--s-8); }
.hero__today-title { font-size: 12px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: var(--s-6); text-align: center; }
.today-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.today-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-6) var(--s-4); background: rgba(255,255,255,0.05); border: 1px solid var(--accent-line); border-radius: 16px; }
.today-step__ic { color: var(--accent); }
.today-step__ic svg { display: block; }
.today-step__t { color: var(--n-paper-soft); font-size: 15px; line-height: 1.35; }

/* ── Кнопка-меню в шапке (открывает поп-ап) ──────────────── */
.menu-trigger { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-body); font-size: 13px; color: var(--n-mist); background: rgba(255,255,255,0.03); border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; max-width: 300px; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .16s var(--ease-out); }
.menu-trigger:active { transform: scale(0.97); }
.menu-trigger:focus-visible { outline: 2px solid var(--o-sage-text); outline-offset: 2px; }
.menu-trigger__icon { flex: 0 0 auto; color: var(--n-stone); }
.menu-trigger__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-trigger__chev { flex: 0 0 auto; width: 7px; height: 7px; border-right: 1.5px solid var(--n-stone); border-bottom: 1.5px solid var(--n-stone); transform: rotate(45deg); margin: -2px 0 0 2px; }
.menu-trigger.is-set { color: var(--o-sage-text); border-color: rgba(213,217,194,0.30); background: rgba(213,217,194,0.06); }
.menu-trigger.is-set .menu-trigger__icon { color: var(--o-sage); }
@media (hover: hover) and (pointer: fine) { .menu-trigger:hover { border-color: rgba(213,217,194,0.30); color: var(--n-paper); } }

/* ── Поп-ап выбора участника ─────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--s-6);
  background: rgba(8,8,8,0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog { position: relative; width: 100%; max-width: 560px; background: #1A1A1A; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: var(--s-12) var(--s-10) var(--s-8); box-shadow: 0 24px 70px rgba(0,0,0,0.55); transform: scale(0.96); transition: transform .24s var(--ease-out); }
.modal.is-open .modal__dialog { transform: none; }
.modal .field-grid { grid-template-columns: 1fr; gap: var(--s-6); }
.modal__close { position: absolute; top: var(--s-4); right: var(--s-4); width: 34px; height: 34px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--n-stone); background: transparent; border: none; border-radius: var(--r-pill); cursor: pointer; transition: color .15s ease, background .15s ease, transform .16s var(--ease-out); }
.modal__close:active { transform: scale(0.94); }
.modal__close:focus-visible { outline: 2px solid var(--o-sage-text); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .modal__close:hover { color: var(--n-paper); background: rgba(255,255,255,0.06); } }
.modal__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 30px); letter-spacing: var(--tr-tight); margin: var(--s-2) 0 var(--s-3); color: var(--n-paper-soft); }
.modal__hint { color: var(--n-mist); margin: 0 0 var(--s-8); font-size: 15px; line-height: 1.6; }
.modal__actions { display: flex; justify-content: flex-end; margin-top: var(--s-8); }

/* ── Комбобокс поиска участника ──────────────────────────── */
.combo { position: relative; }
.combo__list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #1F1F1F; border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.combo__item { padding: 10px 12px; border-radius: 8px; color: var(--n-paper); font-size: 15px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo__item.is-active { background: rgba(213,217,194,0.12); color: var(--n-paper-soft); }
@media (hover: hover) and (pointer: fine) { .combo__item:hover { background: rgba(213,217,194,0.12); color: var(--n-paper-soft); } }
.combo__empty { padding: 12px; color: var(--n-stone); font-size: 14px; }

/* ── Steps (Как пройдёт встреча) ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-8) var(--s-6); margin-top: var(--s-6); }
.step { display: flex; flex-direction: column; gap: var(--s-3); }
.step__num { width: 34px; height: 34px; border-radius: var(--r-pill); display: grid; place-items: center; font-family: var(--font-mono); font-size: 15px; background: rgba(104,111,77,0.28); border: 1px solid rgba(213,217,194,0.28); color: var(--o-sage-text); }
.step__title { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: var(--tr-snug); color: var(--n-paper-soft); }
.step__desc { color: var(--n-stone); font-size: 14px; line-height: 1.5; }

/* ── Контейнеры контента — БЕЗ плашек (редакторские) ─────── */
.profile-card, .qblock { position: relative; }

/* ── Fields ──────────────────────────────────────────────── */
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-8); }
.field { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 14px; color: var(--n-paper); font-weight: 500; display: flex; align-items: center; gap: var(--s-2); }
.field__tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-stone); }
.field__tag::before { content: "· "; color: var(--n-iron); }
.field__input { width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--n-paper-soft); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.20); border-radius: 12px; padding: 14px 16px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.field__input::placeholder { color: rgba(255,255,255,0.28); }
.field__input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(202,213,161,0.22); }
.field__input:focus-visible { outline: 2px solid var(--o-sage-text); outline-offset: 2px; }
.field__input--area { resize: vertical; min-height: 88px; line-height: 1.5; }
.field__input--select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23BABABA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field__input--score { width: 130px; flex: 0 0 auto; }

/* Ответ, подгруженный из анкеты — отдельная акцентная плашка */
.field--prefillable.is-prefilled { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 14px; padding: 14px 16px; }
.field--prefillable.is-prefilled .field__input { background: rgba(0,0,0,0.22); border-color: rgba(202,213,161,0.28); }
.field--prefillable.is-prefilled .field__label { color: var(--accent); }
.field--prefillable.is-prefilled .field__tag { color: var(--accent); }
.field--prefillable.is-prefilled .field__tag::before { color: var(--accent); }

/* Профиль: крупное фото + поля */
.profile-row { display: flex; gap: var(--s-12); align-items: flex-start; }
.profile-row__body { flex: 1 1 auto; min-width: 0; }

/* ── Diagnostic intro — оверлайн-заголовок без плашки ─────── */
.diagintro__label { margin-top: var(--s-8); font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 26px); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--o-sage-text); }

/* ── Qblock — интервью-блок (редакторский) ───────────────── */
.qblock__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.qblock__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: var(--tr-snug); color: var(--n-paper-soft); margin: 0; }
.qblock__title--sub { font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; color: var(--o-sage); letter-spacing: 0.02em; }

/* Запрос из анкеты — тихий лид-абзац, не плашка */
.prefill-line { margin: 0 0 var(--s-8); max-width: var(--measure); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 14px; padding: 16px 18px; }
.prefill-line__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: var(--tr-wide); color: var(--accent); margin-bottom: var(--s-3); font-weight: 600; }
.prefill-line__val { font-size: 19px; line-height: 1.5; color: var(--n-paper-soft); font-weight: 500; }

/* Контекст из анкеты — тихая строка, не чипы */
.ctx { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-items: baseline; margin-bottom: var(--s-8); max-width: var(--measure); font-size: 14px; }
.ctx__tag { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tr-wide); color: var(--n-stone); font-weight: 600; }
.ctx__chip { display: inline-flex; gap: 6px; align-items: baseline; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-pill); padding: 6px 12px; }
.ctx__label { color: var(--n-stone); }
.ctx__val { color: var(--n-mist); }
.ctx__val--filled { color: var(--accent); font-weight: 500; }

/* Каждый вопрос — со своим полем ввода, с воздухом */
.qfields { display: grid; gap: var(--s-8); max-width: var(--measure-q); }
.qitem { display: flex; flex-direction: column; gap: var(--s-3); }
.qitem__q { color: var(--n-paper); line-height: 1.45; font-size: 17px; }
.qitem__input { min-height: 60px; }
.qgroup { display: grid; gap: var(--s-6); }
.qgroup__label { color: var(--o-sage); font-weight: 600; line-height: 1.45; font-size: 18px; font-family: var(--font-display); letter-spacing: var(--tr-snug); }

/* ── Карточка — единый стиль для продающих блоков ────────── */
.card { background: rgba(255,255,255,0.03); border: 1px solid var(--hair); border-radius: var(--r-md); }

/* Eco — экосистема */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); margin-top: var(--s-6); }
.eco { padding: var(--s-6); transition: transform .2s var(--ease-out), border-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .eco:hover { transform: translateY(-3px); border-color: rgba(213,217,194,0.25); }
}
.eco__obj { width: 100%; height: 156px; object-fit: contain; display: block; }
.eco__title { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: var(--tr-snug); color: var(--n-paper-soft); margin: var(--s-4) 0 var(--s-2); }
.eco__desc { color: var(--n-stone); font-size: 14px; margin: 0; line-height: 1.5; }

/* ── Promo ───────────────────────────────────────────────── */
.promo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-12); align-items: center; }
.promo__obj { width: 100%; max-height: 360px; object-fit: contain; display: block; }
.promo__text { color: var(--n-paper); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; max-width: 30ch; }
.promo__text b { color: var(--o-sage-text); font-weight: 600; }

/* ── Offline ─────────────────────────────────────────────── */
.offline__top { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-10); align-items: start; margin-top: var(--s-8); }
.offline__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-4); }
.nearest { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-10); align-items: center; margin-top: var(--s-8); padding: var(--s-8); }
.nearest__title { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: var(--tr-snug); color: var(--n-paper-soft); margin: 0 0 var(--s-4); }
.nearest__line { color: var(--n-paper); margin-bottom: var(--s-2); font-size: 16px; }

/* ── Focus ───────────────────────────────────────────────── */
.focus-block + .focus-block { margin-top: var(--s-8); }
.focus-block__label { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: var(--tr-snug); color: var(--o-sage); margin-bottom: var(--s-3); }

/* ── Join now ────────────────────────────────────────────── */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
.join-card { padding: var(--s-6); }
.join-card__title { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: var(--tr-snug); color: var(--n-paper-soft); margin: 0 0 var(--s-4); }
.join-card__list { margin: 0; padding-left: 18px; color: var(--n-mist); display: grid; gap: var(--s-2); font-size: 14px; line-height: 1.5; }

/* ── Next steps ──────────────────────────────────────────── */
.nextsteps { display: grid; gap: var(--s-8); margin-top: var(--s-6); max-width: var(--measure-q); }
.nextstep { display: flex; gap: var(--s-4); align-items: flex-start; }
.nextstep__num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center; font-family: var(--font-mono); font-size: 15px; background: rgba(104,111,77,0.28); border: 1px solid rgba(213,217,194,0.28); color: var(--o-sage-text); }
.nextstep__text { color: var(--n-paper); font-size: 18px; font-weight: 500; padding-top: 4px; }
.nextstep__sub { margin: var(--s-3) 0 0; padding-left: 20px; color: var(--n-mist); display: grid; gap: var(--s-2); font-size: 15px; line-height: 1.5; }

/* ── Final cards ─────────────────────────────────────────── */
.final-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
.final-card { text-align: center; padding: var(--s-6); }
.final-card__icon { width: 100%; height: 220px; object-fit: contain; display: block; }
.final-card__cap { margin-top: var(--s-4); color: var(--n-paper); font-size: 15px; line-height: 1.4; }

/* ── Реальные фото ───────────────────────────────────────── */
.photo { display: block; width: 100%; object-fit: cover; border-radius: var(--r-sm); background: rgba(255,255,255,0.03); }
.photo--cover { height: 100%; min-height: 280px; border-radius: var(--r-md); }
.photo--strip { height: 140px; }
.photo--nearest { height: 100%; min-height: 220px; border-radius: var(--r-md); }

/* ── Placeholders (заглушки фото) ────────────────────────── */
.placeholder { position: relative; display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 12px, rgba(255,255,255,0.045) 12px 24px); border: 1px solid var(--hair); border-radius: var(--r-sm); color: var(--n-stone); min-height: 120px; }
.placeholder__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(0,0,0,0.35); padding: 6px 12px; border-radius: var(--r-pill); text-align: center; }
.placeholder--portrait { width: 300px; min-height: 360px; border-radius: var(--r-md); flex: 0 0 auto; align-self: stretch; }
/* Фото участника (хром-фигуры, прозрачный фон) */
.profile-photo { width: clamp(320px, 34vw, 400px); height: auto; flex: 0 0 auto; align-self: flex-start; display: block; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--hair); }
.placeholder--eco { min-height: 132px; border-radius: var(--r-xs); }
.placeholder--promo { min-height: 280px; }
.placeholder--collage-big { min-height: 260px; }
.placeholder--strip { min-height: 132px; }
.placeholder--nearest { min-height: 210px; }
.placeholder--final { min-height: 132px; border-radius: var(--r-xs); }

/* ── Save bar ────────────────────────────────────────────── */
.savebar { position: sticky; bottom: 18px; z-index: 20; margin-top: var(--s-16); display: flex; align-items: center; gap: var(--s-4); justify-content: flex-end; flex-wrap: wrap; background: rgba(18,18,18,0.84); border: 1px solid var(--hair); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--r-pill); padding: var(--s-3) var(--s-4); }
.savebar__status { margin-right: auto; font-size: 14px; color: var(--n-mist); }
.savebar__status--ok { color: var(--s-mint); }
.savebar__status--err { color: #E5806B; }
.savebar__status--pending { color: var(--n-stone); }
.btn { font-family: var(--font-body); font-size: 15px; font-weight: 500; cursor: pointer; border-radius: var(--r-pill); padding: 12px 24px; border: 1px solid transparent; transition: filter .15s ease, background .15s ease, border-color .15s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; border-color: var(--glass-stroke); color: var(--n-paper); }
.btn--primary { background: var(--o-moss); color: var(--n-bone); border-color: rgba(202,213,161,0.35); }
.btn:focus-visible { outline: 2px solid var(--o-sage-text); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { border-color: rgba(213,217,194,0.30); background: rgba(213,217,194,0.06); }
  .btn--primary:hover { filter: brightness(1.12); }
}

/* ── Появление экранов при входе в вьюпорт ───────────────── */
body.reveal-ready .screen { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
body.reveal-ready .screen.is-in { opacity: 1; transform: none; }
body.reveal-instant .screen { transition: none; }

body.reveal-ready .steps > *, body.reveal-ready .eco-grid > *,
body.reveal-ready .final-grid > *, body.reveal-ready .join-grid > * {
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
body.reveal-ready .screen.is-in .steps > *, body.reveal-ready .screen.is-in .eco-grid > *,
body.reveal-ready .screen.is-in .final-grid > *, body.reveal-ready .screen.is-in .join-grid > * { opacity: 1; transform: none; }
body.reveal-ready .screen.is-in :is(.steps, .eco-grid, .final-grid, .join-grid) > :nth-child(2) { transition-delay: .06s; }
body.reveal-ready .screen.is-in :is(.steps, .eco-grid, .final-grid, .join-grid) > :nth-child(3) { transition-delay: .12s; }
body.reveal-ready .screen.is-in :is(.steps, .eco-grid, .final-grid, .join-grid) > :nth-child(4) { transition-delay: .18s; }
body.reveal-ready .screen.is-in :is(.steps, .eco-grid, .final-grid, .join-grid) > :nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  body.reveal-ready .screen { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────
   TABLET (768–1100px)
   ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 36px; }
  .container { max-width: 100%; }
  .band__inner, .screen__inner { max-width: 100%; }
  .hero__shot { height: 190px; }
  .today-steps { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .eco-grid, .final-grid { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: 1fr; }
  .promo, .offline__top, .nearest { grid-template-columns: 1fr; }
  .offline__strip { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────────────────
   MOBILE (<768px)
   ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --pad: 18px; }
  .menu-trigger { font-size: 12px; padding: 7px 12px; }
  .screen { margin-top: var(--s-12); }
  .screen--band, .screen--diagintro, .screen--offline, .screen--joinnow { margin-top: var(--s-16); padding-top: var(--s-12); }
  .screen--hero { min-height: 480px; border-radius: var(--r-md); }
  .hero__overlay { padding: 0 var(--pad) var(--s-12); }
  .hero__shot { height: 140px; }
  .today-steps { grid-template-columns: 1fr; gap: var(--s-3); }
  .hero__today { padding: var(--s-6); }
  .steps, .field-grid, .eco-grid, .final-grid, .offline__strip { grid-template-columns: 1fr; }
  .profile-row { flex-direction: column; align-items: stretch; }
  .profile-row .placeholder--portrait { width: 100%; min-height: 220px; }
  .profile-row .profile-photo { width: 100%; height: auto; max-width: 360px; }
  .qblock__head { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .field__input { font-size: 16px; padding: 14px; }
  .btn { padding: 14px 20px; width: 100%; text-align: center; }
  .savebar { flex-direction: column; align-items: stretch; border-radius: var(--r-md); position: static; }
  .savebar__status { margin: 0 0 6px; text-align: center; }
  .modal { padding: var(--s-4); align-items: end; }
  .modal__dialog { padding: var(--s-10) var(--s-6) var(--s-6); }
  .modal__actions .btn { width: 100%; }
}
