/* ==========================================================================
   SPLASH — премиальная платформа соревнований по плаванию
   Дизайн-система: «Deep Water». Тёмный океан, аква-акцент, золото пьедестала.
   ========================================================================== */

@import url("/static/fonts/fonts.css");

:root {
  /* Палитра — «Deep Water» (глубокий тёмный океан, фон на два тона светлее) */
  --abyss-950: #060b14;
  --abyss-900: #0a111c;
  --abyss-850: #0c1521;
  --abyss-800: #0e1727;
  --abyss-750: #0d1829;
  --abyss-700: #101b2e;
  --abyss-650: #14223a;
  --line: #1e2c42;
  --line-soft: rgba(126, 166, 214, 0.14);
  --mist-400: #8fa3ba;
  --mist-300: #a9bbcf;
  --foam-50: #f2f7ff;
  --aqua-300: #7deeff;
  --aqua-400: #35e0ff;
  --aqua-500: #12c9ef;
  --aqua-700: #0fa8c9;
  --ice-200: #8af0ff;
  --gold-300: #e9c784;
  --gold-400: #d9b05c;
  --coral-500: #ff5a47;
  --mint-400: #2bd98a;
  --violet-400: #8a7dff;
  --danger: #ff5a47;
  --success: #2bd98a;
  --warning: #e9c784;

  /* Типографика */
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  /* Пространство */
  --container: 1240px;
  --radius-xs: 4px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-3: 0 24px 64px -24px rgba(0, 0, 0, 0.65);
  --glow-aqua: 0 0 0 1px rgba(53, 224, 255, 0.25), 0 12px 40px -12px rgba(53, 224, 255, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--abyss-950);
  color: var(--foam-50);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(53, 224, 255, 0.10), transparent 60%),
    radial-gradient(900px 520px at 95% 0%, rgba(138, 125, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #060b14 0%, #08101b 40%, #060b14 100%);
}

body > * { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; }
a { color: var(--ice-200); text-decoration: none; }
a:hover { color: var(--aqua-300); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: rgba(53, 224, 255, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ice-200);
  outline-offset: 2px;
  border-radius: 6px;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.display { font-family: var(--font-display); letter-spacing: -0.02em; }
.muted { color: var(--mist-400); }
.faint { color: #64788f; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.lead { font-size: 19px; line-height: 1.62; color: var(--mist-300); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--aqua-400);
}
.accent { color: var(--aqua-400); }
.gold { color: var(--gold-300); }
.danger { color: var(--danger); }
.success { color: var(--success); }
.hidden { display: none !important; }
.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: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--aqua-400); color: #001018; padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------- layout */

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 880px); margin-inline: auto; }
.container-wide { width: min(100% - 32px, 1560px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 0; }
.section-head .lead { max-width: 620px; margin: 10px 0 0; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 32px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.94), rgba(6, 11, 20, 0.78));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; color: var(--foam-50); }
.brand:hover { color: var(--foam-50); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-sub { font-family: var(--font-ui); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; color: var(--mist-400); text-transform: uppercase; display: block; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  color: var(--mist-300); font-size: 14px; font-weight: 500; border-radius: var(--radius-pill);
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--foam-50); background: rgba(255, 255, 255, 0.06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.user-chip:hover { border-color: var(--aqua-700); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, var(--aqua-500), var(--violet-400));
  color: #00121a;
}
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ------------------------------------------------------------- buttons */

.btn {
  --btn-bg: transparent; --btn-fg: var(--foam-50); --btn-border: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--btn-border); border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform 0.16s var(--ease-ui), background 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--aqua-400), var(--aqua-500));
  --btn-fg: #00131c; --btn-border: transparent;
  box-shadow: var(--glow-aqua);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(53, 224, 255, 0.4), 0 16px 48px -12px rgba(53, 224, 255, 0.55); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.07); border-color: #2c405c; }
.btn-outline { --btn-border: rgba(53, 224, 255, 0.45); --btn-fg: var(--aqua-300); }
.btn-outline:hover { --btn-bg: rgba(53, 224, 255, 0.08); }
.btn-gold { --btn-bg: linear-gradient(135deg, var(--gold-300), var(--gold-400)); --btn-fg: #1d1403; --btn-border: transparent; }
.btn-danger { --btn-border: rgba(255, 90, 71, 0.45); --btn-fg: #ff9d92; }
.btn-danger:hover { --btn-bg: rgba(255, 90, 71, 0.1); }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: 13px; gap: 7px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn-icon { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--aqua-400); }
.link-arrow::after { content: "→"; transition: transform 0.18s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------- chips */

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 28px; padding: 3px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--mist-300);
  white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip-aqua { color: var(--aqua-300); border-color: rgba(53, 224, 255, 0.32); background: rgba(53, 224, 255, 0.07); }
.chip-gold { color: var(--gold-300); border-color: rgba(233, 199, 132, 0.32); background: rgba(233, 199, 132, 0.07); }
.chip-mint { color: var(--mint-400); border-color: rgba(43, 217, 138, 0.32); background: rgba(43, 217, 138, 0.07); }
.chip-coral { color: #ff9d92; border-color: rgba(255, 90, 71, 0.35); background: rgba(255, 90, 71, 0.08); }
.chip-muted { color: var(--mist-400); }
.chip-live { animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 71, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 90, 71, 0); }
}

/* ------------------------------------------------------------- cards */

.card {
  background: linear-gradient(180deg, rgba(16, 27, 46, 0.72), rgba(9, 17, 32, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.card-lg { padding: 32px; border-radius: var(--radius-lg); }
.card-flat { background: rgba(11, 19, 34, 0.55); }
.card-hover { transition: transform 0.22s var(--ease-ui), border-color 0.22s, box-shadow 0.22s; }
.card-hover:hover { transform: translateY(-3px); border-color: #2b405e; box-shadow: var(--shadow-2); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.card-sub { color: var(--mist-400); font-size: 13px; margin: 4px 0 0; }
.glass {
  background: rgba(7, 12, 22, 0.62);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-2);
}
.panel {
  background: var(--abyss-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-body { padding: 22px; }
.panel-body.is-flush { padding: 0; }

/* ------------------------------------------------------------- hero (платформа) */

.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 0.98; letter-spacing: -0.03em; margin: 18px 0 22px;
}
.hero h1 .line-aqua {
  background: linear-gradient(100deg, var(--aqua-300), var(--aqua-500) 55%, var(--violet-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 560px; font-size: 19px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-proof { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-proof .num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--foam-50); }
.hero-proof .lbl { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist-400); }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -40px; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(53, 224, 255, 0.14), transparent 62%);
  filter: blur(10px);
}
.ocean-card {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(125, 238, 255, 0.18);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(53, 224, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #0a1a2f 0%, #06101d 55%, #040a12 100%);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px;
}
.ocean-card .water-top {
  height: 120px; margin: -28px -28px 22px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(53, 224, 255, 0.14), transparent);
}
.wave-lines { position: absolute; inset: 0; opacity: 0.7; }
.lane-rows { display: grid; gap: 10px; }
.lane-row { display: grid; grid-template-columns: 34px 1fr 92px; align-items: center; gap: 12px; font-size: 13px; }
.lane-row .num { font-family: var(--font-mono); color: var(--aqua-400); font-size: 12px; }
.lane-row .bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.lane-row .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--aqua-500), var(--aqua-300)); }
.lane-row .time { font-family: var(--font-mono); text-align: right; font-weight: 600; color: var(--foam-50); }
.live-tag {
  position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 90, 71, 0.14);
  border: 1px solid rgba(255, 90, 71, 0.35); color: #ffb0a7; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.live-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-500); animation: livePulse 1.6s infinite; }

/* ------------------------------------------------------------- stats / features */

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.stat-strip > div { background: var(--abyss-900); padding: 26px 24px; }
.stat-strip .num { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.stat-strip .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mist-400); margin-top: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 24, 41, 0.7), rgba(8, 14, 26, 0.7));
  transition: border-color 0.22s, transform 0.22s var(--ease-ui);
}
.feature:hover { border-color: rgba(53, 224, 255, 0.3); transform: translateY(-3px); }
.feature .icon-box {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(53, 224, 255, 0.16), rgba(138, 125, 255, 0.12));
  border: 1px solid rgba(53, 224, 255, 0.22); color: var(--aqua-300); margin-bottom: 20px;
}
.feature h3 { font-family: var(--font-ui); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.feature p { color: var(--mist-400); font-size: 14px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; left: 0; padding-right: 10px;
  background: var(--abyss-950);
  font-family: var(--font-mono); font-size: 12px; color: var(--aqua-400); letter-spacing: 0.08em;
}
.step h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--mist-400); margin: 0; }

/* ------------------------------------------------------------- pricing */

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgba(10, 18, 32, 0.7); }
.price-card.is-featured { border-color: rgba(53, 224, 255, 0.4); background: linear-gradient(180deg, rgba(20, 40, 62, 0.7), rgba(8, 14, 26, 0.85)); box-shadow: var(--glow-aqua); position: relative; }
.price-card.is-featured::before { content: "Выбор организаторов"; position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--aqua-400); color: #00131c; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.price-card h3 { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.01em; }
.price { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 4px; }
.price small { font-family: var(--font-ui); font-size: 13px; color: var(--mist-400); font-weight: 400; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--mist-300); }
.price-card li::before { content: "✓"; color: var(--aqua-400); font-weight: 700; flex: none; }

/* ------------------------------------------------------------- meet cards */

.meet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.meet-card { display: flex; flex-direction: column; position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--abyss-900); transition: transform 0.24s var(--ease-ui), border-color 0.24s; }
.meet-card:hover { transform: translateY(-4px); border-color: #2b405e; }
.meet-card .cover { height: 172px; position: relative; background: linear-gradient(140deg, #0c2036, #071120); overflow: hidden; }
.meet-card .cover .cover-art { position: absolute; inset: 0; opacity: 0.9; }
.meet-card .cover .cover-top { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.meet-card .body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.meet-card .title { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.meet-card .meta { display: grid; gap: 8px; font-size: 13px; color: var(--mist-400); }
.meet-card .meta span { display: flex; align-items: center; gap: 8px; }
.meet-card .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------------------------------------- public meet hero */

.meet-hero { position: relative; padding: 64px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.meet-hero-bg { position: absolute; inset: 0; opacity: 0.85; pointer-events: none; z-index: 0; }
.meet-hero > .container-wide { position: relative; z-index: 1; }
.meet-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--mist-400); margin-bottom: 22px; }
.meet-hero h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; max-width: 900px; margin: 14px 0 18px; }
.meet-hero .subtitle { font-size: 19px; color: var(--mist-300); max-width: 680px; margin-bottom: 28px; }
.meet-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.meta-pill { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(9, 17, 32, 0.7); font-size: 13px; color: var(--mist-300); }
.meta-pill strong { color: var(--foam-50); font-weight: 600; }
.meta-pill svg { color: var(--aqua-400); flex: none; }
.meet-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meet-stats { display: flex; gap: 32px; margin-top: 42px; flex-wrap: wrap; }
.meet-stats .num { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.meet-stats .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mist-400); margin-top: 4px; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; border-bottom: 1px solid var(--line); background: rgba(5, 9, 16, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.subnav .container-wide { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; height: 52px; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--mist-400); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--foam-50); }
.subnav a.is-active { color: var(--aqua-300); border-bottom-color: var(--aqua-400); }
.subnav a.btn { height: 38px; margin-left: auto; align-self: center; padding: 0 18px; border-bottom: 0; border-radius: var(--radius-pill); }
.subnav a.btn-primary, .subnav a.btn-primary:hover { color: #00131c; }
.subnav a.btn-ghost { color: var(--foam-50); }

/* ------------------------------------------------------------- program */

.day-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.day-tab { border: 1px solid var(--line); background: transparent; color: var(--mist-300); padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.18s; }
.day-tab:hover { border-color: var(--aqua-700); color: var(--foam-50); }
.day-tab.is-active { background: rgba(53, 224, 255, 0.1); border-color: rgba(53, 224, 255, 0.45); color: var(--aqua-300); }
.program-session { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; background: var(--abyss-900); }
.program-session .head { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; cursor: pointer; }
.program-session .head:hover { background: rgba(255, 255, 255, 0.02); }
.program-session .day-num { font-family: var(--font-display); font-size: 13px; color: var(--aqua-400); letter-spacing: 0.08em; }
.program-session .session-title { font-family: var(--font-ui); font-size: 16px; font-weight: 600; }
.program-session .session-meta { font-size: 12px; color: var(--mist-400); margin-top: 2px; }
.program-session .body { border-top: 1px solid var(--line); padding: 8px 0; }
.event-row { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 16px; align-items: center; padding: 11px 22px; font-size: 14px; border-bottom: 1px solid rgba(126, 166, 214, 0.06); }
.event-row:last-child { border-bottom: 0; }
.event-row:hover { background: rgba(53, 224, 255, 0.03); }
.event-row .no { font-family: var(--font-mono); color: var(--mist-400); font-size: 12px; }
.event-row .name { font-weight: 500; }
.event-row .age { color: var(--mist-400); font-size: 12px; }
.event-row .time { font-family: var(--font-mono); color: var(--mist-300); font-size: 12px; }

/* ------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--abyss-900); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 13px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--mist-400);
  background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid rgba(126, 166, 214, 0.08); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(53, 224, 255, 0.03); }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table .place { font-family: var(--font-mono); font-weight: 700; color: var(--mist-300); width: 56px; }
.table .place.p1 { color: var(--gold-300); }
.table .place.p2 { color: #cfd8e3; }
.table .place.p3 { color: #d8a779; }
.table .time { font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
.table .club { color: var(--mist-400); font-size: 13px; }
.table th.right, .table td.right { text-align: right; }
.table .row-accent td { background: rgba(53, 224, 255, 0.05); }
.table-flush { border: 0; border-radius: 0; }
.table-compact th, .table-compact td { padding: 9px 12px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--mist-300); }
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new { color: #ffce7a; background: rgba(233, 199, 132, 0.1); }
.status-confirmed, .status-paid, .status-active { color: var(--mint-400); background: rgba(43, 217, 138, 0.1); }
.status-rejected, .status-withdrawn { color: #ff9d92; background: rgba(255, 90, 71, 0.1); }
.status-draft { color: var(--mist-400); }
.status-published, .status-live { color: var(--aqua-300); background: rgba(53, 224, 255, 0.1); }
.status-finished, .status-entry_closed { color: var(--violet-400); background: rgba(138, 125, 255, 0.1); }

/* ------------------------------------------------------------- forms */

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--mist-300); letter-spacing: 0.01em; }
.label { font-size: 13px; font-weight: 600; color: var(--mist-300); letter-spacing: 0.01em; }
/* текст внутри кнопок не должен перекрашиваться классами подписей */
.btn .label { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; }
.field .hint { font-size: 12px; color: var(--faint); }
.field .error { font-size: 12px; color: #ff9d92; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: rgba(5, 10, 18, 0.7); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--foam-50); font-size: 15px; transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.input::placeholder, .textarea::placeholder { color: #5d7189; }
.input:hover, .select:hover, .textarea:hover { border-color: #2b3f5a; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(53, 224, 255, 0.55); box-shadow: 0 0 0 3px rgba(53, 224, 255, 0.12); background: rgba(7, 14, 25, 0.9); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238fa3ba' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.select option { background: #0b1322; color: var(--foam-50); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input.is-invalid, .select.is-invalid { border-color: rgba(255, 90, 71, 0.65); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-row-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--mist-300); cursor: pointer; }
.checkbox input, .radio input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--aqua-400); flex: none; cursor: pointer; }
.radio { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: rgba(5, 10, 18, 0.7); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mist-400); cursor: pointer; transition: 0.16s; }
.segmented input:checked + span { background: rgba(53, 224, 255, 0.14); color: var(--aqua-300); }
.form-note { font-size: 12px; color: var(--faint); margin-top: 4px; }
.consents { display: grid; gap: 12px; margin: 20px 0; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 14px; }
.alert-ok { border-color: rgba(43, 217, 138, 0.35); background: rgba(43, 217, 138, 0.07); color: #b6f4d6; }
.alert-err { border-color: rgba(255, 90, 71, 0.4); background: rgba(255, 90, 71, 0.07); color: #ffb8b0; }
.alert-warn { border-color: rgba(233, 199, 132, 0.35); background: rgba(233, 199, 132, 0.07); color: #f3dfb3; }
.alert-info { border-color: rgba(53, 224, 255, 0.3); background: rgba(53, 224, 255, 0.06); color: #b9f3ff; }

/* ------------------------------------------------------------- toasts */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; max-width: 380px; }
.toast {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(10, 18, 32, 0.96); border: 1px solid var(--line);
  box-shadow: var(--shadow-3); font-size: 14px; animation: toastIn 0.3s var(--ease-out);
}
.toast-ok { border-color: rgba(43, 217, 138, 0.4); }
.toast-err { border-color: rgba(255, 90, 71, 0.45); }
.toast .close { margin-left: auto; background: none; border: 0; color: var(--mist-400); cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- auth */

.auth-shell { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.auth-aside { position: relative; padding: 72px 64px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-right: 1px solid var(--line); }
.auth-aside .quote { font-size: 20px; line-height: 1.5; max-width: 520px; color: var(--mist-300); }
.auth-aside h2 { font-size: clamp(30px, 4vw, 48px); max-width: 560px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(100%, 420px); }
.auth-card h1 { font-size: 30px; letter-spacing: -0.02em; }
.auth-card .lead { font-size: 15px; margin-bottom: 28px; }

/* ------------------------------------------------------------- dashboard */

.app-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.app-sidebar { border-right: 1px solid var(--line); padding: 28px 16px; background: rgba(6, 11, 20, 0.6); position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto; }
.sidebar-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #5d7189; padding: 0 12px; margin: 22px 0 8px; }
.sidebar-nav { display: grid; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--mist-300); transition: 0.16s; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--foam-50); }
.sidebar-nav a.is-active { background: rgba(53, 224, 255, 0.1); color: var(--aqua-300); }
.sidebar-nav a svg { flex: none; opacity: 0.9; }
.sidebar-sublabel { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #4d6076; padding: 14px 12px 5px; font-weight: 700; }
.radio-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: 0.16s; }
.radio-card:hover { border-color: rgba(53, 224, 255, 0.35); background: rgba(53, 224, 255, 0.04); }
.radio-card.is-checked { border-color: rgba(53, 224, 255, 0.5); background: rgba(53, 224, 255, 0.07); }
.radio-card input { margin-top: 3px; accent-color: var(--aqua-400); }
.radio-card span { display: flex; flex-direction: column; gap: 3px; }
.radio-card small { color: var(--mist-400); font-size: 12px; line-height: 1.4; }
.app-main { padding: 36px 40px 80px; min-width: 0; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { font-size: clamp(24px, 2.6vw, 34px); margin: 0; letter-spacing: -0.02em; }
.app-head .sub { color: var(--mist-400); font-size: 14px; margin-top: 6px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--faint); margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--mist-400); }
.breadcrumbs a:hover { color: var(--aqua-300); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(10, 18, 32, 0.6); }
.kpi .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mist-400); }
.kpi .val { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-top: 8px; letter-spacing: -0.02em; }
.kpi .val small { font-size: 13px; color: var(--mist-400); font-family: var(--font-ui); }
.kpi .delta { font-size: 12px; margin-top: 4px; color: var(--mint-400); }
.app-section { margin-top: 36px; }
.app-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.app-section-head h2 { font-family: var(--font-ui); font-size: 17px; font-weight: 600; margin: 0; letter-spacing: 0; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid rgba(126, 166, 214, 0.08); font-size: 14px; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(53, 224, 255, 0.03); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .name { font-weight: 500; }
.list-row .sub { font-size: 12px; color: var(--mist-400); margin-top: 2px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(10, 18, 32, 0.55); transition: 0.18s; }
.tile:hover { border-color: rgba(53, 224, 255, 0.32); transform: translateY(-2px); }
.tile .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(53, 224, 255, 0.09); color: var(--aqua-300); }
.tile .t { font-weight: 600; font-size: 15px; }
.tile .d { font-size: 12px; color: var(--mist-400); }

/* ------------------------------------------------------------- wizard */

.wizard-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.wizard-step { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; font-weight: 600; }
.wizard-step .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; }
.wizard-step.is-done { color: var(--mist-300); }
.wizard-step.is-done .n { border-color: rgba(43, 217, 138, 0.5); color: var(--mint-400); }
.wizard-step.is-active { color: var(--aqua-300); }
.wizard-step.is-active .n { border-color: var(--aqua-400); background: rgba(53, 224, 255, 0.12); color: var(--aqua-300); }
.wizard-sep { width: 28px; height: 1px; background: var(--line); }

.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.entry-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-block { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(10, 18, 32, 0.7); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(126, 166, 214, 0.08); }
.summary-row:last-child { border-bottom: 0; }
.summary-row .v { font-family: var(--font-mono); font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-total .sum { font-family: var(--font-display); font-size: 24px; font-weight: 600; }

.athlete-rows { display: grid; gap: 12px; }
.athlete-row { display: grid; grid-template-columns: 28px 1.3fr 1.3fr 130px 100px 1.2fr 1.2fr 36px; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(8, 14, 26, 0.6); }
.athlete-row .idx { font-family: var(--font-mono); color: var(--mist-400); font-size: 12px; padding-bottom: 13px; }
.athlete-row .field { margin-bottom: 0; }
.athlete-row .field > label { font-size: 11px; }
.athlete-row .input, .athlete-row .select { min-height: 40px; padding: 8px 11px; font-size: 14px; }
.athlete-row .btn-icon { margin-bottom: 2px; }
.event-picker { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.event-option { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: 0.16s; background: rgba(8, 14, 26, 0.5); }
.event-option:hover { border-color: #2b405e; }
.event-option:has(input:checked) { border-color: rgba(53, 224, 255, 0.5); background: rgba(53, 224, 255, 0.06); }
.event-option input { width: 18px; height: 18px; accent-color: var(--aqua-400); flex: none; }
.event-option .info { flex: 1; min-width: 0; }
.event-option .name { font-weight: 500; font-size: 14px; }
.event-option .sub { font-size: 12px; color: var(--mist-400); }
.event-option .time-input { width: 110px; min-height: 38px; padding: 7px 10px; font-family: var(--font-mono); font-size: 13px; text-align: right; }
.event-option.is-disabled { opacity: 0.45; pointer-events: none; }

/* ------------------------------------------------------------- empty / misc */

.empty { padding: 56px 28px; text-align: center; border: 1px dashed #23344c; border-radius: var(--radius-md); background: rgba(10, 18, 32, 0.35); }
.empty .icon { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(53, 224, 255, 0.08); color: var(--aqua-300); }
.empty h3 { font-family: var(--font-ui); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.empty p { color: var(--mist-400); font-size: 14px; max-width: 420px; margin: 0 auto 20px; }
.empty-sm { padding: 32px 20px; }

.notice-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(53, 224, 255, 0.05); font-size: 13px; color: var(--mist-300); margin-bottom: 24px; }
.notice-bar strong { color: var(--foam-50); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: 14px; }
.dl dt { color: var(--mist-400); }
.dl dd { margin: 0; }
.prose { max-width: 780px; color: var(--mist-300); font-size: 15px; line-height: 1.7; }
.prose h2, .prose h3 { color: var(--foam-50); margin-top: 1.6em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: rgba(255, 255, 255, 0.03); }
.prose blockquote { border-left: 2px solid var(--aqua-700); margin: 18px 0; padding: 4px 0 4px 18px; color: var(--mist-400); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #0a1322; cursor: zoom-in; }
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.media-item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(2, 5, 10, 0.92); padding: 32px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-3); }
.lightbox .close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

.pagination { display: flex; gap: 6px; align-items: center; margin-top: 22px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: var(--mist-300); }
.pagination a:hover { border-color: var(--aqua-700); }
.pagination .is-active { background: rgba(53, 224, 255, 0.12); border-color: rgba(53, 224, 255, 0.4); color: var(--aqua-300); }

/* ------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 34px; margin-top: 40px; background: rgba(6, 11, 19, 0.85); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { color: var(--mist-400); font-size: 13px; max-width: 300px; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist-400); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--mist-300); padding: 5px 0; }
.footer-col a:hover { color: var(--aqua-300); }
.footer-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mist-400); }
.footer-legal span:last-child { color: var(--faint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 5px; border-radius: 6px; font-size: 10.5px; font-weight: 600; color: var(--mist-400); text-decoration: none; }
.lang-switch a:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.lang-switch a.on { color: var(--ink-950); background: var(--aqua-300); }
@media (max-width: 760px) { .lang-switch { display: none; } }
.event-dropdown { border:1px solid var(--line); border-radius:12px; background:rgba(8,18,30,.7); overflow:hidden; }
.event-dropdown summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; cursor:pointer; font-weight:600; color:var(--paper); list-style:none; }
.event-dropdown summary::-webkit-details-marker { display:none; }
.event-dropdown summary::after { content:"⌄"; color:var(--aqua-300); font-size:18px; }
.event-dropdown[open] summary::after { content:"⌃"; }
.event-dropdown .event-picker { border-top:1px solid var(--line); padding:8px; max-height:340px; overflow:auto; }
.consent-box { margin-top:14px; padding:12px 14px; border:1px solid rgba(53,224,255,.28); border-radius:10px; background:rgba(53,224,255,.05); }
.consent-box .checkbox span { font-size:12px; line-height:1.45; }
.cookie-banner { position:fixed; left:16px; right:16px; bottom:16px; z-index:80; max-width:1080px; margin:0 auto; background:rgba(7,15,26,.96); border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,.35); backdrop-filter:blur(16px); }
.cookie-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 18px; }
.cookie-text { display:flex; flex-direction:column; gap:3px; font-size:12.5px; color:var(--mist-400); max-width:760px; }
.cookie-text strong { color:var(--paper); }
.cookie-text a { color:var(--aqua-300); }
@media (max-width: 700px) { .cookie-inner { align-items:flex-start; flex-direction:column; gap:10px; } }
@media (max-width: 900px) {
  .legal-layout, .docs-layout { display: block !important; }
  .legal-layout aside, .docs-layout aside { position: static !important; margin-bottom: 28px; }
  .legal-layout article, .docs-layout article { width: 100%; min-width: 0; }
  .legal-layout article h1, .docs-layout article h1, .legal-layout .prose, .docs-layout .prose { overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------- animations */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.count-up { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- print */

@media print {
  body { background: #fff !important; color: #111 !important; font-size: 11px; }
  body::before, .site-header, .subnav, .site-footer, .no-print, .toasts, .app-sidebar { display: none !important; }
  .print-page { padding: 0 !important; margin: 0 !important; }
  .table-wrap { border: 0; }
  .table th, .table td { border-color: #bbb !important; color: #111 !important; padding: 4px 6px; }
  .table th { background: #f0f0f0 !important; }
  a { color: #111 !important; text-decoration: none; }
  .card, .panel { border: 1px solid #ccc !important; background: #fff !important; box-shadow: none !important; }
  .page-break { page-break-before: always; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .meet-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { padding: 28px 24px 64px; }
  .entry-layout { grid-template-columns: 1fr; }
  .entry-summary { position: static; order: -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .athlete-row { grid-template-columns: 28px 1fr 1fr 36px; }
  .athlete-row .field:nth-of-type(n+4) { grid-column: span 1; }
}

@media (max-width: 820px) {
  :root { --header-h: 62px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn span.label { display: none; }
  .mobile-nav { display: none; position: fixed; inset: var(--header-h) 0 auto; z-index: 49; background: rgba(5, 9, 16, 0.98); border-bottom: 1px solid var(--line); padding: 14px 20px 22px; }
  .mobile-nav.is-open { display: grid; gap: 4px; }
  .mobile-nav a { padding: 13px 10px; border-radius: 10px; color: var(--mist-300); font-weight: 500; }
  .mobile-nav a:hover { background: rgba(255, 255, 255, 0.05); }
  .section { padding: 64px 0; }
  .container, .container-narrow { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4, .feature-grid, .meet-grid, .pricing-grid, .form-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 40px 0 56px; }
  .hero-proof { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .program-session .head { grid-template-columns: 64px 1fr; }
  .program-session .head .chip { display: none; }
  .event-row { grid-template-columns: 44px 1fr auto; }
  .event-row .time { display: none; }
  .athlete-row { grid-template-columns: 1fr 1fr 36px; }
  .athlete-row .idx { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 12px; }
  .meet-meta { gap: 8px; }
  .meta-pill { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 520px) {
  .btn { padding: 0 16px; font-size: 14px; }
  .btn-lg { padding: 0 20px; }
  .card-lg { padding: 22px; }
  .hero h1 { font-size: 38px; }
  .wizard-step .t { display: none; }
  .wizard-sep { width: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Выбор приёма оплаты: две крупные карточки в настройках соревнования */
.payment-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}
.payment-mode-card {
  position: relative;
  display: block;
  padding: 18px 18px 16px;
  border: 1px solid var(--line, rgba(255,255,255,.13));
  border-radius: 16px;
  background: var(--panel, rgba(255,255,255,.035));
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.payment-mode-card:hover { border-color: var(--brand, #00D6FF); transform: translateY(-1px); }
.payment-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-mode-card__title {
  display: block;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text, #f4f8ff);
  padding-right: 26px;
}
.payment-mode-card__text {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted, #8b9bb4);
}
.payment-mode-card__mark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line, rgba(255,255,255,.25));
  transition: border-color .18s ease, background .18s ease;
}
.payment-mode-card:has(input:checked) {
  border-color: var(--brand, #00D6FF);
  background: color-mix(in srgb, var(--brand, #00D6FF) 8%, transparent);
  box-shadow: 0 0 0 1px var(--brand, #00D6FF) inset;
}
.payment-mode-card:has(input:checked) .payment-mode-card__mark {
  border-color: var(--brand, #00D6FF);
  background: var(--brand, #00D6FF);
  box-shadow: inset 0 0 0 4px var(--panel, #0b1220);
}
.payment-mode-card:focus-within { outline: 2px solid var(--brand, #00D6FF); outline-offset: 3px; }
@media (max-width: 720px) {
  .payment-mode-grid { grid-template-columns: 1fr; }
  .payment-mode-card { padding: 15px 16px; }
}

/* Карточки статистики админ-панели */
.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 14px;
  background: var(--panel, rgba(255,255,255,.035));
}
.stat-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #8b9bb4); }
.stat-value { margin-top: 7px; font-size: 28px; line-height: 1.1; font-weight: 650; color: var(--text, #f4f8ff); }
.stat-note { margin-top: 5px; font-size: 12px; color: var(--muted, #8b9bb4); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--brand, #00D6FF); background: color-mix(in srgb, var(--brand, #00D6FF) 12%, transparent); }
