:root {
  color-scheme: dark;
  --bg: #090e0f;
  --bg-elevated: #101819;
  --bg-soft: #141d1e;
  --surface: rgba(17, 25, 26, 0.88);
  --surface-strong: #172121;
  --line: rgba(209, 214, 198, 0.16);
  --line-strong: rgba(209, 214, 198, 0.28);
  --text: #f2f0e7;
  --muted: #b8bcad;
  --subtle: #858c7d;
  --olive: #9ca374;
  --amber: #dda441;
  --amber-dark: #8b6125;
  --black: #030606;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --shell: 1200px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(13, 20, 21, 0.98), rgba(9, 14, 15, 1) 38%),
    var(--bg);
  color: var(--text);
  font-family:
    "Arial Narrow",
    "Roboto Condensed",
    "Segoe UI Condensed",
    "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border: 1px solid var(--amber);
  background: var(--bg);
  color: var(--text);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(209, 214, 198, 0.12);
  background: rgba(7, 11, 12, 0.84);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: rgba(7, 11, 12, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.header-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 196px;
  height: auto;
  object-fit: contain;
}

.footer-brand img {
  width: 98px;
  height: auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.primary-nav a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber);
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.menu-button svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.hero {
  position: relative;
  min-height: min(690px, 76svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 46%;
  filter: saturate(0.78) contrast(1.12) brightness(0.7);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 12, 13, 0.96) 0%, rgba(8, 12, 13, 0.76) 34%, rgba(8, 12, 13, 0.2) 72%),
    linear-gradient(180deg, rgba(8, 12, 13, 0.18), rgba(8, 12, 13, 0.7));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 360px);
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  padding: calc(var(--header-height) + 78px) 0 62px;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.about-panel h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: 3.45rem;
  text-wrap: normal;
}

.hero-copy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button,
.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.button {
  padding: 0 24px;
  border: 1px solid transparent;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--amber);
  color: #171008;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #efb858;
}

.button-ghost {
  border-color: rgba(221, 164, 65, 0.7);
  background: rgba(5, 8, 9, 0.34);
  color: var(--amber);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(221, 164, 65, 0.1);
}

.hero-panel {
  width: 100%;
  border-top: 1px solid var(--line-strong);
  background: rgba(7, 11, 12, 0.62);
  box-shadow: var(--shadow);
}

.hero-panel a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel a:last-child {
  border-bottom: 0;
}

.hero-panel span {
  color: var(--subtle);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
}

.hero-panel strong {
  color: var(--text);
  font-size: 1.08rem;
}

.section {
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.projects-section,
.wip-section,
.routes-section {
  background:
    radial-gradient(circle at 96% 10%, rgba(156, 163, 116, 0.12), transparent 34%),
    var(--bg);
}

.terrains-section,
.about-section {
  background: var(--bg-elevated);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: stretch;
}

.terrains-layout,
.routes-layout {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.85fr);
}

.section-copy,
.routes-list {
  align-self: center;
}

.section-heading h1,
.section-heading h2,
.about-panel h2 {
  font-size: 2.45rem;
}

.section-heading p,
.support-channel p,
.about-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.7;
}

.section-heading::after {
  content: "";
  width: 64px;
  height: 3px;
  display: block;
  margin-top: 18px;
  background: var(--olive);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 18px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: rgba(221, 164, 65, 0.72);
  background: rgba(221, 164, 65, 0.1);
  color: var(--text);
}

.project-list,
.terrain-list,
.routes-list {
  border-top: 1px solid var(--line);
}

.project-row,
.terrain-row,
.routes-list a {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.project-row {
  padding: 11px 0;
}

.project-row-static {
  cursor: default;
}

.row-status {
  color: var(--subtle);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.terrain-row,
.routes-list a {
  grid-template-columns: 1fr auto;
  padding: 16px 0;
}

.project-row[hidden] {
  display: none;
}

.project-row strong,
.terrain-row strong,
.routes-list span {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.project-row small,
.terrain-row small {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.project-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 163, 116, 0.35);
  color: var(--olive);
}

.project-mark svg,
.row-arrow,
.terrain-row svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.project-mark svg {
  width: 24px;
  height: 24px;
}

.row-arrow,
.terrain-row svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.project-row:hover,
.project-row:focus-visible,
.project-row.is-active,
.terrain-row:hover,
.terrain-row:focus-visible,
.terrain-row.is-active,
.routes-list a:hover,
.routes-list a:focus-visible {
  color: var(--amber);
}

.project-row:hover .project-mark,
.project-row:focus-visible .project-mark,
.project-row.is-active .project-mark {
  border-color: rgba(221, 164, 65, 0.8);
  color: var(--amber);
}

.visual-panel,
.terrain-image,
.route-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.visual-panel img,
.terrain-image img,
.route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08) brightness(0.82);
}

.visual-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 8, 0.88) 28%, rgba(4, 7, 8, 0.96));
}

.visual-caption span {
  display: block;
  margin-bottom: 8px;
  color: var(--olive);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-caption strong {
  display: block;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
}

.text-link {
  min-height: 36px;
  justify-content: flex-start;
  color: var(--amber);
}

.text-link:hover,
.text-link:focus-visible {
  color: #f0bd62;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.support-channel {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid var(--line-strong);
  padding: 4px 0 0 24px;
}

.support-channel > svg {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  color: var(--olive);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.support-channel h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.support-channel h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.support-channel .text-link {
  margin-top: auto;
}

.routes-list a {
  grid-template-columns: 1fr auto;
}

.routes-list strong {
  min-width: 78px;
  display: inline-flex;
  justify-content: flex-end;
  color: var(--olive);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
}

.routes-list .section-heading {
  margin-bottom: 28px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(20, 29, 30, 0.98), rgba(20, 29, 30, 0.62)),
    url("assets/images/20230121010541_1.jpg") center / cover;
  padding: 44px;
  box-shadow: var(--shadow);
}

.about-panel p {
  max-width: 740px;
}

.site-footer {
  padding: 42px 0 34px;
  background: #070b0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: center;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--amber);
}

.copyright {
  margin-top: 28px;
  color: var(--subtle);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
}

.subpage .site-header {
  position: sticky;
  top: 0;
}

.subpage-main {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 8%, rgba(156, 163, 116, 0.12), transparent 34%),
    var(--bg);
}

.subpage-hero {
  padding-top: 82px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.faq-list article {
  border-left: 1px solid var(--line-strong);
  padding: 4px 0 4px 24px;
}

.faq-list h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.2;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.7;
}

.support-grid-subpage {
  grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 1fr));
}

.reveal {
  transform: none;
  opacity: 1;
  transition:
    transform 520ms ease,
    opacity 520ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

@media (max-width: 1060px) {
  .hero-grid,
  .split-layout,
  .terrains-layout,
  .routes-layout,
  .support-grid,
  .footer-grid,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
    gap: 34px;
  }

  .hero-panel {
    max-width: 460px;
  }

  .visual-panel,
  .terrain-image,
  .route-image {
    min-height: 420px;
  }

  .support-channel {
    min-height: 0;
    padding-bottom: 16px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 880px) {
  .site-header {
    background: rgba(7, 11, 12, 0.96);
  }

  .menu-button {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 12, 0.98);
    padding: 8px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 220ms ease,
      opacity 220ms ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.16rem;
  }

  .primary-nav a::after {
    left: 0;
    right: auto;
    width: 48px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: calc(var(--header-height) + 54px);
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-media img {
    object-position: 66% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 12, 13, 0.96), rgba(8, 12, 13, 0.74)),
      linear-gradient(180deg, rgba(8, 12, 13, 0.15), rgba(8, 12, 13, 0.76));
  }

  .subpage .header-shell {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 0;
  }

  .subpage .subpage-nav {
    position: static;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 14px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .subpage .subpage-nav a {
    min-height: 34px;
    padding: 0;
    border-bottom: 0;
    font-size: 1.04rem;
  }

  .subpage .subpage-nav a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .footer-brand span {
    font-size: 1.05rem;
  }

  .brand img {
    width: 168px;
  }

  .footer-brand img {
    width: 84px;
  }

  .hero-copy h1 {
    font-size: 2.42rem;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading h1,
  .section-heading h2,
  .about-panel h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-row {
    grid-template-columns: 38px 1fr;
  }

  .project-mark {
    width: 38px;
    height: 38px;
  }

  .row-arrow {
    display: none;
  }

  .visual-panel,
  .terrain-image,
  .route-image {
    min-height: 300px;
  }

  .terrain-row {
    min-height: 82px;
    gap: 10px;
  }

  .support-channel {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding: 24px 0 10px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-list article {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding: 20px 0 0;
  }

  .about-panel {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
