/* Котобашня — лендинг. Палитра взята из игры: тёмный индиго + золото. */

:root {
  --bg: #15111f;
  --bg-soft: #1d1830;
  --surface: #2b2440;
  --surface-hi: #352c50;
  --line: rgba(255, 255, 255, .09);
  --text: #f3effc;
  --muted: #b3aacb;
  --gold: #ffb01f;
  --gold-hi: #ffd166;
  --radius: 16px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-hi); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Шапка ───────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21, 17, 31, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
}

.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* ── Плашки ──────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.badge-soon {
  border-color: rgba(255, 176, 31, .45);
  background: rgba(255, 176, 31, .12);
  color: var(--gold-hi);
  font-weight: 600;
}

/* ── Первый экран ────────────────────────────────────────────────────────── */

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

.hero-bg { position: absolute; inset: 0; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 17, 31, .72) 0%, rgba(21, 17, 31, .8) 55%, var(--bg) 100%),
    radial-gradient(90% 80% at 12% 25%, rgba(255, 176, 31, .18), transparent 62%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 44px;
  padding: 70px 20px 76px;
}

.hero-shot img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .03);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -.5px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}

.hero h1 .sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gold-hi);
}

.lead {
  margin: 0 0 20px;
  font-size: clamp(16px, 2vw, 19px);
  color: #ded7f0;
  max-width: 62ch;
}

.tags { margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }

.cta { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #2a1d00;
  box-shadow: 0 10px 26px rgba(255, 176, 31, .22);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .09); }

.btn.is-soon { cursor: default; opacity: .95; }

.note { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Секции ──────────────────────────────────────────────────────────────── */

.section { padding: 62px 0; }

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.2px;
}

.section-lead { margin: -12px 0 24px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--gold-hi);
}

.card p { margin: 0; color: #d8d1e9; font-size: 15px; }

/* ── Скриншоты ───────────────────────────────────────────────────────────── */

.section-shots { background: var(--bg-soft); border-block: 1px solid var(--line); }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.shot { margin: 0; }

.shot a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  transition: transform .15s ease, border-color .15s ease;
}

.shot a:hover { transform: translateY(-2px); border-color: rgba(255, 176, 31, .5); }

.shot img { width: 100%; }

.shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 900px) {
  .shot-wide { grid-column: span 2; }
}

/* ── Шаги ────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #2a1d00;
  font-weight: 800;
}

.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: #d8d1e9; font-size: 15px; }

/* ── Подвал ──────────────────────────────────────────────────────────────── */

.footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 15px;
}

.footer p { margin: 0 0 8px; }
.footer .muted { color: var(--muted); font-size: 14px; max-width: 70ch; }

/* ── Просмотр скриншота ──────────────────────────────────────────────────── */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
}

.lightbox::backdrop { background: rgba(8, 6, 14, .88); }

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-hi);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .hero-inner { padding: 52px 20px 48px; }
  .section { padding: 46px 0; }
  .shots { grid-template-columns: 1fr; }
}
