:root {
  --bg: #090d12;
  --bg-2: #101820;
  --panel: #131c24;
  --panel-2: #19242d;
  --text: #f7fbf7;
  --muted: #9aa9a6;
  --line: rgba(255, 255, 255, 0.14);
  --green: #36e0a1;
  --amber: #f2b84b;
  --red: #ff5d5d;
  --blue: #5bb7ff;
  --paper: #f4f1e8;
  --ink: #141b1f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #090d12 0%, #0f161c 45%, #182019 100%);
  background-size: 64px 64px, 64px 64px, auto;
  content: "";
}

body[data-lang="ru"] .lang-kk,
body[data-lang="kk"] .lang-ru {
  display: none !important;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border: 1px solid var(--green);
  background: var(--bg);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1220px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(54, 224, 161, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(54, 224, 161, 0.22), rgba(242, 184, 75, 0.18));
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0;
}

.brand-text {
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  padding: 12px 0;
}

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

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

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
}

.lang-button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.lang-button.is-active {
  background: var(--green);
  color: #07100d;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 900;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  min-height: 40px;
  border: 1px solid rgba(242, 184, 75, 0.55);
  background: rgba(242, 184, 75, 0.12);
  color: var(--amber);
}

.button.primary {
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #131009;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  content: "";
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 140px;
  background: linear-gradient(0deg, var(--bg), transparent);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
  width: min(1220px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 74px 0 86px;
}

.system-line,
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-line {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(54, 224, 161, 0.32);
  border-radius: var(--radius);
  background: rgba(54, 224, 161, 0.08);
  padding: 8px 10px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 93, 93, 0.14);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(31px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.hero-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-media {
  position: relative;
  min-height: 600px;
}

.media-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.media-frame-main {
  top: 20px;
  right: 0;
  width: min(95%, 710px);
  height: 430px;
}

.media-frame-side {
  bottom: 26px;
  left: 0;
  width: min(56%, 360px);
  height: 230px;
}

.media-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 18, 0), rgba(9, 13, 18, 0.5));
  content: "";
}

.timer-card {
  position: absolute;
  right: 28px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  min-width: 250px;
  border: 1px solid rgba(54, 224, 161, 0.42);
  border-radius: var(--radius);
  background: rgba(9, 13, 18, 0.88);
  box-shadow: var(--shadow);
  padding: 18px;
}

.timer-card strong {
  color: var(--green);
  font-size: 42px;
  line-height: 1;
}

.timer-label,
.timer-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: #0d1319;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.proof-grid div {
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: center;
  border-left: 1px solid var(--line);
  padding: 20px;
}

.proof-grid div:last-child {
  border-right: 1px solid var(--line);
}

.proof-grid strong {
  color: var(--amber);
  font-size: 22px;
}

.proof-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.section-inner,
.event-panel,
.contact-shell,
.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-section,
.start-section,
.faq-section,
.policies-section {
  background: var(--paper);
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.intro-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
}

.intro-image::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 9px 12px;
  background: var(--red);
  color: var(--text);
  content: "LIVE EVENT";
  font-size: 12px;
  font-weight: 900;
}

.intro-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.intro-copy p,
.section-note,
.event-panel p,
.faq-list p,
.policy-list p,
.contact-copy p,
.run-card p,
.step-card p,
.review-grid p {
  color: inherit;
}

.intro-copy > p:not(.eyebrow),
.section-note,
.faq-list p,
.policy-list p,
.contact-copy p,
.run-card p,
.step-card p,
.review-grid p {
  color: #536062;
}

.intro-copy .eyebrow,
.start-section .eyebrow,
.faq-section .eyebrow,
.policies-section .eyebrow {
  color: var(--blue);
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #273235;
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--red);
  content: ">";
  font-weight: 900;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.text-link {
  justify-self: end;
  color: var(--green);
  font-weight: 900;
}

.record-stack {
  display: grid;
  gap: 16px;
}

.run-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.25fr) minmax(0, 1fr) minmax(190px, 0.28fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 22px;
}

.run-meta {
  display: grid;
  gap: 8px;
}

.run-meta span,
.runner {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.run-meta strong {
  color: var(--green);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.run-card p {
  margin: 10px 0 0;
}

.event-band {
  padding: 108px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 13, 18, 0.96), rgba(9, 13, 18, 0.66), rgba(9, 13, 18, 0.96)),
    url("assets/nomadplay-event.png") center / cover no-repeat;
}

.event-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.event-panel p {
  max-width: 710px;
  margin: 20px 0 0;
  color: rgba(247, 251, 247, 0.78);
  font-size: 18px;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  min-height: 270px;
  border: 1px solid rgba(20, 27, 31, 0.16);
  border-radius: var(--radius);
  background: #fffdf6;
  padding: 24px;
}

.step-card > span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--amber);
  font-weight: 900;
}

.step-card p {
  margin: 14px 0 0;
}

.board-section {
  background: #0c1118;
}

.leaderboard-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.leaderboard-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  text-align: left;
}

.leaderboard-table th {
  color: var(--amber);
  font-size: 12px;
  text-transform: uppercase;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.leaderboard-table td:first-child,
.leaderboard-table td:last-child {
  color: var(--green);
  font-weight: 900;
}

.reviews-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.review-grid blockquote {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
}

.review-grid p {
  margin: 0;
  color: rgba(247, 251, 247, 0.78);
}

.review-grid cite {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.faq-layout,
.policy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.faq-list,
.policy-list {
  display: grid;
  gap: 12px;
}

.faq-list details,
.policy-list details {
  border: 1px solid rgba(20, 27, 31, 0.16);
  border-radius: var(--radius);
  background: #fffdf6;
}

.faq-list summary,
.policy-list summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

.faq-list summary::after,
.policy-list summary::after {
  color: var(--red);
  content: "+";
}

.faq-list details[open] summary::after,
.policy-list details[open] summary::after {
  content: "-";
}

.faq-list p,
.policy-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.contact-section {
  padding: 96px 0;
  background: #0b1116;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.contact-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
}

.business-card {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  font-style: normal;
}

.business-card > span {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.05);
  padding: 13px 15px;
}

.business-card strong {
  color: var(--amber);
  font-size: 12px;
  text-transform: uppercase;
}

.business-card a {
  color: var(--green);
  font-weight: 900;
}

.forms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 18px;
}

.panel-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}

.support-form {
  align-self: start;
  background: var(--panel-2);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px;
}

select option {
  background: #101820;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-line input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.request-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(54, 224, 161, 0.35);
  border-radius: var(--radius);
  background: rgba(54, 224, 161, 0.08);
  color: var(--text);
  padding: 12px;
  font-size: 14px;
}

.request-summary[hidden] {
  display: none;
}

.request-summary p {
  margin: 0;
  color: var(--muted);
}

.policies-section {
  border-top: 1px solid rgba(20, 27, 31, 0.12);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #070a0e;
  padding: 34px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-line {
  grid-column: 1 / -1;
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(820px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101820;
  box-shadow: var(--shadow);
  padding: 18px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2,
.cookie-banner p {
  margin: 0;
}

.cookie-banner p {
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: center;
}

.cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.cookie-options[hidden] {
  display: none;
}

.cookie-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  max-width: min(460px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(54, 224, 161, 0.42);
  border-radius: var(--radius);
  background: #101820;
  color: var(--text);
  padding: 13px 16px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    border-top: 1px solid var(--line);
    padding: 8px 0 14px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-bottom: 12px;
  }

  .hero-grid,
  .contact-shell,
  .forms-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 520px;
  }

  .media-frame-main {
    width: 86%;
  }
}

@media (max-width: 900px) {
  .proof-grid,
  .step-row,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .section-head,
  .event-panel,
  .faq-layout,
  .policy-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .text-link,
  .footer-links {
    justify-self: start;
    justify-content: flex-start;
  }

  .run-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    min-height: auto;
    padding: 52px 0 64px;
  }

  h1 {
    font-size: clamp(44px, 18vw, 72px);
  }

  .hero-media {
    min-height: auto;
  }

  .media-frame {
    position: relative;
  }

  .media-frame-main,
  .media-frame-side {
    inset: auto;
    width: 100%;
    height: auto;
  }

  .media-frame-main img,
  .media-frame-side img {
    aspect-ratio: 16 / 10;
  }

  .media-frame-side {
    margin-top: 14px;
  }

  .timer-card {
    position: relative;
    right: auto;
    bottom: auto;
    min-width: 0;
    margin-top: 14px;
  }

  .proof-grid,
  .step-row,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div,
  .proof-grid div:last-child {
    border-right: 1px solid var(--line);
  }

  .section,
  .contact-section,
  .event-band {
    padding: 62px 0;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .header-cta {
    flex: 1;
  }
}
