/* ============================================================
   Аартык — дизайн-система прототипа
   Тёмная «полярная ночь» + северное сияние, светлая тема — «лёд»
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-soft: #070b14;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #0b111d;
  --panel-2: rgba(255, 255, 255, 0.06);
  --text: #eef4ff;
  --text-2: #b9c5da;
  --muted: #7d8ba4;
  --faint: #6a778f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --mint: #5af2c6;
  --cyan: #66c9ff;
  --violet: #a78bfa;
  --sun: #ffc46b;
  --rose: #fb7185;
  --accent: #5af2c6;
  --accent-ink: #03251d;
  --accent-soft: rgba(90, 242, 198, 0.12);
  --gradient: linear-gradient(115deg, #5af2c6 0%, #66c9ff 52%, #a78bfa 100%);
  --radius-xl: 28px;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 0 1px rgba(90, 242, 198, 0.3), 0 24px 70px -28px rgba(90, 242, 198, 0.5);
  --header-h: 72px;
  --container: 1200px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f2f6fb;
  --bg-soft: #eaf0f8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --panel-2: rgba(11, 21, 38, 0.04);
  --text: #0a1424;
  --text-2: #34415a;
  --muted: #5d6b84;
  --faint: #74829a;
  --line: rgba(10, 20, 36, 0.09);
  --line-strong: rgba(10, 20, 36, 0.18);
  --mint: #0c9f7a;
  --cyan: #0678b8;
  --violet: #6d4bd8;
  --sun: #b7791f;
  --rose: #be123c;
  --accent: #0c9f7a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(12, 159, 122, 0.1);
  --gradient: linear-gradient(115deg, #0c9f7a 0%, #0b7fb8 52%, #6d4bd8 100%);
  --shadow: 0 30px 80px -34px rgba(15, 35, 70, 0.28);
  --shadow-glow: 0 0 0 1px rgba(12, 159, 122, 0.25), 0 24px 70px -32px rgba(12, 159, 122, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 4%, rgba(90, 242, 198, 0.16), transparent 62%),
    radial-gradient(36% 30% at 82% 2%, rgba(167, 139, 250, 0.17), transparent 64%),
    radial-gradient(34% 28% at 52% 18%, rgba(102, 201, 255, 0.1), transparent 60%);
  filter: blur(28px);
  animation: drift 26s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(75% 55% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 55% at 50% 0%, #000 0%, transparent 78%);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(38% 32% at 18% 4%, rgba(12, 159, 122, 0.13), transparent 62%),
    radial-gradient(36% 30% at 82% 2%, rgba(109, 75, 216, 0.12), transparent 64%),
    radial-gradient(34% 28% at 52% 18%, rgba(11, 127, 184, 0.1), transparent 60%);
}
[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(10, 20, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 20, 36, 0.045) 1px, transparent 1px);
}

@keyframes drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.02); }
}

::selection { background: rgba(90, 242, 198, 0.28); color: var(--text); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -0.03em; line-height: 1.05; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--mint); color: var(--accent-ink);
  font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide { max-width: 1320px; }

main { display: block; min-height: 60vh; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 44px); }
.section-head .link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2); white-space: nowrap;
  padding-bottom: 6px; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.section-head .link-more:hover { color: var(--text); border-color: var(--line-strong); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}

.lead { font-size: 18px; color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
  font-size: 14px; font-weight: 560; letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--text-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--mint); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 12px 30px -14px rgba(90, 242, 198, 0.7);
}
.btn-primary:hover { background: #7cf7d4; border-color: transparent; box-shadow: 0 18px 40px -16px rgba(90, 242, 198, 0.8); }
[data-theme="light"] .btn-primary:hover { background: #0ab88d; }

.btn-gradient { background: var(--gradient); border-color: transparent; color: #04121f; font-weight: 650; }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--panel-2); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 26px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; position: relative; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-name b { font-size: 15px; font-weight: 700; letter-spacing: 0.2em; }
.brand-name span { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 9px;
  font-size: 14px; color: var(--text-2);
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--gradient);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.header-search {
  position: relative; display: flex; align-items: center;
  width: 210px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel);
  transition: border-color 0.18s, width 0.25s var(--ease), background 0.18s;
}
.header-search:focus-within { width: 280px; border-color: var(--line-strong); background: var(--panel-2); }
.header-search svg { width: 15px; height: 15px; margin-left: 12px; color: var(--muted); flex: none; }
.header-search input {
  width: 100%; height: 100%; padding: 0 10px; border: 0; background: transparent; outline: 0;
  font-size: 13px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search kbd {
  margin-right: 8px; padding: 2px 5px; border-radius: 5px;
  border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--muted);
}

.burger { display: none; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 64px 0 44px; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 48px; align-items: center;
}
.hero-copy { max-width: 660px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 12px; color: var(--text-2); letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(90, 242, 198, 0.55); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 242, 198, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(90, 242, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 242, 198, 0); }
}

.hero h1 {
  font-size: clamp(46px, 6.6vw, 88px);
  font-weight: 620;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 510px; font-size: 17px; color: var(--text-2); margin-bottom: 30px; }
.hero-lead strong { color: var(--text); font-weight: 560; }

.hero-search {
  display: flex; align-items: center; gap: 8px; max-width: 560px;
  padding: 8px 8px 8px 18px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--panel);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search:focus-within { border-color: rgba(90, 242, 198, 0.55); box-shadow: var(--shadow-glow); }
.hero-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.hero-search input {
  flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent;
  font-size: 15px;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search .btn { flex: none; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--mint); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hero-stat span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.35; }

/* ---------- Radar visual ---------- */

.hero-visual { display: flex; align-items: center; justify-content: center; }
.radar {
  position: relative; width: min(100%, 480px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(90, 242, 198, 0.1), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(102, 201, 255, 0.05), transparent 78%);
  box-shadow: inset 0 0 80px rgba(90, 242, 198, 0.06), 0 40px 120px -40px rgba(90, 242, 198, 0.3);
  overflow: hidden;
}
[data-theme="light"] .radar { box-shadow: inset 0 0 60px rgba(12, 159, 122, 0.08), 0 30px 80px -40px rgba(12, 159, 122, 0.3); }
.radar::before, .radar::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.radar::before { inset: 12%; border: 1px solid var(--line); }
.radar::after { inset: 28%; border: 1px solid var(--line); }
.radar-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-grid circle, .radar-grid line { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
[data-theme="light"] .radar-grid circle, [data-theme="light"] .radar-grid line { stroke: rgba(10, 20, 36, 0.08); }

.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 286deg, rgba(90, 242, 198, 0.02) 300deg, rgba(90, 242, 198, 0.26) 358deg, rgba(90, 242, 198, 0.5) 360deg);
  animation: sweep 7s linear infinite;
  mask-image: radial-gradient(circle, #000 30%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 71%);
}
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-core {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--mint); box-shadow: 0 0 24px 6px rgba(90, 242, 198, 0.5);
}

.radar-blip {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 8px;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.radar-blip i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px rgba(90, 242, 198, 0.14), 0 0 18px rgba(90, 242, 198, 0.7);
  flex: none;
}
.radar-blip b {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--panel-solid) 80%, transparent);
  backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 560; letter-spacing: 0.01em; white-space: nowrap;
}
.radar-blip.is-violet i { background: var(--violet); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.14), 0 0 18px rgba(167, 139, 250, 0.7); }
.radar-blip.is-cyan i { background: var(--cyan); box-shadow: 0 0 0 4px rgba(102, 201, 255, 0.14), 0 0 18px rgba(102, 201, 255, 0.7); }
.radar-blip.is-sun i { background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 196, 107, 0.14), 0 0 18px rgba(255, 196, 107, 0.7); }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 6px)); } }

.radar-note {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}

/* ---------- Wave strip ---------- */

.wave-strip { padding: 8px 0 0; }
.wave-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 28px;
  padding: 24px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
}
.wave-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(90, 242, 198, 0.08), transparent 40%, rgba(167, 139, 250, 0.07));
}
.wave-card > * { position: relative; }
.wave-label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.wave-label .tag { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--mint); font-weight: 600; letter-spacing: 0.06em; }
.wave-title { font-size: 22px; letter-spacing: -0.02em; }
.wave-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.countdown { display: flex; align-items: center; gap: 10px; }
.countdown-unit { text-align: center; min-width: 54px; }
.countdown-unit b {
  display: block; font-family: var(--mono); font-size: 26px; font-weight: 500; line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.countdown-unit span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.countdown-sep { font-family: var(--mono); font-size: 22px; color: var(--faint); padding-bottom: 14px; }

/* ---------- Filters ---------- */

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); margin-bottom: 26px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 9px;
  border: 1px solid transparent; background: transparent;
  font-size: 13px; color: var(--muted);
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.chip:hover { color: var(--text); background: var(--panel-2); }
.chip[aria-pressed="true"] {
  color: var(--text); background: var(--panel-2); border-color: var(--line-strong);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none; height: 34px; padding: 0 32px 0 12px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2);
  font-size: 13px; color: var(--text-2); cursor: pointer; outline: 0;
}
.select-wrap select:hover { border-color: var(--line-strong); color: var(--text); }
.select-wrap svg { position: absolute; right: 10px; width: 12px; height: 12px; color: var(--muted); pointer-events: none; }

.filters-sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.filters-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.result-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.result-count b { color: var(--text); font-weight: 600; }

/* ---------- Startup cards ---------- */

.catalog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.startup-card {
  position: relative; display: flex; flex-direction: column;
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  min-height: 286px;
  overflow: hidden;
}
.startup-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px 160px at 50% 0%, rgba(90, 242, 198, 0.1), transparent 70%);
  transition: opacity 0.3s;
}
.startup-card:hover {
  transform: translateY(-3px); border-color: var(--line-strong);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.startup-card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.logo-tile {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: #04121f;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 20px -10px var(--c1);
}
.logo-tile.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 27px; }

.card-badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 10px; font-weight: 560; color: var(--text-2); letter-spacing: 0.01em;
  background: var(--panel-2); white-space: nowrap;
}
.badge.mint { color: var(--mint); border-color: rgba(90, 242, 198, 0.3); background: rgba(90, 242, 198, 0.08); }
.badge.violet { color: var(--violet); border-color: rgba(167, 139, 250, 0.3); background: rgba(167, 139, 250, 0.08); }
.badge.sun { color: var(--sun); border-color: rgba(255, 196, 107, 0.3); background: rgba(255, 196, 107, 0.08); }

.vote-btn {
  margin-left: auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 2px 6px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2);
  font-size: 11px; font-weight: 600; line-height: 1;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
  flex: none;
}
.vote-btn svg { width: 13px; height: 13px; margin-bottom: 3px; }
.vote-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.vote-btn.is-voted { color: var(--accent-ink); background: var(--mint); border-color: transparent; }
.vote-btn.lg { flex-direction: row; height: 44px; min-width: 96px; gap: 7px; font-size: 13px; border-radius: 12px; }
.vote-btn.lg svg { margin: 0; width: 15px; height: 15px; }

.card-title { font-size: 19px; letter-spacing: -0.025em; margin-bottom: 6px; }
.card-title a:hover { color: var(--mint); }
[data-theme="light"] .card-title a:hover { color: var(--accent); }
.card-tagline { font-size: 13.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.card-meta .stage { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .stage i { width: 6px; height: 6px; border-radius: 50%; background: var(--stage, var(--mint)); }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.card-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: auto; padding-top: 16px;
}
.card-metric b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-metric span { display: block; margin-top: 2px; font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.ask-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.ask-pill svg { width: 13px; height: 13px; color: var(--mint); }
[data-theme="light"] .ask-pill svg { color: var(--accent); }
.save-btn { color: var(--faint); }
.save-btn:hover { color: var(--sun); }
.save-btn.is-saved { color: var(--sun); }
.save-btn.is-saved svg { fill: currentColor; }
.save-btn svg { width: 16px; height: 16px; }

/* ---------- Empty state ---------- */

.empty {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); position: relative; overflow: hidden;
}
.step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--mint); }
.step h3 { font-size: 20px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }
.step-icon {
  position: absolute; right: 18px; top: 18px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--panel-2); color: var(--mint);
}
.step-icon svg { width: 20px; height: 20px; }

/* ---------- Partners marquee ---------- */

.marquee {
  overflow: hidden; position: relative; padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.partner-chip i {
  width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(140deg, var(--mint), var(--cyan));
}

/* ---------- Events ---------- */

.event-list { display: flex; flex-direction: column; gap: 10px; }
.event-row {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 22px;
  padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.event-row:hover { border-color: var(--line-strong); transform: translateX(3px); }
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.event-date b { display: block; font-size: 26px; font-weight: 620; line-height: 1; letter-spacing: -0.02em; }
.event-date span { display: block; margin-top: 5px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.event-body h3 { font-size: 17px; margin-bottom: 4px; }
.event-body p { font-size: 13px; color: var(--muted); }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.event-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 32px;
  padding: 48px; border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 240px at 10% 0%, rgba(90, 242, 198, 0.16), transparent 70%),
    radial-gradient(500px 240px at 90% 100%, rgba(167, 139, 250, 0.16), transparent 70%),
    var(--panel);
}
.cta-banner h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.cta-banner p { color: var(--text-2); max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 300px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--text-2); transition: color 0.18s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
}
.footer-word {
  font-size: clamp(48px, 10vw, 120px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.9;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: 40px; user-select: none;
}
[data-theme="light"] .footer-word { background: linear-gradient(180deg, rgba(10, 20, 36, 0.12), transparent 80%); -webkit-background-clip: text; background-clip: text; }
.footer-note { font-size: 11px; color: var(--faint); max-width: 560px; line-height: 1.5; }

/* ---------- Breadcrumb / page header ---------- */

.page-head { padding: 44px 0 28px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 11px; height: 11px; opacity: 0.6; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.04em; margin-bottom: 12px; }
.page-head p { color: var(--text-2); max-width: 620px; font-size: 16px; }

/* ---------- Startup detail ---------- */

.detail-hero { padding: 8px 0 30px; }
.detail-top { display: flex; gap: 22px; align-items: flex-start; }
.detail-title { flex: 1; min-width: 0; }
.detail-title h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 10px; }
.detail-tagline { font-size: 18px; color: var(--text-2); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }

.panel {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel);
}
.panel h2 { font-size: 15px; letter-spacing: 0.02em; margin-bottom: 14px; }
.panel h2.eyebrow-h { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.panel p { font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.panel p + p { margin-top: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-box {
  padding: 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2);
}
.metric-box b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.metric-box span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

.ask-card {
  padding: 20px; border-radius: var(--radius); border: 1px solid rgba(90, 242, 198, 0.28);
  background: linear-gradient(160deg, rgba(90, 242, 198, 0.1), rgba(90, 242, 198, 0.02));
}
[data-theme="light"] .ask-card { border-color: rgba(12, 159, 122, 0.25); background: linear-gradient(160deg, rgba(12, 159, 122, 0.08), rgba(12, 159, 122, 0.01)); }
.ask-card .ask-type { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
[data-theme="light"] .ask-card .ask-type { color: var(--accent); }
.ask-card h3 { font-size: 19px; margin-bottom: 6px; }
.ask-card p { font-size: 13px; color: var(--text-2); }
.ask-card .btn { margin-top: 16px; }

.founder-card { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 650; color: #04121f;
  background: linear-gradient(140deg, var(--c1), var(--c2));
}
.avatar.lg { width: 56px; height: 56px; font-size: 16px; }
.founder-card b { display: block; font-size: 14px; }
.founder-card span { display: block; font-size: 12px; color: var(--muted); }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: 11.5px; color: var(--text-2);
}
.tag.mint { color: var(--mint); border-color: rgba(90, 242, 198, 0.28); background: rgba(90, 242, 198, 0.07); }

.link-list { display: flex; flex-direction: column; gap: 2px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.link-list a:last-child { border-bottom: 0; }
.link-list a:hover { color: var(--text); }
.link-list svg { width: 13px; height: 13px; color: var(--faint); }

.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item { display: flex; align-items: center; gap: 11px; }
.related-item .logo-tile { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.related-item b { display: block; font-size: 13px; font-weight: 560; }
.related-item span { display: block; font-size: 11px; color: var(--muted); }

/* ---------- Wave page ---------- */

.wave-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 40px; border-radius: var(--radius-xl); border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(90, 242, 198, 0.14), transparent 70%),
    radial-gradient(500px 240px at 100% 100%, rgba(167, 139, 250, 0.14), transparent 70%),
    var(--panel);
  margin-bottom: 30px;
}
.wave-hero h1 { font-size: clamp(34px, 4.6vw, 60px); margin: 14px 0 12px; }
.wave-hero p { color: var(--text-2); max-width: 460px; }
.wave-hero .countdown { margin-top: 26px; }
.wave-hero .countdown-unit b { font-size: 42px; }
.wave-hero .countdown-unit { min-width: 74px; }
.wave-hero .countdown-unit span { font-size: 10px; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.podium-card {
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); text-align: left; position: relative;
}
.podium-card.first { border-color: rgba(255, 196, 107, 0.4); background: linear-gradient(170deg, rgba(255, 196, 107, 0.12), var(--panel) 60%); }
.podium-card:nth-child(1) { order: 2; }
.podium-card:nth-child(2) { order: 1; }
.podium-card:nth-child(3) { order: 3; }
.podium-rank { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.2em; }
.podium-card .logo-tile { margin: 12px 0; }
.podium-card h3 { font-size: 18px; }
.podium-card p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.podium-votes { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.podium-votes b { color: var(--text); }

.leaderboard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.lb-row {
  display: grid; grid-template-columns: 54px 1fr 150px 110px 92px; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: var(--panel-2); }
.lb-head { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); background: transparent; }
.lb-rank { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lb-startup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lb-startup .logo-tile { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
.lb-startup b { display: block; font-size: 13.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-startup span { display: block; font-size: 11px; color: var(--muted); }
.lb-delta { font-family: var(--mono); font-size: 12px; }
.lb-delta.up { color: var(--mint); }
.lb-delta.down { color: var(--rose); }
.lb-votes { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Map ---------- */

.map-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) 360px; gap: 22px; align-items: start; }
.map-panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, rgba(90, 242, 198, 0.05), transparent 70%), var(--panel);
  overflow: hidden; padding: 12px;
}
.map-panel svg { width: 100%; height: auto; }
.map-outline { fill: rgba(90, 242, 198, 0.035); stroke: rgba(90, 242, 198, 0.25); stroke-width: 1.2; }
[data-theme="light"] .map-outline { fill: rgba(12, 159, 122, 0.06); stroke: rgba(12, 159, 122, 0.3); }
.map-river { fill: none; stroke: rgba(102, 201, 255, 0.28); stroke-width: 1.4; stroke-dasharray: 4 4; }
.map-grid line { stroke: rgba(255, 255, 255, 0.04); }
[data-theme="light"] .map-grid line { stroke: rgba(10, 20, 36, 0.05); }
.map-pin { cursor: pointer; }
.map-pin circle.core { fill: var(--mint); }
.map-pin circle.halo { fill: rgba(90, 242, 198, 0.14); }
.map-pin text { fill: var(--text-2); font-size: 11px; font-family: var(--font); }
.map-pin:hover circle.core { fill: #fff; }
.map-pin .count { fill: var(--accent-ink); font-size: 9px; font-weight: 700; font-family: var(--mono); }
.map-caption { position: absolute; left: 18px; bottom: 14px; font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }

.district-list { display: flex; flex-direction: column; gap: 4px; max-height: 560px; overflow: auto; padding-right: 4px; }
.district-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; text-align: left; font-size: 13.5px; color: var(--text-2);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.district-btn:hover { background: var(--panel-2); color: var(--text); }
.district-btn.is-active { background: var(--panel-2); border-color: var(--line-strong); color: var(--text); }
.district-btn .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.district-btn .arctic-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }

/* ---------- People ---------- */

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person-card {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); transition: border-color 0.2s, transform 0.2s;
}
.person-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.person-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.person-card h3 { font-size: 16px; }
.person-card .role { font-size: 12px; color: var(--muted); }
.person-card .org { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.person-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.person-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.person-ticket { font-size: 12px; color: var(--text-2); }
.person-ticket span { display: block; font-size: 10px; color: var(--faint); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.status-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status-dot.open i { background: var(--mint); box-shadow: 0 0 8px rgba(90, 242, 198, 0.7); }

/* ---------- Forms ---------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.form-panel { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.form-aside { position: sticky; top: 92px; }

.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.step-dot {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
}
.step-dot i {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; font-style: normal;
}
.step-dot.is-active { color: var(--text); }
.step-dot.is-active i { background: var(--mint); color: var(--accent-ink); border-color: transparent; }
.step-dot.is-done i { background: var(--accent-soft); color: var(--mint); border-color: rgba(90, 242, 198, 0.4); }
.step-line { flex: 1; height: 1px; background: var(--line); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 7px; font-weight: 520; }
.field label .req { color: var(--rose); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  font-size: 14px; outline: 0; transition: border-color 0.18s, background 0.18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(90, 242, 198, 0.6); background: var(--panel); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field .hint { margin-top: 5px; font-size: 11px; color: var(--faint); }
.field .error { display: none; margin-top: 5px; font-size: 11.5px; color: var(--rose); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: rgba(251, 113, 133, 0.6); }
.field.is-invalid .error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.checkbox input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--mint); flex: none; }
.checkbox a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions .btn-primary { margin-left: auto; }

.success-panel { text-align: center; padding: 48px 24px; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--mint); border: 1px solid rgba(90, 242, 198, 0.35);
}
.success-icon svg { width: 28px; height: 28px; }
.success-panel h2 { font-size: 28px; margin-bottom: 10px; }
.success-panel p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }

/* ---------- Preview card ---------- */

.preview-card {
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); position: relative;
}
.preview-label { position: absolute; top: -9px; left: 16px; padding: 2px 8px; border-radius: 5px; background: var(--panel-solid); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* ---------- About / FAQ ---------- */

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.about-grid h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.about-grid p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.principle { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.principle:last-child { border-bottom: 0; }
.principle .num { font-family: var(--mono); font-size: 11px; color: var(--mint); padding-top: 3px; }
.principle b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.principle span { font-size: 13px; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 2px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 520;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s; flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: 13.5px; max-width: 640px; }

/* ---------- Moderation ---------- */

.mod-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel);
}
.mod-row b { font-size: 14px; }
.mod-row p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mod-actions { display: flex; gap: 6px; }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(2, 4, 9, 0.72); backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
[data-theme="light"] .modal-overlay { background: rgba(10, 20, 36, 0.4); }
@keyframes fadeIn { from { opacity: 0; } }

.modal {
  width: 100%; max-width: 500px; max-height: 86vh; overflow: auto;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--panel-solid); box-shadow: var(--shadow);
  animation: modalIn 0.28s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal h2 { font-size: 22px; }
.modal .modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.modal .form-actions { margin-top: 18px; }

/* ---------- Toast ---------- */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--panel-solid); box-shadow: var(--shadow);
  font-size: 13px; animation: toastIn 0.3s var(--ease);
  max-width: 360px;
}
.toast svg { width: 16px; height: 16px; color: var(--mint); flex: none; }
.toast.leaving { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { order: -1; justify-content: flex-start; }
  .radar { width: min(100%, 360px); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .map-layout { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wave-card { grid-template-columns: 1fr auto; }
  .wave-card .countdown { grid-row: 2; }
  .wave-hero { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header-search { display: none; }
  .burger { display: inline-flex; }
  .site-header.menu-open { background: var(--bg); }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
    padding: 18px 24px 26px; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px);
    display: none;
  }
  .mobile-menu.is-open { display: block; animation: fadeIn 0.18s ease; }
  .mobile-menu a { display: block; padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
  .hero h1 { font-size: clamp(42px, 12vw, 64px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .lb-row { grid-template-columns: 38px 1fr 70px 70px; }
  .lb-row .lb-delta, .lb-row .lb-stage { display: none; }
  .lb-head { display: none; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .event-row { grid-template-columns: 64px 1fr; }
  .event-cta { grid-column: 2; }
  .event-date { border-right: 0; padding-right: 0; }
  .detail-top { flex-wrap: wrap; }
  .podium { grid-template-columns: 1fr; }
  .podium-card:nth-child(1), .podium-card:nth-child(2), .podium-card:nth-child(3) { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 0 18px; gap: 12px; }
  .brand-name span { display: none; }
  .hero { padding: 34px 0 20px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-lead { font-size: 15.5px; }
  .hero-search { flex-direction: column; padding: 12px; gap: 10px; align-items: stretch; }
  .hero-search svg { display: none; }
  .hero-search input { height: 40px; padding: 0 4px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .wave-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .countdown-unit b { font-size: 22px; }
  .wave-hero { padding: 24px; }
  .wave-hero .countdown-unit b { font-size: 30px; }
  .wave-hero .countdown-unit { min-width: 56px; }
  .cta-banner { padding: 26px; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .detail-actions .btn { flex: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .filters { padding: 10px; }
  .filters-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .section { padding: 52px 0; }
  .step { padding: 22px; }
  .event-row { padding: 16px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(10, 20, 36, 0.15); }

/* ---------- Дополнения ---------- */

.is-hidden { display: none !important; }

option { background: var(--panel-solid); color: var(--text); }

@media (max-width: 860px) {
  .header-cta { display: none; }
  .hero-visual { order: 0; }
}

.roadmap-row { grid-template-columns: 70px 1.2fr 1fr 1.4fr; }
.roadmap-row .lb-rank { align-self: start; padding-top: 2px; }

@media (max-width: 760px) {
  .roadmap-row { grid-template-columns: 46px 1fr; row-gap: 5px; }
  .roadmap-row > .muted { grid-column: 2; }
}

.map-pin { outline: none; }
.map-pin.is-active circle.core { fill: var(--sun); }
.map-pin.is-active circle.halo { fill: rgba(255, 196, 107, 0.2); }
.map-pin.is-active text { fill: var(--text); font-weight: 600; }
.map-pin:focus-visible circle.halo { stroke: var(--mint); stroke-width: 1.5; }

.detail-meta .tag svg { width: 12px; height: 12px; }

.header-actions .btn-sm svg { width: 15px; height: 15px; }

.preview-card .card-metrics { padding-top: 12px; }
.preview-card .card-tagline { min-height: 0; }

.ask-card .btn svg, .panel .btn svg { width: 15px; height: 15px; }

.filters + .catalog-grid { margin-top: 2px; }

/* Плавное появление карточек при смене фильтра */
.catalog-grid .startup-card.reveal { opacity: 1; transform: none; }
.catalog-grid .startup-card.reveal:not(.in) { opacity: 1; }

/* Мобильная типографика */
@media (max-width: 620px) {
  .hero-stats { margin-top: 30px; }
  .hero-stat b { font-size: 19px; }
  .detail-title h1 { font-size: 30px; }
  .wave-hero h1 { font-size: 32px; }
  .page-head h1 { font-size: 32px; }
  .section-head h2 { font-size: 27px; }
  .cta-banner h2 { font-size: 28px; }
  .modal { padding: 22px; }
}

/* Мобильное меню по умолчанию скрыто на всех разрешениях */
.mobile-menu { display: none; }
.mobile-menu.is-open { display: block; }

/* Иконки внутри панелей не должны растягиваться */
.panel svg { width: 16px; height: 16px; flex: none; }
.ask-type svg { width: 14px; height: 14px; flex: none; }
.preview-label { z-index: 2; color: var(--mint); }

/* Список районов целиком */
.district-list { max-height: 640px; }

/* Статистика под картой */
.map-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 6px; padding: 16px 8px 4px; border-top: 1px solid var(--line);
}
.map-stat b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.map-stat span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.map-caption { position: static; padding: 8px 8px 2px; text-align: right; }
@media (max-width: 620px) {
  .map-stats { grid-template-columns: 1fr; }
}

/* Кнопки внутри мобильного меню не наследуют стили ссылок */
.mobile-menu a.btn {
  display: flex; padding: 0 20px; border-bottom: 0;
  font-size: 14px; width: 100%;
}
@media (max-width: 860px) {
  .mobile-menu { max-height: calc(100vh - var(--header-h)); overflow: auto; }
}

/* Мобильные фильтры: горизонтальные чипы + сетка селектов */
@media (max-width: 860px) {
  .filters-sep { display: none; }
}
@media (max-width: 620px) {
  .filters {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px;
  }
  .filters .chip-row {
    grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: 4px; scrollbar-width: none;
  }
  .filters .chip-row::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
  .filters .select-wrap { width: 100%; }
  .filters .select-wrap select { width: 100%; }
  .filters .filters-right { grid-column: 1 / -1; margin-left: 0; width: 100%; }
  .filters .filters-right .select-wrap { flex: 1; }
  .filters .filters-right .btn { flex: none; }
}
@media (max-width: 620px) {
  .filters .filter-ask { grid-column: 1 / -1; }
}

/* Подпись карты — в левом верхнем углу, чтобы не спорить со статистикой */
.map-caption {
  position: absolute; top: 12px; left: 18px; bottom: auto; right: auto;
  padding: 0; text-align: left;
}
@media (max-width: 620px) {
  .filters .chip-row {
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
}

/* На средних экранах убираем поиск из шапки, чтобы не теснить навигацию */
@media (max-width: 1120px) {
  .header-search { display: none; }
}

/* На планшетах радар уступает место тексту */
@media (max-width: 1080px) {
  .hero-visual { display: none; }
}

/* ---------- Тестовый режим и загрузка ---------- */

.test-banner {
  border-bottom: 1px solid rgba(255, 196, 107, 0.25);
  background: rgba(255, 196, 107, 0.08);
  font-size: 12px;
  color: var(--text-2);
}
.test-banner-inner {
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding-top: 7px; padding-bottom: 7px;
}
.test-banner b { color: var(--sun); }
.test-banner code {
  padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono); font-size: 11px;
}
.test-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.test-banner .icon-btn { margin-left: auto; width: 28px; height: 28px; }
.test-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px rgba(255, 196, 107, 0.7); flex: none; }

.loading-panel {
  display: flex; align-items: center; gap: 16px;
  padding: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.loading-panel b { display: block; font-size: 15px; }
.loading-panel span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.loading-spinner {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-strong); border-top-color: var(--mint);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Лидерборд без колонки дельты */
.lb-row { grid-template-columns: 54px 1fr 150px 92px; }
@media (max-width: 860px) {
  .lb-row { grid-template-columns: 38px 1fr 70px; }
  .lb-row .lb-stage { display: none; }
}

@media (max-width: 860px) {
  .lb-row.roadmap-row { grid-template-columns: 46px 1fr; }
}
@media (max-width: 620px) {
  .test-banner-inner { flex-wrap: wrap; gap: 6px; }
  .test-banner .icon-btn { margin-left: auto; }
}

/* ---------- Витрина: режимы, задачи, работа ---------- */

.mode-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.mode-tab {
  padding: 8px 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 13px; transition: background .18s, color .18s;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.request-preview { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.request-line { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
.request-line:hover { border-color: var(--line-strong); }
.request-line b { display: block; font-size: 12.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.request-line span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card-problem {
  display: flex; align-items: flex-start; gap: 6px; margin: 0 0 10px;
  font-size: 11.5px; line-height: 1.4; color: var(--sun);
}
.card-problem svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.card-effect {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 10px;
  font-size: 11.5px; line-height: 1.4; color: var(--mint);
}
[data-theme="light"] .card-effect { color: var(--accent); }
.card-effect svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.vacancy-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.card-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.card-cta:hover { color: var(--text); }
.card-cta svg { width: 12px; height: 12px; }

.request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.request-card {
  display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
}
.request-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.request-company { font-size: 11px; color: var(--muted); }
.request-card h3 { font-size: 18px; margin-bottom: 8px; }
.request-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.request-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; font-size: 11.5px; color: var(--muted); }
.request-meta span { display: inline-flex; align-items: center; gap: 5px; }
.request-meta svg { width: 13px; height: 13px; }
.request-card .btn { margin-top: auto; align-self: flex-start; }

.jobs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.job-card {
  display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
}
.job-top { display: flex; align-items: flex-start; gap: 12px; }
.job-top .logo-tile { flex: none; }
.job-top h3 { font-size: 18px; margin-bottom: 3px; }
.job-company { font-size: 12px; color: var(--muted); }
.job-salary { margin-left: auto; font-size: 12px; color: var(--mint); white-space: nowrap; }
[data-theme="light"] .job-salary { color: var(--accent); }
.job-card > p { margin-top: 12px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }

.solution-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.solution-step { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.solution-step span { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.solution-step b { font-size: 13px; font-weight: 560; line-height: 1.4; }

.case-list { display: flex; flex-direction: column; gap: 10px; }
.case-item { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case-top b { font-size: 13px; }
.case-top span { font-size: 11px; color: var(--muted); }
.case-item p { margin-top: 4px; font-size: 12px; color: var(--muted); }

.vacancy-list { display: flex; flex-direction: column; gap: 10px; }
.vacancy-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2);
}
.vacancy-row b { font-size: 13.5px; }
.vacancy-row p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.vacancy-row .btn { flex: none; }

@media (max-width: 860px) {
  .request-grid, .jobs-grid { grid-template-columns: 1fr; }
  .solution-steps { grid-template-columns: 1fr; }
  .job-salary { white-space: normal; text-align: right; }
}
@media (max-width: 620px) {
  .mode-switch { width: 100%; }
  .mode-tab { flex: 1; padding: 8px 6px; font-size: 12px; }
  .request-card, .job-card { padding: 17px; }
  .vacancy-row { flex-direction: column; }
}

.startup-card .card-top .save-btn { margin-left: auto; }

/* ---------- Админка ---------- */

.admin-page { padding-bottom: 80px; }
.admin-loading { padding: 80px 0; text-align: center; color: var(--muted); font-size: 13px; }
.admin-login { max-width: 430px; margin: 40px auto; padding: 28px; }
.admin-login h1 { font-size: 30px; margin: 8px 0 10px; }
.admin-login > p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
.admin-login-error { min-height: 20px; margin: 8px 0; color: #FF8A8A; font-size: 12px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-head h1 { font-size: 34px; margin-top: 4px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.admin-tab { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 12px; }
.admin-tab:hover { color: var(--text); }
.admin-tab.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-stat { padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.admin-stat b { display: block; font-size: 25px; line-height: 1; }
.admin-stat span { display: block; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.admin-stat.sun b { color: var(--sun); }
.admin-stat.violet b { color: var(--violet); }
.admin-stat.muted b { color: var(--muted); }
.admin-content { margin-top: 4px; }
.admin-two { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-panel-head h2 { font-size: 16px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th { text-align: left; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--text-2); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td b { color: var(--text); font-weight: 560; }
.admin-muted { color: var(--muted); font-size: 10.5px; line-height: 1.4; margin-top: 3px; }
.admin-empty { padding: 26px 14px !important; text-align: center; color: var(--muted); font-size: 12px; }
.admin-select { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 11px; max-width: 150px; }
.admin-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.admin-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: 9.5px; color: var(--muted); }
.admin-badge.muted { color: var(--faint); }
.admin-audit { display: flex; flex-direction: column; gap: 7px; }
.admin-audit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.admin-audit-row b { color: var(--text-2); font-weight: 500; }
.admin-audit-row span:first-child { grid-column: 1 / -1; color: var(--faint); font-size: 9.5px; }
.admin-note { margin-top: 16px; color: var(--faint); font-size: 10.5px; line-height: 1.5; }
.admin-page .panel { padding: 16px; }

@media (max-width: 980px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-head h1 { font-size: 28px; }
  .admin-login { margin: 16px auto; padding: 20px; }
}

/* ---------- Обратная связь ---------- */

.feedback-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.feedback-card { padding: 22px; }
.feedback-types { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); margin-bottom: 10px; }
.feedback-type { flex: 1; border: 0; border-radius: 8px; padding: 9px 10px; background: transparent; color: var(--muted); font-size: 12px; }
.feedback-type:hover { color: var(--text); }
.feedback-type.is-active { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.feedback-hint { font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }
.feedback-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.feedback-side { padding: 20px; }
.feedback-side ul { margin: 12px 0; padding-left: 17px; display: flex; flex-direction: column; gap: 9px; }
.feedback-side li { font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
.feedback-side li b { color: var(--text); font-weight: 560; }
.feedback-success { text-align: center; padding: 30px 12px; }
.feedback-success .step-icon { margin: 0 auto 12px; }
.feedback-success h2 { font-size: 22px; margin-bottom: 8px; }
.feedback-success p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.feedback-card input[readonly] { color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .feedback-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feedback-type { padding: 8px 4px; font-size: 11px; }
  .feedback-card { padding: 17px; }
}

/* ---------- Авторизация и кабинет ---------- */

.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text-2); font-size: 12px; max-width: 150px; }
.user-chip:hover { border-color: var(--line-strong); color: var(--text); }
.user-chip .avatar { width: 24px; height: 24px; font-size: 9px; }
.user-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-login { padding: 7px 13px; }
.auth-layout, .account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.auth-card { padding: 22px; }
.auth-provider-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.auth-provider-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent); }
.auth-provider-icon svg { width: 18px; height: 18px; }
.auth-provider-head b { display: block; font-size: 15px; }
.auth-provider-head span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.auth-status { margin-top: 12px; }
.auth-wait { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.auth-wait b { font-size: 12.5px; }
.auth-wait span { font-size: 11px; color: var(--muted); line-height: 1.45; }
.auth-error { color: #FF8A8A; font-size: 11.5px; }
.auth-disabled { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.auth-disabled code, .admin-login code { color: var(--text-2); font-size: 10.5px; }
.auth-divider { margin: 18px 0 10px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.auth-provider-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.auth-provider-btn { display: flex; justify-content: space-between; font-size: 11px; opacity: .55; }
.auth-provider-btn span { color: var(--faint); font-size: 9.5px; }
.auth-side { padding: 20px; }
.auth-side ul { margin: 12px 0; padding-left: 17px; display: flex; flex-direction: column; gap: 8px; }
.auth-side li { font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
.auth-gate { max-width: 520px; margin: 24px auto; padding: 30px; text-align: center; }
.auth-gate h1 { font-size: 30px; margin: 12px 0 8px; }
.auth-gate p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.auth-gate .step-icon { margin: 0 auto; }
.auth-gate-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.account-card { padding: 20px; }
.account-user { display: flex; align-items: center; gap: 12px; }
.account-user h2 { font-size: 19px; }
.account-user p { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.account-submissions { padding: 20px; }
.account-submission { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.account-submission:last-child { border-bottom: 0; }
.account-submission b { display: block; font-size: 12.5px; }
.account-submission span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.account-submission .tag { flex: none; font-size: 9.5px; }

@media (max-width: 980px) {
  .auth-layout, .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .user-chip span:last-child { display: none; }
  .user-chip { padding: 4px; }
}

/* Шапка с авторизацией: не даём пунктам меню переноситься */
.nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav, .header-search { display: none; }
  .burger { display: inline-flex; }
}

.telegram-widget { min-height: 46px; margin: 8px 0 4px; }
.telegram-widget iframe { border-radius: 10px !important; }

/* ---------- Напоминание о Telegram ---------- */

.notify-wrap { margin-top: 18px; }
.notify-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text-2); font-size: 12px; }
.notify-strip span { display: inline-flex; align-items: center; gap: 7px; }
.notify-strip svg { width: 15px; height: 15px; color: var(--accent); }
.notify-card { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); }
.notify-card-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); margin-bottom: 6px; }
.notify-card-head svg { width: 15px; height: 15px; color: var(--accent); }
.notify-card p { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.notify-connected { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 11px; color: var(--mint); }
.notify-connected svg { width: 13px; height: 13px; }
.auth-email-form { margin-top: 2px; }
.auth-email-form .btn-block + .btn-block { margin-top: 7px; }
.auth-email-form .field { margin-bottom: 10px; }
.auth-email-form .checkbox { margin: 4px 0 8px; }

/* ---------- Админка: формы и панель ---------- */

.admin-toolbar { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; }
.admin-edit-form .field { margin-bottom: 10px; }
.admin-edit-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-edit-form .field-row .field { margin-bottom: 0; }
.admin-edit-form .field label { font-size: 10.5px; }
.admin-edit-form .field input, .admin-edit-form .field select, .admin-edit-form .field textarea { font-size: 12px; }
.admin-edit-form .form-actions { margin-top: 14px; }
#modal-root:has(.admin-edit-form) .modal { max-width: 760px; max-height: 90vh; overflow-y: auto; }
@media (max-width: 620px) {
  .admin-edit-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .admin-edit-form .field-row .field { margin-bottom: 10px; }
}
