@import '/fonts/typography.css';

/* Layout: показ в кинозале — живой кадр на весь экран, дальше страница идёт как монтаж: сцены с таймкодами */
:root {
  --ink: #0b0d12;        /* небо перед закатом */
  --ink-2: #12161d;
  --line: rgba(236, 230, 220, 0.12);
  --paper: #ece6dc;      /* тёплый белый */
  --dim: #8f8b84;
  --amber: #f0a04b;      /* свечение кольца */
  --sea: #6c8296;
  --display: "Sofia Sans", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.tc { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--dim); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Показ */
.screen { position: relative; height: clamp(600px, 88vh, 900px); overflow: hidden; background: #000; }
.screen-img { position: absolute; inset: -4%; width: 108%; height: 108%; display: block; animation: dolly 26s ease-in-out infinite alternate; }
.screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
@keyframes dolly { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2.5%, -1.5%); } }
.screen::before, .screen::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.screen::before { top: 0; height: 40%; background: linear-gradient(to bottom, rgba(11, 13, 18, .85), transparent); }
.screen::after { bottom: 0; height: 70%; background: linear-gradient(to top, var(--ink) 4%, rgba(11, 13, 18, .6) 45%, transparent); }
.overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 56px; }
.rec { position: absolute; top: 96px; right: max(20px, env(safe-area-inset-right, 0px)); display: flex; gap: 14px; align-items: center; }
.rec b { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 48px; align-items: end; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 7.4vw, 112px); line-height: .95; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { margin-top: 26px; font-size: 18px; color: rgba(236, 230, 220, .82); max-width: 520px; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.slate { border-left: 1px solid var(--line); padding-left: 22px; display: grid; gap: 14px; font-size: 14px; color: rgba(236, 230, 220, .8); }
.slate q { font-size: 17px; line-height: 1.5; color: var(--paper); quotes: "«" "»"; }
.slate .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* Сцены */
section { padding-block: 120px; }
.scene-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; margin-bottom: 56px; }
.scene-head .tc { padding-top: 14px; border-top: 1px solid var(--line); }
.scene-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.025em; }
.scene-head h2 em { font-style: normal; color: var(--amber); }
.scene-head p { margin-top: 18px; color: var(--dim); font-size: 17px; max-width: 560px; }

/* Как делается: монтажная лента */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: #000; padding: 22px 2px; border-radius: 4px; position: relative; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(236, 230, 220, .22) 10px 20px); }
.strip::before { top: 6px; } .strip::after { bottom: 6px; }
.cut { background: var(--ink-2); display: flex; flex-direction: column; min-width: 0; }
.cut-frame { aspect-ratio: 16/10; position: relative; overflow: hidden; background: #000; }
.cut-frame canvas, .fmt-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cut-body { padding: 18px 18px 22px; display: grid; gap: 8px; }
.cut-body h3 { font-size: 18px; font-weight: 600; }
.cut-body p { font-size: 14px; color: var(--dim); }
.cut-body .cost { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }
.typing { position: absolute; inset: 0; padding: 18px; font: 500 16px/1.45 var(--body); color: var(--paper); background: #0e1117; }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--amber); vertical-align: -2px; margin-left: 3px; animation: blink 1s steps(2, start) infinite; }
.frame-tag { position: absolute; left: 10px; bottom: 9px; font-family: var(--mono); font-size: 11px; color: #fff; text-shadow: 0 1px 4px #000; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .5); display: grid; place-items: center; backdrop-filter: blur(6px); }
.play span::after { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

/* Форматы */
.formats { display: grid; grid-template-columns: 0.42fr 1.2fr 0.72fr; gap: 20px; align-items: end; }
.fmt { display: grid; gap: 14px; min-width: 0; }
.fmt-frame { position: relative; overflow: hidden; border-radius: 3px; max-width: 100%; background: #000; }
.fmt-frame.v { aspect-ratio: 9/16; }
.fmt-frame.h { aspect-ratio: 16/9; }
.fmt-frame.s { aspect-ratio: 1/1; }
.fmt-cap { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.fmt-cap span:first-child { font-weight: 500; }

/* Модели */
.models { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.model { padding: 36px 36px 40px 0; display: grid; gap: 18px; align-content: start; }
.model + .model { border-left: 1px solid var(--line); padding-left: 36px; }
.model h3 { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -0.025em; }
.model > p { color: var(--dim); max-width: 440px; }
.landing-versions { display: grid; gap: 0; }
.ver { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ver span:first-child { font-family: var(--mono); font-size: 13px; color: var(--paper); padding-top: 2px; }
.ver span:last-child { color: var(--dim); }

/* Цена: хлопушка */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.clap { border-radius: 6px; overflow: hidden; background: #e9e4da; color: #15171c; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.clap-top { height: 46px; background: repeating-linear-gradient(-55deg, #15171c 0 26px, #e9e4da 26px 52px); }
.clap-body { display: grid; grid-template-columns: 1fr 1fr; }
.clap-cell { padding: 14px 18px; border-right: 1.5px solid #15171c; border-bottom: 1.5px solid #15171c; min-width: 0; }
.clap-cell:nth-child(2n) { border-right: 0; }
.clap-cell small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #5a5c63; }
.clap-cell b { display: block; margin-top: 4px; font: 600 20px/1.2 var(--body); }
.clap-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 18px; border-bottom: 0; border-right: 0; }
.clap-total b { font-family: var(--display); font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; }
.clap-pick { display: flex; gap: 8px; padding: 0 18px 18px; flex-wrap: wrap; }
.clap-pick button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #15171c; background: transparent; font: 500 13px/1 var(--body); color: #15171c; cursor: pointer; }
.clap-pick button[aria-pressed="true"] { background: #15171c; color: #e9e4da; }
.rules { display: grid; gap: 0; }
.rule { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule i { font-style: normal; color: var(--amber); font-family: var(--mono); font-size: 13px; padding-top: 3px; }
.rule b { display: block; font-weight: 600; margin-bottom: 4px; }
.rule p { color: var(--dim); font-size: 15px; }
.note { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* Вопросы */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--dim); max-width: 680px; }

/* Финал */
.final { position: relative; overflow: hidden; padding-block: 150px; text-align: left; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .45; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 30%, rgba(11, 13, 18, .2)); }
.final .wrap { position: relative; z-index: 1; }
.final h2 { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -0.03em; max-width: 760px; }
.final h2 em { font-style: normal; color: var(--amber); }
.final .btn { margin-top: 36px; }
footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: 13px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero-grid, .price-grid { grid-template-columns: 1fr; gap: 36px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .scene-head { grid-template-columns: 1fr; gap: 18px; }
  .models { grid-template-columns: 1fr; }
  .model + .model { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .nav { display: none; }
}
@media (max-width: 600px) {
  section { padding-block: 80px; }
  .strip { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr 1fr; }
  .fmt.wide { grid-column: 1 / -1; order: -1; }
  .ver { grid-template-columns: 1fr; gap: 4px; }
  .rec { top: 84px; }
  .slate { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } html { scroll-behavior: auto; } }
#authModal{color-scheme:light}

.landing-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .aikino-appbar .landing-auth-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}
