/* =========================================================
   Gtaway.com — landing
   Based on the "Другая версия" design system:
   dark editorial theme, lime accent, Oswald / Inter / JetBrains Mono
   ========================================================= */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/oswald-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/oswald-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/oswald-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/oswald-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/oswald-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/oswald-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
  --bg: #080a0d;
  --bg-soft: #0b0f14;
  --surface: #10151b;
  --surface-2: #151c24;
  --surface-3: #1b232d;
  --line: #242c36;
  --line-soft: #1a212a;
  --text: #e9edf3;
  --text-dim: #c2cad4;
  --muted: #94a1b0;
  --muted-2: #6c7887;

  --accent: #8dc63f;
  --accent-ink: #080a0d;
  --vi: #ff4d9d;
  --sign: #0f6b3e;
  --sign-2: #0b5732;

  --radius: 16px;
  --radius-sm: 10px;

  --font-display: 'Oswald', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --header-h: 68px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(1100px 520px at 50% -14%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 34%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 10px; color: var(--accent-ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.02em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 3.4vw, 40px); }
.section { padding-block: clamp(52px, 7vw, 100px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }

.section-head { display: grid; gap: 12px; margin-bottom: clamp(26px, 4vw, 40px); max-width: 760px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ---------- Header & logo ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); width: 100%; }

.logo {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; line-height: 1; letter-spacing: 0.01em; color: var(--text);
}
.logo:hover { color: var(--text); }
.logo .tld { color: var(--accent); }
.logo-pin { width: 26px; height: 32px; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-dim); white-space: nowrap; transition: background 0.16s var(--ease), color 0.16s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--text); }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); flex-shrink: 0; }
.lang a, .lang span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang [aria-current] { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: filter 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover { filter: brightness(1.12); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); filter: none; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.badge-accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.badge-vi { border-color: color-mix(in srgb, var(--vi) 45%, var(--line)); background: color-mix(in srgb, var(--vi) 14%, transparent); color: var(--vi); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); line-height: 0.95; letter-spacing: -0.005em; text-transform: uppercase; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 22px; max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-lead strong { color: var(--text-dim); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Atlas sheet: realistic fictional map with legend */
.atlas {
  position: relative; margin: 0; border-radius: 6px; padding: 10px;
  background: #e9e4d6; color: #22262b;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotate(0.6deg);
}
.atlas-frame { position: relative; overflow: hidden; border: 1px solid #23272c; aspect-ratio: 1 / 1; background: #0b2238; }
.atlas-frame img { width: 100%; height: 100%; object-fit: cover; }
.atlas-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 25% 25%;
}
.atlas-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(0.56rem, 1.1vw, 0.74rem); letter-spacing: 0.22em; text-transform: uppercase;
  color: #f4efe2; text-shadow: 0 0 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.6); white-space: nowrap;
}
.atlas-label.sea { color: #bfe0ee; font-style: italic; font-weight: 500; letter-spacing: 0.3em; }
.pin {
  position: absolute; width: 22px; height: 22px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: #12171d; border: 2px solid var(--c); color: var(--c);
  box-shadow: 0 0 0 2px rgba(0,0,0,.55), 0 4px 10px rgba(0,0,0,.6);
}
.pin svg { width: 11px; height: 11px; }
.pin.sq { border-radius: 6px; }
.pin.done { background: var(--c); color: #0b0f14; }
.pin.next::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--c);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.4); opacity: 0; } }

.atlas-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 4px 2px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #4c5157; }
.atlas-foot > * { white-space: nowrap; }
.atlas-foot b { font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.1em; color: #1a1d21; font-weight: 600; }
.scale { display: inline-flex; align-items: center; gap: 6px; }
.scale i { display: inline-block; width: 54px; height: 6px; border: 1px solid #2a2e33; background: linear-gradient(90deg, #2a2e33 50%, transparent 50%); }

.legend {
  position: absolute; right: -18px; bottom: 54px; width: 190px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(8px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.95); transform: rotate(-0.6deg);
}
.legend-title { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.78rem; color: var(--text-dim); }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); background: #12171d; flex-shrink: 0; }
.legend li i.sq { border-radius: 3px; }
.legend li i.done { background: var(--c); }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(44px, 6vw, 64px); background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.hero-facts div { background: var(--bg-soft); padding: 18px 20px; }
.hero-facts b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.hero-facts span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- GTA VI: road sign ---------- */
.vi { border-block: 1px solid var(--line-soft); background: radial-gradient(700px 360px at 90% 10%, color-mix(in srgb, var(--vi) 10%, transparent), transparent 70%), var(--bg-soft); }
.vi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.vi .eyebrow { color: var(--vi); }
.vi-copy p { color: var(--muted); }
.vi-copy p strong { color: var(--text); font-weight: 600; }

.sign-wrap { position: relative; padding-bottom: 70px; }
.sign-wrap::before, .sign-wrap::after {
  content: ''; position: absolute; bottom: 0; width: 12px; height: 92px;
  background: linear-gradient(90deg, #5b6066, #9aa0a6 45%, #4b5056); border-radius: 2px;
}
.sign-wrap::before { left: 22%; }
.sign-wrap::after { right: 22%; }
.sign {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--sign), var(--sign-2));
  border-radius: 14px; padding: 8px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
}
.sign-inner { border: 3px solid #f2f4f0; border-radius: 9px; padding: 16px 20px 18px; color: #f6f8f4; }
.sign-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sign-shield {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px;
  background: #f6f8f4; color: var(--sign-2); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em;
}
.sign-exit { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.92; }
.sign-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 12px; }
.sign-dest { font-family: var(--font-display); font-weight: 600; line-height: 1.02; font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: 0.01em; }
.sign-dest small { display: block; font-size: 0.5em; letter-spacing: 0.06em; opacity: 0.9; margin-top: 4px; }
.sign-dist { text-align: right; flex-shrink: 0; }
.sign-dist b { display: block; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.sign-dist span { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sign-arrow { width: 40px; height: 40px; }
.sign-sub { margin-top: 12px; padding-top: 10px; border-top: 2px solid rgba(246, 248, 244, 0.5); display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; }
.sign.is-out .sign-dist b { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.sign-note { margin-top: 12px; font-size: 0.78rem; color: var(--muted-2); text-align: center; }

.facts { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.facts dt, .facts dd { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); margin: 0; }
.facts dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); padding-top: 13px; }
.facts dd { font-size: 0.92rem; text-align: right; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface-2); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--accent); }
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 1.08rem; letter-spacing: 0.04em; text-transform: uppercase; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.feature .badge { position: absolute; top: 22px; right: 20px; }

/* ---------- Logbook ---------- */
.log-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.log-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.log-points li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.log-points b { display: block; color: var(--text); font-weight: 600; }
.log-points .num { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, transparent); }

.logbook { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95); }
.logbook-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.logbook-head h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; }
.logbook-head span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.log-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }
.log-row:last-child { border-bottom: 0; }
.log-year { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); grid-row: span 2; }
.log-title { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.04em; text-transform: uppercase; }
.log-state { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-align: right; grid-row: span 2; }
.log-state.ok { color: var(--accent); }
.log-state.vi { color: var(--vi); }
.log-bar { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.log-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c, var(--accent)); }
.logbook-foot { padding: 12px 20px; font-size: 0.74rem; color: var(--muted-2); border-top: 1px solid var(--line-soft); background: var(--bg-soft); }

/* ---------- Series route ---------- */
.series { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.era { margin-bottom: clamp(30px, 4vw, 46px); }
.era:last-child { margin-bottom: 0; }
.era-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.era-head h3 { font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.era-head .range { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); }
.route { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 14px; }
.stop::after { content: ''; position: absolute; left: 22px; right: -12px; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }
.stop:last-child::after { display: none; }
.stop { position: relative; padding-top: 26px; }
.stop::before { content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-soft); border: 3px solid var(--c, var(--line)); }
.stop-year { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.08em; display: flex; gap: 8px; align-items: center; }
.stop-title { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.15; }
.stop-setting { display: block; margin-top: 3px; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.stop.is-next::before { background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); }

/* ---------- Plan ---------- */
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { position: relative; padding: 22px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.step.is-now { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); }
.step-num { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.step h3 { margin: 12px 0 8px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.step p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); transition: border-color 0.16s var(--ease); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; letter-spacing: 0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent); font-size: 1.1rem; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 16px; color: var(--muted); font-size: 0.95rem; }
.faq .answer p:last-child { margin: 0; }
.faq .answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px; align-items: center;
  padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface);
}
.about h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.about p { color: var(--muted); margin: 10px 0 0; max-width: 58ch; }
.about-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); padding-block: 40px 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-top p { color: var(--muted-2); font-size: 0.84rem; max-width: 46ch; margin: 12px 0 0; }
.footer-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 0.86rem; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 0.74rem; color: var(--muted-2); line-height: 1.6; display: grid; gap: 6px; }
.legal p { margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-grid, .vi-grid, .log-grid { grid-template-columns: minmax(0, 1fr); }
  .atlas-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
  .legend { right: 8px; bottom: 44px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-cta { justify-content: flex-start; }
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .logo { font-size: 1.5rem; }
  .logo-pin { width: 22px; height: 27px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts b { font-size: 1.6rem; }
  .feature-grid, .plan { grid-template-columns: minmax(0, 1fr); }
  .legend { position: relative; left: 0; bottom: 0; width: auto; margin-top: 12px; transform: none; }
  .legend ul { grid-template-columns: 1fr 1fr; }
  .atlas { transform: none; }
  .atlas-foot > span:last-child { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { text-align: left; padding-top: 2px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .sign-inner { padding: 12px 14px 14px; }
  .sign-wrap::before { left: 16%; }
  .sign-wrap::after { right: 16%; }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop-title { font-size: 1rem; }
  .log-row { padding: 12px 16px; grid-template-columns: 44px minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
