/* ─────────────────────────────────────────────────────────────
   Княжество — лендинг.
   Шрифты лежат на сайте (OFL): Ruslan Display — заголовки,
   Kurale — текст и древнерусские цифры с титлом.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: 'Ruslan Display'; src: url('../fonts/ruslan.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Kurale'; src: url('../fonts/kurale.woff2') format('woff2'); font-display: swap; }

:root {
  --ink: #15100c;
  --ink-2: #1e1712;
  --ink-3: #2a2018;
  --night: #161a2c;
  --malachite: #17332c;
  --malachite-2: #1f4339;
  --parch: #f3e8cf;
  --parch-2: #eadbb8;
  --parch-3: #dcc79b;
  --cinnabar: #b5321f;
  --cinnabar-2: #d0442b;
  --ochre: #d39b3a;
  --gold: #e8c47c;
  --gold-2: #f5dca4;
  --azure: #2f5b93;
  --text-dark: #2b1e13;
  --muted-dark: #6e5a42;
  --text-light: #f3e8cf;
  --muted-light: #bfae90;
  --line-dark: rgba(43, 30, 19, .22);
  --line-light: rgba(232, 196, 124, .22);
  --display: 'Ruslan Display', 'Kurale', Georgia, serif;
  --serif: 'Kurale', Georgia, 'Times New Roman', serif;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 44px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --rhombs-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M7 1l6 6-6 6-6-6z' fill='none' stroke='%23e8c47c' stroke-width='1.2'/%3E%3Cpath d='M7 5l2 2-2 2-2-2z' fill='%23e8c47c'/%3E%3Ccircle cx='21' cy='7' r='1.3' fill='%23e8c47c'/%3E%3C/svg%3E");
  --rhombs-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M7 1l6 6-6 6-6-6z' fill='none' stroke='%23b5321f' stroke-width='1.2'/%3E%3Cpath d='M7 5l2 2-2 2-2-2z' fill='%23b5321f'/%3E%3Ccircle cx='21' cy='7' r='1.3' fill='%23b5321f'/%3E%3C/svg%3E");
  --titlo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M2 9.5c0-4 3-6 6-6 4 0 6 4 12 4s8-3 10-5.5c1.2-1.4 3.4-.6 3 1.2-.6 2.6-3 5.4-5 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font: 18px/1.65 var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cinnabar); color: var(--parch); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--cinnabar); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--gold); color: var(--ink); border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── типографика ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.paper .eyebrow { color: var(--cinnabar); }
.eyebrow-center { justify-content: center; }
.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(46px, 7.4vw, 112px); line-height: .98; letter-spacing: .01em;
  color: var(--gold-2);
}
.paper .h2 { color: var(--text-dark); }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; color: var(--text-dark); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 900px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head-row .section-lead { max-width: 440px; }
.section-lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted-light); max-width: 640px; }
.paper .section-lead { color: var(--muted-dark); }
.section-head-row .section-lead { margin-top: 0; }

/* древнерусская цифра с титлом */
.cnum { position: relative; display: inline-block; font-family: var(--serif); line-height: 1; padding-top: .18em; }
.cnum::before {
  content: ''; position: absolute; left: -.12em; right: -.12em; top: -.08em; height: .3em;
  background: currentColor; -webkit-mask: var(--titlo) center / 100% 100% no-repeat; mask: var(--titlo) center / 100% 100% no-repeat;
}
.cnum-big { font-size: 58px; color: var(--cinnabar); }

/* слова заголовков поднимаются по одному */
.js-motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js-motion [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.js-motion [data-split].is-in .w > span { transform: none; }

.js-motion [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ── кнопки ────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 30px; font-size: 18px; line-height: 1.1; letter-spacing: .02em;
  border-radius: 2px; transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary {
  color: var(--parch); background: linear-gradient(180deg, var(--cinnabar-2), var(--cinnabar));
  box-shadow: inset 0 0 0 1px rgba(255, 220, 170, .35), inset 0 0 0 5px var(--cinnabar), inset 0 0 0 6px rgba(245, 220, 164, .55), 0 14px 34px -12px rgba(181, 50, 31, .8);
  overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 236, 200, .35), transparent);
  transition: transform .8s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn-ghost { color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .55); }
.btn-ghost:hover { background: rgba(232, 196, 124, .1); transform: translateY(-3px); }
.btn-ghost svg { transition: transform .4s var(--ease-out); }
.btn-ghost:hover svg { transform: translateY(3px); }
.btn-small { min-height: 42px; padding: 8px 20px; font-size: 16px; }
.header .btn-small { color: var(--ink); background: var(--gold); }
.header .btn-small:hover { background: var(--gold-2); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--gold); border-bottom: 1px solid rgba(232, 196, 124, .4); padding-bottom: 4px; }
.link-arrow svg { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

.age {
  display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 7px;
  border: 1.5px solid currentColor; border-radius: 6px; font: 600 14px/1 var(--serif); color: var(--gold-2);
}

/* ── шапка ─────────────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.header.is-scrolled {
  background: rgba(21, 16, 12, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(232, 196, 124, .16);
}
.header.is-hidden { transform: translateY(-100%); }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); transition: transform .4s var(--ease-out); }
.brand:hover img { transform: scale(1.04) rotate(-1deg); }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); font-size: 17px; }
.nav a { position: relative; color: var(--text-light); padding: 6px 0; opacity: .86; transition: opacity .2s, color .2s; }
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; width: 7px; height: 7px; background: var(--cinnabar-2);
  transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .35s var(--ease-back);
}
.nav a:hover, .nav a.is-current { opacity: 1; color: var(--gold-2); }
.nav a:hover::after, .nav a.is-current::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.header-end { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--gold-2); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ── заставка ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: max(100svh, 720px); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #151a33 0%, #2b2650 22%, #5a3a5e 42%, #a5525a 58%, #e07f4c 72%, #f3b464 84%, #f7cf86 100%);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(180deg, transparent, var(--ink)); z-index: 2; pointer-events: none; }
.sky, .layer { position: absolute; inset: 0; }
.layer { will-change: transform; }
.layer svg { width: 100%; height: 100%; }
.layer-front { z-index: 2; pointer-events: none; }
.stars { position: absolute; inset: 0 0 55%; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff6dc; opacity: .7; animation: twinkle 4s ease-in-out infinite; }
.cloud { animation: drift 120s linear infinite; }
.cloud.c2 { animation-duration: 160s; animation-delay: -50s; }
.cloud.c3 { animation-duration: 140s; animation-delay: -90s; }
.cloud.c4 { animation-duration: 190s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(260px); } }
@keyframes twinkle { 50% { opacity: .15; } }
.embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.embers i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 2px rgba(255, 196, 92, .55); opacity: 0; animation: ember 12s linear infinite; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 85% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--dx, 40px), -260px); } }

.hero-inner {
  position: relative; z-index: 3; min-height: inherit; width: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 20px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 90px;
}
.hero-copy { max-width: 600px; }
.hero-logo { margin: 0 0 10px -8px; }
.hero-logo img { width: min(520px, 100%); height: auto; filter: drop-shadow(0 18px 30px rgba(20, 10, 30, .55)); }
.hero-motto { font-family: var(--display); font-size: clamp(22px, 2.1vw, 32px); white-space: nowrap; color: var(--gold-2); letter-spacing: .02em; text-shadow: 0 2px 18px rgba(30, 10, 20, .5); margin-bottom: 18px; }
.hero-lead { font-size: clamp(18px, 1.45vw, 21px); color: #f6ead2; max-width: 540px; text-shadow: 0 1px 14px rgba(20, 10, 30, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 15px; color: #f1dfbd; }
.facts li { display: inline-flex; align-items: center; gap: 14px; }
.facts li + li::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.facts-age { font-weight: 700; color: var(--gold-2); }
.hero-art { position: relative; height: min(80vh, 760px); min-height: 460px; }
.sun-glow {
  position: absolute; left: 50%; top: 52%; width: min(760px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 230, 160, .95) 0, rgba(255, 196, 110, .55) 14%, rgba(240, 140, 80, .22) 34%, transparent 62%);
  pointer-events: none; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.06); opacity: .85; } }
.stage { position: absolute; inset: 0; touch-action: pan-y; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; outline: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; left: 50%; top: 50%; width: min(78%, 460px); height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .35)); transition: opacity .8s; }
.stage.is-live > .stage-fallback { opacity: 0; pointer-events: none; }
.stage-status { position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; font-size: 15px; color: rgba(255, 240, 210, .8); transition: opacity .4s; }
.stage.is-live > .stage-status { opacity: 0; }
.stage-ui { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 2; pointer-events: none; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 238, 205, .78); }
.hint svg { width: 20px; height: 20px; }
.motion-toggle { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(21, 16, 12, .5); box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .4); color: var(--gold-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.motion-toggle svg { width: 18px; height: 18px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 5; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(245, 220, 164, .6); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-2); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── лента ─────────────────────────────────────────────────── */
.ribbon {
  position: relative; z-index: 4; overflow: hidden; padding: 20px 0;
  background: linear-gradient(180deg, #a72d1b, var(--cinnabar) 40%, #9a2918);
  box-shadow: 0 -1px 0 rgba(245, 220, 164, .4), 0 1px 0 rgba(245, 220, 164, .4);
}
.ribbon::before, .ribbon::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: var(--rhombs-gold) 0 0 / 28px 14px repeat-x; opacity: .7; }
.ribbon::before { top: 3px; }
.ribbon::after { bottom: 3px; }
.ribbon-track { display: flex; width: max-content; align-items: center; gap: 30px; padding: 8px 0; animation: marquee 48s linear infinite; }
.ribbon-track span { font-family: var(--display); font-size: clamp(20px, 2vw, 28px); color: var(--parch); white-space: nowrap; letter-spacing: .03em; }
.ribbon-track i { width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); flex: none; box-shadow: 0 0 0 4px rgba(245, 220, 164, .18); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── бумага ────────────────────────────────────────────────── */
.paper {
  position: relative; color: var(--text-dark);
  background: var(--noise), radial-gradient(ellipse at 20% 0%, #f8efda, transparent 60%), radial-gradient(ellipse at 90% 100%, #e3cfa4, transparent 55%), var(--parch);
}
.paper::before, .paper::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: var(--rhombs-red) 0 0 / 28px 14px repeat-x; opacity: .55; }
.paper::before { top: 14px; }
.paper::after { bottom: 14px; }

/* ── сказание ──────────────────────────────────────────────── */
.legend { position: relative; padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 110px); background: radial-gradient(ellipse at 70% 30%, #2b1c14, transparent 60%), var(--noise), var(--ink); }
.legend-head { margin-bottom: 40px; }
.legend-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); }
.legend-stage { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; height: calc(100vh - var(--header-h) - 60px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.legend-frame {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(232, 196, 124, .55), 0 0 0 8px var(--ink), 0 0 0 9px rgba(232, 196, 124, .3), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.legend-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.1s var(--ease-out), transform 7s linear; }
.legend-frame img.is-active { opacity: 1; transform: scale(1.02); }
.legend-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(21, 16, 12, .6)); pointer-events: none; }
.legend-frame::before, .legend-frame::after { content: ''; position: absolute; z-index: 2; width: 42px; height: 42px; border: 2px solid var(--gold); pointer-events: none; }
.legend-frame::before { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.legend-frame::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.legend-rail { display: flex; justify-content: center; gap: 10px; }
.legend-rail li { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; color: rgba(232, 196, 124, .45); border-radius: 50%; transition: color .4s, background .4s, transform .4s var(--ease-back); }
.legend-rail li.is-active { color: var(--ink); background: var(--gold); transform: scale(1.1); }
.legend-text { padding: 10vh 0 20vh; }
.beat { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .6s; }
.beat.is-active { opacity: 1; }
.beat p { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.6; color: #efe1c3; }
.beat q { color: var(--gold-2); quotes: '«' '»'; }
.beat .beat-tag { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--cinnabar-2); margin-bottom: 18px; }
.beat-pic { display: none; }
.dropcap::first-letter { float: left; font-family: var(--display); font-size: 4.3em; line-height: .82; margin: .06em .14em 0 0; padding: .1em .12em .02em; color: var(--parch); background: var(--cinnabar); box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 4px var(--gold); }
.enchanted { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.enchanted li { position: relative; }
.enchanted img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px rgba(232, 196, 124, .55); filter: saturate(.85); }
.enchanted span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; text-align: center; color: var(--muted-light); }

/* ── игра в двух словах ────────────────────────────────────── */
.game { padding: clamp(100px, 12vw, 160px) 0; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.tile {
  --mx: 0; --my: 0;
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; min-height: 230px; color: var(--text-dark);
  background: linear-gradient(160deg, #f8eed8, #ead8b0);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  transition: transform .5s var(--ease-out);
}
.tile::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(43, 30, 19, .25); clip-path: inherit; pointer-events: none; }
a.tile:hover { transform: translateY(-6px); }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; margin: 6px 0 10px; }
.tile p { font-size: 16px; line-height: 1.5; color: var(--muted-dark); max-width: 420px; position: relative; }
.tile > :not(.tile-float):not(.tile-art):not(.tile-sun) { position: relative; z-index: 1; }
.tile-heroes .tile-float { height: 50%; right: 8px; top: 14px; -webkit-mask: linear-gradient(#000 72%, transparent); mask: linear-gradient(#000 72%, transparent); }
.tile-army .tile-float { height: 56%; right: 8px; }
.tile-float { position: absolute; right: -6px; top: 12px; height: 62%; width: auto; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(60, 35, 10, .3)); transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 10px)); transition: transform .6s var(--ease-out); }
a.tile:hover .tile-float { transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 14px - 6px)) scale(1.04); }
.tile-city { grid-column: span 2; grid-row: span 2; color: var(--text-light); background: radial-gradient(ellipse at 60% 35%, #2e5c4b, var(--malachite) 70%); }
.tile-city::before { border-color: rgba(232, 196, 124, .35); }
.tile-city h3 { font-size: clamp(40px, 4vw, 60px); color: var(--gold-2); }
.tile-art { position: absolute; inset: 0 0 40%; display: grid; place-items: center; }
.tile-art img { width: min(70%, 420px); height: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .4)); transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 12px)); transition: transform .7s var(--ease-out); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.tile-city .tile-text { position: relative; }
.tile-city p { color: #d9cba9; }
.tile-march p { color: #f6d9bf; max-width: 58%; }
.tile-fair { grid-column: span 2; }
.tile-march { grid-column: span 2; color: var(--parch); background: linear-gradient(140deg, var(--cinnabar-2), #8f2416); }
.tile-march::before { border-color: rgba(245, 220, 164, .4); }
.tile-march .tile-float { height: 92%; top: 4%; right: 10px; }
.tile-march .tile-text, .tile-march p { max-width: 58%; }
.tile-veche { background: linear-gradient(160deg, #24415f, #172b42); color: var(--parch); }
.tile-veche::before { border-color: rgba(245, 220, 164, .35); }
.tile-veche p { color: #c6cfdb; }
.tile-offline { background: linear-gradient(160deg, #efe2c4, #dcc596); }
.tile-fair { background: linear-gradient(160deg, var(--gold-2), var(--ochre)); }
.tile-sun { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; color: var(--cinnabar); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tile-fair p { color: #5b3d17; }

/* ── град ──────────────────────────────────────────────────── */
.city { position: relative; padding: clamp(100px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); background: radial-gradient(ellipse at 25% 40%, #234a3e, transparent 60%), var(--noise), linear-gradient(180deg, var(--ink), var(--malachite) 30%, #10231e 80%, var(--ink)); }
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 80px); }
.story-stage { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; height: calc(100vh - var(--header-h) - 40px); display: flex; flex-direction: column; justify-content: center; }
.stage-growth { position: relative; inset: auto; flex: 1; max-height: 640px; min-height: 360px; }
.stage-growth::before { content: ''; position: absolute; left: 50%; top: 54%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(232, 196, 124, .22), transparent 62%); pointer-events: none; }
.stage-growth::after { content: ''; position: absolute; left: 50%; top: 54%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(232, 196, 124, .22); pointer-events: none; animation: spin 90s linear infinite; }
.stage-growth .stage-fallback { opacity: 0; transform: translate(-50%, -46%) scale(.9); transition: opacity .7s, transform .9s var(--ease-back); }
.stage-growth .stage-fallback.is-active { opacity: 1; transform: translate(-50%, -50%); }
.stage-growth.is-live .stage-fallback { opacity: 0; }
.tier-meter { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 16px; margin-top: 18px; }
.tier-label { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); }
.tier-value { font-size: 34px; color: var(--gold-2); min-width: 40px; }
.tier-bar { height: 4px; background: rgba(232, 196, 124, .18); border-radius: 2px; overflow: hidden; }
.tier-bar i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--ochre), var(--gold-2)); transition: width .8s var(--ease-out); }
.story-steps { padding: 6vh 0 12vh; }
.step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s; }
.step.is-active { opacity: 1; }
.step .cnum-big { align-self: flex-start; color: var(--gold); margin-bottom: 18px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.02; color: var(--parch); }
.step p:last-child { font-size: 19px; color: #d8ccb0; max-width: 470px; }

/* ── дружина ───────────────────────────────────────────────── */
.army { padding: clamp(100px, 12vw, 160px) 0; }
.tiers { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.tiers-label { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); margin-right: 6px; }
.tier { width: 54px; height: 54px; display: grid; place-items: center; font-size: 24px; color: var(--text-dark); border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(43, 30, 19, .3); transition: background .3s, color .3s, transform .4s var(--ease-back), box-shadow .3s; }
.tier:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--cinnabar); }
.tier.is-active { background: var(--cinnabar); color: var(--parch); box-shadow: inset 0 0 0 1.5px var(--cinnabar), inset 0 0 0 4px var(--parch), inset 0 0 0 5px var(--cinnabar); transform: scale(1.08); }
.units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.unit { position: relative; padding: 0 0 26px; }
.unit-art {
  position: relative; height: 330px; margin-bottom: 20px; display: grid; place-items: end center; padding-bottom: 18px;
  clip-path: url(#kokoshnik);
  background: radial-gradient(ellipse at 50% 85%, rgba(181, 50, 31, .22), transparent 60%), linear-gradient(180deg, #e6d2a6, #d9c08c);
}
.unit-art::after { content: ''; position: absolute; left: 50%; bottom: 16px; width: 60%; height: 18px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(60, 35, 10, .35), transparent 70%); }
.unit-art img { position: relative; z-index: 1; max-height: 270px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(60, 35, 10, .3)); transition: transform .5s var(--ease-back), opacity .25s; transform-origin: 50% 100%; }
.unit:hover .unit-art img { transform: translateY(-8px) scale(1.03); }
.unit-art img.is-swapping { opacity: 0; transform: translateY(14px) scale(.94); }
.unit-role { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cinnabar); }
.unit h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 6px 0 8px; }
.unit p:last-child { font-size: 17px; color: var(--muted-dark); line-height: 1.55; }

/* ── богатыри ──────────────────────────────────────────────── */
.heroes { position: relative; padding: clamp(100px, 12vw, 160px) 0; background: radial-gradient(ellipse at 30% 60%, #3a2216, transparent 60%), radial-gradient(ellipse at 90% 10%, #1f2a3d, transparent 50%), var(--noise), var(--ink); }
.hall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.hall-stage { position: sticky; top: calc(var(--header-h) + 20px); }
.arch { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 90px); margin: 0 auto; }
.arch .stage {
  clip-path: url(#kokoshnik);
  background: radial-gradient(ellipse at 50% 92%, rgba(232, 196, 124, .35), transparent 45%), radial-gradient(ellipse at 50% 30%, #5a3420, #2a1912 70%);
}
.arch .stage::before { content: ''; position: absolute; inset: 0; background: var(--rhombs-gold) 0 0 / 28px 14px; opacity: .05; pointer-events: none; }
.arch .stage-fallback { width: 86%; top: 56%; }
.arch-line { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.arch-line path { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .7; }
.hint-center { display: flex; justify-content: center; margin-top: 16px; color: var(--muted-light); }
.hero-card { min-height: 300px; }
.hero-rarity { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--r, var(--gold)); }
.hero-rarity::before { content: ''; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
.hero-rarity[data-rarity="common"] { --r: #b9c4a9; }
.hero-rarity[data-rarity="rare"] { --r: #7fb3ea; }
.hero-rarity[data-rarity="epic"] { --r: #c39cf0; }
.hero-rarity[data-rarity="legend"] { --r: #f0bc5e; }
.hero-name { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 6vw, 92px); line-height: .95; color: var(--gold-2); margin: 10px 0 6px; }
.hero-title { font-size: 21px; color: var(--cinnabar-2); margin-bottom: 18px; }
.hero-desc { font-size: 19px; color: #e7dabd; max-width: 520px; }
.hero-card.is-changing > * { opacity: 0; transform: translateY(10px); }
.hero-card > * { transition: opacity .4s, transform .5s var(--ease-out); }
.roster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.pick { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 4px; background: rgba(243, 232, 207, .06); box-shadow: inset 0 0 0 2px var(--r, rgba(232, 196, 124, .3)); transition: transform .4s var(--ease-back), box-shadow .3s, opacity .3s; }
.pick img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 30%, #4b3021, #24170f); }
.pick span { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 1px 8px; font-size: 13px; border-radius: 10px; background: var(--ink); color: #e7dabd; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .25); }
.pick:hover { transform: translateY(-4px); }
.pick.is-active { box-shadow: inset 0 0 0 3px var(--gold-2), 0 0 0 4px rgba(232, 196, 124, .2), 0 10px 30px -10px rgba(232, 196, 124, .6); transform: scale(1.06); }
.pick.is-active span { background: var(--gold); color: var(--ink); }
.pick-secret { display: grid; place-items: center; cursor: default; background: repeating-linear-gradient(45deg, rgba(232, 196, 124, .06) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 2px rgba(232, 196, 124, .25); }
.pick-secret b { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; color: rgba(232, 196, 124, .7); }
.pick-secret:hover { transform: none; }
.pick-secret span { font-size: 12px; }
.pick[data-rarity="common"] { --r: rgba(185, 196, 169, .55); }
.pick[data-rarity="rare"] { --r: rgba(127, 179, 234, .65); }
.pick[data-rarity="epic"] { --r: rgba(195, 156, 240, .65); }
.pick[data-rarity="legend"] { --r: rgba(240, 188, 94, .75); }

/* ── походы ────────────────────────────────────────────────── */
.campaign { position: relative; background: linear-gradient(180deg, rgba(21, 16, 12, .2), var(--ink) 92%), linear-gradient(180deg, rgba(22, 26, 44, .75), rgba(21, 16, 12, .9)), url('../img/backdrop.jpg') center 80% / cover; }
.campaign-pin { position: relative; padding: clamp(100px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.campaign.is-pinned .campaign-pin { position: sticky; top: 0; height: 100vh; min-height: 640px; padding: calc(var(--header-h) + 3vh) 0 4vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.campaign-head { display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(30px, 4vh, 50px); }
.campaign-intro p { font-size: 18px; color: #e3d6ba; }
.bestiary { overflow: hidden; }
.bestiary-track { display: flex; gap: 22px; width: max-content; padding: 10px var(--gutter) 24px max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); will-change: transform; }
.beast { position: relative; flex: none; width: 320px; padding: 22px 22px 26px; border-radius: 4px; background: linear-gradient(180deg, rgba(243, 232, 207, .09), rgba(243, 232, 207, .03)); box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .5s var(--ease-out), box-shadow .4s; }
.beast:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .5); }
.beast-art { height: 220px; display: grid; place-items: center; margin-bottom: 16px; background: radial-gradient(circle at 50% 60%, rgba(232, 196, 124, .2), transparent 62%); }
.beast-art img { max-height: 210px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); transition: transform .6s var(--ease-back); }
.beast:hover .beast-art img { transform: scale(1.06) rotate(-2deg); }
.beast-kind { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cinnabar-2); }
.beast h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.05; color: var(--gold-2); margin: 6px 0 10px; }
.beast p:last-child { font-size: 16px; line-height: 1.5; color: #d4c7a8; }
.beast-secret .beast-art img { filter: brightness(0) drop-shadow(0 0 18px rgba(232, 196, 124, .55)); opacity: .85; }
.beast-secret:hover .beast-art img { transform: scale(1.04); }
.beast-secret h3 { color: var(--muted-light); }
.beast-secret .beast-kind { color: var(--gold); }
.beast-boss { width: 380px; background: linear-gradient(180deg, rgba(181, 50, 31, .35), rgba(181, 50, 31, .08)); box-shadow: inset 0 0 0 1px rgba(240, 120, 90, .4); }
.bestiary-progress { width: min(420px, 60%); height: 3px; margin: 10px auto 0; background: rgba(232, 196, 124, .16); border-radius: 2px; overflow: hidden; }
.bestiary-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--gold); }

/* ── вече ──────────────────────────────────────────────────── */
.veche { padding: clamp(100px, 12vw, 160px) 0; }
.chronicle { margin-top: clamp(70px, 9vw, 120px); }
.saga { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; position: relative; }
.saga::before { content: ''; position: absolute; left: 5%; right: 5%; top: 37px; height: 2px; background: linear-gradient(90deg, var(--cinnabar) 0 25%, rgba(43, 30, 19, .15) 25%); }
.saga li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.saga .cnum { width: 74px; height: 74px; display: grid; place-items: center; padding-top: 10px; font-size: 40px; border-radius: 50%; background: var(--parch); color: var(--cinnabar); box-shadow: inset 0 0 0 1.5px rgba(181, 50, 31, .55); }
.saga .cnum::before { left: 24px; right: 24px; top: 8px; height: 12px; }
.saga b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.15; }
.saga-locked .cnum { color: rgba(43, 30, 19, .35); background: repeating-linear-gradient(45deg, rgba(43, 30, 19, .05) 0 6px, transparent 6px 12px), var(--parch-2); box-shadow: inset 0 0 0 1.5px rgba(43, 30, 19, .18); }
.saga-locked b { font-size: 24px; color: rgba(43, 30, 19, .35); }
.chronicle-note { text-align: center; font-size: 17px; color: var(--muted-dark); margin-top: 34px; }
.chronicle-head { text-align: center; margin-bottom: 50px; }
.chronicle-head .eyebrow { justify-content: center; }

/* ── скачать ───────────────────────────────────────────────── */
.download { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 180px) 0; text-align: center; background: radial-gradient(circle at 50% 50%, #5a1d12, #2a110b 45%, var(--ink) 80%); }
.download-sun { position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); color: rgba(232, 160, 80, .09); pointer-events: none; }
.download-sun svg { width: 100%; height: 100%; animation: spin 120s linear infinite; }
.download-inner { position: relative; }
.download .section-lead { margin: 24px auto 0; }
.download-actions { display: flex; justify-content: center; margin: 40px 0 24px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 18px 34px 18px 22px; text-align: left; border-radius: 12px; background: #120d0a; color: var(--parch); box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .5), 0 20px 50px -20px rgba(0, 0, 0, .9); transition: transform .4s var(--ease-out), box-shadow .3s; }
.store:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold), 0 26px 60px -20px rgba(232, 160, 80, .45); }
.store-ico { width: 46px; height: 46px; color: var(--gold); }
.store small { display: block; font-size: 13px; color: var(--muted-light); }
.store strong { display: block; font-size: 30px; font-weight: 400; line-height: 1.1; }
.store em { position: absolute; right: -12px; top: -11px; padding: 3px 10px; border-radius: 12px; font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--parch); background: var(--cinnabar); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.download-note { font-size: 15px; color: var(--muted-light); line-height: 1.8; }
.apk { display: grid; justify-items: center; gap: 14px; margin: 0 auto 26px; max-width: 560px; }
.apk[hidden] { display: none; }
.store-apk { padding-right: 34px; }
.store-apk:hover { text-decoration: none; }
.apk-help { width: 100%; text-align: left; font-size: 15px; color: #d8caa9; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .2); padding: 12px 16px; }
.apk-help summary { cursor: pointer; color: var(--gold-2); }
.apk-help ol { padding-left: 20px; margin: 12px 0; list-style: decimal; }
.apk-help li { margin: 6px 0; }
.apk-help p { margin: 10px 0 8px; }
.apk-help code { display: block; font-size: 12px; overflow-wrap: anywhere; color: var(--gold); background: rgba(0, 0, 0, .3); padding: 8px 10px; border-radius: 6px; }

/* ── вопросы ───────────────────────────────────────────────── */
.faq { padding: clamp(100px, 12vw, 150px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq .h2 { font-size: clamp(42px, 5.2vw, 82px); }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 52px 22px 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 1.5px solid var(--cinnabar); transform: rotate(45deg); transition: transform .4s var(--ease-back), background .3s; }
.faq details[open] summary::after { transform: rotate(225deg); background: var(--cinnabar); }
.faq summary:hover { color: var(--cinnabar); }
.faq details p { padding: 0 40px 24px 0; font-size: 17px; color: var(--muted-dark); }
.faq details a { color: var(--cinnabar); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ── подвал ────────────────────────────────────────────────── */
.footer { padding: 60px 0 34px; background: var(--noise), #0f0b08; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line-light); }
.footer-brand img { width: 200px; height: auto; }
.footer-motto { font-family: var(--display); font-size: 24px; color: var(--gold); }
.age-lg { min-width: 54px; height: 40px; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 30px; padding: 26px 0; font-size: 16px; }
.footer-links a { color: #d9cba9; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.footer-links a:hover { color: var(--gold-2); border-color: rgba(232, 196, 124, .5); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: #8f806a; }

/* ── окно ──────────────────────────────────────────────────── */
.dialog { width: min(560px, calc(100% - 32px)); padding: 48px 40px 40px; text-align: center; color: var(--parch); border: 0; border-radius: 6px; background: var(--noise), linear-gradient(180deg, #2a1d15, #1a120d); box-shadow: inset 0 0 0 1px rgba(232, 196, 124, .45), inset 0 0 0 7px #1a120d, inset 0 0 0 8px rgba(232, 196, 124, .25), 0 40px 100px rgba(0, 0, 0, .7); }
.dialog::backdrop { background: rgba(10, 7, 5, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: pop .5s var(--ease-back); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.dialog h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.05; color: var(--gold-2); margin-bottom: 16px; }
.dialog p { color: #dacdb0; margin-bottom: 26px; }
.dialog-sun { width: 60px; height: 60px; margin: 0 auto 18px; color: var(--gold); animation: spin 30s linear infinite; }
.dialog-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--gold-2); border-radius: 50%; }
.dialog-close:hover { background: rgba(232, 196, 124, .12); }
.dialog-close svg { width: 22px; height: 22px; }

/* ── адаптив ───────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav { gap: 16px; font-size: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-city { grid-row: span 1; min-height: 480px; }
}
@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .header-end .btn-small { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; height: calc(100dvh - var(--header-h)); z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: rgba(21, 16, 12, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    font-family: var(--display); font-size: 32px; opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s, transform .45s var(--ease-out), visibility 0s .45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s var(--ease-out); }
  .header.menu-open { background: rgba(21, 16, 12, .96); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: calc(var(--header-h) + 18px); padding-bottom: 70px; gap: 0; }
  .hero-copy { max-width: 640px; margin: 0 auto; order: 2; }
  .hero-logo { margin: 0 auto 8px; }
  .hero-logo img { width: min(420px, 88%); margin: 0 auto; }
  .hero-lead { margin: 0 auto; }
  .hero-actions, .facts { justify-content: center; }
  .eyebrow { justify-content: center; }
  .hero-copy .eyebrow { display: flex; }
  .hero-art { order: 1; height: min(52vh, 480px); min-height: 330px; margin: 0 calc(var(--gutter) * -1); }
  .scroll-cue { display: none; }
  .legend-body { grid-template-columns: 1fr; }
  .legend-stage { display: none; }
  .legend-text { padding: 0; }
  .beat { min-height: 0; opacity: 1; padding: 30px 0; border-top: 1px solid var(--line-light); }
  .beat-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 22px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(232, 196, 124, .4); }
  .story { grid-template-columns: 1fr; }
  .story-stage { top: 0; height: auto; z-index: 2; margin: 0 calc(var(--gutter) * -1); padding: calc(var(--header-h) + 4px) var(--gutter) 22px; background: linear-gradient(180deg, rgba(17, 37, 31, .98) 84%, rgba(17, 37, 31, 0)); }
  .stage-growth { flex: none; height: 38vh; min-height: 260px; }
  .tier-meter { margin-top: 6px; }
  .story-steps { padding: 0; }
  .step { min-height: 62vh; }
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall { grid-template-columns: 1fr; }
  .hall-stage { position: relative; top: auto; }
  .arch { max-width: 440px; max-height: none; }
  .hero-card { min-height: 0; }
  .campaign-head { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .header-end .age { display: none; }
  .brand img { height: 38px; }
  .hero-art { height: 40vh; min-height: 270px; }
  .hero-logo img { width: min(320px, 84%); }
  .hero-actions { margin: 24px 0 20px; }
  .cloud.c3, .cloud.c4 { display: none; }
  .hero-copy .eyebrow { color: var(--gold-2); text-shadow: 0 1px 10px rgba(20, 10, 30, .7); }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts { font-size: 14px; gap: 6px 10px; }
  .facts li { gap: 10px; }
  .hint { font-size: 13px; }
  .h2 { font-size: clamp(42px, 12vw, 64px); }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile-city, .tile-march { grid-column: auto; }
  .tile-city { min-height: 440px; }
  .tile { min-height: 200px; }
  .tile-float { height: 52%; }
  .enchanted span { font-size: 13px; }
  .units { grid-template-columns: 1fr 1fr; gap: 14px; }
  .unit-art { height: 220px; }
  .unit-art img { max-height: 180px; }
  .unit h3 { font-size: 26px; }
  .unit p:last-child { font-size: 15px; }
  .tier { width: 44px; height: 44px; font-size: 20px; }
  .tiers { gap: 6px; flex-wrap: nowrap; }
  .tiers-label { font-size: 12px; letter-spacing: .1em; margin-right: 2px; }
  .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .tile-fair { grid-column: auto; }
  .saga { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .saga::-webkit-scrollbar { display: none; }
  .saga li { flex: 0 0 96px; scroll-snap-align: start; }
  .saga::before { display: none; }
  .bestiary { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bestiary::-webkit-scrollbar { display: none; }
  .beast { width: 78vw; max-width: 320px; scroll-snap-align: center; }
  .beast-boss { width: 84vw; max-width: 360px; }
  .bestiary-track { padding-left: var(--gutter); }
  .store { padding-right: 30px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .dialog { padding: 44px 22px 30px; }
}

/* Кнопка паузы на заставке останавливает всё фоновое движение */
.is-still *, .is-still *::before, .is-still *::after { animation-play-state: paused !important; }
.stage-hero.is-loading.is-live > .stage-status { opacity: 1; }

/* Без движения — для тех, кто так настроил систему */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .layer { transform: none !important; }
}
