/* =========================================================
   ТрипСкан 84 — trip84 · макет v7 «Светлый»
   Палитра auth-register: #D1E4F5 · #76ADE5 · #297FD5
   Кнопки — как в оригинале: мягкие пилюли без прописных
   ========================================================= */

:root {
  --blue: #76ade5;
  --blue-hover: #63a0de;
  --blue-light: #d1e4f5;
  --blue-light-hover: #c1daf3;
  --link: #297fd5;
  --ink: #16233b;
  --muted: #5d6d87;
  --line: #e3edf9;
  --tint: #f6faff;
  --white: #ffffff;

  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-soft: 0 8px 26px rgba(41, 127, 213, .10);
  --shadow: 0 20px 48px rgba(15, 46, 79, .13);
  --shadow-lg: 0 30px 70px rgba(15, 46, 79, .18);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Consolas", "SF Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--white);
  background-image:
    radial-gradient(900px 420px at 100% 0%, rgba(118, 173, 229, .12), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(209, 228, 245, .35), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- Прогресс чтения ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--link));
  box-shadow: 0 0 12px rgba(41, 127, 213, .5);
  z-index: 99;
  transition: width .1s linear;
}

/* ---------- Кнопки: пилюли auth-register ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn--light { background: var(--blue-light); color: var(--link); }
.btn--light:hover {
  background: var(--blue-light-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn--soft {
  background: var(--white);
  color: var(--link);
  border-color: var(--blue-light);
}
.btn--soft:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(41, 127, 213, .4);
}
.btn--ghost { background: var(--white); color: var(--link); border-color: var(--blue-light); }
.btn--ghost:hover { background: var(--blue-light); }

/* ---------- Пилюли-метки ---------- */
.pill {
  display: inline-block;
  background: var(--blue-light);
  color: var(--link);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
}

/* ---------- Боковая панель (светлая) ---------- */
.side {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(15, 46, 79, .06);
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  z-index: 80;
  transition: transform .3s ease;
}
.side__brand img { height: 34px; width: auto; }
.side__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--link);
  display: flex;
  align-items: center;
  gap: 8px;
}
.side__tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(118, 173, 229, .9);
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .3; } }

.side__nav { display: flex; flex-direction: column; gap: 3px; }
.side__nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 13px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: all .18s ease;
}
.side__nav a:hover {
  color: var(--link);
  background: var(--tint);
  border-left-color: var(--blue-light);
}
.side__nav a.is-active {
  color: var(--link);
  background: var(--blue-light);
  border-left-color: var(--blue);
  font-weight: 700;
}

.side__keys { display: flex; flex-wrap: wrap; gap: 6px; }
.side__keys a {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--link);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  transition: all .18s ease;
}
.side__keys a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.side__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.side__actions .btn { width: 100%; }

/* ---------- Мобильная шапка ---------- */
.mobar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 90;
}
.mobar img { height: 28px; width: auto; }
.burger {
  width: 44px; height: 40px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.burger span {
  width: 18px; height: 2px;
  background: var(--link);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Контент ---------- */
.shell {
  margin-left: 300px;
  min-height: 100vh;
  background: rgba(255, 255, 255, .55);
}
.container {
  width: min(1140px, 100% - 56px);
  margin-inline: auto;
}

/* ---------- Бегущая строка ключей ---------- */
.ticker {
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.ticker__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: slide 34s linear infinite;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--link);
}
.ticker__track span::before { content: "▸ "; color: var(--blue); }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Заголовки секций ---------- */
.section { padding: 70px 0; }
.section--tint {
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(118, 173, 229, .12), transparent 60%),
    var(--tint);
  border-block: 1px solid var(--line);
}

.seclabel {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seclabel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-light), transparent);
}
.section__title {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -.6px;
}
.section__note { color: var(--muted); font-size: 16.5px; margin-top: 12px; }
.section__head { margin-bottom: 38px; }
.section__head--center { text-align: center; }
.section__head--center .seclabel { justify-content: center; }
.section__head--center .seclabel::after { display: none; }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  top: -200px; right: -160px;
  background: radial-gradient(circle, rgba(118, 173, 229, .3), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--link);
  background: var(--blue-light);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--link);
  box-shadow: 0 0 8px rgba(41, 127, 213, .7);
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--link), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.stat b {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--link);
  line-height: 1.2;
}
.stat span { font-size: 13px; color: var(--muted); }

/* Экран в рамке */
.hero__visual { position: relative; }
.hero__screen {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  transform: rotate(-1.2deg);
}
.hero__screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px 12px;
}
.hero__screen-bar b { color: var(--link); font-weight: 700; }
.hero__screen img { border-radius: var(--r-md); border: 1px solid var(--line); }
.hero__float {
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--white);
  border: 1px solid var(--blue-light);
  color: var(--link);
  border-radius: 999px;
  padding: 9px 17px;
  box-shadow: var(--shadow);
  animation: bob 4.5s ease-in-out infinite;
}
.hero__float--1 { top: -16px; right: 18px; }
.hero__float--2 { bottom: -16px; left: 18px; animation-delay: 1.6s; background: var(--blue); color: #fff; border-color: transparent; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ---------- Точки входа (ключи) ---------- */
.keygrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.key {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--link);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 6px;
  box-shadow: var(--shadow-soft);
  transition: all .18s ease;
}
.key:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 16px 34px rgba(41, 127, 213, .32);
  transform: translateY(-3px);
}

/* ---------- Квестовые карточки ---------- */
.quests {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quest {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.quest:hover {
  transform: translateY(-7px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.quest__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}
.quest__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.quest:hover .quest__media img { transform: scale(1.07); }
.quest__id {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--link);
  border-radius: 999px;
  padding: 4px 11px;
}
.quest__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.quest__type {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--link);
}
.quest__title {
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 700;
  transition: color .2s ease;
}
.quest:hover .quest__title { color: var(--link); }
.quest__text { font-size: 14px; color: var(--muted); flex: 1; }
.quest__bar {
  height: 6px;
  background: var(--blue-light);
  border-radius: 999px;
  overflow: hidden;
}
.quest__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--link), var(--blue));
}
.quest__go {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--link);
  background: var(--blue-light);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all .18s ease;
}
.quest__go:hover { background: var(--blue); color: #fff; }
.quest__go::after { content: " →"; }

/* ---------- Локации (маркеты) ---------- */
.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.loc {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: all .2s ease;
}
.loc:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.loc__logo {
  flex: 0 0 80px;
  height: 60px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--tint), var(--blue-light));
  border-radius: var(--r-md);
  padding: 8px;
  overflow: hidden;
}
.loc__logo img { max-height: 44px; max-width: 100%; object-fit: contain; }
.loc__info { display: flex; flex-direction: column; }
.loc__name { font-size: 16.5px; font-weight: 700; }
.loc__note { font-size: 13px; color: var(--muted); }
.loc__go {
  margin-left: auto;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--link);
  background: var(--blue-light);
  border-radius: 50%;
  transition: all .2s ease;
}
.loc:hover .loc__go { background: var(--blue); color: #fff; }

/* ---------- Этапы ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stage {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stage:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stage__n {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--link);
  margin-bottom: 12px;
}
.stage h3 { font-size: 19px; margin-bottom: 8px; }
.stage p { font-size: 15px; color: var(--muted); }
.stage__dots { display: flex; gap: 6px; margin-top: 16px; }
.stage__dots i {
  width: 26px; height: 5px;
  border-radius: 999px;
  background: var(--blue-light);
}
.stage__dots i.on { background: var(--blue); box-shadow: 0 0 8px rgba(118, 173, 229, .8); }

/* ---------- Промо ---------- */
.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(118, 173, 229, .35), transparent 65%),
    linear-gradient(140deg, var(--tint), var(--blue-light));
  border: 1px solid var(--blue-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 40px;
}
.promo__media {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}
.promo__media img { width: 100%; border-radius: var(--r-md); }
.promo__body h2 { font-size: clamp(23px, 2.8vw, 32px); letter-spacing: -.6px; margin: 14px 0 12px; }
.promo__body p { color: var(--muted); font-size: 16.5px; margin-bottom: 20px; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 24px 0 76px; }
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background:
    radial-gradient(460px 240px at 88% 10%, rgba(118, 173, 229, .45), transparent 65%),
    var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 44px 42px;
}
.cta__text { max-width: 560px; }
.cta__text h2 { font-size: clamp(23px, 3vw, 34px); letter-spacing: -.6px; margin: 12px 0 8px; }
.cta__text p { color: var(--muted); font-size: 16.5px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Крошки ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 26px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.crumbs a {
  color: var(--link);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  text-transform: none;
}
.crumbs a:hover { background: var(--blue-light); }
.crumbs span { color: var(--blue); }

/* ---------- Шапка страницы ---------- */
.pagehead { padding: 32px 0 4px; }
.pagehead h1 {
  font-size: clamp(29px, 3.7vw, 45px);
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 6px 0 16px;
  max-width: 940px;
}
.pagehead__lead { font-size: 19px; color: var(--muted); max-width: 780px; }
.pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pagehead__meta span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .8px;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
}

/* ---------- Статья ---------- */
.article {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
  padding: 36px 0 76px;
}
.article__body h2 {
  font-size: clamp(21px, 2.5vw, 30px);
  letter-spacing: -.5px;
  margin: 36px 0 14px;
  padding-left: 16px;
  border-left: 5px solid var(--blue);
  border-radius: 4px;
}
.article__body h2:first-child { margin-top: 0; }
.article__body h3 { font-size: 18.5px; margin: 24px 0 10px; color: var(--link); }
.article__body p { font-size: 17px; color: #33415c; margin-bottom: 16px; }
.article__body ul,
.article__body ol { margin: 0 0 18px 22px; color: #33415c; font-size: 17px; }
.article__body li { margin-bottom: 8px; }
.article__body strong { color: var(--ink); }
.article__body--wide { max-width: 860px; margin-inline: auto; }

.article__aside {
  position: sticky;
  top: 26px;
  display: grid;
  gap: 16px;
}
.hud-card {
  background: rgba(246, 250, 255, .92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 20px;
}
.hud-card h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 14px;
}
.hud-card ul { list-style: none; display: grid; gap: 9px; }
.hud-card a { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hud-card a:hover { color: var(--link); }
.aside-keys { display: flex; flex-wrap: wrap; gap: 7px; }
.aside-keys a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--link);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.aside-keys a:hover { background: var(--blue-light); }

/* ---------- Страница локации (маркета) ---------- */
.mkhero {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(118, 173, 229, .3), transparent 65%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 40px;
}
.mkhero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
}
.mkhero__logo {
  background: linear-gradient(140deg, var(--tint), var(--blue-light));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: grid;
  place-items: center;
  min-height: 160px;
}
.mkhero__logo img { max-height: 110px; max-width: 100%; object-fit: contain; }
.mkhero h1 {
  font-size: clamp(27px, 3.5vw, 42px);
  letter-spacing: -1px;
  line-height: 1.14;
  margin: 6px 0 14px;
}
.mkhero__lead { font-size: 18px; color: var(--muted); margin-bottom: 22px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  transition: all .2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--link);
  display: block;
  margin-bottom: 10px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Футер (светлый) ---------- */
.footer {
  background: var(--tint);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr .9fr;
  gap: 30px;
  padding-bottom: 28px;
}
.footer__brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 14.5px; color: var(--muted); max-width: 320px; margin-bottom: 14px; }

.footer__col h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  padding: 5px 0;
  transition: color .18s ease, transform .18s ease;
}
.footer__col a:hover { color: var(--link); transform: translateX(4px); }

.footer__keys {
  background: var(--white);
  border: 1px dashed var(--blue-light);
  border-radius: var(--r-md);
  padding: 15px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  line-height: 1.9;
  margin-bottom: 22px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .8px;
}

/* ---------- Появление ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .hero__float { animation: none; }
  .side__tag::before { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1120px) {
  .quests { grid-template-columns: repeat(3, 1fr); }
  .keygrid { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .article { grid-template-columns: 1fr; }
  .article__aside { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .side { transform: translateX(-100%); width: 280px; }
  .side.is-open { transform: translateX(0); box-shadow: 0 0 60px rgba(15, 46, 79, .25); }
  .mobar { display: flex; }
  .shell { margin-left: 0; padding-top: 58px; }
  .container { width: min(1140px, 100% - 36px); }

  .hero__grid,
  .promo,
  .mkhero__inner { grid-template-columns: 1fr; }
  .hero__screen { transform: none; }
  .quests,
  .locations { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .quests,
  .locations,
  .features { grid-template-columns: 1fr; }
  .keygrid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .hero__actions .btn,
  .cta__actions .btn { flex: 1 1 100%; }
  .article__aside { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .promo, .mkhero, .cta { padding: 26px 20px; }
}
