/* ============================================
   RedShift — Design System
   ============================================ */

:root {
  /* ---------- Colors: neutrals ---------- */
  --bg: #17171a;
  --bg-deep: #060608;
  --card: #222224;
  --card-2: #2d2e28;
  --pill: #4d4d52;
  --border: #2d2d33;
  --border-soft: #1f1f24;

  --text: #ffffff;
  --text-muted: #c7c7c7;
  --text-dim: #757575;

  /* ---------- Colors: brand ---------- */
  --accent: #f31c16;
  --accent-hover: #ff3832;
  --accent-soft: rgba(243, 28, 22, 0.12);
  --accent-glow: rgba(243, 28, 22, 0.5);
  --coral: #ff8562;
  --orange: #ee7631;

  /* ---------- Colors: semantic ---------- */
  --success: #8fd88f;
  --success-bg: rgba(100, 200, 100, 0.12);
  --success-border: rgba(100, 200, 100, 0.35);
  --danger: var(--accent);

  /* ---------- Spacing scale ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* ---------- Font sizes ---------- */
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: clamp(18px, 1.5vw, 22px);
  --fs-xl: clamp(22px, 2vw, 28px);
  --fs-2xl: clamp(32px, 4vw, 48px);
  --fs-3xl: clamp(40px, 5vw, 64px);
  --fs-display: clamp(48px, 8vw, 110px);

  /* ---------- Typography ---------- */
  --font-sans: 'IBM Plex Sans', 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', Consolas, monospace;

  /* ---------- Layout ---------- */
  --container: 1320px;
  --container-narrow: 1040px;
  --header-h: 72px;
  --section-py: clamp(80px, 10vw, 140px);

  /* Ширины читаемого текста — единые по всему сайту */
  --text-width: 820px;        /* параграфы-описания */
  --text-width-lg: 960px;     /* вводные абзацы (lead) */
  --text-width-narrow: 640px; /* формы, узкие блоки */

  /* Сетки — один minmax по всему сайту */
  --grid-min: 360px;
  --grid-gap: var(--sp-5);

  /* ---------- Radii (все нули — код это квадраты) ---------- */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-pill: 0;

  /* ---------- Effects ---------- */
  --glow-red: 0 0 60px rgba(243, 28, 22, 0.5);
  --glow-red-sm: 0 0 24px rgba(243, 28, 22, 0.35);
  --ring: 0 0 0 3px rgba(243, 28, 22, 0.35);

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 0.15s;
  --dur: 0.3s;
  --dur-slow: 0.5s;

  /* ---------- Z-index ---------- */
  --z-header: 100;
  --z-lightbox: 200;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + var(--sp-3));
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain texture overlay — цвет не меняет, даёт фактуру */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; }

/* Global focus ring */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Anchor scroll offset for sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(var(--sp-5), 4vw, var(--sp-8));
  position: relative;
  z-index: 2;
}
.wrap--narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}
.section__head {
  margin-bottom: clamp(var(--sp-7), 6vw, var(--sp-9));
  max-width: var(--text-width-lg);
}

/* Номер секции — [01], [02] — моноширинный код перед eyebrow */
.section__head[data-num]::before {
  content: '[' attr(data-num) ']';
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-4);
  opacity: 0.7;
}

.section__eyebrow {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.section__lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: var(--text-width);
  line-height: 1.5;
}

/* ============================================
   CARD — базовый компонент для всех карточек
   ============================================ */
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-6), 4vw, var(--sp-7));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(243, 28, 22, 0.25);
}
.card--lg    { border-radius: var(--radius-xl); padding: clamp(var(--sp-7), 5vw, var(--sp-8)); }
.card--muted { opacity: 0.85; }
.card--accent {
  background: linear-gradient(155deg, var(--card) 0%, rgba(243, 28, 22, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 28, 22, 0.2);
}
.card--ascii {
  background-color: var(--card);
  background-image: url('../images/ascii-art.svg');
  background-repeat: no-repeat;
  background-position: center right -40px;
  background-size: auto 110%;
}
.card--ascii::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--card) 0%, var(--card) 40%, rgba(34,34,36,0.85) 70%, transparent 100%);
  z-index: -1;
}

/* Угловые скобки — терминальный декор, без аффекта на раскладку */
.card--bracket::before,
.card--bracket::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.card--bracket::before { top: var(--sp-3); left: var(--sp-3); border-right: 0; border-bottom: 0; }
.card--bracket::after  { bottom: var(--sp-3); right: var(--sp-3); border-left: 0; border-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: var(--sp-5) var(--sp-7); font-size: 17px; }
.btn--full { width: 100%; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--glow-red);
  transform: translateY(-1px);
}
.btn--outline { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn--ghost { color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); }
.btn--white { background: #fff; color: var(--bg); }
.btn--white:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ---------- Tags (pills) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--pill);
  color: var(--text);
}
.tag--red { background: var(--accent); color: #fff; }
.tag--done { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.tag--muted { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.tag--accent { background: var(--coral); color: var(--bg); }
.tag--ghost { background: transparent; border: 1px solid rgba(255,255,255,0.2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-5) 0;
}
.brand { flex-shrink: 0; }
.brand__mark {
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  gap: var(--sp-6);
  margin-left: var(--sp-5);
  margin-right: auto;
}
.nav a {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--dur-fast);
}
.nav a:hover { color: var(--text); }

.header-cta {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.header-cta .btn { padding: 10px 22px; font-size: var(--fs-sm); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--sp-4) clamp(var(--sp-5), 4vw, var(--sp-8)) var(--sp-6);
  background: var(--bg-deep);
}
.mobile-nav a {
  padding: var(--sp-4) 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--fs-base);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a.btn { text-align: center; margin-top: var(--sp-4); border: 0; }
.mobile-nav:not([hidden]) { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 200px) 0 clamp(var(--sp-8), 10vh, 140px);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__ascii {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  height: 90%;
  width: auto;
  max-width: 60%;
  opacity: 0.18;
  filter: brightness(1.6) contrast(1.2);
  mask-image: linear-gradient(90deg, transparent 0%, #000 50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%);
}
.hero__glow-red {
  position: absolute;
  top: 30%;
  right: -15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(243, 28, 22, 0.22) 0%, transparent 55%);
  filter: blur(60px);
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

.hero__wrap { position: relative; z-index: 1; width: 100%; }

/* Live indicator: красная точка с пульсом + надпись */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(243, 28, 22, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(243, 28, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 28, 22, 0); }
}

.hero__date {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-7);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-6);
  color: var(--text);
  max-width: 100%;
  word-break: break-word;
}
.hero__title--accent {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(243, 28, 22, 0.4);
  animation: text-glow-pulse 3s ease-in-out infinite;
}
@keyframes text-glow-pulse {
  0%, 100% { text-shadow: 0 0 30px rgba(243, 28, 22, 0.4); }
  50%      { text-shadow: 0 0 50px rgba(243, 28, 22, 0.75); }
}
.hero__title--md { font-size: clamp(48px, 8vw, 100px); }

.hero__sub {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-4);
  max-width: var(--text-width);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero__desc {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: var(--text-width);
  margin-bottom: var(--sp-7);
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.hero__place {
  margin-top: var(--sp-7);
  font-size: 15px;
  color: var(--text-muted);
  max-width: var(--text-width);
}
.hero__place strong { color: var(--text); }

/* ---------- CTF ---------- */
.section--ctf { background: var(--bg); }
.ctf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min), 1fr));
  gap: var(--grid-gap);
}
/* Stage card extras */
.stage-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.stage-card__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.stage-card__dates {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.stage-card__place {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}
.stage-card__desc {
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.stage-card__results {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.results-placeholder {
  font-size: 15px;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Meetup teaser ---------- */
.section--meetup { background: var(--bg-deep); }
.teaser {
  padding: clamp(var(--sp-7), 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--card);
  background-image: radial-gradient(ellipse at top right, rgba(243, 28, 22, 0.18), transparent 60%);
  position: relative;
  overflow: hidden;
}
.teaser::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: var(--accent);
  box-shadow: 0 0 40px var(--accent);
}
.teaser__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.teaser__desc {
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  font-size: 19px;
  max-width: var(--text-width);
  line-height: 1.55;
}

/* ---------- Gallery ---------- */
.section--gallery { background: var(--bg-deep); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--card);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur);
  filter: saturate(0.8);
}
.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--accent), 0 10px 30px -10px rgba(243, 28, 22, 0.5);
}
.gallery__item:hover img {
  transform: scale(1.06);
  filter: saturate(1.15);
}

/* ---------- Organizers ---------- */
.section--organizers { background: var(--bg); }
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min), 1fr));
  gap: var(--grid-gap);
}
.org-card__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 88px;
  margin-bottom: var(--sp-7);
}
.org-card__logo img {
  height: 100%; width: auto;
  /* max-width: 88px; */
  object-fit: contain;
}
.org-card__logo-text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
}
.org-card__logo--wide img { max-width: 280px; height: 64px; }
.org-card__logo--wide .org-card__logo-text { display: none; }
.org-card__desc {
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.org-card__desc p + p { margin-top: var(--sp-4); }

/* ---------- FAQ ---------- */
.section--faq { background: var(--bg); }
.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq__item {
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  transition: background var(--dur);
}
.faq__item[open] {
  background: linear-gradient(180deg, var(--card) 0%, rgba(243,28,22,0.06) 100%);
}
.faq__item summary {
  padding: var(--sp-6) var(--sp-7);
  font-size: 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-5);
  transition: color var(--dur-fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  width: 24px; height: 24px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__answer {
  padding: 0 var(--sp-7) var(--sp-6);
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.faq__answer a { color: var(--accent); }
.faq__answer a:hover { text-decoration: underline; }

/* ---------- Для кого — num-card ---------- */
.section--audience-main { background: var(--bg); }
.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.num-card {
  padding: var(--sp-7) var(--sp-7) var(--sp-8);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.num-card__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}
.num-card__value {
  font-size: clamp(110px, 14vw, 190px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: var(--sp-5) 0 0;
  font-family: var(--font-sans);
  text-shadow: 0 0 40px rgba(243, 28, 22, 0.35);
  position: relative;
  z-index: 2;
}
/* Ghost outline цифры за красной — даёт глубину */
.num-card__value::before {
  content: attr(data-ghost);
  position: absolute;
  top: -22px; left: -24px;
  font-size: 1.4em;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.06);
  z-index: -1;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.num-card__note {
  margin-top: var(--sp-5);
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  padding: clamp(var(--sp-7), 6vw, var(--sp-8)) 0 var(--sp-6);
}
.footer-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-6), 4vw, 56px);
}
.footer-card__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-card__heading {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--sp-6);
  font-weight: 600;
}
.footer-card__logos {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-6), 3vw, var(--sp-7));
  flex-wrap: wrap;
  row-gap: var(--sp-5);
}
.footer-card__logo { height: 96px; width: auto; max-width: 220px; object-fit: contain; }
.footer-card__logo--wide { height: 72px; max-width: 260px; }

@media (max-width: 900px) {
  .footer-card__logo { height: 72px; }
  .footer-card__logo--wide { height: 56px; }
}
@media (max-width: 560px) {
  .footer-card__logo { height: 56px; }
  .footer-card__logo--wide { height: 44px; }
}
.footer-card__bottom {
  padding-top: var(--sp-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.footer-card__nav {
  display: flex;
  gap: var(--sp-6);
}
.footer-card__nav a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color var(--dur-fast);
}
.footer-card__nav a:hover { color: var(--text); }
.footer-card__cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.footer__copy {
  text-align: center;
  padding-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ---------- Placeholder ---------- */
.placeholder {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 133, 98, 0.1);
  border: 1px dashed rgba(255, 133, 98, 0.4);
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ============================================
   MEETUP PAGE
   ============================================ */
/* Meetup hero — арена ИБ: сетка, HUD, интерактивная панель */
.hero--meetup-arena {
  --arena-tilt-x: 0deg;
  --arena-tilt-y: 0deg;
  min-height: 70vh;
  background: var(--bg-deep);
  align-items: center;
}
.hero-arena__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-arena__hexgrid {
  position: absolute;
  inset: -20%;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(243, 28, 22, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 28, 22, 0.09) 1px, transparent 1px),
    linear-gradient(60deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 24px 24px;
  animation: hero-arena-grid-drift 28s linear infinite;
}
@keyframes hero-arena-grid-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-48px, -24px) rotate(0deg); }
}
.hero-arena__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
  animation: hero-arena-scan 7s linear infinite;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
@keyframes hero-arena-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.hero-arena__radial {
  position: absolute;
  top: 20%;
  left: 45%;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(243, 28, 22, 0.18) 0%, transparent 62%);
  filter: blur(40px);
  animation: pulse-glow 5s ease-in-out infinite;
}
.hero-arena__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(var(--sp-6), 5vw, var(--sp-9));
  align-items: center;
  width: 100%;
}
.hero-arena__copy {
  min-width: 0;
  container-type: inline-size;
  container-name: hero-arena-copy;
}
.hero-arena__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}
.hero-arena__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  box-shadow: 0 0 12px rgba(143, 216, 143, 0.7);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.hero-arena__badge {
  margin-left: var(--sp-2);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  letter-spacing: 0.14em;
  cursor: default;
  transition: box-shadow var(--dur-fast), transform var(--dur-fast);
}
.hero-arena__badge:hover {
  box-shadow: 0 0 20px rgba(143, 216, 143, 0.25);
  transform: translateY(-1px);
}
.hero-arena__title.hero__title--md {
  font-size: clamp(28px, 5.5vw, 96px);
  line-height: 0.95;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
@supports (container-type: inline-size) {
  .hero-arena__title.hero__title--md {
    font-size: clamp(28px, 8cqi, 96px);
  }
}
.hero-arena__title .hero-arena__title-suffix {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(243, 28, 22, 0.35);
}
.hero-arena__place { border-left: 2px solid rgba(243, 28, 22, 0.45); padding-left: var(--sp-4); }
.hero-arena__btn-primary {
  box-shadow: 0 0 0 0 rgba(243, 28, 22, 0.4);
  transition: box-shadow var(--dur), transform var(--dur-fast);
}
.hero-arena__btn-primary:hover {
  box-shadow: 0 0 32px rgba(243, 28, 22, 0.45);
  transform: translateY(-2px);
}
.hero-arena__hud {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.hero-arena__hud-inner {
  --b: rgba(243, 28, 22, 0.45);
  position: relative;
  padding: var(--sp-6);
  background: linear-gradient(145deg, rgba(34, 34, 36, 0.96) 0%, rgba(15, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateX(var(--arena-tilt-x, 0deg)) rotateY(var(--arena-tilt-y, 0deg));
  transition: transform 0.35s var(--ease), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.hero-arena__hud-inner::before,
.hero-arena__hud-inner::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--b);
  pointer-events: none;
}
.hero-arena__hud-inner::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.hero-arena__hud-inner::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.hero--meetup-arena:hover .hero-arena__hud-inner {
  border-color: rgba(243, 28, 22, 0.22);
}
.hero-arena__hud-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-arena__hud-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}
.hero-arena__hud-live {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  animation: hero-arena-live-blink 2.4s ease-in-out infinite;
}
@keyframes hero-arena-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero-arena__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.hero-arena__stat {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 2px var(--sp-4);
  padding: var(--sp-4) var(--sp-4);
  padding-left: calc(var(--sp-4) - 3px);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  cursor: default;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
  contain: paint;
}
.hero-arena__stat:hover,
.hero-arena__stat:focus-visible {
  border-color: rgba(255, 255, 255, 0.06);
  border-left-color: var(--accent);
  background-color: rgba(243, 28, 22, 0.08);
}
.hero-arena__stat-k {
  grid-row: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  align-self: center;
}
.hero-arena__stat-v {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-arena__stat-v--ok {
  color: var(--success);
  text-shadow: 0 0 18px rgba(143, 216, 143, 0.35);
}
.hero-arena__stat-hint {
  grid-column: 2;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}
.hero-arena__hud-footer {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.hero-arena__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  word-break: break-all;
}
@media (max-width: 960px) {
  .hero-arena__layout {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .hero-arena__hud-inner {
    transform: none;
  }
  .hero--meetup-arena { min-height: auto; }
  .hero-arena__title.hero__title--md {
    font-size: clamp(28px, 9vw, 96px);
  }
}
@media (max-width: 420px) {
  .hero-arena__title.hero__title--md {
    white-space: normal;
  }
}

.section--program { background: var(--bg); }
.schedule {
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}
.schedule__row {
  display: grid;
  grid-template-columns: 200px 1fr 2fr;
  gap: var(--sp-5);
  padding: var(--sp-6) 36px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--dur-fast);
}
.schedule__row:last-child { border-bottom: 0; }
.schedule__row:hover { background: rgba(255,255,255,0.03); }
.schedule__row--break { color: var(--text-dim); }
.schedule__row--tbd .schedule__time {
  color: var(--text-dim);
}
.schedule__row--tbd .schedule__speaker,
.schedule__row--tbd .schedule__topic {
  color: var(--text-dim);
}
.schedule__row--tbd .placeholder {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.schedule__time {
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--accent);
  font-weight: 500;
}
.schedule__speaker { font-weight: 600; font-size: var(--fs-md); }
.schedule__topic { color: var(--text-muted); font-size: var(--fs-md); }
.schedule__note {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--sp-7);
}
.schedule__note a { color: var(--accent); }

.speakers-about {
  padding: var(--sp-7);
  background: var(--card);
  border-radius: var(--radius-lg);
}
.speakers-about h3 { font-size: 28px; margin-bottom: var(--sp-4); font-weight: 700; }
.speakers-about p { color: var(--text-muted); font-size: var(--fs-md); }

.section--activities { background: var(--bg-deep); }
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min), 1fr));
  gap: var(--grid-gap);
}
.activity-card__icon {
  width: 72px; height: 72px;
  background: var(--accent-soft);
  border: 1px solid rgba(243, 28, 22, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
}
.activity-card__icon img { width: 36px; height: 36px; filter: invert(1); opacity: 0.9; }
.activity-card__icon--circle {
  background: linear-gradient(135deg, var(--coral), var(--accent));
  border: 0;
}
.activity-card h3 { font-size: 28px; margin-bottom: var(--sp-4); font-weight: 700; }
.activity-card p { color: var(--text-muted); font-size: 17px; line-height: 1.55; }

.section--audience { background: var(--bg); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min), 1fr));
  gap: var(--sp-4);
}
.aud-card { padding: var(--sp-6); }
.aud-card__title {
  font-size: 20px;
  margin-bottom: var(--sp-3);
  color: var(--accent);
  font-weight: 700;
}
.aud-card p { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.55; }

.section--networking { background: var(--bg-deep); }
.section--networking .lead {
  font-size: clamp(19px, 1.9vw, 24px);
  color: var(--text);
  max-width: var(--text-width);
  line-height: 1.5;
}

.section--register {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.section--register::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  pointer-events: none;
}

/* ---------- Two-column layout ---------- */
.reg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(var(--sp-6), 6vw, 96px);
  align-items: start;
}

/* ---------- LEFT: meta panel ---------- */
.reg-meta {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  padding-right: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.reg-meta__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--accent-soft);
  background: rgba(243, 28, 22, 0.06);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  width: fit-content;
}
.reg-meta__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: reg-pulse 1.8s var(--ease) infinite;
}
@keyframes reg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(243, 28, 22, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(243, 28, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 28, 22, 0); }
}
.reg-meta__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: var(--sp-3) 0 0;
}
.reg-meta__num { color: var(--accent); margin-right: var(--sp-3); }
.reg-meta__title {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.reg-meta__title-em {
  color: var(--accent);
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.reg-meta__title-em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: reg-underline 1.2s var(--ease) 0.3s forwards;
}
@keyframes reg-underline {
  to { transform: scaleX(1); }
}
.reg-meta__lead {
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
  max-width: 42ch;
}

.reg-meta__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-4) 0 0;
}
.reg-meta__spec {
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.reg-meta__spec:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: var(--sp-5); }
.reg-meta__spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.reg-meta__spec dd {
  font-size: var(--fs-md);
  color: var(--text);
  font-weight: 500;
  margin: 0;
}
.reg-meta__contact {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-top: var(--sp-2);
}
.reg-meta__contact a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--dur-fast);
}
.reg-meta__contact a:hover { color: var(--accent-hover); }

/* ---------- RIGHT: form ---------- */
.reg-form {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: clamp(var(--sp-6), 3.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: none;
  width: 100%;
}
.reg-form::before,
.reg-form::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  pointer-events: none;
}
.reg-form::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.reg-form::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.reg-form__path {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px dashed var(--border);
}
.reg-form__path::before {
  content: '❯ ';
  color: var(--accent);
}

.reg-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}
.reg-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }

/* Field: floating label + bottom underline */
.reg-form__field {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 44px;
  padding-bottom: 2px;
}
.reg-form__idx {
  position: absolute;
  left: 0;
  top: 26px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.12em;
  transition: color var(--dur-fast);
}
.reg-form__field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--sp-2);
  transition: color var(--dur-fast);
}
.reg-form__hint {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  opacity: 0.7;
}
.reg-form__field input,
.reg-form__field select {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text);
  font-size: 18px;
  padding: var(--sp-3) 0;
  line-height: 1.4;
  font-family: var(--font-sans);
}
.reg-form__field input::placeholder {
  color: var(--text-dim);
  opacity: 0.55;
}
.reg-form__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' fill='none' stroke='%23c7c7c7' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: var(--sp-5);
  cursor: pointer;
}
.reg-form__field option { background: var(--bg); color: var(--text); }
.reg-form__field input:focus,
.reg-form__field select:focus {
  outline: none;
}
.reg-form__field:focus-within label,
.reg-form__field:focus-within .reg-form__idx {
  color: var(--accent);
}
.reg-form__line {
  position: absolute;
  left: 44px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}
.reg-form__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.reg-form__field:focus-within .reg-form__line::after { transform: scaleX(1); }
.reg-form__field input:not(:placeholder-shown) ~ .reg-form__line,
.reg-form__field select:valid ~ .reg-form__line { background: rgba(255,255,255,0.25); }

.reg-form__field input[aria-invalid="true"] ~ .reg-form__line,
.reg-form__field select[aria-invalid="true"] ~ .reg-form__line { background: var(--accent); }
.reg-form__field input[aria-invalid="true"] ~ .reg-form__line::after,
.reg-form__field select[aria-invalid="true"] ~ .reg-form__line::after { transform: scaleX(1); background: var(--accent); }

/* Submit button — blocky, with animated arrow */
.reg-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  margin-top: var(--sp-3);
  overflow: hidden;
}
.reg-form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}
.reg-form__submit:hover {
  background: var(--accent-hover);
  box-shadow: var(--glow-red-sm);
}
.reg-form__submit:hover::before { transform: translateX(100%); }
.reg-form__submit:active { transform: translateY(1px); }
.reg-form__submit-arrow {
  font-family: var(--font-mono);
  font-size: 20px;
  transition: transform var(--dur) var(--ease);
}
.reg-form__submit:hover .reg-form__submit-arrow { transform: translateX(6px); }

.reg-form__captcha {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.reg-form__message {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--accent);
}

.reg-form__message[hidden] {
  display: none;
}

.reg-form__note {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 60ch;
}

/* Success state */
.reg-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-7) var(--sp-5);
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  color: var(--success);
}
.reg-form__success[hidden] { display: none; }
.reg-form__success-mark {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  grid-template-rows: repeat(3, 10px);
  gap: 2px;
}
.reg-form__success-mark span {
  background: transparent;
  opacity: 0;
  animation: reg-pixel-in 0.06s var(--ease) forwards;
}
/* 3x3 checkmark: cells filled (0-indexed) */
.reg-form__success-mark span:nth-child(1),  /* _ _ X */
.reg-form__success-mark span:nth-child(5),  /* _ X _ */
.reg-form__success-mark span:nth-child(7),  /* X _ _ */
.reg-form__success-mark span:nth-child(3),
.reg-form__success-mark span:nth-child(6),
.reg-form__success-mark span:nth-child(8) { background: var(--success); }
.reg-form__success-mark span:nth-child(3) { animation-delay: 0.05s; }
.reg-form__success-mark span:nth-child(6) { animation-delay: 0.1s; }
.reg-form__success-mark span:nth-child(8) { animation-delay: 0.2s; }
.reg-form__success-mark span:nth-child(7) { animation-delay: 0.3s; }
.reg-form__success-mark span:nth-child(5) { animation-delay: 0.15s; }
.reg-form__success-mark span:nth-child(1) { animation-delay: 0.25s; }
@keyframes reg-pixel-in {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: scale(1); }
}
.reg-form__success-title {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
  margin: 0;
}
.reg-form__success-body {
  color: var(--text-muted);
  font-size: var(--fs-base);
  margin: 0;
  max-width: 32ch;
}

/* ---------- Responsive for registration ---------- */
@media (max-width: 900px) {
  .reg-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .reg-meta { position: static; padding-right: 0; }
  .reg-meta__specs { grid-template-columns: 1fr; }
  .reg-meta__spec { border-right: 0; padding-left: 0 !important; padding-right: 0; }
  .reg-form__row { grid-template-columns: 1fr; }
  .reg-form__row--3 { grid-template-columns: 1fr; gap: var(--sp-5); }
}
@media (max-width: 560px) {
  .reg-form { padding: var(--sp-5); }
  .reg-form__field { padding-left: 36px; }
  .reg-form__idx { top: 22px; }
  .reg-form__line { left: 36px; }
  .reg-form__submit { font-size: var(--fs-base); padding: var(--sp-4) var(--sp-5); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .schedule__row { grid-template-columns: 1fr; gap: var(--sp-2); padding: var(--sp-5) var(--sp-5); }
  .schedule__time { font-size: var(--fs-sm); }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { width: 100%; }
  .hero { min-height: auto; padding: 120px 0 var(--sp-8); }
  .num-grid { grid-template-columns: 1fr; }
  .num-card { min-height: 200px; }
}

@media (max-width: 600px) {
  body { font-size: var(--fs-base); }
  .footer-card__cols { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-card__bottom { flex-direction: column; align-items: stretch; }
  .footer-card__cta { flex-direction: column; }
  .footer-card__cta .btn { width: 100%; }
  .org-card__logo { gap: var(--sp-4); }
  .org-card__logo img { max-width: 64px; }
  .org-card__logo--wide img { max-width: 200px; }
  .hero__ascii { opacity: 0.3; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__date,
  .hero__title,
  .hero__sub,
  .hero__desc,
  .hero__cta {
    animation: fade-up 0.8s var(--ease) backwards;
  }
  .hero__date  { animation-delay: 0.05s; }
  .hero__title { animation-delay: 0.15s; }
  .hero__sub   { animation-delay: 0.25s; }
  .hero__desc  { animation-delay: 0.35s; }
  .hero__cta   { animation-delay: 0.45s; }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-lightbox);
  padding: var(--sp-7);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-5);
  right: 28px;
  width: 48px; height: 48px;
  font-size: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background var(--dur-fast);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }

/* Живая точка в hero — единственный круг (физически точка) */
.hero__eyebrow::before { border-radius: 50%; }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(243, 28, 22, 0.4);
  z-index: 999;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--sp-7);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  max-width: 100%;
}
.countdown__label {
  display: flex;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: var(--sp-3) var(--sp-5);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 220px;
  line-height: 1.3;
}
.countdown__units {
  display: flex;
  flex: 0 0 auto;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-5);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 80px;
}
.countdown__unit:last-child { border-right: 0; }
.countdown__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}
.countdown__name {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--sp-2);
  font-weight: 500;
}
.countdown--expired .countdown__num { color: var(--text-dim); }

@media (max-width: 720px) {
  .countdown__label {
    max-width: none;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--sp-3) var(--sp-4);
  }
}
@media (max-width: 600px) {
  .countdown__unit { min-width: 64px; padding: var(--sp-3) var(--sp-3); }
  .countdown__num { font-size: 26px; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal--delay-1 { transition-delay: 0.1s; }
  .reveal--delay-2 { transition-delay: 0.2s; }
  .reveal--delay-3 { transition-delay: 0.3s; }
}

/* ============================================
   RESULTS MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - var(--sp-6) * 2);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.modal__close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.modal__head {
  padding: var(--sp-6) var(--sp-7) var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 var(--sp-2);
}
.modal__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.modal__body {
  overflow-y: auto;
  padding: var(--sp-3) var(--sp-7) var(--sp-6);
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.results-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  text-align: left;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.results-table__rank { width: 64px; }
.results-table__score { width: 110px; text-align: right; }
.results-table tbody td {
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.results-table tbody td:first-child {
  color: var(--accent);
  font-weight: 700;
  width: 64px;
}
.results-table tbody td:last-child {
  text-align: right;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.results-table tbody tr:nth-child(-n+3) td:first-child { font-size: 15px; }
.modal--open { overflow: hidden; }

@media (max-width: 560px) {
  .modal__head, .modal__body { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .results-table { font-size: 12px; }
}

/* ============================================
   PIXEL TRANSITION (between meetup sections)
   ============================================ */
.pixel-transition {
  position: relative;
  width: 100%;
  height: clamp(560px, 92vh, 1000px);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
  overflow: hidden;
}
.pixel-transition__blocks {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(120px, 14vw, 200px);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.pixel-transition__blocks--top    { top: 0; }
.pixel-transition__blocks--bottom { bottom: 0; }
.pixel-transition__row {
  flex: 1 1 0;
  display: flex;
  overflow: hidden;
}
.pixel-transition__block {
  flex: 1 1 0;
  background: var(--bg);
  transition: opacity 80ms linear;
}
.pixel-transition--a .pixel-transition__blocks--top    .pixel-transition__block { background: var(--bg); }
.pixel-transition--a .pixel-transition__blocks--bottom .pixel-transition__block { background: var(--bg-deep); }
.pixel-transition--b .pixel-transition__blocks--top    .pixel-transition__block { background: var(--bg-deep); }
.pixel-transition--b .pixel-transition__blocks--bottom .pixel-transition__block { background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .pixel-transition__blocks { display: none; }
}

/* ============================================
   PIXEL PAGE TRANSITION (click overlay)
   ============================================ */
.pixel-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}
.pixel-overlay.is-active { display: flex; }
.pixel-overlay__square {
  width: 100px;
  height: 100px;
  background: #000;
  opacity: 0;
}

/* Pre-paint cover: when arriving from a transition, hide page until JS starts the reveal */
html.pixel-covering { background: #000; }
html.pixel-covering body { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pixel-overlay { display: none !important; }
  html.pixel-covering { background: transparent; }
  html.pixel-covering body { visibility: visible; }
}
