:root {
  --bg: #0a0c07;
  --bg-2: #0f1209;
  --panel: #14180e;
  --panel-2: #181d10;
  --line: #2a311c;
  --lime: #c8f32b;
  --lime-dark: #a6cf18;
  --text: #f4f6ee;
  --muted: #9aa088;
  --white: #ffffff;
  --header-h: 84px;
  --maxw: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
}

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

.lime {
  color: var(--lime);
}

.section {
  padding: 84px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-2);
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--lime);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 14px;
}

.section-title--left {
  text-align: left;
}

.section-divider {
  width: 70px;
  height: 4px;
  background: var(--lime);
  border: none;
  margin: 0 auto 44px;
}

.section-divider--left {
  margin: 0 0 32px;
}

.section-lead {
  max-width: 760px;
  margin: 0 auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn > i {
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

.btn--primary {
  background: var(--lime);
  color: #0a0c07;
}

.btn--primary:hover {
  background: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--dark {
  background: #0a0c07;
  color: var(--white);
}

.btn--dark:hover {
  background: #000;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.header--hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  background: rgba(8, 10, 6, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 56px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--lime);
}

.nav a.btn--primary {
  color: #0a0c07;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav a.btn--primary:hover {
  color: #0a0c07;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(8, 10, 6, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 6, 0.96) 0%, rgba(8, 10, 6, 0.7) 40%, rgba(8, 10, 6, 0.25) 75%, rgba(8, 10, 6, 0.55) 100%);
  z-index: 1;
}

.hero__content {
  max-width: 720px;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 1px;
}

.hero h1 span {
  display: block;
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text);
  max-width: 520px;
  text-transform: uppercase;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.5px;
}

.hero__tag {
  margin-top: 14px;
  display: inline-block;
  color: var(--lime);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 18px;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.infobar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}

.infobar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-width: 0;
}

.infobar__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.infobar__item:first-child {
  border-left: none;
}

.icon {
  color: var(--lime);
  line-height: 1;
}

.icon--infobar {
  font-size: 32px;
  width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.infobar__label {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--lime);
}

.infobar__value {
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 10px;
  border-left: 1px solid var(--line);
  text-align: center;
  transition: background 0.2s ease;
}

.zone:first-child {
  border-left: none;
}

.zone:hover {
  background: var(--panel-2);
}

.zone img {
  width: 46px;
  height: 46px;
}

.zone span {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
  color: var(--text);
}

.zones-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature {
  text-align: center;
  padding: 14px;
}

.icon--feature {
  font-size: 42px;
  margin: 0 auto 16px;
  display: block;
}

.feature span {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
}

.gallery {
  position: relative;
}

.gallery__viewport {
  overflow: hidden;
  width: 100%;
}

.gallery__track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

.gallery__slide {
  flex: 0 0 calc((100% - 64px) / 5);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery__slide:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 12, 7, 0.85);
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 5;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gallery__nav i {
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.gallery__nav:hover {
  background: var(--lime);
  color: #0a0c07;
  border-color: var(--lime);
}

.gallery__nav--prev {
  left: 12px;
}

.gallery__nav--next {
  right: 12px;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.gallery__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: 0.2s;
}

.gallery__dots button.active {
  background: var(--lime);
  width: 26px;
  border-radius: 6px;
}

.cta-banner {
  background: var(--lime);
  color: #0a0c07;
  position: relative;
  overflow: hidden;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 0;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 46px);
  color: #0a0c07;
}

.cta-banner p {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-top: 6px;
}

.footer {
  background: var(--bg-2);
  padding: 60px 0 26px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand img {
  height: 80px;
  margin-bottom: 18px;
}

.footer h4 {
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer p,
.footer li {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 8px;
}

.footer__social {
  display: flex;
  gap: 14px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.footer__social a:hover {
  border-color: var(--lime);
  background: rgba(200, 243, 43, 0.08);
}

.footer__social .icon {
  font-size: 18px;
  color: var(--text);
}

.footer__sponsors {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.footer__bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer__bottom a:hover {
  color: var(--white);
}

.page-hero {
  padding: calc(var(--header-h) + 70px) 0 70px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 90px;
  height: 4px;
  background: var(--lime);
}

.page-hero__inner {
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.page-hero p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

.prose {
  max-width: 820px;
}

.prose p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 18px;
}

.prose p strong {
  color: var(--text);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.tag-card {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 4px;
  padding: 22px 22px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 17px;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.checklist li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  background: var(--lime);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0, 38% 70%);
}

.note-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}

.note-card h3 {
  color: var(--lime);
  font-size: 20px;
  margin-bottom: 12px;
}

.note-card p {
  color: var(--muted);
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.prep-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 26px;
}

.prep-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.prep-card h3 .num {
  color: var(--lime);
  margin-right: 8px;
}

.prep-card p,
.prep-card li {
  color: var(--muted);
  font-size: 16px;
}

.prep-card ul li {
  padding: 6px 0 6px 22px;
  position: relative;
}

.prep-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
}

.race-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 30px;
  align-items: stretch;
}

.comp-panel {
  background: var(--lime);
  border-radius: 6px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.comp-panel__title {
  display: inline-block;
  background: #0a0c07;
  color: var(--lime);
  padding: 8px 18px;
  font-size: 26px;
  margin-bottom: 26px;
  flex-shrink: 0;
}

.comp-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-height: 0;
}

.station-run {
  display: none;
}

.comp-card {
  background: #0a0c07;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.comp-card__img {
  flex: 1;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.comp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.comp-card__num {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--lime);
  color: #0a0c07;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 2px 12px;
}

.comp-card__body {
  padding: 12px 14px 16px;
  flex-shrink: 0;
}

.comp-card__dist {
  color: var(--muted);
  font-size: 13px;
}

.comp-card__name {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
  line-height: 1.15;
  margin-top: 2px;
}

.timeline--desktop {
  background: var(--white);
  border-radius: 6px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
}

.timeline__end {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  color: #0a0c07;
  font-size: 18px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.timeline__run {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  color: #555;
  padding: 8px 0;
  position: relative;
}

.timeline__run::before,
.timeline__run::after {
  content: "";
  display: block;
  width: 2px;
  height: 8px;
  background: #0a0c07;
  margin: 2px auto;
}

.timeline__num {
  background: var(--lime);
  color: #0a0c07;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 14px;
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__head {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px;
  text-align: left;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.2s ease;
}

.accordion__head:hover {
  color: var(--lime);
}

.accordion__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--lime);
  transition: transform 0.3s ease;
}

.accordion__icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.accordion__icon::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

.accordion__item.open .accordion__icon::after {
  transform: scaleY(0);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion__body-inner {
  padding: 0 4px 26px;
  color: var(--muted);
  font-size: 17px;
  max-width: 760px;
}

.accordion__body-inner .meta {
  display: inline-block;
  color: var(--lime);
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tabs {
  max-width: 720px;
  margin: 0 auto;
}

.tabs__nav {
  display: flex;
  background: var(--panel);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.tabs__btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 17px;
  padding: 20px 10px;
  cursor: pointer;
  transition: 0.2s;
}

.tabs__btn:hover {
  color: var(--text);
}

.tabs__btn.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.tabs__panel {
  margin-top: 22px;
}

.tabs__img {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 14;
  overflow: hidden;
  border-radius: 4px;
}

.tabs__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.05);
}

.tabs__caption {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text);
}

.tabs__caption strong {
  color: var(--lime);
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
}

.flow-note {
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
  font-size: 16px;
}

.flow-note__arrow {
  font-size: 12px;
  color: var(--lime);
  margin: 0 7px;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zone {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .zone:nth-child(-n + 3) {
    border-top: none;
  }
  .zone:nth-child(3n + 1) {
    border-left: none;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 12px;
  }
  .gallery__slide {
    flex: 0 0 calc((100% - 32px) / 3);
  }
  .comp-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .flow-note {
    margin-top: 40px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 99;
    width: 75%;
    max-width: 320px;
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    padding: 30px 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.open {
    top: 0;
    height: 100vh;
    padding-top: calc(var(--header-h) + 30px);
    transform: translateX(0);
    touch-action: none;
    overscroll-behavior: contain;
  }
  .header:has(.nav.open):not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .nav a {
    font-size: 18px;
    padding: 10px 0;
  }
  .nav a.btn--primary {
    width: 100%;
    margin-top: 24px;
    padding: 18px 28px;
    font-size: 16px;
    justify-content: center;
    text-align: center;
  }
  .nav .btn {
    margin-top: 14px;
  }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 100;
  }
  .container {
    padding: 0 16px;
  }
  .infobar__grid {
    grid-template-columns: 1fr;
  }
  .infobar__item {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 20px 0;
  }
  .infobar__item:first-child {
    border-top: none;
  }
  .infobar__item:nth-child(odd) {
    border-left: none;
  }
  .infobar__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .infobar__value {
    font-size: 14px;
  }
  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zone {
    padding: 18px 6px;
    gap: 10px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .zone:nth-child(-n + 3) {
    border-top: none;
  }
  .zone:nth-child(3n + 1) {
    border-left: none;
  }
  .zone img {
    width: 36px;
    height: 36px;
  }
  .zone span {
    font-size: 10px;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    margin: 0 auto;
    max-width: 100%;
  }
  .gallery__viewport {
    touch-action: pan-y;
  }
  .gallery__track {
    gap: 0;
  }
  .gallery__slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .gallery__nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
    -webkit-tap-highlight-color: transparent;
  }
  .gallery__nav:hover,
  .gallery__nav:active,
  .gallery__nav:focus,
  .gallery__nav:focus-visible {
    background: rgba(10, 12, 7, 0.85);
    color: var(--white);
    border-color: var(--line);
  }
  .gallery__slide:hover img,
  .gallery__slide:active img {
    transform: none;
    filter: grayscale(20%);
  }
  .gallery__nav--prev {
    left: 8px;
  }
  .gallery__nav--next {
    right: 8px;
  }
  .race-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline--desktop {
    display: none;
  }
  .comp-panel {
    padding: 20px 16px;
  }
  .comp-panel__title {
    margin-bottom: 16px;
    font-size: 22px;
  }
  .comp-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .station-run {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #0a0c07;
    text-transform: uppercase;
  }
  .station-run::before,
  .station-run::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #0a0c07;
  }
  .comp-card {
    width: 100%;
  }
  .comp-card__img {
    aspect-ratio: 16 / 10;
    min-height: 0;
    flex: none;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .hero__overlay {
    background: linear-gradient(90deg, rgba(8, 10, 6, 0.92) 0%, rgba(8, 10, 6, 0.55) 38%, rgba(8, 10, 6, 0.12) 68%, rgba(8, 10, 6, 0.35) 100%);
  }
  .hero__bg {
    transform: none;
    background-position: 28% center;
  }
  .hero .container {
    position: relative;
    z-index: 2;
  }
  .tabs__img {
    aspect-ratio: 16 / 15;
  }

  .btn--primary:hover,
  .btn--primary:active,
  .btn--primary:focus,
  .btn--primary:focus-visible {
    background: var(--lime);
    color: #0a0c07;
  }

  .btn--outline:hover,
  .btn--outline:active,
  .btn--outline:focus,
  .btn--outline:focus-visible {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .btn--dark:hover,
  .btn--dark:active,
  .btn--dark:focus,
  .btn--dark:focus-visible {
    background: #0a0c07;
    color: var(--white);
  }

  .nav a.btn--primary:hover,
  .nav a.btn--primary:active,
  .nav a.btn--primary:focus,
  .nav a.btn--primary:focus-visible {
    background: var(--lime);
    color: #0a0c07;
  }

  .footer__social a:hover,
  .footer__social a:active,
  .footer__social a:focus,
  .footer__social a:focus-visible {
    border-color: var(--line);
    background: transparent;
  }

  .zone:hover,
  .zone:active {
    background: transparent;
  }

  .tabs__btn:hover,
  .tabs__btn:active,
  .tabs__btn:focus,
  .tabs__btn:focus-visible {
    color: var(--muted);
  }

  .tabs__btn.active,
  .tabs__btn.active:hover,
  .tabs__btn.active:active,
  .tabs__btn.active:focus,
  .tabs__btn.active:focus-visible {
    color: var(--lime);
    border-bottom-color: var(--lime);
  }

  .btn,
  .footer__social a,
  .tabs__btn {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 460px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .tabs__btn {
    font-size: 14px;
    padding: 16px 6px;
  }
}
