/* =========================================================
   MADONAN RACE — Design System v2 (Premium Light)
   Warm sand palette + vivid orange accent + soft luxury
   ========================================================= */

:root {
  /* Brand palette (from premium light palette spec) */
  --c-bg:           #F2D4B0;  /* main background — warm sand */
  --c-bg-soft:      #E8C6A0;  /* subtle section variation */
  --c-bg-warm:      #FFE7C7;  /* champagne highlight */
  --c-surface:      #FFF4E8;  /* cards, forms, containers */
  --c-surface-2:    #FFFFFF;  /* pure white for extra contrast cards */

  --c-accent:       #F48F17;  /* primary accent — VIVID orange (CTAs) */
  --c-accent-2:     #D17321;  /* secondary orange — hover, gradients */
  --c-accent-deep:  #AB5619;  /* deep accent — active states */

  --c-text:         #2B1C14;  /* headings — deep espresso */
  --c-text-mute:    #5B4637;  /* body text — medium roast */
  --c-text-soft:    #8A6F5E;  /* tertiary text */
  --c-border:       #D6B18C;  /* borders, dividers */
  --c-border-soft:  #E8D4BA;  /* softer dividers */

  --c-dark:         #2B1C14;  /* footer / dark accent surfaces */
  --c-dark-2:       #3D2A1F;  /* lighter dark for layering */

  /* Typography */
  --f-display: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --f-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1280px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows (warm, soft) */
  --shadow-sm:  0 1px 2px rgba(43, 28, 20, 0.04), 0 2px 8px rgba(43, 28, 20, 0.05);
  --shadow:     0 2px 4px rgba(43, 28, 20, 0.05), 0 6px 16px rgba(43, 28, 20, 0.07), 0 16px 32px rgba(43, 28, 20, 0.04);
  --shadow-lg:  0 4px 8px rgba(43, 28, 20, 0.06), 0 12px 24px rgba(43, 28, 20, 0.08), 0 24px 56px rgba(43, 28, 20, 0.10);
  --shadow-accent: 0 4px 12px rgba(244, 143, 23, 0.20), 0 12px 32px rgba(244, 143, 23, 0.30);

  /* Motion */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text-mute);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--c-text);
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--c-text);
}
h1, .h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2, .h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3, .h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.15rem; }
p { color: var(--c-text-mute); }
.lead { font-size: 1.15rem; color: var(--c-text-mute); max-width: 60ch; }
.about-text p { font-size: 1.12rem; line-height: 1.75; color: var(--c-text); }
.about-text .lead { font-size: 1.25rem; font-weight: 500; color: var(--c-text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-accent);
}
/* Centered section-header eyebrows get a mirrored line on the right */
.section-header:not(.left) .eyebrow::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-accent);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; padding: clamp(70px, 9vw, 130px) 0; }
.bg-soft {
  background-color: var(--c-bg-soft);
  background-image: radial-gradient(circle at 1px 1px, rgba(74, 30, 16, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  position: relative;
}
.bg-warm { background: var(--c-bg-warm); }
.bg-surface { background: var(--c-surface); }

.section-header {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 720px;
}
.section-header.left { text-align: left; margin-left: 0; }
.section-header h2 { margin-bottom: 16px; position: relative; }
.section-header:not(.left) h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-deep) 100%);
  border-radius: 2px;
  margin: 18px auto 0;
}
.section-header.left h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-deep) 100%);
  border-radius: 2px;
  margin: 18px 0 0;
}
.section-header p { font-size: 1.08rem; margin-top: 18px; }

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  isolation: isolate;
}
/* Sheen sweep effect on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--c-accent-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(244, 143, 23, 0.25), 0 20px 40px rgba(244, 143, 23, 0.40);
}
.btn-outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-text);
}
.btn-outline:hover {
  background: var(--c-text);
  color: var(--c-surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.btn-soft {
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
}
.btn-soft:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-lg { padding: 20px 40px; font-size: 1rem; }
.btn .arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav (glossy frosted pill) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s var(--ease);
}
.site-header.scrolled { padding: 10px 0; }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 244, 232, 0.78);
  /* backdrop-filter lives on ::before, NOT directly on .nav.
     Reason: filter/backdrop-filter on a parent creates a *containing block* for
     position:fixed descendants. iOS Safari then traps the mobile menu inside
     this pill instead of letting it fill the viewport. Putting the blur on a
     pseudo-element keeps the glass look without breaking the menu's fixed layout. */
  padding: 10px 14px 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  pointer-events: none;
  z-index: -1;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 110;
}
.nav-logo img {
  height: 64px;
  width: auto;
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover img { transform: rotate(-4deg) scale(1.05); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
  position: relative;
}
.nav-link:hover { background: rgba(244, 143, 23, 0.12); color: var(--c-accent-deep); transform: translateY(-1px); }
.nav-link.active { background: var(--c-text); color: var(--c-surface); }
.nav-link .caret { width: 10px; height: 10px; transition: transform 0.2s var(--ease); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
  z-index: 105;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover .nav-link .caret,
.nav-item.open .nav-link .caret { transform: rotate(180deg); }
.nav-dropdown a {
  display: block;
  padding: 14px 18px;
  font-family: var(--f-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}
.nav-dropdown a:hover { background: rgba(244, 143, 23, 0.12); color: var(--c-accent-deep); transform: translateX(4px); }
.nav-dropdown a strong { display: block; font-size: 0.95rem; }
.nav-dropdown a small { display: block; font-family: var(--f-body); font-size: 0.75rem; letter-spacing: 0; text-transform: none; color: var(--c-text-soft); font-weight: 500; margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex;
  background: rgba(43, 28, 20, 0.08);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-toggle button {
  padding: 6px 12px;
  font-family: var(--f-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
}
.lang-toggle button.active { background: var(--c-text); color: var(--c-surface); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(43, 28, 20, 0.08);
  position: relative;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  margin: 4px auto;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }

  /* Mobile menu = fullscreen panel that slides in from the right.
     z-index lower than .site-header (100) so the header pill stays on top
     and items can't bleed THROUGH the pill's backdrop-filter blur. */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--c-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 110px 20px 32px; /* clears the header pill comfortably */
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s linear 0s;
  }

  /* Hide the lang-toggle (SK/EN) when menu is open to reduce header clutter —
     user can still switch language with menu closed. Uses both :has() (modern)
     and a body.menu-open class set by JS (fallback for older mobile browsers). */
  body:has(.nav-menu.open) .lang-toggle,
  body.menu-open .lang-toggle { display: none; }
  /* Remove backdrop blur on the header pill while menu is open so any item near
     the top edge can't appear faintly behind the glass. */
  body:has(.nav-menu.open) .nav,
  body.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .nav-item { width: 100%; max-width: none; }
  .nav-link {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 14px 20px;
    border-radius: var(--radius);
  }
  /* Pretek's caret hidden on mobile — submenu is always shown inline so OCR + XTREM
     links are directly tappable without needing to expand a dropdown. */
  .nav-link .caret { display: none; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: rgba(43, 28, 20, 0.05);
    margin: 2px 0 8px;
    min-width: 0;
    padding: 6px;
    display: block; /* always show on mobile */
    border-radius: var(--radius-sm);
  }
  .nav-dropdown a { padding: 10px 14px; }
  .nav-dropdown a strong { font-size: 0.92rem; }
  .nav-dropdown a small { font-size: 0.72rem; }

  /* Mobile-only override: the desktop rule for `.nav-item.open .nav-dropdown`
     applies `transform: translateX(-50%)` which on mobile pushes the inline
     submenu off the left edge. Force `transform: none` so it stays put. */
  .nav-item.open .nav-dropdown,
  .nav-item:hover .nav-dropdown {
    transform: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari: dynamic viewport — prevents jump when URL bar hides */
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--c-bg);
  overflow: hidden;
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Mobile: shift focus to the right so the runner (athlete on ladder) stays visible
   when the photo is cropped tall — desktop stays at center as designed. */
@media (max-width: 960px) {
  .hero-image-bg img { object-position: 72% center; }
}
.hero-image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 212, 176, 0.95) 0%, rgba(242, 212, 176, 0.6) 45%, rgba(242, 212, 176, 0.15) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background:
    radial-gradient(ellipse 100% 100% at 50% 100%, var(--c-bg-warm) 0%, transparent 70%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1.2fr 1fr; }
}
.hero-text { max-width: 640px; }

/* Centered hero variant — text takes full width, no side visual */
.hero-centered .hero-content { grid-template-columns: 1fr; }
.hero-centered .hero-text { max-width: 760px; }
@media (min-width: 1024px) {
  .hero-centered .hero-content { grid-template-columns: 1fr; }
}
/* Stronger left-to-right gradient so the photo on the right side stays visible
   while keeping text legible on the left */
.hero-centered .hero-image-bg::after {
  background: linear-gradient(95deg, rgba(242, 212, 176, 0.96) 0%, rgba(242, 212, 176, 0.88) 35%, rgba(242, 212, 176, 0.35) 75%, rgba(242, 212, 176, 0.05) 100%);
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  margin-bottom: 28px;
  color: var(--c-text);
}
.hero h1 .accent { color: var(--c-accent); }
.hero h1.hero-title-stack { line-height: 1.18; }
.hero-title-stack > span { display: block; }
.hero .eyebrow { margin-bottom: 32px; }
.hero-desc {
  font-size: 1.18rem;
  max-width: 52ch;
  margin-bottom: 40px;
  color: var(--c-text-mute);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(43, 28, 20, 0.12);
}
.hero-meta-item .label {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: 6px;
}
.hero-meta-item .value {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--c-text);
}

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-logo {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 24px 60px rgba(43, 28, 20, 0.35));
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Countdown ---------- */
.countdown-wrap {
  text-align: center;
  padding: 60px 0;
  background: var(--c-bg-warm);
  position: relative;
}
.countdown-eyebrow { display: block; font-family: var(--f-heading); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 8px; }
.countdown-title { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--c-text); margin-bottom: 28px; letter-spacing: 0.02em; }
.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
.countdown-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  padding: 22px 28px;
  border-radius: var(--radius);
  min-width: 110px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.countdown-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.countdown-num {
  display: block;
  font-family: var(--f-display);
  font-size: 2.6rem;
  color: var(--c-text);
  line-height: 1;
}
.countdown-label {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-top: 10px;
}
@media (max-width: 580px) {
  .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .countdown-block { min-width: 0; padding: 14px 6px; }
  .countdown-num { font-size: 1.8rem; }
  .countdown-label { font-size: 0.58rem; letter-spacing: 0.1em; margin-top: 6px; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  border: 1px solid var(--c-border-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-accent); }
.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--c-bg-warm), #fff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
}
.stat-icon svg { width: 28px; height: 28px; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--c-text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}

/* ---------- Cards (race / generic) ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease); }
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent);
}
.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-image img { transform: scale(1.05); }
.card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--c-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--f-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-accent);
}
.card-tag.tag-soft { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-sm); }
.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; }
.card-meta {
  display: flex;
  gap: 24px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
}
.card-meta-item .label {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: 4px;
}
.card-meta-item .value {
  font-family: var(--f-heading);
  font-size: 1rem;
  color: var(--c-text);
  font-weight: 700;
}

/* Race card (big feature card for OCR 100m + XTREM) */
.race-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border-soft);
  transition: all 0.4s var(--ease);
}
@media (min-width: 768px) {
  .race-card { grid-template-columns: 1fr 1fr; }
}
.race-card { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease); }
.race-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--c-accent); }
@media (min-width: 760px) {
  .race-card-reverse .race-card-body { order: 1; }
  .race-card-reverse .race-card-image { order: 2; }
}
.race-card-image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .race-card-image { aspect-ratio: auto; min-height: 360px; }
}
.race-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.race-card:hover .race-card-image img { transform: scale(1.06); }
.race-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(43, 28, 20, 0.55) 100%);
}
.race-card-image .race-card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--c-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--f-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-accent);
}
.race-card-body {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.race-card-body h3 {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 6px;
}
.race-card-subtitle {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: 18px;
}
.race-card-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.race-info-item .label {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: 4px;
}
.race-info-item .value {
  font-family: var(--f-heading);
  font-size: 1.05rem;
  color: var(--c-text);
  font-weight: 700;
}
.race-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- Page Header (inner pages) — dark espresso for strong contrast ---------- */
.page-header {
  position: relative;
  padding: 180px 0 140px;
  background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: var(--c-bg-warm);
  overflow: hidden;
  /* Diagonal cut at bottom — clean angular slice into the sand bg */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
}
/* Soft inner shadow at the cut line — subtle depth */
.page-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
/* subtle decorative texture overlay */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 143, 23, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(244, 143, 23, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-header-content { max-width: 800px; position: relative; z-index: 2; }
@media (max-width: 640px) {
  .page-header { padding: 140px 0 100px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%); }
}

/* Override text colors inside dark page-header for legibility */
.page-header .eyebrow { color: var(--c-accent); }
.page-header h1,
.page-header .display { color: var(--c-bg-warm); }
.page-header .lead { color: rgba(255, 231, 199, 0.85); }
.page-header .breadcrumb { color: rgba(255, 231, 199, 0.55); }
.page-header .breadcrumb a { color: rgba(255, 231, 199, 0.8); transition: color 0.2s var(--ease); }
.page-header .breadcrumb a:hover { color: var(--c-accent); }
.page-header .breadcrumb .sep { color: rgba(255, 231, 199, 0.3); }

.breadcrumb {
  display: flex;
  gap: 10px;
  font-family: var(--f-heading);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--c-text-mute); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--c-accent-deep); }
.breadcrumb .sep { color: var(--c-border); }

/* ---------- Wave cards (Theseus / Farmár / Teliatka) ---------- */
.wave-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .wave-grid { grid-template-columns: repeat(3, 1fr); }
}
.wave-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.wave-card { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease); }
.wave-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--c-accent); }
.wave-card.featured {
  background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-bg-warm) 100%);
  border-color: var(--c-accent);
}
.wave-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: 18px; right: 18px;
  background: var(--c-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--f-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wave-name {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--c-text);
  margin-bottom: 4px;
}
.wave-type {
  font-family: var(--f-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: 18px;
}
.wave-desc { font-size: 0.95rem; color: var(--c-text-mute); margin-bottom: 22px; }
.wave-prices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
  padding: 22px 0;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
}
.wave-price-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.92rem; }
.wave-price-row .label { color: var(--c-text-soft); font-family: var(--f-heading); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.wave-price-row .price { color: var(--c-text); font-family: var(--f-heading); font-weight: 700; font-size: 1.1rem; }
.wave-price-row.now .price { color: var(--c-accent); font-size: 1.3rem; }
.wave-price-row.now .label { color: var(--c-text); font-weight: 600; }
.wave-card-content { flex: 1; display: flex; flex-direction: column; }
.wave-card-content .wave-prices { margin-top: auto; }
.wave-grid-single { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
  .wave-grid-single { grid-template-columns: 1fr; }
}
.wave-single-price {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--c-accent);
  margin: 16px 0 4px;
  margin-top: auto;
}
.wave-cta { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Schedule timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-border));
}
.timeline-item {
  position: relative;
  padding-bottom: 34px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-accent);
  box-shadow: 0 0 0 4px rgba(244, 143, 23, 0.15);
}
.timeline-time {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--c-accent-deep);
  margin-bottom: 4px;
}
.timeline-title {
  font-family: var(--f-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text);
  margin-bottom: 6px;
}
.timeline-item p { font-size: 0.95rem; color: var(--c-text-mute); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; }
  .gallery-item:nth-child(7) { grid-row: span 2; }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s var(--ease);
}
@media (min-width: 768px) {
  .gallery-item { aspect-ratio: auto; height: 100%; }
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-masonry {
  columns: 2;
  column-gap: 12px;
  display: block;
}
@media (min-width: 640px) { .gallery-masonry { columns: 3; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 4; } }
.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  display: block;
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  grid-column: auto !important;
  grid-row: auto !important;
}
.gallery-masonry .gallery-item img { width: 100%; height: auto; display: block; }

/* ---------- Sponsors ---------- */
.sponsors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 768px) { .sponsors { grid-template-columns: repeat(4, 1fr); } }
.sponsor {
  aspect-ratio: 16 / 9;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  /* Critical for CSS Grid: 1fr columns default to `min-width: auto` which equals
     the item's intrinsic content width. A 2048px sponsor logo would otherwise
     blow out the column to 2048px on iOS Safari (Android Chrome happens to be
     more forgiving). `min-width: 0` lets the column shrink to the available 1fr. */
  min-width: 0;
  overflow: hidden;
}
.sponsor img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
a.sponsor { cursor: pointer; }
.sponsor:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-accent); }
.sponsor-placeholder {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
/* Invitation slot — friendly call-to-action for potential partners */
.sponsor-invite {
  background: rgba(244, 143, 23, 0.05);
  border: 2px dashed rgba(244, 143, 23, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.sponsor-invite:hover {
  background: rgba(244, 143, 23, 0.12);
  border-color: var(--c-accent);
  border-style: solid;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(244, 143, 23, 0.18);
}
.sponsor-invite-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 8px;
}
.sponsor-invite-inner svg {
  color: var(--c-accent);
  background: rgba(244, 143, 23, 0.12);
  border-radius: 50%;
  padding: 6px;
  width: 40px;
  height: 40px;
  transition: transform 0.2s var(--ease);
}
.sponsor-invite:hover .sponsor-invite-inner svg {
  transform: rotate(90deg);
  background: var(--c-accent);
  color: #fff;
}
.sponsor-invite-inner strong {
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.sponsor-invite-inner small {
  font-size: 0.8rem;
  color: var(--c-text-soft);
  font-style: italic;
}

.sponsors-3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .sponsors-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .sponsors-3 { grid-template-columns: repeat(3, 1fr); } }

/* iOS Safari ignores aspect-ratio: 16/9 when a child <img> has a large intrinsic
   size (Madonan logo is 2048×2048). The card grows to fit the image instead of
   keeping the 16:9 shape. On narrow phones we replace aspect-ratio with an
   explicit min/max height and constrain the image with max-height so it stays
   nicely centered inside the card. */
@media (max-width: 559px) {
  .sponsor {
    aspect-ratio: auto;
    min-height: 140px;
    max-height: 180px;
    padding: 20px;
  }
  .sponsor img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
}
/* iPad-range fix (560-1199px) — same iOS Safari aspect-ratio bug surfaces on
   iPad too, where .sponsors-3 becomes 2- or 3-column. Andro tablets in this
   range honour aspect-ratio correctly, so the explicit min/max height we add
   barely changes their look (a few px tweak) while it caps the iPad cards to
   the correct visual height. Untouched: phones (<560 keeps own rule above)
   and desktop (≥1200 keeps the original aspect-ratio: 16/9 behaviour). */
@media (min-width: 560px) and (max-width: 1199px) {
  .sponsor {
    aspect-ratio: auto;
    min-height: 150px;
    max-height: 200px;
  }
  .sponsor img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0;
  text-align: center;
  background:
    linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  color: #fff;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 18px; font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-banner p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 60ch; margin: 0 auto 32px; }
.cta-banner .btn-soft { background: #fff; color: var(--c-text); }
.cta-banner .btn-soft:hover { background: var(--c-text); color: #fff; }

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.form-label {
  font-family: var(--f-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
}
.form-label .req { color: var(--c-accent-deep); margin-left: 3px; }
.form-help { font-size: 0.85rem; color: var(--c-text-soft); margin-top: -4px; }
.form-input,
.form-textarea,
.form-select {
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--c-text);
  transition: all 0.2s var(--ease);
  width: 100%;
  min-width: 0; /* lets selects inside grid/flex shrink below their intrinsic widest option */
  max-width: 100%;
  box-sizing: border-box;
}
/* iOS Safari: native <select> ignores width:100% if its widest <option> is wider
   than the parent. The select grows to fit that option, expanding its parent
   form-group, which pushes adjacent text past the viewport.
   `appearance: none` removes the native picker chrome and lets width:100% apply.
   We restore the dropdown arrow with a background SVG. */
.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  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 24 24' fill='none' stroke='%232B1C14' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  text-overflow: ellipsis;
}
.form-select::-ms-expand { display: none; }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(244, 143, 23, 0.15);
}
.form-textarea { min-height: 120px; resize: vertical; font-family: var(--f-body); }
.form-radio-group,
.form-check-group { display: flex; flex-direction: column; gap: 10px; }
.form-radio,
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-soft);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.form-radio:hover, .form-check:hover { border-color: var(--c-border); }
.form-radio input, .form-check input {
  margin-top: 4px;
  accent-color: var(--c-accent);
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.form-radio:has(input:checked), .form-check:has(input:checked) {
  border-color: var(--c-accent);
  background: rgba(244, 143, 23, 0.08);
}

/* ---------- Billing type card (Step 3: Fakturačné údaje) ---------- */
.billing-type-card {
  display: block;
  cursor: pointer;
  position: relative;
}
.billing-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.billing-type-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-surface);
  border: 2px solid var(--c-border-soft);
  border-radius: var(--radius);
  color: var(--c-text);
  transition: all 0.2s var(--ease);
}
.billing-type-card-inner svg {
  flex-shrink: 0;
  color: var(--c-text-soft);
  transition: color 0.2s var(--ease);
}
.billing-type-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.billing-type-card-text strong {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
}
.billing-type-card-text small {
  font-size: 0.82rem;
  color: var(--c-text-soft);
}
.billing-type-card:hover .billing-type-card-inner {
  border-color: var(--c-border);
}
.billing-type-card input:checked + .billing-type-card-inner {
  border-color: var(--c-accent);
  background: rgba(244, 143, 23, 0.08);
  box-shadow: 0 2px 8px rgba(244, 143, 23, 0.12);
}
.billing-type-card input:checked + .billing-type-card-inner svg {
  color: var(--c-accent);
}
.billing-type-card input:focus-visible + .billing-type-card-inner {
  outline: 3px solid rgba(244, 143, 23, 0.4);
  outline-offset: 2px;
}

/* ---------- Size chart modal ---------- */
.size-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.size-chart-modal.is-open { display: flex; }
.size-chart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.7);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.size-chart-dialog {
  position: relative;
  background: var(--c-bg-warm, #FAF1E1);
  border-radius: var(--radius, 14px);
  padding: 28px 32px;
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px); /* iOS Safari: dynamic viewport so modal doesn't get cut off */
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: size-chart-pop 0.18s ease-out;
}
@keyframes size-chart-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.size-chart-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease);
}
.size-chart-close:hover { background: rgba(0, 0, 0, 0.08); }
.size-chart-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm, 8px);
}
.size-chart-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border-soft);
}
.size-chart-section:last-of-type { border-bottom: none; }
.size-chart-section img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm, 8px);
}
.size-chart-section-title {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* ---------- International phone input (intl-tel-input) ---------- */
.iti { width: 100%; display: block; }
.iti input.form-input,
.iti input[type="tel"] {
  width: 100% !important;
  /* Generous left padding so the typed number doesn't sit right next to the dial code */
  padding-left: 115px !important;
}
.iti__flag-container { z-index: 2; }
.iti__country-list {
  font-family: var(--f-body);
  font-size: 0.92rem;
  background: var(--c-bg, #fff);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  max-height: 280px;
}
.iti__country.iti__highlight { background: rgba(244, 143, 23, 0.12); }
.iti__selected-flag {
  background: var(--c-surface) !important;
  /* Stronger right border = clear visual divider between dial-code chip and number field */
  border-right: 2px solid var(--c-border);
  border-radius: var(--radius-sm, 8px) 0 0 var(--radius-sm, 8px);
  padding: 0 12px 0 10px !important;
}
.iti__selected-flag:hover { background: var(--c-surface-2, #f5e9d4) !important; }
.iti--separate-dial-code .iti__selected-dial-code {
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--c-text);
  margin-left: 8px;
  margin-right: 4px;
}

.btn-size-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 0;
  margin: 0;
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--c-accent);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(244, 143, 23, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}
.btn-size-chart-link:hover {
  color: var(--c-accent-deep, #c97208);
  text-decoration-color: currentColor;
}
.merch-size-hint {
  display: inline-block;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1.5px dashed var(--c-border);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.92rem;
  color: var(--c-text-soft);
  font-style: italic;
}
.size-chart-placeholder {
  padding: 32px 24px;
  background: rgba(244, 143, 23, 0.08);
  border: 1.5px dashed rgba(244, 143, 23, 0.4);
  border-radius: var(--radius-sm, 8px);
  text-align: center;
  color: var(--c-text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.size-chart-placeholder a { color: var(--c-accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-dark);
  color: var(--c-bg-warm);
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { height: 120px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255, 231, 199, 0.7); font-size: 0.95rem; max-width: 32ch; }
.site-footer h4 {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  color: var(--c-bg-warm);
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 231, 199, 0.65);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--c-accent); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 231, 199, 0.25);
  border-radius: 50%;
  color: var(--c-bg-warm);
  transition: all 0.3s var(--ease);
}
.footer-social a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 231, 199, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 231, 199, 0.55);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43, 28, 20, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(12px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.2s var(--ease);
}
.lightbox-close:hover { background: var(--c-accent); border-color: var(--c-accent); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--c-border-soft); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--f-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--c-accent-deep); }
.faq-q .icon { width: 24px; height: 24px; transition: transform 0.3s var(--ease); flex-shrink: 0; color: var(--c-accent); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 0 22px; color: var(--c-text-mute); font-size: 1rem; max-width: 70ch; }
.faq-item.open .faq-a { max-height: 500px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---------- Utility classes ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--c-accent); }
.text-deep { color: var(--c-accent-deep); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.divider { width: 60px; height: 4px; background: var(--c-accent); margin: 24px 0; border-radius: 2px; }

/* ---------- Registration: optional label ---------- */
.step-optional {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.55em;
  color: var(--c-text-soft);
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

/* ---------- Registration: step number circle ---------- */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Registration: racer counter (header +/-) ---------- */
.racer-counter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border-soft);
  border-radius: 999px;
  padding: 6px 8px;
}
.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--c-accent);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
  font-family: var(--f-body);
}
.counter-btn:hover { background: var(--c-accent-deep); transform: scale(1.05); }
.counter-btn:active { transform: scale(0.95); }
.counter-btn:disabled,
.counter-btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.counter-value {
  font-family: var(--f-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text);
  min-width: 110px;
  text-align: center;
}

/* ---------- Registration: racer card ---------- */
.racer-card {
  background: var(--c-bg-warm);
  border: 1.5px solid var(--c-border-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  animation: racer-in 0.35s var(--ease);
  /* Clip any child that exceeds the card width — keeps the form visually within
     the card border instead of bleeding past the right edge on narrow phones. */
  overflow: hidden;
  min-width: 0;
}
@keyframes racer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.racer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--c-border);
  flex-wrap: wrap;
}
.racer-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.racer-card-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1rem;
  flex-shrink: 0;
}
.racer-card-title h4 {
  margin: 0;
  font-family: var(--f-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
}
.racer-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--c-border-soft);
  color: var(--c-text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--f-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.racer-remove-btn svg { width: 14px; height: 14px; }
.racer-remove-btn:hover {
  border-color: var(--c-accent-deep);
  color: var(--c-accent-deep);
  background: rgba(244, 143, 23, 0.06);
}
.racer-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-border);
  font-family: var(--f-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
.racer-card-price {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}

/* ---------- Registration: add-racer button ---------- */
.btn-add-racer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-style: dashed;
  font-family: var(--f-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-add-racer:hover { border-style: solid; }

@media (max-width: 640px) {
  .racer-counter { width: 100%; justify-content: space-between; }
  .counter-value { min-width: 0; flex: 1; }
  .racer-card { padding: 18px; }
  .racer-card-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Registration: Step indicator ---------- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--c-bg-warm);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
}
.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
}
.step-indicator-item.active { opacity: 1; }
.step-indicator-item.done { opacity: 1; }
.step-indicator-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-border-soft);
  color: var(--c-text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}
.step-indicator-item.active .step-indicator-num {
  background: var(--c-accent);
  color: #fff;
}
.step-indicator-item.done .step-indicator-num {
  background: var(--c-accent-deep);
  color: #fff;
}
.step-indicator-label {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
}
.step-indicator-line {
  width: 60px;
  height: 2px;
  background: var(--c-border-soft);
  margin: 0 16px;
}
@media (max-width: 640px) {
  .step-indicator { padding: 16px 14px; }
  .step-indicator-label { display: none; }
  .step-indicator-line { width: 30px; margin: 0 8px; }
}

/* ---------- Registration: Merch product (e-shop style) ---------- */
.merch-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .merch-product { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.merch-gallery { display: flex; flex-direction: column; gap: 14px; }
.merch-main-image {
  background: var(--c-bg-warm);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.merch-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
}
.merch-thumbs {
  display: flex;
  gap: 10px;
}
.merch-thumb {
  flex: 1;
  background: var(--c-surface);
  border: 2px solid var(--c-border-soft);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: all 0.2s var(--ease);
}
.merch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merch-thumb:hover { border-color: var(--c-accent); }
.merch-thumb.active { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(244, 143, 23, 0.15); }

.merch-info { display: flex; flex-direction: column; }
.merch-eyebrow {
  font-family: var(--f-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.merch-title {
  font-family: var(--f-display);
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--c-text);
  margin: 0 0 14px;
}
.merch-price-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border-soft);
}
.merch-price {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--c-accent);
}
.merch-price-vat {
  font-size: 0.82rem;
  color: var(--c-text-soft);
}
.merch-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--c-text-mute);
  margin-bottom: 22px;
}
.merch-row { margin-bottom: 18px; }
.merch-label {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 10px;
}
.merch-color-options { display: flex; gap: 10px; }
.merch-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  background: var(--c-surface);
  border: 2px solid var(--c-border-soft);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--c-text);
  transition: all 0.2s var(--ease);
}
.merch-color-swatch .swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.merch-color-swatch:hover { border-color: var(--c-accent); }
.merch-color-swatch.active { border-color: var(--c-accent); background: rgba(244, 143, 23, 0.08); }

.merch-size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.merch-size {
  min-width: 50px;
  padding: 10px 14px;
  background: var(--c-surface);
  border: 2px solid var(--c-border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  transition: all 0.15s var(--ease);
}
.merch-size:hover { border-color: var(--c-accent); }
.merch-size.active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

.merch-qty {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--c-surface);
  border: 2px solid var(--c-border-soft);
  border-radius: 999px;
  padding: 4px;
}
.merch-qty-value {
  min-width: 36px;
  text-align: center;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text);
}

.merch-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(244, 143, 23, 0.08);
  border: 1px solid rgba(244, 143, 23, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 6px 0 18px;
  color: var(--c-accent-deep);
}
.merch-notice strong {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.merch-notice p { font-size: 0.88rem; color: var(--c-text); line-height: 1.55; margin: 0; }

.merch-details {
  border-top: 1px solid var(--c-border-soft);
  padding-top: 16px;
  margin-bottom: 22px;
}
.merch-details summary {
  cursor: pointer;
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.merch-details summary::-webkit-details-marker { display: none; }
.merch-details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--c-accent);
  transition: transform 0.2s var(--ease);
}
.merch-details[open] summary::after { content: '−'; }
.merch-details ul {
  margin-top: 12px;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--c-text-mute);
}
.merch-details li { margin-bottom: 6px; line-height: 1.55; }

.merch-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.merch-cta-row .btn { flex: 1; min-width: 180px; justify-content: center; }

/* ---------- Merch cart (multi-item) ---------- */
.merch-cart {
  margin-top: 28px;
  background: var(--c-bg-warm);
  border: 1.5px solid var(--c-accent);
  border-radius: var(--radius);
  overflow: hidden;
}
.merch-cart-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(244, 143, 23, 0.12);
  color: var(--c-accent-deep);
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.merch-cart-head svg { flex-shrink: 0; }
.merch-cart-head > span:nth-of-type(1) { flex: 1; }
.merch-cart-count {
  background: var(--c-accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.merch-cart-list { display: flex; flex-direction: column; }
.merch-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid var(--c-border-soft);
}
.merch-cart-item:first-child { border-top: none; }
.merch-cart-item-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
}
.merch-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.merch-cart-item-info { flex: 1; min-width: 0; }
.merch-cart-item-title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 2px;
}
.merch-cart-item-detail {
  font-size: 0.85rem;
  color: var(--c-text-soft);
}
.merch-cart-item-price {
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
}
.merch-cart-item-remove {
  background: transparent;
  border: none;
  color: var(--c-text-soft);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
  flex-shrink: 0;
}
.merch-cart-item-remove:hover { background: rgba(244, 143, 23, 0.1); color: var(--c-accent-deep); }
.merch-cart-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-soft);
}
.merch-cart-foot-label {
  font-family: var(--f-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
.merch-cart-foot-price {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--c-accent);
}

@media (max-width: 560px) {
  .merch-cart-head, .merch-cart-item, .merch-cart-foot { padding-left: 14px; padding-right: 14px; }
  .merch-cart-item-img { width: 44px; height: 44px; }
  .merch-cart-item-title { font-size: 0.85rem; }
}

/* ---------- DOB picker (3 selects: day / month / year) ----------
   Replaces native <input type="date"> which is awful on mobile (slow scroll
   from current year to 1990s+ takes forever in Android Chrome's calendar). */
/* Registration step cards: tighter padding on narrow screens — the inline
   `padding: 32px` on .card eats 64px of horizontal space (almost 20% of a 390px
   iPhone viewport), pushing form selects near the edge. */
@media (max-width: 640px) {
  .card[style*="padding: 32px"] { padding: 20px !important; }
}

.dob-group {
  display: grid;
  /* `1fr` is shorthand for `minmax(auto, 1fr)`, where `auto` = min-content. With
     padding + chevron + Slovak month names ("September") the min-content of each
     select is wider than ~95px, so on a 390px iPhone the 3 columns total ~290+px
     and overflow the form-group. `minmax(0, 1fr)` forces a 0 minimum so the
     columns actually share the available width equally. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 6px;
}
.dob-group .form-select {
  min-width: 0;
  /* Tighter padding + arrow placement so all 3 selects fit on narrow phones */
  padding-left: 10px;
  padding-right: 26px;
  background-position: right 8px center;
  font-size: 0.92rem;
}

/* ---------- Volunteers team photo banner ---------- */
.volunteers-photo-banner {
  position: relative;
  height: clamp(280px, 50vh, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.volunteers-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Mobile: drop fixed height, use natural aspect ratio so all volunteers
   stay visible (no cropping of the people on the edges). */
@media (max-width: 640px) {
  .volunteers-photo-banner { height: auto; }
  .volunteers-photo-banner img { height: auto; display: block; }
}

/* ---------- Honeypot (anti-spam hidden field) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--c-dark);
  color: var(--c-bg-warm);
  padding: 20px 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.cookie-banner-text a {
  color: var(--c-accent);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--f-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
}
.cookie-btn-accept {
  background: var(--c-accent);
  color: #fff;
}
.cookie-btn-accept:hover { background: var(--c-accent-deep); }
.cookie-btn-necessary {
  background: transparent;
  color: var(--c-bg-warm);
  border-color: rgba(255, 231, 199, 0.3);
}
.cookie-btn-necessary:hover { border-color: var(--c-bg-warm); }

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-actions { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
