/* ==========================================================
   Doya Racing — estilos
   ========================================================== */

:root {
  --bg: #0b0d0c;
  --bg-alt: #101412;
  --surface: #161b18;
  --surface-2: #1d2420;
  --border: #27302b;
  --text: #e9eeea;
  --muted: #9aa69f;
  --lime: #a6ff00;        /* verde del logo */
  --green: #1ba100;       /* verde Doya original */
  --on-lime: #0b0d0c;
  --radius: 14px;
  --nav-h: 68px;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Saira Condensed', 'Arial Narrow', Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 600; }
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .9em;
  background: var(--surface-2);
  padding: .15em .45em;
  border-radius: 6px;
  word-break: break-all;
}

h1, h2, h3, h4 { margin: 0; color: #fff; line-height: 1.1; }
h1, h2, .sub, .cta-band h3, .tier h4, .stats dd, .reach strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.accent { color: var(--lime); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.5em;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  transform: skewX(-8deg);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn > * , .btn { backface-visibility: hidden; }
.btn:hover { transform: skewX(-8deg) translateY(-2px); }
.btn--primary { background: var(--lime); color: var(--on-lime); }
.btn--primary:hover { box-shadow: 0 8px 28px rgba(166, 255, 0, .3); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--sm { padding: .65em 1.15em; font-size: .92rem; }

.link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  color: var(--lime);
  font-weight: 500;
  font-size: .92rem;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 13, 12, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav__menu a {
  padding: .5em .8em;
  color: #d5dbd7;
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: color .15s ease;
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--lime); }
.nav__menu a.nav__cta {
  margin-left: .5rem;
  padding: .5em 1.1em;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  transform: skewX(-8deg);
}
.nav__menu a.nav__cta:hover { color: var(--on-lime); box-shadow: 0 4px 18px rgba(166, 255, 0, .3); }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  padding: .2rem;
  cursor: pointer;
}

/* ---------- Selector de idioma ---------- */
.i18n-loading body { visibility: hidden; }
/* Texto para buscadores y lectores de pantalla que a la vista ya está dicho de otra forma (ej. el logo). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lang { display: flex; align-items: center; gap: .4rem; margin-left: .75rem; }
.lang__btn {
  display: block;
  padding: 0;
  width: 30px;
  height: 21px;
  background: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  opacity: .45;
  cursor: pointer;
  transition: opacity .15s ease, box-shadow .15s ease;
}
.lang__btn svg { display: block; width: 100%; height: 100%; }
.lang__btn:hover { opacity: .85; }
.lang__btn.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 12, .78) 0%, rgba(11, 13, 12, .55) 40%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 35%, rgba(166, 255, 0, .12), transparent 60%),
    url('hero.webp') center 60% / cover no-repeat;
}
.hero__content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 2rem; }
.hero__logo {
  width: min(430px, 78vw);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .6));
  animation: hero-in .9s cubic-bezier(.2, .8, .2, 1) both;
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: .98;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
  animation: hero-in .9s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__tag {
  margin: 1rem 0 2rem;
  color: #d5dbd7;
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: hero-in .9s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__tag span { color: var(--lime); margin-inline: .35em; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: hero-in .9s .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 2rem 0 0;
  background: rgba(22, 27, 24, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--lime);
  border-radius: var(--radius) var(--radius) 0 0;
}
.stats__item { display: flex; flex-direction: column-reverse; padding: 1.4rem 1rem; }
.stats__item + .stats__item { border-left: 1px solid var(--border); }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--lime); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 760px; margin-bottom: 2.5rem; }
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: .6rem;
  color: var(--lime);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker::before { content: ''; width: 28px; height: 3px; background: var(--lime); transform: skewX(-30deg); }

.sub {
  display: flex;
  align-items: center;
  gap: .5em;
  margin: 3.25rem 0 1.25rem;
  font-size: 1.6rem;
}
.sub i { color: var(--lime); font-size: .85em; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split h2 { margin-bottom: 1.25rem; }
.split p { color: #c9d1cc; }
.split__media { margin: 0; position: relative; }
.split__media img { border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split__media::after {
  content: '';
  position: absolute;
  inset: 18px -14px -14px 18px;
  z-index: -1;
  border: 2px solid var(--lime);
  border-radius: var(--radius);
  opacity: .5;
}

/* ---------- Tarjetas ---------- */
.card, .feature, .tier, .reach, .driver {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card { padding: 1.5rem; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: rgba(166, 255, 0, .45); transform: translateY(-3px); }
.card > i, .feature > i { display: block; font-size: 1.8rem; line-height: 1; color: var(--lime); margin-bottom: .9rem; }
.card h3, .card h4, .feature h3 { margin-bottom: .45rem; }
.card p, .feature p, .tier p { color: var(--muted); font-size: .94rem; margin: 0; }
.card--action { text-align: center; padding: 2rem 1.5rem; }
.card--action > i { font-size: 2.6rem; }
.card--action .btn { margin-top: 1.25rem; }

.values { margin-top: clamp(2.5rem, 6vw, 4rem); }
.feature { padding: 1.6rem; border-left: 3px solid var(--lime); }

.tag {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .2em .7em;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(166, 255, 0, .4);
  border-radius: 999px;
}
.league { display: flex; flex-direction: column; align-items: flex-start; }
.league h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.9rem; text-transform: uppercase; }
.league p { flex: 1; margin-bottom: 1.1rem; }
.league__label { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--border); width: 100%; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.league__tournament { margin-top: .5rem; align-items: flex-start; text-align: left; line-height: 1.35; }
.league__tournament .bi { margin-top: .2em; }
.standings { list-style: none; padding: 0; margin: 0 0 1.1rem; width: 100%; font-size: .9rem; }
.standings li { display: flex; gap: .75rem; padding: .4rem 0; border-top: 1px solid var(--border); }
.standings__pos { color: var(--lime); font-weight: 700; min-width: 2.2em; }

/* ---------- Pilotos ---------- */
.driver { overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.driver:hover { border-color: rgba(166, 255, 0, .5); transform: translateY(-4px); }
.driver__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #f3f5f3 0%, #cdd3cf 100%);
  overflow: hidden;
}
.driver__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--green));
}
.driver__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.driver:hover .driver__photo img { transform: scale(1.04); }
.driver__body { padding: 1.1rem 1.2rem 1.3rem; }
.driver__body h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.55rem; text-transform: uppercase; }
.driver__platforms { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.driver__platforms .tag { margin: 0; font-size: .66rem; }
.driver__platforms + .driver__socials { margin-top: .7rem; }
.driver__rating { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .7rem 0 .9rem; padding: .6rem 0; border-block: 1px solid var(--border); }
.driver__ir { display: flex; align-items: baseline; gap: .4rem; }
.driver__ir strong { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--lime); }
.driver__ir small { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.driver__body h3 + .driver__socials { margin-top: .7rem; }
/* Colores de licencia de iRacing */
.lic { padding: .2em .6em; border-radius: 6px; font-size: .8rem; font-weight: 700; white-space: nowrap; color: #fff; background: #555; }
.lic--r { background: #c62828; }
.lic--d { background: #ef6c00; }
.lic--c { background: #f9c80e; color: #111; }
.lic--b { background: #2e9e3f; }
.lic--a { background: #1565c0; }
.lic--p { background: #111; border: 1px solid #555; }

/* ---------- Grillas de imágenes ---------- */
.media {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media:hover img { transform: scale(1.05); }
.media:hover { border-color: rgba(166, 255, 0, .5); }
.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.media__caption strong { font-size: .9rem; }
.media__caption small { color: #c9d1cc; font-size: .78rem; }

/* ---------- Servidores ---------- */
.server-info {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
}
.server-info i { color: var(--lime); }

/* ---------- Sponsors ---------- */
.section--sponsors {
  background:
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(166, 255, 0, .1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(27, 161, 0, .14), transparent 70%),
    var(--bg);
}
.reach { padding: 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.reach strong { font-size: 3rem; line-height: 1; color: var(--lime); }
.reach strong i { font-size: .8em; }
.reach span { color: #c9d1cc; font-size: .95rem; }

.tier { position: relative; padding: 1.75rem 1.5rem; }
.tier h4 { font-size: 1.9rem; margin-bottom: .5rem; }
.tier > i { display: block; font-size: 1.8rem; line-height: 1; color: var(--lime); margin-bottom: .9rem; }
.tier--main { border-color: var(--lime); background: linear-gradient(160deg, rgba(166, 255, 0, .12), var(--surface) 60%); }
.tier--main h4 { color: var(--lime); }
.tier__badge {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  padding: .2em .8em;
  background: var(--lime);
  color: var(--on-lime);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: skewX(-8deg);
  border-radius: 4px;
}

.cta-band {
  margin-top: 3.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
}
.cta-band h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .5rem; }
.cta-band p { color: #c9d1cc; margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; flex-shrink: 0; }

/* ---------- Partners ---------- */
.partners { display: grid; gap: 1.25rem; }
.partner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease;
}
.partner:hover { border-color: rgba(166, 255, 0, .5); }
.partner img { max-height: 64px; width: auto; flex-shrink: 0; }
.partner__name {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.partner__info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; color: var(--muted); font-size: .94rem; }
.partner__info .tag { margin-bottom: .5rem; }
.partner__stat { margin-top: .6rem; color: var(--lime); font-size: .85rem; }
.partner > i { color: var(--lime); font-size: 1.2rem; }
a.reach { text-decoration: none; transition: border-color .2s ease; }
a.reach:hover { border-color: rgba(166, 255, 0, .5); }
.driver__socials { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }

/* ---------- Página de sponsors ---------- */
.hero--page { min-height: 0; padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero--page .hero__content { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
.hero__lead { max-width: 60ch; margin: 1.25rem auto 2rem; color: #d5dbd7; font-size: clamp(1rem, 2.2vw, 1.15rem); }

.placement { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.placement__car { position: relative; margin: 0; }
.placement__car img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.hotspot, .placement__list li::before {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50%;
}
.hotspot { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(166, 255, 0, .3), 0 4px 14px rgba(0, 0, 0, .6); }
.placement__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: spot; }
.placement__list li { position: relative; padding-left: 3rem; display: flex; flex-direction: column; counter-increment: spot; }
.placement__list li::before { content: counter(spot); position: absolute; left: 0; top: .1rem; }
.placement__list span { color: var(--muted); font-size: .93rem; }

.checks { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .55rem; font-size: .93rem; color: #c9d1cc; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .05em; color: var(--lime); }

/* ---------- Contacto ---------- */
.contact .section__head { margin-inline: auto; text-align: center; }
.contact .kicker::after { content: ''; width: 28px; height: 3px; background: var(--lime); transform: skewX(-30deg); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.contact__links a { flex: 1 1 220px; max-width: 300px; }
.contact__links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 1.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .93rem;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.contact__links a:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-3px); }
.contact__links i { font-size: 1.9rem; color: var(--lime); line-height: 1; }

/* ---------- Footer ---------- */
.footer { padding: 2.5rem 0; text-align: center; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); }
.footer img { height: 54px; width: auto; margin: 0 auto 1rem; opacity: .9; }
.footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 7, 6, .94);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 84vh; margin-inline: auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { margin-top: .8rem; color: #c9d1cc; font-size: .95rem; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(22, 27, 24, .85);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lightbox__btn:hover { background: var(--lime); color: var(--on-lime); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover, .driver.reveal.is-visible:hover { transform: translateY(-4px); transition-duration: .2s; }

/* ---------- Página de gastos ---------- */
.page-head { padding: calc(var(--nav-h) + 3.5rem) 0 3rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head p { color: var(--muted); margin: .8rem 0 0; }
.expenses { padding: 3rem 0 5rem; display: grid; gap: 2.75rem; max-width: 900px; }
.expenses h2 { font-size: 1.7rem; display: flex; align-items: center; gap: .5em; margin-bottom: 1rem; }
.expenses h2 i { color: var(--lime); font-size: .8em; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rows > li { padding: .95rem 1.25rem; color: #c9d1cc; }
.rows > li + li { border-top: 1px solid var(--border); }
.rows ul { margin: .5rem 0; padding-left: 1.2rem; color: var(--muted); font-size: .95rem; }
.total { margin: 1rem 0 0; color: #c9d1cc; }
.total strong, .rows strong { color: #fff; }
.note { font-style: italic; color: var(--muted); font-size: .9rem; margin-top: .9rem; }
.chart { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.4rem 1.25rem .75rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__bar { fill: var(--lime); }
.chart__hit { fill: transparent; }
.chart__col { outline: none; }
.chart__col:hover .chart__bar, .chart__col:focus .chart__bar { fill: #fff; }
.chart__grid { stroke: var(--border); stroke-width: 1; }
.chart__axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__tip { position: absolute; top: .8rem; left: 1.25rem; margin: 0; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.chart__tip strong { color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-variant-numeric: tabular-nums; }
.table th, .table td { padding: .85rem 1.25rem; text-align: right; white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; white-space: normal; }
.table thead th { background: var(--lime); color: var(--on-lime); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.table tbody tr + tr td { border-top: 1px solid var(--border); }
.table tfoot td { border-top: 2px solid var(--lime); font-weight: 700; color: #fff; background: var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .placement { grid-template-columns: 1fr; }
  .split__media::after { inset: 14px -8px -8px 14px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .nav { background: rgba(11, 13, 12, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav__toggle { display: block; order: 2; }
  .lang { order: 1; margin-left: auto; margin-right: .25rem; }
  .nav__menu {
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: rgba(11, 13, 12, .98);
    border-bottom: 1px solid var(--border);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: .85em .25em; font-size: 1.02rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__menu a.nav__cta { margin: 1rem 0 0; text-align: center; border-radius: 6px; border-bottom: 0; }
  .grid--3, #leagues.grid--4 { grid-template-columns: 1fr; }
  .media-grid.grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(odd) { border-left: 0; }
  .stats__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats__item:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 520px) {
  .partner { flex-direction: column; align-items: flex-start; }
  .partner > i { display: none; }
  .hotspot { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
  .container { width: calc(100% - 2rem); }
  .grid, .media-grid.grid--3 { gap: .8rem; }
  #drivers.grid--4, .media-grid.grid--4 { grid-template-columns: repeat(2, 1fr); }
  .section--sponsors .grid--4 { grid-template-columns: 1fr; }
  .driver__body { padding: .85rem .85rem 1rem; }
  .driver__body h3 { font-size: 1.25rem; }
  .driver__ir strong { font-size: 1.5rem; }
  .driver__rating { flex-wrap: wrap; }
  .media__caption { padding: 1.5rem .6rem .5rem; }
  .media__caption strong { font-size: .78rem; }
  .hero__actions { flex-direction: column; width: 100%; padding-inline: .5rem; }
  .lightbox__prev { left: .4rem; }
  .lightbox__next { right: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
