/* ============================================================
   Чемпионат «Проектировщик vs AI-инженер» — лендинг
   Верстка поверх tokens.css. Cinematic-tech / broadcast-HUD.
   ============================================================ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brand-1); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg-1); margin: 0; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--ls-hud);
}

/* visually-hidden */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Section primitives ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--bg { background: var(--bg); }

.backdrop {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image: var(--field-brand-1), var(--field-brand-2), var(--blueprint);
  background-size: auto, auto, var(--blueprint-size);
}
.backdrop > .container { position: relative; z-index: 1; }

.section-head { max-width: 760px; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--ls-hud-wide); text-transform: uppercase; color: var(--hud);
  margin-bottom: var(--space-4);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--hud); }
.center .kicker { justify-content: center; }
.section-head h2 {
  font-weight: 800; font-size: var(--fs-h2); line-height: 1.12;
  letter-spacing: var(--ls-head); margin-bottom: var(--space-3);
}
.section-head .sub { font-size: 17px; line-height: var(--lh-body); color: var(--fg-2); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--ls-hud); text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--fg-3); background: var(--surface-1);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--hud   { color: var(--hud);          border-color: rgba(61,214,232,0.40);  background: var(--hud-surface); }
.badge--live  { color: var(--live);         border-color: rgba(46,230,166,0.40);  background: rgba(46,230,166,0.10); }
.badge--danger{ color: var(--danger);       border-color: rgba(229,72,77,0.40);   background: rgba(229,72,77,0.10); }
.badge--brand1{ color: var(--brand-1-light);border-color: var(--brand-1-border);  background: var(--brand-1-surface); }
.badge--brand2{ color: var(--brand-2-light);border-color: var(--brand-2-border);  background: var(--brand-2-surface); }
.badge .dot.live { animation: pulse-dot 1.6s var(--ease) infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  padding: 12px 22px; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease),
              border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
.btn--lg { padding: 15px 28px; font-size: var(--fs-body); }
.btn--primary { background: var(--brand-1); color: #fff; box-shadow: var(--glow-brand-1); }
.btn--primary:hover { background: var(--brand-1-light); }
.btn--secondary { background: var(--surface-2); color: var(--fg-1); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-3); border-color: var(--hud); }
.btn--ghost { background: transparent; color: var(--fg-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--fg-1); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: var(--space-6);
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.card--hud:hover { border-color: rgba(61,214,232,0.40); box-shadow: var(--glow-hud); }

.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--hud);
  margin-bottom: var(--space-4);
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip--brand1 { background: var(--brand-1-surface); border-color: var(--brand-1-border); color: var(--brand-1-light); }

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: var(--space-2); }
.card p  { font-size: var(--fs-sm); line-height: 1.55; color: var(--fg-3); }

/* HUD corner brackets */
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 1px solid var(--hud); opacity: 0.5;
}
.corners::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corners::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), backdrop-filter var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 68px; }
.brand-lockup { display: inline-flex; align-items: center; gap: var(--space-4); }
.brand-lockup img { height: 26px; width: auto; object-fit: contain; }
.brand-lockup .sep { width: 1px; height: 26px; background: var(--border-strong); }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a {
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; color: var(--fg-2);
  text-decoration: none; position: relative; padding: 4px 0;
  transition: color var(--dur-micro) var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--hud);
  transition: width var(--dur-base) var(--ease);
}
.site-nav a:hover { color: var(--fg-1); }
.site-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  color: var(--fg-1); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: none; flex-direction: column;
  background: rgba(14,17,22,0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 92px var(--container-pad-sm) var(--space-8);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--fg-1);
  text-decoration: none; padding: var(--space-4) 0; border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: var(--space-8); }

/* ---------- Hero ---------- */
.hero { padding-top: 140px; padding-bottom: 96px; min-height: 100svh; display: flex; align-items: center; }
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover;
  opacity: 0.34; z-index: 0; will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero::after { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(14,17,22,0.75) 100%);
}
.streamlines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; will-change: transform; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 {
  font-weight: 800; font-size: var(--fs-hero); line-height: 1.06; letter-spacing: var(--ls-hero);
  margin: 22px 0 20px;
}
.hero h1 .accent { color: var(--brand-1-light); }
.hero h1 .vs {
  font-family: var(--font-mono); color: var(--hud); font-weight: 700;
  padding-inline: 6px; -webkit-text-stroke: 0;
}
.hero .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); max-width: 540px; margin-bottom: var(--space-8); }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-10); }

/* glass arena */
.glass {
  position: relative; background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3); padding: 22px;
}
.glass-hud-label {
  position: absolute; top: -10px; left: 20px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--ls-hud-wide); text-transform: uppercase; color: var(--hud);
  background: var(--bg); padding: 2px 8px; border: 1px solid rgba(61,214,232,0.30); border-radius: var(--radius-pill);
}
.arena-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.arena-top .label { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--ls-hud); text-transform: uppercase; color: var(--fg-3); }
.arena-vs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-5); }
.combatant { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: 14px 10px; border-radius: var(--radius-md); }
.combatant.human { background: var(--brand-1-surface); border: 1px solid var(--brand-1-border); }
.combatant.ai    { background: var(--brand-2-surface); border: 1px solid var(--brand-2-border); }
.combatant .avatar {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--fg-1);
  background: var(--surface-3);
}
.combatant.human .avatar { box-shadow: 0 0 0 2px var(--brand-1); }
.combatant.ai .avatar    { box-shadow: 0 0 0 2px var(--brand-2); }
.combatant .name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--fg-1); }
.combatant .score { font-family: var(--font-mono); font-weight: 700; font-size: 26px; }
.combatant.human .score { color: var(--brand-1-light); }
.combatant.ai .score    { color: var(--brand-2-light); }
.block-progress { display: flex; gap: 6px; }
.block-progress .seg { flex: 1; height: 8px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.block-progress .seg.on { background: var(--hud); box-shadow: 0 0 8px rgba(61,214,232,0.5); }

/* countdown */
.countdown { }
.countdown .cd-label { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--ls-hud); text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--space-2); }
.countdown .cd-units { display: flex; gap: var(--space-3); }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 10px 8px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); }
.cd-unit .num { font-family: var(--font-mono); font-weight: 700; font-size: 26px; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.cd-unit .unit { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--ls-hud); text-transform: uppercase; color: var(--fg-3); margin-top: 2px; }

/* ---------- Bento (about) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-8);
  padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-1);
}
.stat { text-align: center; }
.stat .num { font-family: var(--font-mono); font-weight: 700; font-size: 34px; color: var(--hud); font-variant-numeric: tabular-nums; }
.stat .cap { font-size: var(--fs-sm); color: var(--fg-3); margin-top: 4px; }

/* ---------- Mechanics split ---------- */
.split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.split .pane { padding: var(--space-8); }
.split .pane.human { background: linear-gradient(180deg, var(--brand-1-surface), transparent); }
.split .pane.ai    { background: linear-gradient(180deg, var(--brand-2-surface), transparent); }
.split .seam { width: 1px; background: repeating-linear-gradient(var(--border-strong), var(--border-strong) 6px, transparent 6px, transparent 12px); position: relative; }
.split .seam .vs-chip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm); color: var(--hud);
  background: var(--bg); border: 1px solid var(--hud); border-radius: var(--radius-pill); padding: 6px 12px; letter-spacing: 0.1em;
}
.pane .tag { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--ls-hud); text-transform: uppercase; }
.pane.human .tag { color: var(--brand-1-light); }
.pane.ai .tag    { color: var(--brand-2-light); }
.pane h3 { font-size: 22px; font-weight: 700; margin-bottom: var(--space-3); }
.pane p  { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--fg-2); }

/* ---------- Quote ---------- */
.quote { max-width: 940px; margin-inline: auto; position: relative; padding: 8px 0 8px 36px; border-left: 3px solid var(--brand-1); }
.quote::before { content: "«"; position: absolute; left: -14px; top: -18px; font-family: var(--font-display); font-size: 90px; line-height: 1; color: var(--brand-1); opacity: 0.25; }
.quote p { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.015em; color: var(--fg-1); margin-bottom: var(--space-5); }
.quote .cite { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: var(--ls-hud); text-transform: uppercase; color: var(--fg-3); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: var(--space-6); }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-2), var(--brand-1)); opacity: 0.5; }
.tl-item { position: relative; padding-left: 56px; }
.tl-node { position: absolute; left: 8px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--hud); display: flex; align-items: center; justify-content: center; }
.tl-node .ring { width: 8px; height: 8px; border-radius: 50%; background: var(--hud); }
.tl-item .tl-tag { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--ls-hud); text-transform: uppercase; color: var(--hud); }
.tl-item h3 { font-size: var(--fs-h4); font-weight: 700; margin: var(--space-2) 0; }
.tl-item p { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.55; }

/* stages 2-up */
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.stage-card { padding: var(--space-8); }
.stage-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.stage-card h3 { font-size: 22px; font-weight: 700; margin-bottom: var(--space-3); }
.stage-card p { font-size: var(--fs-body); color: var(--fg-2); }

/* ---------- Generic grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

/* categories */
.cat-card { display: flex; flex-direction: column; gap: var(--space-3); }
.cat-card .req { margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.cat-card .req li { font-size: var(--fs-sm); color: var(--fg-3); line-height: 1.5; margin-bottom: 6px; }
.cat-card ul { list-style: none; margin: 0; padding: 0; }
.cat-card ul li::before { content: "—"; color: var(--hud); margin-right: 8px; }

/* feature figure (full-width broadcast still) */
.feature { margin: var(--space-10) 0 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-2); position: relative; }
.feature img { width: 100%; height: auto; display: block; }
.feature figcaption {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-4) var(--space-6); font-size: var(--fs-sm); color: var(--fg-2);
  background: var(--surface-1); border-top: 1px solid var(--border);
}

/* prizes */
.prizes-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: var(--space-6); align-items: stretch; }
.prizes-visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-1); min-height: 280px; }
.prizes-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prize { display: flex; gap: var(--space-4); align-items: flex-start; }
.prize .icon-chip { margin-bottom: 0; flex-shrink: 0; }
.prize h3 { font-size: 17px; margin-bottom: 4px; }

/* jury */
.jury-card { display: flex; align-items: center; gap: var(--space-4); }
.jury-photo { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 8px, var(--surface-1) 8px, var(--surface-1) 16px); border: 1px dashed var(--border-strong); }
.jury-card .who { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); color: var(--fg-1); }
.jury-card .role { font-size: var(--fs-meta); color: var(--fg-3); margin-top: 3px; }

/* image slot placeholder */
.img-slot {
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 12px, var(--surface-1) 12px, var(--surface-1) 24px);
  border: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: center;
}
.img-slot .tag {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--ls-hud); text-transform: uppercase; color: var(--fg-3);
}
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* organizers */
.org-lockup { display: inline-flex; align-items: center; gap: var(--space-10); margin-bottom: var(--space-12); }
.org-lockup img { height: 44px; object-fit: contain; }
.org-lockup .sep { width: 1px; height: 52px; background: var(--border-strong); }
.partner-row { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.partner-slot { width: 150px; height: 56px; border-radius: var(--radius-md); border: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--fg-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 20px 4px; background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--fg-1);
}
.faq-q svg { width: 20px; height: 20px; color: var(--fg-3); flex-shrink: 0; transition: transform var(--dur-base) var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-base) var(--ease); }
.faq-a p { padding: 0 4px 20px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--fg-2); max-width: 760px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: 44px; font-weight: 800; letter-spacing: var(--ls-hero); line-height: 1.1; margin-bottom: var(--space-5); }
.final-cta p { font-size: var(--fs-lead); color: var(--fg-2); max-width: 560px; margin: 0 auto var(--space-8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--space-10); justify-content: space-between; margin-bottom: var(--space-10); }
.footer-brand { max-width: 360px; }
.footer-brand .org { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-4); }
.footer-brand .org img { height: 26px; object-fit: contain; }
.footer-brand .org .sep { width: 1px; height: 28px; background: var(--border-strong); }
.footer-brand p { font-size: var(--fs-meta); line-height: var(--lh-body); color: var(--fg-3); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--fg-1); margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: var(--fs-sm); color: var(--fg-3); text-decoration: none; margin-bottom: var(--space-3); transition: color var(--dur-micro) var(--ease); }
.footer-col a:hover { color: var(--fg-1); }
.footer-col a.accent { color: var(--brand-2-light); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; padding-top: var(--space-6); border-top: 1px solid var(--border); }
.footer-bottom .copy { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--fg-3); }
.footer-bottom .links { display: flex; gap: var(--space-6); }
.footer-bottom .links a { font-size: var(--fs-meta); color: var(--fg-3); text-decoration: none; }

/* todo note for [[уточнить]] */
.todo { color: var(--warning); border-bottom: 1px dotted var(--warning); cursor: help; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(8,10,13,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-3);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-6) var(--space-3); }
.modal-hud { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--ls-hud-wide); text-transform: uppercase; color: var(--hud); margin-bottom: var(--space-2); }
.modal-head h3 { font-size: var(--fs-h4); font-weight: 700; }
.modal-head .sub { font-size: var(--fs-sm); color: var(--fg-3); margin-top: 6px; }
.modal-close { background: transparent; border: none; color: var(--fg-3); cursor: pointer; padding: 4px; }
.modal-close svg { width: 22px; height: 22px; }
.modal-body { padding: var(--space-3) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.modal-foot { padding: var(--space-4) var(--space-6) var(--space-6); display: flex; gap: var(--space-3); justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-display); font-size: var(--fs-meta); font-weight: 500; color: var(--fg-2); }
.field input, .field select {
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--fg-1);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 11px 14px;
}
.field input::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--ring); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.cat-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.cat-toggle label {
  display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-2); cursor: pointer; font-size: var(--fs-meta); color: var(--fg-2); transition: border-color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.cat-toggle label:has(input:checked) { border-color: var(--brand-2); background: var(--brand-2-surface); color: var(--fg-1); }
.cat-toggle input { accent-color: var(--brand-2); }
.consent { display: flex; flex-direction: column; gap: var(--space-3); }
.consent label { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-meta); color: var(--fg-2); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--brand-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg-img, .streamlines { transform: none !important; }
  .badge .dot.live { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { gap: 40px; }
  .bento, .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --section-y: 64px; }
  .container { padding-inline: var(--container-pad-sm); }
  .site-nav { display: none; }
  .header-actions .btn { display: none; }
  .burger { display: inline-flex; }
  .hero { padding-top: 110px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 30px; }
  .split { grid-template-columns: 1fr; }
  .split .seam { width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--border-strong), var(--border-strong) 6px, transparent 6px, transparent 12px); }
  .stages, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .prizes-layout { grid-template-columns: 1fr; }
  .prizes-visual { min-height: 220px; aspect-ratio: 4 / 3; }
  .final-cta h2 { font-size: 32px; }
  .quote p { font-size: 22px; }
  .footer-top { flex-direction: column; gap: var(--space-8); }
}
@media (max-width: 560px) {
  .bento, .stat-strip { grid-template-columns: 1fr; }
  .cat-toggle { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .org-lockup { gap: var(--space-5); }
  .countdown .cd-units { gap: var(--space-2); }
  .cd-unit { min-width: 0; flex: 1; }
}
