/* OpenSteam — общий стиль */
:root, [data-theme="dark"] {
  --bg: #090c0f; --surface: #12161b; --surface-2: #1b2027; --surface-3: #232932;
  --line: rgba(255,255,255,.07); --text: #f3f5f8; --hint: #8a94a3;
  --accent: #4aa8f0; --accent-2: #2b7de0; --accent-soft: rgba(74,168,240,.14);
  --green: #4fcb5d; --red: #ff6b6b; --orange: #f5a623;
  --hero-top: #3d8fe0; --hero-mid: #1d4f86;
  --card-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  --grid-dot: rgba(255,255,255,.07);
}
[data-theme="light"] {
  --bg: #eef2f7; --surface: #ffffff; --surface-2: #f1f4f8; --surface-3: #e6ebf1;
  --line: rgba(0,0,0,.07); --text: #0c1117; --hint: #66707d;
  --accent-soft: rgba(43,125,224,.1);
  --hero-top: #5db4f5; --hero-mid: #a9d4f7;
  --card-shadow: 0 30px 80px -30px rgba(20,60,110,.35);
  --grid-dot: rgba(0,0,0,.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden;
  font: 15px/1.5 "Onest", -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.display { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; }
[hidden] { display: none !important; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── Фон ─────────────────────────────────────────── */
.sky {
  position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 32%, var(--bg) 70%);
}
.sky::before { /* сетка из точек */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent);
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 14s ease-in-out infinite alternate; }
.glow.a { width: 460px; height: 460px; background: #6fc3ff; left: -120px; top: 60px; }
.glow.b { width: 380px; height: 380px; background: #8a7dff; right: -100px; top: 220px; animation-delay: -6s; opacity: .35; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

/* ── Анонс + хедер ──────────────────────────────── */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; font-size: 13px; font-weight: 500;
  background: linear-gradient(90deg, #141a22, #1e2733, #141a22); color: #e9eef5;
}
.announce .pill { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.08); }
header.site { position: sticky; top: 0; z-index: 50; transition: background .25s, backdrop-filter .25s, box-shadow .25s; }
header.site.scrolled { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 26px; }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--accent-2); display: grid; place-items: center; transform: rotate(-8deg); transition: transform .3s; }
.logo:hover .mark { transform: rotate(8deg) scale(1.05); }
.logo .mark svg { width: 20px; height: 20px; }
[data-theme="light"] header.site.scrolled .logo { color: var(--text); }
.menu { display: flex; gap: 6px; margin: 0 auto; }
.menu a {
  height: 38px; padding: 0 16px; display: flex; align-items: center; border-radius: 12px; font-size: 13px;
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.menu a:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
header.site.scrolled .menu a { background: var(--surface-2); color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.35); color: #fff; transition: .2s; }
.round-btn:hover { background: rgba(255,255,255,.15); }
header.site.scrolled .round-btn { border-color: var(--line); color: var(--text); }
.dark-btn { height: 40px; padding: 0 16px; border-radius: 12px; background: #0b0e12; color: #fff; display: flex; align-items: center; gap: 8px; font-size: 13px; transition: transform .2s; }
.dark-btn:hover { transform: translateY(-1px); }
.burger { display: none; }

/* ── Hero / форма ───────────────────────────────── */
.hero { padding: 40px 0 120px; }
.buy-card {
  position: relative; max-width: 440px; margin: 0 auto; padding: 44px 26px 26px;
  background: var(--surface); border-radius: 26px; box-shadow: var(--card-shadow);
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.buy-card::before { /* «ушко» сверху */
  content: ""; position: absolute; left: 50%; top: -22px; width: 120px; height: 44px; transform: translateX(-50%);
  background: var(--surface); border-radius: 22px 22px 0 0;
  -webkit-mask: radial-gradient(14px at 0 30px, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(14px at 100% 30px, transparent 98%, #000) right / 51% 100% no-repeat;
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.98); } }
.buy-card h1 { font-size: 40px; text-align: center; }
.buy-card .lead { text-align: center; color: var(--hint); font-size: 14px; margin: 10px auto 22px; max-width: 280px; }
.stack > * + * { margin-top: 12px; }

.seg { display: flex; background: var(--surface-2); border-radius: 16px; padding: 4px; position: relative; }
.seg button { flex: 1; height: 40px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--hint); position: relative; z-index: 1; transition: color .2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; border-radius: 12px; background: var(--surface-3); transition: left .3s cubic-bezier(.3,.9,.3,1), width .3s; }
[data-theme="light"] .seg .thumb { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.input {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px;
  background: var(--surface-2); border-radius: 16px; border: 1.5px solid transparent; transition: border-color .2s, background .2s;
}
.input:focus-within { border-color: var(--accent); }
.input.invalid { border-color: var(--red); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.input > svg { color: var(--hint); }
.input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 16px; }
.input input::placeholder { color: var(--hint); }
.input .side { font-size: 13px; color: var(--hint); white-space: nowrap; }
.input .tip { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); color: var(--hint); font-size: 11px; display: grid; place-items: center; cursor: help; position: relative; }
.input .tip:hover::after {
  content: attr(data-tip); position: absolute; right: -6px; bottom: 28px; width: 220px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-3); color: var(--text); font-size: 12px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 5;
}
.help { font-size: 12px; color: var(--red); padding: 0 4px; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 38px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 500; white-space: nowrap; border: 1.5px solid transparent; transition: .2s; }
.chip:hover { border-color: var(--line); transform: translateY(-1px); }
.chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.summary { border-radius: 16px; border: 1px dashed var(--line); padding: 12px 16px; font-size: 13px; }
.row { display: flex; justify-content: space-between; padding: 3px 0; }
.row > span:first-child { color: var(--hint); }

.cta {
  width: 100%; height: 56px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #5bb8ff, var(--accent-2)); color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, opacity .2s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px rgba(74,168,240,.7);
}
.cta::after { /* блик */
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(74,168,240,.8); }
.cta:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.cta:disabled::after { display: none; }
.cta.ghost { background: var(--surface-2); color: var(--text); box-shadow: none; }
.cta.ghost::after { display: none; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.under { text-align: center; font-size: 13px; color: var(--hint); margin-top: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.legal-note { text-align: center; font-size: 12px; color: var(--hint); margin-top: 10px; }
.legal-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge.orange { background: rgba(245,166,35,.14); color: var(--orange); }
.badge.green { background: rgba(79,203,93,.14); color: var(--green); }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(79,203,93,.14); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.done-ic svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(0); } }

/* ── Секции ─────────────────────────────────────── */
section.block { padding: 110px 0; position: relative; }
.title { font-size: clamp(38px, 6vw, 64px); text-align: center; }
.title .dim { color: var(--hint); opacity: .55; }

/* Шаги — таймлайн */
.steps { position: relative; max-width: 760px; margin: 70px auto 0; }
.steps .rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.steps .rail i { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: linear-gradient(var(--accent), #8a7dff); box-shadow: 0 0 12px var(--accent); }
.steps .rail i::after { content: ""; position: absolute; bottom: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px var(--accent); }
.step { position: relative; text-align: center; padding: 50px 0; }
.step .num { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hint); padding: 6px 12px; border-radius: 999px; background: var(--surface); position: relative; }
.step .art { width: 120px; height: 120px; margin: 26px auto 18px; border-radius: 32px; display: grid; place-items: center; position: relative; background: var(--surface); }
.step .art svg { width: 54px; height: 54px; color: #fff; position: relative; z-index: 1; }
.step .art::before { content: ""; position: absolute; inset: 14px; border-radius: 24px; background: var(--g); filter: blur(0); }
.step .art::after { content: ""; position: absolute; inset: 10px; border-radius: 26px; background: var(--g); filter: blur(28px); opacity: .6; }
.step h3 { font-size: 32px; }
.step p { color: var(--hint); max-width: 420px; margin: 12px auto 0; }

/* Преимущества — синий блок с карточками */
.blue {
  margin: 0 12px; border-radius: 40px; padding: 100px 0 120px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #2f7fe0, #5bb6f5);
}
.blue::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; }
.blue .title { color: #fff; position: relative; }
.blue .title .dim { color: rgba(255,255,255,.55); opacity: 1; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 80px; position: relative; }
.note {
  background: #fbfcfe; color: #0d1218; border-radius: 6px; padding: 54px 26px 34px; text-align: center; position: relative;
  box-shadow: 0 2px 0 #e2e6ec, 0 24px 40px -18px rgba(0,30,70,.45); transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.3,1.4,.5,1);
}
.note:nth-child(1) { --r: -2deg; } .note:nth-child(2) { --r: 1.5deg; margin-top: 30px; } .note:nth-child(3) { --r: -1deg; }
.note:hover { transform: rotate(0) translateY(-8px); }
.note .pin { position: absolute; top: -18px; left: 50%; width: 30px; height: 30px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 30%, #fff8 0 15%, transparent 16%), var(--pin); box-shadow: 0 8px 10px -4px rgba(0,0,0,.4); }
.note .pin::after { content: ""; position: absolute; left: 50%; top: 26px; width: 3px; height: 14px; background: #9aa3ad; transform: translateX(-50%); border-radius: 2px; z-index: -1; }
.note .ic { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--pin); color: #fff; transform: rotate(-6deg); }
.note .ic svg { width: 30px; height: 30px; }
.note h3 { font-size: 26px; }
.note p { color: #5b6570; margin-top: 10px; font-size: 14px; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px; }
.stat { background: var(--surface); border-radius: 22px; padding: 26px 22px; border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.stat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.stat b { display: block; font-size: 42px; }
.stat span { color: var(--hint); font-size: 13px; }

/* FAQ */
.faq { max-width: 760px; margin: 60px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 17px; font-weight: 500; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary svg { transition: transform .3s; color: var(--hint); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .ans { overflow: hidden; color: var(--hint); padding: 0 4px; max-width: 620px; }
.faq .ans p { padding-bottom: 22px; }
.faq .ans a { color: var(--accent); }

/* Облака */
.cloud { position: absolute; width: 240px; height: 80px; background: var(--surface); border-radius: 80px; opacity: .6; z-index: -1; animation: float 9s ease-in-out infinite alternate; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 110px; height: 110px; left: 34px; top: -56px; }
.cloud::after { width: 80px; height: 80px; right: 40px; top: -36px; }
@keyframes float { to { transform: translateX(30px); } }

/* ── Футер ──────────────────────────────────────── */
footer.site { margin-top: 60px; padding: 90px 0 30px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg), #1d5fae 45%, #57b2f5); color: #fff; }
footer .big { font-size: clamp(28px, 4vw, 44px); max-width: 760px; color: rgba(255,255,255,.55); }
footer .big b { color: #fff; font-weight: inherit; }
footer .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 40px; margin-top: 60px; }
footer h4 { font-size: 12px; letter-spacing: .1em; margin-bottom: 14px; font-weight: 600; }
footer .cols a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255,255,255,.85); transition: color .2s, transform .2s; }
footer .cols a:hover { color: #fff; transform: translateX(4px); }
footer .copy { margin-top: 70px; font-size: 12px; color: rgba(255,255,255,.75); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer .wordmark { font-size: clamp(80px, 19vw, 240px); line-height: .8; margin-top: 40px; color: rgba(255,255,255,.12); white-space: nowrap; user-select: none; }

/* ── Юридические страницы ───────────────────────── */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 20px 20px; }
.doc .paper { background: var(--surface); border-radius: 26px; padding: 44px 40px; box-shadow: var(--card-shadow); animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc .meta { color: var(--hint); font-size: 13px; margin: 10px 0 30px; }
.doc h2 { font-size: 18px; margin: 30px 0 10px; font-weight: 600; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 80%, var(--hint)); margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc .todo { background: rgba(245,166,35,.12); color: var(--orange); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.doc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; justify-content: center; }
.doc-tabs a { height: 36px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; font-size: 13px; background: rgba(255,255,255,.14); color: #fff; }
.doc-tabs a.on { background: #fff; color: #0b0e12; }

/* ── Анимации появления ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.note.reveal { transform: translateY(60px) rotate(var(--r)); }
.note.reveal.in { transform: rotate(var(--r)); }
.note.reveal.in:hover { transform: rotate(0) translateY(-8px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--surface-3); color: var(--text); border-radius: 14px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.4); transition: .25s; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Мобильная версия ───────────────────────────── */
@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--card-shadow); }
  .menu.open { display: flex; }
  .menu a, header.site.scrolled .menu a { background: none; color: var(--text); height: 46px; }
  .burger { display: grid; margin-left: auto; }
  .nav-actions .dark-btn span { display: none; }
  .notes { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; gap: 44px; }
  .note:nth-child(2) { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .buy-card { padding: 40px 18px 20px; border-radius: 22px; }
  .buy-card h1 { font-size: 34px; }
  .blue { margin: 0 6px; border-radius: 28px; }
  .doc .paper { padding: 30px 22px; }
  .announce { font-size: 12px; white-space: nowrap; overflow: hidden; padding: 0 12px; }
  .announce .pill { display: none; }
}
