:root {
  color-scheme: dark;
  --bg: #050a12;
  --bg-soft: #0c1523;
  --text: #f3f7ff;
  --muted: #a7b6c6;
  --line: rgba(151, 188, 207, 0.24);
  --card: rgba(10, 20, 31, 0.62);
  --primary: #dfe9ff;
  --primary-text: #0f1f35;
  --accent-blog: #0a0000;
  --page-bg: radial-gradient(circle at 50% 20%, rgba(28, 106, 118, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 20% 70%, rgba(21, 82, 92, 0.16) 0%, transparent 42%),
    linear-gradient(180deg, #041118 0%, #010608 100%);
  --shell-bg: linear-gradient(180deg, rgba(1, 9, 13, 0.78), rgba(1, 8, 11, 0.84));
  --shell-border: rgba(133, 210, 218, 0.65);
  --shell-shadow: 0 30px 100px rgba(0, 18, 23, 0.5);
  --topbar-bg: rgba(5, 12, 18, 0.75);
  --topbar-border: rgba(133, 210, 218, 0.28);
  --dropdown-bg: rgba(5, 14, 22, 0.96);
  --dropdown-link: #c5d6dc;
  --dropdown-hover-bg: rgba(95, 197, 211, 0.12);
  --hero-ref-title: #f5fbff;
  --hero-ref-title-span: #c3cfde;
  --hero-ref-lead: #9bb4be;
  --hero-ref-kicker: #8faab6;
  --logo-text: #e8f0f2;
  --border-section: rgba(120, 184, 193, 0.22);
  --noise-opacity: 0.16;
  --grid-opacity: 0.3;
  --footer-border: rgba(255, 255, 255, 0.1);
  --surface-muted: rgba(7, 28, 36, 0.42);
  --cta-band-bg: rgba(8, 32, 40, 0.55);
  --cta-band-border: rgba(108, 208, 221, 0.35);
  --split-visual-bg: rgba(10, 28, 36, 0.45);
  --link-accent: #b8e6f2;
  --kp-footer-heading: #9ec4cc;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-soft: #ffffff;
  --text: #111827;
  --muted: #525252;
  --line: rgba(15, 23, 42, 0.14);
  --card: rgba(255, 255, 255, 0.94);
  --primary: #0a0000;
  --primary-text: #fafafa;
  --page-bg: linear-gradient(180deg, #fafbfc 0%, #eef2f7 55%, #e8edf3 100%);
  --shell-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.99));
  --shell-border: rgba(15, 23, 42, 0.1);
  --shell-shadow: 0 20px 72px rgba(15, 23, 42, 0.08);
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --topbar-border: rgba(15, 23, 42, 0.1);
  --dropdown-bg: #ffffff;
  --dropdown-link: #374151;
  --dropdown-hover-bg: rgba(10, 0, 0, 0.06);
  --hero-ref-title: #0a0a0a;
  --hero-ref-title-span: #4b5563;
  --hero-ref-lead: #525252;
  --hero-ref-kicker: #6b7280;
  --logo-text: #111827;
  --border-section: rgba(15, 23, 42, 0.12);
  --noise-opacity: 0.06;
  --grid-opacity: 0.12;
  --footer-border: rgba(15, 23, 42, 0.12);
  --surface-muted: rgba(248, 250, 252, 0.96);
  --cta-band-bg: #f8fafc;
  --cta-band-border: rgba(15, 23, 42, 0.12);
  --split-visual-bg: #f1f5f9;
  --link-accent: #0369a1;
  --kp-footer-heading: #6b7280;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  overflow-x: hidden;
  padding: 18px 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p,
li,
.kicker,
.lead,
summary,
details p {
  color: var(--muted);
}

.container {
  width: min(900px, 92%);
  margin: 0 auto;
}

.landing-shell {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(980px, 94vw);
  margin: 0 auto;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--shell-bg);
  box-shadow: var(--shell-shadow);
}

.landing-shell > * {
  position: relative;
  z-index: 1;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -5;
  opacity: var(--noise-opacity);
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.blobfield {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(89, 179, 194, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(89, 179, 194, 0.042) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: var(--grid-opacity);
  pointer-events: none;
}

.topbar-wrap {
  position: relative;
  z-index: 10;
  padding: 8px 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border: 1px solid var(--topbar-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  background: var(--topbar-bg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--logo-text);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.menu a:hover,
.footer-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 2;
  padding: 0 0 42px;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-section);
}

.hero-ref {
  padding: 46px 0 44px;
  border-bottom: 1px solid var(--border-section);
}

.hero-ref-inner {
  position: relative;
  z-index: 4;
  max-width: 760px;
  text-align: center;
}

.hero-ref-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--hero-ref-kicker);
}

.hero-ref-title {
  margin: 0;
  max-width: none;
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--hero-ref-title);
  text-transform: uppercase;
}

.hero-ref-title span {
  color: var(--hero-ref-title-span);
  font-weight: 500;
}

.hero-ref-lead {
  margin: 18px auto 24px;
  max-width: 620px;
  color: var(--hero-ref-lead);
  font-size: 14px;
  line-height: 1.45;
}

.hero-ref-actions {
  display: flex;
  justify-content: center;
}

.hero-ref-btn {
  padding: 12px 26px;
  font-size: 13px;
}

.hero-ref-glow {
  position: absolute;
  left: 50%;
  top: 49%;
  width: min(880px, 90%);
  height: 78px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(123, 222, 235, 0.45) 0%, rgba(90, 178, 198, 0.25) 34%, rgba(0, 0, 0, 0) 72%);
  filter: blur(22px);
  opacity: 0.75;
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: block;
  min-height: 0;
  padding-top: 0;
}

.hero-hands {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  min-height: 0;
}

.hero-hands img {
  position: absolute;
  top: 48%;
  right: -17%;
  height: 108%;
  width: auto;
  transform: translateY(-50%);
  display: block;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.4));
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 460px;
  padding-top: 0;
  margin-top: 0;
}

.kicker {
  color: var(--muted);
  opacity: 0.9;
  margin: 0 0 18px;
  font-size: 13px;
}

h1 {
  margin: 0 0 22px;
  max-width: 440px;
  font-size: clamp(2.5rem, 5.7vw, 4.6rem);
  line-height: 0.92;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.022em;
}

.lead {
  margin: 0 0 28px;
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
}

.btn-primary {
  background: linear-gradient(90deg, #7f8fff 0%, #b8e6f2 100%);
  color: var(--primary-text);
  border: 0;
  box-shadow: 0 10px 30px rgba(83, 118, 247, 0.38);
  padding: 14px 34px;
}

html[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0a0000 0%, #1a1a1a 100%);
  color: #fafafa;
  box-shadow: 0 10px 28px rgba(10, 0, 0, 0.22);
}

html[data-theme="light"] .btn-primary:hover {
  filter: brightness(1.06);
}

.topbar-cta {
  border: 1px solid rgba(140, 174, 188, 0.52);
  padding: 10px 24px;
  border-radius: 999px;
}

.topbar .btn {
  width: auto;
}

.btn-dark,
.btn-ghost {
  background: rgba(137, 176, 194, 0.13);
  border-color: rgba(141, 182, 198, 0.36);
  color: #d2e0e8;
}

.metrics {
  position: relative;
  z-index: 3;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(10px) saturate(128%);
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.metric-card strong {
  margin-top: 7px;
  display: block;
  font-size: 23px;
  color: var(--text);
}

.section {
  position: relative;
  z-index: 3;
  padding: 56px 0 8px;
}

.has-blob {
  position: relative;
  overflow: visible;
}

.has-blob > *:not(.section-blob) {
  position: relative;
  z-index: 2;
}

.section-blob {
  display: none;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card,
.glass-card,
.price-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  backdrop-filter: blur(10px) saturate(118%);
}

.card {
  padding: 20px;
}

.card p {
  color: var(--muted);
}

.results-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.glass-card {
  padding: 22px;
  backdrop-filter: blur(7px);
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 8px 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.price-card {
  padding: 20px;
}

.price {
  font-size: 30px;
  margin: 6px 0 16px;
  font-weight: 700;
}

.featured {
  outline: 1px solid rgba(108, 208, 221, 0.72);
  position: relative;
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  background: rgba(95, 197, 211, 0.2);
  border: 1px solid rgba(95, 197, 211, 0.55);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  position: relative;
  z-index: 3;
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.site-footer p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 20px 0 40px;
  }

  .hero-ref {
    padding: 34px 0 34px;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 0;
  }

  .hero-hands {
    position: relative;
    top: 0;
    bottom: auto;
    right: 0;
    width: 100%;
    min-height: 240px;
    margin: 0 0 20px;
  }

  .hero-hands img {
    top: 50%;
    right: 0;
    height: 100%;
    transform: translateY(-50%);
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    padding-top: 0;
    max-width: 100%;
  }

  .metrics,
  .cards-grid,
  .pricing-grid,
  .results-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-ref-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
}

/* --- Kapadastr multi-page site --- */
.kp-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 222, 235, 0.95), rgba(95, 137, 247, 0.85));
  flex-shrink: 0;
}

.site-header-inner {
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-trigger,
.nav-link {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: none;
}

.nav-link:hover,
.nav-trigger:hover {
  color: var(--text);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  z-index: 50;
  padding: 10px 0;
  margin: 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .dropdown {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--dropdown-link);
  font-size: 13px;
  text-decoration: none;
}

.dropdown a:hover {
  background: var(--dropdown-hover-bg);
  color: var(--text);
}

.nav-item.is-open .dropdown {
  display: block;
}

.nav-toggle {
  display: none;
  background: rgba(137, 176, 194, 0.13);
  border: 1px solid rgba(141, 182, 198, 0.36);
  color: #d2e0e8;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 13px;
}

/* Футер Kapadastr: переопределяем .site-footer (flex в ряд ломал сетку — копирайт уезжал вправо) */
.site-footer.kp-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
  padding: 0 0 40px;
  border-top: 1px solid var(--footer-border);
}

.kp-footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.45fr) repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
  padding: 32px 0 28px;
}

.kp-footer-brand .kp-footer-logo {
  display: block;
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.kp-footer-brand .kp-footer-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 280px;
}

.kp-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.kp-footer-col li {
  margin: 0 0 8px;
}

.kp-footer-col li:last-child {
  margin-bottom: 0;
}

.kp-footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}

.kp-footer-col a:hover {
  color: var(--text);
}

.kp-footer-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--kp-footer-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.kp-footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 20px 0 0;
  margin-top: 0;
}

.kp-footer-bottom p {
  margin: 0 auto;
  max-width: 52rem;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.kp-footer-bottom a {
  color: var(--link-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kp-footer-bottom a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .kp-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 24px;
  }

  .kp-footer-brand {
    grid-column: 1 / -1;
    max-width: 400px;
  }

  .kp-footer-brand .kp-footer-tagline {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .kp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .kp-footer-grid {
    grid-template-columns: 1fr;
  }

  .kp-footer-bottom p {
    text-align: left;
    padding: 0 4px;
  }
}

.page-hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-section);
}

.page-hero .kicker {
  margin-bottom: 12px;
}

.page-hero h1 {
  max-width: 720px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.12;
}

.page-hero .lead {
  max-width: 640px;
  margin-top: 14px;
}

.section-block {
  padding: 44px 0 12px;
}

.section-block h2 {
  text-align: left;
  margin-bottom: 12px;
}

.section-block .section-lead {
  margin: 0 0 22px;
  max-width: 720px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.split-visual {
  min-height: 180px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--split-visual-bg);
}

.prose-stack {
  display: grid;
  gap: 14px;
}

.steps-grid {
  display: grid;
  gap: 14px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface-muted);
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.direction-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--card);
}

.direction-card h3 {
  margin-top: 0;
}

.direction-card ul {
  padding-left: 18px;
}

.cta-band {
  margin: 40px 0 10px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--cta-band-border);
  background: var(--cta-band-bg);
  text-align: center;
}

.cta-band h2 {
  margin-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.kp-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.kp-form input[type="text"],
.kp-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.kp-form .field {
  margin-bottom: 16px;
}

.kp-form .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.radio-row,
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.kp-form .fineprint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

#kp-form-success {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  margin-bottom: 16px;
}

.pricing-inline {
  display: grid;
  gap: 12px;
}

.price-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-muted);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  color: var(--link-accent);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    order: 4;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 8px;
    order: 5;
    flex-basis: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    background: transparent;
    display: none;
  }

  .nav-item.is-open .dropdown {
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-header-inner .nav-cta {
    margin-left: auto;
    order: 3;
  }
}

/* Logo image + brand block */
.kp-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.split-visual--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 220px;
}

.split-visual--brand img {
  max-width: min(280px, 100%);
  height: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

/* Переключатель светлой / тёмной темы */
.theme-toggle {
  flex-shrink: 0;
  position: relative;
  width: 52px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="light"] .theme-toggle {
  background: #eef2f6;
}

.theme-toggle:hover {
  border-color: var(--topbar-border);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--link-accent);
  outline-offset: 2px;
}

.theme-toggle__track {
  display: block;
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .theme-toggle__track {
  background: #e5e7eb;
}

.theme-toggle__thumb {
  display: block;
  position: absolute;
  left: 5px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: left 0.22s ease;
}

.theme-toggle.is-light .theme-toggle__thumb {
  left: calc(100% - 27px);
}

html[data-theme="light"] .hero-ref-glow {
  opacity: 0.38;
}

html[data-theme="light"] .topbar-cta {
  border-color: var(--line);
}

html[data-theme="light"] .nav-toggle {
  background: #f1f5f9;
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="light"] .btn-dark,
html[data-theme="light"] .btn-ghost {
  background: #f1f5f9;
  border-color: var(--line);
  color: var(--text);
}
