/* DocXAssist — сайт. Цвета как в программе (app/theme.py, тёмная тема). */
:root {
  --bg: #0B0D12;
  --bg-2: #0F1218;
  --card: #141821;
  --card-2: #191E28;
  --line: #232A35;
  --line-2: #2E3644;
  --text: #F4F6F8;
  --muted: #9AA4B5;
  --dim: #6B7486;
  --accent: #3B82F6;
  --accent-2: #6EA8FF;
  --accent-3: #8B7CFF;
  --gold: #FFD666;
  --ok: #3DD68C;
  --bad: #F06A6A;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(59, 130, 246, .4); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-xs { width: 13px; height: 13px; }
.logo { width: 30px; height: 30px; flex: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px;
  border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, #4C8DF8, #2F6FE6); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 30px -8px rgba(59, 130, 246, .65);
}
.btn-primary:hover { background: linear-gradient(180deg, #5B98FA, #3B7BF0); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 36px -8px rgba(59, 130, 246, .8); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #3B4556; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 500; }
.link:hover { color: #9CC2FF; }
.chip {
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: rgba(255, 214, 102, .12); color: var(--gold); margin-left: 8px;
}
.chip-on { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- шапка ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.nav.scrolled { background: rgba(11, 13, 18, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: rgba(255, 255, 255, .06); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a, .nav-account { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-account:hover, .nav-links a[aria-current], .nav-account[aria-current] { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.langs { position: relative; }
.langs summary {
  list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--text); background: rgba(255, 255, 255, .05); }
.langs .ic { width: 17px; height: 17px; }
.langs-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid;
}
.langs-menu a { padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.langs-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.langs-menu a[aria-current] { color: var(--text); background: rgba(59, 130, 246, .14); }
.nav-burger { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--text); }
.mnav { display: grid; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: rgba(11, 13, 18, .96); backdrop-filter: blur(16px); }
.mnav[hidden] { display: none; }
@media (min-width: 901px) { .mnav { display: none !important; } }
.mnav a { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.mnav a:last-child { border-bottom: 0; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: -68px 0 0; pointer-events: none; }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb-a { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(59, 130, 246, .55), transparent 65%); }
.orb-b { width: 560px; height: 560px; right: -140px; top: 60px; background: radial-gradient(circle, rgba(139, 124, 255, .38), transparent 65%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: #CFE0FF; background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .28); transition: background .2s;
}
.badge:hover { background: rgba(59, 130, 246, .16); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 214, 140, .18); flex: none; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.035em; margin: 22px 0 22px; }
.grad { background: linear-gradient(100deg, #8FBCFF 0%, #5B96F7 40%, #A28CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-row.center { justify-content: center; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; color: var(--dim); font-size: 14px; }

/* демо-окно */
.demo { position: relative; min-height: 420px; }
.demo-glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(59, 130, 246, .35), transparent); filter: blur(30px); }
.win { position: relative; border-radius: 16px; background: #0E1117; border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #121620; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2C3340; }
.dots i:first-child { background: #F25F58; } .dots i:nth-child(2) { background: #F5BE4F; } .dots i:nth-child(3) { background: #58C850; }
.win-title { font-size: 12.5px; color: var(--dim); }
.win-body { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 20% 10%, #1B2433, #0D1016); }
.slide { position: absolute; inset: 9% 8% 30%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8%; }
.slide-lines { display: grid; align-content: start; gap: 12px; }
.slide-lines i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.slide-lines i:first-child { height: 16px; background: rgba(255, 255, 255, .22); margin-bottom: 8px; }
.slide-chart { display: flex; align-items: flex-end; gap: 10%; padding: 0 4%; border-bottom: 1px solid rgba(255, 255, 255, .12); }
/* Размеры элементов макета — здесь, а не в атрибутах style (их запрещает защита сайта, CSP). */
.slide-lines i:nth-child(1) { width: 62%; } .slide-lines i:nth-child(2) { width: 84%; }
.slide-lines i:nth-child(3) { width: 71%; } .slide-lines i:nth-child(4) { width: 46%; }
.slide-chart b:nth-child(1) { height: 38%; } .slide-chart b:nth-child(2) { height: 62%; } .slide-chart b:nth-child(3) { height: 48%; }
.slide-chart b:nth-child(4) { height: 80%; } .slide-chart b:nth-child(5) { height: 56%; }
.lec-sum i:nth-child(1) { width: 92%; } .lec-sum i:nth-child(2) { width: 78%; } .lec-sum i:nth-child(3) { width: 85%; }
.pop-bar i { width: 97%; }
.slide-chart b { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(110, 168, 255, .7), rgba(59, 130, 246, .15)); }
.subs { position: absolute; left: 6%; right: 6%; bottom: 7%; display: flex; justify-content: center; }
.track-frame {
  position: relative; display: block; padding: 10px 14px; border-radius: 8px; background: rgba(0, 0, 0, .62);
  outline: 2px dashed rgba(110, 168, 255, .85); outline-offset: 4px; text-align: center; max-width: 100%;
}
.track-label {
  position: absolute; left: -4px; top: -30px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.subs-text { font-size: clamp(12px, 1.25vw, 15px); font-weight: 500; color: #fff; }
.subs-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #fff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pop {
  position: absolute; right: -22px; top: 17%; width: min(330px, 70%); padding: 14px 16px 14px; border-radius: 16px;
  background: rgba(23, 27, 35, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(59, 130, 246, .12);
  transition: opacity .35s ease, transform .35s ease;
}
.pop.swap { opacity: 0; transform: translateY(8px) scale(.98); }
.pop-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pop-head .logo { width: 20px; height: 20px; }
.pop-pair { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(59, 130, 246, .14); color: #A9C9FF; }
.pop-tr { margin: 10px 0 12px; font-size: 15.5px; line-height: 1.45; font-weight: 500; color: var(--text); }
.pop-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); }
.pop-file { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-score { color: var(--ok); font-weight: 600; white-space: nowrap; }
.pop-bar { margin-top: 9px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pop-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .6s ease; }
.toast {
  position: absolute; left: 22px; bottom: -16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px;
  font-size: 12.5px; font-weight: 500; background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.toast .ic { color: var(--ok); }
.toast.show { opacity: 1; transform: none; }

/* ---------- цифры ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font: 800 34px/1.1 var(--display); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #B7C3D7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- секции ---------- */
.sec { padding: 110px 0; position: relative; }
.sec-tight { padding: 24px 0 100px; }
.sec-tint { background: radial-gradient(80% 60% at 50% 0%, rgba(59, 130, 246, .08), transparent 70%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.sec-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.more { margin-top: 36px; }
.sep { color: var(--dim); margin: 0 12px; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; margin-bottom: 22px; font: 700 16px/1 var(--display);
  color: #fff; background: linear-gradient(180deg, #4C8DF8, #2F6FE6); box-shadow: 0 8px 20px -6px rgba(59, 130, 246, .7);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 49px; right: -21px; width: 22px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent);
}

/* возможности */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat {
  position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .25s, transform .25s, background .25s;
}
.feat::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .12), transparent 45%);
}
.feat:hover { border-color: #33405A; transform: translateY(-2px); }
.feat:hover::before { opacity: 1; }
.feat-wide { grid-column: span 2; }
.feat-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px; color: var(--accent-2);
  background: linear-gradient(180deg, rgba(59, 130, 246, .18), rgba(59, 130, 246, .06)); border: 1px solid rgba(59, 130, 246, .22);
}
.feat h3 { position: relative; font-size: 18px; margin-bottom: 8px; }
.feat p { position: relative; color: var(--muted); font-size: 15px; }

/* лекция */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split .sec-head { margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #D5DBE6; }
.ticks .ic { color: var(--ok); margin-top: 4px; }
.lec {
  display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto 1fr; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden;
}
.lec-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px rgba(240, 106, 106, .18); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(240, 106, 106, .05); } }
.lec-body { padding: 18px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); }
.lec-line { font-size: 13.5px; color: #CBD3DF; line-height: 1.5; }
.lec-t { display: inline-block; min-width: 46px; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12px; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 6px; }
.wave i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: wave 1.2s ease-in-out infinite; height: 30%; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 50% { height: 100%; } }
.lec-side { padding: 16px; display: grid; gap: 8px; align-content: start; background: rgba(255, 255, 255, .015); }
.lec-side h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 4px 0 2px; }
.lec-side p { display: grid; padding: 8px 10px; border-radius: 9px; background: rgba(59, 130, 246, .08); border: 1px solid rgba(59, 130, 246, .16); font-size: 12.5px; }
.lec-side p b { color: #CFE0FF; font-weight: 600; }
.lec-side p span { color: var(--muted); }
.lec-sum { display: grid; gap: 7px; }
.lec-sum i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); }

/* приватность */
.privs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.priv { padding: 28px; border-radius: var(--radius); background: rgba(20, 24, 33, .7); border: 1px solid var(--line); }
.priv h3 { font-size: 18px; margin-bottom: 8px; }
.priv p { color: var(--muted); font-size: 15px; }

/* сравнение */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--muted); }
.cmp thead th.us { color: var(--text); }
.cmp tbody th { text-align: left; font-weight: 500; color: #D5DBE6; }
.cmp .us { background: rgba(59, 130, 246, .07); }
.mk { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mk-yes { background: rgba(61, 214, 140, .14); color: var(--ok); }
.mk-no { background: rgba(255, 255, 255, .05); color: var(--dim); }
.mk-partly { background: rgba(255, 214, 102, .12); color: var(--gold); }

/* тарифы — тизер */
.teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 44px; border-radius: 24px;
  background: linear-gradient(120deg, rgba(59, 130, 246, .16), rgba(139, 124, 255, .1) 60%, rgba(20, 24, 33, .6)); border: 1px solid rgba(110, 168, 255, .22);
}
.teaser h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.teaser p { color: #C3CCDA; margin-top: 10px; max-width: 560px; }
.teaser-prices { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--muted); }
.teaser-prices b { font: 800 28px/1 var(--display); color: var(--text); }

/* вопросы */
.faq { display: grid; gap: 10px; }
.qa { border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.qa[open] { border-color: var(--line-2); background: var(--card-2); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16.5px; }
.qa summary::-webkit-details-marker { display: none; }
.chev { color: var(--dim); transition: transform .25s; }
.qa[open] .chev { transform: rotate(180deg); color: var(--text); }
.qa-a { padding: 0 22px 20px; color: var(--muted); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 22px; margin-bottom: 18px; }

/* финал */
.final-card {
  position: relative; overflow: hidden; text-align: center; padding: 80px 32px; border-radius: 28px; background: var(--card);
  border: 1px solid var(--line-2); display: grid; justify-items: center;
}
.final-glow { position: absolute; inset: -40% 10% auto; height: 120%; background: radial-gradient(closest-side, rgba(59, 130, 246, .35), transparent); filter: blur(20px); }
.final-card > * { position: relative; }
.final-card .logo { width: 64px; height: 64px; margin-bottom: 26px; filter: drop-shadow(0 14px 30px rgba(59, 130, 246, .5)); }
.final-card h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -.035em; }
.final-card p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 560px; }

/* ---------- внутренние страницы ---------- */
.page-hero { position: relative; padding: 80px 0 40px; background: radial-gradient(70% 100% at 50% 0%, rgba(59, 130, 246, .13), transparent 70%); }
.page-hero-sm { padding: 40px 0 0; background: radial-gradient(70% 100% at 50% 0%, rgba(59, 130, 246, .1), transparent 70%); }
.page-hero .sec-head { margin-bottom: 0; }
.page-hero h1, .page-hero .sec-head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.note .ic { color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pill b { color: var(--text); }
.ver { margin-top: 26px; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.plan-hot { background: linear-gradient(180deg, rgba(59, 130, 246, .12), var(--card) 45%); border-color: rgba(110, 168, 255, .45); box-shadow: 0 30px 70px -30px rgba(59, 130, 246, .55); }
.plan-flag { position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #4C8DF8, #2F6FE6); }
.plan h3 { font-size: 22px; }
.plan-desc { color: var(--muted); margin-top: 6px; font-size: 15px; min-height: 48px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.plan-price b { font: 800 46px/1 var(--display); letter-spacing: -.03em; }
.plan-price span { color: var(--muted); }
.plan-dev { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.plan-feats { list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #D5DBE6; }
.plan-feats .ic { color: var(--ok); margin-top: 3px; }
.plan-feats .chip { margin-left: auto; flex: none; }

/* загрузка */
.dls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl { padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.dl.mine { border-color: rgba(110, 168, 255, .45); background: linear-gradient(180deg, rgba(59, 130, 246, .1), var(--card) 40%); }
.dl-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.dl-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.dl-ic .ic { width: 26px; height: 26px; }
.dl h2 { font-size: 26px; }
.dl-top p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.dl-meta { display: flex; justify-content: space-between; margin: 12px 2px 26px; color: var(--dim); font-size: 13.5px; }
.dl h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.dl-steps { margin: 0; padding: 0 0 0 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.dl-steps li { counter-increment: st; position: relative; padding-left: 38px; color: #CBD3DF; font-size: 15px; }
.dl-steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: rgba(59, 130, 246, .14); color: var(--accent-2);
}
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.req { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.req h3 { font-size: 16.5px; margin-bottom: 8px; }
.req p { color: var(--muted); font-size: 14.5px; }

/* обновления */
.rels { position: relative; display: grid; gap: 0; }
.rel { display: grid; grid-template-columns: 150px 1fr; gap: 36px; padding: 36px 0; border-top: 1px solid var(--line); }
.rel:first-child { border-top: 0; }
.rel-side { display: grid; align-content: start; gap: 6px; }
.rel-v { font: 700 20px/1 var(--display); }
.rel-side time { color: var(--dim); font-size: 14px; }
.rel-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.tag-new { background: rgba(59, 130, 246, .14); color: #A9C9FF; }
.tag-security { background: rgba(61, 214, 140, .12); color: var(--ok); }
.tag-launch { background: rgba(139, 124, 255, .16); color: #C7BCFF; }
.tag-latest { background: rgba(255, 214, 102, .12); color: var(--gold); }
.rel h2 { font-size: 24px; margin-bottom: 14px; }
.rel ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #CBD3DF; }
.rel ul li::marker { color: var(--accent-2); }
.rel-note { margin-top: 10px; color: var(--dim); font-size: 13.5px; }

/* аккаунт */
.auth { max-width: 440px; margin: 0 auto; padding: 40px 36px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.auth-head { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 26px; }
.auth-head .logo { width: 48px; height: 48px; margin-bottom: 6px; }
.auth-head h1 { font-size: 28px; }
.auth-head p { color: var(--muted); }
form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: #C3CCDA; margin-bottom: 16px; }
input[type=email], input[type=password] {
  height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font: 400 16px var(--font); transition: border-color .2s, box-shadow .2s;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); }
.form-err { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(240, 106, 106, .1); border: 1px solid rgba(240, 106, 106, .3); color: #FFB4B4; font-size: 14px; }
.auth-note { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.card h2 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-wide { grid-column: 1 / -1; }
.prof { display: flex; align-items: center; gap: 18px; }
.ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: linear-gradient(180deg, #4C8DF8, #2F6FE6); display: grid; place-items: center; font: 700 24px var(--display); }
.prof h1 { font-size: 28px; }
.prof p { color: var(--muted); }
.prof .btn { margin-left: auto; }
.plan-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-now b { font: 800 32px/1 var(--display); }
.dev { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.dev:first-of-type { border-top: 0; }
.dev b { display: block; font-weight: 600; }
.dev span { color: var(--dim); font-size: 13.5px; }
.code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.code b { font: 700 26px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .14em; padding: 12px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: #A9C9FF; }
.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 6px; }
.mini.now { border-color: rgba(110, 168, 255, .5); }
.mini b { font: 700 17px var(--display); }
.mini span { color: var(--muted); font-size: 14px; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }

/* документы */
.legal-title { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.legal section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 20px; margin-bottom: 10px; }
.legal p { color: #C3CCDA; }
.legal > p { margin-top: 24px; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 64px 0 28px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .012)); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 320px; font-size: 15px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.foot-langs a { color: var(--dim); }
.foot-langs a:hover { color: var(--text); }
.foot-col { display: grid; align-content: start; gap: 10px; }
.foot-col h3 { font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 6px; }
.foot-col a { color: var(--muted); font-size: 15px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }

/* корень и 404 */
.root-pick { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 0%, rgba(59, 130, 246, .15), var(--bg) 70%); }
.root-box { display: grid; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.root-box .logo { width: 56px; height: 56px; }
.root-box nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.root-box nav a { padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.root-box nav a:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- появление: первый экран — сразу при загрузке, остальное — при прокрутке (без JS) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .reveal, .page-hero .reveal, .auth.reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .reveal:nth-child(2) { animation-delay: .06s; } .hero .reveal:nth-child(3) { animation-delay: .12s; }
.hero .reveal:nth-child(4) { animation-delay: .18s; } .hero .reveal:nth-child(5) { animation-delay: .24s; }
.hero .demo { animation-delay: .2s; }
@supports (animation-timeline: view()) {
  .sec .reveal, .stats .reveal {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .sec .reveal, .stats .reveal { animation: none !important; }
  .wave i, .rec, .subs-text.typing::after { animation: none; }
}

/* ---------- адаптивность ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .lead { margin: 0 auto; }
  .cta-row, .hero-note { justify-content: center; }
  .demo { max-width: 680px; margin: 0 auto; width: 100%; }
  .pop { right: -8px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .reqs { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-account { display: none; }
  .nav-burger { display: block; }
  .nav-in { justify-content: space-between; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .privs, .plans, .dls { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .teaser { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .dash { grid-template-columns: 1fr; }
  .mini-plans { grid-template-columns: 1fr; }
  .plans { max-width: 480px; margin: 0 auto; }
  .plan-desc { min-height: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 72px; }
  .sec { padding: 76px 0; }
  .sec-tight { padding: 16px 0 72px; }
  .nav-right .btn span { display: none; }
  .nav-right .btn { width: 36px; padding: 0; }
  .bento, .reqs { grid-template-columns: 1fr; }
  .feat-wide { grid-column: auto; }
  .btn-lg { width: 100%; }
  .cta-row { flex-direction: column; }
  .pop { position: relative; right: auto; top: auto; width: 100%; margin-top: -24px; }
  .demo { min-height: 0; }
  .toast { display: none; }
  .lec { grid-template-columns: 1fr; }
  .lec-body { border-right: 0; border-bottom: 1px solid var(--line); }
  .rel { grid-template-columns: 1fr; gap: 12px; }
  .auth { padding: 30px 20px; }
  .dl, .card, .plan { padding: 24px 20px; }
  .foot-bottom { flex-direction: column; }
  .prof { flex-wrap: wrap; }
  .prof .btn { margin-left: 0; }
  .stat { padding: 22px 16px; }
  .stat b { font-size: 28px; }
}
