/* Лендинг cinemarium.ru: общий для landing.html и landing-en.html.
   Стиль приложения — «печать»: острые углы, прямые линии, окружности;
   скругление только у таблеток-кнопок. Без стекла и размытия. */
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/assets/Unbounded-Bold.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --bg: #08070c; --bg-2: #0f0d16; --fg: #f2f2f5; --soft: #c9c9d1; --muted: #8e8c99;
  --line: rgba(255, 255, 255, .10); --line-strong: rgba(255, 255, 255, .22);
  --hero: #8b00ff; --hero-dark: #5500a8; --accent: #b06bff; --accent-ink: #f3ecff;
  --like: #b06bff; --skip: #ff6b6b;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: "Unbounded", -apple-system, sans-serif; font-weight: 700; letter-spacing: -.02em; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Шапка ——— */
.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 7, 12, .92); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; }
.logo img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--soft); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.lang { color: var(--muted); font-size: 14px; text-decoration: none; border: 1px solid var(--line-strong); padding: 4px 10px; }
.lang:hover { color: var(--fg); border-color: var(--fg); }

/* ——— Первый экран ——— */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 64px 0 88px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: .98; margin: 0 0 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .line { display: block; }
.lead { font-size: 19px; color: var(--soft); margin: 0 0 30px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; font-family: inherit; }
.pill.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.primary:hover { background: var(--accent-ink); }
.pill:not(.primary):hover { border-color: var(--fg); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin-top: 22px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); flex: none; }
.status b { color: var(--fg); font-weight: 600; }

/* ——— Колода: живое демо свайпа ——— */
.demo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.deck { position: relative; width: 290px; height: 420px; touch-action: pan-y; }
.card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 22px 0;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); color: #fff;
  background: linear-gradient(160deg, var(--c1), var(--c2)); user-select: none; -webkit-user-select: none;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s; will-change: transform; }
.card:nth-last-child(2) { transform: translate(20px, 6px) rotate(5deg) scale(.97); }
.card:nth-last-child(3) { transform: translate(-24px, 10px) rotate(-6deg) scale(.94); }
.card:nth-last-child(n+4) { transform: scale(.9); opacity: 0; }
.card.top-card { transform: rotate(-1.5deg); cursor: grab; }
.card.dragging { transition: none; cursor: grabbing; }
.card .perf { position: absolute; top: 18px; bottom: 76px; width: 8px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .5) 0 12px, transparent 12px 26px); }
.card .perf.l { left: 8px; } .card .perf.r { right: 8px; }
.card .yr { position: absolute; top: 26px; left: 30px; right: 30px; font-size: 64px; line-height: 1; color: rgba(255, 255, 255, .18); }
.card .t { font-size: 24px; line-height: 1.12; margin: 0 0 8px; padding: 0 10px; }
.card .m { font-size: 14px; color: rgba(255, 255, 255, .78); margin: 0 0 18px; padding: 0 10px; }
.card .stub { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed rgba(255, 255, 255, .45); margin: 0 -22px; }
.card .stub span { padding: 13px 0; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card .stub span + span { border-left: 1px dashed rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .2); }
/* Печать-штамп при перетаскивании. */
.stamp { position: absolute; top: 34px; padding: 6px 12px; border: 3px solid; font: 700 18px/1 "Unbounded", sans-serif; letter-spacing: .02em; text-transform: uppercase; opacity: 0; pointer-events: none; }
.stamp.like { right: 22px; color: #fff; border-color: #fff; transform: rotate(8deg); }
.stamp.skip { left: 22px; color: #fff; border-color: #fff; transform: rotate(-8deg); }
.done { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; border: 1px dashed var(--line-strong); color: var(--soft); }
.deck:has(.card) .done { visibility: hidden; }
.done b { font: 700 20px/1.2 "Unbounded", sans-serif; color: var(--fg); }
.controls { display: flex; gap: 14px; align-items: center; }
.round { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.round:hover { border-color: var(--fg); }
.round.like { background: var(--like); border-color: var(--like); }
.round svg { width: 24px; height: 24px; }
.basket { font-size: 14px; color: var(--muted); min-height: 1.5em; text-align: center; max-width: 320px; }
.basket b { color: var(--fg); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }

/* ——— Бегущая строка ——— */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.ticker ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover ul { animation-play-state: paused; }
.ticker li { font: 700 clamp(18px, 2.4vw, 26px)/1 "Unbounded", sans-serif; color: var(--soft); padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.ticker li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ——— Секции ——— */
section { padding: 96px 0; }
section[id] { scroll-margin-top: 64px; }
section.tight { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.05; margin: 0 0 18px; }
.section-lead { color: var(--soft); max-width: 36em; margin: 0 0 48px; font-size: 18px; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.numbers div { padding: 26px 24px; }
.numbers div + div { border-left: 1px solid var(--line); }
.numbers b { display: block; font: 700 clamp(30px, 4vw, 44px)/1 "Unbounded", sans-serif; margin-bottom: 10px; }
.numbers span { color: var(--soft); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 2px solid var(--fg); padding-top: 22px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 56px/1 "Unbounded", sans-serif; color: var(--hero); margin-bottom: 18px; }
.steps h3 { font-size: 21px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--soft); }

/* Бенто-сетка возможностей: разные размеры плиток, острые углы. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; position: relative; overflow: hidden; }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; } .tile.w4 { grid-column: span 4; }
.tile .n { color: var(--accent); font-size: 13px; letter-spacing: .12em; }
.tile h3 { font-size: 22px; margin: 0; }
.tile p { margin: 0; color: var(--soft); max-width: 32em; }
.tile.feature { background: linear-gradient(150deg, var(--hero), var(--hero-dark)); }
.tile.feature p { color: rgba(255, 255, 255, .85); }
.tile.feature .n { color: var(--accent-ink); }
.tile .art { margin-top: auto; }
/* Мини-коллекция на плитке: полоски-корешки. */
.spines { display: flex; gap: 6px; align-items: flex-end; height: 70px; }
.spines i { flex: 1; background: rgba(255, 255, 255, .85); }
.spines i:nth-child(2n) { background: rgba(255, 255, 255, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line-strong); padding: 5px 10px; font-size: 13px; color: var(--soft); }
.minis { display: flex; gap: 10px; align-items: flex-end; }
.minis i { width: 54px; height: 80px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.minis i:nth-child(odd) { transform: rotate(-4deg); }
.minis i:nth-child(even) { transform: rotate(3deg); }
.minis i.yes { background: #fff; border-color: #fff; }
.csv { font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 12px; white-space: pre; overflow: hidden; }
.dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; max-width: 260px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split p { margin: 0 0 14px; color: var(--soft); }
.frame { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, .25) 0 10px, transparent 10px 22px); }
.frame::before { top: 10px; } .frame::after { bottom: 10px; }
.play { width: 72px; height: 72px; border-radius: 50%; background: var(--hero); display: grid; place-items: center; }
.play::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }

.facts-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.facts-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--soft); display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.facts-list b { color: var(--fg); font-weight: 600; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--fg), var(--fg)) center / 14px 2px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--soft); max-width: 44em; }

.final { text-align: center; padding: 120px 0; }
.final h2 { font-size: clamp(34px, 6vw, 72px); margin-bottom: 24px; }
.final p { color: var(--soft); margin: 0 auto 32px; max-width: 30em; }

footer { border-top: 1px solid var(--line); padding: 32px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { color: var(--fg); }

/* ——— Появление при скролле: чистый CSS, только где браузер умеет ——— */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(36px); } }
  }
  .hero h1 .line { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero h1 .line:nth-child(2) { animation-delay: .08s; }
  .hero h1 .line:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker ul { animation: none; }
  .card { transition: none; }
}

/* ——— Телефон ——— */
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .wrap { gap: 12px; }
  .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 36px 0 64px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: 1fr; }
  .tile.w2, .tile.w3, .tile.w4 { grid-column: auto; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .facts-list li { grid-template-columns: 1fr; gap: 4px; }
  section { padding: 72px 0; }
}
@media (max-width: 380px) {
  .deck { width: 260px; height: 390px; }
}
