:root {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #cbd5e1;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --accent: #22d3ee;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --header-bg: rgba(255, 255, 255, 0.9);
  --container: 1180px;
}

[data-theme="dark"] {
  --surface: #111a2e;
  --surface-alt: #0d1526;
  --surface-2: #16213a;
  --border: #243049;
  --text: #e8eefc;
  --text-muted: #93a3bf;
  --text-light: #cbd5e1;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(11, 17, 32, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }

.accent {
  background: linear-gradient(120deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(79, 70, 229, .45); }
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  background: rgba(34, 211, 238, .18);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, .35);
}
.badge--soft {
  background: rgba(79, 70, 229, .1);
  color: var(--primary);
  border-color: rgba(79, 70, 229, .18);
}
[data-theme="dark"] .badge--soft {
  background: rgba(99, 102, 241, .16);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, .3);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(15,23,42,.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  transition: color .3s ease;
  flex-shrink: 0;
}
.header.is-scrolled .logo { color: var(--text); }
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
}
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color .2s ease;
  white-space: nowrap;
}
.header.is-scrolled .nav__link { color: var(--text-muted); }
.nav__link:hover,
.nav__link.is-active { color: #fff; }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link.is-active { color: var(--primary); }
.nav__cta { margin-left: 6px; }

.header__tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  transition: .25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.2); }
.header.is-scrolled .theme-toggle { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.burger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}
.burger span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s ease;
}
.header.is-scrolled .burger span { background: var(--text); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  color: #fff;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(79,70,229,.55), transparent 60%),
    radial-gradient(700px 500px at 88% 22%, rgba(34,211,238,.32), transparent 60%),
    radial-gradient(700px 600px at 60% 100%, rgba(99,102,241,.28), transparent 65%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 85%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 22px 0 20px;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero__stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(120deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { font-size: 13px; color: var(--text-light); }

.hero__card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 22px 22px 24px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.hero__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.hero__card-title { margin-left: 8px; font-size: 13px; color: var(--text-light); font-weight: 500; }

.checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--text-light);
  transition: color .3s ease;
  cursor: pointer;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  transition: .3s ease;
}
.checklist li.is-done { color: #fff; }
.checklist li.is-done::before {
  background: var(--green);
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__card-actions { display: flex; gap: 8px; }
.hero__card-actions .btn { flex: 1; }
.btn--icon { flex: 0 0 46px !important; padding: 0; }
.btn--icon svg { width: 18px; height: 18px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: 150px 0 72px;
  color: #fff;
  background: var(--bg);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 420px at 15% 0%, rgba(79,70,229,.5), transparent 62%),
    radial-gradient(700px 420px at 90% 30%, rgba(34,211,238,.26), transparent 62%);
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 20px 0 16px;
}
.page-hero p { font-size: 18px; color: var(--text-light); }
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-top: 64px; }
.section__head { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 18px 0 14px;
  line-height: 1.15;
}
.section__subtitle { font-size: 17px; color: var(--text-muted); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,.35);
}
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(34,211,238,.14));
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-muted); }

/* ---------- Pros / Cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.proscons__col {
  border-radius: var(--radius);
  padding: 34px 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.proscons__col--pro { border-top: 4px solid var(--green); }
.proscons__col--con { border-top: 4px solid var(--red); }
.proscons__title { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 22px; }
.proscons__title span {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.proscons__col--pro .proscons__title span { background: var(--green); }
.proscons__col--con .proscons__title span { background: var(--red); }
.proscons__list { display: flex; flex-direction: column; gap: 16px; }
.proscons__list li { font-size: 15px; color: var(--text-muted); padding-left: 26px; position: relative; }
.proscons__list li b { color: var(--text); }
.proscons__list li::before { position: absolute; left: 0; top: 1px; font-weight: 800; font-size: 15px; }
.proscons__col--pro .proscons__list li::before { content: "✓"; color: var(--green); }
.proscons__col--con .proscons__list li::before { content: "✕"; color: var(--red); }

.callout {
  margin-top: 34px;
  padding: 22px 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(79,70,229,.08), rgba(34,211,238,.08));
  border-left: 5px solid var(--primary);
  font-size: 16px;
  color: var(--text);
}
.callout--warn { border-left-color: var(--amber); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 12px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 40px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
  opacity: .25;
}
.timeline__item { position: relative; display: flex; gap: 34px; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
  flex: 0 0 58px;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(79,70,229,.35);
  z-index: 1;
}
.timeline__body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  flex: 1;
  transition: transform .25s ease, box-shadow .25s ease;
}
.timeline__body:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.timeline__body h3 { font-size: 18px; margin-bottom: 8px; }
.timeline__body p { font-size: 15px; color: var(--text-muted); }

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.tabs__btn {
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: .25s ease;
}
.tabs__btn:hover { border-color: var(--primary); color: var(--primary); }
.tabs__btn.is-active {
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(79,70,229,.3);
}
.tabs__panel { display: none; animation: fade .4s ease; }
.tabs__panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.reg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}
.reg__desc h3 { font-size: 22px; margin-bottom: 12px; }
.reg__desc > p { color: var(--text-muted); margin-bottom: 22px; }
.reg__facts { display: flex; flex-direction: column; gap: 12px; }
.reg__facts li { font-size: 14.5px; color: var(--text-muted); padding-left: 24px; position: relative; }
.reg__facts li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.reg__facts li b { color: var(--text); }
.reg__steps { counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.reg__steps li {
  position: relative;
  padding-left: 42px;
  font-size: 15px;
  color: var(--text-muted);
  counter-increment: step;
}
.reg__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(79,70,229,.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

.docs { margin-top: 34px; background: var(--bg); border-radius: var(--radius); padding: 34px; color: #fff; }
.docs h3 { font-size: 20px; margin-bottom: 22px; }
.docs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.docs__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 14.5px;
  color: var(--text-light);
}
.docs__item span { font-size: 20px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--surface); }
.table th, .table td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--bg); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-alt); }
.table td:first-child { font-weight: 600; color: var(--text); }
.table td { color: var(--text-muted); }
.table .yes { color: var(--green); font-weight: 700; }
.table .no { color: var(--red); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .25s ease; }
.faq__item.is-open { border-color: var(--primary); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}
.faq__icon {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(79,70,229,.12);
  color: var(--primary);
  font-size: 20px;
  font-weight: 500;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.calc__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 12.5px; color: var(--text-muted); font-weight: 400; margin-top: 6px; display: block; }
.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--inline { display: flex; align-items: center; gap: 10px; }
.field--inline input { width: 18px; height: 18px; accent-color: var(--primary); }

.calc__results { display: flex; flex-direction: column; gap: 16px; }
.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: .3s ease;
}
.result__left { min-width: 0; }
.result__name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.result__note { font-size: 13.5px; color: var(--text-muted); }
.result__value { font-size: 24px; font-weight: 900; white-space: nowrap; color: var(--text); }
.result.is-best {
  border-color: var(--green);
  background: linear-gradient(120deg, rgba(16,185,129,.1), rgba(34,211,238,.06));
}
.result.is-best .result__value { color: var(--green); }
.result__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: var(--green);
  color: #fff;
  vertical-align: middle;
}
.result.is-disabled { opacity: .45; }

/* ---------- Quiz ---------- */
.quiz {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.quiz__bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 30px; }
.quiz__bar span { display: block; height: 100%; width: 0; background: linear-gradient(120deg, var(--primary), var(--accent)); transition: width .4s ease; }
.quiz__step { display: none; animation: fade .35s ease; }
.quiz__step.is-active { display: block; }
.quiz__question { font-size: 22px; font-weight: 800; margin-bottom: 22px; line-height: 1.3; }
.quiz__options { display: flex; flex-direction: column; gap: 12px; }
.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  transition: .2s ease;
}
.quiz__option::before {
  content: "";
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: .2s ease;
}
.quiz__option:hover { border-color: var(--primary); transform: translateX(4px); }
.quiz__option:hover::before { border-color: var(--primary); }
.quiz__option.is-selected { border-color: var(--primary); background: rgba(79,70,229,.1); }
.quiz__option.is-selected::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--surface); }
.quiz__back { margin-top: 22px; }
.quiz__result { display: none; text-align: center; }
.quiz__result.is-active { display: block; animation: fade .4s ease; }
.quiz__result-icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, rgba(79,70,229,.15), rgba(34,211,238,.15));
}
.quiz__result h3 { font-size: 26px; margin-bottom: 12px; }
.quiz__result p { color: var(--text-muted); margin-bottom: 20px; }
.quiz__advice {
  text-align: left;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.quiz__advice li { font-size: 14.5px; color: var(--text-muted); padding-left: 22px; position: relative; margin-bottom: 8px; }
.quiz__advice li:last-child { margin-bottom: 0; }
.quiz__advice li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- Calendar ---------- */
.calendar { display: flex; flex-direction: column; gap: 12px; }
.calendar__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.calendar__row:hover { border-color: var(--primary); }
.calendar__date { font-weight: 800; color: var(--primary); font-size: 15px; }
.calendar__what { font-size: 14.5px; color: var(--text); }
.calendar__who {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ---------- OKVED ---------- */
.okved { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.okved__group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; box-shadow: var(--shadow); }
.okved__group h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.okved__group h3 span { font-size: 20px; }
.okved__list { display: flex; flex-direction: column; gap: 8px; }
.okved__list li { font-size: 14px; color: var(--text-muted); display: flex; gap: 10px; }
.okved__list code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Support cards ---------- */
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.support__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(79,70,229,.35); }
.support__type {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34,211,238,.15);
  color: #0891b2;
  margin-bottom: 14px;
}
[data-theme="dark"] .support__type { color: #67e8f9; }
.support__card h3 { font-size: 18px; margin-bottom: 10px; }
.support__card p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.support__meta { font-size: 13.5px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; }
.support__meta b { color: var(--text); }

/* ---------- Niches ---------- */
.niches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.niche {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.niche:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.niche__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.niche__emoji {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(34,211,238,.14));
}
.niche__head h3 { font-size: 19px; }
.niche__block { margin-bottom: 14px; }
.niche__block:last-child { margin-bottom: 0; }
.niche__block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.niche__block--pro h4 { color: var(--green); }
.niche__block--con h4 { color: var(--red); }
.niche__block--money h4 { color: var(--primary); }
.niche__block p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Contact form ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact__info h3 { font-size: 24px; margin-bottom: 14px; }
.contact__info p { color: var(--text-muted); margin-bottom: 26px; }
.contact__list { display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--text-muted); }
.contact__list .ci { font-size: 20px; }
.contact__list b { color: var(--text); display: block; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.is-active { display: block; animation: fade .4s ease; }
.form-success__icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(16,185,129,.15);
  color: var(--green);
  font-size: 32px;
}
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--primary), #7c3aed 60%, var(--accent)); color: #fff; padding: 80px 0; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 18px; opacity: .92; max-width: 620px; margin: 0 auto 32px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn--primary { background: #fff; color: var(--primary); box-shadow: 0 12px 30px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--text-light); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { margin-top: 16px; font-size: 14.5px; color: #94a3b8; max-width: 320px; }
.footer__nav h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__nav a { display: block; font-size: 14.5px; color: #94a3b8; margin-bottom: 10px; transition: color .2s ease; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #64748b; }

/* ---------- To top & progress ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(79,70,229,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: .3s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 110;
  transition: width .1s linear;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Print ---------- */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  .print-only, .print-only * { visibility: visible; }
  .print-only {
    display: block;
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    padding: 24px;
    color: #000;
  }
  .print-only h2 { font-size: 22px; margin-bottom: 8px; }
  .print-only p.sub { color: #555; margin-bottom: 20px; }
  .print-only ol { list-style: decimal; padding-left: 22px; }
  .print-only ol li { margin-bottom: 10px; font-size: 15px; color: #000; }
  .print-only li.done { text-decoration: line-through; color: #888; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav__link { font-size: 14px; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .reg { grid-template-columns: 1fr; padding: 30px; }
  .docs__grid { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__form { position: static; }
  .support { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11,17,32,.98);
    backdrop-filter: blur(14px);
    padding: 18px 24px 26px;
    transform: translateY(-130%);
    transition: transform .35s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__link, .header.is-scrolled .nav__link { color: #cbd5e1; padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav__link:hover, .nav__link.is-active,
  .header.is-scrolled .nav__link:hover, .header.is-scrolled .nav__link.is-active { color: var(--accent); }
  .nav__cta { margin: 14px 0 0; }
  .burger { display: flex; }
  .proscons { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .okved { grid-template-columns: 1fr; }
  .niches { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 140px 0 80px; }
  .page-hero { padding: 130px 0 56px; }
  .hero__stats { gap: 28px; }
  .stat__num { font-size: 28px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .docs__grid { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .timeline::before { left: 28px; }
  .timeline__num { flex-basis: 46px; width: 46px; height: 46px; font-size: 14px; }
  .timeline__item { gap: 20px; }
  .calendar__row { grid-template-columns: 1fr; gap: 8px; }
  .result { flex-direction: column; align-items: flex-start; gap: 10px; }
  .result__value { font-size: 22px; }
  .quiz { padding: 26px 20px; }
  .calc__form { padding: 24px; }
  .form-card { padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; }
  .cta__actions .btn { width: 100%; }
}

/* =========================================================
   EXTRA COMPONENTS
   ========================================================= */

/* ---------- Theme toggle (3-state) ---------- */
.theme-toggle .icon-system { display: none; }
html[data-theme-pref="system"] .theme-toggle .icon-sun { display: none; }
html[data-theme-pref="system"] .theme-toggle .icon-moon { display: none; }
html[data-theme-pref="system"] .theme-toggle .icon-system { display: block; }
html[data-theme-pref="dark"] .theme-toggle .icon-system { display: none; }
html[data-theme-pref="light"] .theme-toggle .icon-system { display: none; }

/* ---------- Nav dropdown ---------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color .2s ease;
  white-space: nowrap;
}
.header.is-scrolled .nav__drop-toggle { color: var(--text-muted); }
.nav__drop-toggle:hover,
.nav__item.is-open .nav__drop-toggle { color: #fff; }
.header.is-scrolled .nav__drop-toggle:hover,
.header.is-scrolled .nav__item.is-open .nav__drop-toggle { color: var(--primary); }
.nav__drop-toggle .caret { transition: transform .25s ease; }
.nav__item.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: .22s ease;
  z-index: 120;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 13px; height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav__item:hover .dropdown,
.nav__item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: .18s ease;
}
.dropdown a:hover { background: rgba(79,70,229,.1); color: var(--primary); }
.dropdown a .di { font-size: 17px; }

/* ---------- Wizard ---------- */
.wizard { max-width: 900px; margin: 0 auto; }
.wizard__progress { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; }
.wizard__dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.wizard__dot i {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: .25s ease;
}
.wizard__dot.is-active i { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard__dot.is-done i { background: var(--green); border-color: var(--green); color: #fff; }
.wizard__dot.is-active { color: var(--text); }

.wizard__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}
.wizard__step { display: none; animation: fade .35s ease; }
.wizard__step.is-active { display: block; }
.wizard__step h3 { font-size: 22px; margin-bottom: 10px; }
.wizard__step > p.lead { color: var(--text-muted); margin-bottom: 24px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 18px;
  text-align: left;
  transition: .2s ease;
  cursor: pointer;
}
.choice:hover { border-color: var(--primary); transform: translateY(-3px); }
.choice.is-selected { border-color: var(--primary); background: rgba(79,70,229,.1); box-shadow: 0 0 0 1px var(--primary) inset; }
.choice__icon { font-size: 22px; margin-bottom: 8px; }
.choice h4 { font-size: 15.5px; margin-bottom: 4px; }
.choice p { font-size: 13px; color: var(--text-muted); }

.wizard__list { display: flex; flex-direction: column; gap: 10px; }
.wizard__list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 14.5px;
  cursor: pointer;
  transition: .2s ease;
}
.wizard__list label:hover { border-color: var(--primary); }
.wizard__list input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.wizard__summary { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; }
.wizard__summary h4 { font-size: 16px; margin-bottom: 14px; }
.wizard__summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.wizard__summary dt { color: var(--text-muted); }
.wizard__summary dd { font-weight: 600; color: var(--text); }

/* ---------- Plan generator ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}
.metric__label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.metric__value { font-size: 26px; font-weight: 900; color: var(--text); }
.metric--good { border-color: var(--green); }
.metric--good .metric__value { color: var(--green); }
.metric--bad { border-color: var(--red); }
.metric--bad .metric__value { color: var(--red); }
.plan-break { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; font-size: 15px; color: var(--text-muted); }
.plan-break b { color: var(--text); }

/* ---------- Blog ---------- */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post__cover {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 44px;
  background: linear-gradient(135deg, rgba(79,70,229,.18), rgba(34,211,238,.2));
}
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--primary); margin-bottom: 10px; }
.post h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.post p { font-size: 14.5px; color: var(--text-muted); flex: 1; }
.post__meta { margin-top: 16px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); margin-bottom: 26px; }
.article__lead { font-size: 19px; color: var(--text); margin-bottom: 26px; line-height: 1.6; }
.article h2 { font-size: 27px; margin: 38px 0 14px; letter-spacing: -.01em; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article p { font-size: 16.5px; color: var(--text); margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 0; }
.article ul li, .article ol li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16px; color: var(--text-muted); }
.article ul li::before { content: "•"; position: absolute; left: 6px; color: var(--primary); font-weight: 900; }
.article ol { counter-reset: a; }
.article ol li { counter-increment: a; padding-left: 34px; }
.article ol li::before { content: counter(a); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(79,70,229,.12); color: var(--primary); font-size: 12px; font-weight: 800; }
.article blockquote {
  border-left: 4px solid var(--primary);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 16.5px;
  color: var(--text);
}
.article .table-wrap { margin: 24px 0; }

.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.share span { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.share a, .share button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: .2s ease;
}
.share a:hover, .share button:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 20px; bottom: 20px;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  z-index: 130;
  transform: translateY(140%);
  transition: transform .4s ease;
}
.cookie.is-visible { transform: none; }
.cookie p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.cookie a { color: var(--primary); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 100;
  gap: 10px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.sticky-cta .btn { flex: 1; }

/* ---------- Mobile additions ---------- */
@media (max-width: 820px) {
  .choice-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .blog { grid-template-columns: 1fr 1fr; }
  .nav__item { flex-direction: column; align-items: stretch; }
  .nav__drop-toggle { padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.07); justify-content: space-between; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .dropdown::before { display: none; }
  .nav__item.is-open .dropdown { max-height: 480px; }
  .dropdown a { color: #cbd5e1; }
  .dropdown a:hover { background: rgba(255,255,255,.06); color: var(--accent); }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .cookie { left: 12px; right: 12px; max-width: none; bottom: 90px; }
}

@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .blog { grid-template-columns: 1fr; }
  .wizard__card { padding: 24px 20px; }
  .wizard__dot span { display: none; }
}

button.card { width: 100%; text-align: left; font-family: inherit; }
.nav__lang { font-weight: 700; }

/* ---------- Print for metrics/plan ---------- */
@media print {
  .print-only .metric { break-inside: avoid; border: 1px solid #ccc; padding: 10px; margin-bottom: 8px; }
  .print-only .metric__label { color: #555; }
  .print-only .metric__value { font-size: 20px; font-weight: 700; }
  .print-only .wizard__summary dl { display: block; }
}

/* =========================================================
   ROUND 3 — IDEAS / COMPARE / GLOSSARY / CALENDAR / SEARCH
   ========================================================= */

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--text-muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: '/'; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group__label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.results-count { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.empty { padding: 40px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 18px; }

/* ---------- Ideas ---------- */
.idea-card { display: flex; flex-direction: column; gap: 12px; }
.idea-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.idea-card__icon { font-size: 30px; line-height: 1; }
.idea-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.idea-card__stat { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.idea-card__stat b { display: block; font-size: 15px; color: var(--text); }
.idea-card__stat span { font-size: 11px; color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; }
.idea-card__meter { height: 8px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; border: 1px solid var(--border); }
.idea-card__meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.idea-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.level { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.level--easy { background: rgba(16,185,129,.14); color: var(--green); }
.level--mid { background: rgba(245,158,11,.16); color: var(--amber); }
.level--hard { background: rgba(239,68,68,.14); color: var(--red); }

/* ---------- Compare / matrix ---------- */
.compare { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.compare thead th { background: var(--surface-alt); font-size: 15px; }
.compare thead th.is-best { background: color-mix(in srgb, var(--green) 16%, var(--surface-alt)); }
.compare td:first-child { font-weight: 600; color: var(--text); width: 220px; }
.compare tbody tr:hover { background: var(--surface-alt); }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--red); font-weight: 700; }
.compare .maybe { color: var(--amber); font-weight: 700; }
.rec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.rec__card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.rec__card.is-ideal { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.rec__card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rec__score { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.rec__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rec__list li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 8px; }
.rec__list li.minus::before { content: '✕'; color: var(--red); }
.switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ---------- Glossary ---------- */
.glossary__search { position: relative; margin-bottom: 20px; }
.glossary__search input { width: 100%; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.glossary__letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.glossary__letters a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-alt); border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--text-muted); }
.glossary__letters a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.glossary__group h2 { margin: 28px 0 12px; font-size: 22px; color: var(--primary); }
.term { border-bottom: 1px solid var(--border); padding: 14px 0; scroll-margin-top: 96px; }
.term:last-child { border-bottom: 0; }
.term dt { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.term dd { margin: 0; color: var(--text-muted); font-size: 15px; }
.term:hover dt { color: var(--primary); }
.term dd a { color: var(--primary); }

/* ---------- Calendar ---------- */
.cal-list { display: flex; flex-direction: column; gap: 12px; }
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.event__date { text-align: center; }
.event__date b { display: block; font-size: 22px; line-height: 1; }
.event__date span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.event__body h3 { font-size: 16px; margin-bottom: 4px; }
.event__body p { font-size: 14px; color: var(--text-muted); }
.event__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-muted); }
.pill--npd { color: #10b981; border-color: rgba(16,185,129,.4); }
.pill--usn { color: #6366f1; border-color: rgba(99,102,241,.4); }
.pill--patent { color: #f59e0b; border-color: rgba(245,158,11,.4); }
.event__action { display: flex; flex-direction: column; gap: 8px; }
.reminder-btn.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.cal-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }

/* ---------- Site search overlay ---------- */
.nav__search { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; }
.header.is-scrolled .nav__search { color: var(--text-muted); }
.nav__search:hover { color: #fff; }
.header.is-scrolled .nav__search:hover { color: var(--primary); }
.nav__search kbd { font-size: 11px; border: 1px solid currentColor; border-radius: 6px; padding: 1px 5px; opacity: .7; }
.search-overlay { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(2,6,23,.6); backdrop-filter: blur(6px); }
.search-overlay.is-open { display: block; }
.search-box { max-width: 640px; margin: 12vh auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box__input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search-box__input svg { flex: none; color: var(--text-muted); }
.search-box__input input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 18px; outline: none; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-result { display: block; padding: 12px 14px; border-radius: var(--radius-sm); }
.search-result:hover, .search-result.is-active { background: var(--surface-alt); }
.search-result h4 { font-size: 15px; margin-bottom: 2px; }
.search-result p { font-size: 13px; color: var(--text-muted); }
.search-result mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.search-empty { padding: 28px; text-align: center; color: var(--text-muted); }

/* ---------- Admin ---------- */
.admin-login { max-width: 420px; margin: 40px auto; }
.admin-login input { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: top; }
.admin-table th { background: var(--surface-alt); }
.admin-table tr:hover { background: var(--surface-alt); }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: clamp(72px, 18vw, 160px); font-weight: 900; line-height: 1; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .rec { grid-template-columns: 1fr; }
  .idea-card__stats { grid-template-columns: repeat(3, 1fr); }
  .event { grid-template-columns: 72px 1fr; }
  .event__action { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 560px) {
  .idea-card__stats { grid-template-columns: 1fr; }
  .compare td:first-child { width: auto; }
  .search-box { margin-top: 6vh; }
}

/* =========================================================
   ROUND 4 — accessibility, favorites, documents, tooling
   ========================================================= */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary, #4f46e5);
  color: #fff;
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--primary, #4f46e5);
  outline-offset: 2px;
  border-radius: 6px;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.fav-btn:hover { border-color: var(--primary, #4f46e5); color: var(--primary, #4f46e5); }
.fav-btn.is-on { border-color: #f59e0b; color: #f59e0b; }
.fav-btn__star { font-size: 16px; line-height: 1; }

.calc-share { margin-top: 16px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: var(--card, #fff);
}
.toolbar input[type="search"],
.toolbar select { min-width: 220px; }

.search-group {
  padding: 10px 14px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  background: var(--card, #fff);
}
.doc-card__icon { font-size: 26px; }
.doc-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.doc-disclaimer { margin-top: 14px; font-size: 13px; color: var(--text-muted, #64748b); }

.doc-preview { display: none; }
.doc-preview.is-open { display: block; }
.doc-preview__overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(15, 23, 42, .55);
}
.doc-preview__panel {
  position: fixed;
  z-index: 1501;
  top: 50%;
  left: 50%;
  width: min(860px, 94vw);
  max-height: 86vh;
  transform: translate(-50%, -50%);
  overflow: auto;
  background: var(--card, #fff);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .35);
}
.doc-preview__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
}
.doc-preview__close { border: 0; background: transparent; font-size: 22px; cursor: pointer; line-height: 1; }
.doc-preview__body { padding: 20px; }
.doc-preview__body h3 { margin-top: 0; }
.doc-preview__foot { padding: 14px 20px; border-top: 1px solid var(--border, #e2e8f0); }

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

.sitemap__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  font-size: 20px;
}
.sitemap__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(79, 70, 229, .12);
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
}
.sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitemap-list li {
  padding: 14px 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--card, #fff);
}
.sitemap-list a { font-weight: 600; }
.sitemap-list span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

