/* Cosmos — студия мобильных приложений и игр. Единый стиль сайта: главная, продукты, политики. */
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url("fonts/unbounded-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url("fonts/unbounded-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap;
  src: url("fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap;
  src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap;
  src: url("fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap;
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap;
  src: url("fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --space: #08070f;
  --space-2: #110f22;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f1eff8;
  --ink-2: #c9c6d8;
  --muted: #8e8aa3;
  --teal: #46c8b6;
  --amber: #f3b24a;
  --coral: #f07272;
  --violet: #a597ff;
  --green: #7ccf6f;
  --radius-lg: 28px;
  --radius-md: 18px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
/* Фон -- на корне: тогда слой звёзд (z-index: -1) лежит поверх него, а не под фоном body. */
html {
  color-scheme: dark; scroll-behavior: smooth; min-height: 100%;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(108, 92, 231, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(70, 200, 182, 0.09), transparent 60%),
    radial-gradient(1000px 700px at 60% 105%, rgba(240, 114, 114, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(165, 151, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--space-2) 0%, var(--space) 45%, #0a0914 100%) var(--space);
}
html, body { overflow-x: clip; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.65 var(--text); background: transparent;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--amber); color: #1b1407; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* ── Звёзды: три слоя, медленное мерцание ── */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.sky i { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; background: transparent; }
.sky .s1 { animation: twinkle 7s ease-in-out infinite; opacity: .55; }
.sky .s2 { width: 2px; height: 2px; animation: twinkle 11s ease-in-out infinite reverse; opacity: .45; }
.sky .s3 { width: 3px; height: 3px; animation: twinkle 17s ease-in-out infinite; opacity: .35; filter: blur(.3px); }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .75; } }

/* ── Шапка ── */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(8, 7, 15, .78), rgba(8, 7, 15, .35)); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 15px/1 var(--display); letter-spacing: .14em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: clamp(14px, 3vw, 30px); align-items: center; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.lang { font: 500 12px/1 var(--display); letter-spacing: .12em; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 99px; }
.lang:hover { border-color: var(--ink-2); }

/* ── Первый экран ── */
.hero { position: relative; overflow: clip; padding: clamp(48px, 9vw, 110px) 0 clamp(8px, 2vw, 24px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 4vw, 60px); }
.eyebrow { font: 500 12px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--teal); margin: 0 0 22px; text-wrap: balance; }
.hero h1 { font: 800 clamp(48px, 9vw, 112px)/.92 var(--display); letter-spacing: -.02em; margin: 0; }
.hero h1 .glow { background: linear-gradient(100deg, #fff 0%, #e8e3ff 40%, var(--violet) 75%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34ch; margin: 26px 0 34px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); }
.chip b { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Орбиты с бусинами */
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .ring { fill: none; stroke: rgba(255, 255, 255, .10); stroke-width: 1; }
.orbit .ring.gold { stroke: url(#gold); stroke-width: 7; filter: drop-shadow(0 0 14px rgba(243, 178, 74, .25)); }
.orbit .spin { transform-origin: 260px 260px; animation: spin 60s linear infinite; }
.orbit .spin.rev { animation-duration: 90s; animation-direction: reverse; }
.orbit .spin.slow { animation-duration: 140s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .core { filter: blur(40px); opacity: .55; }

/* ── Секции ── */
section { padding: clamp(44px, 6.5vw, 84px) 0; }
.kicker { font: 500 12px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.h2 { font: 800 clamp(30px, 4.4vw, 52px)/1.04 var(--display); letter-spacing: -.01em; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.sub { color: var(--ink-2); max-width: 56ch; margin: 0; }

/* Продукт */
.product { margin-top: clamp(36px, 5vw, 56px); position: relative; border-radius: var(--radius-lg); padding: 1px;
  background: linear-gradient(140deg, rgba(165, 151, 255, .45), rgba(70, 200, 182, .18) 40%, rgba(255, 255, 255, .06) 70%, rgba(243, 178, 74, .35)); }
.product-inner { position: relative; border-radius: calc(var(--radius-lg) - 1px); overflow: hidden;
  background: radial-gradient(700px 420px at 85% 20%, rgba(108, 92, 231, .22), transparent 70%), linear-gradient(160deg, #15132b 0%, #0d0c1b 100%);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(20px, 4vw, 48px); padding: clamp(28px, 5vw, 60px); align-items: center; }
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.app-name { font: 800 clamp(26px, 3vw, 34px)/1.05 var(--display); margin: 0; }
.app-cat { color: var(--muted); font-size: 15px; margin-top: 6px; }
.app-desc { color: var(--ink-2); font-size: 18px; margin: 0 0 24px; max-width: 46ch; }
.facts { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts li { padding: 14px 14px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.facts strong { display: block; font: 800 22px/1.1 var(--display); }
.facts span { color: var(--muted); font-size: 13.5px; line-height: 1.35; display: block; margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn-soon { background: var(--surface-strong); border: 1px dashed var(--line-strong); color: var(--ink-2); cursor: default; }
.btn-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(243, 178, 74, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(243, 178, 74, 0); } }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); transform: translateY(-2px); }

/* Телефоны */
.phones { position: relative; height: clamp(420px, 46vw, 560px); }
.phone { position: absolute; width: clamp(170px, 18vw, 232px); aspect-ratio: 1080 / 2400; border-radius: 30px; padding: 7px;
  background: linear-gradient(160deg, #2b2840, #0b0a14); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .6s var(--ease); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.phone::after { content: ""; position: absolute; top: 14px; left: 50%; width: 34%; height: 13px; transform: translateX(-50%); border-radius: 99px; background: #05050a; }
.phone.p1 { left: 0; top: 9%; transform: rotate(-8deg); }
.phone.p2 { left: 30%; top: 0; z-index: 2; transform: rotate(0deg); }
.phone.p3 { left: 59%; top: 11%; transform: rotate(8deg); }
.product:hover .phone.p1 { transform: rotate(-10deg) translateY(-6px); }
.product:hover .phone.p3 { transform: rotate(10deg) translateY(-6px); }

/* Принципы */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.principle { padding: 28px 26px 26px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.principle:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.principle svg { width: 38px; height: 38px; margin-bottom: 20px; }
.principle h3 { font: 500 19px/1.25 var(--display); margin: 0 0 10px; }
.principle p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Подвал: крупная надпись-подпись студии */
.outro { padding: clamp(30px, 5vw, 60px) 0 0; overflow: hidden; }
.outro .word { font: 800 clamp(64px, 17vw, 240px)/.8 var(--display); letter-spacing: -.03em; text-align: center; margin: 0;
  background: linear-gradient(180deg, rgba(241, 239, 248, .16), rgba(241, 239, 248, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── Страницы документов (политики) ── */
.doc { padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); }
.doc .wrap { width: min(780px, 100% - 2 * var(--gutter)); }
.doc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.doc-head img { width: 56px; height: 56px; border-radius: 15px; }
.doc-head .kicker { margin: 0 0 8px; }
.doc-head h1 { font: 800 clamp(22px, 4vw, 40px)/1.12 var(--display); margin: 0; overflow-wrap: anywhere; hyphens: auto; }
h1, h2, h3 { overflow-wrap: break-word; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.toc a { text-decoration: none; transition: border-color .2s, color .2s; }
.toc a:hover { border-color: var(--line-strong); color: var(--ink); }
.prose { color: var(--ink-2); font-size: 17px; }
.prose h1 { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--display); color: var(--ink); margin: 56px 0 8px; }
.prose h1:first-child { margin-top: 0; }
.prose h2 { font: 500 20px/1.3 var(--display); color: var(--ink); margin: 40px 0 12px; }
.prose h3 { font: 600 18px/1.35 var(--text); color: var(--ink); margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose code { font-size: .92em; padding: 2px 6px; border-radius: 6px; background: var(--surface-strong); }
.prose a { color: var(--teal); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.prose .updated, .prose .meta { color: var(--muted); font-size: 15px; }
.prose section { padding: 0; }

/* ── Адаптив ── */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .orbit { position: absolute; right: -34%; top: -2%; width: 74vw; max-width: 420px; opacity: .32; z-index: -1; pointer-events: none; }
  .product-inner { grid-template-columns: 1fr; }
  .phones { height: clamp(380px, 92vw, 520px); }
  .phone { width: clamp(150px, 40vw, 220px); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .eyebrow { letter-spacing: .18em; line-height: 1.5; }
  .hero .lede { max-width: none; }
  .doc-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav .hide-sm { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts li { display: flex; align-items: baseline; gap: 12px; }
  .facts span { margin-top: 0; }
  .phone.p1 { left: -6%; } .phone.p3 { left: 58%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Кнопка магазина, когда продукт опубликован */
.btn-get { background: linear-gradient(135deg, var(--amber), #f08a4a); color: #1b1407; box-shadow: 0 10px 30px rgba(243, 178, 74, .25); }
.btn-get:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(243, 178, 74, .35); }
