/* DocXAssist — сайт. Стиль программы «Графит Pro» (app/theme.py, тёмная тема): графит, Manrope, фиолетовый акцент,
   цвета режимов (снимок — синий, слежение — зелёный, голос — оранжевый, любой текст — фиолетовый). Макет — site/design. */
:root {
  --bg: #0D0E11;
  --bg-2: #101216;
  --card: #14161A;
  --card-2: #1A1D22;
  --line: #22252B;
  --line-2: #2D3139;
  --text: #EDEEF0;
  --soft: #B9BEC7;
  --muted: #8A9099;
  --dim: #6B7079;
  --accent: #7C6CFF;
  --accent-dark: #4F40C9;
  --accent-2: #C9C1FF;
  --blue: #7EA6FF;
  --green: #4ADE80;
  --orange: #FB923C;
  --violet: #B79CFF;
  --amber: #F3C27A;
  --red: #E0634B;
  --gold: #FFD666;
  --ok: #4ADE80;
  --bad: #F06A6A;
  --paper: #F3EFE6;
  --ink: #1D1B18;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 70px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: var(--font);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  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: 500 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.1; margin: 0; letter-spacing: -.025em; font-weight: 800; }
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(124, 108, 255, .4); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }
.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; }
/* цвета режимов */
.c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-orange { --c: var(--orange); } .c-violet { --c: var(--violet); }
.mic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  color: var(--c, var(--accent-2)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }
.mic .ic { width: 18px; height: 18px; }
.keys { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 11px; }
.keys i { font-style: normal; }
kbd { font: 600 11.5px var(--mono); color: var(--soft); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 7px; background: var(--card-2); }
.ok-pill { color: var(--green); background: rgba(74, 222, 128, .1); padding: 1px 8px; border-radius: 999px; font-weight: 700; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px;
  border-radius: 12px; font-weight: 700; 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: 38px; padding: 0 15px; 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: var(--accent); color: #fff; }
.btn-primary:hover { background: #8A7CFF; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--card-2); border-color: #3A3F49; }
/* главная кнопка «Скачать»: крупная и «объёмная», как клавиша */
.btn-dl { height: 62px; padding: 0 28px 0 16px; border-radius: 16px; font-size: 17px; font-weight: 800; gap: 14px;
  box-shadow: 0 5px 0 var(--accent-dark), 0 18px 40px -12px rgba(124, 108, 255, .65); }
.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--accent-dark), 0 22px 46px -12px rgba(124, 108, 255, .75); }
.btn-dl:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-dark), 0 10px 24px -12px rgba(124, 108, 255, .6); }
.btn-dl .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(255, 255, 255, .18); stroke-width: 2.4; }
.btn-dl-2 { height: 62px; padding: 0 24px; border-radius: 16px; font-size: 16px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; }
.link:hover { color: #E0DAFF; }
.chip {
  font-style: normal; font-size: 11px; font-weight: 700; 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; background: rgba(13, 14, 17, .82);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); transition: border-color .25s; }
.nav.scrolled { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 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: 600; 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: 700;
}
.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(124, 108, 255, .16); }
.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(13, 14, 17, .97); }
.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: 600; }
.mnav a:last-child { border-bottom: 0; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 56px 0 90px; }
.hero-in { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.beta { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(251, 146, 60, .12); color: var(--orange); }
.beta i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(36px, 4.3vw, 58px); letter-spacing: -.045em; line-height: 1.03; margin: 22px 0 22px; }
.grad { color: var(--accent-2); background: linear-gradient(transparent 82%, rgba(124, 108, 255, .4) 82%, rgba(124, 108, 255, .4) 92%, transparent 92%); }
.lead { font-size: clamp(17px, 1.5vw, 18.5px); color: var(--soft); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.modes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.mode { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s; }
.mode:hover { transform: translateY(-2px); }
.mode.on { border-color: var(--c); }
.mode .mic { width: 32px; height: 32px; }
.mode b { display: block; font-size: 14.5px; line-height: 1.25; }

/* «экран» с лекцией (site.js — сценарий) */
.ls-screen { position: relative; border-radius: 18px; border: 1px solid var(--line-2); background: #0A0B0E; overflow: hidden;
  aspect-ratio: 16 / 11; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); }
.ls-bar { position: relative; z-index: 1; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line);
  background: #111317; font-size: 12.5px; color: var(--muted); }
.ls-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2D3139; }
.ls-bar span { margin-left: 8px; }
.ls-slide { position: absolute; inset: 38px 0 0; padding: 34px 38px; background: linear-gradient(180deg, #F4F1EA, #ECE7DC); color: var(--ink); }
.ls-slide small { font: 600 12px var(--mono); color: #8A8174; letter-spacing: .06em; }
.ls-slide h3 { font-size: clamp(18px, 2.2vw, 28px); line-height: 1.15; margin: 10px 0 14px; max-width: 62%; color: var(--ink); }
.ls-slide p { font-size: 14.5px; color: #4A453D; max-width: 56%; }
.ls-subs { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: max-content; max-width: 82%; background: rgba(10, 11, 14, .88);
  color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: clamp(12px, 1.25vw, 16px); line-height: 1.4; text-align: center; transition: opacity .3s; }
.ls-subs em { font-style: normal; color: var(--amber); }
.ls-sel { position: absolute; border: 2px dashed var(--blue); border-radius: 8px; background: rgba(126, 166, 255, .08); opacity: 0;
  transition: all .45s cubic-bezier(.2, .7, .2, 1); }
.ls-wave { position: absolute; left: 38px; bottom: 30px; display: flex; gap: 3px; align-items: center; height: 40px; opacity: 0; transition: opacity .3s; }
.ls-wave i { width: 4px; border-radius: 2px; background: var(--orange); height: 10px; animation: lsw 1s ease-in-out infinite; }
.ls-wave i:nth-child(2) { animation-delay: .1s; } .ls-wave i:nth-child(3) { animation-delay: .2s; } .ls-wave i:nth-child(4) { animation-delay: .3s; }
.ls-wave i:nth-child(5) { animation-delay: .15s; } .ls-wave i:nth-child(6) { animation-delay: .25s; } .ls-wave i:nth-child(7) { animation-delay: .05s; }
@keyframes lsw { 50% { height: 36px; } }
.ls-pop { position: absolute; right: 18px; top: 62px; width: min(330px, 62%); background: #15171B; border: 1px solid #2A2D34; border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55); transform: translateY(8px); opacity: 0; transition: all .4s cubic-bezier(.2, .7, .2, 1); }
.ls-pop.show { opacity: 1; transform: none; }
.ls-pop-hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.ls-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ls-time { margin-left: auto; color: var(--muted); font: 600 11.5px var(--mono); }
.ls-stop { background: var(--red); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; }
.ls-pop-bd { padding: 12px 14px 14px; }
.ls-src { font-size: 12px; color: #A3A8B3; margin-bottom: 6px; }
.ls-src s { color: #6B7079; }
.ls-pop em { font-style: normal; color: var(--amber); font-weight: 800; }
.ls-tr { font-size: clamp(13px, 1.3vw, 16px); font-weight: 700; line-height: 1.35; }
.ls-note { margin-top: 8px; font-size: 11.5px; color: var(--amber); font-weight: 600; }
.ls-note:empty { display: none; }
.ls-meta { margin-top: 8px; font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- цифры ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font: 800 30px/1.1 var(--display); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- секции ---------- */
.sec { padding: 110px 0; position: relative; }
.sec-top0 { padding-top: 0; }
.sec-tight { padding: 24px 0 100px; }
.sec-tint { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; }
.sec-head p { margin-top: 16px; color: var(--soft); font-size: 18px; }
.more { margin-top: 32px; }
.sep { color: var(--dim); margin: 0 12px; }

/* как это работает — шаги и двуязычный документ */
.how { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.how .sec-head { margin-bottom: 28px; }
.hsteps { display: grid; gap: 4px; }
.hstep { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid transparent; transition: all .25s; }
.hstep.on { background: var(--card); border-color: var(--line); }
.hstep-n { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 14px var(--mono); color: var(--muted); }
.hstep.on .hstep-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.hstep b { display: block; font-size: 17px; }
.hstep span span { color: var(--muted); font-size: 15px; }
.sheet-wrap { position: relative; }
.sheet-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sheet-tabs button { background: var(--card); border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.sheet-tabs button.on { color: var(--text); border-color: var(--accent); }
.sheet { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 22px 24px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7); }
.sheet-h { display: flex; justify-content: space-between; gap: 12px; font: 600 12px var(--mono); color: #8A8174; border-bottom: 1px solid #D8D0C0; padding-bottom: 10px; margin-bottom: 4px; }
.srow { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #E2DACB; transition: background .3s; cursor: pointer; }
.srow div { padding: 11px 13px; font: 500 15px/1.5 Lora, Georgia, serif; }
.srow div:first-child { border-right: 1px solid #E2DACB; }
.srow.on { background: #FFF1C9; }
.srow.on div:last-child { box-shadow: inset 3px 0 0 var(--accent); }
.sheet-match { position: absolute; right: -18px; width: 240px; top: 50%; transform: translateY(-50%); background: #15171B; border: 1px solid #2A2D34;
  border-radius: 12px; padding: 10px 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); transition: top .35s cubic-bezier(.2, .7, .2, 1); font-size: 12px; }
.sheet-match small { color: var(--muted); font-size: 11.5px; }
.sheet-match b { display: block; font-size: 14px; margin: 3px 0 6px; line-height: 1.35; }

/* режимы — как плитки программы */
.mpanel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.mpanel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 17px; letter-spacing: -.015em; }
.tile p { color: var(--muted); font-size: 14px; flex: 1; }

/* возможности (старая сетка — используется на других страницах при необходимости) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { position: relative; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feat-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px; color: var(--accent-2); background: rgba(124, 108, 255, .14); }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }

/* лекция */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .sec-head { margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); }
.ticks .ic { color: var(--green); margin-top: 4px; }
.tran { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tran-h { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tran-h em { margin-left: auto; font: 600 12px var(--mono); color: var(--muted); font-style: normal; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(224, 99, 75, .18); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(224, 99, 75, .05); } }
.tran-b { padding: 16px 18px; display: grid; gap: 12px; }
.tline { display: grid; grid-template-columns: 52px 1fr; gap: 12px; font-size: 15px; color: var(--soft); }
.tline em { font: 600 12px var(--mono); color: var(--muted); font-style: normal; padding-top: 3px; }
.term { color: var(--text); background: rgba(124, 108, 255, .2); border-radius: 5px; padding: 0 4px; cursor: help; }
.tran-s { border-top: 1px solid var(--line); padding: 16px 18px; background: var(--bg-2); }
.tran-s small { color: var(--accent-2); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.tran-s p { color: var(--soft); font-size: 14.5px; margin-top: 6px; }

/* приватность */
.privs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.priv { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.priv h3 { font-size: 18px; margin: 14px 0 6px; letter-spacing: -.015em; }
.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: 15px 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-size: 14px; font-weight: 700; color: var(--muted); background: var(--bg-2); }
.cmp thead th.us { color: var(--text); background: rgba(124, 108, 255, .14); }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--soft); }
.cmp .us { background: rgba(124, 108, 255, .06); }
.mk { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mk-yes { background: rgba(74, 222, 128, .14); color: var(--green); }
.mk-no { background: rgba(255, 255, 255, .05); color: var(--dim); }
.mk-partly { background: rgba(243, 194, 122, .12); color: var(--amber); }

/* вопросы */
.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: 700; 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(--soft); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 22px; margin-bottom: 18px; }

/* финал */
.final-card { position: relative; text-align: center; padding: 64px 32px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: grid; justify-items: center; }
.final-keys { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.final-keys kbd { font-size: 15px; padding: 6px 12px; border-bottom-width: 4px; }
.final-card h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.final-card p { color: var(--soft); font-size: 18px; margin-top: 14px; max-width: 560px; }

/* ---------- внутренние страницы ---------- */
.page-hero { position: relative; padding: 72px 0 36px; }
.page-hero-sm { padding: 40px 0 0; }
.page-hero .sec-head { margin-bottom: 0; }
.page-hero h1, .page-hero .sec-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.note .ic { color: var(--accent-2); }
.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); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); flex: none; }
.ver { margin-top: 26px; }

/* тарифы (как на прежнем сайте, в новом стиле) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.plan-hot { border-color: rgba(124, 108, 255, .7); background: linear-gradient(180deg, rgba(124, 108, 255, .1), var(--card) 45%);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, .35), 0 26px 60px -24px rgba(124, 108, 255, .45); }
.plan-flag { position: absolute; top: -12px; left: 22px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); }
.plan h3 { font-size: 21px; }
.plan-desc { color: var(--muted); margin-top: 4px; font-size: 14.5px; min-height: 44px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 0; }
.plan-price b { font: 800 46px/1 var(--display); letter-spacing: -.04em; }
.plan-price span { color: var(--soft); font-size: 15px; font-weight: 600; }
.plan-usd { margin-top: 6px; font-size: 13px; color: var(--muted); }
.plan-dev { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; margin: 8px 0 18px; }
.plan .btn { height: 48px; }
.plan-feats { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--soft); line-height: 1.45; }
.plan-feats .ic { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: rgba(74, 222, 128, .12); color: var(--green); stroke-width: 3; margin-top: 1px; }
.plan-feats .chip { margin-left: auto; flex: none; }

/* загрузка */
.dls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl { padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.dl.mine { border-color: rgba(124, 108, 255, .6); background: linear-gradient(180deg, rgba(124, 108, 255, .1), var(--card) 40%); }
.dl-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.dl-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--card-2); 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 24px; color: var(--dim); font-size: 13.5px; }
.dl h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.dl-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.dl-steps li { counter-increment: st; position: relative; padding-left: 38px; color: var(--soft); 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: 700 13px var(--mono); background: rgba(124, 108, 255, .16); 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; letter-spacing: -.01em; }
.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: 34px 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 18px/1 var(--mono); }
.rel-side time { color: var(--dim); font-size: 14px; }
.rel-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.tag-new { background: rgba(126, 166, 255, .14); color: var(--blue); }
.tag-security { background: rgba(74, 222, 128, .12); color: var(--green); }
.tag-launch { background: rgba(124, 108, 255, .16); color: var(--accent-2); }
.tag-latest { background: rgba(251, 146, 60, .14); color: var(--orange); }
.rel h2 { font-size: 23px; margin-bottom: 14px; }
.rel ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--soft); }
.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: 600; color: var(--soft); margin-bottom: 16px; }
input[type=email], input[type=password], #mfa-form input {
  height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font: 500 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(124, 108, 255, .22); }
.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; }
#mfa-form .auth-note { margin: 0 0 18px; }
#mfa-back { margin-top: 10px; }
#mfa-form input { letter-spacing: .3em; text-align: center; font-family: var(--mono, monospace); font-size: 20px; }
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { padding: 26px; 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; letter-spacing: -.015em; }
.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: var(--accent); display: grid; place-items: center; font: 800 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: 700; }
.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 24px/1 var(--mono); letter-spacing: .14em; padding: 12px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--accent-2); }
.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(124, 108, 255, .6); }
.mini b { font: 800 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; letter-spacing: -.015em; }
.legal p { color: var(--soft); }
.legal > p { margin-top: 24px; }

/* оплата (pay.js) */
.pay-box { max-width: 520px; margin: 0 auto; padding: 32px 28px; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); text-align: center; display: grid; gap: 14px; justify-items: center; }
.pay-plan { font-size: 18px; font-weight: 700; }
.pay-msg { color: var(--muted); min-height: 1.4em; }
.pay-done .pay-msg { color: var(--text); font-weight: 600; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 30px; }
.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: 700 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: 48px; 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: var(--bg); }
.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); }

/* ---------- появление: только плавно и только если браузер умеет (иначе всё видно сразу) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .sec .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sec .reveal { animation: none !important; }
  .ls-wave i, .rec { animation: none; }
}

/* ---------- адаптивность ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .ls-screen { max-width: 720px; width: 100%; margin: 0 auto; }
  .how { grid-template-columns: 1fr; gap: 36px; }
  .sheet-match { right: 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .bento, .reqs { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@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); }
  .privs, .plans, .dls { grid-template-columns: 1fr; }
  .plans { max-width: 480px; margin: 0 auto; }
  .plan-desc { min-height: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .dash, .mini-plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 64px; }
  .sec { padding: 72px 0; }
  .sec-top0 { padding-top: 0; }
  .sec-tight { padding: 16px 0 72px; }
  .nav-right .btn span { display: none; }
  .nav-right .btn { width: 38px; padding: 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-dl, .btn-dl-2 { width: 100%; }
  .modes { display: grid; grid-template-columns: 1fr; }
  .ls-screen { aspect-ratio: auto; height: 420px; }
  .ls-slide { padding: 22px 20px; }
  .ls-slide h3, .ls-slide p { max-width: 100%; }
  .ls-pop { left: 12px; right: 12px; width: auto; top: auto; bottom: 86px; }
  .sheet { padding: 14px; }
  .srow { grid-template-columns: 1fr; }
  .srow div:first-child { border-right: 0; border-bottom: 1px dashed #E2DACB; }
  .sheet-match { position: static; transform: none; width: auto; margin-top: 12px; }
  .tiles, .bento, .reqs { grid-template-columns: 1fr; }
  .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: 20px 14px; }
  .stat b { font-size: 26px; }
  .final-card { padding: 44px 20px; }
  .final-keys { flex-wrap: wrap; }
}
