/* NavMine: a carved ustav wordmark and readable Cyrillic book typography.
   Fonts are served locally; see assets/fonts/*-OFL.txt for their licenses. */
@font-face {
  font-family: 'Ponomar';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ponomar.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/literata-cyrillic-variable.woff2') format('woff2');
}

:root {
  --bone: #ece4d0;
  --bone-2: #bcb4a0;
  --bone-3: #9a9384;
  --ember: #f2a63b;
  --ghost: #8ff5cf;
  --frost: #a9d0ff;
  --rowan: #cc4a32;
  --line: rgba(236, 228, 208, .12);
  /* Decorative branding; book-like headings and comfortably readable body text. */
  --nav: 'Ponomar', 'Palatino Linotype', Georgia, serif;
  --display: 'Literata', Georgia, 'Times New Roman', serif;
  --text: 'Literata', Georgia, 'Times New Roman', serif;
  --pad: clamp(16px, 4.2vw, 64px);
  --bar-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.locked, html.locked body { overflow: hidden; }

body {
  margin: 0;
  background: #0b1720;
  color: var(--bone);
  font: 400 17px/1.7 var(--text);
  /* Use the actual variable-font weights rather than synthetic bold. */
  font-synthesis: none;
  letter-spacing: .005em;
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain over everything, very faint. No mix-blend-mode: blending a fixed layer over the whole page
   made the browser recomposite every frame of the scroll */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .045;
  background-image: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ghost); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--bone); color: #111; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h2 {
  margin: 0 0 .32em;
  font: 600 clamp(46px, 6.6vw, 104px)/1.06 var(--display);
  color: var(--bone);
  perspective: 600px;
}
.h2 .ch { display: inline-block; }
.lead { margin: 0; max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); color: var(--bone-2); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .35s, background-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn-ember {
  color: #1c1004;
  background: linear-gradient(180deg, #ffcb73, #f29d2e 58%, #d8741d);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .45), 0 12px 32px -10px rgba(242, 166, 59, .6);
}
.btn-ember::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-ember:hover::after { transform: translateX(120%); }
.btn-ember:hover { box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .6), 0 16px 46px -8px rgba(242, 166, 59, .85); }
.btn-ghost {
  background: rgba(236, 228, 208, .07);
  box-shadow: inset 0 0 0 1px rgba(236, 228, 208, .24);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(236, 228, 208, .14); }
.btn-wide { width: 100%; }

/* ---------- top bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.bar.solid { background: rgba(6, 12, 11, .62); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { font: 400 30px/1 var(--nav); letter-spacing: 0; }
.brand-sub { font-size: 13px; color: var(--bone-3); }
.bar-nav { display: flex; gap: 4px; margin-left: auto; }
.bar-nav a { position: relative; padding: 8px 14px; color: var(--bone-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .25s; }
.bar-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.bar-nav a:hover { color: var(--bone); }
.bar-nav a:hover::after { transform: scaleX(1); }
.ip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(236, 228, 208, .06);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.bar .ip { margin-left: 8px; }
/* the way into the cabinet, next to the address */
.bar-login { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; margin-left: 8px; border-radius: 999px; background: rgba(242, 166, 59, .14); box-shadow: inset 0 0 0 1px rgba(242, 166, 59, .45); color: var(--bone); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .25s; }
.bar-login:hover { background: rgba(242, 166, 59, .26); }

.ip:hover { background: rgba(236, 228, 208, .12); border-color: rgba(143, 245, 207, .4); }
.ip svg { width: 16px; height: 16px; opacity: .7; }
.ip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ghost); box-shadow: 0 0 10px var(--ghost); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--ghost); } }

/* ---------- hero: the forest at night ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #08131d 0%, #0e2230 46%, #10272c 66%, #0a1715 100%);
}
.hero > * { position: absolute; }
.sky, .scene-back, .scene-front, .veil, .fireflies { inset: 0; }
.scene-back svg, .scene-front svg, .glade-forest svg { display: block; width: 100%; height: 100%; }
.stars { position: absolute; top: 0; left: 0; width: 1.5px; height: 1.5px; border-radius: 50%; animation: twinkle 5s ease-in-out infinite alternate; }
.stars:nth-child(2) { animation-duration: 7s; animation-delay: -2s; }
.stars:nth-child(3) { animation-duration: 3.6s; animation-delay: -1s; }
@keyframes twinkle { from { opacity: 1; } to { opacity: .35; } }
.moon {
  position: absolute;
  top: 10vh;
  right: 21vw;
  width: clamp(84px, 9vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 62%, rgba(150, 140, 110, .35) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 30%, rgba(150, 140, 110, .28) 0 7%, transparent 8%),
    radial-gradient(circle at 66% 70%, rgba(150, 140, 110, .22) 0 5%, transparent 6%),
    radial-gradient(circle at 38% 36%, #fffaf0 0, #f2ecd4 36%, #dad2b4 72%, #c2b896 100%);
  box-shadow: 0 0 60px 12px rgba(255, 244, 214, .28), 0 0 220px 80px rgba(140, 190, 255, .12);
}
.gorynych { position: absolute; top: 7vh; left: 0; width: clamp(130px, 12vw, 210px); transform: translateX(120vw); }
.gorynych svg { display: block; width: 100%; transform: scaleX(-1); }
.fog { left: -50%; width: 200%; pointer-events: none; }
.fog-a {
  bottom: 18%;
  height: 34%;
  background:
    radial-gradient(50% 50% at 30% 55%, rgba(170, 210, 220, .13), transparent 70%),
    radial-gradient(40% 50% at 72% 60%, rgba(170, 210, 220, .1), transparent 70%);
  animation: drift 70s linear infinite alternate;
}
.fog-b {
  bottom: -4%;
  height: 30%;
  background:
    radial-gradient(45% 55% at 20% 60%, rgba(160, 205, 210, .12), transparent 70%),
    radial-gradient(45% 55% at 64% 50%, rgba(160, 205, 210, .1), transparent 70%);
  animation: drift 50s linear infinite alternate-reverse;
}
@keyframes drift { to { transform: translateX(22%); } }
.leshy { bottom: -2vh; right: 8vw; height: 80vh; aspect-ratio: 600 / 900; }
.leshy svg { display: block; width: 100%; height: 100%; }
.leshy-eyes { pointer-events: none; filter: drop-shadow(0 0 10px rgba(143, 245, 207, .85)); }
/* darkness with one hole: the lantern follows the pointer and shows what hides between the trees */
.veil {
  --mx: 72%;
  --my: 58%;
  --lr: clamp(170px, 21vw, 330px);
  pointer-events: none;
  background: radial-gradient(circle var(--lr) at var(--mx) var(--my), rgba(140, 245, 205, .1) 0%, rgba(4, 10, 9, .12) 40%, rgba(3, 8, 7, .86) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 16%, rgba(0, 0, 0, .7) 44%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 16%, rgba(0, 0, 0, .7) 44%, #000 72%);
}
.fireflies { width: 100%; height: 100%; pointer-events: none; }
.hero-copy {
  z-index: 5;
  top: 0;
  bottom: 0;
  left: var(--pad);
  max-width: min(980px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--bar-h) 0 24px;
}
/* one line always: the word wrapped to «Нав / ь» on wide screens and pushed its top under the bar.
   The height term keeps it on short laptop screens (1920×1080 at 125% is 1536×730 for the page) */
.hero-title {
  position: relative;
  margin: 0 0 .1em -.04em;
  white-space: nowrap;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M30 2 16 18' stroke='%23c79b5b' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M17 15l2 2-6 9c-3 4-9 4-11 4 2-2 2-6 4-8z' fill='%230b1416' stroke='%238ff5cf' stroke-width='1.4'/%3E%3C/svg%3E") 2 30, crosshair;
  font: 400 clamp(96px, min(15.5vw, 27vh), 270px)/.98 var(--nav);
  letter-spacing: 0;
  background: linear-gradient(180deg, #fffaf0 12%, #d9efe4 52%, #7fae99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(143, 245, 207, .25)) drop-shadow(0 14px 44px rgba(0, 0, 0, .6));
  perspective: 700px;
}
.hero-title:has(.ch) { background: none; }
.hero-title .ch {
  display: inline-block;
  background: linear-gradient(180deg, #fffaf0 12%, #d9efe4 52%, #7fae99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* the night under the white letters: the pointer brushes the white off (art in app.js, brushTitle) */
.title-night { position: absolute; pointer-events: none; }
.hero-lead { margin: 0 0 30px; max-width: 28em; font-size: clamp(18px, 1.35vw, 21px); color: #d7d1c0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 20px 0 0; font-size: 14px; color: var(--bone-3); }
.scroll-cue { z-index: 5; left: 50%; bottom: 26px; width: 1px; height: 54px; background: rgba(236, 228, 208, .18); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: var(--bone); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.intro .hero-copy > *, .intro .moon, .intro .leshy, .intro .scene-back, .intro .bar { opacity: 0; }

/* ---------- ranks: carved posts rising on an embroidered towel ---------- */

.ranks { position: relative; }
.ranks-pin { position: relative; padding: 14vh 0 120px; }
.ranks-track {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 var(--pad) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ranks-track::-webkit-scrollbar { display: none; }
.ranks-intro, .ranks-outro { flex: 0 0 min(86vw, 520px); scroll-snap-align: start; align-self: center; padding-right: 24px; }
.hint { margin: 26px 0 0; font-size: 14px; color: var(--bone-3); }
.hint-desk { display: none; }
.outro-text { margin: 0 0 20px; font-size: 19px; color: var(--bone-2); max-width: 18em; }
.rushnyk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='44' viewBox='0 0 48 44'%3E%3Cg fill='none'%3E%3Cpath d='M0 3.5H48M0 40.5H48' stroke='%23e0a241' stroke-opacity='.6' stroke-width='1.5' stroke-dasharray='3 2'/%3E%3Cpath d='M24 9L37 22L24 35L11 22Z' stroke='%23cc4a32' stroke-width='2.5' stroke-dasharray='3 1.6'/%3E%3Cpath d='M24 16L30 22L24 28L18 22Z' fill='%23cc4a32'/%3E%3Cpath d='M0 17L5 22L0 27M48 17L43 22L48 27' stroke='%23cc4a32' stroke-width='2.5' stroke-dasharray='3 1.6'/%3E%3Cpath d='M22.5 20.5h3v3h-3z' fill='%23e0a241'/%3E%3C/g%3E%3C/svg%3E") repeat-x left center / 48px 44px;
  opacity: .85;
}
.ranks-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; height: 2px; background: var(--line); display: none; }
.ranks-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ember), #ffe2a8); transform-origin: left; }

.pillar {
  --c: var(--ember);
  position: relative;
  flex: 0 0 min(82vw, 320px);
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
  transform-style: preserve-3d;
}
/* the higher the rank, the taller the carved top */
.pillar-cap { position: relative; height: calc(74px + var(--tier) * 13px); flex: none; }
.kok { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kok-fill { fill: #121b18; stroke: color-mix(in srgb, var(--c) 45%, transparent); stroke-width: 1.2; }
.kok-line { stroke: color-mix(in srgb, var(--c) 40%, transparent); stroke-width: 1; stroke-dasharray: 4 3; }
.pillar-emblem {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 60px;
  height: 60px;
  transform: translateX(-50%);
  color: var(--c);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 55%, transparent));
}
.emblem { display: block; width: 100%; height: 100%; overflow: visible; }
.pillar-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 26px 26px;
  background: linear-gradient(180deg, #121b18 0%, #0b1210 100%);
  border: 1.2px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.pillar-body::before {
  content: '';
  position: absolute;
  inset: 0 9px 9px;
  border: 1px dashed color-mix(in srgb, var(--c) 22%, transparent);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}
.pillar::after {
  content: '';
  position: absolute;
  inset: 30% -10% -6%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 60%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  opacity: .55;
  transition: opacity .5s;
  pointer-events: none;
}
.pillar:hover::after { opacity: 1; }
.pillar-tier { font: 400 15px/1 var(--display); color: var(--c); }
.pillar-name { margin: 8px 0 6px; font: 400 clamp(32px, 2.6vw, 38px)/1.05 var(--display); }
.pillar-price { margin: 0; color: var(--bone-3); font-size: 14px; }
.pillar-price b { margin-right: 6px; font: 700 30px/1 var(--text); color: var(--c); letter-spacing: -.01em; }
.pillar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
  padding: 14px 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar-stats b { display: block; font: 700 22px/1.1 var(--text); color: var(--bone); }
.pillar-stats span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--bone-3); }
.pillar-perks { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pillar-perks li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.4; color: var(--bone-2); }
.pillar-perks li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: .5em;
  width: 7px;
  height: 7px;
  background: var(--c);
  transform: rotate(45deg);
}
.pillar-inherit { margin: 14px 0 0; font-size: 13px; color: var(--bone-3); }
.btn-rank {
  margin-top: auto;
  width: 100%;
  color: var(--bone);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent);
}
.pillar-perks, .pillar-inherit { margin-bottom: 22px; }
.pillar-perks:has(+ .pillar-inherit) { margin-bottom: 0; }
.btn-rank:hover { background: var(--c); color: #120d06; box-shadow: 0 10px 34px -8px color-mix(in srgb, var(--c) 70%, transparent); }
.pillar-top .pillar-body { background: linear-gradient(180deg, #1b1a10 0%, #0d0f0a 100%); }
.pillar-top .kok-fill { fill: #1b1a10; }
.pillar-top .pillar-name {
  background: linear-gradient(100deg, #f4c552 20%, #fff1c0 45%, #f4c552 70%) 0 0 / 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }

/* desktop: the track is pinned and scrolled sideways by app.js */
.ranks.is-pinned .ranks-pin { height: 100svh; min-height: 700px; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ranks.is-pinned .ranks-track { overflow: visible; width: max-content; gap: 30px; padding-bottom: 104px; scroll-snap-type: none; will-change: transform; }
.ranks.is-pinned .ranks-intro { flex-basis: 560px; padding-right: 60px; align-self: center; margin-bottom: 8vh; }
.ranks.is-pinned .ranks-outro { flex-basis: 440px; padding-left: 40px; margin-bottom: 8vh; }
.ranks.is-pinned .pillar { flex-basis: 324px; }
.ranks.is-pinned .rushnyk { bottom: 54px; }
.ranks.is-pinned .ranks-progress { bottom: 24px; }
.ranks.is-pinned .ranks-progress { display: block; }
.ranks.is-pinned .hint-desk { display: inline; }
.ranks.is-pinned .hint-touch { display: none; }

/* ---------- compare table ---------- */

.compare { padding: 0 var(--pad) 12vh; }
.compare-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: 14px 22px 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(236, 228, 208, .04);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.compare-toggle:hover { background: rgba(236, 228, 208, .09); border-color: rgba(242, 166, 59, .45); }
.plus { position: relative; width: 18px; height: 18px; flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.6px; margin-top: -.8px; background: currentColor; transition: transform .45s var(--ease); }
.plus::after { transform: rotate(90deg); }
[aria-expanded='true'] .plus::after { transform: rotate(0deg); }
[aria-expanded='true'] .plus::before { transform: rotate(180deg); }
.compare-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.compare-body.open { grid-template-rows: 1fr; }
.compare-inner { overflow: hidden; visibility: hidden; transition: visibility 0s .7s; }
.compare-body.open .compare-inner { visibility: visible; transition-delay: 0s; }
.compare-scroll { margin-top: 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 12, 11, .5); }
.compare-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font: 400 19px/1.1 var(--display); color: var(--c); padding-top: 20px; padding-bottom: 16px; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--bone-2); position: sticky; left: 0; background: #0a110f; }
.compare-table tbody tr:hover > * { background-color: rgba(236, 228, 208, .03); }
.compare-table td { color: var(--bone); font-weight: 600; }
.yes { display: inline-block; width: 9px; height: 9px; background: var(--ember); transform: rotate(45deg); box-shadow: 0 0 10px rgba(242, 166, 59, .6); }
.no { color: var(--bone-3); font-style: normal; font-weight: 400; }

/* ---------- glade: Яга's hut walks while you scroll ---------- */

.glade { position: relative; height: 240vh; }
.glade-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, #071019 0%, #0d212b 52%, #12302f 78%, #0b1a17 100%);
}
.glade-forest { position: absolute; left: 0; right: 0; bottom: 12%; height: 74%; }
.glade-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13%;
  background: linear-gradient(180deg, #0b1a16, #050b09);
}
.glade-ground::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30'%3E%3Cpath d='M0,30L3,14L6,30L10,8L13,30L17,18L20,30L24,4L27,30L31,15L34,30L38,10L41,30L45,20L48,30L52,6L55,30L59,16L62,30L66,9L69,30L73,19L76,30L80,5L83,30L87,14L90,30L94,10L97,30L101,18L104,30L108,7L111,30L115,15L118,30L120,30Z' fill='%230b1a16'/%3E%3C/svg%3E") repeat-x bottom / 120px 30px;
}
.hut { position: absolute; left: 0; bottom: calc(13% - 1.1vh); height: min(54vh, 560px); aspect-ratio: 520 / 600; will-change: transform; transform: translate3d(-110%, 0, 0); }
.hut svg { display: block; width: 100%; height: 100%; overflow: visible; }
.still .hut { left: 50%; transform: translateX(-50%); }
.puff { transform-box: fill-box; transform-origin: center; opacity: 0; animation: puff 4.8s ease-out infinite; animation-delay: calc(var(--i) * -1.2s); }
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  15% { opacity: .35; }
  100% { opacity: 0; transform: translate(-46px, -130px) scale(2.6); }
}
.hut-window { animation: flicker 3.2s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 32% { opacity: .86; } 36% { opacity: 1; } 71% { opacity: .9; } 74% { opacity: 1; } }
.glade-copy { position: absolute; z-index: 3; left: var(--pad); top: calc(var(--bar-h) + 7vh); max-width: 600px; }
.artifacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.artifacts li {
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(143, 245, 207, .22);
  border-radius: 999px;
  background: rgba(7, 18, 16, .55);
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: var(--bone-2);
}
.artifacts li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; background: var(--ghost); transform: rotate(45deg); box-shadow: 0 0 8px var(--ghost); }

/* ---------- Кощей and his chests ---------- */

.chests {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 112svh;
  overflow: hidden;
}
/* Кощей stays in view while the offers scroll past him */
.koschei-wrap { position: sticky; top: 0; height: 100svh; align-self: start; }
.k-backlight {
  position: absolute;
  left: 0;
  top: 6%;
  width: 90%;
  height: 86%;
  background: radial-gradient(46% 46% at 46% 36%, rgba(120, 112, 255, .4), rgba(80, 60, 200, .14) 48%, transparent 72%);
  opacity: .55;
}
.koschei {
  position: absolute;
  bottom: -4%;
  left: -2vw;
  height: 96%;
  max-width: calc(100% + 2vw);
  aspect-ratio: 820 / 1000;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.koschei svg { display: block; width: 100%; height: 100%; }
.k-eye { filter: drop-shadow(0 0 6px #cfe6ff); }
.chests-copy { position: relative; z-index: 2; padding: 20vh var(--pad) 14vh 2vw; }
.chest-stage { position: relative; width: 290px; height: 254px; margin: 34px 0 26px -10px; cursor: pointer; }
.chest svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chest-stage:not(.open) .chest svg { animation: rattle 6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes rattle { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(-2deg); } 92% { transform: rotate(2deg); } 94% { transform: rotate(-1.4deg); } 96% { transform: rotate(1deg); } }
.chest-lid { transform-box: view-box; transform-origin: 290px 130px; transition: transform .45s var(--ease); }
.chest-stage.open .chest-lid { transform: translateY(-30px) rotate(-9deg); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.chest-rays { transform-box: view-box; transform-origin: 160px 124px; opacity: 0; transform: scale(.45); transition: opacity .45s, transform .8s var(--ease); }
.chest-stage.open .chest-rays { opacity: 1; transform: scale(1); }
.rays-inner { transform-box: view-box; transform-origin: 160px 124px; animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.chest-glow { opacity: 0; filter: blur(8px); transition: opacity .4s; }
.chest-stage.open .chest-glow { opacity: 1; }
.mote { position: absolute; left: var(--x); top: 40%; width: 4px; height: 4px; border-radius: 50%; background: #fff2c8; box-shadow: 0 0 8px 2px rgba(255, 242, 200, .8); opacity: 0; pointer-events: none; }
.chest-stage.open .mote { animation: mote 1.9s ease-out infinite; animation-delay: var(--d); }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -150px); } }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.key-offer {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  text-align: left;
  border: 1px solid rgba(169, 208, 255, .22);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(40, 32, 70, .55), rgba(13, 9, 24, .7));
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.key-offer::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(60% 80% at 100% 0%, rgba(169, 208, 255, .22), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.key-offer:hover { border-color: rgba(169, 208, 255, .6); transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(120, 140, 255, .55); }
.key-offer:hover::before { opacity: 1; }
.key-count { position: relative; font-weight: 600; color: var(--bone-2); }
.key-price { position: relative; font: 700 34px/1 var(--text); color: var(--bone); }
.key-save { position: relative; justify-self: start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(242, 166, 59, .16); color: var(--ember); font-size: 13px; font-weight: 600; }
.key-save-none { background: rgba(236, 228, 208, .07); color: var(--bone-3); }
.loot { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.loot li { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(236, 228, 208, .05); border: 1px solid var(--line); font-size: 14px; color: var(--bone-2); }
.loot i { width: 8px; height: 8px; border-radius: 50%; }
.loot .common i { background: var(--bone-3); }
.loot .rare i { background: var(--frost); box-shadow: 0 0 8px var(--frost); }
.loot .legend i { background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.yaga-note { margin: 22px 0 0; max-width: 32em; font-size: 14.5px; color: var(--bone-3); }

/* ---------- how it works ---------- */

.how { padding: 18vh var(--pad) 12vh; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.step-num { display: block; font: 400 clamp(64px, 6vw, 92px)/1 var(--display); color: transparent; -webkit-text-stroke: 1.4px var(--ember); }
.step-rule { display: block; height: 0; margin: 18px 0 20px; border-top: 2px dashed rgba(204, 74, 50, .7); }
.step h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.step p { margin: 0; color: var(--bone-2); max-width: 22em; }

/* ---------- faq ---------- */

.faq { max-width: 1100px; margin: 0 auto; padding: 10vh var(--pad) 16vh; }
.faq-list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-h { margin: 0; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 2px;
  border: 0;
  background: none;
  font: 600 clamp(18px, 1.6vw, 22px)/1.35 var(--text);
  text-align: left;
  cursor: pointer;
  transition: color .25s;
}
.faq-q:hover { color: #fff; }
.faq-q .plus { width: 20px; height: 20px; color: var(--ember); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { margin: 0 0 26px; max-width: 46em; color: var(--bone-2); }

/* ---------- footer ---------- */

.foot { position: relative; padding: 90px var(--pad) 34px; overflow: hidden; }
.rushnyk-foot { top: 0; bottom: auto; opacity: .6; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; position: relative; z-index: 1; }
.foot-grid a { display: block; width: fit-content; padding: 4px 0; color: var(--bone-2); text-decoration: none; transition: color .2s; }
.foot-grid a:hover { color: var(--bone); }
.foot-label { margin: 0 0 12px; font-size: 13px; color: var(--bone-3); }
.ip-big { height: 52px; padding: 0 22px; font-size: 20px; }
.foot-word {
  margin: 40px 0 0;
  font: 400 clamp(120px, 26vw, 420px)/.8 var(--nav);
  letter-spacing: 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(236, 228, 208, .14), rgba(236, 228, 208, 0) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.foot-legal { margin: 0; font-size: 13px; color: var(--bone-3); text-align: center; }

/* ---------- checkout drawer ---------- */

.drawer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.drawer.open { pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 5, .6); backdrop-filter: blur(5px); opacity: 0; transition: opacity .45s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(470px, 100%);
  height: 100%;
  padding: 30px 30px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: radial-gradient(120% 50% at 100% 0%, rgba(242, 166, 59, .1), transparent 60%), linear-gradient(180deg, #101a17, #090f0d);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .5);
  transform: translateX(104%);
  transition: transform .6s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel > * { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.drawer.open .drawer-panel > * { opacity: 1; transform: none; }
.drawer.open .drawer-panel > :nth-child(2) { transition-delay: .12s; }
.drawer.open .drawer-panel > :nth-child(3) { transition-delay: .2s; }
.drawer.open .drawer-panel > :nth-child(4) { transition-delay: .28s; }
.drawer-x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(236, 228, 208, .05); cursor: pointer; transition: background-color .2s, transform .4s var(--ease); }
.drawer-x:hover { background: rgba(236, 228, 208, .12); transform: rotate(90deg); }
.drawer-x svg { width: 18px; height: 18px; }
.drawer-head { display: flex; align-items: center; gap: 18px; margin: 18px 0 22px; }
.drawer-emblem { width: 62px; height: 62px; flex: none; padding: 9px; border: 1px solid currentColor; border-radius: 16px; filter: drop-shadow(0 0 12px currentColor); }
.drawer-kicker { margin: 0 0 4px; font-size: 13px; color: var(--bone-3); }
.drawer-title { margin: 0; font: 400 34px/1.05 var(--display); }
.drawer-perks { display: grid; gap: 8px; margin: 0 0 24px; padding: 18px 20px; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: rgba(236, 228, 208, .03); font-size: 15px; color: var(--bone-2); }
.drawer-perks li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; background: var(--dc, var(--ember)); transform: rotate(45deg); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(236, 228, 208, .03); color: var(--bone-2); transition: border-color .25s, background-color .25s; }
.opt b { color: var(--bone); font-size: 17px; }
.opt input:checked + span { border-color: var(--frost); background: rgba(169, 208, 255, .08); box-shadow: 0 0 0 3px rgba(169, 208, 255, .12); }
.opt input:focus-visible + span { outline: 2px solid var(--ghost); outline-offset: 2px; }
.drawer-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--bone-2); }
.field input {
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(236, 228, 208, .16);
  border-radius: 13px;
  background: rgba(236, 228, 208, .04);
  color: var(--bone);
  font: 500 16px var(--text);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field input::placeholder { color: #5f5a4f; }
.field input:focus { outline: none; border-color: var(--ghost); background: rgba(143, 245, 207, .04); box-shadow: 0 0 0 4px rgba(143, 245, 207, .12); }
.field input[aria-invalid='true'] { border-color: var(--rowan); box-shadow: 0 0 0 4px rgba(204, 74, 50, .14); }
.field-err { min-height: 0; font-size: 13px; color: #f08a74; }
.field-err:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--bone-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ember); flex: none; }
.drawer-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--bone-2); }
.drawer-total b { font: 700 32px/1 var(--text); color: var(--bone); }
.drawer-msg { margin: 0; font-size: 14px; color: var(--ghost); }
.drawer-msg:empty { display: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  padding: 13px 20px;
  border: 1px solid rgba(143, 245, 207, .3);
  border-radius: 999px;
  background: rgba(8, 18, 16, .9);
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .35s, transform .5s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- smaller screens ---------- */

@media (max-width: 980px) {
  .bar-nav { display: none; }
  .bar .ip { margin-left: auto; }
  .chests { grid-template-columns: 1fr; }
  .koschei-wrap { position: relative; height: 70svh; }
  .koschei { left: 50%; height: 100%; margin-left: calc(-0.43 * 70svh * .82); }
  .k-backlight { left: 5%; width: 90%; }
  .chests-copy { margin-top: -18svh; padding: 0 var(--pad) 12vh; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glade-copy { max-width: none; right: var(--pad); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --bar-h: 60px; }
  .brand-sub { display: none; }
  /* the address and the cabinet link have to share a phone-wide bar with the name */
  .bar { gap: 10px; }
  .bar .ip { padding: 0 12px; }
  .bar .ip svg { display: none; }
  .bar-login { padding: 0 12px; margin-left: 0; }
  .hero-copy { justify-content: flex-start; padding-top: calc(var(--bar-h) + 7svh); }
  .hero-title { font-size: clamp(88px, 30vw, 140px); }
  .hero-lead { margin-bottom: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .leshy { right: -20vw; height: 60svh; }
  .moon { right: 12vw; top: 9svh; }
  .scroll-cue { display: none; }
  .pillar-body { padding: 6px 22px 22px; }
  .keys { grid-template-columns: 1fr 1fr; gap: 10px; }
  .key-offer { padding: 16px; }
  .key-price { font-size: 28px; }
  .chest-stage { width: 240px; height: 210px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .hut { height: 40svh; }
  .foot-grid { grid-template-columns: 1fr; }
  .drawer-panel { padding: 24px 20px 34px; }
}

@media (max-width: 359px) {
  .bar { gap: 6px; padding: 0 12px; }
  .bar .ip-dot { display: none; }
  .brand-mark { font-size: 25px; }
}

/* a section out of view keeps its looping animations still (app.js, sleepOffscreen) */
.asleep *, .asleep *::before, .asleep *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Readable book numerals in prices and narrow phone navigation. */
.pillar-price b, .key-price, .drawer-total b { font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 359px) {
  .bar .ip { padding-inline: 8px; font-size: 12.5px; }
  .bar-login { padding-inline: 10px; font-size: 13px; }
}
