:root {
  --bg: #0b0d10;
  --panel: #121820;
  --text: #f6f1df;
  --muted: #b9c0b0;
  --line: rgba(246, 241, 223, 0.18);
  --red: #ff2f4f;
  --red-dark: #94182d;
  --green: #43e06d;
  --gold: #ffc247;
  --cyan: #50d7ff;
  --ink: #050607;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(255, 47, 79, 0.18), transparent 34%),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.metrika-pixel,
.copy-buffer {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
}

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

code {
  padding: 2px 8px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(8, 10, 13, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.site-header > *,
.hero-content,
.hero-server-card,
.section > *,
.image-band > div,
.page-hero > div,
.join-cta > * {
  min-width: 0;
  max-width: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.18) 50%),
    linear-gradient(var(--red) 0 28%, var(--green) 28% 58%, #7a4b28 58% 100%);
  background-size: 12px 100%, 100% 100%;
  border: 2px solid var(--text);
  box-shadow: 5px 5px 0 var(--red);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.main-nav a {
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--red);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--text);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.42);
}

.btn.primary {
  color: #071008;
  background: var(--green);
}

.btn.secondary,
.header-btn {
  color: #17070b;
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.96) 0%, rgba(11, 13, 16, 0.62) 43%, rgba(11, 13, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(11, 13, 16, 0.96) 0%, rgba(11, 13, 16, 0.12) 46%, rgba(11, 13, 16, 0.34) 100%);
}

.hero-content {
  width: min(850px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 10.5ch;
  font-size: 8.2rem;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero h1 span {
  display: block;
}

.hero p,
.page-hero p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-server-card {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(20px, 4vw, 56px);
  width: min(430px, calc(100% - 36px));
  padding: 20px;
  background: rgba(10, 12, 16, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-server-card span,
.hero-server-card em {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
}

.hero-server-card strong {
  display: block;
  margin: 7px 0;
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--red);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 18s linear infinite;
}

.ticker-group {
  display: flex;
  flex: 0 0 auto;
}

.ticker span {
  padding: 16px 34px;
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 950;
  text-transform: uppercase;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px);
}

.section h2,
.join-cta h2 {
  margin: 0;
  font-size: 5rem;
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section p,
.join-cta p {
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.feature-stack,
.route-grid,
.class-detail-grid,
.steps-grid,
.class-grid {
  display: grid;
  gap: 16px;
}

.feature-stack article,
.route-grid article,
.class-detail-grid article,
.steps-grid article,
.class-grid article {
  padding: 24px;
  background: rgba(18, 24, 32, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.18);
}

.feature-stack strong,
.steps-grid strong,
.route-grid span,
.class-detail-grid span,
.class-grid span {
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-stack h3,
.class-grid h3,
.route-grid h2,
.class-detail-grid h2,
.steps-grid h2 {
  margin: 10px 0 8px;
  font-size: 2rem;
  line-height: 1;
}

.image-band,
.page-hero {
  position: relative;
  display: grid;
  min-height: 620px;
  align-items: end;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.image-band img,
.page-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-band::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 13, 16, 0.9), rgba(11, 13, 16, 0.42), rgba(11, 13, 16, 0.16));
}

.image-band > div,
.page-hero > div {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(36px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.cards-section {
  background: #10151b;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.class-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.class-preview img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
}

.class-grid,
.route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.section-actions {
  display: flex;
  margin-top: 22px;
}

.class-detail-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.join-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(70px, 8vw, 120px);
  padding: clamp(28px, 5vw, 54px);
  background: var(--red);
  border: 2px solid var(--text);
  border-radius: 8px;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.28);
}

.join-cta p {
  color: var(--text);
}

.join-cta strong {
  color: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #07090c;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

@media (max-width: 1200px) {
  .hero h1,
  .page-hero h1 {
    font-size: 6.1rem;
  }

  .section h2,
  .join-cta h2 {
    font-size: 4rem;
  }

  .feature-stack h3,
  .class-grid h3,
  .route-grid h2,
  .class-detail-grid h2,
  .steps-grid h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-server-card {
    position: static;
    width: auto;
    margin: 0 18px 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 4.6rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1.08rem;
  }

  .split-section,
  .section-head,
  .class-grid,
  .route-grid,
  .class-detail-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .join-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
  }

  .main-nav {
    display: none;
  }

  .header-btn {
    flex: 1 0 100%;
    width: calc(100vw - 36px);
  }

  .hero {
    width: 100vw;
    max-width: 100vw;
    min-height: 790px;
  }

  .hero-content {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin: 0 18px 24px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: 2.22rem;
    line-height: 0.9;
  }

  .hero p,
  .page-hero p {
    max-width: calc(100vw - 36px);
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero-server-card {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    padding: 18px;
  }

  .hero-server-card strong {
    font-size: 1.65rem;
  }

  .ticker span {
    padding: 14px 24px;
    font-size: 1.35rem;
  }

  .section {
    width: 100vw;
    max-width: 100vw;
    padding: 64px 18px;
    overflow: hidden;
  }

  .section > * {
    max-width: calc(100vw - 36px);
  }

  .section h2,
  .join-cta h2 {
    font-size: 1.9rem;
    line-height: 0.98;
  }

  .feature-stack h3,
  .class-grid h3,
  .route-grid h2,
  .class-detail-grid h2,
  .steps-grid h2 {
    font-size: 1.35rem;
  }

  .feature-stack article,
  .route-grid article,
  .class-detail-grid article,
  .steps-grid article,
  .class-grid article {
    padding: 20px;
  }

  .hero-actions,
  .hero-actions .btn,
  .join-cta .btn {
    width: 100%;
  }

  .page-hero,
  .image-band {
    min-height: 560px;
  }

  .image-band > div,
  .page-hero > div {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin: 0 18px 34px;
  }

  .join-cta {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin: 0 18px 70px;
    padding: 24px;
  }

  .class-preview img {
    aspect-ratio: 1 / 1.35;
  }

  .site-footer {
    flex-direction: column;
  }

}

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