/* Cavity — «пустота»: почти чёрный космос, холодное свечение, тонкий шрифт, стеклянные карточки в духе iOS. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 200 600; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116 }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 200 600; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 200 600; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }

:root {
  color-scheme: dark;
  --bg: #010307;
  --fg: #eef3fb;
  --mut: #8f9bb0;
  --dim: #5b6578;
  --line: rgba(190, 210, 255, 0.12);
  --glow: #bcd3ff;
  --glow-soft: rgba(150, 185, 255, 0.18);
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --f: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --r: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 300 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 200; letter-spacing: -0.02em; text-wrap: balance }
p { margin: 0 }
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px }
::selection { background: rgba(188, 211, 255, 0.3) }

/* Звёздная пыль на всю страницу */
.stars {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 52%, #dbe7ff 50%, transparent 51%),
    radial-gradient(1px 1px at 51% 37%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 83%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 24% 41%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 43% 92%, #cfe0ff 50%, transparent 51%);
  background-size: 420px 420px;
}
/* Сетка, тающая книзу — как у Экспресс БС, только холоднее */
.grid-bg {
  position: absolute; inset: 0 0 auto; height: 1400px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(190, 210, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 210, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 15%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, transparent 75%);
}

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px) }
.mut { color: var(--mut) }
.eyebrow { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--glow); opacity: .8 }

/* Навигация — полупрозрачная панель, как в iOS */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(1, 3, 7, 0.55); border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line) }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px }
.brand { display: flex; align-items: center; gap: 10px }
.brand img { width: 30px; height: 30px; mix-blend-mode: screen }
.brand span { font-weight: 300; font-size: 0.95rem; letter-spacing: 0.42em; margin-right: -0.42em }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; color: var(--mut) }
.nav-links a:not(.btn):hover { color: var(--fg) }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 15px 28px; border: 1px solid transparent;
  font: 500 1rem/1 var(--f); letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 20px; height: 20px; flex: none }
.btn-main { background: #f4f7fd; color: #050a14; box-shadow: 0 0 0 0 rgba(188, 211, 255, 0), 0 10px 40px -10px rgba(188, 211, 255, .55) }
.btn-main:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 6px rgba(188, 211, 255, .1), 0 16px 50px -10px rgba(188, 211, 255, .75) }
.btn-main:active { transform: scale(.97) }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.04); color: var(--fg) }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09) }
.btn-sm { padding: 10px 18px; font-size: 0.88rem }
.btn-sm svg { width: 16px; height: 16px }

/* Первый экран */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - 60px); display: flex; align-items: center; overflow: hidden }
.hero-planet {
  position: absolute; z-index: -1; top: 50%; right: 0; height: min(118%, 1100px); width: auto; max-width: none;
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg, transparent, #000 35%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  animation: breathe 9s ease-in-out infinite;
}
.hero::after { /* мягкий ореол за заголовком */
  content: ''; position: absolute; z-index: -1; left: -10%; top: 20%; width: 60%; height: 60%;
  background: radial-gradient(closest-side, rgba(120, 160, 255, 0.10), transparent); pointer-events: none;
}
@keyframes breathe { 0%, 100% { filter: brightness(1) } 50% { filter: brightness(1.18) } }
.hero-in { padding-block: 72px 96px; max-width: 640px }
.hero-logo { width: 96px; height: 96px; mix-blend-mode: screen; margin: 0 0 28px -14px; animation: breathe 9s ease-in-out infinite }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.04; margin-top: 18px }
.hero h1 b { font-weight: 400; background: linear-gradient(180deg, #fff, #9fbaf0); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero .lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--mut); max-width: 500px }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--dim) }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--glow); animation: wheel 2.2s ease-in-out infinite }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(12px) } }
@media (max-width: 720px) {
  .hero { align-items: flex-end; min-height: calc(100svh - 60px) }
  .hero-planet { height: 100%; right: -42vw; opacity: .9; top: 0; transform: none; mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent) }
  .hero-in { padding-block: 40px 72px }
  .hero-logo { width: 76px; height: 76px; margin-left: -10px }
  .hero-cta .btn { flex: 1 1 100% }
  .scroll-hint { display: none }
}

/* Секции */
section { position: relative; padding-block: clamp(64px, 9vw, 112px) }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px) }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin-top: 14px }
.sec-head p { margin-top: 14px; color: var(--mut) }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px) scale(1.015); border-color: rgba(190, 210, 255, 0.24); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 60px -20px var(--glow-soft) }
}

/* Преимущества — бенто */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.feat { padding: 28px; min-height: 230px; display: flex; flex-direction: column; overflow: hidden }
.feat .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(188, 211, 255, 0.08); border: 1px solid var(--line); color: var(--glow) }
.feat .ico svg { width: 26px; height: 26px }
.feat .big { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 200; line-height: 1; margin-top: auto; letter-spacing: -0.03em }
.feat h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; margin-top: 10px }
.feat p { color: var(--mut); font-size: 0.95rem; margin-top: 6px }
.feat-wide { grid-column: span 2 }
.feat-wide::before { /* лёгкая орбита на фоне */
  content: ''; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(188, 211, 255, 0.14); box-shadow: inset 0 0 60px rgba(120, 160, 255, 0.08); pointer-events: none;
}
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr) } .feat-wide { grid-column: auto } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr } .feat-wide { grid-column: auto } .feat { min-height: 0 } .feat .big { margin-top: 28px } }

/* Тарифы */
.trial {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  padding: 18px 22px; margin-bottom: 16px; border-radius: 22px;
}
.trial b { font-weight: 500 }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.plan { padding: 28px 24px 24px; display: flex; flex-direction: column }
.plan .term { font-size: 0.95rem; color: var(--mut) }
.plan .price { font-size: clamp(2.6rem, 4vw, 3.2rem); font-weight: 200; letter-spacing: -0.03em; line-height: 1; margin-top: 18px }
.plan .price small { font-size: 0.42em; color: var(--mut); letter-spacing: 0; margin-left: 4px }
.plan .per { font-size: 0.9rem; color: var(--mut); margin-top: 10px; min-height: 1.4em }
.plan ul { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 8px; font-size: 0.92rem; color: var(--mut) }
.plan li { display: flex; gap: 8px; align-items: baseline }
.plan li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--glow); opacity: .7; transform: translateY(-2px) }
.plan .btn { margin-top: auto; width: 100% }
.tag { position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; background: rgba(188, 211, 255, 0.1); color: var(--glow); border: 1px solid var(--line) }
.plan-best { border-color: rgba(190, 210, 255, 0.3); background: linear-gradient(180deg, rgba(188, 211, 255, 0.12), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 80px -30px rgba(150, 185, 255, .45) }
.plan-best .tag { background: #f4f7fd; color: #050a14; border-color: transparent }
.plans-note { margin-top: 18px; font-size: 0.86rem; color: var(--dim) }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr } }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s }
.step { padding: 28px }
.step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(188, 211, 255, 0.3); color: var(--glow); font-weight: 300; box-shadow: 0 0 24px -6px var(--glow-soft) }
.step h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; margin-top: 22px }
.step p { color: var(--mut); font-size: 0.95rem; margin-top: 8px }
.step a.inline { color: var(--fg); border-bottom: 1px solid var(--line) }
.step a.inline:hover { border-color: var(--glow) }
.steps-cta { display: flex; justify-content: center; margin-top: 40px }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr } }

/* Финальный экран перед подвалом */
.outro { text-align: center; overflow: hidden }
.outro img { width: 72px; height: 72px; margin: 0 auto 24px; mix-blend-mode: screen }
.outro h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08 }
.outro p { color: var(--mut); margin-top: 14px }
.outro .btn { margin-top: 30px }
.outro::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 160, 255, 0.12), transparent) }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 0.9rem; color: var(--mut) }
.foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px }
.foot h4 { margin: 0 0 12px; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim) }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.foot a:hover { color: var(--fg) }
.foot .copy { margin-top: 14px; color: var(--dim); font-size: 0.82rem }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr } }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease) }
.reveal.in { opacity: 1; transform: none }
.no-js .reveal { opacity: 1; transform: none }

/* Юридические страницы */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px) 96px }
.doc .back { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); font-size: 0.92rem; margin-bottom: 32px }
.doc .back:hover { color: var(--fg) }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1 }
.doc .ed { color: var(--dim); margin-top: 12px; font-size: 0.92rem }
.doc .sheet { margin-top: 36px; padding: clamp(22px, 4vw, 40px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line) }
.doc h2 { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.01em; margin: 34px 0 12px }
.doc h2:first-child { margin-top: 0 }
.doc p, .doc li { color: #c3cbd9; font-size: 0.98rem }
.doc p + p { margin-top: 8px }
.doc ul { margin: 8px 0; padding-left: 22px }
.doc li + li { margin-top: 4px }
.doc a { color: var(--fg); border-bottom: 1px solid var(--line) }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
  .reveal { opacity: 1; transform: none }
}
