/* ==========================================================================
   STEM Olympiad — дизайн-система
   Цвета эмблемы: S — красный, T — синий, E — жёлтый, M — зелёный. Бренд — #11553d
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("../fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-SemiBold.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --brand: #11553d;
  --c-s: #e5383b; --c-t: #2a8fd8; --c-e: #f4b120; --c-m: #20a052;
  --bg: #f4f7f5; --bg-2: #eaf0ed; --surface: #ffffff; --surface-2: #f6f9f7;
  --border: #dbe5e0; --border-2: #c9d6d0;
  --text: #0c1f18; --text-2: #2c4038; --muted: #5d7068;
  --primary: #11553d; --primary-2: #177351; --primary-ink: #ffffff; --primary-soft: #e3f1ea;
  --focus: #2a8fd8;
  --ok: #138a4a; --ok-bg: #e5f6ec; --warn: #9a6a00; --warn-bg: #fff4d6; --bad: #c62828; --bad-bg: #fde8e8; --info-bg: #e6f2fc;
  --shadow-sm: 0 1px 2px rgba(12, 31, 24, .06), 0 1px 3px rgba(12, 31, 24, .05);
  --shadow: 0 10px 30px -12px rgba(12, 31, 24, .18), 0 2px 6px rgba(12, 31, 24, .05);
  --radius: 18px; --radius-sm: 12px; --radius-xs: 8px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06110d; --bg-2: #0a1914; --surface: #0d1c16; --surface-2: #11241c;
    --border: #1c3529; --border-2: #27473a;
    --text: #e7f2ed; --text-2: #c3d6ce; --muted: #8ea79c;
    --primary: #34d399; --primary-2: #5ee4b0; --primary-ink: #03140d; --primary-soft: #0f2e22;
    --ok: #4ade80; --ok-bg: #0d2a1b; --warn: #fbbf24; --warn-bg: #2a2109; --bad: #f87171; --bad-bg: #2c1111; --info-bg: #0c2132;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 16px 40px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06110d; --bg-2: #0a1914; --surface: #0d1c16; --surface-2: #11241c;
  --border: #1c3529; --border-2: #27473a;
  --text: #e7f2ed; --text-2: #c3d6ce; --muted: #8ea79c;
  --primary: #34d399; --primary-2: #5ee4b0; --primary-ink: #03140d; --primary-soft: #0f2e22;
  --ok: #4ade80; --ok-bg: #0d2a1b; --warn: #fbbf24; --warn-bg: #2a2109; --bad: #f87171; --bad-bg: #2c1111; --info-bg: #0c2132;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 16px 40px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
svg[aria-hidden="true"] { width: 1.15em; height: 1.15em; flex: none; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- Кнопки ---------- */
.btn { --b: var(--surface); --c: var(--text); --bd: var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  font: 600 .95rem/1.2 var(--font); color: var(--c); background: var(--b); border: 1px solid var(--bd); border-radius: 999px;
  cursor: pointer; text-decoration: none !important; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { border-color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --b: var(--primary); --c: var(--primary-ink); --bd: var(--primary); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-primary:hover { --b: var(--primary-2); --bd: var(--primary-2); }
.btn-ghost { --b: transparent; --bd: transparent; }
.btn-ghost:hover { --b: var(--surface-2); --bd: var(--border); }
.btn-light { --b: rgba(255,255,255,.1); --c: #fff; --bd: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-light:hover { --b: rgba(255,255,255,.18); --bd: rgba(255,255,255,.5); }
.btn-danger { --b: transparent; --c: var(--bad); --bd: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
.main-nav { display: none; margin-left: 8px; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a, .main-nav summary { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .93rem; text-decoration: none; cursor: pointer; list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav a:hover, .main-nav summary:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: inline-grid; }
@media (min-width: 1080px) { .main-nav { display: block; } .burger { display: none; } }
.hide-sm { display: none !important; }
@media (min-width: 720px) { .hide-sm { display: inline-flex !important; } }

/* Выпадающие меню (details) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; }
.main-nav .dropdown-menu { left: 0; right: auto; min-width: 300px; }
.dropdown-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.dropdown-menu a:hover { background: var(--surface-2); }
.dropdown-menu a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.dropdown-menu a.active { color: var(--primary); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 700; font-size: .85rem; color: var(--text); cursor: pointer; text-transform: uppercase; }
.lang-btn svg { width: 18px; height: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }
.dot-s { background: var(--c-s); } .dot-t { background: var(--c-t); } .dot-e { background: var(--c-e); } .dot-m { background: var(--c-m); }

/* Мобильное меню */
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); padding: 16px 16px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; font-size: 1.1rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none; }
.mobile-nav .sub a { padding-left: 28px; font-size: 1rem; color: var(--text-2); }
.mobile-nav .mobile-actions { display: grid; gap: 10px; margin-top: 20px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #eaf6f0; background: radial-gradient(1200px 600px at 85% -10%, #1a6b4e 0%, transparent 60%), linear-gradient(160deg, #062218 0%, #0a2f22 45%, #071a13 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero .orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .45; }
.hero .orb-1 { width: 320px; height: 320px; background: var(--c-t); top: -80px; right: 10%; }
.hero .orb-2 { width: 260px; height: 260px; background: var(--c-s); bottom: -120px; right: 35%; opacity: .25; }
.hero .orb-3 { width: 240px; height: 240px; background: var(--c-e); bottom: 10%; right: -60px; opacity: .25; }
.hero-inner { display: grid; gap: 40px; padding-block: 64px 72px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.15fr .85fr; padding-block: 96px 104px; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.hero .kicker { color: #7ff0c0; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { color: #fff; margin: 18px 0 18px; max-width: 14ch; }
.hero h1 .grad { background: linear-gradient(90deg, #7ff0c0, #6cc4ff 50%, #ffd36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #b9d3c9; max-width: 56ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-visual .emblem { width: min(78%, 360px); filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: spin 60s linear infinite; }
.ring-1 { width: min(96%, 460px); aspect-ratio: 1; }
.ring-2 { width: min(118%, 560px); aspect-ratio: 1; border-style: solid; border-color: rgba(255,255,255,.07); animation-duration: 90s; animation-direction: reverse; }
.ring .sat { position: absolute; width: 14px; height: 14px; border-radius: 50%; top: -7px; left: calc(50% - 7px); box-shadow: 0 0 18px currentColor; }
.chip-float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(8, 30, 22, .7); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); font-size: .85rem; font-weight: 600; color: #e7f6ef; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.chip-float b { font-family: var(--font-display); font-size: 1.15rem; }
.chip-float.c1 { top: 8%; left: 0; } .chip-float.c2 { bottom: 10%; right: 0; }
@media (max-width: 959px) { .chip-float { display: none; } .hero-visual { min-height: 220px; } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Карточка ближайшего события */
.next-card { margin-top: 36px; display: grid; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); max-width: 620px; }
@media (min-width: 640px) { .next-card { grid-template-columns: 1fr auto; align-items: center; } }
.next-card .label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb8a8; font-weight: 700; }
.next-card .title { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 4px 0; display: block; }
.next-card .meta { color: #a9c6bb; font-size: .9rem; }
.countdown { display: flex; gap: 8px; }
.countdown div { min-width: 58px; padding: 8px 6px; text-align: center; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); }
.countdown b { display: block; font: 800 1.45rem/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; color: #9dbcb0; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head h2 { margin-top: 12px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head-row h2 { margin: 8px 0 0; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }

/* Направления STEM */
.dir-card { position: relative; overflow: hidden; padding: 28px 24px 24px; }
.dir-card .letter { font: 800 3.4rem/1 var(--font-display); color: var(--accent); opacity: .95; }
.dir-card h3 { margin: 14px 0 6px; }
.dir-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.dir-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); opacity: .08; }
.dir-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent); }
.acc-s { --accent: var(--c-s); } .acc-t { --accent: var(--c-t); } .acc-e { --accent: var(--c-e); } .acc-m { --accent: var(--c-m); }

/* Уровни */
.levels { display: grid; gap: 20px; counter-reset: lvl; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.level-card .step { display: inline-flex; align-items: center; gap: 10px; font: 700 .75rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.level-card .step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: .95rem; letter-spacing: 0; }
.level-card h3 { font-size: 1.35rem; margin: 6px 0 0; }
.level-card p { color: var(--muted); margin: 0; flex: 1; }
.level-card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.level-card .count { position: absolute; top: 24px; right: 24px; font-size: .8rem; color: var(--muted); }

/* Статистика */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 28px 24px; }
.stat b { display: block; font: 800 clamp(2rem, 4vw, 2.9rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-weight: 500; }
.stat:nth-child(1) b { color: var(--c-s); } .stat:nth-child(2) b { color: var(--c-t); } .stat:nth-child(3) b { color: var(--c-e); } .stat:nth-child(4) b { color: var(--c-m); }

/* Шаги */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-card { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-card::before { counter-increment: step; content: "0" counter(step); display: block; font: 800 1.1rem/1 var(--font-display); color: var(--primary); margin-bottom: 14px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Карточка олимпиады ---------- */
.o-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: var(--text); text-decoration: none !important; }
.o-card .cover { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #0a2f22, #11553d); overflow: hidden; }
.o-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.o-card:hover .cover img { transform: scale(1.04); }
.o-card .cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.o-card .cover .placeholder img { width: 34%; height: auto; opacity: .9; object-fit: contain; }
.o-card .cover .badge { position: absolute; top: 12px; left: 12px; }
.o-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.o-card h3 { margin: 0; font-size: 1.15rem; }
.o-card .meta { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.o-card .meta span { display: flex; gap: 8px; align-items: center; }
.o-card .meta svg { width: 16px; height: 16px; flex: none; color: var(--primary); }
.level-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--primary)); }
.level-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lv-city { --accent: var(--c-t); } .lv-republic { --accent: var(--c-m); } .lv-international { --accent: var(--c-s); }

/* Бейджи статуса */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2; background: var(--surface); color: var(--text); border: 1px solid var(--border); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-registration { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.st-registration::before { animation: pulse 1.6s infinite; }
.st-live { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.st-live::before { animation: pulse 1.2s infinite; }
.st-announced { background: var(--info-bg); color: var(--c-t); border-color: transparent; }
.st-closed { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.st-finished { color: var(--muted); }
.ts-new { background: var(--info-bg); color: var(--c-t); border-color: transparent; }
.ts-approved, .ts-qualified { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.ts-rejected { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.ts-waitlist { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; overflow: hidden; padding: 48px 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 40px 40px; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 10px 0 10px; max-width: 22ch; }
.page-hero p { color: var(--muted); max-width: 64ch; font-size: 1.05rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Олимпиада: шапка */
.o-hero { position: relative; color: #e9f5f0; background: #071a13; overflow: hidden; isolation: isolate; }
.o-hero .bg { position: absolute; inset: 0; z-index: -2; }
.o-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.o-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,22,16,.97) 0%, rgba(6,22,16,.88) 55%, rgba(6,22,16,.7) 100%); }
.o-hero .container { padding-top: 44px; padding-bottom: 44px; }
.o-hero .crumbs, .o-hero .crumbs a { color: #a6c4b8; }
.o-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.2vw, 3.1rem); max-width: 24ch; margin: 14px 0 12px; }
.o-hero .lead { color: #bcd5cb; max-width: 64ch; }
.o-facts { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 720px) { .o-facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.o-fact { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.o-fact small { display: block; color: #8fb3a5; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.o-fact b { color: #fff; font-weight: 600; }
.o-fact a { color: #7ff0c0; font-size: .85rem; }
.o-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.o-hero .note { color: #9fbfb2; font-size: .9rem; }

/* Вкладки-якоря */
.tabs-nav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.tabs-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.tabs-nav ul::-webkit-scrollbar { display: none; }
.tabs-nav a { display: block; padding: 14px 14px; color: var(--muted); font-weight: 600; font-size: .93rem; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs-nav a:hover { color: var(--text); }
.tabs-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.o-section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.o-section:last-of-type { border-bottom: 0; }
.prose { max-width: 78ch; font-size: 1.04rem; color: var(--text-2); }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.kpi b { display: block; font: 800 2rem/1 var(--font-display); color: var(--primary); }
.kpi span { color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .85rem; }

/* ---------- Тайминг ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 .875rem/1 var(--font); cursor: pointer; }
.pill:hover { border-color: var(--primary); }
.pill[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 89px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
@media (max-width: 559px) { .timeline::before { left: 7px; } }
.tl-item { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 40px; padding: 6px 0; }
@media (max-width: 559px) { .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; } }
.tl-time { text-align: right; padding-top: 16px; font-variant-numeric: tabular-nums; }
.tl-time b { display: block; font: 800 1.15rem/1.1 var(--font-display); color: var(--text); }
.tl-time span { color: var(--muted); font-size: .85rem; }
@media (max-width: 559px) { .tl-time { text-align: left; padding-top: 0; display: flex; gap: 6px; align-items: baseline; } }
.tl-item::before { content: ""; position: absolute; left: 83px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--aud, var(--primary)); z-index: 1; }
@media (max-width: 559px) { .tl-item::before { left: 1px; top: 6px; } }
.tl-card { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--aud, var(--primary)); }
.tl-card h3 { font-size: 1.02rem; margin: 0 0 6px; font-weight: 700; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .87rem; }
.tl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tl-meta svg { width: 15px; height: 15px; }
.tl-aud { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--aud); margin-bottom: 4px; display: block; }
.aud-all { --aud: var(--primary); } .aud-participants { --aud: var(--c-t); } .aud-mentors { --aud: var(--c-e); } .aud-guests { --aud: var(--c-s); }
.tl-item.is-now .tl-card { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-s) 30%, transparent); }
.tl-item.is-now::before { background: var(--c-s); border-color: var(--c-s); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-s) 25%, transparent); }
.now-flag[hidden] { display: none; }
.now-flag { display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--c-s); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: middle; }
.tl-item.is-past { opacity: .55; }
.tl-item[hidden] { display: none; }
.tl-day { margin: 20px 0 8px; font-weight: 700; color: var(--muted); }

/* ---------- Результаты ---------- */
.podium { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 900px) { .podium { grid-template-columns: repeat(3, 1fr); align-items: end; } .podium .p1 { order: 2; } .podium .p2 { order: 1; } .podium .p3 { order: 3; } }
.podium-card { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.podium-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--medal); }
.podium-card .medal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--medal); color: #1b1300; font: 800 1.4rem/1 var(--font-display); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); margin-bottom: 14px; }
.podium-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.podium-card .org { color: var(--muted); font-size: .92rem; }
.podium-card .members { margin-top: 10px; font-size: .9rem; color: var(--text-2); }
.podium-card .prize { margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.p1 { --medal: linear-gradient(135deg, #ffe17a, #f4b120); } .p1 { padding-top: 34px; padding-bottom: 34px; }
.p2 { --medal: linear-gradient(135deg, #eef2f5, #b9c4cc); } .p3 { --medal: linear-gradient(135deg, #f3c7a1, #c98549); }
.search { position: relative; max-width: 420px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { padding-left: 42px !important; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .place { font: 800 1.1rem/1 var(--font-display); color: var(--primary); width: 60px; }
@media (max-width: 719px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .table-cards td { padding: 3px 0; border: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
  .table-cards td::before { content: attr(data-label); font-size: .78rem; color: var(--muted); font-weight: 600; }
  .table-cards td.place { width: auto; }
}

/* ---------- Галерея ---------- */
.album-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.album-card { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); color: #fff; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover img { transform: scale(1.05); }
.album-card .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 700; }
.album-card .cap small { display: block; font-weight: 500; opacity: .8; }
.photos { columns: 2 160px; column-gap: 10px; }
@media (min-width: 900px) { .photos { columns: 4 220px; } }
.photos a { display: block; margin-bottom: 10px; border-radius: 12px; overflow: hidden; break-inside: avoid; background: var(--surface-2); }
.photos img { width: 100%; transition: transform .4s, opacity .3s; }
.photos a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(3, 10, 7, .94); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 10px; }
.lightbox .lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfe1da; font-size: .9rem; padding: 0 60px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); } .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Видео */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { cursor: pointer; padding: 0; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play span { width: 76px; height: 76px; border-radius: 50%; background: var(--c-s); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.video .play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }

/* Документы */
.doc-list { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none !important; }
.doc:hover { border-color: var(--primary); }
.doc .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bad-bg); color: var(--bad); font: 800 .7rem/1 var(--font); }
.doc b { display: block; } .doc small { color: var(--muted); }

/* Новости */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: var(--text); text-decoration: none !important; }
.news-card .cover { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .cover img { transform: scale(1.04); }
.news-card .body { padding: 18px 20px 22px; }
.news-card time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.news-card h3 { margin: 6px 0 8px; font-size: 1.08rem; }
.news-card p { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article { max-width: 780px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin: 24px 0 32px; }

/* Партнёры */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .partners { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.partner { display: grid; place-items: center; height: 96px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.partner img { max-height: 60px; width: auto; object-fit: contain; }
.partner:hover img { filter: none; opacity: 1; }
.partner span { color: #2c4038; font-weight: 700; text-align: center; font-size: .9rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { color: var(--primary); }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }

/* CTA-баннер */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 24px; padding: 40px; border-radius: 28px; color: #e8f6ef; background: radial-gradient(600px 300px at 90% 0%, rgba(42,143,216,.35), transparent 60%), linear-gradient(135deg, #0b3a2a, #11553d); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; align-items: center; padding: 48px 56px; } }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #bfdccf; margin: 0; max-width: 60ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } .form-row.r3 { grid-template-columns: repeat(3, 1fr); } }
.field label, .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--text-2); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.4 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .85rem; margin-top: 6px; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 12px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--info-bg); color: var(--text-2); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.flash-wrap { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 70; width: min(92vw, 520px); display: grid; gap: 8px; }
.flash-wrap .alert { box-shadow: var(--shadow); animation: drop .3s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* Карточки участников в форме заявки */
.member { position: relative; padding: 20px; border-radius: 16px; border: 1px dashed var(--border-2); background: var(--surface-2); }
.member + .member { margin-top: 12px; }
.member-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.member-head b { font-size: .95rem; }

/* Авторизация */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--c-t) 12%, transparent), transparent 60%), radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--c-m) 12%, transparent), transparent 60%); }
.auth-card { width: 100%; max-width: 480px; padding: 32px; }
.auth-card.wide { max-width: 720px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }

/* Кабинет */
.cab-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .cab-grid { grid-template-columns: 1fr 340px; align-items: start; } }
.team-row { display: grid; gap: 10px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 720px) { .team-row { grid-template-columns: 1fr auto; align-items: center; } }
.team-row h3 { margin: 0; font-size: 1.05rem; }
.code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }

/* Диплом: проверка */
.verify-box { max-width: 640px; margin: 0 auto; }
.result-ok { border-left: 4px solid var(--ok); }
.result-bad { border-left: 4px solid var(--bad); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 16px 0 0; }
.kv dt { color: var(--muted); font-size: .9rem; } .kv dd { margin: 0; font-weight: 600; }
.cert-list { display: grid; gap: 12px; }
.cert-item { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.cert-item .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #ffe17a, #f4b120); color: #3a2600; flex: none; }
.cert-item .ic svg { width: 24px; height: 24px; }
.cert-item .grow b { display: block; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 0; color: #a7c1b7; background: #051510; padding: 64px 0 28px; font-size: .93rem; }
.site-footer a { color: #d5e7e0; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 16px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e2f1eb; }
.socials a:hover { background: rgba(255,255,255,.14); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.org-logo { height: 30px; width: auto; opacity: .9; }

/* Ошибки */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.error-page .code-big { font: 800 clamp(5rem, 14vw, 9rem)/1 var(--font-display); background: linear-gradient(90deg, var(--c-s), var(--c-t), var(--c-e), var(--c-m)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Пустые состояния */
.empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--border-2); border-radius: var(--radius); color: var(--muted); }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Печать (тайминг) */
@media print {
  .site-header, .site-footer, .tabs-nav, .filters, .no-print, .o-hero .actions, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .o-hero { color: #000; background: #fff; } .o-hero::after, .o-hero .bg { display: none; } .o-hero h1, .o-fact b { color: #000; }
  .o-section { padding: 16px 0; } .tl-card { break-inside: avoid; }
}

/* Размер иконок по умолчанию */
.level-card .go svg { width: 18px; height: 18px; }
.brand img { height: 48px; }
.news-card .cover .ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(400px 200px at 80% 0%, rgba(42,143,216,.35), transparent 60%), linear-gradient(135deg, #0a2f22, #11553d); }
.news-card .cover .ph img { width: 26%; height: auto; opacity: .9; }
.lv-regional { --accent: #d99a00; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .levels { grid-template-columns: repeat(4, 1fr); } }

/* Навигация: без переносов, адаптивная плотность */
.main-nav a, .main-nav summary { white-space: nowrap; }
.main-nav { display: none !important; }
.burger { display: inline-grid !important; }
@media (min-width: 1180px) { .main-nav { display: block !important; } .burger { display: none !important; } }
@media (min-width: 1180px) and (max-width: 1359px) {
  .main-nav a, .main-nav summary { padding: 8px 8px; font-size: .88rem; }
  .header-actions .btn-primary.hide-sm { padding: 10px 14px; }
}

.podium-card.has-photo { padding-top: 0; }
.podium-card .pphoto { display: block; margin: 0 -24px 0; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.podium-card .pphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.podium-card .pphoto:hover img { transform: scale(1.04); }
.podium-card.has-photo .medal { margin-top: -26px; position: relative; border: 4px solid var(--surface); width: 60px; height: 60px; }
.p1.has-photo { padding-top: 0; }

/* ===== Правки v3 ===== */
/* Длинные ссылки и слова не распирают страницу */
.prose, .prose a, .table td, .podium-card, .o-hero .lead { overflow-wrap: anywhere; }
main { overflow-x: clip; }

/* Пьедестал: одинаковая высота карточек */
.podium { align-items: stretch !important; }
.podium-card { display: flex; flex-direction: column; }
.podium-card .prize { margin-top: auto; align-self: flex-start; }
.podium-card .members { margin-bottom: 14px; }
.p1 { padding-top: 24px; padding-bottom: 24px; }
.p1.has-photo { padding-top: 0; }

/* Фото: единая сетка одинаковых превью, полное фото — по клику */
.photos { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .photos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .photos { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.photos a { margin: 0; aspect-ratio: 4 / 3; }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* Видео по центру */
.video { margin-left: auto; margin-right: auto; }

/* Подзаголовок героя без черты */
.hero .kicker::before { display: none; }

/* Мобильная версия: центрирование и кнопки одной ширины */
@media (max-width: 639px) {
  .hero .kicker { display: block; text-align: center; line-height: 1.6; }
  .hero h1, .hero p.lead { text-align: center; margin-left: auto; margin-right: auto; }
  .hero .actions, .cta-band .actions, .o-hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn, .cta-band .actions .btn, .o-hero .actions .btn { width: 100%; justify-content: center; }
  .o-hero .actions .note { text-align: center; }
  .cta-band { padding: 28px 22px; text-align: center; }
  .cta-band p { margin: 0 auto; }
}
.prose .link-btn { margin: 4px 8px 4px 0; text-decoration: none; color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, transparent); background: var(--primary-soft); }
.prose .link-btn:hover { background: var(--primary); color: var(--primary-ink); }
@media (max-width: 639px) { .hero .kicker { font-size: .66rem; letter-spacing: .08em; } }
