/* ===========================
   ROOT & RESET
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #1B5EA8;   /* Logo primary blue — used for all CTAs & accents */
  --red-hover:#144B8A;   /* Darker blue for hover states */
  --green:    #2BAD6E;   /* Logo eco green — used for badges & highlights */
  --dark:     #0D2B5A;   /* Dark navy derived from logo blue */
  --dark2:    #091E42;
  --mid:      #2d3748;
  --grey:     #718096;
  --light:    #f7f9fc;
  --white:    #ffffff;
  --gold:     #2BAD6E;   /* Eco green replaces gold for eco-theme badges */
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,.10);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--mid);
  background: var(--white);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.menu-open { overflow: hidden; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
ul   { list-style: none; }

/* Ensure all interactive elements meet 44px minimum tap target */
.btn, .faq-question, .hamburger, .nav-links a, .mobile-menu a {
  min-height: 44px;
  touch-action: manipulation;
}
.btn.is-disabled,
a.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--grey) !important;
  border-color: var(--grey) !important;
}
.cd-raceday {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: #144B8A; border-color: #144B8A; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,94,168,.35); }
.btn-ghost   { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-nav     { background: var(--red); color: var(--white); padding: 10px 22px; font-size: .88rem; }
.btn-nav:hover { background: #144B8A; }
.btn-lg      { padding: 16px 36px; font-size: 1.05rem; }

/* ===========================
   LANGUAGE TOGGLE
=========================== */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: background .2s, color .2s;
  min-height: 28px;
}
.lang-btn.active {
  background: var(--red);
  color: #fff;
}
.lang-btn:hover:not(.active) { color: #fff; background: rgba(255,255,255,.15); }
.lang-toggle-mobile {
  margin: 12px 20px;
  background: rgba(0,0,0,.08);
}
.lang-toggle-mobile .lang-btn { color: var(--mid); }
.lang-toggle-mobile .lang-btn.active { background: var(--red); color: #fff; }

/* ===========================
   RTL SUPPORT (Arabic)
=========================== */
body.rtl {
  font-family: 'Segoe UI', Tahoma, 'Arial Unicode MS', sans-serif;
}
body.rtl .hero-title,
body.rtl .section-title,
body.rtl .cta-content h2,
body.rtl .section-label,
body.rtl .hero-eyebrow {
  font-family: 'Segoe UI', Tahoma, 'Arial Unicode MS', sans-serif;
  letter-spacing: 0;
}
body.rtl .timeline { direction: rtl; }
body.rtl .tl-body { text-align: right; }
body.rtl .feature-list { padding-right: 0; }
body.rtl .hero-content { text-align: right; }
body.rtl .hero-distances,
body.rtl .hero-cta { justify-content: flex-end; }
body.rtl .faq-question { text-align: right; }
body.rtl .faq-question .faq-icon { margin-left: 0; margin-right: auto; float: left; }
body.rtl .cat-prize { direction: rtl; }
body.rtl .podium-place { direction: rtl; }
body.rtl .step-arrow { transform: scaleX(-1); }
body.rtl .footer-inner { direction: rtl; }
body.rtl .footer-brand p { text-align: right; }
body.rtl .info-bar { direction: rtl; }
body.rtl .info-item { direction: rtl; }
body.rtl .contact-simple { direction: rtl; }
body.rtl .contact-row { direction: rtl; }
body.rtl .contact-row-label { text-align: right; }
body.rtl .nav-links { direction: rtl; }
body.rtl .postrace-banner { direction: rtl; text-align: right; }
body.rtl .steps { direction: rtl; }
body.rtl .step { text-align: right; }
body.rtl .race-card { direction: rtl; text-align: right; }
body.rtl .sponsor-cta { direction: rtl; text-align: center; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  padding-top: env(safe-area-inset-top);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(26,26,46,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 1px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
}
.logo-icon { font-size: 1.4rem; }
.logo strong { color: var(--red); }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-inner .lang-toggle { flex-shrink: 0; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); font-weight: 700; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: rgba(26,26,46,.98);
  backdrop-filter: blur(10px);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border: none; margin-top: 8px; }
.mobile-menu.open { display: flex; }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img { object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.55) 60%, rgba(26,26,46,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}
.hero-eyebrow {
  color: var(--red);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .95;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title .highlight { color: var(--red); }
.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-distances {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.badge {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: .9rem;
  backdrop-filter: blur(4px);
}
.badge-gold { background: var(--green); color: #fff; border-color: var(--green); }
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}

/* ===========================
   STATS BAR
=========================== */
.stats-bar {
  background: var(--red);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 36px 24px;
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===========================
   SECTIONS
=========================== */
.section { padding: 96px 24px; }
.section-light { background: var(--light); }
.section-dark  { background: var(--dark); }

.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(27,94,168,.8); }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--dark);
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }
.section-body {
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 600px;
}
.section-body.light  { color: rgba(255,255,255,.65); }
.section-body.center { text-align: center; margin: 0 auto 40px; }

/* ===========================
   ABOUT — TWO COL
=========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.col-img {
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 560px;
  box-shadow: var(--shadow);
}
.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .97rem;
  color: var(--mid);
  font-weight: 500;
}
.check {
  width: 24px;
  height: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}

/* ===========================
   PRICING / REGISTER
=========================== */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.price-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  position: relative;
}
.price-card:hover { border-color: var(--red); transform: translateY(-4px); }
.price-card-featured {
  background: rgba(27,94,168,.12);
  border-color: var(--red);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-dist {
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}
.price-desc { color: rgba(255,255,255,.5); font-size: .88rem; font-weight: 500; }
.price-tag {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold);
}
.price-card ul { margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.price-card li { color: rgba(255,255,255,.7); font-size: .88rem; }
.price-card li::before { content: "→ "; color: var(--red); }
.price-card .btn { margin-top: auto; width: 100%; }
.register-note {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  margin-top: 32px;
}

/* ===========================
   STEPS
=========================== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  padding: 0 16px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  color: var(--red);
  opacity: .25;
  line-height: 1;
  margin-bottom: 8px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--dark); }
.step p  { font-size: .9rem; color: var(--grey); line-height: 1.6; }
.step-arrow {
  font-size: 1.8rem;
  color: var(--red);
  opacity: .35;
  padding-top: 12px;
  flex-shrink: 0;
}

/* ===========================
   GALLERY
=========================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 48px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
}
.gallery-large {
  grid-column: 1 / 3;
  min-height: 320px;
}
.gallery-item img { transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

.recap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding: 40px;
  background: var(--dark);
  border-radius: var(--radius);
}
.recap-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.recap-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--white);
}
.recap-desc {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote {
  color: var(--mid);
  font-size: .97rem;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}
.quote::before { content: '"'; font-size: 2.5rem; color: var(--red); line-height: .5; display: block; margin-bottom: 12px; }
.author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.author strong { display: block; font-size: .95rem; color: var(--dark); }
.author span   { font-size: .8rem; color: var(--grey); }

/* ===========================
   FAQ
=========================== */
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--red); }
.faq-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--red);
  transition: transform var(--transition);
  line-height: 1;
}
.faq-icon.open { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer.open { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { color: var(--grey); line-height: 1.75; font-size: .95rem; }

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; }
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
}
.cta-content h2 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta-content p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ===========================
   FOOTER
=========================== */
.footer { background: var(--dark2); padding: 64px 24px 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}
.logo-light { color: var(--white); }
.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  margin-bottom: 10px;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--red); color: var(--white); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  color: rgba(255,255,255,.25);
  font-size: .82rem;
}

/* ===========================
   LOGO IMAGE
=========================== */
.logo-img {
  width: auto;
  height: 44px;
  max-width: 180px;
  object-fit: contain;
}

/* ===========================
   COUNTDOWN
=========================== */
.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 20px;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 72px;
}
.cd-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}
.cd-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.countdown-sep {
  font-family: var(--font-head);
  font-size: 2rem;
  color: rgba(255,255,255,.4);
  padding-bottom: 16px;
  user-select: none;
}
.cd-raceday {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ===========================
   INFO BAR
=========================== */
.info-bar {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  position: relative;
}
/* CSS-only separator — no extra DOM elements */
.info-item + .info-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e2e8f0;
}
.info-item div { display: flex; flex-direction: column; gap: 2px; }
.info-item strong { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dark); }
.info-item span  { font-size: .9rem; color: var(--grey); }
.info-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ===========================
   TIMELINE (SCHEDULE)
=========================== */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 140px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.12);
}
.tl-item {
  display: grid;
  grid-template-columns: 120px 40px 1fr;
  align-items: flex-start;
  gap: 0 20px;
  padding: 0 0 44px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-time {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: rgba(255,255,255,.5);
  text-align: right;
  padding-top: 4px;
  line-height: 1;
}
.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.4);
  margin: 4px auto 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.tl-dot-red  { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(27,94,168,.25); }
.tl-dot-gold { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246,201,14,.2); }
.tl-body h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.tl-body p  { color: rgba(255,255,255,.55); font-size: .92rem; line-height: 1.6; max-width: 560px; }

/* ===========================
   RACE REGISTRATION CARDS
=========================== */
.race-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.race-card {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--transition);
  background: var(--white);
}
.race-card:hover { border-color: var(--red); box-shadow: 0 8px 32px rgba(27,94,168,.1); }
.race-card-featured {
  border-color: var(--red);
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}
.race-badge-label {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  width: fit-content;
}
.race-card:not(.race-card-featured) .race-badge-label {
  background: var(--mid);
}
.race-dist {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}
.race-price-note {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  display: block;
  margin-top: -4px;
  letter-spacing: 0;
}
.race-price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
  margin: 4px 0 12px;
}
.race-card-desc {
  color: var(--grey);
  font-size: .92rem;
  line-height: 1.65;
}
.race-includes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}
.race-includes li {
  font-size: .9rem;
  color: var(--mid);
  font-weight: 500;
}
.race-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.race-card-footer .btn { width: 100%; }
.reg-opens-note {
  text-align: center;
  font-size: .8rem;
  color: var(--grey);
  min-height: 18px;
}
.how-register {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid #e2e8f0;
}

/* ===========================
   PRIZES
=========================== */
.prizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.prizes-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .82rem;
  margin-bottom: 32px;
  text-align: center;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}
.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 20px;
  border-radius: var(--radius);
  flex: 1;
}
.podium-1st { background: linear-gradient(135deg, #fff8e1, #fffde7); border: 2px solid var(--gold); order: 2; }
.podium-2nd { background: var(--light); border: 2px solid #cbd5e0; order: 1; }
.podium-3rd { background: var(--light); border: 2px solid #e2d5c3; order: 3; }
.podium-medal { font-size: 2rem; }
.podium-amount {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--dark);
  line-height: 1;
}
.podium-1st .podium-amount { font-size: 2.8rem; color: #b7791f; }
.podium-rank { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); }
.podium-note { font-size: .75rem; color: var(--grey); text-align: center; margin-top: 4px; }

.prizes-category {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px;
}
.category-prizes { display: flex; flex-direction: column; gap: 20px; }
.cat-prize {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.cat-prize:last-child { border: none; padding-bottom: 0; }
.cat-icon { font-size: 1.8rem; flex-shrink: 0; }
.cat-prize strong { display: block; font-size: .97rem; color: var(--dark); margin-bottom: 2px; }
.cat-prize span   { font-size: .85rem; color: var(--grey); }

.postrace-banner {
  margin-top: 48px;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.postrace-icon { font-size: 2.5rem; flex-shrink: 0; }
.postrace-banner strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.postrace-banner p { color: rgba(255,255,255,.55); font-size: .9rem; }

/* ===========================
   GALLERY NOTE
=========================== */
.gallery-note {
  text-align: center;
  margin-top: 32px;
  color: var(--grey);
  font-size: .9rem;
}

/* Single photo gallery (until more photos arrive) */
.gallery-single {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 520px;
}
.gallery-single img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.gallery-single .gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: .85rem;
}

/* Sponsor TBA */
.sponsor-tba {
  text-align: center;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--radius);
  border: 2px dashed var(--border, #e2e8f0);
  margin-bottom: 32px;
}
.sponsor-tba p {
  color: var(--grey);
  font-size: 1rem;
  font-style: italic;
}

/* ===========================
   SPONSORS
=========================== */
.sponsor-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.sponsor-tier { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.sponsor-tier-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
}
.title-tier  { background: var(--dark); color: var(--white); }
.gold-tier   { background: var(--gold); color: var(--dark); }
.silver-tier { background: #e2e8f0; color: var(--mid); }

.sponsor-logo-box {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  transition: var(--transition);
}
.sponsor-logo-box img { width: auto; height: 60px; object-fit: contain; }
.sponsor-logo-box:hover { border-color: var(--red); box-shadow: var(--shadow); }
.sponsor-logo-lg img { height: 80px; }
.sponsor-logo-sm img { height: 48px; }
.sponsor-logos-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.sponsor-row { width: 100%; display: flex; justify-content: center; }

.sponsor-cta {
  margin-top: 48px;
  text-align: center;
  padding: 40px;
  background: var(--light);
  border-radius: var(--radius);
}
.sponsor-cta p { font-size: 1rem; color: var(--mid); margin-bottom: 20px; font-weight: 500; }

/* ===========================
   FOOTER BADGES
=========================== */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.footer-badges span {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.1);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-large { grid-column: 1 / 3; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .recap-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links, .btn-nav { display: none; }
  .nav-inner .lang-toggle { display: none; } /* shown in mobile menu instead */
  .hamburger { display: flex; }

  /* Sections */
  .section { padding: 64px 20px; }
  .footer  { padding: 48px 20px 0; }

  /* Hero */
  .hero-content { padding: 100px 20px 64px; }
  .countdown { flex-wrap: wrap; gap: 6px; }
  .countdown-block { min-width: 60px; padding: 10px 12px; }
  .cd-num { font-size: 2rem; }

  /* Info bar — stack to 2 per row */
  .info-bar { justify-content: flex-start; padding: 0 16px; }
  .info-item { padding: 16px 20px; flex: 1 1 45%; }
  .info-item + .info-item::before { display: none; }

  /* About */
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .col-img  { max-height: 280px; order: -1; }

  /* Timeline */
  .timeline::before { left: 100px; }
  .tl-item { grid-template-columns: 80px 32px 1fr; gap: 0 14px; }
  .tl-time { font-size: 1rem; }

  /* Steps */
  .steps { flex-direction: column; gap: 28px; }
  .step  { padding: 0; }
  .step-arrow { display: none; }

  /* Race cards */
  .race-cards { grid-template-columns: 1fr; max-width: 460px; }

  /* Prizes */
  .prizes-grid { grid-template-columns: 1fr; }
  .podium-1st .podium-amount { font-size: 2.2rem; }

  /* Gallery */
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .gallery-large { grid-column: auto; min-height: 220px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  /* Sections */
  .section { padding: 52px 16px; }

  /* Hero */
  .hero-content     { padding: 88px 16px 56px; }
  .hero-cta         { flex-direction: column; }
  .btn-lg           { width: 100%; justify-content: center; }
  .hero-scroll-hint { display: none; }
  .hero-distances   { gap: 8px; }
  /* Hide separators, shrink blocks */
  .countdown-sep    { display: none; }
  .countdown        { gap: 8px; }
  .countdown-block  { min-width: 56px; }

  /* Info bar — clean 2×2, no pseudo separators */
  .info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
  }
  .info-item {
    flex: unset;
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
  }
  /* Right column items get left border */
  .info-item:nth-child(even) { border-left: 1px solid #e2e8f0; }
  /* Bottom row items lose bottom border */
  .info-item:nth-last-child(-n+2) { border-bottom: none; }
  .info-item + .info-item::before { display: none; }
  .info-icon { font-size: 1.2rem; }
  .info-item strong { font-size: .75rem; }
  .info-item span   { font-size: .82rem; }

  /* Timeline — flat list, no grid */
  .timeline::before { display: none; }
  .tl-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 28px;
    border-left: 2px solid rgba(255,255,255,.12);
    padding-left: 16px;
    margin-left: 8px;
  }
  .tl-time {
    text-align: left;
    color: var(--red);
    font-size: 1rem;
  }
  .tl-dot { display: none; }

  /* Section inline styles override for mobile */
  .section-body.center { max-width: 100% !important; }

  /* Race cards */
  .race-card  { padding: 24px 20px; }
  .race-dist  { font-size: 4rem; }

  /* Prizes */
  .podium { gap: 8px; }
  .podium-place { padding: 16px 10px; }
  .postrace-banner { flex-direction: column; text-align: center; padding: 24px; }

  /* Gallery */
  .gallery-item { min-height: 180px; }

  /* FAQ */
  .faq-question { font-size: .92rem; }

  /* CTA */
  .cta-content h2 { font-size: 2.6rem; }
  .cta-content p  { font-size: .95rem; }

  /* Footer */
  .footer       { padding: 40px 16px 0; }
  .footer-inner { gap: 28px; }
}

/* Extra small — 360px and below (budget Android phones) */
@media (max-width: 360px) {
  .hero-title  { font-size: 3.2rem; }
  .countdown-block { min-width: 48px; padding: 8px 8px; }
  .cd-num      { font-size: 1.6rem; }
  .race-dist   { font-size: 3.4rem; }
  .podium-amount { font-size: 1.6rem; }
  .podium-1st .podium-amount { font-size: 1.8rem; }
  .info-item   { padding: 12px 8px; }
}

/* Short landscape phones (iPhone landscape etc.) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 0 40px; }
  .hero-title { font-size: 3rem; }
  .countdown { margin: 16px 0 12px; }
  .countdown-block { padding: 8px 12px; min-width: 52px; }
  .cd-num { font-size: 1.5rem; }
  .hero-scroll-hint { display: none; }
  .section { padding: 48px 20px; }
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-page-section {
  min-height: calc(100vh - 72px);
  padding-top: 100px;
}
.contact-simple {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.contact-row-label {
  flex: 0 0 140px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.contact-row-value {
  flex: 1;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  font-weight: 500;
}

.contact-row-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.contact-row-link:hover { text-decoration: underline; }
.contact-row-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}

.contact-social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.contact-social-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-sponsor-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-top: none;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
}
.contact-sponsor-row .contact-row-label {
  flex: none;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
.contact-sponsor-btn { margin-top: 4px; }

.contact-social-link {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.contact-social-link:hover {
  color: var(--red);
  border-color: var(--red);
}

@media (max-width: 600px) {
  .contact-row {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }
  .contact-row-label { flex: none; }
}

/* ===========================
   SCROLL-IN ANIMATIONS
=========================== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}
