@font-face {
  font-family: "Bebas Neue Pro";
  src: url("assets/fonts/bebas-neue-pro-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Local";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+20BD, U+2116;
}

@font-face {
  font-family: "Manrope Local";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Primitive color tokens */
  --white: #ffffff;
  --ice: #f7fcff;
  --sky: #d9f3ff;
  --blue: #76cff3;
  --blue-strong: #31afe3;
  --ink: #12384f;
  --navy: #071d2c;
  --muted: #627d8d;
  --line: rgba(18, 56, 79, 0.16);

  /* Semantic color tokens */
  --color-page: var(--ice);
  --color-surface: var(--white);
  --color-surface-tint: var(--sky);
  --color-text: var(--ink);
  --color-text-strong: var(--navy);
  --color-text-muted: var(--muted);
  --color-accent: var(--blue);
  --color-accent-strong: var(--blue-strong);
  --color-divider: var(--line);

  /* Typography */
  --display: "Bebas Neue Pro", "Arial Narrow", sans-serif;
  --body: "Manrope Local", Arial, sans-serif;

  /* Layout */
  --page-max: 82.5rem;
  --gutter: clamp(1rem, 4.2vw, 3.75rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);
  --radius: clamp(0.85rem, 1.5vw, 1.25rem);
  --control-min-h: 44px;
  --topbar-h: 76px;
  --ticketbar-h: 68px;
  --header-stack-h: calc(var(--topbar-h) + var(--ticketbar-h));

  /* Depth, layers and motion */
  --shadow-float: 0 16px 38px rgba(7, 29, 44, 0.14);
  --layer-background: 0;
  --layer-content: 1;
  --layer-ticketbar: 95;
  --layer-topbar: 100;
  --layer-skip-link: 200;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  color: var(--color-text-strong);
  background: var(--color-accent);
}

.section-shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--page-max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: var(--layer-skip-link);
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font: 800 0.78rem/1 var(--body);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-out),
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.button-small {
  min-height: var(--control-min-h);
  padding: 0.65rem 1rem;
  font-size: 0.68rem;
}

.button-primary {
  color: var(--white);
  background-color: var(--color-accent-strong);
  box-shadow: 0 10px 22px rgba(49, 175, 227, 0.24);
}

.button-outline {
  color: var(--color-text-strong);
  border-color: rgba(18, 56, 79, 0.16);
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(7, 29, 44, 0.07);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  background-color: #168fc4;
  box-shadow: 0 14px 28px rgba(22, 143, 196, 0.28);
}

.button-outline:hover {
  border-color: rgba(49, 175, 227, 0.38);
  background-color: var(--color-surface-tint);
}

.button[aria-disabled="true"] {
  color: rgba(7, 29, 44, 0.58);
  border-color: transparent;
  background-color: #dce7ec;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.button:focus-visible,
.topbar a:focus-visible,
.faq a:focus-visible,
.footer a:focus-visible,
summary:focus-visible,
.ride-slider:focus-visible,
.ride-slider button:focus-visible {
  outline: 3px solid var(--color-accent-strong);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-stack-h) + 1rem);
}

@media (max-width: 780px) {
  :root {
    --topbar-h: 64px;
    --ticketbar-h: 64px;
  }

  .button-small {
    min-height: var(--control-min-h);
    padding: 0.6rem 0.85rem;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
