/* ==========================================================================
   Vice Guide — неон, закат, Леонида
   ========================================================================== */
:root {
  --bg: #0b0716;
  --bg-2: #120a24;
  --bg-3: #1a0f33;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f6efff;
  --muted: #b6a8cf;
  --dim: #8a7ba6;
  --pink: #ff3c8e;
  --magenta: #c13cff;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --teal: #22e1d6;
  --grad: linear-gradient(100deg, #ffd23f 0%, #ff8a3d 28%, #ff3c8e 62%, #c13cff 100%);
  --grad-cool: linear-gradient(100deg, #22e1d6, #3b82ff 55%, #c13cff);
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --header-h: 72px;
  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-script: 'Pacifico', 'Brush Script MT', cursive;
  --shadow-glow: 0 0 0 1px rgba(255, 60, 142, .25), 0 20px 60px -20px rgba(255, 60, 142, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::after { /* плёночное зерно */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(193, 60, 255, .14), transparent 60%),
    radial-gradient(800px 600px at 100% 30%, rgba(255, 60, 142, .10), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(34, 225, 214, .09), transparent 60%);
}
img, svg { max-width: 100%; display: block; }
main { overflow-x: clip; }
.article-layout > *, .grid-2 > *, .grid-3 > *, .map-wrap > * { min-width: 0; }
a { color: var(--yellow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--yellow); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 7, 22, .55); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(11, 7, 22, .86); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--text); white-space: nowrap; }
.logo-vice { font-family: var(--f-script); font-size: 1.75rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(255, 60, 142, .5)); padding-right: 4px; }
.logo-guide { font-family: var(--f-display); font-weight: 900; font-size: .95rem; letter-spacing: .14em; }
.logo-six { font-family: var(--f-display); font-weight: 900; font-size: .8rem; color: var(--bg); background: var(--grad); border-radius: 6px; padding: 1px 6px; transform: translateY(-2px); }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: .94rem; text-decoration: none; transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--pink); }
.caret { width: 10px; height: 6px; transition: transform .2s; }
.has-sub { position: relative; }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
.main-nav .sub {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 270px;
  display: grid; gap: 2px; padding: 8px; border-radius: 16px;
  background: rgba(20, 12, 38, .97); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.main-nav .sub::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; border-radius: 10px; padding: 10px 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- scene ---------- */
.scene { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.scene svg { width: 100%; height: 100%; }
.scene .layer { transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.scene .tw { animation: twinkle 4s ease-in-out infinite; }
.scene .tw1 { animation-delay: -1.3s; } .scene .tw2 { animation-delay: -2.6s; animation-duration: 5s; }
.scene .sun { animation: sunPulse 9s ease-in-out infinite; transform-origin: 800px 545px; }
.scene .halo { animation: haloPulse 9s ease-in-out infinite; transform-origin: 800px 545px; }
.scene .shimmer { animation: shimmer 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene .palm { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.scene .palm.p2, .scene .palm.p4 { animation-duration: 6s; animation-delay: -2s; }
.scene .palm.p3 { animation-duration: 8s; animation-delay: -4s; }
.palm .rings path, .palm .teeth { fill: none; stroke: #07040f; stroke-width: 2; }
.palm .rings path { stroke: rgba(255, 140, 180, .08); }
.scene .windows { animation: twinkle 6s ease-in-out infinite; }
.scene .windows.w1 { animation-delay: -2s; } .scene .windows.w2 { animation-delay: -4s; }
.scene .birds { animation: birds 18s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9 } 50% { opacity: .25 } }
@keyframes sunPulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.025) } }
@keyframes haloPulse { 0%, 100% { opacity: .9; transform: scale(1) } 50% { opacity: 1; transform: scale(1.08) } }
@keyframes shimmer { 0%, 100% { opacity: .85; transform: scaleX(1) } 50% { opacity: .35; transform: scaleX(.75) } }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg) } 50% { transform: rotate(1.4deg) } }
@keyframes birds { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(40px, -14px) } }

/* ---------- home hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: min(100svh, 980px); margin-top: calc(var(--header-h) * -1);
  display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 120px; overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 220px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero::before { /* затемнение под текстом */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 55% at 50% 40%, rgba(11, 7, 22, .55), transparent 70%);
}
.hero-inner { text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(11, 7, 22, .55); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 26px;
}
.hero-badge b { background: var(--grad); color: #1a0820; padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .08em; }
.hero-title { margin: 0; line-height: .9; }
.hero-title .script {
  display: block; font-family: var(--f-script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.4rem);
  color: #fff; text-shadow: 0 0 24px rgba(255, 60, 142, .9), 0 0 60px rgba(255, 60, 142, .6); transform: rotate(-4deg); margin-bottom: -.15em;
}
.hero-title .big {
  display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(4.6rem, 17vw, 13rem); letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff6c9 0%, #ffd23f 22%, #ff8a3d 48%, #ff3c8e 74%, #c13cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 0 rgba(11, 7, 22, .65)) drop-shadow(0 0 40px rgba(255, 60, 142, .45));
}
.hero-sub { max-width: 640px; margin: 22px auto 34px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #f3e6ff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  --b: var(--grad); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font: 800 .98rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 0;
  color: #1a0820; background: var(--b); box-shadow: 0 12px 36px -10px rgba(255, 60, 142, .7);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { color: #1a0820; transform: translateY(-2px); box-shadow: 0 18px 46px -10px rgba(255, 60, 142, .9); }
.btn-ghost { background: rgba(11, 7, 22, .5); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- countdown ---------- */
.countdown { margin: 34px auto 0; }
.cd-grid { display: inline-grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cd-unit {
  min-width: 96px; padding: 16px 10px 12px; border-radius: 18px; text-align: center;
  background: rgba(11, 7, 22, .55); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
}
.cd-num { display: block; font: 900 clamp(1.7rem, 4vw, 2.6rem)/1 var(--f-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cd-label { display: block; margin-top: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
.cd-done { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; background: rgba(11, 7, 22, .6); border: 1px solid var(--line-2); font: 700 1.05rem var(--f-display); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 0 0 rgba(61, 255, 154, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(61, 255, 154, 0) } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0) } }

/* ---------- ticker ---------- */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,60,142,.14), rgba(193,60,255,.14)); transform: rotate(-1.2deg); margin: -40px -20px 0; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 16px 28px; font: 800 1rem var(--f-display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker span:nth-child(odd) { color: var(--yellow); }
.ticker i { font-style: normal; color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%) } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-title { max-width: 760px; }
.section-title .kicker, .kicker {
  display: block; font-family: var(--f-script); font-size: 1.45rem; font-weight: 400; letter-spacing: 0;
  color: var(--pink); text-shadow: 0 0 18px rgba(255, 60, 142, .55); margin-bottom: 6px; line-height: 1.3;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 520px; color: var(--muted); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- cards ---------- */
.card {
  position: relative; padding: 28px; border-radius: var(--radius); isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s;
}
.card::before { /* градиентная рамка на hover */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-link { display: block; text-decoration: none; color: var(--text); }
.card-link:hover { color: var(--text); transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: transparent; }
.card-link:hover::before { opacity: 1; }
.card-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 210, 63, .2), rgba(255, 60, 142, .25)); border: 1px solid rgba(255, 140, 180, .3);
}
.card-more { display: inline-block; margin-top: 16px; font-weight: 800; font-size: .9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* быстрые факты */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.fact { background: var(--bg-2); padding: 28px 24px; }
.fact dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); font-weight: 800; margin-bottom: 10px; }
.fact dd { margin: 0; font: 700 1.25rem/1.25 var(--f-display); }
.fact dd small { display: block; font: 500 .88rem var(--f-body); color: var(--muted); margin-top: 6px; }

/* фичер-блок */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 60, 142, .16), rgba(193, 60, 255, .1) 50%, rgba(34, 225, 214, .08));
  border: 1px solid var(--line-2);
}
.feature-visual { position: relative; aspect-ratio: 8 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px #000; }
.feature-visual .leonida-map { width: 100%; height: 100%; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: #e9dcfb; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.5 17.3L5.3 12l1.8-1.8 3.4 3.4 6.4-6.4 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.5 17.3L5.3 12l1.8-1.8 3.4 3.4 6.4-6.4 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- персонажи ---------- */
.chars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.char {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; isolation: isolate;
  border: 1px solid var(--line-2); text-decoration: none; color: #fff; display: block;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.char-art, .char-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.char-photo + .char-shade, .char-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(11, 7, 22, .9)); }
.char:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 30px 70px -25px rgba(255, 60, 142, .7); color: #fff; }
.char:hover .char-art, .char:hover .char-photo { transform: scale(1.06); }
.char-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.char-role { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(11, 7, 22, .6); border: 1px solid rgba(255, 255, 255, .25); margin-bottom: 10px; }
.char-name { font: 900 1.35rem/1.05 var(--f-display); margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.char.lead { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
.char.lead .char-name { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.char-profile { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; padding: 36px 0; border-top: 1px solid var(--line); }
.char-profile:first-of-type { border-top: 0; }
.char-profile .char { aspect-ratio: 3 / 4; position: sticky; top: calc(var(--header-h) + 20px); }
.char-profile h2 { margin-bottom: .3em; }
.char-profile .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: #ecdfff; }
.char-profile p { color: #e3d6f5; }

/* ---------- карта ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(34, 225, 214, .35); }
.map-badge { position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(11, 7, 22, .75); border: 1px solid var(--line-2); }
.leonida-map { display: block; width: 100%; height: auto; }
.leonida-map .region polygon, .leonida-map .keys ellipse, .leonida-map .vice-beach { fill: #2b1b4f; stroke: #ff79b5; stroke-width: 1.6; stroke-linejoin: round; transition: fill .3s, filter .3s; }
.leonida-map .region { cursor: pointer; outline: none; }
.leonida-map .region text { font: 700 15px var(--f-display); fill: #f6efff; pointer-events: none; paint-order: stroke; stroke: #0b0716; stroke-width: 4px; }
.leonida-map .region:hover polygon, .leonida-map .region:focus polygon, .leonida-map .region.active polygon,
.leonida-map .region:hover .keys ellipse, .leonida-map .region.active .keys ellipse, .leonida-map .region:focus .keys ellipse { fill: #ff3c8e; filter: drop-shadow(0 0 14px rgba(255, 60, 142, .9)); }
.leonida-map .region polygon { fill: var(--fill, #2b1b4f); }
.leonida-map .region[data-region="mount-kalaga"] { --fill: #24305a; }
.leonida-map .region[data-region="grassrivers"] { --fill: #1f3b46; }
.leonida-map .region[data-region="ambrosia"] { --fill: #3a2350; }
.leonida-map .region[data-region="port-gellhorn"] { --fill: #322448; }
.leonida-map .region[data-region="vice-city"] { --fill: #4a1d5a; }
.leonida-map .region:hover, .leonida-map .region:focus-visible, .leonida-map .region.active { --fill: #ff3c8e; }
.leonida-map .keys-road { fill: none; stroke: #ffd23f; stroke-width: 1.4; stroke-dasharray: 5 6; opacity: .7; }
.leonida-map .lake { fill: #12305a; stroke: #22e1d6; stroke-opacity: .5; pointer-events: none; }
.leonida-map .poi-city { fill: var(--yellow); }
.leonida-map .poi-pulse { fill: none; stroke: var(--yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: poi 2.2s ease-out infinite; }
@keyframes poi { from { transform: scale(.4); opacity: 1 } to { transform: scale(2.2); opacity: 0 } }
.leonida-map .poi-label, .leonida-map .compass text, .leonida-map .sea-label { font: 600 13px var(--f-body); fill: #b6a8cf; }
.leonida-map .sea-label { font: 400 22px var(--f-script); fill: #22e1d6; opacity: .55; }
.map-panel { position: sticky; top: calc(var(--header-h) + 20px); }
.map-panel .card { min-height: 300px; }
.map-panel .hint { color: var(--dim); font-size: .9rem; }
.region-list { display: grid; gap: 16px; margin-top: 40px; }
.region-card { scroll-margin-top: calc(var(--header-h) + 20px); }
.region-card.active { border-color: var(--pink); box-shadow: var(--shadow-glow); }
.region-card .k { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--teal); }

/* ---------- видео ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(255, 60, 142, .45); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s, filter .4s; filter: saturate(1.1) brightness(.8); }
.yt-play:hover img { transform: scale(1.04); filter: saturate(1.2) brightness(.95); }
.yt-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 7, 22, .85)); }
.yt-btn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1a0820; z-index: 1; box-shadow: 0 0 0 10px rgba(255, 60, 142, .2), 0 20px 50px -10px rgba(255, 60, 142, .9); transition: transform .3s; }
.yt-btn svg { width: 36px; height: 36px; margin-left: 4px; }
.yt-play:hover .yt-btn { transform: scale(1.1); }
.yt-play:focus-visible .yt-btn { outline: 3px solid #fff; outline-offset: 4px; }
.yt-label { position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 1; font: 700 1.05rem var(--f-display); }

/* ---------- таймлайн ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--yellow), var(--pink), var(--magenta), transparent); }
.timeline li { position: relative; padding: 0 0 30px 20px; }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--pink); box-shadow: 0 0 14px rgba(255, 60, 142, .8); }
.timeline li.now::before { border-color: #3dff9a; box-shadow: 0 0 16px rgba(61, 255, 154, .9); }
.timeline time { display: inline-block; font: 700 .82rem var(--f-display); letter-spacing: .06em; color: var(--yellow); margin-bottom: 4px; }
.timeline h3 { font-size: 1.08rem; margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(255, 60, 142, .5); background: linear-gradient(180deg, rgba(255, 60, 142, .08), rgba(255, 255, 255, .02)); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 700 1.04rem/1.35 var(--f-display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .07); transition: transform .3s, background .3s; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; translate: -50% -50%; border-radius: 2px; }
.faq-item summary i::after { transform: rotate(90deg); transition: transform .3s; }
.faq-item[open] summary i { background: var(--pink); transform: rotate(180deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 24px 22px; color: #e3d6f5; }
.faq-a p:last-child { margin: 0; }

/* ---------- page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 50px) 0 90px; min-height: 480px; display: flex; align-items: flex-end; }
.page-hero .scene { opacity: .95; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 7, 22, .88) 0%, rgba(11, 7, 22, .45) 60%, rgba(11, 7, 22, .2)); }
.page-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.page-hero-inner { position: relative; }
.page-hero .crumbs { padding: 0; margin-bottom: 36px; }
.page-title { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 900; max-width: 900px; margin: 0 0 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.page-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 720px; color: #f0e4ff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.byline { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.byline .dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- статьи ---------- */
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 30px; padding-bottom: 60px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: .92rem; }
.toc-title { font: 700 .78rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: #fff; }
.toc li::marker { color: var(--dim); font-weight: 700; }
.prose { max-width: 780px; }
.prose > h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 2em 0 .7em; padding-top: .2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.18rem; }
.prose p, .prose li { color: #e7dbf7; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--pink); }
.prose strong { color: #fff; }
.prose .card { margin: 1.5em 0; }
.callout { position: relative; padding: 20px 24px 20px 64px; border-radius: var(--radius); margin: 1.6em 0; background: rgba(34, 225, 214, .07); border: 1px solid rgba(34, 225, 214, .3); }
.callout::before { content: 'i'; position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem var(--f-display); background: var(--teal); color: var(--bg); }
.callout.warn { background: rgba(255, 138, 61, .08); border-color: rgba(255, 138, 61, .4); }
.callout.warn::before { content: '!'; background: var(--orange); }
.callout.danger { background: rgba(255, 60, 142, .08); border-color: rgba(255, 60, 142, .45); }
.callout.danger::before { content: '✕'; background: var(--pink); color: #fff; }
.callout p:last-child { margin: 0; }
.callout strong { color: #fff; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border-radius: var(--radius); border: 1px solid var(--line-2); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .78rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); background: rgba(255, 255, 255, .04); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
td code, .prose code { font: 600 .9em ui-monospace, 'Cascadia Code', Consolas, monospace; background: rgba(255, 210, 63, .1); color: var(--yellow); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding: 18px 20px 18px 70px; border-radius: var(--radius); background: rgba(255, 255, 255, .035); border: 1px solid var(--line); margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 900 1rem var(--f-display); background: var(--grad); color: #1a0820; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.6em 0; }
.stat { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.stat b { display: block; font: 900 1.7rem/1.1 var(--f-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .88rem; color: var(--muted); }
.label { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.label.ok { background: rgba(61, 255, 154, .14); color: #3dff9a; }
.label.no { background: rgba(255, 60, 142, .14); color: #ff79b5; }
.label.wait { background: rgba(255, 210, 63, .14); color: var(--yellow); }

/* editions */
.editions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 1.6em 0; }
.edition { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); position: relative; overflow: hidden; }
.edition.hot { background: linear-gradient(160deg, rgba(255, 60, 142, .18), rgba(193, 60, 255, .1)); border-color: rgba(255, 60, 142, .5); }
.edition .price { font: 900 2.4rem/1 var(--f-display); margin: 12px 0 4px; }
.edition .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.edition ul { padding-left: 1.2em; margin: 14px 0 0; }

/* ---------- related / footer ---------- */
.related { padding-bottom: 90px; }
.related .section-title { margin-bottom: 30px; }
.site-footer { position: relative; margin-top: 40px; background: linear-gradient(180deg, #07040f, #0b0716); border-top: 1px solid var(--line); }
.palm-divider { position: absolute; left: 0; right: 0; bottom: 100%; height: 110px; pointer-events: none; }
.palm-divider svg { width: 100%; height: 100%; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 50px; padding-bottom: 40px; }
.footer-grid .logo { margin-bottom: 16px; }
.footer-grid p { font-size: .94rem; max-width: 420px; }
.footer-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 34px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }
.footer-bottom p { margin: 0; max-width: 820px; }
.footer-bottom a { color: var(--muted); }
.to-top { white-space: nowrap; text-decoration: none; color: var(--muted) !important; }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 14px 14px 14px 22px; border-radius: 20px;
  background: rgba(20, 12, 38, .96); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -20px #000; font-size: .9rem;
}
.cookie p { margin: 0; color: var(--muted); }
.cookie .btn { flex: none; padding: 11px 20px; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.notfound h1 { font-size: clamp(5rem, 20vw, 12rem); font-weight: 900; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wasted { font: 900 clamp(1.6rem, 5vw, 3rem) var(--f-display); letter-spacing: .1em; color: #ff3c5f; text-shadow: 0 0 30px rgba(255, 60, 95, .8); text-transform: uppercase; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .mobile-nav { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: rgba(11, 7, 22, .98); backdrop-filter: blur(20px); padding: 20px 24px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s; }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .mobile-nav a { display: block; padding: 14px 6px; font: 700 1.3rem var(--f-display); color: #fff; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav .sub-item a { font: 600 1.02rem var(--f-body); color: var(--muted); padding-left: 22px; }
  .chars { grid-template-columns: repeat(3, 1fr); }
  .char.lead { grid-column: span 1; aspect-ratio: 3 / 4; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .editions { grid-template-columns: 1fr; }
  .feature, .map-wrap { grid-template-columns: 1fr; }
  .map-panel { position: static; }
  .chars { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .char-profile { grid-template-columns: 1fr; gap: 24px; }
  .char-profile .char { position: relative; top: 0; max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cd-grid { gap: 8px; }
  .cd-unit { min-width: 0; padding: 12px 6px 10px; }
  .facts { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .char-info { padding: 14px; }
  .char-name { font-size: 1.05rem; }
  .footer-bottom { flex-direction: column; }
  .page-hero { min-height: 420px; padding-bottom: 60px; }
  .card { padding: 22px; }
  .steps > li { padding: 64px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
