/* Stony Creek Karts
   Desktop values come from the 1920px Figma frames, mobile from the 393px frames.
   Type scales fluidly between the two with clamp(). */

:root {
  --red: #ed2441;
  --red-hover: #d41a36;
  --bg: #1a1a1a;
  --panel: rgba(217, 217, 217, 0.06);
  --card: #2a2929;
  --chip: #424242;
  --muted: #6b6b6b;
  --soft: #a3a3a3;
  --rule: #616161;
  --rule-dim: #4f4f4f;
  --white: #fff;

  --col: 930px;          /* content column */
  --edge: 20px;          /* minimum side gutter */
  --lh: 1.21;            /* Inter's "auto" line height in Figma */

  --fs-title: clamp(44px, 35px + 2.36vw, 80px);
  --fs-display: clamp(40px, 33.6px + 1.64vw, 65px);
  --fs-sub: clamp(22px, 19.4px + 0.655vw, 32px);
  --fs-h2: clamp(26px, 24.5px + 0.393vw, 32px);
  --fs-lead: clamp(18px, 17px + 0.262vw, 22px);
  --fs-kart: clamp(13px, 12.2px + 0.196vw, 16px);

  --header-h: 118px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Lenis smooth scrolling (assets/js/vendor) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not hidden, so position: sticky keeps working */
}
html.menu-open, html.menu-open body, html.scroll-locked, html.scroll-locked body { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--bg); padding: 10px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.link-red { color: var(--red); text-decoration: none; }
.link-red:hover { text-decoration: underline; text-underline-offset: 3px; }
.mobile-only { display: none !important; }

/* Content grid: children sit in the 930px column; helpers break out to the edges. */
.wrap {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--edge), 1fr)
    [content-start] min(var(--col), 100% - 2 * var(--edge))
    [content-end] minmax(var(--edge), 1fr)
    [full-end];
}
.wrap > * { grid-column: content; }
.container { width: min(var(--col), 100% - 2 * var(--edge)); margin-inline: auto; }

/* ---------- Type ---------- */
.label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1.25;
}
.label--muted { color: var(--muted); }
.kicker { font-size: 22px; font-weight: 600; text-transform: uppercase; line-height: var(--lh); }
.display {
  font-size: var(--fs-display); font-weight: 600; text-transform: uppercase; line-height: var(--lh);
}
.h2 { font-size: var(--fs-h2); font-weight: 600; text-transform: uppercase; line-height: var(--lh); }
.lead { font-size: var(--fs-lead); font-weight: 600; line-height: var(--lh); max-width: 904px; }
.lead p + p { margin-top: 1.21em; }
.lead a { color: var(--red); text-decoration: none; }
.lead a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose p + p { margin-top: 1.21em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: var(--white); --btn-wipe: var(--white); --btn-wipe-fg: var(--red);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 39px; padding: 12px 20px; border: 0; border-radius: 20px;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: inset 0 0 0 1.5px var(--btn-bg);
  font-size: 12px; font-weight: 600; line-height: 15px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .45s cubic-bezier(.65, 0, .25, 1), transform .2s ease;
}
/* The flip: a fill wipes across from the left and the text swaps colour with it */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-wipe);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .45s cubic-bezier(.65, 0, .25, 1);
}
.btn:hover, .btn:focus-visible, summary:hover .btn, summary:focus-visible .btn { color: var(--btn-wipe-fg); }
.btn:hover::before, .btn:focus-visible::before, summary:hover .btn::before, summary:focus-visible .btn::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { transform: scale(.97); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--red); --btn-wipe: var(--red); --btn-wipe-fg: var(--white); }
.btn--white:hover, .btn--white:focus-visible { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--arrow::after {
  content: ""; width: 17px; height: 12px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 12'%3E%3Cpath d='M0 6h15.5M10.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 12'%3E%3Cpath d='M0 6h15.5M10.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .45s cubic-bezier(.65, 0, .25, 1);
}
.btn--arrow:hover::after { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: flex-start;
  padding: 24px 20px 0 22px; height: var(--header-h);
  transition: background-color .25s ease, height .25s ease, padding .25s ease;
}
.site-header.is-scrolled {
  height: 76px; padding-top: 14px;
  background: rgba(26, 26, 26, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header__logo { flex: none; display: block; }
.site-header__logo img { width: 302px; transition: width .25s ease; }
.site-header.is-scrolled .site-header__logo img { width: 206px; }

.site-nav { position: absolute; left: 50%; top: 39px; transform: translateX(-50%); transition: top .25s ease; }
.site-nav ul { display: flex; gap: 0 clamp(28px, 2.4vw, 47px); }
.site-nav a {
  display: block; font-size: 14px; font-weight: 600; line-height: 17px; text-transform: uppercase;
  text-decoration: none; padding-bottom: 3px; border-bottom: 1.5px solid transparent;
  transition: border-color .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-header__book { margin: 5px 0 0 auto; }
.site-header.is-scrolled .site-nav { top: 25px; }
.site-header.is-scrolled .site-header__book { margin-top: 0; }
/* "Ask us a question" (desktop only): white button, red wipe on hover / while its panel is open */
.site-header__ask { margin: 5px 0 0 auto; }
.site-header__ask + .site-header__book { margin-left: 10px; }
.site-header.is-scrolled .site-header__ask { margin-top: 0; }
.site-header__ask[aria-expanded="true"] { color: var(--btn-wipe-fg); }
.site-header__ask[aria-expanded="true"]::before { transform: scaleX(1); transform-origin: left center; }
@media (max-width: 1199px) {
  .site-nav ul { gap: 0 22px; }
  .site-header__ask, .site-header__book { padding-inline: 15px; }
}


.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; margin-top: -9px; margin-right: -6px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 32px; height: 2px; background: var(--white); margin-inline: auto;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -10px; }
.menu-toggle__bars::after { top: 10px; }

/* ---------- Mobile menu ---------- */
/* Sized to the *visible* screen (dvh), not the full screen, and kept clear of the iPhone home-indicator area.
   Spacing shrinks on shorter screens so the logo stays on screen; very short screens scroll. */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
           max(20px, calc(env(safe-area-inset-bottom) + 12px)) max(20px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--red);
}
.mobile-menu[hidden] { display: none; }
.js .mobile-menu { opacity: 0; transition: opacity .2s ease; }
.js .mobile-menu.is-open { opacity: 1; }
.mobile-menu__top { display: flex; align-items: flex-start; justify-content: space-between; }
.mobile-menu__close {
  position: relative; width: 44px; height: 44px; margin: -2px -10px 0 0;
  border: 0; background: none; cursor: pointer;
}
.mobile-menu__close::before, .mobile-menu__close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 2px; background: var(--white);
}
.mobile-menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu__nav { margin-top: clamp(16px, 6vh, 64px); margin-top: clamp(16px, 6dvh, 64px); }
.mobile-menu__nav a {
  display: block; font-size: clamp(28px, 4.46vh, 38px); font-size: clamp(28px, 4.46dvh, 38px);
  line-height: clamp(38px, 7vh, 60px); line-height: clamp(38px, 7dvh, 60px);
  font-weight: 600; text-transform: uppercase; text-decoration: none;
}
.mobile-menu__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mobile-menu__info { margin-top: clamp(16px, 4vh, 34px); margin-top: clamp(16px, 4dvh, 34px); }
.mobile-menu__info > div + div { margin-top: clamp(16px, 4vh, 34px); margin-top: clamp(16px, 4dvh, 34px); }
.mobile-menu__info .label { margin-bottom: clamp(6px, 1.2vh, 10px); margin-bottom: clamp(6px, 1.2dvh, 10px); }
.mobile-menu__info p + p { margin-top: clamp(8px, 1.6vh, 14px); margin-top: clamp(8px, 1.6dvh, 14px); }
.mobile-menu__info a { text-decoration: none; }
.mobile-menu__info p:last-child a, .mobile-menu__info p:last-child span { color: #000; }
.mobile-menu__info a[href^="tel"] { color: var(--white); }
.mobile-menu__logo {
  display: block; flex: none; margin-top: auto;
  width: min(100%, 353px, 40vh); width: min(100%, 353px, 40dvh);
  padding-top: clamp(14px, 3.5vh, 40px); padding-top: clamp(14px, 3.5dvh, 40px);
}
.mobile-menu__logo img { display: block; width: 100%; height: auto; }
.mobile-menu__logo:focus-visible { outline-color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; min-height: 100vh; min-height: 100svh;
  overflow: hidden; background: #111;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); pointer-events: none; }
.hero__inner {
  position: relative; z-index: 1; width: 100%;
  align-content: end; padding: 160px 0 44px;
}
.hero__title {
  font-size: var(--fs-title); font-weight: 600; line-height: 1.12; letter-spacing: -0.04em; text-transform: uppercase;
}
.hero__sub {
  max-width: 760px; margin-top: 26px;
  font-size: var(--fs-sub); font-weight: 600; line-height: var(--lh); text-transform: uppercase;
}
.hero__sub u, .hero__statement a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.hero__inner .btn-row { margin-top: 33px; }

.hero--home .hero__inner { grid-template-rows: 1fr auto auto; padding-top: clamp(120px, 18vh, 200px); padding-bottom: 45px; }
.hero__statement {
  align-self: center; max-width: 620px;
  font-size: var(--fs-sub); font-weight: 600; line-height: var(--lh); text-transform: uppercase;
}
.hero__statement a { text-decoration-color: currentColor; }
.hero__statement a:hover { color: #ffd9df; }

/* 404: the photo's "track exit 404" sign is bottom-left, so the text sits bottom-right over the dark dirt.
   The vignette and the fade into the page are drawn here rather than baked into the photo. */
.hero--404 { background: var(--bg); }
.hero--404::after { content: none; }
.hero--404 .hero__frame { position: absolute; inset: 0; }
.hero--404 .hero__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(26, 26, 26, 0.45) 0, transparent 18%, transparent 80%, var(--bg) 100%),
    radial-gradient(ellipse 90% 100% at 50% 45%, transparent 60%, rgba(26, 26, 26, 0.75) 100%);
}
.hero--404 .hero__panel { justify-self: end; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
/* smaller than other page titles so "Track limits exceeded." stays on one line below the kart */
.hero--404 .hero__title { font-size: clamp(40px, 22px + 2.2vw, 64px); white-space: nowrap; }
/* portrait tablets and phones turned sideways: a full-height crop would lose the sign, so frame the photo above the text */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait), (min-width: 768px) and (max-height: 560px) {
  .hero--404 { display: block; min-height: 0; }
  .hero--404 .hero__frame { position: relative; aspect-ratio: 4 / 3; }
  .hero--404 .hero__media { object-position: 32% 50%; }
  .hero--404 .hero__frame::after {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.45) 0, transparent 22%, transparent 85%, var(--bg) 100%);
  }
  .hero--404 .hero__inner { padding: 24px 0 64px; }
  .hero--404 .hero__panel { justify-self: start; }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 40px; }
.stats li { display: flex; flex-direction: column; border-bottom: 1px solid var(--white); padding-bottom: 11px; }
.stats__num { font-size: 80px; font-weight: 600; line-height: 1.12; letter-spacing: -0.04em; }
.stats__label { font-size: 12px; font-weight: 600; line-height: 15px; text-transform: uppercase; margin-top: 1px; }

/* ---------- Sections ---------- */
.section { padding: 75px 0 100px; }
.section__cta { margin-top: 40px; }

.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; margin-top: 66px; }
.info-cols--two { grid-template-columns: repeat(2, 1fr); }
.info-cols .label { margin-bottom: 20px; }
.info-cols p + p { margin-top: 19px; }
.info-cols a[href^="tel"] { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.info-cols a[href^="tel"]:hover { color: var(--red); }

/* ---------- Track map ---------- */
.track-map { position: relative; }
.track-map__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; outline-offset: -3px; cursor: default; }
.track-map__canvas { position: absolute; inset: 0; }
.track-map__base, .track-map__labels, .track-map__corners {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.track-map__labels, .track-map__corners { transition: opacity .35s ease; }
.track-map__corners { opacity: 0; }
@media (hover: hover) {
  .track-map__art:hover .track-map__labels { opacity: 0; }
  .track-map__art:hover .track-map__corners { opacity: 1; }
}
.track-map__art:focus-visible .track-map__labels, .track-map__art.is-corners .track-map__labels { opacity: 0; }
.track-map__art:focus-visible .track-map__corners, .track-map__art.is-corners .track-map__corners { opacity: 1; }
.track-map__north {
  position: absolute; left: 80.57%; top: 72.04%; width: 1.875%; min-width: 17px;
  display: flex; flex-direction: column; align-items: center; gap: 12%;
  font-size: clamp(6px, 0.63vw, 12px); font-weight: 600; text-transform: uppercase; line-height: 1;
}
.track-map__north svg { width: 100%; height: auto; }
.track-map__north span { font-size: inherit; }
.track-map__cta { margin-top: 24px; }
.track-map__facts { position: absolute; top: 4.7%; left: max(var(--edge), (100% - var(--col)) / 2); width: 290px; }

.spec-table > div {
  display: grid; grid-template-columns: 197px 1fr;
  padding: 16px 0 14px; border-bottom: 1px solid var(--white);
  font-size: 12px; font-weight: 600; line-height: 15px; text-transform: uppercase;
}
.spec-table > div:first-child { padding-top: 0; }
.spec-table dd { margin: 0; white-space: nowrap; }
/* Count-up numbers: hidden until they start counting from zero (shown anyway if JS never runs) */
.count { display: inline-block; }
.js [data-count]:not(.is-counted) { visibility: hidden; }
.no-reveal [data-count] { visibility: visible; }

/* ---------- Karts ---------- */
.section--karts { padding: 57px 0 133px; }
.section--karts .kicker { margin-bottom: 9px; }
.kart {
  grid-column: content-start / full-end;
  display: grid; grid-template-columns: 448px 1fr; column-gap: 27px; padding-right: 20px;
  grid-template-areas: "name media" "copy media" "specs media" "cta media";
  grid-template-rows: auto auto auto 1fr;
}
.kart + .kart { margin-top: 52px; padding-top: 37px; border-top: 1px solid var(--rule); }
.kart__name { grid-area: name; }
.kart__copy { grid-area: copy; margin-top: 25px; font-size: var(--fs-kart); }
.kart__copy p + p { margin-top: 1.21em; }
.kart__media { grid-area: media; margin-top: 18px; }
.kart__media img, .kart__media .img-missing { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kart__specs { grid-area: specs; margin-top: 80px; width: 290px; }
.kart__cta { grid-area: cta; margin-top: 30px; }

/* ---------- Banners (full-bleed photo with copy) ---------- */
.banner { position: relative; display: flex; min-height: min(62.5vw, 1200px); overflow: hidden; background: #111; }
.banner__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:first-child .card__img { object-position: 50% 50%; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); pointer-events: none; }
/* Parallax layer: taller than the banner by --parallax at top and bottom, moved by JS as the banner scrolls past */
.banner__parallax { position: absolute; inset: 0; }
.banner.is-parallax .banner__parallax {
  top: calc(var(--parallax, .12) * -100%); bottom: calc(var(--parallax, .12) * -100%);
  will-change: transform;
}
.banner__inner { position: relative; z-index: 1; width: 100%; align-content: center; padding: 120px 0 80px; }
.banner__inner > * { max-width: 620px; }
.banner .kicker { margin-bottom: 14px; }
.banner__heading { font-size: var(--fs-sub); font-weight: 600; line-height: var(--lh); text-transform: uppercase; }
.banner__heading + p { margin-top: 24px; }
.banner--bottom .banner__inner { align-content: end; padding-bottom: 88px; }
.banner--photo { min-height: 0; aspect-ratio: 1920 / 1357; }

/* ---------- Home: CTA, schedule, cards ---------- */
.section--cta { padding-bottom: 0; }
.track-schedule { margin-top: 129px; }
.track-schedule .label { margin-bottom: 19px; }
.schedule__table { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.schedule__table td { height: 45px; padding: 0 11px; vertical-align: middle; width: 50.9%; }
.schedule__table td + td { width: auto; padding-left: 0; }
.schedule__table tr:nth-child(odd) { background: var(--panel); }
.schedule__table tr.is-closed { color: var(--red); }
.schedule__table--reasons td:nth-child(2) { width: 17%; }
.schedule__table--reasons td:nth-child(3) { width: auto; }
.schedule__table a { color: var(--red); text-decoration: none; }
.schedule__table a:hover { text-decoration: underline; }
.schedule__more { margin-top: 21px; text-align: center; }
.schedule__empty { color: var(--soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 135px; }
.card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 15px 15px 21px; border-radius: 10px; background: var(--card); text-decoration: none;
  transition: background-color .2s ease;
}
.card a:hover { background: #343232; }
.card__img { width: 100%; aspect-ratio: 266 / 314; object-fit: cover; border-radius: 5px; }
.card__title {
  margin-top: 19px; padding-left: 3px; white-space: nowrap;
  font-size: clamp(12.6px, 0.6vw + 10.5px, 22px); font-weight: 900; line-height: var(--lh); text-transform: uppercase;
}
.card a:hover .card__img { filter: brightness(1.06); }

/* ---------- Footer ---------- */
.site-footer { padding: 62px 0 53px; }
.page-home .site-footer { padding-top: 41px; }
.site-footer .info-cols { margin-top: 0; }
.site-footer__bottom {
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; align-items: baseline; margin-top: 130px;
}
.site-footer__copy { color: var(--rule); }
.site-footer__social { grid-row: 1; grid-column: 2 / span 2; display: flex; gap: 27px; }
.site-footer__social a { text-decoration: none; }
.site-footer__social a:hover { color: var(--red); }
/* shares row 1 with the social list, which spans columns 2–3 but only fills the start of them */
.site-footer__credit { grid-row: 1; grid-column: 3; justify-self: end; color: var(--rule); white-space: nowrap; }
.site-footer__credit a { text-underline-offset: 2px; }
.site-footer__credit a:hover { color: var(--red); }

/* ---------- Panels (price cards, menus, calendar) ---------- */
.panel { border-radius: 10px; background: var(--panel); padding: 20px 17px 41px; }
.panel + .kicker, .panel + .panel { margin-top: 33px; }
.panel__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 11px; }
.panel__images img, .panel__images .img-missing { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.panel__images--wide img, .panel__images--wide .img-missing { aspect-ratio: 899 / 347; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 46px; }
.panel__title { font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh); text-transform: uppercase; }
.panel__note { margin-top: 15px; color: #a1a1a1; }
.panel__copy { font-size: var(--fs-lead); font-weight: 600; line-height: var(--lh); }
.panel__copy p + p { margin-top: 1.21em; }
.panel__copy a { color: var(--red); text-decoration: none; }
.panel__copy a:hover { text-decoration: underline; }
.panel__cta { margin-top: 33px; }

.price-table { margin-top: 45px; border-top: 1px solid var(--white); font-size: var(--fs-lead); font-weight: 600; }
.price-table tr { border-bottom: 1px solid var(--white); }
.price-table th, .price-table td { height: 62px; padding: 0; text-align: left; font-weight: 600; vertical-align: middle; }
.price-table th { width: 33.6%; }
.price-table td:nth-child(2) { width: 35.4%; }

/* ---------- Page sections with ruled headings ---------- */
.ruled { border-top: 1px solid var(--white); padding-top: 12px; }
.ruled .h2 { margin-bottom: 21px; }
.dash-list { line-height: 1.5; }
.dash-list li::before { content: "— "; }
.stack-lg > * + * { margin-top: 60px; }

/* ---------- Rental: kart tabs ---------- */
.kart-tabs { grid-column: content-start / full-end; padding-right: 20px; margin-top: 85px; }
.kart-tabs__bar { display: grid; grid-template-columns: 448px 1fr; column-gap: 27px; align-items: start; }
.kart-tabs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kart-tabs__tab {
  padding: 0 0 15px; border: 0; border-bottom: 1px solid var(--rule-dim); background: none; cursor: pointer;
  text-align: left; font-size: clamp(15px, 4.7px + 0.9vw, 22px); font-weight: 600; line-height: var(--lh); text-transform: uppercase; color: var(--soft); white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.kart-tabs__tab:hover { color: var(--white); }
.kart-tabs__tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--white); }
.kart-tabs .kart { grid-column: auto; padding-right: 0; margin-top: 45px; }
.js .kart-tabs__panel:not(.is-active) { display: none; }
html:not(.js) .kart-tabs__list { display: none; }
html:not(.js) .kart-tabs__panel + .kart-tabs__panel .kart { border-top: 1px solid var(--rule); padding-top: 37px; margin-top: 52px; }

/* ---------- Rental: race packages accordion ---------- */
.packages__item { border-top: 1px solid var(--white); }
.packages__item:last-child { border-bottom: 1px solid var(--white); }
.packages__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 0 22px; cursor: pointer; list-style: none;
}
.packages__item summary::-webkit-details-marker { display: none; }
.packages__toggle { min-width: 80px; }
.packages__close { display: none; }
.packages__item[open]:not(.is-closing) .packages__view { display: none; }
.packages__item[open]:not(.is-closing) .packages__close { display: inline; }
.packages__body { overflow: hidden; }
.packages__inner { padding: 0 0 69px 3px; }
.packages__body .lead { max-width: 760px; }
.packages__body .dash-list { margin-top: 42px; }
.packages__price { margin-top: 42px; font-size: var(--fs-lead); }
.packages__body .btn { margin-top: 26px; }

/* ---------- Flags ---------- */
.flags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 57px 33px; margin-top: 10px; }
.flags img, .flags .img-missing { width: 313px; max-width: 100%; aspect-ratio: 313 / 209; object-fit: cover; }
.flags figcaption { margin-top: 20px; }

/* ---------- Race karts ---------- */
.class-block { border-top: 1px solid var(--white); padding: 12px 0 70px; }
.class-block .display { margin-bottom: 8px; }
.class-block__heats { font-size: var(--fs-lead); font-weight: 600; }
.class-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 11px; margin-top: 39px; line-height: 1.5; }
.class-cols p + p { margin-top: 1.5em; }
.class-cols p + p { margin-top: 1.21em; }
.class-block .btn { margin-top: 23px; }
.class-foot { border-top: 1px solid var(--white); padding-top: 45px; }
.schedule--panel { margin-top: 45px; }
.schedule--panel .schedule__table { border: 0; }
.schedule--panel .schedule__table td { width: 52%; }
.schedule--panel .schedule__table td + td { width: auto; }

/* ---------- Location ---------- */
.region-map { position: relative; overflow: hidden; background: #636363; }
.region-map__img { width: 100%; aspect-ratio: 1920 / 1080; }
.region-map__table { position: absolute; left: 9.2%; top: 69.5%; width: 453px; }
.region-map__table .spec-table > div { grid-template-columns: 159px 158px 1fr; }
.region-map--zoom { aspect-ratio: 16 / 9; }
.region-map--zoom .region-map__img { position: absolute; width: 202.24%; max-width: none; left: -71.1%; top: -94.26%; }
.places { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; margin-top: 45px; }
.places article { padding: 0 0 36px; }
.places article:nth-child(n + 4) { border-top: 1px solid var(--white); padding-top: 36px; }
.places h3 { font-size: 22px; font-weight: 600; line-height: var(--lh); margin-bottom: 18px; }
.places p + p { margin-top: 1.21em; }

/* ---------- Cafe ---------- */
.menu-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--white); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list { font-size: var(--fs-lead); font-weight: 600; }
.menu-list small { display: block; max-width: 596px; font-size: inherit; font-weight: inherit; }
.menu-list strong { font-weight: 600; text-transform: uppercase; }
.panel--menu { padding: 15px 17px 18px; }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 49.4% 1fr; padding-top: 178px; }
.booking__media { align-self: start; margin-top: 9px; }
.booking__media img { width: 100%; aspect-ratio: 948 / 893; object-fit: cover; }
.booking__main { padding-left: 9.35%; padding-right: 20px; max-width: calc(612px + 9.35vw + 20px); }
.booking__main > * { max-width: 614px; }
.booking__title { font-size: var(--fs-title); font-weight: 600; line-height: 1; text-transform: uppercase; }
.booking__intro { margin-top: 70px; font-size: var(--fs-lead); font-weight: 600; }
.booking__intro .text-red { color: var(--red); }
.booking__intro--sub { margin-top: 1.21em; }
.booking__cta { margin-top: 40px; }
.booking__online { margin-top: 24px; color: var(--soft); }
.booking__online a { color: var(--red); font-weight: 600; text-decoration: none; }
.booking__online a:hover { text-decoration: underline; text-underline-offset: 3px; }
.booking__phones { margin-top: 1.21em; font-size: var(--fs-lead); }
.booking__phones a { text-decoration: none; font-weight: 600; }
.booking__phones a:hover { color: var(--red); }


.site-footer--compact .container { width: auto; margin: 0; padding: 0 20px 0 calc(49.4% + 9.35%); }
.site-footer--compact { padding-top: 119px; padding-bottom: 33px; }
.site-footer--compact .info-cols--two { max-width: 640px; }
.site-footer--compact .site-footer__bottom { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-top: 56px; }
.site-footer--compact .site-footer__social { grid-column: 2; }
.site-footer--compact .site-footer__credit { grid-row: 2; grid-column: 2; justify-self: start; margin-top: 14px; }

/* ---------- Page layouts ---------- */
.section--rental { padding-bottom: 147px; }
.prices-kicker { margin-top: 114px; }
.prices-kicker + .panel { margin-top: 28px; }
.price-card + .price-card { margin-top: 33px; }

.section--packages { padding: 121px 0 139px; }
.packages .kicker { margin-bottom: 22px; }
.packages + .ruled { margin-top: 200px; }
.ruled + .ruled { margin-top: 87px; }
.ruled .h2 { margin-bottom: 27px; }
.ruled__list { margin-top: 32px; }
.rules p + p { margin-top: 1.21em; }
.section--packages .ruled:last-child { border-bottom: 1px solid var(--white); padding-bottom: 33px; }
.flags { grid-template-columns: repeat(2, minmax(0, 475px)); column-gap: 0; }

.section--race { padding-bottom: 70px; }
.race-kicker { margin-top: 99px; }
.race-kicker + .panel { margin-top: 28px; }
.race-kicker--sm { margin-top: 77px; }
.race-kicker#classes { margin-top: 76px; margin-bottom: 18px; }
.panel__images--practice { margin-top: 43px; }
.panel__images--practice img, .panel__images--practice .img-missing { aspect-ratio: 889 / 461; }
.panel__images--practice + .price-table { margin-top: 33px; }
.panel .schedule--plain, .panel .schedule { margin-top: 41px; }
.panel .schedule__table { border: 0; }
.panel .schedule__table td { width: 52.6%; }
.panel .schedule__table td + td { width: auto; }
.class-block .class-cols--first { margin-top: 26px; }
.class-foot { margin-top: 0; padding-top: 45px; }

.section--location { padding-bottom: 0; }
.region { position: relative; margin-top: 75px; }
.section--places { padding: 121px 0 100px; }

.section--cafe { padding-bottom: 168px; }
.menu .kicker { margin-top: 54px; }
.menu .kicker:first-child { margin-top: 104px; }
.menu .kicker + .panel { margin-top: 28px; }
.menu-list--pizza li { align-items: flex-start; padding: 9px 0 10px; }
.menu-list--pizza small { margin-top: 2px; }

.booking__phones .regular { font-weight: 400; }
.booking__phones strong { font-weight: 600; }


/* ---------- Booking lightbox (RaceFacer) ---------- */
.booking-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.booking-modal[hidden] { display: none; }
.booking-modal__backdrop {
  position: absolute; inset: 0; background: rgba(10, 10, 10, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.booking-modal__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(1180px, 100%); height: min(860px, 100%);
  border-radius: 10px; overflow: hidden; background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.booking-modal.is-open .booking-modal__backdrop { opacity: 1; }
.booking-modal.is-open .booking-modal__panel { opacity: 1; transform: none; }
.booking-modal__bar { display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 20px; border-bottom: 1px solid #2e2e2e; }
.booking-modal__title { margin-right: auto; font-size: 16px; font-weight: 900; text-transform: uppercase; }
.booking-modal__newtab { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.booking-modal__newtab:hover { color: var(--white); }
.booking-modal__close {
  position: relative; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #2a2a2a; cursor: pointer; transition: background-color .2s ease, transform .3s ease;
}
.booking-modal__close:hover { background: var(--red); transform: rotate(90deg); }
.booking-modal__close::before, .booking-modal__close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--white);
}
.booking-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.booking-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.booking-modal__frame { position: relative; flex: 1; background: #fff; }
.booking-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s ease; }
.booking-modal__frame.is-loaded iframe { opacity: 1; }
.booking-modal__loader { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); transition: opacity .3s ease; }
.booking-modal__frame.is-loaded .booking-modal__loader { opacity: 0; pointer-events: none; }
.booking-modal__loader span {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid #333; border-top-color: var(--red); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* The race entry form uses the same lightbox, narrower (the form is a single column) */
.booking-modal--form .booking-modal__panel { width: min(760px, 100%); }

/* ---------- Ask us a question panel ---------- */
.ask-panel {
  position: fixed; z-index: 70; top: calc(var(--header-h) - 12px); right: 20px;
  width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - var(--header-h) - 16px);
  display: flex; flex-direction: column;
  background: #1f1f1f; border: 1px solid #333; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), top .25s ease;
}
.ask-panel[hidden] { display: none; }
.ask-panel.is-open { opacity: 1; transform: none; }
.site-header.is-scrolled ~ .ask-panel { top: 66px; max-height: calc(100vh - 82px); }
.ask-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid #2e2e2e; }
.ask-panel__title { font-size: 16px; font-weight: 900; text-transform: uppercase; }
.ask-panel__close {
  position: relative; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #2c2c2c; cursor: pointer; transition: background-color .2s ease, transform .3s ease;
}
.ask-panel__close:hover { background: var(--red); transform: rotate(90deg); }
.ask-panel__close::before, .ask-panel__close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; background: var(--white);
}
.ask-panel__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ask-panel__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ask-panel__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 18px; }
.ask-panel__intro { font-size: 14px; color: var(--soft); }
.ask-panel__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-panel__preset {
  padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; background: transparent;
  font-size: 13px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.ask-panel__preset:hover, .ask-panel__preset:focus-visible { border-color: var(--red); background: rgba(237, 36, 65, .14); }
.ask-panel__clear {
  display: block; margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.ask-panel__clear:hover, .ask-panel__clear:focus-visible { color: var(--white); }
.ask-panel__clear[hidden] { display: none; }
.ask-panel__log { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ask-panel__log:empty { display: none; }
.ask-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.42; animation: ask-in .3s ease both; }
.ask-msg--q { align-self: flex-end; background: var(--red); border-bottom-right-radius: 4px; }
.ask-msg--a { align-self: flex-start; background: #2c2c2c; border-bottom-left-radius: 4px; }
.ask-msg--a a { color: #ff8597; text-decoration: underline; text-underline-offset: 2px; }
.ask-msg--a a:hover { color: var(--white); }
.ask-msg--typing { display: flex; gap: 5px; padding: 15px 16px; }
.ask-msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; animation: ask-dot 1s infinite ease-in-out; }
.ask-msg--typing span:nth-child(2) { animation-delay: .15s; }
.ask-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes ask-in { from { opacity: 0; transform: translateY(6px); } }
.ask-panel__form { display: flex; gap: 8px; padding: 12px 12px 12px 20px; border-top: 1px solid #2e2e2e; }
.ask-panel__form input {
  flex: 1; min-width: 0; height: 39px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px;
  background: #151515; font-size: 14px; outline: 0; transition: border-color .2s ease;
}
.ask-panel__form input:focus { border-color: var(--white); }
.ask-panel__form input::placeholder { color: #8a8a8a; }
.ask-panel__note { padding: 0 20px 14px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.ask-panel__note a { color: var(--soft); }

/* ---------- Image reveal: images fade up as they load into view ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px) scale(.985);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal="fade"] { transform: scale(1.06); transition-duration: 1.2s, 1.6s; }
.js [data-reveal="plain"] { transform: none; }
.js [data-reveal].is-revealed, .no-reveal [data-reveal] { opacity: 1; transform: none; }
.kart__media, .card a, .panel__images, .flags figure, .booking__media { background-clip: padding-box; }

/* ---------- Home: Our Karts as stacking cards ---------- */
.karts-stack .kart {
  position: sticky; top: var(--stick-top, 96px);
  grid-column: full; grid-template-columns: 448px 1fr;
  padding-left: max(var(--edge), (100% - var(--col)) / 2);
  padding-bottom: 52px; margin-top: 0;
  background: var(--bg);
  border-radius: 14px 14px 0 0;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p, 0) * .05));
  will-change: transform;
}
.karts-stack .kart + .kart { margin-top: 0; padding-top: 37px; border-top: 1px solid var(--rule); box-shadow: 0 -24px 60px rgba(0, 0, 0, .45); }
.karts-stack .kart::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: #000; opacity: calc(var(--p, 0) * .55);
}

/* ---------- Missing image placeholder ---------- */
.img-missing {
  display: grid; place-items: center; background: repeating-linear-gradient(45deg, #242424 0 12px, #2b2b2b 12px 24px);
  color: var(--muted); font-size: 12px; text-align: center; padding: 10px;
}

/* =================================================================
   Tablet and down
   ================================================================= */
@media (max-width: 1279px) {
  .site-header__logo img { width: 240px; }
  .booking__main { padding-left: 5%; }
  .site-footer--compact .container { padding-left: calc(49.4% + 5%); }
}

@media (max-width: 1099px) {
  .kart, .kart-tabs .kart { grid-template-columns: 1fr; grid-template-areas: "name" "copy" "media" "specs" "cta"; padding-right: 0; grid-column: content; }
  .kart-tabs { grid-column: content; padding-right: 0; }
  .karts-stack .kart { grid-template-columns: 1fr; padding-right: max(var(--edge), (100% - var(--col)) / 2); }
  .kart-tabs__bar { grid-template-columns: 1fr; row-gap: 20px; }
  .kart__copy { max-width: 640px; }
  .kart__media { margin-top: 34px; }
  .kart__specs { width: 100%; margin-top: 32px; }
  .kart__specs > div { grid-template-columns: 188px 1fr; }
}

@media (max-width: 1023px) {
  :root { --header-h: 82px; }
  .site-header { padding: 21px 20px 0; }
  .site-header.is-scrolled { height: 64px; padding-top: 12px; }
  .site-header__logo img, .site-header.is-scrolled .site-header__logo img { width: 171px; }
  .site-nav, .site-header__book, .site-header__ask, .ask-panel { display: none !important; }
  .menu-toggle { display: block; }

  .track-map__facts { position: static; width: auto; max-width: var(--col); margin-inline: auto; padding: 40px var(--edge) 0; }
  .track-map__facts .spec-table > div { grid-template-columns: 188px 1fr; }
  .booking { grid-template-columns: 1fr; padding-top: var(--header-h); }
  .booking__media { margin: 0; order: -1; }
  .booking__media img { aspect-ratio: 4 / 3; }
  .booking__main { padding: 40px var(--edge) 0; max-width: none; width: min(var(--col), 100%); margin-inline: auto; }
  .booking__main > * { max-width: none; }
  .site-footer--compact .container { padding: 0; width: min(var(--col), 100% - 2 * var(--edge)); margin-inline: auto; }
}

/* =================================================================
   Mobile (393px Figma frames)
   ================================================================= */
@media (max-width: 767px) {
  .mobile-only { display: revert !important; }
  .desktop-only { display: none !important; }

  .hero__inner { padding: 120px 0 32px; }
  .hero--home .hero__inner { grid-template-rows: 1fr auto auto; padding-top: 120px; padding-bottom: 32px; }
  .hero__statement { align-self: end; }
  .hero__book { margin-top: 10px; }
  /* 404 on phones: the photo becomes a frame above the text, cropped to keep the kart and the sign */
  .hero--404 { display: block; min-height: 0; }
  .hero--404 .hero__frame { position: relative; aspect-ratio: 1; }
  .hero--404 .hero__media { object-position: 39% 50%; }
  .hero--404 .hero__frame::after {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.45) 0, transparent 22%, transparent 88%, var(--bg) 100%);
  }
  .hero--404 .hero__inner { padding: 20px 0 56px; }
  .hero--404 .hero__panel { justify-self: start; }
  .hero--404 .hero__title { font-size: var(--fs-title); white-space: normal; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 21px; margin-top: 40px; }
  .stats__num { font-size: 80px; line-height: 1.1; }
  .stats__label { margin-top: 6px; }
  .stats li { padding-bottom: 10px; }

  .section { padding: 29px 0 70px; }
  .section__cta { margin-top: 13px; }
  .info-cols { grid-template-columns: 1fr; margin-top: 82px; row-gap: 57px; }
  .info-cols .label { margin-bottom: 10px; }
  .info-cols--intro .info-cols__col:nth-child(2) { display: none; }

  .track-map__art { aspect-ratio: 393 / 277; }
  .track-map__canvas { left: -9.16%; right: auto; width: 125.2%; aspect-ratio: 16 / 9; bottom: auto; }
  .track-map__north { left: 78%; }
  .track-map__facts { position: static; width: auto; padding: 40px var(--edge) 0; }
  .track-map__facts .spec-table > div { grid-template-columns: 188px 1fr; padding: 11px 0 10px; font-size: 10px; line-height: 13px; }
  .track-map__facts .spec-table > div:first-child { padding-top: 0; }

  .section--karts { padding: 52px 0 80px; }
  .kart + .kart { border-top: 0; margin-top: 80px; padding-top: 0; }
  .karts-stack .kart + .kart { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
  .karts-stack .kart { padding-bottom: 40px; border-radius: 12px 12px 0 0; }
  .booking-modal { padding: 0; }
  .booking-modal__panel { width: 100%; height: 100%; border-radius: 0; }
  .booking-modal__bar { padding-left: 16px; gap: 14px; }
  .kart__copy { margin-top: 16px; }
  .kart__media { margin-top: 37px; }
  .kart__specs > div { padding: 16px 0 14px; }
  .kart__cta { margin-top: 32px; }
  .kart__cta .btn { font-size: 13px; padding-inline: 20px; }

  .banner { min-height: min(860px, 100svh); }
  .banner__inner { align-content: end; padding: 120px 0 38px; }
  .banner__heading { font-size: 26px; }
  .banner__heading + p { margin-top: 20px; }
  .banner .kicker { font-size: 18px; margin-bottom: 8px; }
  .banner--photo { min-height: 0; aspect-ratio: 4 / 3; }

  .section--cta { padding-bottom: 0; }
  .track-schedule { margin-top: 74px; }
  .track-schedule .label { margin-bottom: 12px; }
  .schedule__table { border: 0; font-size: 13px; }
  .schedule__table tr:nth-child(odd) { background: none; }
  .schedule__table tr { border-bottom: 1px solid var(--chip); }
  .schedule__table tr:last-child { border-bottom: 0; }
  .schedule__table td { height: auto; padding: 12px 10px 12px 0; width: 49%; vertical-align: top; }
  /* Reason column: stacks under the status in the right-hand column */
  .schedule__table--reasons tbody tr { display: grid; grid-template-columns: 49% 1fr; }
  .schedule__table--reasons tbody tr[hidden] { display: none; }
  .schedule__table--reasons tbody td { display: block; width: auto; }
  .schedule__table--reasons tbody td:nth-child(1) { grid-row: 1 / span 2; }
  .schedule__table--reasons tbody td:nth-child(3) { grid-column: 2; padding-top: 0; margin-top: -8px; font-size: 12px; opacity: .85; }
  .schedule__table--reasons tbody td:nth-child(3):empty { display: none; }

  .cards { grid-template-columns: 1fr 1fr; gap: 13px 13px; margin-top: 40px; }
  .card:first-child { grid-column: 1 / -1; }
  .card a { padding: 8px 8px 12px; }
  .card:first-child .card__img { aspect-ratio: 336 / 181; }
  .card__img { aspect-ratio: 153 / 180; }
  .card__title { margin-top: 11px; padding-left: 4px; font-size: 12.6px; letter-spacing: -0.01em; }

  .site-footer { padding: 80px 0 32px; }
  .page-home .site-footer { padding-top: 61px; }
  .site-footer .info-cols__col { max-width: 300px; }
  .info-cols a[href^="tel"] { text-decoration: none; }
  .site-footer__copy { white-space: nowrap; }
  .site-footer .info-cols { margin-top: 0; }
  .site-footer__logo { display: block !important; width: 100%; margin-top: 90px; }
  .site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 38px; font-size: 13px; }
  .site-footer__social { margin-left: auto; } /* stays right if it has to wrap on narrow phones */
  .site-footer__credit, .site-footer--compact .site-footer__credit { flex-basis: 100%; text-align: right; margin-top: 0; }
  .site-footer__social { gap: 30px; }
  .site-footer--compact .site-footer__bottom { display: flex; }

  .hero__sub { margin-top: 16px; }
  .hero__inner .btn-row { margin-top: 24px; gap: 10px; }

  .panel { padding: 12px 12px 28px; }
  .panel__images { grid-template-columns: 1fr; }
  .panel__head { flex-direction: column; gap: 14px; margin-top: 26px; }
  .price-table { margin-top: 26px; font-size: 16px; }
  .price-table th, .price-table td { height: 54px; }
  .price-table td:last-child { text-align: right; }
  .price-table td:last-child .text-muted { display: block; font-size: 12px; }

  .kart-tabs__tab { font-size: 13px; padding-bottom: 10px; white-space: normal; }
  .kart-tabs__list { gap: 10px; }

  .packages__item summary { padding: 10px 0 16px; }
  .packages__inner { padding-bottom: 44px; }
  .packages__body .dash-list, .packages__price { margin-top: 26px; }

  .flags { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .flags figcaption { font-size: 13px; margin-top: 10px; }

  .class-cols { grid-template-columns: 1fr; margin-top: 24px; }
  .class-block { padding-bottom: 48px; }

  .region-map--wide { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .region-map--wide::-webkit-scrollbar { display: none; }
  .region-map--wide .region-map__img { width: 220%; max-width: none; }
  .region-map__table { position: static; width: auto; padding: 32px var(--edge) 0; background: var(--bg); }
  .region-map__table .spec-table > div { grid-template-columns: 1.3fr 0.8fr 1fr; }
  .region-map--wide { background: var(--bg); }
  .places { grid-template-columns: 1fr; margin-top: 28px; }
  .places article, .places article:nth-child(n + 4) { border-top: 1px solid var(--white); padding: 22px 0 28px; }
  .places article:first-child { border-top: 0; padding-top: 0; }

  .menu-list { font-size: 16px; }
  .menu-list li { padding: 11px 0; }

  .booking__intro { margin-top: 30px; }
  .booking__cta { margin-top: 28px; }
}

@media (max-width: 767px) {
  .section--rental { padding-bottom: 80px; }
  .prices-kicker { margin-top: 70px; }
  .section--packages { padding: 70px 0 80px; }
  .packages + .ruled { margin-top: 90px; }
  .ruled + .ruled { margin-top: 60px; }
  .flags { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .race-kicker, .race-kicker--sm, .race-kicker#classes { margin-top: 60px; }
  .region { margin-top: 40px; }
  .section--places { padding: 60px 0 60px; }
  .section--cafe { padding-bottom: 80px; }
  .menu .kicker:first-child { margin-top: 70px; }
  .menu .kicker { margin-top: 40px; }
}

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