/* FrameVideo — публичный сайт. Тёмная сцена приложения: слива, персик, роза, фиолет.
   Заголовки — Unbounded 300 (как титул в приложении), текст — Golos Text: в нём есть все знаки документов («», №, ₽). Без внешних ресурсов. */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/unbounded-300.woff") format("woff"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/golos-text-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/golos-text-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

:root {
  --bg: #0E0812; --stage: #150D1B; --card: #1B1322; --text: #F6EFEA; --muted: #B5A9B8; --dim: #8E8494;
  --peach: #FFC79E; --coral: #F0A38A; --rose: #D7628F; --violet: #A04BC0; --line: rgba(255, 255, 255, .1);
  --glow: linear-gradient(100deg, var(--peach), var(--coral) 42%, var(--rose));
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 56px); --wide: 1120px; --read: 720px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--peach); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Шапка: знак, три ссылки, вход в Telegram всегда под рукой */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--pad) 10px; background: rgba(14, 8, 18, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 300 17px/1 var(--display); letter-spacing: .01em; }
.brand img { border-radius: 10px; }
.top-nav { display: none; margin-left: auto; gap: 26px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 0; }
.top-nav a:hover { color: var(--text); }
.top .cta { margin-left: auto; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 18px; background: var(--glow); color: #1B0A1C; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(215, 98, 143, .8), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .15s ease, filter .2s ease; }
.cta:hover { color: #1B0A1C; filter: brightness(1.06); }
.cta:active { transform: scale(.98); }
.cta.small { min-height: 44px; padding: 0 16px; border-radius: 14px; font-size: 14px; white-space: nowrap; }
.link-more { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }

/* Первый экран */
.hero { position: relative; padding: clamp(40px, 9vw, 96px) var(--pad) 0; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; }
.hero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 520px; z-index: -1; pointer-events: none; background: radial-gradient(42% 60% at 22% 30%, rgba(160, 75, 192, .28), transparent 70%), radial-gradient(36% 52% at 78% 12%, rgba(215, 98, 143, .2), transparent 70%); }
h1 { font: 300 clamp(33px, 8.6vw, 76px)/1.06 var(--display); letter-spacing: -.02em; text-wrap: balance; max-width: 15ch; }
.hero-lede { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-free { color: var(--muted); font-size: 15px; max-width: 18em; }

/* Монтажная лента: запись с паузами и дублями → то же без них, сверху зацепка, титры и графика */
.strip { margin: clamp(44px, 8vw, 84px) calc(-1 * var(--pad)) 0; padding: 26px var(--pad) 30px; background: var(--stage); border-block: 1px solid var(--line); overflow: hidden; }
.strip-row { display: grid; grid-template-columns: 6.4em 1fr; align-items: center; gap: 14px; max-width: var(--wide); margin: 0 auto; }
.strip-row + .strip-row { margin-top: 16px; }
.strip-label { color: var(--dim); font-size: 13px; line-height: 1.25; }
.reel { display: flex; gap: 4px; height: 46px; min-width: 0; }
.reel i { display: block; border-radius: 7px; flex: 0 0 auto; }
.say { background: linear-gradient(180deg, rgba(255, 199, 158, .9), rgba(215, 98, 143, .85)); }
.cut { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .13) 0 6px, transparent 6px 12px); outline: 1px dashed rgba(255, 255, 255, .22); outline-offset: -1px; }
.w1 { width: 3.2%; } .w2 { width: 5.5%; } .w3 { width: 8%; } .w4 { width: 11%; } .w5 { width: 15%; } .w6 { width: 19%; }
.reel.after .cut { animation: cut-out 1.1s cubic-bezier(.6, 0, .2, 1) 1s both; }
.reel.after { transition: gap .3s; }
.reel.marks { gap: 8px; height: auto; flex-wrap: wrap; align-items: center; }
.mark { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 199, 158, .4); color: var(--peach); font-size: 13px; line-height: 1.3; white-space: nowrap; animation: mark-in .5s ease 2s both; }
.mark:nth-child(2) { animation-delay: 2.15s; } .mark:nth-child(3) { animation-delay: 2.3s; } .mark:nth-child(4) { animation-delay: 2.45s; }
@keyframes cut-out { to { width: 0; margin-left: -4px; opacity: 0; } }
@keyframes mark-in { from { opacity: 0; transform: translateY(6px); } }

/* Разделы */
.band { padding: clamp(56px, 10vw, 112px) var(--pad) 0; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; }
.band > h2, .doc h1 { font: 300 clamp(25px, 5vw, 42px)/1.14 var(--display); letter-spacing: -.015em; text-wrap: balance; max-width: 20ch; }
.band-lede { margin-top: 16px; max-width: 38em; color: var(--muted); }

/* Что делает монтаж: перечень работ, как в смете монтажёра */
.works { margin-top: 34px; border-top: 1px solid var(--line); }
.works > div { display: grid; gap: 4px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.works dt { font-weight: 700; font-size: 18px; }
.works dd { color: var(--muted); max-width: 44em; }

/* Три шага — это действительно последовательность, поэтому с номерами */
.steps { counter-reset: step; margin-top: 34px; display: grid; gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 62px; max-width: 30em; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 199, 158, .45); color: var(--peach); font: 300 18px/1 var(--display); }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--muted); }

.for { margin-top: 30px; display: grid; gap: 14px 40px; max-width: 54em; }
.for li { padding-left: 22px; position: relative; color: var(--muted); }
.for li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--rose); }
.for b { color: var(--text); font-weight: 700; }

/* Прайс: строка, отточие, цена */
.prices-title { margin: 34px 0 6px; font: 700 15px/1.3 var(--body); color: var(--muted); }
.prices { max-width: 640px; }
.price { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 12px; padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.price-name { font-weight: 700; font-size: 19px; }
.price-dots { border-bottom: 2px dotted rgba(255, 255, 255, .22); transform: translateY(-5px); min-width: 20px; }
.price-sum { font: 300 22px/1.1 var(--display); color: var(--peach); white-space: nowrap; }
.price-detail { grid-column: 1 / -1; margin-top: 4px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.price-tag { padding: 2px 10px; border-radius: 999px; background: rgba(215, 98, 143, .16); color: #F3B7CC; font-size: 13px; }
.prices-empty { margin-top: 28px; max-width: 34em; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.includes { margin-top: 30px; display: grid; gap: 10px; max-width: 46em; color: var(--muted); }
.includes li { padding-left: 22px; position: relative; }
.includes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--coral); }

/* Вопросы */
.faq { margin-top: 30px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

.closing { padding: clamp(64px, 11vw, 120px) var(--pad); text-align: left; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; }
.closing h2 { font: 300 clamp(26px, 5.6vw, 48px)/1.12 var(--display); letter-spacing: -.015em; max-width: 16ch; text-wrap: balance; }
.closing .cta { margin-top: 28px; }

/* Документы и текстовые страницы */
.doc { max-width: calc(var(--read) + 2 * var(--pad)); margin: 0 auto; padding: clamp(34px, 7vw, 72px) var(--pad) clamp(56px, 9vw, 96px); font-size: 16px; }
.doc h1 { max-width: none; margin-bottom: 10px; }
.doc .lead, .doc-meta { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font: 700 19px/1.3 var(--body); margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font: 700 16px/1.4 var(--body); margin: 22px 0 8px; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; list-style: disc; }
.doc ol { margin: 0 0 12px; padding-left: 24px; list-style: decimal; }
.doc li { margin-bottom: 6px; }
.doc .n { color: var(--dim); font-variant-numeric: tabular-nums; }
.doc h2 .n { color: var(--coral); margin-right: 4px; }
.req { margin: 6px 0 18px; padding: 4px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.req div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req div:last-child { border-bottom: 0; }
.req dt { color: var(--muted); }
.req dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
/* Оферта владельца — её собственная разметка пунктов */
.offer .clause { display: grid; grid-template-columns: 3.1em 1fr; column-gap: 6px; }
.offer .clause.l2 { grid-template-columns: 3.9em 1fr; padding-left: 14px; }
.offer .clause.head { font-weight: 700; margin-top: 18px; }
.offer .sub { margin-top: 20px; }
.offer .cont { padding-left: calc(3.1em + 6px); }
.offer ul { padding-left: calc(3.1em + 24px); }

/* Партнёрам: расчёт */
.calc { margin-top: 30px; max-width: 640px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.calc label { display: block; font-weight: 700; margin-bottom: 6px; }
.calc output { color: var(--peach); font-weight: 700; }
.calc input[type="range"] { width: 100%; height: 44px; accent-color: var(--coral); margin-bottom: 14px; }
.calc-sum { padding-top: 16px; border-top: 1px solid var(--line); }
.calc-sum b { display: block; font: 300 clamp(28px, 7vw, 40px)/1.1 var(--display); color: var(--peach); }
.calc-sum span, .calc-note { color: var(--muted); font-size: 15px; }
.calc-note { margin-top: 12px; }

/* Подвал */
.foot { margin-top: clamp(40px, 8vw, 80px); padding: 44px var(--pad) calc(34px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--stage); display: grid; gap: 34px 40px; }
.foot-lead p { margin: 14px 0 18px; color: var(--muted); max-width: 24em; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col h2 { font: 700 15px/1.3 var(--body); color: var(--text); margin-bottom: 8px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-col p { color: var(--muted); margin-bottom: 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.foot-col p a { min-height: 32px; }
.foot-note { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; max-width: 70em; }

@media (min-width: 720px) {
  .works > div { grid-template-columns: 17em 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .for { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; }
  .price { padding: 18px 0 16px; }
}
@media (min-width: 900px) {
  .top-nav { display: flex; }
  .top .cta { margin-left: 0; }
  .reel { height: 56px; }
}
@media (max-width: 400px) {
  .brand span { font-size: 15px; }
  .cta.small { padding: 0 13px; font-size: 13px; }
  .strip-row { grid-template-columns: 4.6em 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel.after .cut { animation: none; display: none; }
  .mark { animation: none; }
  .cta { transition: none; }
}
@media print {
  .top, .foot, .skip, .cta { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc { padding: 0; max-width: none; }
  .doc h2 { border-color: #bbb; } .doc .lead, .doc-meta, .doc .n, .req dt { color: #444; } .req { background: none; border-color: #bbb; } a { color: #000; }
}

/* Стили титров: названия как строки каталога */
.looks { margin-top: 30px; display: grid; gap: 0 48px; border-top: 1px solid var(--line); }
.looks > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; align-items: baseline; }
.looks dt { font: 300 18px/1.2 var(--display); color: var(--peach); }
.looks dd { color: var(--muted); }

/* Экраны приложения и кадры монтажей */
.phones, .shots { margin-top: 34px; display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 250px); gap: 18px; overflow-x: auto; padding: 4px var(--pad) 18px; margin-inline: calc(-1 * var(--pad)); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.phone, .shot { margin: 0; scroll-snap-align: center; }
.phone img, .shot img, .shot video { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .14); background: #000; box-shadow: 0 30px 60px -30px rgba(160, 75, 192, .55); }
.phone figcaption, .shot figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.phone figcaption b { color: var(--text); }
.hero-short { padding-bottom: 8px; }
.hero-short h1 { max-width: 17ch; font-size: clamp(30px, 7.4vw, 60px); }

@media (min-width: 720px) {
  .looks { grid-template-columns: 1fr 1fr; }
  .phones { grid-auto-columns: 250px; gap: 34px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .shots { grid-auto-columns: 230px; }
}
.doc .prices { padding-left: 0; list-style: none; }
.doc .prices li { margin-bottom: 0; }

/* Знак FrameVideo справа от заголовка — только там, где для него есть место */
.hero-mark { display: none; }
@media (min-width: 900px) {
  .hero:has(.hero-mark) > h1 { max-width: calc(100% - min(30vw, 360px) - 32px); font-size: clamp(40px, 5.6vw, 72px); }
  .hero-mark { display: block; position: absolute; right: var(--pad); top: clamp(24px, 5vw, 64px); width: min(30vw, 360px); height: auto; border-radius: 40px; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
}
