/* Сайт АЛИ МОНТАЖ (video.samyaro.ru) — вид страницы. 21.10.2026, план 2026-10-21-sajt-alimontazh.md, Task 9.
   Основа — макет artifacts/sajt-alimontazh-20261021/maket/index.html (её «да» 21.10): тёмный «Кинозал», градиент кнопки
   как в приложении, одна колонка как на primerka. Шрифты — свои файлы /site/fonts (без Google Fonts: CSP default-src 'self').
   Атрибутов style="" в разметке нет — строгая CSP их не пропустит; ширину полосы загрузки ставит app.js через el.style.
   22.10: ЦВЕТА — только знаками из /site/tema.css (тёмная / светлая и «Цвет интерфейса», как в приложении); здесь цветов
   «гвоздём» нет, кроме белого на градиенте и тёмной заглушки кадра. Акцент — --acc / --acc-text / --solid (прежний --pink). */

@font-face {
  font-family: 'Unbounded';
  src: url('/site/fonts/unbounded.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/site/fonts/golos-text.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* цвета (--bg, --surface, --acc, --grad…) — /site/tema.css */
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-l: 22px;
  --r-m: 16px;
  --r-s: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.hl { color: var(--text); }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* встроенный браузер Instagram / Telegram / ВК — полоса «Открыть в браузере» (приём primerka) */
.strip {
  background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; line-height: 1.4;
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
}
.strip button { background: none; border: 1px solid var(--warn); color: var(--warn); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-weight: 600; }

.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wrap {
  max-width: 560px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; flex: none; }
.logo svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.brand b { font: 700 15px/1 var(--display); letter-spacing: .04em; }
.who {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px;
}
.who svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 2px 10px; }
.link-btn { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { color: var(--text); }
.link-btn.home { color: var(--text); font-weight: 600; }
.nav-pair { display: flex; gap: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-bottom: 12px; }
.step { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.step i { display: block; height: 4px; border-radius: 4px; background: var(--line); }
.step.done i, .step.now i { background: var(--grad); }
.step.now { color: var(--text); font-weight: 600; }

main { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
section.screen { padding-block: 18px 8px; display: grid; gap: 18px; min-width: 0; }
section.screen > * { min-width: 0; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.08; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.25; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.45; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; display: grid; gap: 12px; }
.said { gap: 8px; }
.said .k { font-size: 13px; color: var(--muted); }
.said .t { font-size: 19px; line-height: 1.45; }
.said s { color: var(--acc-hi); text-decoration-thickness: 2px; }
.said .pause { border: 1px dashed var(--acc-hi); color: var(--acc-hi); border-radius: 8px; padding: 0 6px; font-size: 15px; white-space: nowrap; }
.slogan { font: 700 20px/1.25 var(--display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; max-width: 100%; }
.said hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.said .out { font: 700 19px/1.35 var(--body); }
.said .out em { font-style: normal; color: var(--mark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center;
  min-height: 54px; width: 100%; padding: 0 20px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--grad); color: #fff; font: 700 17px/1.1 var(--body);
  box-shadow: 0 12px 30px -14px var(--solid);
}
.btn[disabled] { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn.small { min-height: 44px; font-size: 15px; width: auto; border-radius: 14px; }

.how { display: grid; gap: 10px; counter-reset: s; margin: 0; padding: 0; }
.how li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.how li::before {
  counter-increment: s; content: counter(s);
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); font: 700 16px/1 var(--display); color: var(--text);
}
.how b { display: block; }

.kinds { display: grid; gap: 12px; }
.kind { position: relative; text-align: left; cursor: pointer; border: 2px solid var(--line); border-radius: var(--r-l); background: var(--surface); padding: 16px; display: grid; gap: 10px; width: 100%; }
div.kind { cursor: default; }
.kind[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, var(--surface)); }
.kind .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kind .name { font: 700 19px/1.1 var(--display); }
.kind .price { font: 700 20px/1 var(--body); white-space: nowrap; }
.kind .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.kind .desc { color: var(--muted); font-size: 15px; line-height: 1.45; }
.tag { display: inline-block; width: fit-content; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.packs { display: grid; gap: 8px; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.pack[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, var(--surface)); }
.pack b { font-weight: 600; }
.pack span span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.pack strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable td { padding: 9px 0; border-top: 1px solid var(--line); }
.ptable td:last-child { text-align: right; white-space: nowrap; }
.ptable tr:first-child td { border-top: 0; }
.ptable .per { color: var(--muted); font-size: 14px; }
.gap10 { height: 10px; }

label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--input-bg); color: var(--text); font: 500 17px/1.2 var(--body);
}
.input:focus { outline: none; border-color: var(--acc); }
.input.kod { letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.err { color: var(--bad); font-size: 14px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--acc); }
.check a { color: var(--text); }

.summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.summary .big { font: 700 22px/1.1 var(--body); }
.change { background: none; border: 0; color: var(--acc-text); cursor: pointer; padding: 0; font-weight: 600; font-size: 15px; }
.line-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.drop { border: 2px dashed var(--line); border-radius: var(--r-l); padding: 26px 18px; text-align: center; display: grid; gap: 10px; justify-items: center; background: var(--surface); }
.drop svg { width: 40px; height: 40px; stroke: var(--acc-text); fill: none; stroke-width: 1.8; }
.progress { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file b { overflow-wrap: anywhere; min-width: 0; }
.okline { color: var(--ok); font-weight: 600; }

.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-m); padding: 12px 14px; font-size: 14px; line-height: 1.45; display: grid; gap: 8px; }
.note b { color: var(--warn); }
/* «Видео не пришло с телефона» (23.10): окно #nofile-dialog — вид окна «Как вам нравится» (tema.css .vid-sheet, кнопка там же) */
.nofile-text { font-size: 18px; line-height: 1.45; font-weight: 600; }

.wait { display: grid; gap: 10px; justify-items: start; }
.wait .row { display: flex; gap: 12px; align-items: center; }

.track { display: grid; gap: 0; }
.track div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 10px 0; color: var(--muted); }
.track div i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.track div.done { color: var(--text); }
.track div.done i { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.track div.now { color: var(--text); font-weight: 600; }
.track div.now i { border-color: var(--acc); border-top-color: transparent; animation: spin 1s linear infinite; }
.track div.bad { color: var(--bad); font-weight: 600; }
.track div.bad i { border-color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }

.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.balance div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; }
.balance b { display: block; font: 700 24px/1.1 var(--body); font-variant-numeric: tabular-nums; }
.balance span { color: var(--muted); font-size: 13px; }

.works { display: grid; gap: 12px; }
.work { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 12px; }
.work.flat { border: 0; padding: 0; background: none; }
.thumb { width: 74px; aspect-ratio: 9/16; border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--solid) 30%, #23191F), #23191F); display: grid; place-items: center; }
.thumb svg { width: 22px; height: 22px; fill: #fff; opacity: .85; }
.work .meta { display: grid; gap: 6px; align-content: start; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; width: fit-content; }
.status.ready { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.status.going { background: color-mix(in srgb, var(--solid) 18%, transparent); color: var(--acc-text); }
.status.gone { background: var(--surface-2); color: var(--muted); }
.status.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.work .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

details.q { border-top: 1px solid var(--line); padding-block: 12px; }
details.q:last-of-type { border-bottom: 1px solid var(--line); }
details.q summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details.q[open] summary::after { content: "–"; }
details.q p { color: var(--muted); margin-top: 8px; }

.contacts { display: grid; gap: 8px; }
.contacts div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contacts span { color: var(--muted); }
.contacts b { overflow-wrap: anywhere; }
/* 409 «напишите в поддержку»: контакты и «Мои ролики» под ошибкой */
.help { display: grid; gap: 12px; }
.help .btn { justify-self: start; }
.copy { user-select: all; -webkit-user-select: all; font-weight: 600; color: var(--text) !important; overflow-wrap: anywhere; }

footer.foot { border-top: 1px solid var(--line); padding-block: 22px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
footer.foot .name { color: var(--text); }
footer.foot .docs { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dock .wrap { display: grid; gap: 8px; padding-block: 10px 4px; }
.dock .hint { text-align: center; font-size: 13px; color: var(--muted); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
.tab { background: none; border: 0; cursor: pointer; padding: 6px 2px 8px; display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tab[aria-current="page"] { color: var(--text); }

.sheet { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: grid; place-items: center; padding: 24px; }
.sheet .card { max-width: 420px; text-align: center; justify-items: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--acc); animation: spin 1s linear infinite; flex: none; }
.spinner.sm { width: 22px; height: 22px; border-width: 2px; }

.toast {
  position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  transform: translateX(-50%); width: min(520px, calc(100% - 32px));
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--r-m); padding: 12px 14px; font-size: 14px; line-height: 1.4; text-align: center;
  box-shadow: 0 12px 30px -10px var(--shadow);
}

@media (min-width: 900px) {
  .wrap { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .track div.now i, .spinner { animation: none; }
  .progress i { transition: none; }
}
