/* ==========================================================================
   Конкурс по мобильной разработке — стили лендинга
   Всё оформление настраивается переменными ниже (палитра, радиусы, шрифты).
   Тексты и даты правятся в assets/js/content.js
   ========================================================================== */

:root {
  /* Палитра */
  --bg:            #070b12;
  --bg-2:          #0b111c;
  --bg-3:          #0e1624;
  --surface:       rgba(255, 255, 255, .035);
  --surface-2:     rgba(255, 255, 255, .06);
  --line:          rgba(255, 255, 255, .10);
  --line-strong:   rgba(255, 255, 255, .18);
  --text:          #e9f0f8;
  --text-dim:      #9fb0c4;
  --text-mute:     #6c8099;

  --accent:        #35e0d0;
  --accent-2:      #4b8cff;
  --accent-3:      #b6f24a;
  --accent-soft:   rgba(53, 224, 208, .12);

  --grad: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 58%, #8b7cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(53,224,208,.16), rgba(75,140,255,.16));

  /* Типографика */
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Форма */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --container: 1280px;
  --header-h:  74px;

  --shadow:    0 24px 70px -30px rgba(0, 0, 0, .9);
  --glow:      0 0 0 1px rgba(53, 224, 208, .22), 0 18px 60px -28px rgba(53, 224, 208, .55);
}

/* ---------------------------------------------------------- BASE ----- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -5%,  rgba(53, 224, 208, .10), transparent 60%),
    radial-gradient(800px 500px at 92% 8%,   rgba(75, 140, 255, .10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Атрибут hidden должен побеждать любые display в этом файле */
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #04131a; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #04131a;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

.noscript-note {
  margin: 0;
  padding: 16px 24px;
  background: rgba(255, 190, 60, .12);
  border-bottom: 1px solid rgba(255, 190, 60, .35);
  text-align: center;
}
.noscript-note a { text-decoration: underline; }

/* --------------------------------------------------------- BUTTONS --- */

.btn {
  --btn-bg: var(--surface-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease,
              border-color .22s ease, color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.btn-primary {
  background: var(--grad);
  color: #04121a;
  border-color: transparent;
  box-shadow: 0 12px 34px -16px rgba(53, 224, 208, .9);
}
.btn-primary:hover { box-shadow: 0 20px 44px -16px rgba(53, 224, 208, 1); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: gap .2s ease, border-color .2s ease;
}
.link-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-more:hover { gap: 13px; border-color: var(--accent); }

/* ---------------------------------------------------------- HEADER --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 18, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(7, 11, 18, .9); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--grad);
  color: #04121a;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.03em;
  box-shadow: 0 10px 26px -14px rgba(53, 224, 208, .9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand-text i { font-size: 11px; font-style: normal; color: var(--text-mute); }

.nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block;
  padding: 9px 9px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-dim);
  transition: color .18s ease, background .18s ease;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}
.status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(182, 242, 74, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(182, 242, 74, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(182, 242, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 242, 74, 0); }
}

.header-progress { height: 2px; background: transparent; }
.header-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width .1s linear;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 3.5px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  padding: 20px 24px 28px;
  background: rgba(9, 14, 22, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  animation: dropIn .22s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-nav-list { margin: 0 0 18px; padding: 0; list-style: none; }
.mobile-nav-list a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

/* ------------------------------------------------------------ HERO --- */

.hero { position: relative; overflow: hidden; padding: 84px 0 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 12%, transparent 78%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero-glow-1 {
  width: 620px; height: 620px;
  top: -260px; left: -140px;
  background: radial-gradient(circle, rgba(53, 224, 208, .40), transparent 68%);
}
.hero-glow-2 {
  width: 720px; height: 560px;
  top: -220px; right: -200px;
  background: radial-gradient(circle, rgba(75, 140, 255, .38), transparent 68%);
}
.hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.02) 0 1px, transparent 1px 4px);
  opacity: .5;
}

.hero-inner { position: relative; text-align: center; }

.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-kicker .sep { color: var(--accent); }

.hero-title { margin: 0 0 22px; }
.hero-title-main {
  display: block;
  font-size: clamp(46px, 9.2vw, 108px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-sub {
  display: block;
  max-width: 900px;
  margin: 20px auto 0;
  font-size: clamp(16px, 2.3vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dim);
}

.hero-lead {
  max-width: 760px;
  margin: 0 auto 38px;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--text-dim);
}

.hero-dates {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 34px;
  margin-bottom: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--grad-soft), var(--surface);
  backdrop-filter: blur(10px);
}
.hero-dates-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero-dates-value {
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero-dates-note { font-size: 13.5px; color: var(--text-dim); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}
.hero-cta-note { flex-basis: 100%; font-size: 13px; color: var(--text-mute); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  background: var(--bg-2);
}
.stat b {
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13px; color: var(--text-dim); }

.hero-marquee {
  margin-top: 64px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------- SECTIONS -- */

.section { padding: 104px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .022) 12%, rgba(255, 255, 255, .022) 88%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 780px; margin-bottom: 52px; }
.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-lead { margin: 0; font-size: clamp(15px, 1.7vw, 18px); color: var(--text-dim); }
.sub-title {
  margin: 64px 0 26px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.note {
  margin: 34px 0 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ ABOUT -- */

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 46px;
  align-items: start;
}
.about-text p { margin: 0 0 20px; font-size: clamp(15px, 1.7vw, 17.5px); color: var(--text-dim); }
.about-text p:last-child { margin-bottom: 0; }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--bg-2);
}
.fact-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.fact-value { font-size: 15px; font-weight: 700; }

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.benefit {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.benefit:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.benefit-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
}
.benefit-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.benefit b { display: block; margin-bottom: 5px; font-size: 16px; font-weight: 800; }
.benefit p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ------------------------------------------------------- DIRECTIONS -- */

.directions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.direction {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.direction::after {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.direction:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.direction:hover::after { transform: scaleX(1); }

.direction-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.direction-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
}
.direction-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.direction-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--text-mute);
}
.direction h3 { margin: 4px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.direction-lead { margin: 0 0 20px; font-size: 15px; font-weight: 600; color: var(--text); }
.direction ul { margin: 0 0 22px; padding: 0; list-style: none; }
.direction li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 14px;
  color: var(--text-dim);
}
.direction li::before {
  content: '';
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.direction-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.direction-note {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 13.5px;
  color: var(--text);
}
.direction-note a { color: var(--accent); border-bottom: 1px dashed var(--accent); }

/* ----------------------------------------------------------- STAGES -- */

.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  overflow: hidden;
}
.stage-num {
  position: absolute;
  top: 18px; right: 26px;
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .05);
}
.stage-badge {
  align-self: flex-start;
  padding: 6px 13px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--grad-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}
.stage h3 { margin: 0 0 12px; font-size: 27px; font-weight: 800; letter-spacing: -.025em; }
.stage-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.stage-date svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.stage-lead { margin: 0 0 22px; font-size: 15px; color: var(--text-dim); }
.stage-items { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); }
.stage-items li { padding: 16px 18px; background: var(--bg-2); }
.stage-items b { display: block; margin-bottom: 4px; font-size: 14.5px; font-weight: 800; }
.stage-items span { font-size: 14px; color: var(--text-dim); }
.stage-note {
  margin: 18px 0 0;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  background: rgba(182, 242, 74, .1);
  border: 1px solid rgba(182, 242, 74, .25);
  font-size: 13.5px;
}

/* ----------------------------------------------------------- EVENTS -- */

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: '';
  position: absolute;
  left: 130px; top: 18px; bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(75, 140, 255, .5), transparent);
}
.event {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  padding: 26px 0;
}
.event-date {
  position: relative;
  text-align: right;
  padding-right: 8px;
}
.event-date b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}
.event-date span { display: block; font-size: 13px; color: var(--text-mute); }
.event-date i {
  position: absolute;
  right: -36px; top: 10px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(53, 224, 208, .12);
}
.event-body {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .22s ease, border-color .22s ease;
}
.event-body:hover { transform: translateX(6px); border-color: var(--line-strong); }
.event-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.event-body h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.event-body p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

/* ----------------------------------------------------------- PRIZES -- */

.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.prize {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  overflow: hidden;
}
.prize::before {
  content: '';
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 180px;
  background: radial-gradient(ellipse, rgba(53, 224, 208, .16), transparent 70%);
}
.prize-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--grad);
}
.prize-icon svg { width: 26px; height: 26px; fill: none; stroke: #04121a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prize h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.prize p { position: relative; margin: 0; font-size: 14.5px; color: var(--text-dim); }

/* --------------------------------------------------------- PARTNERS -- */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.partner {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  transition: transform .25s ease, border-color .25s ease;
}
.partner:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.partner-logo {
  display: flex;
  align-items: center;
  min-height: 66px;
  margin-bottom: 20px;
}
a.partner-logo { width: fit-content; transition: opacity .2s ease; }
a.partner-logo:hover { opacity: .78; }
.partner-logo img { display: block; height: 66px; width: auto; }
.partner-logo-empty { min-height: 66px; }
.partner h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.partner h3 a {
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.partner h3 a:hover { color: var(--accent); border-color: var(--accent); }
.partner p { margin: 0 0 12px; font-size: 14.5px; color: var(--text-dim); }
.partner-note {
  margin: auto 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px !important;
  color: var(--accent) !important;
}

/* --------------------------------------------------------- GALLERY --- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  cursor: zoom-in;
  padding: 0;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 14, .92));
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 5vw;
  background: rgba(4, 7, 12, .93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure { margin: 0; max-width: 1100px; }
.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.lightbox-figure figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: var(--surface-2); transform: rotate(90deg); }
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------------------------------------------------- PREVIOUS DATA -- */

.prev-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  margin-top: 8px;
}

.winners { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.winner {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.winner-place {
  flex-shrink: 0;
  min-width: 74px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.winner-project { margin: 0 0 5px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.winner-members { margin: 0; font-size: 13.5px; color: var(--text-dim); }

.special-mention {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 14px;
}
.special-mention b { display: block; margin-bottom: 4px; color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.jury { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.jury li { padding: 16px 20px; background: var(--bg-2); }
.jury b { display: block; font-size: 15px; font-weight: 800; }
.jury span { font-size: 13.5px; color: var(--text-dim); }

.quote {
  margin: 52px 0 0;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--grad-soft), var(--surface);
}
.quote blockquote {
  margin: 0 0 18px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -.01em;
}
.quote figcaption { font-size: 14px; color: var(--text-dim); }
.quote figcaption b { display: block; color: var(--text); font-size: 15px; }

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

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .22s ease, background .22s ease;
}
.faq-item.is-open { border-color: var(--line-strong); background: var(--surface-2); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 26px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform .28s ease;
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: translateY(-50%) rotate(0deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding: 0 26px 24px;
  font-size: 15px;
  color: var(--text-dim);
}

/* ------------------------------------------------------------- FORM -- */

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.form-notes { display: flex; flex-direction: column; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.form-notes li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--text-dim); }
.form-notes b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.form-card {
  padding: 36px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow);
}
#regForm { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend {
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dim);
}
.field label i, .field legend i { color: var(--accent); font-style: normal; margin-left: 3px; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 8, 14, .55);
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(4, 8, 14, .8);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff6b6b; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap svg {
  position: absolute;
  right: 15px; top: 50%;
  width: 18px; height: 18px;
  fill: none; stroke: var(--text-mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}
.select-wrap option { background: #0d1420; color: var(--text); }

.err {
  display: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff8f8f;
}
.field.has-error .err, .err.is-visible { display: block; }

.counter { font-size: 12px; color: var(--text-mute); text-align: right; }
.counter b { color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* radio cards */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 8, 14, .45);
  transition: border-color .2s ease, background .2s ease;
}
.radio-inner b { font-size: 14.5px; font-weight: 800; }
.radio-inner em { font-size: 12.5px; font-style: normal; color: var(--text-mute); }
.radio-card:hover .radio-inner { border-color: var(--line-strong); }
.radio-card input:checked + .radio-inner {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.radio-card input:focus-visible + .radio-inner { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.has-error .radio-inner { border-color: #ff6b6b; }

/* team block */
.team-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(4, 8, 14, .35);
  animation: dropIn .25s ease;
}

.members-label { display: block; }
.members { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.member {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 42px;
  grid-template-areas:
    "name  email remove"
    "role  role  remove";
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 18, .6);
  animation: dropIn .22s ease;
}
.member [data-m="name"]  { grid-area: name; }
.member [data-m="email"] { grid-area: email; }
.member [data-m="role"]  { grid-area: role; }
.member input, .member select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 8, 14, .6);
  font-size: 14px;
}
.member input::placeholder { color: var(--text-mute); }
.member select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 8px; }
.member input:focus, .member select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.member-index {
  position: absolute;
  top: -9px; left: 12px;
  padding: 0 6px;
  background: #0b1119;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-mute);
}
.member-remove {
  grid-area: remove;
  align-self: stretch;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.member-remove svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.member-remove:hover { border-color: #ff6b6b; color: #ff6b6b; background: rgba(255, 107, 107, .1); }
.member.has-error { border-color: #ff6b6b; }
.member.has-error input { border-color: #ff6b6b; }

/* consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-dim);
}
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-ui {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(4, 8, 14, .6);
  transition: background .2s ease, border-color .2s ease;
}
.checkbox-ui svg { width: 14px; height: 14px; fill: none; stroke: #04121a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .15s ease; }
.consent input:checked + .checkbox-ui { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .checkbox-ui svg { opacity: 1; }
.consent input:focus-visible + .checkbox-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent.has-error .checkbox-ui { border-color: #ff6b6b; }

.submit-hint { margin: -6px 0 0; font-size: 12.5px; color: var(--text-mute); text-align: center; }
#submitBtn { margin-top: 4px; }
#submitBtn.is-sending { opacity: .65; pointer-events: none; }
#submitBtn:disabled { cursor: progress; }

.submit-error {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ffb4b4;
  background: rgba(255, 107, 107, .1);
  border: 1px solid rgba(255, 107, 107, .35);
  border-radius: 10px;
}

/* success */
.success { display: flex; flex-direction: column; gap: 20px; animation: dropIn .3s ease; }
.success-head { display: flex; gap: 18px; align-items: flex-start; }
.success-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.success-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success-head h3 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.success-head p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
.success-warn {
  margin: 0;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  background: rgba(255, 190, 60, .1);
  border: 1px solid rgba(255, 190, 60, .28);
  font-size: 13.5px;
  color: #ffd591;
}
.success-payload { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(4, 8, 14, .6); overflow: hidden; }
.success-payload h4 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.success-payload pre {
  margin: 0;
  padding: 16px;
  max-height: 320px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.success-actions .btn { flex: 1 1 auto; }

/* ----------------------------------------------------- ORGANIZERS ---- */

.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.org-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .22s ease, background .22s ease;
}
.org-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.org-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.org-card p { margin: 0 0 14px; font-size: 14px; color: var(--text-dim); }
.org-links { display: flex; flex-wrap: wrap; gap: 8px; }
.org-links a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s ease, border-color .2s ease;
}
.org-links a:hover { color: var(--accent); border-color: var(--accent); }

.contacts { margin-top: 48px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list li { flex: 1 1 220px; }
.contact-list a, .contact-list span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-list a:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-list em {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-list b { font-size: 15px; font-weight: 700; }

/* ---------------------------------------------------------- FOOTER --- */

.site-footer {
  padding: 54px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { display: block; font-size: 16px; font-weight: 800; }
.footer-brand i { font-size: 12.5px; font-style: normal; color: var(--text-mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-size: 14px; font-weight: 600; color: var(--text-dim); transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-dates { font-family: var(--mono); }

/* ------------------------------------------------------- TO TOP ------ */

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 17, 28, .9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------ REVEAL ------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ------------------------------------------------------ RESPONSIVE --- */

@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-actions .btn { display: none; }
  .brand { margin-right: auto; }
}

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .prev-grid { grid-template-columns: 1fr; gap: 40px; }
  .directions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .timeline::before { left: 12px; }
  .event { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .event-date { text-align: left; padding-left: 40px; }
  .event-date b { display: inline; margin-right: 10px; }
  .event-date span { display: inline; }
  .event-date span + span { margin-left: 9px; }
  .event-date span + span::before { content: '·'; margin-right: 9px; color: var(--text-mute); }
  .event-date i { left: 8px; right: auto; top: 12px; }
  .member { grid-template-columns: 1fr 42px; grid-template-areas: "name remove" "email email" "role role"; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { padding: 0 18px; }
  .hero { padding-top: 56px; }
  .hero-kicker { gap: 7px; padding: 7px 14px; font-size: 10.5px; letter-spacing: .04em; }
  .status-pill { margin-bottom: 18px; }
  .hero-dates { padding: 16px 22px; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 10px; }
  .radio-cards { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .gallery { grid-auto-rows: 130px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .quote { padding: 26px 22px; }
  .form-notes { display: none; }
  .member { grid-template-columns: 1fr; grid-template-areas: "name" "email" "role" "remove"; }
  .member-remove { padding: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .brand-text i { display: none; }
}

@media print {
  .site-header, .mobile-nav, .to-top, .hero-marquee, .lightbox, .header-progress { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .section { padding: 24px 0; break-inside: avoid; }
}