/* ScoutLoop — публичный сайт. Brandbook Glassmorphism: dark BG + Scout Lime accent. */

:root {
  /* DARK theme — default (Glassmorphism из брендбука Daniyar) */
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-warm: #0a0a0a;
  --ink: #ffffff;
  --ink-2: #b8b8b8;
  --ink-3: #707070;
  --ink-4: #555555;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --accent: #C8F135;
  --accent-deep: #8FB218;
  --accent-soft: rgba(200, 241, 53, 0.12);
  --accent-warm: rgba(200, 241, 53, 0.06);
  --good: #C8F135;
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 1px 0 rgba(0, 0, 0, .35), 0 8px 22px -8px rgba(0, 0, 0, .50);
  --shadow-lg: 0 1px 0 rgba(0, 0, 0, .35), 0 24px 50px -16px rgba(0, 0, 0, .55);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1180px;
}

/* LIGHT theme — Frosted Clarity из брендбука Daniyar */
[data-theme="light"] {
  --bg: #EEEEE8;
  --bg-soft: #ececef;
  --bg-card: #F5F5F0;
  --bg-warm: #F8F8F4;
  --ink: #0D0D0B;
  --ink-2: #404040;
  --ink-3: #888880;
  --ink-4: #b8b8b8;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  /* accent split: dark lime для UI/text (читается на белом), bright lime для glow/halo */
  --accent: #7DB800;
  --accent-deep: #5A8500;
  --accent-soft: rgba(125, 184, 0, 0.10);
  --accent-warm: rgba(200, 241, 53, 0.20);
  --good: #7DB800;
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 1px 0 rgba(0, 0, 0, .04), 0 8px 22px -8px rgba(0, 0, 0, .12);
  --shadow-lg: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 50px -16px rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Containers */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(200, 241, 53, 0.08);
  border: 1px solid rgba(200, 241, 53, 0.25);
  color: var(--accent);
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.012em; }
.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a { color: var(--ink-2); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.head-nav a:hover { color: var(--ink); }
.head-cta {
  background: var(--ink); color: var(--bg);
  padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.head-cta:hover { background: var(--accent); text-decoration: none; color: var(--bg); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 3px; border-radius: 999px; margin-right: 8px;
}
.lang-switch a {
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 5px 10px; border-radius: 999px;
  text-decoration: none; letter-spacing: .02em;
  transition: color .12s, background .12s;
}
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a.lang-active { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-sm); }

@media (max-width: 680px) {
  .head-nav a:not(.head-cta):not([data-lang-ru]):not([data-lang-kz]):not([data-lang-en]) { display: none; }
  .lang-switch { margin-right: 4px; }
  .lang-switch a { padding: 4px 8px; font-size: 11.5px; }
  .head-nav { gap: 8px; }
  .wrap { padding: 0 16px; }
  .head-row { gap: 8px; padding: 10px 0; }
}

/* Узкий мобильный (Galaxy S23 portrait ~393, iPhone 14 ~390): полностью прячем
   текст бренда оставляя только chevron-иконку — иначе nav не влазит. */
@media (max-width: 480px) {
  .brand-name { display: none; }
  .head-cta { padding: 7px 12px; font-size: 12.5px; gap: 4px; }
  .head-cta svg { display: none; }
  .lang-switch { padding: 2px; }
  .lang-switch a { padding: 3px 7px; font-size: 11px; }
  .theme-toggle { width: 30px; height: 30px; border-width: 1px; }
  .theme-toggle svg { width: 14px; height: 14px; }
  .head-nav { gap: 6px; }
}

/* Сверхузкий (≤360px — старые Android): сжимаем ещё */
@media (max-width: 360px) {
  .lang-switch a { padding: 3px 6px; font-size: 10.5px; letter-spacing: 0; }
  .head-cta { padding: 6px 10px; font-size: 12px; }
  .theme-toggle { width: 28px; height: 28px; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 88% 8%, rgba(200, 85, 43, .10), transparent 70%),
    radial-gradient(500px 320px at 8% 90%, rgba(106, 58, 34, .07), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-warm); color: var(--accent-deep);
  border: 1px solid var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin: 0;
  font-size: 56px; line-height: 1.05;
  font-weight: 800; letter-spacing: -0.028em;
  color: var(--ink);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  margin: 24px 0 36px;
  font-size: 18.5px; color: var(--ink-2);
  max-width: 56ch; line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  padding: 14px 22px; border-radius: 12px;
  font-size: 15px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--accent); text-decoration: none; color: var(--bg); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--line-2);
  color: var(--ink); padding: 13px 20px; border-radius: 12px;
  font-size: 15px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.hero-proof {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-size: 14px; color: var(--ink-3);
}
.hero-proof .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 12px;
}
.hero-proof b { color: var(--ink); font-weight: 700; }

/* Hero visual — карточка с метрикой */
.hero-art {
  position: relative;
  padding: 8px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-warm));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-art-inner {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.hero-art-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.hero-art-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.hero-art-stat {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-art-stat-label { font-size: 13px; color: var(--ink-3); }
.hero-art-stat-value {
  font-size: 40px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.hero-art-stat-delta { font-size: 13px; color: var(--good); font-weight: 600; }
.hero-art-bar { display: flex; flex-direction: column; gap: 8px; }
.hero-art-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.hero-art-bar-row .name { flex: 0 0 100px; font-weight: 600; color: var(--ink); }
.hero-art-bar-row .track { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.hero-art-bar-row .fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.hero-art-bar-row .v { flex: 0 0 60px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.hero-art-foot {
  display: flex; gap: 10px; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12.5px;
}
.hero-art-foot .pill {
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 3px 10px; border-radius: 999px;
  font-weight: 700; font-size: 11.5px;
}

@media (max-width: 980px) {
  .hero { padding: 56px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 16.5px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 32px; }
}

/* ── Section ───────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  font-size: 13px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.section-title {
  margin: 0; font-size: 38px; line-height: 1.12;
  font-weight: 800; letter-spacing: -.022em; color: var(--ink);
}
.section-sub {
  margin: 18px auto 0; max-width: 56ch;
  font-size: 17px; color: var(--ink-2); line-height: 1.55;
}
@media (max-width: 680px) {
  section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15.5px; }
}

/* ── Features (4 блока) ────────────────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.feature {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.feature-num {
  position: absolute; top: 16px; right: 20px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  color: var(--ink-4); font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
}
.feature h3 {
  margin: 0; font-size: 19px; font-weight: 700;
  letter-spacing: -.012em; color: var(--ink);
}
.feature p {
  margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55;
}
.feature ul {
  margin: 4px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.feature ul li {
  font-size: 14px; color: var(--ink-2);
  padding-left: 20px; position: relative;
}
.feature ul li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 1.5px; background: var(--accent);
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}

/* ── Для кого (3 блока) ────────────────────────────────────────────────── */
.audience {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.aud-card {
  background: var(--bg-warm); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.aud-card-tag {
  display: inline-flex; width: fit-content;
  font-size: 11.5px; font-weight: 700;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
}
.aud-card h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.aud-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 820px) {
  .audience { grid-template-columns: 1fr; }
}

/* ── Кейс @dveri_staleks ────────────────────────────────────────────────── */
.case {
  background: linear-gradient(180deg, var(--ink) 0%, #2a221b 100%);
  color: #f6f1ea;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.case::before {
  content: ''; position: absolute;
  width: 520px; height: 520px;
  top: -200px; right: -120px;
  background: radial-gradient(circle, rgba(200, 85, 43, .25), transparent 70%);
  pointer-events: none;
}
.case-eyebrow {
  font-size: 12.5px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.case h2 {
  margin: 0 0 14px; font-size: 30px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2;
}
.case p { margin: 0 0 22px; font-size: 16px; color: rgba(246, 241, 234, .72); line-height: 1.6; }
.case-handle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  font-size: 14px; color: #f6f1ea; font-weight: 600;
}
.case-handle .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; color: #fff; font-weight: 700;
  font-size: 12px;
}
.case-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-stat {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; z-index: 1;
}
.case-stat-value {
  font-size: 36px; font-weight: 800; letter-spacing: -.02em; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.case-stat-accent { color: var(--accent); }
.case-stat-label { font-size: 13px; color: rgba(246, 241, 234, .65); line-height: 1.45; }
@media (max-width: 920px) {
  .case { grid-template-columns: 1fr; padding: 40px 28px; }
  .case h2 { font-size: 24px; }
}

/* ── Pricing-placeholder ───────────────────────────────────────────────── */
.pricing {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px;
  text-align: center;
  max-width: 760px; margin: 0 auto;
}
.pricing-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 18px;
}
.pricing-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
.pricing h3 { margin: 0 0 12px; font-size: 26px; font-weight: 700; letter-spacing: -.018em; color: var(--ink); }
.pricing p { margin: 0 0 22px; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 680px) { .pricing { padding: 36px 24px; } }

/* ── Контактная форма ──────────────────────────────────────────────────── */
.contact {
  background: linear-gradient(180deg, var(--bg-warm), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px;
  max-width: 760px; margin: 0 auto;
}
.contact-head { text-align: center; margin-bottom: 28px; }
.contact-head h3 { margin: 0 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -.018em; color: var(--ink); }
.contact-head p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-field label .req { color: var(--accent); }
.form-field input,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-consent { margin-top: 6px; }
.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer;
}
.consent-row a { color: var(--accent); }

.form-submit-row {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 18px; text-align: center;
}
.form-submit-row .btn { align-self: center; padding: 14px 28px; font-size: 15.5px; }
.form-submit-row .hint { font-size: 13px; color: var(--ink-3); }
@media (max-width: 680px) {
  .contact { padding: 32px 22px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 48px 0 40px;
  margin-top: 64px;
}
.foot-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  margin-bottom: 28px;
}
.foot-brand p { margin: 14px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.6; max-width: 32ch; }
.foot-col h5 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.foot-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-col li a { color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.foot-col li a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 22px;
  font-size: 13px; color: var(--ink-3);
}
@media (max-width: 720px) {
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

/* ── Legal pages (Privacy / Terms / Data-deletion) ─────────────────────── */
.legal {
  padding: 56px 0 24px;
}
.legal h1 {
  margin: 0 0 14px; font-size: 40px; font-weight: 800;
  letter-spacing: -.02em; color: var(--ink); line-height: 1.15;
}
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 14px; color: var(--ink-3); margin-bottom: 36px;
}
.legal-meta .sep { color: var(--ink-4); }
.legal-toc {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 40px;
}
.legal-toc h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.legal-toc ol { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 4px; }
.legal-toc ol li a { color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.legal-toc ol li a:hover { color: var(--accent); text-decoration: underline; }
.legal-body { font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.legal-body h2 {
  margin: 44px 0 14px; font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -.012em; scroll-margin-top: 80px;
}
.legal-body h3 {
  margin: 28px 0 10px; font-size: 17px; font-weight: 700; color: var(--ink);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 6px; }
.legal-body code {
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px;
  font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 13px;
}
.legal-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0 22px;
  font-size: 14.5px;
}
.legal-body table th,
.legal-body table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.legal-body table th {
  background: var(--bg-warm); color: var(--ink); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
}
.legal-body .callout {
  background: var(--accent-warm); border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 22px 0; color: var(--ink);
}
.legal-body .callout strong { color: var(--accent-deep); }
.legal-body a { color: var(--accent); }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-3); margin-bottom: 28px;
  text-decoration: none;
}
.legal-back:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 680px) {
  .legal h1 { font-size: 30px; }
  .legal-body h2 { font-size: 20px; }
}

/* ── Utility ──────────────────────────────────────────────────────────── */
.center { text-align: center; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.spacer-sm { height: 16px; }
.spacer { height: 40px; }

/* ── LIGHT THEME — точечные overrides hardcoded dark значений ─────────── */
/* HTML использует <header class="site-head"> — селектор был .head, не работал */
[data-theme="light"] .site-head {
  /* Менее прозрачный bg + чёткая граница, чтобы header чётко читался поверх контента */
  background: rgba(247, 247, 240, .96);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .head-nav a {
  /* Усиливаем контраст nav-ссылок: было --ink-2 (#404040) — еле читалось */
  color: var(--ink);
}
[data-theme="light"] .head-nav a:hover {
  color: var(--accent);
}
[data-theme="light"] .brand-mark {
  background: rgba(125, 184, 0, 0.10);
  border: 1px solid rgba(125, 184, 0, 0.40);
}
[data-theme="light"] .brand-name {
  color: var(--ink);
  font-weight: 700;
}
[data-theme="light"] .lang-switch {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, .10);
}
[data-theme="light"] .lang-switch a {
  /* Inactive языки: было --ink-3 (#888880) — слишком бледно. Контраст ↑ */
  color: var(--ink-2);
}
[data-theme="light"] .lang-switch a.lang-active {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(125, 184, 0, .30);
}
[data-theme="light"] .theme-toggle {
  color: var(--ink-2);
  border-color: rgba(0, 0, 0, .12);
}
[data-theme="light"] .theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(125, 184, 0, .08);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, .04);
}
[data-theme="light"] .hero-art {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-warm));
  border: 1px solid var(--line);
}
[data-theme="light"] .hero-art-bar-row .track {
  background: rgba(0, 0, 0, .06);
}
/* Бейдж "Beta" в hero-eyebrow */
[data-theme="light"] .hero-eyebrow {
  background: rgba(125, 184, 0, 0.08);
  color: var(--accent-deep);
  border: 1px solid rgba(125, 184, 0, 0.25);
}

/* head-cta пилюля — раньше color=var(--bg) перебивалось .head-nav a — повышаем specificity */
.head-nav a.head-cta { color: var(--bg); }
.head-nav a.head-cta:hover { color: var(--bg); }

/* ── Theme toggle button ──────────────────────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  width: 36px; height: 36px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  padding: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* На мобильном — toggle всегда видим, не прячется (важно: попадает в head-nav) */
@media (max-width: 760px) {
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 16px; height: 16px; }
}
