/* ==========================================================================
   Badminton TJ Orlová-Lutyně — stylesheet
   ========================================================================== */

:root {
  --navy-900: #0a2c52;
  --navy-800: #0d3a73;
  --navy-700: #12488f;
  --blue-500: #2f80ed;
  --green-500: #4caf3f;
  --yellow-400: #ffd23f;
  --red-500: #e6483c;

  --ink: #0f1b2a;
  --ink-soft: #4a5a6d;
  --paper: #ffffff;
  --paper-soft: #f4f7fb;
  --line: #e2e8f1;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(10, 44, 82, 0.07);
  --shadow-md: 0 12px 32px rgba(10, 44, 82, 0.14);
  --container: 1180px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

/* ---------- Vodoznak loga (fixní, mění barvu podle podkladu) ---------- */
.page-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(56vw, 760px);
  z-index: 5;
  pointer-events: none;
  opacity: .05;
  transition: opacity .4s ease;
}
.page-watermark img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity .35s ease;
}
@media (max-width: 700px) {
  .page-watermark { display: none; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: rgba(47, 128, 237, .09);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-400);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, .25);
}

.section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-alt {
  background: var(--paper-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--yellow-400);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(255, 210, 63, .35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(255, 210, 63, .45); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-900);
}
.brand img { height: 64px; width: auto; transition: opacity .2s ease; }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .brand .logo-light { display: none; }
.site-header.is-scrolled .brand .logo-dark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14.5px;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.site-header:not(.is-scrolled) .nav-links a { color: #fff; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow-400);
  transition: right .2s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.site-header:not(.is-scrolled) .nav-cta .btn-outline {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.site-header:not(.is-scrolled) .nav-cta .btn-outline:hover {
  background: #fff;
  color: var(--navy-900);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.site-header.is-scrolled .nav-toggle,
.nav-toggle { }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(255, 210, 63, .18), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(76, 175, 63, .22), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
}
.hero-grid {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow-400);
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, .82);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 46px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  color: #fff;
}
.hero-stats div span {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-cue .dot {
  width: 22px; height: 36px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  position: relative;
}
.scroll-cue .dot::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--yellow-400);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.6s infinite ease;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 16px; }
  100% { opacity: 0; top: 6px; }
}

/* ---------- About / History ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; }
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.about-card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47,128,237,.1);
  color: var(--blue-500);
  margin-bottom: 12px;
}
.about-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.about-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 34px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--yellow-400);
  border: 3px solid var(--navy-800);
}
.timeline-item .year {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--navy-800);
  font-size: 15px;
  margin-bottom: 4px;
  display: block;
}
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Sections (Oddíly) ---------- */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.section-card .swatch {
  width: 46px; height: 8px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-card h3 { font-size: 18px; margin-bottom: 8px; }
.section-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Schedule ---------- */
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 40px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.legend-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend-note { color: var(--ink-soft); font-size: 13.5px; margin-left: auto; }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.day-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.day-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.day-card h3 .count {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.session {
  border-left: 3px solid var(--line);
  padding: 8px 0 8px 12px;
  margin-bottom: 12px;
}
.session:last-child { margin-bottom: 0; }
.session .cat {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.session .meta {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.session.cat-pripravka { border-color: var(--red-500); }
.session.cat-zaci { border-color: var(--blue-500); }
.session.cat-juniori { border-color: var(--yellow-400); }
.session.cat-dospeli { border-color: var(--green-500); }
.day-card.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  min-height: 90px;
}

/* ---------- Sponzoři ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
}
.sponsor-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .18s ease, opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sponsor-tile:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.sponsor-tile img { max-height: 52px; width: auto; max-width: 100%; }

/* ---------- Aktuality ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.news-tag {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy-800);
  background: rgba(47,128,237,.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.news-date { color: var(--ink-soft); }
.news-card h3 { font-size: 18px; margin: 0; }
.news-excerpt { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.news-full {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.news-full-inner { overflow: hidden; }
.news-card.is-open .news-full { grid-template-rows: 1fr; }
.news-full p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 12px 0 0;
  white-space: pre-line;
}
.news-toggle {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-toggle svg { transition: transform .2s ease; }
.news-card.is-open .news-toggle svg { transform: rotate(180deg); }
.news-more-wrap { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Kontakt ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 32px;
  align-items: start;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.contact-form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-intro { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 24px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row-split > div { display: flex; flex-direction: column; gap: 7px; }
.contact-form label {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-900);
}
.contact-form label .optional {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--ink-soft);
  text-transform: none;
}
.contact-form input,
.contact-form textarea {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
}
.form-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.contact-form input.is-invalid {
  border-color: var(--red-500);
  background: #fff5f4;
}
.form-honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.form-submit {
  margin-top: 4px;
  align-self: flex-start;
}
.form-submit[disabled] { opacity: .6; cursor: default; }
.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}
.form-status.is-success { color: var(--green-500); }
.form-status.is-error { color: var(--red-500); }

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.contact-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
  flex: none;
}
.contact-person h4 { margin: 0 0 2px; font-size: 17px; }
.contact-person p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
}
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--paper-soft);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-row .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.contact-row .value {
  font-weight: 600;
  font-size: 15.5px;
}
.contact-row a.value:hover { color: var(--blue-500); }

.contact-side {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-side h3 { font-size: 22px; margin-bottom: 12px; }
.contact-side p { color: rgba(255,255,255,.8); font-size: 15px; }
.contact-locations {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.contact-location {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.contact-location strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.contact-location span { font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand span { font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; font-size: 15px; }
.footer-col h5 {
  font-family: "Poppins", sans-serif;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14.5px;
  margin-bottom: 10px;
  color: rgba(255,255,255,.7);
}
.footer-col a:hover { color: var(--yellow-400); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 90;
  cursor: pointer;
  border: none;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(4, 1fr); }
  .schedule-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1040px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open { background: #fff; border-bottom-color: var(--line); }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 96px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav-links a { color: var(--ink) !important; padding: 12px 0; }
  .site-header.nav-open .nav-cta .btn-outline {
    display: inline-flex;
    margin: 0 24px 20px;
    border-color: var(--navy-800) !important;
    color: var(--navy-800) !important;
  }
  .sections-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card, .contact-form-card { padding: 28px; }
  .news-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .site-header .container { height: 84px; }
  .brand img { height: 48px; }
  .site-header.nav-open .nav-links { top: 84px; }
  .hero { padding-top: 140px; }
  .hero-stats { gap: 24px; }
  .schedule-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .legend-note { margin-left: 0; width: 100%; }
}
