@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/Oswald-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/NotoSans-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/NotoSans-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  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 {
  --bg: #090907;
  --bg-soft: #10100d;
  --panel: #151510;
  --panel-light: #1c1b15;
  --line: rgba(189, 133, 61, 0.34);
  --line-bright: rgba(226, 169, 87, 0.72);
  --gold: #d99a42;
  --gold-light: #f0c47c;
  --cream: #eee2cc;
  --muted: #b5ac9f;
  --green: #97b54a;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Noto Sans", Arial, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 82% 12%, rgba(131, 83, 27, 0.12), transparent 26rem),
    var(--bg);
  font-family: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  color: #0a0906;
  background: var(--gold-light);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--max));
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .7rem;
  color: var(--cream);
  font: 600 1.2rem/1 var(--display);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }

.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a,
.site-footer > a:last-child {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}
.header-nav a:hover, .header-nav a:focus-visible,
.site-footer > a:last-child:hover { color: var(--gold-light); }

.site-header > .button { justify-self: end; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(15, 15, 11, .82);
  cursor: pointer;
}
.menu-toggle > span[aria-hidden="true"] {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--gold-light);
  transition: transform .2s ease;
}
.menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.button {
  position: relative;
  min-height: 52px;
  padding: .8rem 1.4rem;
  border: 1px solid var(--line-bright);
  color: #171006;
  background: linear-gradient(135deg, #f1c678 0%, #ba7728 100%);
  box-shadow: inset 0 0 0 3px rgba(24, 14, 5, .25), 0 8px 24px rgba(0, 0, 0, .25);
  cursor: pointer;
  font: 550 .9rem/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, filter .2s ease;
}
.button::before, .button::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #513215;
  transform: rotate(45deg);
}
.button::before { top: 6px; left: 6px; }
.button::after { right: 6px; bottom: 6px; }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button:active { transform: translateY(0); }
.button--compact { min-height: 42px; padding: .7rem 1rem; font-size: .76rem; }

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__image, .hero__shade { position: absolute; inset: 0; }
.hero__image {
  z-index: -3;
  background: url("assets/hero-race.jpg") 64% 50% / cover no-repeat;
  filter: saturate(.88) contrast(1.05);
  transform: scale(1.01);
}
.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 6, 4, .98) 0%, rgba(7, 7, 5, .88) 35%, rgba(8, 7, 5, .26) 70%, rgba(5, 5, 4, .2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%, rgba(0,0,0,.24) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
}
.hero__content, .hero__fact {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.hero__content { padding-top: 7rem; }
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font: 500 .78rem/1.2 var(--text);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-block;
  width: 30px;
  height: 1px;
  margin-right: .65rem;
  vertical-align: middle;
  background: var(--gold);
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 420;
  line-height: .98;
  letter-spacing: .015em;
  text-transform: uppercase;
}
h1 { max-width: 660px; font-size: clamp(4rem, 7.8vw, 7.8rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4.9rem); }
h1 em, h2 em { color: var(--gold-light); font-style: normal; }
.hero__lead {
  max-width: 610px;
  margin: 1.8rem 0 2rem;
  color: #c7beb0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.hero__actions { display: flex; align-items: center; gap: 1.8rem; }
.text-link { color: var(--cream); font-size: .85rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.text-link span { display: inline-block; margin-left: .4rem; color: var(--gold); transition: transform .2s ease; }
.text-link:hover span { transform: translateY(4px); }
.availability { margin: 1rem 0 0; color: #aaa195; font-size: .75rem; }
.hero__fact {
  position: absolute;
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: 5.5rem;
  width: min(350px, 28vw);
  margin: 0;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line-bright);
}
.hero__fact strong { display: block; font: 420 1.7rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.hero__fact span { display: block; margin-top: .7rem; color: var(--muted); font-size: .78rem; }

.status-line {
  width: min(calc(100% - 48px), var(--max));
  min-height: 64px;
  margin: -32px auto 0;
  padding: 1rem 1.3rem;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background: rgba(20, 19, 14, .94);
  box-shadow: 0 18px 42px rgba(0,0,0,.3);
  font-size: .82rem;
}
.status-line strong { font: 500 .88rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.status-line > span:nth-of-type(2) { color: var(--muted); }
.status-line a { margin-left: auto; color: var(--gold-light); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,154,66,.1); }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 8rem 0; }
.section-heading { max-width: 720px; }
.section-heading > p:last-child { max-width: 650px; margin: 1.5rem 0 0; color: var(--muted); }
.section-heading--row { max-width: none; display: grid; grid-template-columns: 1.5fr .7fr; align-items: end; gap: 5rem; }
.section-heading--row > p { margin-bottom: .5rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4rem; background: var(--line); border: 1px solid var(--line); }
.feature-card { position: relative; min-height: 300px; padding: 2.2rem; background: linear-gradient(145deg, #171711, #10100d); }
.feature-card__number { position: absolute; top: 1rem; right: 1.2rem; color: rgba(240,196,124,.25); font: 300 2.2rem/1 var(--display); }
.feature-card svg { width: 58px; height: 58px; margin-bottom: 2rem; fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.feature-card h3, .news-card h3 { margin: 0; font: 440 1.45rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.feature-card p, .news-card p { margin: .85rem 0 0; color: var(--muted); font-size: .88rem; }

.screenshots { padding-top: 4rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 3.5rem; }
.shot {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--cream);
  background: #050504;
  cursor: zoom-in;
  text-align: left;
}
.shot--wide { grid-column: 1 / -1; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; opacity: 1; }
.shot > span {
  display: block;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font: 450 .95rem/1 var(--display);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.shot b { margin-right: .7rem; color: var(--gold); font-weight: 400; }

.news { display: grid; grid-template-columns: .65fr 1.35fr; gap: 5rem; border-top: 1px solid var(--line); }
.news__heading > p:last-child { color: var(--muted); }
.news-list { display: grid; gap: 1rem; }
.news-card { padding: 2rem; border: 1px solid var(--line); background: var(--panel); }
.news-card--featured { background: linear-gradient(120deg, rgba(114,66,18,.22), transparent 65%), var(--panel); }
.news-card--maintenance { border-color: rgba(217, 154, 66, .62); }
.news-card--critical { border-color: rgba(196, 75, 49, .82); background: linear-gradient(120deg, rgba(137, 40, 24, .2), transparent 68%), var(--panel); }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; color: #a1988b; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tag { padding: .35rem .55rem; color: var(--gold-light); border: 1px solid var(--line); }
.tag--status { color: #b8ca7c; }
.tag--maintenance { color: var(--gold-light); }
.tag--critical { color: #ef9a83; border-color: rgba(196, 75, 49, .68); }
.tag--status i { display: inline-block; width: 6px; height: 6px; margin-right: .45rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.tag--maintenance i { background: var(--gold); box-shadow: 0 0 8px rgba(217, 154, 66, .8); }
.tag--critical i { background: #d75c40; box-shadow: 0 0 8px rgba(215, 92, 64, .8); }
.news-card__body { margin-top: .85rem; }
.news-card__body > * { margin: .7rem 0 0; color: var(--muted); font-size: .88rem; }
.news-card__body > *:first-child { margin-top: 0; }
.news-card__body ul { padding-left: 1.3rem; }
.news-card__body li + li { margin-top: .35rem; }
.news-note { padding: .8rem 1rem; border-left: 2px solid var(--gold); background: rgba(217, 154, 66, .07); color: var(--cream); }
.news-card__link { display: inline-block; margin-top: 1.2rem; color: var(--gold-light); font: 500 .78rem/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.news-loading, .news-fallback, .news-error { margin: 0; padding: 2rem; border: 1px solid var(--line); color: var(--muted); background: var(--panel); font-size: .88rem; }
.news-error { border-color: rgba(196, 75, 49, .55); color: #d9a192; }

.final-cta {
  width: min(calc(100% - 48px), var(--max));
  margin: 2rem auto 7rem;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 4rem;
  align-items: end;
  border: 1px solid var(--line-bright);
  background:
    linear-gradient(90deg, rgba(172, 105, 28, .2), transparent 45%),
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(255,255,255,.012) 9px 10px),
    var(--panel);
  box-shadow: inset 0 0 0 5px #0d0c09, inset 0 0 0 6px var(--line);
}
.final-cta p { color: var(--muted); }
.final-cta .button { margin-top: 1rem; }

.site-footer {
  width: min(calc(100% - 48px), var(--max));
  min-height: 110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}
.site-footer p { color: #958d82; font-size: .72rem; }
.site-footer > a:last-child { justify-self: end; }

.lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-bright);
  color: var(--cream);
  background: #090907;
  box-shadow: 0 24px 90px #000;
}
.lightbox::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 1rem 1.2rem; color: var(--muted); font-size: .82rem; }
.lightbox__close {
  position: absolute;
  z-index: 2;
  top: .7rem;
  right: .7rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-bright);
  color: var(--cream);
  background: rgba(8,8,6,.9);
  cursor: pointer;
  font-size: 1.6rem;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 1.5rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: .85rem 1.1rem;
  border: 1px solid var(--line-bright);
  color: var(--cream);
  background: #17130d;
  box-shadow: 0 12px 35px rgba(0,0,0,.5);
  font-size: .82rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: block; justify-self: end; }
  .header-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: .45rem;
    border: 1px solid var(--line);
    background: rgba(12, 12, 9, .98);
    box-shadow: 0 22px 42px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .header-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .header-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(189, 133, 61, .16);
    color: var(--cream);
    font-size: .82rem;
  }
  .header-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 760px; }
  .hero__image { background-position: 69% 50%; }
  .hero__shade { background: linear-gradient(90deg, rgba(6,6,4,.96), rgba(7,7,5,.66) 68%, rgba(0,0,0,.2)), linear-gradient(0deg, var(--bg), transparent 42%); }
  .hero__fact { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .section-heading--row, .news, .final-cta { grid-template-columns: 1fr; gap: 2rem; }
  .section-heading--row > p { max-width: 620px; }
}

@media (max-width: 640px) {
  .site-header, .hero__content, .status-line, .section, .final-cta, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { min-height: 72px; gap: .8rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .site-header .button { min-height: 40px; padding-inline: .75rem; font-size: .75rem; }
  .hero { min-height: 710px; align-items: end; }
  .hero__image { background-position: 70% 28%; background-size: auto 62%; background-color: #080806; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 9%, rgba(8,8,6,.96) 38%, rgba(8,8,6,.25) 72%, rgba(0,0,0,.3)); }
  .hero__content { padding: 0 0 5.5rem; }
  h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  h2 { font-size: clamp(2.2rem, 12vw, 3.6rem); }
  .hero__lead { margin-block: 1.2rem 1.5rem; font-size: .95rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .status-line { margin-top: -30px; align-items: flex-start; flex-wrap: wrap; }
  .status-line > span:nth-of-type(2) { width: calc(100% - 2rem); }
  .status-line a { margin-left: 1.5rem; }
  .section { padding: 6rem 0; }
  .section-heading--row { display: block; }
  .gallery { grid-template-columns: 1fr; }
  .shot--wide { grid-column: auto; }
  .shot img, .shot:not(.shot--wide) img { aspect-ratio: 16 / 9; }
  .final-cta { margin-bottom: 4rem; padding: 2.3rem 1.5rem; }
  .site-footer { grid-template-columns: 1fr auto; padding-block: 1.5rem; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 440px) {
  .site-header { grid-template-columns: 1fr auto; gap: .75rem; }
  .site-header .button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
