/* ============================================================
   Чекни — дизайн-система. Тёмная и светлая темы через data-theme.
   ============================================================ */

/* Fintech Trust — банковский сине-белый. Светлая тема по умолчанию для доверия,
   тёмная — навигационно-синяя. Акцент (--gold*) переиспользуется всей вёрсткой,
   имя историческое, значение — фирменный синий. */
:root, [data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --line: #e4ebf3;
  --line-soft: #eef3f9;
  --ink: #0e1726;
  --muted: #5b6b82;
  --gold: #1d5eff;
  --gold-2: #1546c7;
  --gold-ink: #ffffff;
  --accent: #1d5eff;
  --green: #12b76a;
  --red: #e5484d;
  --glow-1: rgba(29,94,255,0.10);
  --glow-2: rgba(91,139,255,0.08);
  --shadow: 0 30px 60px -38px rgba(29,94,255,0.35);
  --shadow-sm: 0 12px 30px -18px rgba(14,23,38,0.18);
  --card-hover: #f8fbff;
}

[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-soft: #0e1524;
  --surface: #111a2b;
  --surface-2: #16223a;
  --line: #223148;
  --line-soft: #1a2740;
  --ink: #eaf1fb;
  --muted: #8ea3bf;
  --gold: #4d82ff;
  --gold-2: #2f66ff;
  --gold-ink: #ffffff;
  --accent: #4d82ff;
  --green: #35d29a;
  --red: #ff6b6f;
  --glow-1: rgba(77,130,255,0.16);
  --glow-2: rgba(47,102,255,0.10);
  --shadow: 0 30px 70px -34px rgba(0,0,0,0.7);
  --shadow-sm: 0 12px 30px -18px rgba(0,0,0,0.55);
  --card-hover: #16223a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 82% -12%, var(--glow-1), transparent 60%),
    radial-gradient(920px 520px at -5% 2%, var(--glow-2), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

/* Заголовки — Manrope (геометричный гротеск), текст — Inter. Разные, но оба «дорого-чистые». */
h1, h2, h3 { font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.025em; }
.hero2 h1 .accent { font-weight: 800; }
.section-label { font-family: 'Inter', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

/* ---------- icons ---------- */
.ic-svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: none; }
.feature .ic .ic-svg { width: 22px; height: 22px; }
.secband .ic2 .ic-svg { width: 20px; height: 20px; }
.mock-side .ic-svg { width: 15px; height: 15px; margin-right: 2px; }
.side-link .si .ic-svg { width: 18px; height: 18px; }
.btn .ic-svg { width: 16px; height: 16px; }

/* ---------- nav (full-width bar) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; width: 100%;
  height: 66px; display: flex; align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; height: 100%;
}
nav.nav, header.nav { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); }
.nav::after { content: none; }
@media (max-width: 760px) { .nav-inner { padding: 0 16px; } }
.brand { font-size: 18px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold), var(--gold-2)); color: #fff; box-shadow: 0 6px 14px -6px var(--gold); }
.brand .mark .ic-svg { width: 16px; height: 16px; }
/* SVG-логотип: круг+₽+стрелки берут акцент темы, надпись — текстом (адаптивна). */
.brand .logo-badge { display: inline-flex; }
.brand .logo-badge svg { width: 34px; height: 34px; display: block; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14.5px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 600; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.burger { display: none; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  width: 38px; height: 34px; border-radius: 10px; font-size: 18px; cursor: pointer; }
@media (max-width: 640px) {
  .burger { display: inline-grid; place-items: center; }
  .nav-links { position: absolute; top: 66px; right: 12px; left: 12px; flex-direction: column;
    align-items: stretch; gap: 6px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; text-align: center; }
  .nav-links .theme-toggle { width: 100%; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer;
  display: inline-grid; place-items: center; transition: .15s; padding: 0;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--gold); color: var(--gold); }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: inline-block; }
[data-theme="light"] .theme-toggle .i-sun { display: inline-block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* ---------- bell (уведомления) ---------- */
.bell {
  position: relative; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: inline-grid; place-items: center; transition: .15s;
}
.bell:hover { border-color: var(--gold); color: var(--gold); }
.bell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
  font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--gold-ink);
  box-shadow: 0 10px 24px -12px var(--gold); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-danger { color: var(--red) !important; border-color: color-mix(in srgb, var(--red) 32%, transparent); background: transparent; }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 24px 32px 80px; }
.section { padding: 60px 0; }
.center { text-align: center; }

/* ---------- правовые статьи (оферта / политика / безопасность) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal-head { margin: 8px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: 32px; margin: 0 0 10px; line-height: 1.2; }
.legal-head .updated { color: var(--muted); font-size: 14px; }
.legal-lead { font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.legal article { line-height: 1.72; font-size: 16px; }
.legal h2 { font-size: 21px; margin: 34px 0 12px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p { margin: 0 0 14px; color: var(--ink); }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal .note { background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.legal .note b { color: var(--accent); }
.legal .muted { color: var(--muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.legal-nav a { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); text-decoration: none; }
.legal-nav a:hover { border-color: var(--accent); color: var(--accent); }
.legal-nav a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-requisites { flex-basis: 100%; padding-top: 12px; font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }
.grid { display: grid; gap: 20px; }
/* верхнее выравнивание, чтобы короткая карточка не растягивалась под высокую */
.cols-2, .cols-3, .cols-4 { align-items: start; }
.cols-2 { grid-template-columns: 1fr 1fr; }

/* двухколоночная «форма + таблица»: адаптивная, карточки по своей высоте */
.split-form { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .split-form { grid-template-columns: 1fr; } }

/* безопасный горизонтальный скролл для широких таблиц */
.tscroll { overflow-x: auto; margin: 0 -2px; scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--gold) 45%, var(--line)) transparent; }
.tscroll table { min-width: 460px; }
.tscroll::-webkit-scrollbar { height: 8px; }
.tscroll::-webkit-scrollbar-track { background: transparent; }
.tscroll::-webkit-scrollbar-thumb { border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.tscroll::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--gold) 65%, var(--line)); }
/* список контрагентов узкий — горизонтальный скролл не нужен */
.svc-rail .tscroll table { min-width: 0; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } main { padding: 20px 16px 60px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-sm); transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; }
.card-soft { background: var(--bg-soft); box-shadow: none; }
.feature.card:hover, .plan.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }

/* ---------- hero ---------- */
/* hero-картинка из макета с кликабельными зонами */
.hero-img-wrap { padding: 40px 0 20px; }
.hero-img { position: relative; max-width: 1180px; margin: 0 auto; line-height: 0; }
.hero-img img { width: 100%; height: auto; display: block; }
.hero-hit { position: absolute; display: block; border-radius: 10px; cursor: pointer; z-index: 2; }
.hero-hit:hover { background: rgba(255,255,255,.10); }

.hero { padding: 70px 0 46px; text-align: center; }

/* ---------- hero2 (двухколоночный SaaS) ---------- */
.hero2 { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero2-glow { position: absolute; top: -160px; left: -140px; pointer-events: none; z-index: 0;
  width: 900px; height: 640px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 26%, transparent), transparent 72%); filter: blur(18px); }
.hero2-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.04fr;
  gap: 52px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.hero2-copy { max-width: 560px; }
.hero2 h1 { font-size: 58px; line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 22px; }
.hero2 h1 .accent { background: linear-gradient(110deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; }
.hero2 .hero-cta { justify-content: flex-start; }
.hero2 .microtrust { justify-content: flex-start; margin-top: 22px; }
.hero2-shot { position: relative; z-index: 1; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 50px 110px -46px color-mix(in srgb, var(--gold) 52%, rgba(14,23,38,.55)); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.shot-bar .addr { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 14px; }
.shot img { width: 100%; display: block; }
@media (max-width: 900px) {
  .hero2-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero2-copy { max-width: none; }
  .hero2 .hero-cta, .hero2 .microtrust { justify-content: center; }
  .hero2 .eyebrow { margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) { .hero2 h1 { font-size: 38px; } .hero2 .lead { font-size: 16px; } }

/* двухколоночный hero (текст слева, продукт справа) */
.hero-split { display: grid; grid-template-columns: 1fr 1.06fr; gap: 48px; align-items: center; text-align: left; padding: 64px 0 40px; }
.hero-split .hero-copy h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.01em; margin: 18px 0; }
.hero-split .lead { margin: 0 0 26px; font-size: 18px; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-split .microtrust { justify-content: flex-start; margin-top: 18px; }
.hero-mock { margin: 0 !important; max-width: none !important; }
@media (min-width: 901px) {
  .hero-mock { transform: translate(28px, -22px); }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 30px; padding-top: 40px; }
  .hero-split .hero-cta, .hero-split .microtrust { justify-content: center; }
  .hero-split .hero-copy h1 { font-size: 38px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); padding: 7px 15px; border-radius: 999px; margin-bottom: 24px; }
.hero h1 { font-size: 60px; line-height: 1.03; margin: 0 0 20px; }
.hero h1 .accent { background: linear-gradient(120deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 660px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .hero h1 { font-size: 40px; } }

.trust { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 44px; color: var(--muted); font-size: 14px; }
.trust b { color: var(--ink); font-size: 26px; font-weight: 800; display: block; margin-bottom: 2px; }

/* security band — сигналы доверия (fintech) */
.secband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow); }
.secband .item { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; text-align: left; }
.secband .ic2 { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
  font-size: 19px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
@media (max-width: 860px) { .secband { grid-template-columns: 1fr 1fr; } }

.microtrust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.microtrust span { display: inline-flex; align-items: center; gap: 6px; }
.microtrust b { color: var(--green); }

/* ---------- section label (eyebrow для секций) ---------- */
.section-label { display: block; text-align: center; text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.section-title { text-align: center; font-size: 40px; margin: 0 0 12px; }
.section-lead { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 44px; font-size: 17px; }
@media (max-width: 640px) { .section-title { font-size: 30px; } }

/* ---------- product mockup (browser frame) ---------- */
.mock { max-width: 940px; margin: 54px auto 0; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mock-bar .addr { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 12px; }
.mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
.mock-side { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--bg-soft); }
.mock-side a { padding: 10px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.mock-side a.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.mock-main { padding: 20px; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-st { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mock-st .l { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mock-st .v { font-size: 21px; font-weight: 800; margin-top: 4px; }
.mock-st .v.g { color: var(--green); }
.mock-chart { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.mock-bars { display: flex; gap: 9px; align-items: flex-end; height: 108px; margin-top: 10px; }
.mock-bars b { flex: 1; background: linear-gradient(180deg, var(--gold), var(--gold-2)); border-radius: 5px 5px 0 0; animation: grow 1.1s both; }
@keyframes grow { from { height: 0; } }
@media (max-width: 720px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- integrations strip ---------- */
.logos-strip { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.logos-strip .lg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 700; font-size: 14px; }
.logos-strip .lg span { color: var(--accent); }

/* ---------- split feature (текст + визуал) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h3 { font-size: 30px; margin: 8px 0 14px; }
.split p { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.split ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.split li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.split li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.split-visual { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.split-shot { padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.split-shot img { width: 100%; display: block; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- калькулятор ---------- */
.calc { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 0.92fr; gap: 22px; align-items: stretch; }
.calc-in { padding: 30px 28px; }
.calc-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.calc-amount { margin: 10px 0 20px; display: flex; align-items: baseline; gap: 8px; }
.calc-amount #calcVal { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.calc-amount .cur { font-size: 26px; font-weight: 800; color: var(--muted); }
/* кастомный ползунок с круглым бегунком */
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) var(--fill,20%), color-mix(in srgb, var(--gold) 16%, var(--line)) var(--fill,20%), color-mix(in srgb, var(--gold) 16%, var(--line)) 100%); }
.calc-range:focus { outline: none; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold); box-shadow: 0 3px 10px color-mix(in srgb, var(--gold) 40%, transparent);
  cursor: grab; transition: transform .12s; margin-top: 0; }
.calc-range::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.calc-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--gold);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--gold) 40%, transparent); cursor: grab; }
.calc-range::-moz-range-track { height: 8px; border-radius: 999px; background: transparent; }
/* сегментированный переключатель ставки */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px; padding: 4px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--muted); transition: all .15s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg label:has(input:checked) span { color: var(--gold); }
/* панель результата */
.calc-out { display: flex; flex-direction: column; gap: 14px; }
.calc-hero { border-radius: 18px; padding: 26px 26px 24px; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-2, var(--gold)));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--gold) 32%, transparent); }
.calc-hero-label { display: block; font-size: 13px; font-weight: 600; opacity: .9; }
.calc-hero b { display: block; font-size: 42px; font-weight: 800; line-height: 1.1; margin: 6px 0 4px; letter-spacing: -.02em; }
.calc-hero-sub { font-size: 13.5px; opacity: .92; }
.calc-hero-sub i { font-style: normal; font-weight: 700; }
.calc-rows { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px; }
.calc-rows .co { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.calc-rows .co:last-child { border-bottom: none; }
.calc-rows .co span { color: var(--muted); font-size: 14.5px; }
.calc-rows .co b { font-size: 20px; font-weight: 800; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preset { padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); transition: all .15s; }
.preset:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); color: var(--ink); }
.calc-out-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } }

/* ---------- trust ---------- */
.trust-grid { margin-top: 40px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover, 0 18px 40px rgba(0,0,0,.16));
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.trust-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); }
.trust-ic .ic-svg { width: 26px; height: 26px; }
.trust-card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700; }
.trust-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- до / после ---------- */
.ba { max-width: 940px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.ba-col { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; }
.ba-after { border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 20px 50px color-mix(in srgb, var(--gold) 14%, transparent); position: relative; z-index: 1; }
.ba-head { margin-bottom: 18px; }
.ba-tag { display: inline-block; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.ba-tag-x { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.ba-tag-ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.ba-mood { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.ba-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ba-col li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.ba-col li .ic-svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ba-before li .ic-svg { color: var(--red); }
.ba-after li { color: var(--ink); }
.ba-after li .ic-svg { color: var(--green); }
.ba-vs { z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0;
  font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--gold), var(--gold-2, var(--gold)));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 40%, transparent); border: 3px solid var(--bg); }
@media (max-width: 720px) {
  .ba { grid-template-columns: 1fr; gap: 16px; }
  .ba-vs { margin: 0 auto; }
}

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); text-align: center; }
.stat-band .n { font-size: 42px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.stat-band .c { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 820px) { .stat-band { grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; } }

/* ---------- testimonial ---------- */
.testi { max-width: 760px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 44px; box-shadow: var(--shadow-sm); }
.testi p { font-size: 24px; line-height: 1.45; font-weight: 600; margin: 0 0 18px; letter-spacing: -.01em; }
.testi .who { display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.testi .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 3px; }

/* ---------- reviews slider ---------- */
.reviews { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.rev-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 4px 10px; scrollbar-width: none; }
.rev-track::-webkit-scrollbar { display: none; }
.rev-slide { flex: 0 0 340px; scroll-snap-align: center; margin: 0;
  min-height: 270px; display: flex; flex-direction: column; text-align: left; padding: 28px 28px 26px; }
.rev-slide.testi { max-width: none; }
.rev-slide .stars { margin-bottom: 14px; font-size: 15px; }
.rev-slide p { font-size: 15.5px; line-height: 1.6; font-weight: 500; color: var(--ink); flex: 1; margin: 0 0 22px; }
.rev-slide .who { display: flex; align-items: center; gap: 12px; justify-content: flex-start; margin-top: auto; }
.rev-slide .av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; }
.who-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who-meta b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.who-meta i { font-size: 13px; font-style: normal; color: var(--muted); }
.av-0 { background: linear-gradient(135deg, #f0a35e, #e07b39); }
.av-1 { background: linear-gradient(135deg, #6aa9ff, #3f6fe0); }
.av-2 { background: linear-gradient(135deg, #6ed0a0, #34a97a); }
.av-3 { background: linear-gradient(135deg, #c99bff, #9560e0); }
.av-4 { background: linear-gradient(135deg, #ff8fa3, #e05674); }
.av-5 { background: linear-gradient(135deg, #7fd0d8, #3fa9b5); }
.rev-arrow { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s; }
.rev-arrow:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); transform: translateY(-1px); }
.rev-arrow .ic-svg { width: 22px; height: 22px; }
.rev-prev .ic-svg { transform: rotate(180deg); }
.rev-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.rev-dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: color-mix(in srgb, var(--gold) 25%, var(--line)); transition: width .2s, background .2s; }
.rev-dot.on { width: 22px; border-radius: 5px; background: var(--gold); }
@media (max-width: 640px) {
  .rev-arrow { display: none; }
  .rev-slide { flex-basis: 84%; min-height: 240px; }
}

/* ---------- final CTA ---------- */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff;
  border-radius: 24px; padding: 56px 40px; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: 38px; margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 26px; font-size: 17px; }
.cta-band .btn { border: 0; transition: transform .15s, box-shadow .15s; }
.cta-band .cta-primary { background: #fff; color: var(--gold-2); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta-band .cta-demo { background: rgba(255,255,255,.16); color: #fff; border: 2px solid #fff; }
.cta-band .cta-demo:hover { background: rgba(255,255,255,.16); color: #fff; }
.cta-band .cta-primary:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .cta-band h2 { font-size: 28px; } }

/* ---------- feature bento ---------- */
/* карточки-фичи одинаковой высоты и выровнены */
#features .grid.cols-3 { align-items: stretch; }
.feature.card { height: 100%; display: flex; flex-direction: column; }
.feature h3 { margin: 12px 0 8px; font-size: 20px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); font-size: 21px; }

/* ---------- how ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
/* соединительная линия за номерами (десктоп) */
.steps::before { content: ""; position: absolute; top: 54px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 45%, transparent), color-mix(in srgb, var(--gold) 12%, transparent));
  z-index: 0; }
.step-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 22px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover, 0 18px 40px rgba(0,0,0,.16));
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: var(--accent-ink, #fff);
  background: linear-gradient(135deg, var(--gold), var(--gold-2, var(--gold)));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--gold) 35%, transparent); }
.step-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); }
.step-ic .ic-svg { width: 22px; height: 22px; }
.step-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.step-card p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.bill-toggle { display: flex; width: fit-content; gap: 4px; padding: 5px; margin: 26px auto 0; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); }
.bill-toggle button { border: none; cursor: pointer; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--muted); background: transparent; transition: all .15s; display: inline-flex; align-items: center; gap: 8px; }
.bill-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.bill-toggle .save { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }

.plans { max-width: 820px; margin: 34px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 32px 30px; transition: transform .18s ease, box-shadow .18s ease; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover, 0 18px 40px rgba(0,0,0,.16)); }
.plan-pro { border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent), 0 30px 70px -30px color-mix(in srgb, var(--gold) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, var(--surface)), var(--surface) 42%); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 12.5px; font-weight: 800; color: #fff; padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2, var(--gold)));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--gold) 40%, transparent); }
.plan-name { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.plan-desc { margin: 8px 0 0; font-size: 14px; color: var(--muted); min-height: 40px; }
.plan-price { margin: 18px 0 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan-price b { font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan-price .per { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan-price .p-note { flex-basis: 100%; font-size: 13px; color: var(--muted); margin-top: 6px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 13px; flex: 1; }
.plan-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.plan-feats li .ic-svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 50%; padding: 3px; }
.plan-btn { width: 100%; margin-top: auto; }
.plan-guarantee { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 13px; }
.plan-guarantee .ic-svg { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---------- app shell (sidebar) ---------- */
.app-shell { display: grid; grid-template-columns: 236px 1fr; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm); }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px;
  color: var(--muted); font-size: 15px; font-weight: 500; transition: .15s; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: color-mix(in srgb, var(--gold) 13%, transparent); color: var(--gold); }
.side-link .si { width: 18px; text-align: center; opacity: .95; }
.side-foot { padding: 14px 13px 6px; font-size: 12px; border-top: 1px solid var(--line-soft); margin-top: 8px; }
.app-main { min-width: 0; }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; overflow-x: auto; }
  .side-foot { display: none; }
}

.actuality { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -6px 0 22px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: var(--bg-soft); flex-wrap: wrap; font-size: 14px; }
.actuality b { color: var(--ink); }

.year-switch { display: flex; gap: 8px; }
.year-switch .pill { cursor: pointer; }

/* ---------- dashboard ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; margin: 0; }
.pill { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.pill.pro { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 42%, transparent);
  background: color-mix(in srgb, var(--gold) 10%, transparent); }

.stat { position: relative; overflow: hidden; }
.stat .chip { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.stat .chip .ic-svg { width: 20px; height: 20px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.stat .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat.primary { background: linear-gradient(150deg, var(--gold), var(--gold-2)); border-color: transparent; color: #fff; }
.stat.primary .label, .stat.primary .sub { color: rgba(255,255,255,.82); }
.stat.primary .chip { background: rgba(255,255,255,.18); color: #fff; }
.stat .chip.green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }

/* section header with svg art (для разделов кабинета) */
.page-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; margin-bottom: 22px; overflow: hidden; }
.page-hero h1 { font-size: 26px; margin: 0 0 4px; }
.page-hero p { color: var(--muted); margin: 0; font-size: 14.5px; }
.page-hero .art { flex: none; color: var(--accent); opacity: .9; }
.page-hero .art .ic-svg { width: 64px; height: 64px; }
@media (max-width: 640px) { .page-hero .art { display: none; } }

/* ---------- онбординг ---------- */
.onboard { margin-bottom: 22px; }
.onboard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ob-step { display: flex; gap: 12px; align-items: flex-start; }
.ob-step .ob-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 800; }
.ob-step b { display: block; margin-bottom: 2px; }
.ob-step p { font-size: 13px; margin: 0 0 8px; }
@media (max-width: 700px) { .onboard-steps { grid-template-columns: 1fr; } }

/* ---------- напоминание о дедлайне ---------- */
.deadline { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px;
  border-radius: 12px; font-size: 14px;
  background: color-mix(in srgb, var(--red) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line)); }
.deadline .ic-svg { color: var(--red); flex: none; }

/* ---------- фильтры ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select { width: auto; padding: 8px 12px; font-size: 13.5px; }

/* ---------- бейдж в сайдбаре ---------- */
.side-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.side-link { position: relative; }

/* ---------- демо-режим ---------- */
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 14px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }

/* ---------- чат поддержки ---------- */
.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 58px; height: 58px;
  border-radius: 50%; background: linear-gradient(160deg, var(--gold), var(--gold-2)); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 16px 34px -12px var(--gold);
  transition: transform .18s; }
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-fab.hide { transform: scale(0); opacity: 0; pointer-events: none; }
.chat-win { position: fixed; right: 24px; bottom: 24px; z-index: 91; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 48px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  animation: chatpop .2s ease-out; }
.chat-win[hidden] { display: none; }
@keyframes chatpop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(160deg, var(--gold), var(--gold-2)); color: #fff; }
.chat-head b { font-size: 15px; }
.chat-sub { font-size: 12px; opacity: .85; margin-top: 1px; }
.chat-x { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.msg { max-width: 80%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.msg.ai, .msg.admin { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(160deg, var(--gold), var(--gold-2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.admin { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.msg .who { display: block; font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.msg.typing { color: var(--muted); letter-spacing: 2px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { flex: 1; }
.chat-input .btn { padding: 0 14px; }
@media (max-width: 480px) { .chat-win { right: 8px; bottom: 8px; } .chat-fab { right: 16px; bottom: 16px; } }

/* dropzone (AI-ассистент) */
.ai-stack { display: grid; gap: 20px; }
.ai-stack > .card { width: 100%; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; text-align: center; padding: 44px 20px; border: 2px dashed var(--line); border-radius: 14px;
  background: var(--bg-soft); color: var(--muted); font-size: 14px; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-soft)); color: var(--ink); }

/* empty state */
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ic-svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 10px; }
.empty p { margin: 0; font-size: 14px; }

/* section heading with icon (внутри карточек) */
.card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.card-h .ic-svg { width: 18px; height: 18px; color: var(--accent); }
.card-h h3 { margin: 0; font-size: 18px; }

.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td, table tr:last-child td { border-bottom: none; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.tag.canceled { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.tag.done { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }

/* ---------- forms ---------- */
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], select {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.field { margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.check input { width: auto; accent-color: var(--gold); }
.form-row { display: flex; gap: 14px; }
.form-row > * { flex: 1; }

.modes { display: grid; gap: 12px; }
.mode-card { border: 1.5px solid var(--line); border-radius: 13px; padding: 15px 16px; cursor: pointer;
  display: flex; gap: 13px; align-items: flex-start; transition: .15s; background: var(--bg-soft); }
.mode-card:hover { border-color: var(--gold); background: var(--surface-2); transform: translateY(-1px); }
.mode-card:has(input:checked) { border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
/* кастомный radio-кружок */
.mode-card input[type=radio] { -webkit-appearance: none; appearance: none; margin: 2px 0 0; padding: 0; flex: 0 0 auto;
  box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface);
  display: grid; place-content: center; cursor: pointer; transition: border-color .15s; }
.mode-card:hover input[type=radio] { border-color: var(--gold); }
.mode-card input[type=radio]:checked { border-color: var(--gold); border-width: 2px; }
.mode-card input[type=radio]:checked::after { content: ""; display: block;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.mode-card b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }
.mode-card:has(input:checked) b { color: var(--gold); }
.mode-card .muted { font-size: 13px; line-height: 1.45; }

.code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; word-break: break-all; color: var(--gold); }

/* ---------- monthly bars ---------- */
.months { display: flex; flex-direction: column; gap: 2px; }
.month-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px; transition: .15s; }
.month-row:hover { background: var(--surface-2); }
.month-row.active { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.month-row .mname { color: var(--muted); font-size: 14px; }
.month-row.active .mname { color: var(--ink); }
.month-row .mbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.month-row .mbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.month-row .mval { font-size: 14px; white-space: nowrap; }

/* ---------- calendar ---------- */
.cal { margin-top: 6px; }
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { margin-bottom: 6px; }
.cal-head span { text-align: center; font-size: 12px; color: var(--muted); }
.cal-week { margin-bottom: 6px; }
.cal-cell { aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid var(--line-soft); padding: 6px;
  display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; min-height: 46px; }
.cal-cell.empty { border-color: transparent; }
.cal-cell .cd { color: var(--muted); }
.cal-cell.has { border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 11%, transparent); }
.cal-cell.has .cd { color: var(--ink); }
.cal-cell.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-cell.today .cd { color: var(--accent); font-weight: 800; }
.cal-cell .ci { color: var(--gold); font-weight: 700; font-size: 10.5px; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; align-self: flex-start; }
.cal-summary { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.cal-summary b { color: var(--ink); }

/* ---------- flashes ---------- */
.flashes { max-width: 1180px; margin: 8px auto 0; padding: 0 32px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.flash-ok { border-color: color-mix(in srgb, var(--green) 42%, transparent); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.flash-error { border-color: color-mix(in srgb, var(--red) 42%, transparent); background: color-mix(in srgb, var(--red) 9%, var(--surface)); }

/* ---------- auth ---------- */
.auth { max-width: 430px; margin: 56px auto; }
.auth h1 { font-size: 32px; margin: 0 0 6px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 48px 32px 40px;
  max-width: 1180px; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-tagline { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-col h4 { margin: 4px 0 14px; font-size: 15px; color: var(--ink); font-weight: 700; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 11px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.footer-legal { display: flex; flex-direction: column; gap: 5px; }
.footer-legal span:first-child { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

.faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--gold); font-weight: 700; margin-right: 12px; }
.faq details[open] summary::before { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; padding-left: 24px; }

/* ===== Тема-зависимые скриншоты (светлый/тёмный вариант картинки) ===== */
img.themed-dark { display: none; }
[data-theme="dark"] img.themed-light { display: none; }
[data-theme="dark"] img.themed-dark { display: block; }

/* ============================================================
   UI-полировка 2026: селекты, icon-кнопки, чекбоксы, равные карточки
   ============================================================ */

/* --- Селекты: убираем «нативный» вид 2000-х, свой шеврон --- */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
}
select::-ms-expand { display: none; }
select:hover { border-color: var(--muted); }
.filters select {
  border-radius: 10px; font-weight: 600; background-color: var(--surface);
  padding: 8px 34px 8px 13px !important; background-position: right 10px center;
}
.filters select:hover { border-color: var(--gold); }
/* Пункты выпадающего списка (поддерживают браузеры на Chromium 121+) */
option { background: var(--surface); color: var(--ink); }

/* --- Icon-кнопка (квадратная, только значок) --- */
.btn-icon {
  padding: 0; width: 34px; height: 34px; border-radius: 9px;
  display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn-icon .ic-svg { width: 16px; height: 16px; }
.btn-icon:hover { transform: translateY(-1px); }
.btn-danger.btn-icon {
  color: var(--red); border-color: color-mix(in srgb, var(--red) 26%, transparent);
  background: color-mix(in srgb, var(--red) 7%, transparent);
}
.btn-danger.btn-icon:hover { background: color-mix(in srgb, var(--red) 15%, transparent); border-color: var(--red); }

/* --- Равные по высоте стат-карточки --- */
.grid.cols-4:has(.stat), .grid.cols-3:has(.stat), .grid.cols-2:has(.stat) { align-items: stretch; }
.card.stat { display: flex; flex-direction: column; }
.card.stat .bar { margin-top: auto; }           /* прогресс-бар прижат к низу */
.card.stat .sub  { margin-top: auto; }           /* подпись — к низу, если бара нет */
.card.stat .bar + .sub { margin-top: 8px; }      /* но если есть и бар, и подпись — обычный отступ */

/* --- Кастомные чекбоксы (галочки) вместо системных --- */
.check { cursor: pointer; user-select: none; font-weight: 600; }
.check input[type=checkbox] {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px;
  border: 1.6px solid var(--line); background: var(--bg-soft);
  display: inline-grid; place-items: center; transition: .15s; cursor: pointer;
}
.check input[type=checkbox]:hover { border-color: var(--gold); }
.check input[type=checkbox]:checked {
  background: linear-gradient(180deg, var(--gold), var(--gold-2)); border-color: transparent;
}
.check input[type=checkbox]:checked::after {
  content: ""; width: 11px; height: 11px;
  background: var(--gold-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }

/* ============================================================
   Переключатель режимов «Личное / Бизнес» + анимация перехода
   ============================================================ */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px; }
.mode-opt { text-align: center; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12.5px;
  color: var(--muted); cursor: pointer; transition: color .15s, background .2s, box-shadow .2s; text-decoration: none; }
.mode-opt:hover { color: var(--ink); }
.mode-opt.active { color: var(--gold-ink); background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 4px 12px -6px var(--gold); }

.nav-cap { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 4px 13px 8px; }
.side-cta { margin-top: 8px; border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--gold); }
.side-cta:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }

/* Windows-подобный переход: уменьшение/«парение» + сдвиг в сторону */
@keyframes pageInRight { from { opacity: 0; transform: translateX(-46px) scale(.965); }
  to { opacity: 1; transform: none; } }
@keyframes pageInLeft  { from { opacity: 0; transform: translateX(46px) scale(.965); }
  to { opacity: 1; transform: none; } }
.pagein-right { animation: pageInRight .34s cubic-bezier(.22,.61,.36,1); }
.pagein-left  { animation: pageInLeft  .34s cubic-bezier(.22,.61,.36,1); }
.pageout-right, .pageout-left { transition: transform .24s cubic-bezier(.4,0,1,1), opacity .24s ease; }
.pageout-right { opacity: 0; transform: translateX(60px) scale(.94); }
.pageout-left  { opacity: 0; transform: translateX(-60px) scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .pagein-right, .pagein-left, .pageout-right, .pageout-left { animation: none; transition: none; transform: none; opacity: 1; }
}
