/* Lunivo — сайт в дизайне приложения «Афиша» (ai-chat-app-kmp: theme/Neon.kt,
   объект Poster): тёплый чёрный #0B0A09, тёплый белый #F3EEE5, акцент
   #FF5A36, плакатный Big Shoulders Display в заголовках, Hanken Grotesk в
   тексте (свои файлы, без запросов к Google). Главная кнопка — тёплая белая
   капсула, второстепенная — капсула с тонкой рамкой. Только тёмная тема. */
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/bigshoulders_extrabold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/bigshoulders_black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B0A09;
  --surface: #1A1816;
  --raised: #221F1C;
  --text: #F3EEE5;
  --muted: rgba(243, 238, 229, 0.64);
  --soft: rgba(243, 238, 229, 0.46);
  --edge: rgba(243, 238, 229, 0.12);
  --outline: rgba(243, 238, 229, 0.32);
  --line: rgba(243, 238, 229, 0.10);
  --accent: #FF5A36;
  --on-ink: #0B0A09;
  --gutter: 24px;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Плакатный шрифт без кириллицы — на чужих алфавитах система возьмёт свой */
  --display: "Big Shoulders", "Hanken Grotesk", Impact, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--on-ink); }

/* ---- Знак: «LUNIVO» плакатом и оранжевая точка, как в приложении ---- */
.brand {
  display: inline-flex; align-items: flex-end; gap: 3px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-size: 32px; line-height: 0.9; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.brand::after {
  content: ""; width: 7px; height: 7px; margin-bottom: 2px; border-radius: 50%;
  background: var(--accent);
}

/* ---- Кнопки: тёплая белая капсула и капсула с рамкой ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.liquid, .button { background: var(--text); color: var(--on-ink); }
.btn.liquid:hover, .button:hover { background: #FFFFFF; }
.btn.glass, .button.dark {
  background: transparent; color: var(--text);
  border: 1px solid var(--outline);
}
.btn.glass:hover, .button.dark:hover { border-color: var(--text); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
/* Старые имена из страниц документов */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---- Шапка лендинга: прилипает, лёгкое размытие ---- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 10, 9, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); height: 68px;
  display: flex; align-items: center; gap: 28px;
}
.head-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; }
.head-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.head-links a:hover { color: var(--text); }

/* ---- Первый экран ---- */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 72px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px;
}
.live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--surface);
  color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 {
  margin: 24px 0 22px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 9.5vw, 128px); line-height: 0.86; letter-spacing: 0.005em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 500px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--soft); }

/* Три телефона веером: в центре главная, по бокам чат и персонаж */
.phones { position: relative; height: 640px; isolation: isolate; }
.phone {
  margin: 0; overflow: hidden; border-radius: 40px;
  border: 8px solid #161412;
  box-shadow: 0 0 0 1px var(--edge), 0 30px 80px rgba(0, 0, 0, 0.7);
  background: #161412;
}
.phones .phone { position: absolute; width: 268px; }
.phones .main { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phones .left { left: 2%; top: 64px; transform: rotate(-7deg); filter: brightness(0.8); }
.phones .right { right: 2%; top: 64px; transform: rotate(7deg); filter: brightness(0.8); }

/* ---- Разделы лендинга ---- */
.section { max-width: 1160px; margin: 0 auto; padding: 104px var(--gutter) 0; }
.kicker {
  margin: 0 0 14px; font-size: 12px; line-height: 1.2; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.section h2, .plus h2 {
  margin: 0 0 40px; max-width: 760px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 6.4vw, 80px); line-height: 0.9; letter-spacing: 0.005em;
}

/* Карточки — тёмная поверхность с тонкой кромкой, как в приложении */
.feature, .plus, .rows, .card, .glass { background: var(--surface); border: 1px solid var(--edge); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 26px; border-radius: 22px; }
.ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--raised); color: var(--accent); border: 1px solid var(--edge);
}
.ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 22px 0 8px; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Лента экранов: листается вбок */
.strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 28px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 232px; margin: 0; scroll-snap-align: start; }
.shot .phone { border-radius: 34px; border-width: 7px; }
.shot figcaption {
  margin-top: 16px; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 24px; line-height: 1; color: var(--text);
}
.shot figcaption span {
  display: block; margin-top: 6px; font-family: var(--sans); text-transform: none;
  font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--soft);
}

/* Lunivo Plus: карточка с артом пейвола справа, как баннер в профиле */
.plus {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 48px; border-radius: 28px;
}
.plus h2 { margin: 0 0 16px; }
.plus h2 em { font-style: normal; color: var(--accent); }
.plus p { margin: 0; color: var(--muted); font-size: 17px; }
.perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; margin: 0; color: var(--text); font-weight: 700; }
.perks li span { display: block; color: var(--soft); font-weight: 500; font-size: 14px; }
.perks svg { flex: none; width: 24px; height: 24px; padding: 4px; margin-top: 2px; border-radius: 50%; color: var(--on-ink); background: var(--accent); }
.plus .actions { margin-top: 30px; }

/* Документы: строки как в настройках приложения, в одной карточке */
.rows { margin: 0; padding: 6px 0; list-style: none; border-radius: 22px; }
.rows li { margin: 0; }
.row {
  display: flex; align-items: center; gap: 16px; min-height: 74px; padding: 14px 24px;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.rows li:last-child .row { border-bottom: 0; }
.row span { flex: 1; min-width: 0; }
.row b { display: block; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--text); }
.row small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.row svg { flex: none; width: 18px; height: 18px; color: var(--soft); transition: transform 0.15s, color 0.15s; }
.row:hover svg { transform: translateX(3px); color: var(--accent); }
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.support-card { padding: 30px; border-radius: 22px; }
.support-card h3 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 34px; line-height: 0.95;
}
.support-card p { margin: 0 0 22px; color: var(--muted); }

/* ---- Подвал ---- */
.site-foot { margin-top: 120px; border-top: 1px solid var(--line); }
.foot-in {
  max-width: 1160px; margin: 0 auto; padding: 28px var(--gutter) 44px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  font-size: 14px; color: var(--soft);
}
.foot-in nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.foot-in a { color: var(--muted); text-decoration: none; }
.foot-in a:hover { color: var(--text); }

/* ---- Страницы документов (privacy, terms, faq…) ---- */
.wrap { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.top { display: flex; align-items: center; min-height: 76px; }
.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 4px 0 44px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--edge);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; line-height: 1.2; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.tabs a:hover { color: var(--text); background: rgba(243, 238, 229, 0.06); }
.tabs a[aria-current] { color: var(--on-ink); background: var(--text); }
.wrap h1 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 72px); line-height: 0.9; letter-spacing: 0.005em;
}
.wrap h2 { margin: 44px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.wrap h3 { margin: 30px 0 6px; font-size: 17px; line-height: 1.35; font-weight: 700; }
.meta { margin-bottom: 32px; color: var(--soft); font-size: 14px; }
.wrap p, .wrap li { color: var(--muted); }
strong { color: var(--text); font-weight: 700; }
.wrap ul, .wrap ol { padding-left: 22px; }
.wrap li { margin: 7px 0; }
.wrap li::marker { color: var(--accent); }
code { font-size: 13px; background: var(--raised); padding: 2px 7px; border-radius: 7px; color: var(--text); }
.card { margin: 28px 0; padding: 20px 24px; border-radius: 20px; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0 0; }
footer { color: var(--soft); font-size: 14px; line-height: 1.8; padding-top: 20px; }
footer a { color: var(--muted); }

/* ---- Узкие экраны ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .phones { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .phones .phone { width: 228px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus, .two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .head-links { display: none; }
  .head-in { height: 60px; }
  .head-in .btn { margin-left: auto; }
  .hero h1 { font-size: 66px; }
  .hero .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 auto; }
  .phones { height: 470px; }
  .phones .phone { width: 196px; border-radius: 32px; border-width: 6px; }
  .phones .left { left: -4%; top: 52px; }
  .phones .right { right: -4%; top: 52px; }
  .section { padding-top: 76px; }
  .section h2, .plus h2 { font-size: 48px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 22px; }
  .shot { width: 200px; }
  .plus { padding: 28px 22px; border-radius: 24px; }
  .row { padding: 14px 18px; }
  .support-card { padding: 24px 22px; }
  .tabs { margin-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.top .btn { margin-left: auto; }

/* Телефоны веером не дают странице уехать вбок на узком экране */
main { overflow-x: clip; }
