/* Дизайн-система витрины. Токены сверху, компоненты ниже.

   Принципы, которыми всё решено:
   - одна гарнитура без засечек, одна светлая тема, один акцент (лес),
     одно скругление на всё прямоугольное;
   - аудитория 45+ с телефона: текст 18 px, ничего мельче 16, цели касания
     от 44 px, кнопки от 56;
   - движение только там, где оно что-то сообщает, и всё уважает
     prefers-reduced-motion. Проявлений при прокрутке нет вовсе. */

:root {
  --bg: #F5F7F4;
  --surface: #FCFDFB;
  --surface-2: #E9EDE9;
  --ink: #171C19;
  --muted: #3F4A44;
  --line: #D3DAD5;
  --line-strong: #7A857F;
  --accent: #1F5F4D;
  --accent-strong: #174A3C;
  --accent-soft: #E3EFE9;
  --accent-ink: #FFFFFF;
  --danger: #8F3520;
  --danger-soft: #F6E5DF;

  --font-body: "Golos Text", "Golos Fallback", Arial, system-ui, sans-serif;

  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-lede: clamp(1.25rem, 1.1rem + .6vw, 1.375rem);
  --fs-h1: clamp(2rem, 1.25rem + 3.2vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.375rem);
  --fs-price: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --fs-num: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --lh-body: 1.5;
  --lh-tight: 1.12;

  --r: 12px;
  --r-in: 8px;
  --shadow-bar: 0 -4px 16px rgb(23 28 25 / .10);

  --section-y: clamp(3.5rem, 2rem + 4vw, 6rem);
  --gutter: 20px;
  --container: 1120px;
  --measure: 36rem;
  --control-h: 56px;
  --control-h-mob: 60px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --t-state: 150ms;
  --t-show: 200ms;
  --t-video: 300ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121614; --surface: #1A1F1C; --surface-2: #232A26;
    --ink: #ECEFEC; --muted: #B4BEB8;
    --line: #2E3733; --line-strong: #7C8882;
    --accent: #6FCBAE; --accent-strong: #86D6BD; --accent-soft: #1B2E27;
    --accent-ink: #0E1A15;
    --danger: #E4907A; --danger-soft: #3A211A;
    --shadow-bar: 0 -4px 16px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121614; --surface: #1A1F1C; --surface-2: #232A26;
  --ink: #ECEFEC; --muted: #B4BEB8;
  --line: #2E3733; --line-strong: #7C8882;
  --accent: #6FCBAE; --accent-strong: #86D6BD; --accent-soft: #1B2E27;
  --accent-ink: #0E1A15;
  --danger: #E4907A; --danger-soft: #3A211A;
  --shadow-bar: 0 -4px 16px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.has-bar { padding-bottom: 88px; }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: var(--lh-tight); text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0; }
.lede { font-size: var(--fs-lede); line-height: 1.4; max-width: var(--measure); text-wrap: pretty; }
.muted, .hint, .caption { color: var(--muted); }
.hint, .caption, .small { font-size: var(--fs-small); }
.measure { max-width: var(--measure); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--control-h); padding: 0 1.75rem;
  border-radius: var(--r); border: 1px solid transparent;
  font: 700 1.125rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; color: inherit; background: none;
  transition: background-color var(--t-state) ease, border-color var(--t-state) ease, color var(--t-state) ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: 1rem; }
.btn-wide { min-width: 280px; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 899px) {
  .btn-lg { width: 100%; min-height: var(--control-h-mob); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color var(--t-state) ease, border-color var(--t-state) ease,
                     color var(--t-state) ease, transform 120ms var(--ease-out); }
  .btn:active { transform: scale(.98); }
}

/* ---------- шапка ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.375rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; line-height: 1; }
.header-links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.header-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; min-height: 44px; display: inline-flex; align-items: center; }
.header-links a:hover { color: var(--accent); }
.langs { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); margin: 0; }
.langs button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  min-height: 44px; min-width: 44px;
  font: 700 1rem/1 var(--font-body); padding: 0 .5rem; border-radius: var(--r-in);
}
.langs button.on { background: var(--ink); color: var(--bg); }
.langs button:not(.on):hover { color: var(--ink); }
@media (max-width: 899px) {
  .site-header .container { min-height: 56px; gap: 1rem; }
  .header-links { gap: 1rem; }
  /* Селектор с тем же весом, что и у ссылок шапки, иначе правило проигрывает. */
  .header-links .header-cta, .header-links .header-faq { display: none; }
}

/* ---------- секции ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 42rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { margin-top: .75rem; text-wrap: pretty; }

/* ---------- первый экран ---------- */
.hero { padding-block: 48px clamp(2.5rem, 5vw, 4rem); }
.hero .container { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
}
@media (max-width: 899px) { .hero { padding-top: 20px; padding-bottom: 24px; } .order.section { padding-top: 40px; } }
.hero-copy .lede { margin: 12px 0 16px; }
@media (min-width: 900px) { .hero-copy .lede { margin: 16px 0 28px; } }
.hero-demo { width: 100%; max-width: 440px; margin-inline: auto; }
@media (min-width: 900px) { .hero-demo { margin-inline: 0 auto; } }

/* Кадр: постер под видео одного размера и одного кропа, чтобы проявление
   не дёргало картинку. Видео живёт поверх и проявляется только после того,
   как браузер согласился его играть. */
.demo {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2);
}
@media (max-width: 899px) {
  /* Короткие экраны: кадр ужимается, лицо остаётся в первом экране. */
  .hero .demo { max-height: calc(100svh - 400px); min-height: 200px; width: auto; margin-inline: auto; }
}
.demo img, .demo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo video { opacity: 0; }
.demo.is-playing video, .demo.is-ended video { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .demo video { transition: opacity var(--t-video) ease; } }
.demo-inset {
  position: absolute; left: 12px; bottom: 12px; width: 34%;
  border-radius: var(--r-in); overflow: hidden;
  border: 2px solid rgb(255 255 255 / .92);
  box-shadow: 0 6px 18px rgb(0 0 0 / .35);
}
.demo-inset img { position: static; aspect-ratio: 3 / 4; object-fit: cover; }
.demo-inset span {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 1rem; font-weight: 700; text-align: center;
  color: #fff; background: rgb(0 0 0 / .55); padding: .2rem 0; line-height: 1.3;
}
.demo-play, .demo-again {
  position: absolute; z-index: 2;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font: 700 1.0625rem/1.2 var(--font-body); border-radius: var(--r); cursor: pointer;
}
.demo-play { left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 56px; padding: 0 1.5rem; }
.demo-again { right: 12px; bottom: 12px; min-height: 44px; padding: 0 1rem; }
.demo-line { position: relative; height: 2px; background: var(--line); margin-top: 16px; border-radius: 1px; overflow: hidden; }
.demo-line-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.demo-labels { display: flex; justify-content: space-between; gap: 1rem; margin-top: 6px; font-size: 1rem; font-weight: 600; }
.demo-caption { margin-top: 10px; font-size: 1rem; color: var(--muted); }

/* ---------- полоса фактов ---------- */
.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts .container { display: grid; gap: 14px; padding-block: 20px; }
@media (min-width: 900px) { .facts .container { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.facts p { padding-left: 12px; border-left: 2px solid var(--accent); }
.facts b { font-weight: 700; }

/* ---------- форма заказа ---------- */
.order .container { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .order .container { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .order-aside { position: sticky; top: 24px; }
}
.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.order-links { margin: 8px 0 20px; font-size: 1rem; }
.order-links a { color: var(--accent); }
.order-links a + a { margin-left: 1rem; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field > legend, .field-head label { font-weight: 700; font-size: var(--fs-body); padding: 0; }
.field-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.field-head .suggest { margin-left: auto; flex: none; }
fieldset.field { border: 0; margin-inline: 0; padding: 0; min-width: 0; }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: var(--control-h); padding: .8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg); color: var(--ink); font: inherit;
}
textarea { resize: vertical; min-height: 5rem; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: var(--muted); opacity: .9; }

/* Загрузка фото. На телефоне две большие кнопки (камера и галерея), зона
   становится предпросмотром; на десктопе зона принимает перетаскивание. */
.photo-buttons { display: none; gap: 8px; }
@media (hover: none) { .js .photo-buttons { display: grid; } }
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; min-height: 200px; padding: 1.5rem;
  border: 2px dashed var(--line-strong); border-radius: var(--r);
  background: var(--bg); overflow: hidden; cursor: pointer;
}
@media (min-width: 900px) { .dropzone { min-height: 260px; } }
@media (hover: none) { .js .dropzone { aspect-ratio: auto; min-height: 120px; } .js .dropzone:not(.has-file) { display: none; } }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--line); aspect-ratio: auto; min-height: 0; padding: 0; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone img { width: 100%; max-height: 240px; object-fit: contain; background: var(--surface-2); }
.dropzone-hint { display: grid; gap: .4rem; justify-items: center; max-width: 20rem; }
.dropzone-hint b { font-size: var(--fs-body); }
.dropzone-hint span { color: var(--muted); font-size: 1rem; }
.dropzone.has-file .dropzone-hint { display: none; }
.dropzone-change { display: none; }
.photo-state { display: none; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 8px; font-weight: 700; }
.has-file ~ .photo-state, .dropzone.has-file + .photo-state { display: flex; }
.photo-state button { background: none; border: 0; color: var(--accent); font: 600 1rem var(--font-body); cursor: pointer; min-height: 44px; padding: 0; }
@media (prefers-reduced-motion: no-preference) { .dropzone img { animation: fade var(--t-show) ease both; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Строки выбора: длина видео и движение. Каждая строка от 56 px. */
.choices { display: grid; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.choice label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 12px 16px; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--r); background: var(--bg);
}
.choice--mode label { min-height: 64px; }
.choice label b { display: block; font-size: var(--fs-body); }
.choice label span { display: block; font-size: 1rem; color: var(--muted); }
.choice label strong { font-size: var(--fs-price); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .choice label { transition: border-color var(--t-state) ease, background-color var(--t-state) ease; } }
.moves { display: none; }
.js .moves { display: grid; gap: 8px; }
.js .prompt-free:not(.is-open) { display: none; }
.prompt-free { display: grid; gap: 8px; margin-top: 8px; }

.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.check input[type="checkbox"] { flex: none; width: 28px; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check label { cursor: pointer; }
.more { border-top: 1px solid var(--line); margin-top: 8px; }
.more summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; color: var(--accent); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-size: 1.25rem; line-height: 1; }
.more[open] summary::before { content: "\2013"; }

.total { font-weight: 700; font-size: var(--fs-body); margin: 8px 0 12px; }
.js .total-nojs { display: none; }
.total-js { display: none; }
.js .total-js { display: inline; }
.form-note { font-size: 1rem; color: var(--muted); margin-top: 12px; text-wrap: pretty; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--danger); font-size: var(--fs-body); }
.errorlist.nonfield { background: var(--danger-soft); padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; }
.field.has-error input, .field.has-error textarea, .field.has-error .dropzone { border-color: var(--danger); }

.order-aside h3 { margin-bottom: 12px; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; }
.order-steps li::before { content: counter(step); counter-increment: step; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.order-steps { counter-reset: step; }
.order-aside .hint { margin-top: 16px; }

/* ---------- лента кадров (пример) ---------- */
.frames { background: var(--surface-2); border-block: 1px solid var(--line); padding-block: 16px; }
.frames-row { display: flex; justify-content: center; gap: 2px; }
.frames-row figure { margin: 0; flex: 0 1 216px; min-width: 0; }
.frames-row img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.frames-row figcaption { text-align: center; font-size: 1rem; font-variant-numeric: tabular-nums; margin-top: 6px; }
@media (max-width: 899px) {
  .frames-row figure { flex-basis: 33%; }
  .frames-row figure.frame-mid { display: none; }
}
.frames-note { margin-top: 24px; }
.frames-note p + p { margin-top: 8px; }

/* Сетка примеров (Вьетнам): четыре вертикальных карточки и два широких. */
.examples { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .examples { grid-template-columns: repeat(4, 1fr); } }
.example { margin: 0; }
.examples-wide { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .examples-wide { grid-template-columns: 1fr 1fr; } }
.example--wide { margin: 0; }
.demo--wide { aspect-ratio: 4 / 3; }
.demo--wide img, .demo--wide video { object-fit: contain; background: var(--surface-2); }
.example figcaption { margin-top: 8px; font-size: 1rem; }
.example figcaption b { display: block; font-size: var(--fs-body); }
.example figcaption span { color: var(--muted); }
.example-tag { display: inline-block; margin: 4px 0; font-size: 1rem; font-style: normal; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-in); padding: 0 .5rem; }

/* ---------- как это работает ---------- */
.how .steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 24px; max-width: 40rem; }
.how .steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 12px; align-items: start; }
.how .steps li::before { content: counter(step); font-size: var(--fs-num); font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.how .steps h3 { margin-bottom: 6px; }
.how .btn { margin-top: 32px; }

/* ---------- цена ---------- */
.pricing .container { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .pricing .container { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.price-list b { font-size: var(--fs-h3); }
.price-list strong { font-size: var(--fs-price); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; grid-row: 1; grid-column: 2; }
.price-list p { grid-column: 1 / -1; }
.price-guarantee { margin-top: 20px; max-width: var(--measure); }
.pricing .btn { margin-top: 24px; }
.pay-note { margin-top: 16px; font-size: 1rem; color: var(--muted); }

/* ---------- кто делает ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust .container { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .trust .container { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.trust--nophoto .container { grid-template-columns: minmax(0, 1fr); }
.trust-person { display: grid; gap: 12px; }
.trust-person img { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
@media (max-width: 899px) { .trust-person { grid-template-columns: 40% 1fr; align-items: start; } }
.trust-person b { display: block; font-size: var(--fs-h3); }
.trust-person .hint { margin-top: 4px; }
.trust h2 { margin-bottom: 24px; }
.registry { display: grid; gap: 24px; }
@media (min-width: 700px) { .registry { grid-template-columns: 1fr 1fr; gap: 0 32px; } .registry > div + div { border-left: 1px solid var(--line); padding-left: 32px; } }
@media (max-width: 699px) { .registry > div + div { border-top: 1px solid var(--line); padding-top: 24px; } }
.registry h3 { margin-bottom: 12px; }
.registry ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.registry li::marker { color: var(--accent); }

/* ---------- вопросы ---------- */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding: 14px 0; font-weight: 700; font-size: var(--fs-h3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\00d7"; }
.faq details p { margin: 0 0 20px; max-width: 40rem; }

/* ---------- финальный призыв ---------- */
.cta-final { padding-bottom: calc(var(--section-y) + 16px); }
.cta-final .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 48px); background: var(--accent-soft); border-radius: var(--r);
}
.cta-final h2 { max-width: 30rem; }
.cta-final .cta-side { display: grid; gap: 8px; justify-items: start; }
.cta-final .hint { color: var(--ink); }
@media (max-width: 899px) { .cta-final .cta-side { width: 100%; justify-items: stretch; } }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 1rem; }
.site-footer .container { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: start; gap: 48px; } }
.site-footer .brand { font-size: 1.25rem; display: inline-block; margin-bottom: 12px; }
.footer-note { max-width: 36rem; margin-top: 6px; }
.footer-links { display: grid; gap: 0; }
.footer-links a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- липкая панель (телефон) ---------- */
.sticky-bar { display: none; }
@media (max-width: 899px) {
  .js .sticky-bar.is-on {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    min-height: 64px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar);
  }
  .sticky-bar b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sticky-bar .btn { min-height: 48px; min-width: 200px; flex: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .sticky-bar.is-on { animation: bar-in var(--t-show) var(--ease-out) both; }
  @keyframes bar-in { from { transform: translateY(100%); } to { transform: none; } }
}

/* ---------- страницы заказа ---------- */
.page { padding-block: clamp(2rem, 5vw, 4rem); }
.page h1 { margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 20px 0; }
.card video { border-radius: var(--r-in); background: #000; width: 100%; max-height: 70vh; object-fit: contain; }
.status { display: inline-block; padding: 4px 12px; border-radius: var(--r-in); font-size: 1rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); }
.status[data-status="moderation"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.status[data-status="ready"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.status[data-status="failed"] { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.orders { display: grid; gap: 12px; }
.orders .card { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.progress { height: 4px; border-radius: 2px; background: var(--accent-soft); overflow: hidden; margin-top: 16px; }
.progress::after { content: ""; display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { .progress::after { animation: slide 1.4s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .progress::after { width: 100%; opacity: .5; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.share input { font-size: 1rem; background: var(--bg); cursor: text; }
.pay { margin-top: 20px; }
