/* LiveGift — стили сайта, версия 2.
   Белый фон, один гротеск, одна мандариновая кнопка, настоящие фото и видео вместо рисунков.
   Вёрстка от телефона; планшет от 768 px; десктоп от 1100 px. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f3f4f6;          /* вторые секции, плашки */
  --ink: #17181c;           /* текст */
  --ink-2: #565a66;         /* вторичный текст */
  --ink-3: #666a76;         /* плейсхолдер, счётчик */
  --line: #e2e4e9;          /* разделители */
  --control: #838895;       /* границы полей и карточек выбора */
  --accent: #ff8a3d;        /* только главное действие */
  --accent-hover: #ff7b24;
  --accent-press: #f26a0f;
  --wait: #e6e8ed;          /* кнопка «шаг ещё не заполнен» */
  --ok: #12753f;            /* «Разрешить», заметки о бережности */
  --ok-hover: #0e6335;
  --ok-bg: #e7f4ec;
  --err: #b8232c;
  --err-bg: #fdecec;
  --focus: #1a5cff;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-field: 12px;
  --r-btn: 14px;
  --r-card: 16px;
  --r-media: 20px;

  --shadow-bar: 0 -1px 0 var(--line), 0 -8px 24px rgba(23, 24, 28, 0.06);
  --shadow-lift: 0 2px 6px rgba(23, 24, 28, 0.08), 0 16px 40px rgba(23, 24, 28, 0.14);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t-base: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.t-display { font: 800 34px/1.08 var(--font); letter-spacing: -0.025em; text-wrap: balance; }
.t-display--long { font-size: 28px; line-height: 1.12; }
.t-h2 { font: 800 26px/1.15 var(--font); letter-spacing: -0.02em; text-wrap: balance; }
.t-h3 { font: 800 26px/1.15 var(--font); letter-spacing: -0.02em; text-wrap: balance; }
.t-small { font-size: 14px; line-height: 1.45; }
.t-caption { font: 500 13px/1.4 var(--font); }
.t-price { font: 700 18px/1.2 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-2); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  font: 700 17px/1.2 var(--font); text-decoration: none; text-align: center;
  background: none; color: var(--ink);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 20px; height: 20px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 48px; padding: 0 18px; font-size: 16px; border-radius: var(--r-field); }
.btn--primary { background: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); }
.btn--wait { background: var(--wait); }
.btn--secondary { background: var(--bg); border-color: var(--ink); }
.btn--secondary:hover { background: var(--bg-2); }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ok:hover { background: var(--ok-hover); }
.btn--quiet { min-height: 48px; padding: 0 12px; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.btn--quiet:hover { background: var(--bg-2); color: var(--ink); }
.btn--link { min-height: 48px; padding: 0; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.btn[aria-disabled="true"] { background: var(--wait); border-color: transparent; color: var(--ink-2); cursor: default; transform: none; }

.spinner { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }

.iconbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.iconbtn:hover { background: var(--bg-2); }
.iconbtn[aria-disabled="true"] { color: #b6bac3; cursor: default; background: none; }
.iconbtn--line { border: 1.5px solid var(--control); background: var(--bg); }

/* ---------- Заметки ---------- */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-field); background: var(--bg-2); font-size: 14px; line-height: 1.45; }
.note .icon { width: 20px; height: 20px; margin-top: 1px; }
.note--ok { background: none; padding: 0; color: var(--ok); }
.opt { font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(23, 24, 28, 0.78); color: #fff; font: 600 13px/1.3 var(--font); }
.chip .icon { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- Поля ---------- */
.field { display: grid; gap: 6px; }
.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__label { font-weight: 600; font-size: 16px; }
.field__hint { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.field__foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.field__count { margin-left: auto; font: 500 13px/1.4 var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__count.is-limit { color: var(--err); font-weight: 700; }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--err); }
.field__error .icon { width: 18px; height: 18px; margin-top: 1px; }

.input, .textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  border: 1.5px solid var(--control); border-radius: var(--r-field);
  background: var(--bg); font-size: 17px; line-height: 1.5; /* ≥16 px: iOS не приближает страницу */
}
.textarea { min-height: 88px; resize: vertical; display: block; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .textarea:hover { border-color: var(--ink); }
.input:focus, .textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input.is-error, .textarea.is-error { border: 2px solid var(--err); padding: 13.5px 15.5px; }

.check { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 6px 0; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check__box { flex: none; width: 24px; height: 24px; border: 1.5px solid var(--control); border-radius: 7px; background: var(--bg); display: grid; place-items: center; color: transparent; margin-top: 2px; }
.check.is-checked .check__box { background: var(--ink); border-color: var(--ink); color: #fff; }
.check.is-error .check__box { border: 2px solid var(--err); }
.check__box .icon { width: 16px; height: 16px; stroke-width: 2.5; }

/* раскрывающийся блок необязательных полей */
.more-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 1.5px dashed var(--control); border-radius: var(--r-field); background: var(--bg); font-weight: 600; text-align: left; }
.more-toggle:hover { border-color: var(--ink); }
.more-toggle span span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); }

/* ---------- Загрузка фото ---------- */
.upload {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 8px;
  min-height: 232px; padding: 28px 20px; text-align: center;
  border: 2px dashed var(--control); border-radius: var(--r-card); background: var(--bg); cursor: pointer;
}
.upload__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); }
.upload__title { font: 700 18px/1.3 var(--font); }
.upload__hint { font-size: 14px; color: var(--ink-2); max-width: 30ch; }
.upload:hover { border-color: var(--ink); background: var(--bg-2); }
.upload:hover .upload__icon { background: var(--bg); }
.upload--sm { min-height: 160px; padding: 20px 16px; }
.upload.is-error { border-color: var(--err); background: var(--err-bg); }
.upload.is-error .upload__icon { background: var(--bg); color: var(--err); }
.upload.is-error .upload__title { color: var(--err); }
.upload.is-error .upload__hint { color: var(--ink); }
.upload.is-off { border-style: solid; border-color: var(--line); background: var(--bg-2); cursor: default; }

.photo { position: relative; display: grid; place-items: center; overflow: hidden; height: 300px; border-radius: var(--r-card); background: var(--bg-2); }
.photo > img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.photo__tag { position: absolute; left: 10px; bottom: 10px; }
.photo.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1400ms linear infinite; }
.photo__status { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink-2); }
.photo--plain { height: 180px; }
.photo__plain { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 0 24px 28px; font-size: 14px; color: var(--ink-2); }
.photo__plain b { color: var(--ink); font-size: 17px; }
.photo-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.photo-actions .btn--secondary { flex: 1; }

.upload-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1.5px dashed var(--control); border-radius: var(--r-card); background: var(--bg); }
.upload-row[role="button"] { cursor: pointer; }
.upload-row[role="button"]:hover { border-color: var(--ink); }
.upload-row__thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.upload-row__thumb img, .thumb img, .bgs__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-row__title { font-weight: 700; }
.upload-row__sub { font-size: 14px; color: var(--ink-2); }
.upload-row.is-filled, .upload-row.is-loading { border-style: solid; border-color: var(--line); }
.upload-row.is-error { border-color: var(--err); background: var(--err-bg); }
.upload-row.is-error .upload-row__thumb { background: var(--bg); color: var(--err); }
.upload-row.is-error .upload-row__title { color: var(--err); }
.upload-row.is-error .upload-row__sub { color: var(--ink); }
.upload-row__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.upload-row__actions .btn { flex: 1; }

/* ---------- Ход заказа ---------- */
.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 2px; background: var(--ink); transition: width var(--t-base) var(--ease); }

/* ---------- Выбор ---------- */
.group { display: grid; gap: 10px; }
.group__label { font: 700 17px/1.3 var(--font); }
.choices { display: grid; gap: 8px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  min-height: 60px; padding: 16px;
  border: 1.5px solid var(--control); border-radius: var(--r-btn); background: var(--bg);
  cursor: pointer; text-align: left;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.choice:hover { border-color: var(--ink); }
.choice__radio { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--control); background: var(--bg); display: grid; place-items: center; color: transparent; margin-top: 1px; }
.choice__radio .icon { width: 14px; height: 14px; stroke-width: 3; }
.choice__title { display: block; font: 700 17px/1.35 var(--font); }
.choice__desc { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.choice.is-selected { border: 2px solid var(--ink); padding: 15.5px; background: var(--bg-2); }
.choice.is-selected .choice__radio { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice__extra { grid-column: 1 / -1; cursor: default; }
.choice--tile { align-items: center; }
.sample { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px; margin-top: 8px; border: 1.5px solid var(--control); border-radius: 24px; background: var(--bg); font: 600 14px/1 var(--font); cursor: pointer; grid-column: 1 / -1; justify-self: start; }
.sample .icon { width: 18px; height: 18px; }
.group.is-error .choice, .group.is-error .len { border-color: var(--err); }

/* длина и цена: три плитки в ряд */
.lens { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
/* четыре длины на телефоне встают в два ряда */
.lens[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.len { display: grid; gap: 2px; justify-items: center; min-height: 76px; padding: 12px 4px; border: 1.5px solid var(--control); border-radius: var(--r-btn); background: var(--bg); cursor: pointer; text-align: center; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.len:hover { border-color: var(--ink); }
.len__sec { font: 700 16px/1.3 var(--font); }
.len .t-price { font-size: 17px; }
.len.is-selected { border: 2px solid var(--ink); padding: 11.5px 3.5px; background: var(--ink); color: #fff; }
.lens__desc { font-size: 14px; color: var(--ink-2); }

.bgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bgs__item { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--control); background: var(--bg-2); cursor: pointer; }
.bgs__item.is-selected { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.bgs__check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.bgs__check .icon { width: 14px; height: 14px; stroke-width: 3; }

/* ---------- Текст поздравления ---------- */
.says { border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 14px 16px 16px; background: var(--bg); }
.says__head { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: -4px -8px 6px 0; }
.says__who { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); overflow: hidden; flex: none; }
.says__who img { width: 100%; height: 100%; object-fit: cover; }
.says__label { font: 600 14px/1.3 var(--font); color: var(--ink-2); flex: 1; }
.says__nav { display: flex; }
.says__text { font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.says__dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.says__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.says__dot.is-now { background: var(--ink); }
.skeleton { display: grid; gap: 12px; padding: 6px 0 4px; }
.skeleton i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(100deg, var(--wait) 30%, #f5f6f8 50%, var(--wait) 70%); background-size: 200% 100%; animation: shimmer 1400ms linear infinite; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

/* ---------- Проверка заказа ---------- */
.summary { border-top: 1px solid var(--line); }
.summary__row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--bg-2); overflow: hidden; display: grid; place-items: center; color: var(--ink-2); }
.summary__k { font-size: 13px; color: var(--ink-2); }
.summary__v { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.summary__v--story { font-weight: 400; font-size: 15px; }
.summary__v.is-empty { font-weight: 400; color: var(--ink-2); }
.summary__edit { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px 0 10px; font-weight: 600; font-size: 14px; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.total__k { font-weight: 600; }
.total__v { font: 800 30px/1.1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Нижняя панель ---------- */
.bar { position: sticky; bottom: 0; z-index: 4; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: var(--shadow-bar); display: grid; gap: 10px; }
.bar__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.bar__sum b { font: 700 18px/1.2 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__back { display: none; }

/* ---------- Каркас заказа ---------- */
.wiz { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wiz__top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 4px 4px 10px; }
.wiz__nav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.wiz__step { text-align: center; font: 600 15px/1.2 var(--font); color: var(--ink-2); }
.wiz__top .progress { margin: 2px 12px 0; }
.wiz__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wiz__body { flex: 1; width: 100%; max-width: 592px; margin: 0 auto; padding: 12px 16px 28px; display: grid; gap: 20px; align-content: start; }
.wiz__head { display: grid; gap: 6px; }
.wiz__head p { color: var(--ink-2); font-size: 17px; }
[data-step-title]:focus, .works__title:focus { outline: none; }
.stack { display: grid; gap: 16px; }
.stack--lg { gap: 26px; }
.tips { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.tips li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.tips .icon { width: 20px; height: 20px; color: var(--ok); stroke-width: 2.2; }
.tips .is-no .icon { color: var(--err); }
.linkrow { font-size: 14px; }
.linkrow a, .linkrow button { font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 48px; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ---------- Диалог ---------- */
.scrim { position: fixed; inset: 0; background: rgba(23, 24, 28, 0.55); z-index: 20; display: grid; align-items: end; }
.dialog { background: var(--bg); border-radius: 20px 20px 0 0; padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.dialog__title { font: 800 22px/1.2 var(--font); letter-spacing: -0.015em; }
.dialog__actions { display: grid; gap: 8px; margin-top: 8px; }

/* ---------- Cookies ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 15; background: var(--bg); border-radius: var(--r-card); padding: 14px 14px 14px 16px; display: grid; gap: 10px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.cookie__actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.cookie .btn--ok { min-height: 48px; font-size: 16px; }
.cookie .btn--quiet { font-size: 14px; font-weight: 500; }
/* в оформлении заказа уведомление стоит строкой над шагом и не закрывает кнопку */
.cookie__short { display: none; }
.cookie--inline { position: static; margin: 8px 12px 0; box-shadow: none; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--r-btn); }
.cookie--inline .cookie__long { display: none; }
.cookie--inline .cookie__short { display: inline; }
.cookie--inline .cookie__actions { gap: 2px; }
.cookie--inline .btn { min-height: 44px; padding: 0 12px; }
.cookie--inline .btn--ok { padding: 0 16px; font-size: 15px; }
body.is-scrolled .cookie:not(.cookie--inline) { bottom: 88px; }

/* ---------- Техработы ---------- */
.works { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.works__top { padding: 8px 16px; }
.works__body { flex: 1; display: grid; align-content: center; gap: 18px; padding: 8px 16px 40px; width: 100%; max-width: 560px; margin: 0 auto; }
.works__title { font: 800 30px/1.12 var(--font); letter-spacing: -0.02em; text-wrap: balance; }
.works__lead { font-size: 18px; }
.facts { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-card); background: var(--bg-2); }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; }
.works__actions { display: grid; gap: 4px; }
.waitlist { display: grid; gap: 10px; }
.waitlist__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.waitlist__status { min-height: 1.4em; font-size: 14px; color: var(--ink-2); }

.file-input { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* ====================================================================
   ЛЕНДИНГ
   ==================================================================== */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 20px/1 var(--font); letter-spacing: -0.02em; text-decoration: none; color: inherit; min-height: 48px; }
.logo svg { width: 26px; height: 26px; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.header__nav { display: none; }
.header .btn { display: none; }
.header__link { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; text-decoration: none; color: var(--ink-2); }
.header__link:hover { color: var(--ink); }

.hero { padding: 12px 0 40px; }
.hero__grid { display: grid; gap: 28px; }
.hero__copy { display: grid; gap: 14px; }
.hero__sub { font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.hero__cta { display: grid; gap: 10px; margin-top: 6px; }
.hero__note { font-size: 14px; color: var(--ink-2); }
.hero__note b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* пример: загруженное фото и получившееся видео */
.demo { position: relative; display: grid; gap: 12px; justify-self: center; width: min(100%, 360px); padding-left: 18%; }
.demo__video { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-media); overflow: hidden; background: var(--bg-2); }
.demo__video video, .demo__video img { width: 100%; height: 100%; object-fit: cover; }
.demo__photo { position: absolute; left: 0; bottom: 64px; width: 38%; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 4px solid var(--bg); box-shadow: var(--shadow-lift); transform: rotate(-4deg); background: var(--bg-2); }
.demo__photo img { width: 100%; height: 100%; object-fit: cover; }
.demo .chip { position: absolute; left: 8px; top: 8px; }
.demo__photo .chip { left: 6px; top: 6px; padding: 3px 8px; font-size: 12px; }
.demo__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; }
.demo__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.demo figcaption { font-size: 14px; color: var(--ink-2); padding-left: 2px; }
.hero--solo .hero__grid { grid-template-columns: 1fr; }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--bg-2); border-top: 0; }
.section__head { display: grid; gap: 8px; margin-bottom: 24px; }
.section__head p { color: var(--ink-2); font-size: 17px; }

.how { display: grid; gap: 22px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: how; }
.how li::before { content: counter(how); font: 800 30px/1 var(--font); letter-spacing: -0.03em; color: var(--ink); }
.how h3 { font: 700 18px/1.3 var(--font); margin-bottom: 4px; }
.how p { color: var(--ink-2); }

.reel { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scroll-snap-type: x mandatory; }
.reel > * { scroll-snap-align: center; }
.reel figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-media); overflow: hidden; background: var(--bg-2); }
.frame > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; }
.frame__play .icon { width: 30px; height: 30px; margin-left: 4px; }

.prices { border-top: 1.5px solid var(--ink); }
.prices li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prices__len { font: 700 18px/1.3 var(--font); }
.prices__desc { grid-column: 1; font-size: 15px; color: var(--ink-2); }
.prices .t-price { grid-row: 1; grid-column: 2; font-size: 20px; }

.trust { display: grid; gap: 18px; }
.trust li { display: grid; gap: 2px; }
.trust b { font: 700 17px/1.35 var(--font); }
.trust span { color: var(--ink-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; padding: 10px 0; font: 700 17px/1.35 var(--font); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--t-base) var(--ease); color: var(--ink-2); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 32px 18px 0; color: var(--ink-2); }

.final { padding: 48px 0 56px; }
.final .wrap { display: grid; gap: 14px; }
.final p { color: var(--ink-2); font-size: 17px; }
.final .btn { max-width: 360px; margin-top: 6px; }

.footer { padding: 24px 0 112px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 10px; }
.footer__links { display: grid; }
.footer__links a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; color: var(--ink); }

.stickycta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: var(--shadow-bar); display: none; gap: 12px; grid-template-columns: 1fr; align-items: center; }
.stickycta.has-price { grid-template-columns: auto 1fr; }
.is-scrolled .stickycta { display: grid; }
.stickycta__price { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.stickycta__price b { display: block; font: 700 17px/1.2 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.backbar { background: var(--bg-2); font-size: 14px; line-height: 1.4; padding: 10px 0; }
.backbar .wrap { display: flex; gap: 10px; align-items: flex-start; }
.backbar .icon { width: 20px; height: 20px; }

/* ====================================================================
   ПЛАНШЕТ ≥ 768
   ==================================================================== */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .scrim { align-items: center; justify-items: center; }
  .dialog { border-radius: 20px; padding: 28px; width: 440px; }
  .dialog__actions { grid-template-columns: 1fr 1fr; }
  .cookie:not(.cookie--inline) { left: auto; right: 24px; bottom: 24px; width: 400px; }
  .cookie--inline { max-width: 560px; margin: 12px auto 0; }
  .how { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .how li { grid-template-columns: 1fr; gap: 8px; }
  .trust { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .reel { grid-auto-columns: 240px; }
  .lens[style*="--n:4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer { padding-bottom: 40px; }
  .footer__links { grid-auto-flow: column; justify-content: start; gap: 28px; }
  .demo { width: 340px; padding-left: 0; }
  .demo__photo { left: -22%; width: 44%; bottom: 72px; }
}

/* ====================================================================
   ДЕСКТОП ≥ 1100
   ==================================================================== */
@media (min-width: 1100px) {
  .t-display { font-size: 64px; line-height: 1.02; letter-spacing: -0.035em; }
  .t-display--long { font-size: 46px; line-height: 1.06; }
  .t-h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; }
  .t-h3 { font-size: 34px; }

  .header { padding-top: 14px; padding-bottom: 14px; }
  .header__nav { display: flex; gap: 28px; margin-left: auto; margin-right: 20px; }
  .header .btn { display: inline-flex; }

  .hero { padding: 40px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 120px; align-items: center; }
  .hero__copy { gap: 22px; }
  .hero__sub { font-size: 21px; max-width: 40ch; }
  .hero__cta { justify-items: start; gap: 14px; margin-top: 10px; }
  .hero__cta .btn { width: auto; min-height: 64px; padding: 0 40px; font-size: 19px; }
  .hero__note { font-size: 15px; }
  .demo { width: 360px; }

  .section { padding: 88px 0; }
  .section__head { margin-bottom: 36px; max-width: 620px; }
  .split { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .split .section__head { margin-bottom: 0; }
  .how h3 { font-size: 21px; }
  .how li::before { font-size: 44px; }
  .how p, .trust span, .faq details p { font-size: 17px; }
  .trust b { font-size: 19px; }
  .faq summary { font-size: 19px; min-height: 68px; }
  .final { padding: 88px 0 96px; }
  .final p { font-size: 19px; }
  .stickycta { display: none !important; }
  body.is-scrolled .cookie:not(.cookie--inline) { bottom: 24px; }

  .wiz__top { padding: 12px 20px 12px; }
  .wiz__nav { max-width: 640px; margin: 0 auto; }
  .wiz__top .progress { max-width: 592px; margin: 4px auto 0; }
  .wiz__main { flex: none; }
  .wiz__body { flex: none; padding-top: 32px; gap: 24px; }
  .bar { position: static; box-shadow: none; width: 100%; max-width: 592px; margin: 0 auto; padding: 4px 16px 72px; grid-template-columns: auto 1fr; align-items: center; }
  .bar__sum { grid-column: 1 / -1; font-size: 16px; }
  .bar__back { display: inline-flex; }
  .bar .btn--block { width: auto; min-width: 240px; justify-self: end; }
  .bar--single { grid-template-columns: 1fr; }
  .photo { height: 380px; }
  .works__title { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
