/* Ойтау — сайт. Один шрифт (Golos, как в игре), палитра рассвета над Тянь-Шанем. */
@font-face {
  font-family: "Golos";
  src: url("/golos.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --sky-top: #bfe0f0;
  --sky: #e8f4fa;
  --snow: #f8fbfd;
  --ink: #1e2b45;
  --ink-soft: #4a5873;
  --rock: #33415c;
  --blue: #1f7ab8;
  --sun: #f2b630;
  --trail: #d2452f;
  --green: #5f9e4e;
  --grey-tile: #8a94a6;
  --line: rgba(30, 43, 69, .14);
  --radius-s: 10px;
  --radius-l: 28px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Golos", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--snow);
  overflow-x: hidden;
}
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* язык: показываем одну из версий текста */
html[data-lang="ru"] [lang="kk"]:not(html) { display: none !important; }
html[data-lang="kz"] [lang="ru"]:not(html) { display: none !important; }

/* ---------- шапка ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.brand svg { width: 36px; height: 36px; }
.langs { display: flex; background: rgba(255, 255, 255, .7); border-radius: 99px; padding: 3px; backdrop-filter: blur(6px); }
.langs button {
  font: inherit; font-size: 15px; font-weight: 650; border: 0; background: none; color: var(--ink-soft);
  padding: 6px 14px; border-radius: 99px; cursor: pointer; min-height: 36px;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: min(100svh, 920px);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 55%, var(--snow) 100%);
  overflow: hidden;
}
.hero-art { position: absolute; inset: auto 0 0 0; width: 100%; height: 78%; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-text {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 0;
}
.tiles { display: flex; gap: 8px; margin-bottom: 28px; }
.tile {
  width: clamp(48px, 9vw, 72px); aspect-ratio: 1;
  display: grid; place-items: center;
  font-weight: 900; font-size: clamp(26px, 5vw, 40px); color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-s);
}
.hero .tile { animation: flip .62s cubic-bezier(.45, 0, .2, 1) both; }
.hero .tile:nth-child(1) { animation-delay: .35s; }
.hero .tile:nth-child(2) { animation-delay: .5s; }
.hero .tile:nth-child(3) { animation-delay: .65s; }
.hero .tile:nth-child(4) { animation-delay: .8s; }
.hero .tile:nth-child(5) { animation-delay: .95s; }
@keyframes flip {
  0% { transform: rotateX(0); background: #fff; color: var(--ink); border-color: var(--line); }
  49% { transform: rotateX(90deg); background: #fff; color: var(--ink); border-color: var(--line); }
  51% { transform: rotateX(90deg); background: var(--green); color: #fff; border-color: var(--green); }
  100% { transform: rotateX(0); background: var(--green); color: #fff; border-color: var(--green); }
}
h1 {
  margin: 0; max-width: 11ch;
  font-size: clamp(46px, 8.4vw, 112px); line-height: .95; font-weight: 900; letter-spacing: -.035em;
}
.lead { max-width: 30ch; margin: 22px 0 30px; font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px;
  padding: 0 26px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 750; font-size: 18px;
  box-shadow: 0 6px 0 #0e1628; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #0e1628; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #0e1628; }
.btn svg { width: 22px; height: 22px; }
.meta { font-size: 15px; color: var(--ink-soft); }

.cloud { animation: drift 60s linear infinite alternate; }
.cloud.b { animation-duration: 85s; }
@keyframes drift { to { transform: translateX(120px); } }

/* ---------- тропа ---------- */
.climb { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 60px 24px 40px; }
.climb > svg.path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trail-base { fill: none; stroke: var(--rock); stroke-opacity: .28; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 11; }
.trail-done { fill: none; stroke: var(--trail); stroke-width: 4; stroke-linecap: round; }
.walker circle { fill: #fff; stroke: var(--trail); stroke-width: 4; }

.intro { max-width: 34ch; margin: 0 0 40px auto; font-size: 20px; color: var(--ink-soft); }

.station {
  position: relative; width: min(500px, 46%);
  margin: 0 0 120px; padding-top: 8px;
}
.station:nth-of-type(even) { margin-left: auto; }
.pin {
  position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rock); transition: background .3s, border-color .3s, transform .3s;
}
.station:nth-of-type(odd) .pin { right: -40px; }
.station:nth-of-type(even) .pin { left: -40px; }
.station.reached .pin { background: var(--trail); border-color: var(--trail); transform: scale(1.25); }

.alt { font-size: 15px; font-weight: 650; color: var(--blue); font-variant-numeric: tabular-nums; }
h2 { margin: 2px 0 10px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; }
.station p { margin: 0 0 22px; color: var(--ink-soft); }
.games { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.games li { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; }

/* игрушки на остановках */
.toy { background: #fff; border-radius: var(--radius-l); padding: 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(30, 43, 69, .45); }
.toy small { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.row { display: flex; gap: 6px; margin-bottom: 6px; }
.row .tile { width: 46px; font-size: 22px; border-radius: 8px; }
.row .tile.g { background: var(--green); border-color: var(--green); color: #fff; }
.row .tile.x { background: var(--grey-tile); border-color: var(--grey-tile); color: #fff; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 12px; }
.chips span { padding: 10px; text-align: center; border-radius: 12px; background: var(--sky); font-weight: 650; }
.reveal {
  font: inherit; font-weight: 700; font-size: 16px; width: 100%; min-height: 48px;
  border: 2px dashed var(--blue); color: var(--blue); background: none; border-radius: 12px; cursor: pointer;
}
.reveal[aria-expanded="true"] { border-style: solid; background: var(--blue); color: #fff; }

.q { font-weight: 800; font-size: 22px; margin-bottom: 12px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts button {
  font: inherit; font-weight: 800; font-size: 22px; min-height: 56px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.opts button:active { transform: scale(.96); }
.opts button.ok { background: var(--green); border-color: var(--green); color: #fff; }
.opts button.no { background: var(--trail); border-color: var(--trail); color: #fff; }
.verdict { min-height: 1.5em; margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

.sudoku { display: grid; grid-template-columns: repeat(3, 52px); gap: 4px; }
.sudoku span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: var(--sky); font-weight: 800; font-size: 22px; }
.sudoku span.mine { background: #fff; border: 2px solid var(--blue); color: var(--blue); }

.sea { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 280px; }
.sea button {
  aspect-ratio: 1; border: 0; border-radius: 8px; background: #d5e9f4; cursor: pointer; font-size: 18px; padding: 0;
  transition: transform .15s;
}
.sea button:active { transform: scale(.9); }
.sea button.hit { background: var(--trail); }
.sea button.miss { background: #eef5f9; }
.sea button.miss::after { content: "•"; color: var(--ink-soft); }

/* ---------- вершина ---------- */
.summit { position: relative; text-align: center; padding: 40px 24px 120px; }
.summit .pin-top {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 32px;
  background: radial-gradient(circle, #ffe7a3 0%, var(--sun) 70%); box-shadow: 0 0 0 10px rgba(242, 182, 48, .2);
}
.summit h2 { margin: 6px auto 14px; max-width: 14ch; font-size: clamp(40px, 6.4vw, 80px); }
.summit p { max-width: 40ch; margin: 0 auto 30px; color: var(--ink-soft); }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto 40px; padding: 0; list-style: none; }
.perks li { padding: 10px 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line); font-weight: 650; font-size: 16px; }
.summit .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); }
footer .in { max-width: var(--wrap); margin: 0 auto; padding: 26px 24px 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--ink-soft); }
footer a { color: var(--ink); }

/* ---------- внутренние страницы (политика, удаление) ---------- */
.page-head { background: linear-gradient(180deg, var(--sky-top), var(--snow)); }
.page-head .top { position: static; }
.doc { max-width: 720px; margin: 0 auto; padding: 24px 24px 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); max-width: none; margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 34px 0 6px; letter-spacing: -.01em; }
.doc li { margin-bottom: 8px; }
.doc .muted { color: var(--ink-soft); font-size: 15px; }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { min-height: 760px; }
  .hero-text { padding-top: 96px; }
  .hero-art { height: 52%; }
  .climb { padding-left: 56px; }
  .station, .station:nth-of-type(even) { width: auto; margin-left: 0; margin-bottom: 84px; }
  .station .pin, .station:nth-of-type(odd) .pin, .station:nth-of-type(even) .pin { left: -41px; right: auto; }
  .intro { margin-left: 0; }
  .row .tile { width: 40px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .tile { animation: none; background: var(--green); color: #fff; border-color: var(--green); }
  .cloud { animation: none; }
  .pin, .opts button, .btn { transition: none; }
}
.sudoku button.mine { font: inherit; font-weight: 800; font-size: 22px; aspect-ratio: 1; border-radius: 8px; background: #fff; border: 2px dashed var(--blue); color: var(--blue); cursor: pointer; }
@media (max-width: 760px) {
  .hero-art { height: 42%; }
  .lead { max-width: 26ch; }
}
.lang-links { display: flex; gap: 10px; margin: 0 0 24px; }
.lang-links a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; }
.doc section + section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc h1 { font-size: clamp(30px, 7vw, 56px); hyphens: auto; overflow-wrap: break-word; }
