/* ==========================================================================
   TripScan · ТрипСкан Вход — дизайн v11 «Удар»
   Светлая палитра сохранена: #D1E4F5 / #76ADE5 / #297FD5.
   Агрессивная подача: жирный капс, толстые рамки ink, жёсткие тени со
   смещением, диагональные полосы, скошенные метки. Кнопки — прежние, pill.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --tint: #eef5fd;
  --ink: #0a1424;
  --muted: #46586f;
  --line: #0a1424;
  --light: #d1e4f5;
  --blue: #76ade5;
  --blue-d: #297fd5;
  --blue-dd: #1a5fa8;
  --ok: #12a05f;
  --radius: 4px;
  --shadow: 7px 7px 0 rgba(10, 20, 36, 0.9);
  --shadow-s: 4px 4px 0 rgba(10, 20, 36, 0.9);
  --font: "Arial Black", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-t: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-t);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-d); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.shell { min-height: 60vh; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(32px, 5.6vw, 58px); }
h2 { font-size: clamp(25px, 3.6vw, 38px); }
h3 { font-size: 20px; }

/* --- прогресс чтения ---------------------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 5px;
  width: 100%;
  background: repeating-linear-gradient(-45deg, var(--blue-d) 0 14px, var(--ink) 14px 28px);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 100;
}

/* --- шапка -------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img {
  width: 70px;
  height: auto;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-s);
  background: var(--light);
}
.brand__txt {
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 900;
  font-size: 21px;
  color: var(--ink);
  line-height: 1.05;
  text-transform: uppercase;
}
.brand__txt em {
  font-style: normal;
  font-family: var(--font-t);
  font-weight: 800;
  font-size: 11px;
  color: var(--blue-d);
  letter-spacing: 0.22em;
}

.pills {
  display: flex;
  gap: 4px;
  margin-left: auto;
  background: var(--tint);
  border: 3px solid var(--ink);
  padding: 5px;
}
.pills a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pills a:hover { background: var(--ink); color: var(--light); text-decoration: none; }

.top__act { display: flex; gap: 10px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  background: var(--light);
  box-shadow: var(--shadow-s);
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.burger.is-on span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-on span:nth-child(2) { opacity: 0; }
.burger.is-on span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- кнопки: прежние pill -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-t);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff;
  box-shadow: var(--shadow-s);
}
.btn--primary:hover { background: var(--blue-d); }

.btn--light {
  background: var(--light);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}
.btn--light:hover { background: #bfdcf4; }

.btn--soft {
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}
.btn--soft:hover { background: var(--tint); }

.btnrow { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- выдвижное меню --------------------------------------------------------- */
.mmenu { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mmenu.is-on { visibility: visible; }
.mmenu__bd {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 36, 0.6);
  opacity: 0;
  transition: opacity 0.25s;
}
.mmenu.is-on .mmenu__bd { opacity: 1; }

.mmenu__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(380px, 90vw);
  height: 100%;
  background: var(--bg);
  border-left: 4px solid var(--ink);
  box-shadow: -12px 0 0 rgba(41, 127, 213, 0.9);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mmenu.is-on .mmenu__panel { transform: translateX(0); }

.mmenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 3px solid var(--ink);
  background: var(--light);
  font-family: var(--font);
  font-size: 18px;
  text-transform: uppercase;
}
.mmenu__close {
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  background: var(--bg);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-s);
}
.mmenu__close:active { transform: translate(2px, 2px); box-shadow: none; }

.mmenu__links { display: flex; flex-direction: column; padding: 14px 22px; }
.mmenu__links a {
  padding: 12px 0;
  border-bottom: 2px dashed rgba(10, 20, 36, 0.35);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.mmenu__links a:hover { color: var(--blue-d); padding-left: 8px; transition: padding 0.15s; }
.mmenu__links a b { font-size: 17px; text-transform: uppercase; font-family: var(--font); }
.mmenu__label {
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  align-self: flex-start;
  padding: 4px 10px;
  font-weight: 900;
}
.mmenu__act {
  display: grid;
  gap: 10px;
  padding: 18px 22px 26px;
  border-top: 3px solid var(--ink);
  margin-top: auto;
}

/* --- hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0 clamp(42px, 5vw, 68px);
  background:
    repeating-linear-gradient(-45deg, rgba(118, 173, 229, 0.14) 0 26px, transparent 26px 52px),
    linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.hero::after {
  content: "TRIPSCAN · TRIPSCAN · TRIPSCAN · TRIPSCAN";
  position: absolute;
  left: -2%;
  bottom: -14px;
  font-family: var(--font);
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(41, 127, 213, 0.28);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero__in { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 940px; margin: 20px auto 0; }
.hero h1 em {
  font-style: normal;
  color: var(--blue-d);
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 8px;
}
.hero__lead {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--muted);
}
.hero__btns { justify-content: center; margin-top: 30px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--ink);
  color: var(--light);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: skewX(-10deg);
}
.badge > * { transform: skewX(10deg); }

/* быстрые адреса в hero */
.quick {
  max-width: 880px;
  margin: 40px auto 0;
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 18px 20px 22px;
  text-align: left;
}
.quick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
}
.quick__head a { font-weight: 900; white-space: nowrap; }
.quick__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.qkey {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--light);
  border: 3px solid var(--ink);
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.qkey:hover {
  background: var(--blue);
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.qkey:active { transform: translate(2px, 2px); box-shadow: none; }

/* статистика */
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 880px;
  margin: 34px auto 0;
  border: 3px solid var(--ink);
  background: var(--ink);
}
.stat {
  background: var(--bg);
  padding: 18px 12px;
  text-align: center;
  border-right: 3px solid var(--ink);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-family: var(--font);
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--blue-d);
  text-transform: uppercase;
}
.stat span {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* --- секции -------------------------------------------------------------------- */
.sec { padding: clamp(54px, 7vw, 88px) 0; }
.sec--tint {
  background:
    repeating-linear-gradient(-45deg, rgba(10, 20, 36, 0.04) 0 18px, transparent 18px 36px),
    var(--tint);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.sechead { max-width: 820px; margin-bottom: 36px; }
.sechead--center { margin-left: auto; margin-right: auto; text-align: center; }
.sechead__tag {
  display: inline-block;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--blue-d);
  padding: 7px 16px;
  margin-bottom: 16px;
  transform: skewX(-10deg);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.sechead h2 { margin-bottom: 10px; }
.sechead__note { color: var(--muted); font-size: 16.5px; font-weight: 600; }

/* --- панель адресов ------------------------------------------------------------- */
.keypanel {
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}
.keypanel__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 3px solid var(--ink);
  background: var(--light);
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.tab {
  min-height: 42px;
  padding: 0 16px;
  border: 3px solid var(--ink);
  background: var(--bg);
  font-family: var(--font-t);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.tab:hover { background: var(--tint); }
.tab.is-on { background: var(--ink); color: var(--light); }
.tab:active { transform: translate(2px, 2px); }
.keysearch {
  flex: 0 0 230px;
  min-height: 46px;
  padding: 0 16px;
  border: 3px solid var(--ink);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.keysearch:focus { box-shadow: 4px 4px 0 var(--blue-d); }

.keygrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px;
}
.keycard {
  border: 3px solid var(--ink);
  background: var(--bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.keycard:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.keycard.is-hidden { display: none; }
.keycard__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--blue-d);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  transform: skewX(-10deg);
}
.keycard__k {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}
.keycard__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--ok);
  letter-spacing: 0.14em;
}
.keycard__state i {
  width: 9px;
  height: 9px;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 160, 95, 0.25);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.keycard__act { display: flex; gap: 8px; margin-top: auto; }
.keycard__copy,
.keycard__open {
  flex: 1;
  min-height: 44px;
  border: 3px solid var(--ink);
  font-family: var(--font-t);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.keycard__copy { background: var(--bg); color: var(--ink); }
.keycard__copy:hover { background: var(--light); }
.keycard__copy.is-done { background: var(--ok); color: #fff; }
.keycard__open { background: var(--blue-d); color: #fff; }
.keycard__open:hover { background: var(--blue-dd); }
.keycard__copy:active, .keycard__open:active { transform: translate(2px, 2px); }
.keypanel__foot {
  padding: 14px 18px;
  border-top: 3px solid var(--ink);
  background: var(--light);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.keypanel__foot b { color: var(--blue-dd); }

/* --- карточки материалов ---------------------------------------------------------- */
.quests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.quests--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.qcard {
  background: var(--bg);
  border: 3px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition: transform 0.15s, box-shadow 0.15s;
}
.qcard:hover {
  transform: translate(-4px, -4px);
  box-shadow: 9px 9px 0 var(--ink);
}
.qcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--ink); }
.qcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, filter 0.3s; }
.qcard:hover .qcard__media img { transform: scale(1.06); filter: contrast(1.1); }
.qcard__id {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--light);
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
}
.qcard__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.qcard__type {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-d);
}
.qcard__title {
  font-family: var(--font);
  font-size: 18.5px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
}
.qcard__title:hover { color: var(--blue-d); text-decoration: none; }
.qcard__text { font-size: 15px; color: var(--muted); flex: 1; font-weight: 500; }
.qcard__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--blue-d);
  align-self: flex-start;
  padding-bottom: 2px;
}
.qcard__go::after { content: "→"; color: var(--blue-d); }
.qcard__go:hover { color: var(--blue-d); text-decoration: none; }
.qcard--sm { box-shadow: var(--shadow-s); }
.qcard--sm .qcard__body { padding: 15px; gap: 8px; }
.qcard--sm .qcard__title { font-size: 16px; }

/* --- локации ---------------------------------------------------------------------- */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.lcard {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 3px solid var(--ink);
  padding: 16px 18px;
  text-decoration: none;
  box-shadow: var(--shadow-s);
  transition: transform 0.12s, box-shadow 0.12s;
}
.lcard:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
  text-decoration: none;
}
.lcard__logo {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  background: var(--light);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lcard__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.lcard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lcard__name {
  font-family: var(--font);
  font-weight: 900;
  font-size: 17.5px;
  color: var(--ink);
  text-transform: uppercase;
}
.lcard__note { font-size: 14px; color: var(--muted); font-weight: 600; }
.lcard__go {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-d);
  white-space: nowrap;
  border: 3px solid var(--ink);
  background: var(--light);
  padding: 8px 12px;
}

/* --- шаги --------------------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--bg);
  border: 3px solid var(--ink);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  padding: 0 10px;
  background: var(--blue-d);
  color: #fff;
  border: 3px solid var(--ink);
  font-family: var(--font);
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 18px;
  transform: skewX(-10deg);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; font-weight: 500; }

/* --- FAQ аккордеон ------------------------------------------------------------------- */
.faq__wrap { max-width: 900px; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.fitem {
  background: var(--bg);
  border: 3px solid var(--ink);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.fitem.is-on { box-shadow: var(--shadow-s); }
.fitem__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 14px 20px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.fitem__q:hover { color: var(--blue-d); }
.fitem.is-on .fitem__q { background: var(--light); }
.fitem__ic {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  transition: transform 0.25s, background 0.2s;
}
.fitem.is-on .fitem__ic { transform: rotate(45deg); background: var(--blue-d); color: #fff; }
.fitem__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  padding: 0 20px;
}
.fitem.is-on .fitem__a { max-height: 320px; padding-bottom: 18px; }

/* --- баннер с изображением ----------------------------------------------------------- */
.band {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.band__media { min-height: 100%; border-right: 3px solid var(--ink); }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__txt { padding: 36px 34px; }
.band__txt h2 { margin: 14px 0 12px; }
.band__txt p { color: var(--muted); margin-bottom: 18px; font-weight: 600; }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.ticks li {
  position: relative;
  padding-left: 36px;
  font-weight: 800;
  font-size: 15.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ticks li::before {
  content: "»";
  position: absolute;
  left: 0; top: 0;
  width: 26px;
  height: 26px;
  background: var(--blue-d);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
}

/* --- CTA ------------------------------------------------------------------------------ */
.cta-wrap { padding: 0 0 clamp(54px, 7vw, 84px); }
.cta__txt { flex: 1 1 380px; }
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 0 22px, transparent 22px 44px),
    linear-gradient(120deg, var(--blue) 0%, var(--blue-d) 60%, var(--blue-dd) 100%);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 40px;
  color: #fff;
}
.cta__tag {
  display: inline-block;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--light);
  padding: 6px 14px;
  margin-bottom: 12px;
  transform: skewX(-10deg);
}
.cta h2 { color: #fff; margin-bottom: 10px; max-width: 580px; text-shadow: 3px 3px 0 rgba(10, 20, 36, 0.55); }
.cta p { opacity: 0.95; max-width: 520px; font-weight: 700; }
.cta__act { display: flex; gap: 12px; flex-wrap: wrap; }
.cta__act .btn--soft { background: #fff; }

/* --- подвал ------------------------------------------------------------------------------ */
.ftr {
  background: var(--tint);
  border-top: 4px solid var(--ink);
  padding: 56px 0 30px;
}
.ftr__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 3px solid var(--ink);
}
.ftr__brand img {
  width: 130px;
  margin-bottom: 14px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-s);
  background: var(--light);
}
.ftr__brand p { color: var(--muted); font-size: 15px; margin-bottom: 18px; max-width: 340px; font-weight: 600; }
.ftr__col { display: flex; flex-direction: column; gap: 9px; }
.ftr__col h4 {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  align-self: flex-start;
  padding: 5px 12px;
  margin-bottom: 8px;
}
.ftr__col a { color: var(--ink); font-size: 15px; text-decoration: none; font-weight: 700; }
.ftr__col a:hover { color: var(--blue-d); text-decoration: underline; }
.ftr__keys {
  padding: 16px 0;
  border-bottom: 3px solid var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
  word-break: break-word;
}
.ftr__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* --- крошки, заголовок статьи --------------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 6px;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-d); }
.crumbs__sep { color: var(--blue-d); font-weight: 900; }
.crumbs__cur { color: var(--ink); background: var(--light); padding: 3px 9px; border: 2px solid var(--ink); }

.ph { padding: 26px 0 8px; max-width: 900px; }
.ph h1 { margin: 18px 0 14px; }
.ph__lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); font-weight: 600; }
.ph__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ph__meta span {
  background: var(--bg);
  border: 3px solid var(--ink);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* --- статья: две колонки -------------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  padding: 30px 0 clamp(52px, 6vw, 78px);
  align-items: start;
}

.prose { max-width: 770px; }
.prose h2 {
  margin: 42px 0 16px;
  padding: 10px 0 10px 16px;
  border-left: 8px solid var(--blue-d);
  background: linear-gradient(90deg, var(--tint), transparent);
  scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: #1d2b40; font-weight: 500; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 10px; color: #1d2b40; font-weight: 500; }
.prose li::marker { color: var(--blue-d); font-weight: 900; }
.prose--center { max-width: 790px; margin: 0 auto; }

.aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.aside__blk {
  background: var(--bg);
  border: 3px solid var(--ink);
  padding: 18px;
  box-shadow: var(--shadow-s);
}
.aside__blk h3 { font-size: 15.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.toc { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 8px 10px;
  border: 2px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero) " » ";
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--blue-d);
  font-weight: 700;
}
.toc a:hover { background: var(--light); border-color: var(--ink); color: var(--ink); text-decoration: none; }
.minigrid { display: flex; flex-wrap: wrap; gap: 8px; }
.minigrid .minikey {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: var(--light);
  border: 3px solid var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}
.minigrid .minikey:hover {
  background: var(--blue);
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.aside__more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 900;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- страница локации -------------------------------------------------------------------------------------- */
.mh {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 26px 0 10px;
}
.mh__logo {
  background: var(--bg);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mh__logo img { max-height: 210px; width: auto; }
.mh__txt h1 { margin: 16px 0; font-size: clamp(26px, 4vw, 42px); }
.mh__txt .btnrow { margin-top: 20px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg);
  border: 3px solid var(--ink);
  padding: 22px 20px;
  box-shadow: var(--shadow-s);
  transition: transform 0.12s, box-shadow 0.12s;
}
.feature:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.feature__n {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--blue-d);
  border: 2px solid var(--ink);
  padding: 4px 12px;
  margin-bottom: 14px;
  transform: skewX(-10deg);
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* --- мобильная панель действий и «наверх» ---------------------------------------------------------------------- */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 4px solid var(--ink);
  box-shadow: 0 -6px 0 rgba(41, 127, 213, 0.9);
}
.actionbar__home {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  background: var(--light);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.actionbar .btn { flex: 1; padding: 0 12px; font-size: 13.5px; }

.totop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 65;
  width: 52px;
  height: 52px;
  background: var(--light);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--blue); }
.totop:active { transform: translate(2px, 2px); box-shadow: none; }

/* --- появление блоков ------------------------------------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-on { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- адаптив ------------------------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .pills { display: none; }
  .burger { display: flex; }
  .top__act { margin-left: auto; }
  .split { grid-template-columns: 1fr; }
  .aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside__blk { flex: 1 1 280px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .top__act { display: none; }
  .burger { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .band__media { border-right: none; border-bottom: 3px solid var(--ink); max-height: 280px; }
  .band__txt { padding: 26px; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 3px solid var(--ink); }
  .mh { grid-template-columns: 1fr; }
  .mh__logo { max-width: 300px; }
  .cta { padding: 30px 24px; box-shadow: 6px 6px 0 var(--ink); }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .actionbar { display: flex; }
  .totop { bottom: 94px; right: 16px; }
  .keygrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 14px; }
  .keysearch { flex: 1 1 100%; }
  .ftr__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .quests, .quests--3 { grid-template-columns: 1fr; }
  .locations { grid-template-columns: 1fr; }
  .hero__btns .btn { flex: 1 1 100%; }
  .brand__txt { font-size: 18px; }
  .quick__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .aside { flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 3px solid var(--ink); }
  .stat:last-child { border-bottom: none; }
}
