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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at 18% -5%, rgba(49, 54, 74, 0.28), transparent 55%), linear-gradient(180deg, rgba(2, 5, 12, 0.95), rgb(2, 4, 9)) #04060a;
  color: #f5f7ff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

header, section {
  scroll-margin-top: 90px;
}

.wrapper {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(120deg, rgba(5, 8, 15, 0.92), rgba(5, 8, 15, 0.3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar__inner {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.75rem, 6vw, 6rem);
  padding-block: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.navbar__brand:hover {
  transform: translateY(-2px);
}

.navbar__brand-logo {
  width: 180px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 25px rgba(255, 107, 17, 0.35));
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__item {
  position: relative;
}

.navbar__link {
  position: relative;
  padding-block: 0.4rem;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b0d, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.navbar__link:hover::after,
.navbar__link:focus-visible::after {
  transform: scaleX(1);
}

.navbar__toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 52px;
  height: 48px;
  border: 1px solid rgba(255, 140, 49, 0.35);
  border-radius: 14px;
  background: rgba(12, 16, 28, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.navbar__toggle:focus-visible {
  outline: 2px solid rgba(255, 140, 49, 0.6);
  outline-offset: 4px;
}

.navbar__toggle-line {
  width: 22px;
  height: 2px;
  background: rgba(255, 235, 220, 0.9);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sr-only,
.navbar__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
}

.social-links--nav {
  gap: 0.65rem;
}

.social-links--footer {
  margin-top: 1.4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 16, 28, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(240, 244, 255, 0.9);
  transition: fill 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 140, 49, 0.8);
  background: rgba(255, 107, 13, 0.12);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 140, 49, 0.5);
  outline-offset: 3px;
}

.social-link:hover svg,
.social-link:focus-visible svg {
  fill: #ff6b0d;
}

.social-link--compact {
  width: 34px;
  height: 34px;
  background: rgba(12, 16, 28, 0.4);
}

.social-link--compact svg {
  width: 16px;
  height: 16px;
}

.navbar__item--social {
  display: flex;
  align-items: center;
}

.navbar.is-open .navbar__toggle-line:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar.is-open .navbar__toggle-line:nth-of-type(2) {
  opacity: 0;
}

.navbar.is-open .navbar__toggle-line:nth-of-type(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
  background: #000;
}

.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 14, 0.35), rgba(2, 5, 12, 0.94));
  z-index: -1;
}

.hero__content {
  padding-inline: clamp(1.5rem, 8vw, 9rem);
  display: grid;
  gap: 1.5rem;
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 171, 117, 0.75);
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  color: rgba(203, 213, 225, 0.78);
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 25px rgba(255, 107, 17, 0.25);
}

.btn--primary {
  background: linear-gradient(135deg, #ff6b0d, #ff9440);
  color: white;
}

.btn--ghost {
  background: rgba(15, 20, 32, 0.65);
  color: rgba(226, 232, 240, 0.85);
  border: 1px solid rgba(255, 140, 49, 0.25);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-3px);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.75rem, 6vw, 6rem);
}

.section__header {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.section__heading {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  color: #ff8c3b;
  margin: 0;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.section__description {
  color: rgba(203, 213, 225, 0.7);
  max-width: 640px;
  margin: 0;
}

.drivers {
  background: radial-gradient(circle at top right, rgba(42, 54, 82, 0.22), transparent 55%), linear-gradient(180deg, rgba(6, 10, 20, 0.85), rgba(5, 7, 14, 0.98));
}

.drivers__grid {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.drivers__item {
  display: flex;
  height: 100%;
}

.drivers__item > .driver-card {
  flex: 1;
}

.driver-card {
  position: relative;
  padding: 1.8rem;
  border-radius: 26px;
  background: rgba(14, 18, 28, 0.86);
  border: 3px solid rgba(255, 148, 64, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.driver-card::before,
.driver-card::after {
  content: "";
  position: absolute;
  inset: -40% -10% 45% -10%;
  background: linear-gradient(130deg, rgba(255, 159, 91, 0.4), transparent 45%);
  opacity: 0;
  transform: rotate(8deg);
  transition: opacity 0.3s ease;
}

.driver-card::after {
  inset: 30% -20% -40% -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
  filter: blur(6px);
}

.driver-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 40px 120px rgba(255, 120, 40, 0.25);
}

.driver-card:hover::before,
.driver-card:hover::after {
  opacity: 1;
}

.driver-card__frame {
  position: relative;
  border-radius: 20px;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.3), rgba(0, 0, 0, 0));
  border: 1px solid rgba(255, 148, 64, 0.3);
  overflow: hidden;
  width: 100%;
}

.driver-card__image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 7/9;
  max-width: 220px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  width: clamp(140px, 50%, 220px);
  margin-inline: auto;
}

.driver-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(5, 7, 15, 0.78);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.driver-card__name {
  margin-top: 1.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.driver-card__role {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: #ff8c3b;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.driver-card__meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  background: rgba(23, 32, 52, 0.6);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.driver-card__stat {
  display: grid;
  gap: 0.25rem;
  text-align: center;
}

.driver-card__stat-title {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(173, 189, 217, 0.65);
  margin-bottom: 0.25rem;
}

.driver-card__stat-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.driver-card__bio {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.7);
}

.driver-card[data-variant=scarlet] {
  background: linear-gradient(140deg, rgba(24, 20, 36, 0.85), rgba(12, 18, 32, 0.96));
  border-color: rgba(255, 119, 34, 0.4);
}

.driver-card[data-variant=azure] {
  background: linear-gradient(140deg, rgba(20, 28, 42, 0.85), rgba(12, 16, 28, 0.96));
  border-color: rgba(255, 153, 64, 0.35);
}

.circuits {
  background: radial-gradient(circle at 12% 8%, rgba(37, 46, 82, 0.25), transparent 60%), linear-gradient(180deg, rgba(6, 9, 18, 0.8), rgba(4, 6, 12, 0.97));
}

.circuits__grid {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.circuits__item {
  display: flex;
  height: 100%;
}

.circuits__item > .circuit-card {
  flex: 1;
}

.circuit-card {
  position: relative;
  padding: 2rem;
  border-radius: 22px;
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid rgba(255, 148, 64, 0.12);
  display: grid;
  gap: 1.2rem;
  grid-template-rows: auto auto auto 1fr auto;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.circuit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 148, 64, 0.4);
  box-shadow: 0 25px 65px rgba(255, 120, 40, 0.18);
}

.circuit-card__media {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 40, 68, 0.45), rgba(5, 8, 15, 0.9));
  display: grid;
  place-items: center;
  position: relative;
}

.circuit-card__media img {
  width: 90%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: saturate(1.05);
}

.circuit-card:hover .circuit-card__media img {
  transform: scale(1.05);
}

.circuit-card__media--framed::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 140, 49, 0.55);
  box-shadow: 0 0 0 1px rgba(11, 17, 28, 0.6);
  pointer-events: none;
}

.circuit-card__media--framed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 140, 49, 0.12), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.circuit-card__media--placeholder {
  padding: 1rem;
  border: 1px dashed rgba(255, 148, 64, 0.2);
  background: linear-gradient(145deg, rgba(255, 140, 60, 0.12), rgba(0, 0, 0, 0.35));
  color: rgba(255, 214, 185, 0.75);
}

.circuit-card__media--placeholder svg {
  width: 100%;
  height: 100%;
  stroke: rgba(255, 148, 64, 0.8);
  stroke-width: 6;
  fill: none;
  filter: drop-shadow(0 8px 22px rgba(255, 148, 64, 0.35));
}

.circuit-card__media--placeholder span {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}

.circuit-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: rgba(255, 214, 185, 0.7);
}

.circuit-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.circuit-card__excerpt {
  margin: 0;
  color: rgba(203, 213, 225, 0.7);
  line-height: 1.6;
}

.circuit-card__details {
  margin: 0;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-self: end;
}

.circuit-card__detail {
  display: grid;
  gap: 0.25rem;
}

.circuit-card__detail dt {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(173, 189, 217, 0.65);
}

.circuit-card__detail dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery {
  background: radial-gradient(circle at 10% 10%, rgba(50, 72, 110, 0.18), transparent 55%), radial-gradient(circle at 90% 0%, rgba(255, 120, 40, 0.12), transparent 40%), linear-gradient(180deg, rgba(4, 6, 12, 0.92), rgba(7, 10, 19, 0.98));
  position: relative;
  overflow: hidden;
}

.gallery__viewport {
  margin-top: 2.5rem;
  border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgba(12, 16, 28, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 148, 64, 0.12), 0 35px 90px rgba(0, 0, 0, 0.35);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  display: flex;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.gallery__viewport:focus-visible {
  outline: 2px solid rgba(255, 140, 49, 0.65);
  outline-offset: 6px;
}

.gallery__strip {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
}

.gallery__item {
  flex: 0 0 clamp(220px, 42vw, 320px);
  scroll-snap-align: start;
  position: relative;
}

.gallery__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  appearance: none;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(18, 24, 38, 0.92);
  border: 1px solid rgba(255, 148, 64, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: zoom-in;
}

.gallery__thumb img {
  display: block;
  width: 100%;
  height: clamp(180px, 32vw, 240px);
  object-fit: cover;
}

.gallery__thumb:hover,
.gallery__thumb:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(255, 120, 40, 0.22);
  border-color: rgba(255, 148, 64, 0.5);
}

.gallery__thumb:focus-visible {
  outline: 2px solid rgba(255, 140, 49, 0.6);
  outline-offset: 4px;
}

.gallery__viewport::-webkit-scrollbar {
  height: 8px;
}

.gallery__viewport::-webkit-scrollbar-track {
  background: rgba(22, 30, 46, 0.6);
  border-radius: 999px;
}

.gallery__viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 148, 64, 0.55);
  border-radius: 999px;
}

.gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: clamp(1.5rem, 6vw, 3rem);
}

.gallery__lightbox[hidden] {
  display: none;
}

.gallery__lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.78);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.gallery__lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.95);
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.55);
}

.gallery__lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 148, 64, 0.5);
  background: rgba(12, 16, 28, 0.9);
  color: rgba(255, 232, 213, 0.92);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gallery__lightbox-close:hover,
.gallery__lightbox-close:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 148, 64, 0.85);
  color: rgba(12, 16, 28, 0.95);
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .gallery__viewport {
    mask-image: none;
    padding: 1.1rem;
  }
  .gallery__strip {
    gap: 1.1rem;
  }
  .gallery__item {
    flex: 0 0 clamp(200px, 70vw, 260px);
  }
  .gallery__thumb img {
    height: clamp(160px, 45vw, 220px);
  }
  .gallery__lightbox-inner {
    max-width: 94vw;
    max-height: 88vh;
  }
  .gallery__lightbox-close {
    top: 10px;
    right: 10px;
  }
}
.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 148, 64, 0.14);
  color: rgba(255, 214, 185, 0.88);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.badge--success {
  background: rgba(255, 148, 64, 0.2);
  color: rgba(255, 200, 150, 0.95);
}

.badge--warning {
  background: rgba(255, 178, 92, 0.22);
  color: rgba(255, 230, 189, 0.95);
}

.badge--danger {
  background: rgba(255, 104, 32, 0.22);
  color: rgba(255, 190, 150, 0.95);
}

.sponsoring {
  background: linear-gradient(120deg, rgba(38, 46, 82, 0.25), rgba(7, 9, 20, 0.85));
}

.sponsoring__content {
  margin-top: 2rem;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.sponsoring__story {
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, rgba(13, 18, 32, 0.9), rgba(7, 9, 18, 0.95));
  border-radius: 24px;
  border: 1px solid rgba(90, 105, 140, 0.28);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1.4rem;
}

.sponsoring__story h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sponsoring__story p {
  color: rgba(212, 219, 238, 0.72);
  line-height: 1.7;
}

.sponsoring__story p + p {
  margin-top: -0.5rem;
}

.sponsoring__card {
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(160deg, rgba(12, 16, 30, 0.95), rgba(8, 10, 18, 0.92));
  border-radius: 24px;
  border: 1px solid rgba(90, 105, 140, 0.28);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1.6rem;
}

.sponsoring__card h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.chapters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.chapters li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(20, 28, 46, 0.65);
  border: 1px solid rgba(90, 105, 140, 0.25);
  color: rgba(224, 230, 245, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.chapters__index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255, 140, 49, 0.85);
}

.sponsoring__cta {
  display: flex;
  justify-content: flex-start;
}

.partners {
  background: linear-gradient(120deg, rgba(13, 17, 28, 0.92), rgba(6, 9, 18, 0.95));
  border-top: 1px solid rgba(90, 105, 140, 0.2);
  border-bottom: 1px solid rgba(90, 105, 140, 0.2);
  padding: 1.25rem 0;
  overflow: hidden;
}

.partners__marquee {
  position: relative;
  height: clamp(80px, 10vw, 100px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners__track {
  display: flex;
  width: max-content;
  --partners-scroll-distance: 0px;
  animation: partners-scroll 36s linear infinite alternate;
  animation-fill-mode: both;
}

.partners__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0 30px;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 15vw, 160px);
  height: clamp(56px, 7vw, 72px);
  padding: 0.45rem 1.2rem;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  background: rgba(13, 17, 28, 0.72);
  border: 1px solid rgba(90, 105, 140, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  overflow: hidden;
}

.partner-logo img {
  max-height: 38px;
  max-width: 90%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

.partners__marquee:hover .partners__track {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--partners-scroll-distance)));
  }
}
@media (prefers-reduced-motion: reduce) {
  .partners__track {
    animation: none;
    transform: translateX(0);
  }
}
@media (max-width: 768px) {
  .partners__marquee {
    height: 80px;
  }
  .partner-logo {
    width: clamp(110px, 38vw, 140px);
    height: 56px;
    padding: 0.35rem 1rem;
  }
  .partner-logo img {
    max-height: 32px;
    max-width: 88%;
  }
  .navbar__item--social {
    width: 100%;
  }
  .social-links--nav {
    justify-content: flex-start;
  }
}
.footer {
  background: linear-gradient(160deg, rgba(6, 9, 18, 0.96), rgb(2, 4, 11));
  border-top: 1px solid rgba(90, 105, 140, 0.2);
  padding: clamp(2.5rem, 6vw, 3.8rem) clamp(1.5rem, 6vw, 3rem) clamp(2rem, 4vw, 3rem);
  color: rgba(226, 232, 240, 0.78);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.footer__logo img {
  width: clamp(140px, 18vw, 180px);
  height: auto;
}

.footer__tagline {
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.75);
}

.footer__contact {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  color: rgba(255, 140, 49, 0.85);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer__social {
  display: flex;
  flex-direction: column;
}

.footer__social .social-link {
  background: rgba(12, 16, 28, 0.65);
}

.footer__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 251, 245, 0.75);
  margin-bottom: 1.1rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer__links a {
  color: rgba(224, 230, 245, 0.78);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.footer__links a:hover,
.footer__links a:focus-visible,
.footer__contact:hover,
.footer__contact:focus-visible {
  color: #ff6b0d;
}

.footer__cta p {
  color: rgba(203, 213, 225, 0.7);
  line-height: 1.7;
  margin-bottom: 1.3rem;
}

.footer__btn {
  align-self: flex-start;
  padding-inline: 2.2rem;
}

.footer__bottom {
  border-top: 1px solid rgba(90, 105, 140, 0.25);
  margin-top: clamp(2rem, 4vw, 2.8rem);
  padding-top: 1.8rem;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(174, 183, 199, 0.65);
}

@media (max-width: 768px) {
  .navbar__inner {
    gap: 1rem;
  }
  .navbar__toggle {
    display: inline-flex;
  }
  .navbar__links {
    position: fixed;
    top: 84px;
    right: 16px;
    left: 16px;
    padding: 1.5rem;
    flex-direction: column;
    background: rgba(5, 8, 15, 0.96);
    border: 1px solid rgba(90, 105, 140, 0.32);
    border-radius: 20px;
    gap: 1.4rem;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
    transform: translateY(-25px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
  }
  .navbar.is-open .navbar__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar__link {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }
  body.nav-open {
    overflow: hidden;
  }
  .hero__content {
    padding-inline: 1.4rem;
    padding-top: clamp(4rem, 12vw, 6rem);
  }
  .hero__title {
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    letter-spacing: 0.06em;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .hero__video iframe {
    width: 350%;
    height: 220%;
  }
  .circuits__grid {
    grid-template-columns: 1fr;
  }
  .circuit-card {
    padding: clamp(1.6rem, 6vw, 2rem);
  }
  .circuit-card:hover .circuit-card__media img {
    transform: none;
  }
  .circuit-card__media img {
    width: 90%;
  }
  .circuit-card__details {
    grid-template-columns: 1fr;
  }
  .driver-card__meta {
    grid-template-columns: 1fr;
  }
  .driver-card__image {
    width: 100%;
    max-width: none;
  }
  .circuit-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer__btn {
    width: 100%;
    justify-content: center;
  }
  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  .navbar__inner {
    padding-inline: 1.2rem;
  }
  .navbar__links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .section {
    padding-inline: 1.5rem;
  }
  .gallery__viewport {
    padding: 0.9rem;
  }
  .gallery__item {
    flex: 0 0 clamp(180px, 82vw, 220px);
  }
  .gallery__lightbox {
    padding: 1.2rem;
  }
  .gallery__lightbox-inner {
    max-width: 96vw;
    max-height: 82vh;
  }
  .gallery__lightbox-close {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .hero__title {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
    letter-spacing: 0.05em;
  }
  .hero__subtitle {
    font-size: 0.95rem;
  }
  .circuit-card {
    padding: clamp(1.4rem, 8vw, 1.8rem);
  }
  .footer__btn {
    width: auto;
  }
  .footer__bottom-inner {
    gap: 0.6rem;
  }
}
