@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/onest-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/onest-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/onest-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/onest-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/onest-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/onest-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/onest-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/onest-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Onest';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/onest-cyrillic-800-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/onest-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
/* ============================================================
   Bein SMP — дизайн-система
   Дневной оверворлд: небо, трава, земля, дуб, камень.
   Контейнеры спокойные и светлые, блочность живёт в деталях:
   иконки, шкалы, кнопки, пейзаж.
   ============================================================ */
:root {
  --bg: #f3f7f4;
  --bg-2: #e9f0eb;
  --sky-1: #a8d9f1;
  --sky-2: #dcf0f9;
  --panel: #ffffff;
  --ink: #18232d;
  --text: #18232d;
  --muted: #55636e;
  --faint: #8a97a1;
  --line: #e3eae6;
  --line-2: #cfd9d3;
  --grass: #4e9a2c;
  --grass-d: #2f6a1b;
  --grass-l: #74c043;
  --grass-bg: #e7f4dd;
  --dirt: #8b5a34;
  --dirt-d: #5e3b20;
  --oak: #c99d5e;
  --oak-d: #7a5530;
  --stone: #1c2630;
  --danger: #c4402f;
  --danger-bg: #fdebe8;
  --warn: #7f5200;
  --warn-bg: #fcf1d6;
  --focus: #2b7fd6;
  --r-lg: 14px;
  --r: 10px;
  --r-s: 6px;
  --e1: 0 1px 2px rgba(20, 35, 45, .06), 0 2px 8px -4px rgba(20, 35, 45, .08);
  --e2: 0 1px 2px rgba(20, 35, 45, .06), 0 12px 28px -14px rgba(20, 35, 45, .24);
  --e3: 0 2px 4px rgba(20, 35, 45, .06), 0 24px 44px -18px rgba(20, 35, 45, .34);
  --font-head: 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-color: #b8c6be transparent; }
body {
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--grass); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--sky-2) 0, var(--bg) 560px), var(--bg);
}

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 5.6vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-family: var(--font-body); font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
.lead { color: #3a4954; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--grass-d); }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--grass); box-shadow: 3px 3px 0 var(--dirt); }
section { padding: 68px 0; }
.sec-head { margin-bottom: 32px; display: grid; gap: 12px; }
.note { margin-top: 18px; color: var(--muted); font-size: 15.5px; max-width: 820px; }
p a, .note a { color: var(--grass-d); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(47,106,27,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, .note a:hover { text-decoration-color: currentColor; }

/* ---------- шапка ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s;
}
.nav.scrolled { background: rgba(255,255,255,.94); box-shadow: 0 6px 22px -14px rgba(20,35,45,.4); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.logo-cube {
  width: 26px; height: 26px; flex: none; border: 2px solid var(--dirt-d); border-radius: 4px;
  background: linear-gradient(var(--grass-l) 0 36%, var(--dirt) 36%);
  transition: transform .45s var(--ease);
}
.logo:hover .logo-cube { transform: rotate(-12deg) scale(1.08); }
.links { display: flex; gap: 2px; align-items: center; }
.links a { position: relative; padding: 8px 14px; border-radius: var(--r-s); color: var(--muted); font-weight: 600; font-size: 15.5px; transition: color .2s; }
.links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--grass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.links a:hover { color: var(--ink); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }
.links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-s); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15.5px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 0 var(--line-2), 0 6px 14px -8px rgba(20,35,45,.2);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); border-color: #b4c4bb; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 var(--line-2); }
.btn-primary {
  color: #fff; border-color: #2f6b1b; background: linear-gradient(#58a735, #3f8a22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 #255214, 0 8px 16px -8px rgba(47,106,27,.6);
}
.btn-primary:hover { border-color: #2f6b1b; filter: brightness(1.06); }
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 #255214; }
.btn-ghost { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 0 var(--line); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: translateY(1px); }

/* ---------- переключатели ---------- */
.tabs { position: relative; isolation: isolate; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; max-width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--e1); }
.tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 15px; border-radius: var(--r-s); font-weight: 700; font-size: 14.5px; color: var(--muted); transition: color .25s, background .2s; }
.tab:not([aria-selected="true"]):hover { color: var(--ink); background: var(--bg); }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(#58a735, #3f8a22); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 #255214; }
.tab .off { margin-left: 6px; font-size: 12px; padding: 1px 6px; border-radius: 4px; background: var(--grass-bg); color: var(--grass-d); font-weight: 800; }
.tab[aria-selected="true"] .off { background: rgba(0,0,0,.2); color: #fff; }
.tabs .thumb { position: absolute; z-index: 0; left: 0; top: 0; border-radius: var(--r-s); background: linear-gradient(#58a735, #3f8a22); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 #255214; pointer-events: none; transition: transform .38s var(--ease), width .38s var(--ease), height .38s var(--ease); }
.tabs.has-thumb .tab[aria-selected="true"] { background: transparent; box-shadow: none; }

/* ============================================================
   ГЛАВНАЯ: мир
   ============================================================ */
.world { position: relative; overflow: hidden; min-height: 650px; background: linear-gradient(var(--sky-1), var(--sky-2) 72%, #eaf6fb); border-bottom: 1px solid var(--dirt-d); }
.world .wrap { position: relative; z-index: 3; padding: 88px 0 200px; }
.world h1 { font-size: clamp(56px, 10vw, 116px); line-height: .95; text-shadow: 0 3px 0 rgba(255,255,255,.7); }
.world .lead { margin-top: 22px; color: #2c3f4e; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 6px 14px 6px 12px; background: rgba(255,255,255,.88); border: 1px solid rgba(24,35,45,.18); border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: var(--e1); }
.status[hidden] { display: none; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b0; }
.status.on i { background: #3fae3a; box-shadow: 0 0 0 0 rgba(63,174,58,.5); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(63,174,58,0); } }

.plaque {
  position: relative; margin-top: 34px; display: inline-flex; align-items: center; gap: 20px; padding: 16px 16px 16px 30px;
  background: linear-gradient(#d3a869, #c39650); border: 2px solid var(--oak-d); border-radius: var(--r-s);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2), 0 4px 0 var(--dirt-d), 0 18px 28px -14px rgba(60,35,10,.5);
}
.plaque::before, .plaque::after { content: ''; position: absolute; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #5e3b20; box-shadow: inset 1px 1px 0 rgba(255,255,255,.3); }
.plaque::before { left: 9px; } .plaque::after { right: 9px; }
.plaque small { display: block; font-size: 13px; font-weight: 700; color: #4a3014; opacity: .85; line-height: 1.2; }
.plaque code { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: #2b1a0a; line-height: 1.2; }
.ver { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-weight: 600; color: #2c3f4e; }
.ver b { font-family: var(--font-head); font-size: 22px; padding: 1px 12px; color: #fff; background: var(--stone); border-radius: var(--r-s); box-shadow: 0 2px 0 #0b1015; }
.world .hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* небо и земля */
.sun { position: absolute; z-index: 1; top: 72px; right: 14%; width: 64px; height: 64px; background: #ffd84a; box-shadow: 0 0 0 10px rgba(255,216,74,.32), 0 0 0 22px rgba(255,216,74,.16); animation: sunpulse 7s ease-in-out infinite; }
@keyframes sunpulse { 50% { box-shadow: 0 0 0 14px rgba(255,216,74,.36), 0 0 0 30px rgba(255,216,74,.12); } }
.cloud { position: absolute; z-index: 1; width: 12px; height: 12px; background: #fff; opacity: .95;
  box-shadow: 12px 0 #fff, 24px 0 #fff, -24px 12px #fff, -12px 12px #fff, 0 12px #fff, 12px 12px #fff, 24px 12px #fff, 36px 12px #fff, 48px 12px #fff, -12px 24px #dcebf4, 0 24px #dcebf4, 12px 24px #dcebf4, 24px 24px #dcebf4, 36px 24px #dcebf4;
  animation: drift linear infinite; }
.cloud.c1 { top: 92px; left: -120px; animation-duration: 95s; }
.cloud.c2 { top: 200px; left: -120px; animation-duration: 140s; animation-delay: -60s; transform: scale(1.5); }
.cloud.c3 { top: 56px; left: -120px; animation-duration: 120s; animation-delay: -95s; transform: scale(.8); }
@keyframes drift { to { translate: calc(100vw + 300px) 0; } }

.hill { position: absolute; z-index: 1; left: 0; right: 0; bottom: 110px; }
.hill.h1 { height: 96px; background: #c6e5ae; clip-path: polygon(0 100%, 0 66%, 5% 66%, 5% 52%, 13% 52%, 13% 36%, 22% 36%, 22% 24%, 33% 24%, 33% 38%, 41% 38%, 41% 52%, 52% 52%, 52% 64%, 61% 64%, 61% 48%, 70% 48%, 70% 32%, 80% 32%, 80% 46%, 89% 46%, 89% 60%, 100% 60%, 100% 100%); }
.hill.h2 { height: 64px; background: #a9d68c; clip-path: polygon(0 100%, 0 50%, 8% 50%, 8% 34%, 17% 34%, 17% 58%, 29% 58%, 29% 42%, 39% 42%, 39% 26%, 50% 26%, 50% 50%, 60% 50%, 60% 66%, 71% 66%, 71% 40%, 83% 40%, 83% 54%, 92% 54%, 92% 34%, 100% 34%, 100% 100%); }
.ground {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 124px;
  background:
    linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.13) 24px 40px, transparent 40px) 0 48px / 112px 32px,
    linear-gradient(90deg, transparent 0 64px, rgba(255,255,255,.08) 64px 80px, transparent 80px) 0 80px / 144px 32px,
    linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,.09) 8px 20px, transparent 20px) 0 104px / 96px 24px,
    linear-gradient(var(--grass-l) 0 16px, var(--grass) 16px 32px, var(--dirt) 32px);
}
.ground::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: repeating-linear-gradient(90deg, var(--grass-l) 0 16px, transparent 16px 40px, var(--grass-l) 40px 56px, transparent 56px 72px); }
.tree { position: absolute; z-index: 2; bottom: 120px; width: 96px; height: 190px; }
.tree::before { content: ''; position: absolute; left: 36px; bottom: 0; width: 24px; height: 100px; background: linear-gradient(90deg, #6b4423 0 8px, #7a4d2b 8px 16px, #6b4423 16px); }
.tree::after {
  content: ''; position: absolute; left: 0; top: 0; width: 96px; height: 112px;
  background: linear-gradient(90deg, transparent 0 16px, rgba(0,0,0,.12) 16px 32px, transparent 32px) 0 32px / 64px 32px, var(--grass);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, calc(100% - 16px) 16px, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 16px calc(100% - 16px), 0 calc(100% - 16px), 0 16px, 16px 16px);
  transform-origin: 50% 100%; animation: sway 8s ease-in-out infinite;
}
@keyframes sway { 50% { transform: rotate(1.2deg); } }
.tree.t1 { right: 9%; }
.tree.t2 { right: 24%; transform: scale(.72); transform-origin: 50% 100%; }
.tree.t2::after { animation-delay: -3s; }

.rise { opacity: 0; animation: rise .8s var(--ease) forwards; }
.rise.d1 { animation-delay: .05s; } .rise.d2 { animation-delay: .15s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .4s; } .rise.d5 { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.join { padding-bottom: 0; }
.join .sec-head { max-width: 640px; }
.join .steps { margin-bottom: 16px; }
.join-note { color: var(--muted); font-size: 15.5px; max-width: 720px; }
.join-note b { color: var(--ink); }

.paths { padding: 64px 0 24px; }
.path { position: relative; display: grid; grid-template-columns: 240px 1fr auto; gap: 28px; align-items: center; padding: 26px 10px; border-top: 1px solid var(--line-2); transition: padding .35s var(--ease), background .3s; }
.path:last-child { border-bottom: 1px solid var(--line-2); }
.path::before { content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--grass); transition: width .5s var(--ease); }
.path:hover { background: #fff; padding-left: 24px; }
.path:hover::before { width: 100%; }
.path b { font-family: var(--font-head); font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.path span { color: var(--muted); max-width: 520px; }
.path i { font-style: normal; font-weight: 800; color: var(--grass-d); transition: transform .3s var(--ease); }
.path:hover i { transform: translateX(6px); }

/* ============================================================
   ОБЩИЕ БЛОКИ
   ============================================================ */
.d-hero { padding: 64px 0 28px; }
.d-hero h1 { max-width: 760px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 700; font-size: 15px; transition: color .2s, transform .25s var(--ease); }
.back:hover { color: var(--grass-d); transform: translateX(-4px); }
.pledge { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.pledge span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.9); font-weight: 700; font-size: 14.5px; }
.pledge svg { width: 16px; height: 16px; color: var(--grass-d); flex: none; }

/* карточки: один язык для всех страниц */
.step, .case, .tip, .fair-col, .table-wrap, .tpl, .rule, .mod, details, .tier, .duel-col, .summary-box, .receipt { background: #fff; border: 1px solid var(--line-2); box-shadow: var(--e1); }
.step, .case, .tip, .tpl, .table-wrap, .tier, .duel-col, .receipt { border-radius: var(--r-lg); }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 26px; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(#58a735, #3f8a22); border-radius: var(--r-s); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 #255214; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
details { border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
details:hover { border-color: #b4c4bb; }
details[open] { box-shadow: var(--e2); }
summary { list-style: none; cursor: pointer; padding: 18px 24px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 28px; height: 28px; font-family: var(--font-head); font-size: 22px; line-height: 1; color: #fff; background: var(--grass); border-radius: var(--r-s); transition: transform .3s var(--ease), background .2s; }
details[open] summary::after { transform: rotate(135deg); background: var(--ink); }
details p { padding: 0 24px 20px; color: var(--muted); font-size: 16px; animation: open .3s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #f7faf8; }
th { font-family: var(--font-body); font-weight: 800; font-size: 16px; background: #f7faf8; border-bottom: 1px solid var(--line-2); }
th:first-child, td:first-child { text-align: left; color: var(--muted); font-weight: 600; position: sticky; left: 0; background: #fff; }
th:first-child { background: #f7faf8; }
td .yes { color: var(--grass-d); font-weight: 800; }
td .no { color: #b3beb8; }
.pun-table { min-width: 560px; }
.pun-table th, .pun-table td { text-align: left; }
.pun-table td:first-child { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 5px; font-size: 13.5px; font-weight: 800; margin: 2px 6px 2px 0; }
.tag.mute { background: var(--warn-bg); color: var(--warn); }
.tag.ban { background: var(--danger-bg); color: #a52f20; }
.tag.perm { background: var(--danger); color: #fff; }

/* ============================================================
   ДОНАТ
   ============================================================ */
.don-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.receipt { position: relative; padding: 26px 28px 30px; border-radius: var(--r); transform: rotate(1.3deg); box-shadow: var(--e2); transition: transform .45s var(--ease); }
.receipt::after { content: ''; position: absolute; left: -1px; right: -1px; top: 100%; height: 14px; background: linear-gradient(-45deg, transparent 7px, #fff 0), linear-gradient(45deg, transparent 7px, #fff 0); background-size: 14px 14px; filter: drop-shadow(0 3px 2px rgba(20,35,45,.1)); }
.receipt:hover { transform: rotate(0); }
.rc-title { font-family: var(--font-head); font-size: 28px; margin-bottom: 14px; }
.rc-sub { font-family: var(--font-body); font-weight: 800; font-size: 16px; margin: 20px 0 6px; color: var(--danger); }
.rc-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 15.5px; }
.rc-row i { flex: 1; min-width: 14px; border-bottom: 2px dotted var(--line-2); transform: translateY(-4px); }
.rc-row b { font-weight: 800; white-space: nowrap; color: var(--grass-d); }
.rc-row.no span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(196,64,47,.6); }
.rc-row.no b { color: var(--danger); }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 17px; }
.rc-total b { font-family: var(--font-head); font-size: 34px; color: var(--grass-d); line-height: 1; }

.period-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.period-note { color: var(--muted); font-size: 14.5px; }

.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
@media (min-width: 1101px) {
  .tier:nth-child(1) { margin-top: 112px; } .tier:nth-child(2) { margin-top: 84px; }
  .tier:nth-child(3) { margin-top: 56px; } .tier:nth-child(4) { margin-top: 28px; }
}
.tier { --c: var(--grass); position: relative; display: flex; flex-direction: column; padding: 28px 22px 22px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tier::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.tier:hover { transform: translateY(-5px); box-shadow: var(--e3); }
.tier-name { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.ic { width: 40px; height: 28px; flex: none; transition: transform .4s var(--ease); }
.ic-o { fill: var(--ink); }
.ic-l { fill: color-mix(in srgb, var(--c) 45%, #fff); }
.ic-m { fill: var(--c); }
.ic-d { fill: color-mix(in srgb, var(--c) 65%, #000); }
.tier:hover .ic { transform: translateY(-3px) rotate(-6deg); }
.price-row { margin-top: 18px; min-height: 100px; }
.old { color: var(--faint); font-size: 14.5px; text-decoration: line-through; min-height: 22px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 22px; margin-left: 3px; color: var(--muted); }
.per { margin-top: 6px; color: var(--muted); font-size: 14px; min-height: 22px; }
.per b { color: var(--grass-d); font-weight: 800; }
.price-swap { animation: swap .3s var(--ease); }
@keyframes swap { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stats { display: grid; gap: 14px; margin: 20px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.stat-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); margin-bottom: 7px; }
.stat-h b { font-family: var(--font-head); font-size: 24px; color: var(--ink); line-height: 1; }
.meter { display: flex; flex-wrap: nowrap; gap: 2px; }
.meter i { flex: 0 0 calc((100% - 38px) / 20); height: 8px; background: var(--line); border-radius: 1px; }
.meter i.f { background: var(--c); box-shadow: inset 2px 2px 0 rgba(255,255,255,.45), inset -2px -2px 0 rgba(0,0,0,.18); animation: pop-in .4s var(--ease) backwards; }
.meter i.f:nth-child(2n) { animation-delay: .04s; } .meter i.f:nth-child(4n) { animation-delay: .09s; } .meter i.f:nth-child(6n) { animation-delay: .14s; }
@keyframes pop-in { from { transform: scale(0); } to { transform: none; } }
.perks { list-style: none; margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 15px; flex: 1; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks li svg { width: 17px; height: 17px; margin-top: 3px; flex: none; color: var(--grass-d); }
.perks li b { font-weight: 800; }
.perks li.off { color: #94a19a; }
.perks li.off svg { color: #c2ccc6; }
.tier .btn { color: var(--ink); background: var(--c); border-color: color-mix(in srgb, var(--c) 55%, #000); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 color-mix(in srgb, var(--c) 55%, #000); }
.tier .btn:hover { filter: brightness(1.07); }
.tier .btn:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 transparent; }

/* ---------- окно заказа ---------- */
dialog { margin: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 0; background: #fff; color: var(--ink); width: min(480px, 100% - 28px); box-shadow: 0 40px 90px -24px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(24,35,45,.55); backdrop-filter: blur(4px); animation: fade .25s ease; }
dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.m-head { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.m-head h3 { font-size: 22px; }
.m-head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.m-x { border: 1px solid var(--line-2); background: #fff; width: 36px; height: 36px; border-radius: var(--r-s); font-size: 20px; line-height: 1; color: var(--muted); flex: none; transition: color .2s, border-color .2s, transform .3s var(--ease); }
.m-x:hover { color: var(--ink); border-color: var(--ink); transform: rotate(90deg); }
.m-body { padding: 22px 26px 26px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field label span { color: var(--muted); font-weight: 500; }
.field input[type="text"], .field input[type="email"] { width: 100%; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--grass-d); box-shadow: 0 0 0 4px rgba(78,154,44,.18); }
.field input.bad { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hint { font-size: 13.5px; color: var(--muted); }
.err { font-size: 13.5px; color: var(--danger); display: none; font-weight: 600; }
.err.show { display: block; }
.summary-box { border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px; background: #f7faf8; box-shadow: none; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; color: var(--muted); }
.sum-row b { color: var(--ink); font-weight: 700; }
.sum-total { padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 17px; color: var(--ink); font-weight: 700; align-items: baseline; }
.sum-total b { font-family: var(--font-head); font-size: 30px; color: var(--grass-d); }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--grass-d); flex: none; }
.agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.demo-note, .tk-note { padding: 12px 14px; border-radius: var(--r-s); font-size: 14px; background: var(--warn-bg); border: 1px solid #e8cf82; color: var(--warn); }
.demo-note { display: none; }
.demo-note.show { display: block; }
.tk-note { margin-top: 22px; display: none; max-width: 560px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.secure svg { width: 15px; height: 15px; }

/* ============================================================
   ПРАВИЛА
   ============================================================ */
.terra { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 56px; align-items: center; }
.plot-wrap { padding: 32px 0 0 32px; }
.plot { position: relative; aspect-ratio: 1; border: 3px dashed var(--grass-d); border-radius: var(--r-s); background: linear-gradient(rgba(47,106,27,.14) 2px, transparent 2px) 0 0 / 10% 10%, linear-gradient(90deg, rgba(47,106,27,.14) 2px, transparent 2px) 0 0 / 10% 10%, #e0f0d3; display: grid; place-items: center; }
.plot-dim { position: absolute; font-size: 14px; font-weight: 800; color: var(--grass-d); }
.plot-dim.top { top: -30px; left: 50%; transform: translateX(-50%); }
.plot-dim.left { left: -32px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }
.sign { position: relative; text-align: center; padding: 16px 26px 14px; border-radius: var(--r-s); background: linear-gradient(#d3a869, #c39650); color: #2b1a0a; border: 2px solid var(--oak-d); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2), 0 4px 0 var(--dirt-d); animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.sign::after { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 38px; transform: translateX(-50%); background: var(--oak-d); }
.sign small { display: block; font-size: 13px; font-weight: 700; opacity: .75; }
.sign b { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; }
.facts { list-style: none; display: grid; gap: 20px; }
.facts li { display: grid; gap: 4px; padding-left: 18px; border-left: 4px solid var(--grass); }
.facts b { font-family: var(--font-body); font-weight: 800; font-size: 19px; }
.facts span { color: var(--muted); }

.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.duel-col { padding: 26px 28px 14px; box-shadow: none; }
.duel-col.ok { background: #f6fbf2; border-color: #b9dca3; }
.duel-col.no { background: #fff7f6; border-color: #efc5be; }
.duel-col h3 { font-size: 21px; margin-bottom: 8px; }
.duel-col.ok h3 { color: var(--grass-d); }
.duel-col.no h3 { color: var(--danger); }
.duel-item { display: flex; gap: 14px; padding: 17px 0; border-top: 1px solid rgba(24,35,45,.1); }
.duel-item:first-of-type { border-top: 0; }
.duel-item svg { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.duel-col.ok .duel-item svg { color: var(--grass-d); }
.duel-col.no .duel-item svg { color: var(--danger); }
.duel-item b { display: block; font-weight: 800; margin-bottom: 3px; }
.duel-item p { color: var(--muted); font-size: 16px; }

.r-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; }
.toc a { display: flex; gap: 12px; padding: 9px 12px; border-radius: var(--r-s); color: var(--muted); font-weight: 600; font-size: 15px; border-left: 3px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.toc a b { font-family: var(--font-head); font-size: 15px; width: 14px; color: #a3b1aa; }
.toc a:hover { color: var(--ink); background: #fff; }
.toc a.on { background: #fff; color: var(--ink); border-left-color: var(--grass); }
.toc a.on b { color: var(--grass-d); }
.r-sec { scroll-margin-top: 92px; padding: 0; margin-bottom: 46px; }
.r-sec h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.r-sec h2 span { color: var(--grass-d); font-size: .7em; }
.rules { list-style: none; display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 17px 22px; border-radius: var(--r); font-size: 16.5px; transition: border-color .2s; }
.rule:hover { border-color: #b4c4bb; }
.rule .num { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--grass-d); padding-top: 1px; }
.rule.pun { border-left: 5px solid var(--danger); background: #fffbfa; }
.rule .sub { margin: 10px 0 2px 18px; display: grid; gap: 8px; color: var(--muted); font-size: 15.5px; }
.rule a { color: var(--grass-d); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.r-end { margin-top: 20px; padding: 28px; border-radius: var(--r-lg); border: 1px solid #b9dca3; background: var(--grass-bg); display: grid; gap: 8px; justify-items: start; }
.r-end b { font-family: var(--font-body); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.r-end p { color: #3d5a30; margin-bottom: 10px; }

/* ============================================================
   ТИКЕТЫ
   ============================================================ */
.cases, .tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case, .tip { padding: 24px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.case:hover, .tip:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.case b, .tip b { display: block; font-weight: 800; font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.case p, .tip p { color: var(--muted); font-size: 16px; }
.tip { border-left: 5px solid var(--grass); }
#tpl-tabs { margin-bottom: 18px; }
.tpl { overflow: hidden; }
.tpl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 24px; background: #f7faf8; border-bottom: 1px solid var(--line); }
.tpl-bar span { font-weight: 800; font-size: 17px; }
.tpl pre, .ex { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 15px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.tpl pre { padding: 22px 24px; animation: swap .3s var(--ease); }
.tpl-hint { padding: 0 24px 20px; color: var(--muted); font-size: 14.5px; }
.ex { padding: 8px 0 14px; color: var(--muted); }
.duel-col .ex { border-top: 1px solid rgba(24,35,45,.1); padding-top: 16px; }

/* ============================================================
   СПРАВОЧНИК МОДОВ
   ============================================================ */
.search { margin-bottom: 14px; }
.search input { width: 100%; padding: 15px 20px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 17px; box-shadow: var(--e1); transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--grass-d); box-shadow: 0 0 0 4px rgba(78,154,44,.18); }
.filters { margin-bottom: 12px; }
.count { margin: 16px 0 6px; color: var(--muted); font-size: 14.5px; min-height: 22px; }
.grp { font-family: var(--font-head); font-size: 26px; margin: 34px 0 12px; color: var(--grass-d); }
.mod { display: grid; grid-template-columns: 240px 1fr 260px; gap: 18px; align-items: start; padding: 18px 22px; margin-bottom: 10px; border-radius: var(--r); border-left-width: 5px; animation: swap .35s var(--ease) both; transition: border-color .2s; }
.mod:hover { border-color: #b4c4bb; }
.mod.ban { border-left-color: var(--danger); }
.mod.ok { border-left-color: var(--grass); }
.mod.lim { border-left-color: #e0a526; }
.mod-main b { display: block; font-weight: 800; font-size: 16px; }
.mod-main small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.mod p { color: var(--muted); font-size: 15.5px; }
.mod-st { display: grid; gap: 6px; justify-items: start; }
.st { padding: 3px 10px; border-radius: 5px; font-size: 13.5px; font-weight: 800; }
.st.ban { background: var(--danger-bg); color: #a52f20; }
.st.ok { background: var(--grass-bg); color: #2c6a14; }
.st.lim { background: var(--warn-bg); color: var(--warn); }
.mod-st .pun { font-size: 14px; color: var(--muted); line-height: 1.4; }
.empty { display: none; margin-top: 20px; padding: 28px; text-align: center; border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.empty b { display: block; font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); }

/* ---------- подвал ---------- */
footer { --text: #f2f5f7; margin-top: 56px; padding: 44px 0 52px; background: var(--stone); color: #aebbc6; font-size: 14.5px; border-top: 6px solid var(--grass); box-shadow: inset 0 2px 0 var(--grass-l); }
footer .logo { color: #fff; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { transition: color .2s; }
.foot-links a:hover { color: #fff; }
.legal { margin-top: 24px; font-size: 13px; opacity: .75; max-width: 760px; }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.steps .step:nth-child(2), .cases .case:nth-child(2), .tips .tip:nth-child(2) { transition-delay: .07s; }
.steps .step:nth-child(3), .cases .case:nth-child(3), .tips .tip:nth-child(3) { transition-delay: .14s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .rise { opacity: 1; transform: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .don-grid { grid-template-columns: 1fr; gap: 48px; }
  .receipt { max-width: 460px; }
}
@media (max-width: 900px) {
  .terra { grid-template-columns: 1fr; gap: 44px; }
  .plot-wrap { max-width: 420px; }
  .duel { grid-template-columns: 1fr; }
  .r-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: sticky; top: 68px; z-index: 20; display: flex; overflow-x: auto; gap: 6px; padding: 8px 24px; margin: 0 -24px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
  .toc a { white-space: nowrap; flex: none; border-left: 0; border-bottom: 3px solid transparent; }
  .toc a.on { border-bottom-color: var(--grass); }
  .r-sec { scroll-margin-top: 130px; }
  .cases, .tips { grid-template-columns: 1fr 1fr; }
  .mod { grid-template-columns: 1fr; gap: 8px; }
  .path { grid-template-columns: 1fr auto; }
  .path span { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  section { padding: 48px 0; }
  .wrap { width: min(1180px, 100% - 40px); }
  .nav-in { height: auto; flex-wrap: wrap; padding: 10px 0 6px; row-gap: 4px; }
  .links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .links a { white-space: nowrap; }
  .nav-cta { margin-left: auto; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .world { min-height: 610px; }
  .world .wrap { padding: 56px 0 180px; }
  .sun { right: 8%; top: 40px; width: 44px; height: 44px; }
  .tree.t2 { display: none; }
  .tree.t1 { right: 3%; transform: scale(.62); transform-origin: 50% 100%; }
  .rule { padding: 15px 16px; }
  .mod { padding: 16px; }
}
@media (max-width: 560px) {
  .tiers, .cases, .tips { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 30%; padding: 9px 6px; }
  .tab .off { display: none; }
  .rule { grid-template-columns: 1fr; gap: 4px; }
  .duel-col { padding: 22px 20px 8px; }
  .tpl-bar { flex-wrap: wrap; }
  .plaque { flex-wrap: wrap; }
  .receipt { transform: none; padding: 22px 20px 26px; }
}


/* ============================================================
   ПОЛИРОВКА: читаемость, шапки страниц, ночное небо, схемы
   ============================================================ */
:root { --muted: #3e4b56; --faint: #66737e; }
body { line-height: 1.75; }
.lead { color: #34424d; }
.step p, .case p, .tip p, .duel-item p, .facts span, details p, .mod p, .flow-step p, .tpl-hint { font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.rule { font-size: 17px; }
.rule > div { max-width: 76ch; }
.rule .sub { font-size: 16px; }
.mod-main small { font-size: 14px; color: var(--faint); }
.mod-st .pun { font-size: 14.5px; }
th { font-size: 16.5px; }
td { font-size: 16px; }
.sec-head h2 { margin-bottom: 2px; }

/* шапка внутренних страниц: небо и пиксельные холмы внизу */
.d-hero { position: relative; padding: 64px 0 96px; }
.d-hero > .wrap { position: relative; z-index: 1; }
.d-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: #d9edc9;
  clip-path: polygon(0 100%, 0 62%, 4% 62%, 4% 40%, 11% 40%, 11% 62%, 19% 62%, 19% 30%, 27% 30%, 27% 52%, 36% 52%, 36% 70%, 46% 70%, 46% 44%, 55% 44%, 55% 26%, 64% 26%, 64% 50%, 73% 50%, 73% 66%, 82% 66%, 82% 38%, 91% 38%, 91% 56%, 100% 56%, 100% 100%);
}
.d-hero + section { padding-top: 44px; }

/* схема правила проверяемости */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 4px; }
.flow-step { position: relative; padding: 24px 26px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e1); }
.flow-step:not(:nth-child(3))::after { content: ''; position: absolute; right: -15px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--line-2); border-right: 3px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.flow-step span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: var(--r-s); font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; background: var(--ink); }
.flow-step:nth-child(3) span { background: var(--danger); }
.flow-step b { display: block; font-weight: 800; font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.flow-result { grid-column: 1 / -1; display: flex; gap: 18px; align-items: baseline; padding: 20px 26px; background: #fff7f6; border: 1px solid #efc5be; border-radius: var(--r-lg); }
.flow-result b { color: var(--danger); font-weight: 800; font-size: 18px; }
.flow-result p { color: var(--ink); font-size: 16.5px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.twocol h3 { margin-bottom: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--danger-bg); color: #a52f20; border: 1px solid #f0c7c0; font-weight: 700; font-size: 14.5px; }
.chips.ok li { background: var(--grass-bg); color: #2c6a14; border-color: #b9dca3; }

/* ночное небо: меняется по местному времени */
.world::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 62%; opacity: 0; transition: opacity 1.2s; pointer-events: none; background: radial-gradient(1.6px 1.6px at 6% 14%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 12% 36%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 19% 8%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 27% 26%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 34% 12%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 41% 34%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 48% 6%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 55% 22%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 62% 10%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 68% 38%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 74% 16%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 81% 6%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 88% 28%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 94% 14%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 9% 52%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 58% 46%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 90% 48%, #fff 98%, transparent),radial-gradient(1.6px 1.6px at 31% 48%, #fff 98%, transparent); animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 50% { filter: brightness(.6); } }
.world[data-sky="night"] { background: linear-gradient(#0d1830, #1b3156 68%, #2a4772); }
.world[data-sky="night"]::before { opacity: 1; }
.world[data-sky="night"] .sun { background: linear-gradient(#c9d4ec, #c9d4ec) 14px 14px / 12px 12px no-repeat, linear-gradient(#c9d4ec, #c9d4ec) 38px 32px / 8px 8px no-repeat, #eef3ff; box-shadow: 0 0 0 10px rgba(238,243,255,.14), 0 0 0 22px rgba(238,243,255,.07); animation: none; }
.world[data-sky="night"] .cloud { filter: brightness(.5) saturate(.6); }
.world[data-sky="night"] .hill, .world[data-sky="night"] .ground, .world[data-sky="night"] .tree { filter: brightness(.55) saturate(.85); }
.world[data-sky="night"] h1 { color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.world[data-sky="night"] .lead, .world[data-sky="night"] .ver { color: #d3e2f3; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:nth-child(3))::after { display: none; }
  .twocol { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .d-hero { padding: 44px 0 80px; }
  .flow-result { flex-direction: column; gap: 4px; }
}

h1 em, h2 em { font-style: normal; color: var(--grass-d, #2c6a14); }
.world > .wrap, .world .wrap { position: relative; z-index: 2; }

/* ============================================================
   ТИПОГРАФИКА (Onest вместо пиксельного шрифта) И ДВИЖЕНИЕ
   ============================================================ */
h1, h2 { font-weight: 800; letter-spacing: -.028em; }
h2 { line-height: 1.12; }
.logo, .plaque code, .ver b, .rc-title, .tier-name, .price, .stat-h b, .sum-total b, .rc-total b, .grp, .path b, .sign b { letter-spacing: -.02em; }
.plaque code { font-weight: 800; }
.step::before, .flow-step span, .rule .num { font-weight: 800; font-variant-numeric: tabular-nums; }
.toc a b { font-weight: 800; }

:root { interpolate-size: allow-keywords; --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* переходы между страницами без белой вспышки */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .38s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* появление: анимация с задержкой по порядку, после неё hover снова работает */
.reveal { opacity: 0; transform: none; transition: none; }
.reveal.in { opacity: 1; animation: reveal .8s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 75ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(26px); } }

/* полоса прогресса чтения */
.progress { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #58a735, #8fd35e); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* блик на главных кнопках */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); transition: left .7s var(--ease-out); }
.btn-primary:hover::after { left: 130%; }

/* карточки: подсветка за курсором */
.case, .tip { position: relative; overflow: hidden; }
.case::after, .tip::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(88,167,53,.14), transparent 70%); }
.case:hover::after, .tip:hover::after { opacity: 1; }
.case:hover, .tip:hover { transform: translateY(-3px); box-shadow: var(--e2); }

/* аккуратные FAQ: высота раскрывается плавно */
details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
details[open]::details-content { block-size: auto; }
details p { animation: none; }
summary::after { transition: transform .4s var(--ease-out), background .2s; }
details[open] summary::after { content: '\2212'; background: var(--ink); }

/* параллакс холмов на главной */
.world .hill.h1 { translate: 0 calc(var(--sy, 0) * .05px); }
.world .hill.h2 { translate: 0 calc(var(--sy, 0) * .1px); }
.world .plaque, .world .sun { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; animation: none; }
  .progress, .btn-primary::after { display: none; }
  @view-transition { navigation: none; }
}
@media (max-width: 760px) { .toc { margin-inline: -20px; padding-inline: 20px; } }

/* ============================================================
   ТИМА: калькулятор границы
   ============================================================ */
@property --cell { syntax: '<percentage>'; inherits: true; initial-value: 33%; }
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 56px; align-items: center; padding: 44px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e1); }
.team .lead { max-width: 54ch; }
.team .lead b { color: var(--grass-d); font-weight: 800; white-space: nowrap; }
.tcalc { margin-top: 28px; padding: 22px 24px; border-radius: var(--r); background: #f3f8ee; border: 1px solid #dbe9cf; }
.tcalc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tcalc-label { font-weight: 800; font-size: 17px; }
.stepper { display: inline-flex; align-items: stretch; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2); overflow: hidden; }
.stepper button { width: 46px; border: 0; background: transparent; font: inherit; font-size: 24px; font-weight: 700; color: var(--grass-d); transition: background .2s, color .2s; }
.stepper button:hover:not(:disabled) { background: var(--grass-bg); }
.stepper button:active:not(:disabled) { background: #cfe6bb; }
.stepper button:disabled { color: #b9c4bd; cursor: not-allowed; }
.stepper output { min-width: 58px; display: grid; place-items: center; font-weight: 800; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; border-inline: 1px solid var(--line-2); }
.tstats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.tstats div { padding: 12px 14px; border-radius: var(--r-s); background: #fff; border: 1px solid #e3ecd9; }
.tstats small { display: block; font-size: 13px; font-weight: 700; color: var(--faint); margin-bottom: 4px; }
.tstats b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tstats div:first-child b { color: var(--grass-d); }
.tformula { margin-top: 14px; font-size: 15.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.ladder { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.ladder button { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; font: inherit; text-align: left; transition: border-color .2s, background .25s, transform .2s var(--ease), box-shadow .2s; }
.ladder button span { font-size: 13px; font-weight: 700; color: var(--faint); }
.ladder button i { font-style: normal; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.ladder button:hover { transform: translateY(-2px); border-color: #b9d5a5; box-shadow: var(--e1); }
.ladder button.on { background: var(--grass-bg); border-color: var(--grass); box-shadow: inset 0 0 0 1px var(--grass); }
.ladder button.on span { color: var(--grass-d); }

.tstage-wrap { padding: 32px 0 44px 32px; }
.tstage { position: relative; aspect-ratio: 1; display: grid; place-items: center; --cell: 33%; transition: --cell .7s var(--ease-out); }
.tstage::after { content: ''; position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: 4px;
  background: linear-gradient(rgba(47,106,27,.16) 1px, transparent 1px) 0 0 / var(--cell) var(--cell), linear-gradient(90deg, rgba(47,106,27,.16) 1px, transparent 1px) 0 0 / var(--cell) var(--cell); }
.tlayers { position: absolute; inset: 0; }
.tl { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; width: 100%; transform: translate(-50%, -50%); border: 2px dashed var(--grass-d); border-radius: 4px;
  background: color-mix(in srgb, #b5dc9b, #f1f8e9 calc(var(--j) * 11%)); transition: width .7s var(--ease-out), opacity .45s; }
.tl:first-child { border-style: solid; border-width: 3px; }
.tstage .sign { position: relative; z-index: 30; margin-bottom: 44px; }
.tstage .sign b { white-space: nowrap; }
.tstage .plot-dim { z-index: 31; }

@media (max-width: 1000px) {
  .team { grid-template-columns: 1fr; gap: 28px; padding: 32px 26px; }
  .tstage-wrap { max-width: 440px; width: 100%; margin-inline: auto; }
}
@media (max-width: 760px) {
  .team { padding: 26px 18px; }
  .tcalc { padding: 18px 16px; }
  .tstats { grid-template-columns: 1fr 1fr; }
  .tstats div:first-child { grid-column: 1 / -1; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .tstage-wrap { padding-left: 30px; }
}
.tstage .sign { align-self: end; margin-bottom: 56px; transform: scale(.82); transform-origin: 50% 100%; }
.tl:first-child::before { content: 'стандарт 600 × 600'; position: absolute; left: 8px; top: 6px; font-size: 11.5px; font-weight: 800; color: var(--grass-d); white-space: nowrap; }
@media (max-width: 760px) { .tl:first-child::before { font-size: 10.5px; } }
.tstage .sign { margin-bottom: 14px; }
.tstage .sign::after { display: none; }
.tstage.tight .tl:first-child::before { content: '600'; }

/* ступени прибавки */
.steps-pill { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.steps-pill li { position: relative; padding: 12px 14px 12px; border-radius: var(--r-s); background: #fff; border: 1px solid #d8e8cb; overflow: hidden; }
.steps-pill li::before { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--k) * 25%); background: linear-gradient(90deg, #58a735, #8fd35e); }
.steps-pill li:nth-child(1) { --k: 1; } .steps-pill li:nth-child(2) { --k: 2; } .steps-pill li:nth-child(3) { --k: 3; } .steps-pill li:nth-child(4) { --k: 4; }
.steps-pill span { display: block; font-size: 13px; font-weight: 700; color: var(--faint); }
.steps-pill b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--grass-d); font-variant-numeric: tabular-nums; }
.steps-note { margin-top: 10px; font-size: 14.5px; color: var(--faint); max-width: 54ch; }
.tstage.none .sign { align-self: center; margin-bottom: 0; }
.tstage.none::after { opacity: 0; }
.tstage { transition: --cell .7s var(--ease-out); }
@media (max-width: 760px) { .steps-pill { grid-template-columns: repeat(2, 1fr); } }

/* тима: ступени роста */
.ladder { grid-template-columns: 1fr; gap: 6px; }
.ladder button { flex-direction: row; align-items: baseline; gap: 14px; padding: 11px 16px; }
.ladder button span { flex: 0 0 118px; font-size: 14.5px; color: var(--ink); font-weight: 800; }
.ladder button em { flex: 1; font-style: normal; font-size: 14.5px; font-weight: 600; color: var(--faint); }
.ladder button i { margin-left: auto; font-size: 15.5px; }
.ladder button.on span { color: var(--grass-d); }
.tl { border-width: 1px; border-style: solid; border-color: rgba(47,106,27,.4); background: color-mix(in srgb, #b5dc9b, #eef7e6 calc(var(--j) * 24%)); }
.tl.edge { border-width: 2px; border-style: dashed; border-color: var(--grass-d); }
.tl:first-child { border-style: solid; border-width: 3px; }
.tstage.none .tl:first-child { border-style: dashed; }
.tstage.none .sign { opacity: .9; }
@media (max-width: 760px) {
  .ladder button { flex-wrap: wrap; gap: 2px 12px; }
  .ladder button span { flex-basis: auto; }
  .ladder button em { flex-basis: 100%; order: 3; font-size: 13.5px; }
}

/* ============================================================
   ПРИВИЛЕГИИ: строки-ранги, подбор, пояснения
   ============================================================ */
.from-price { margin-top: 22px; font-size: 17px; font-weight: 600; color: var(--muted); }
.from-price b { color: var(--grass-d); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.d-hero .pledge { margin-top: 18px; }

/* подбор */
.pick { margin-bottom: 26px; padding: 22px 26px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e1); }
.pick-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.pick-head b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pick-hint { font-size: 15px; color: var(--muted); }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: #f6f9f4; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease); }
.chip:hover { border-color: #aac79a; transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--grass); border-color: var(--grass-d); color: #fff; box-shadow: 0 2px 0 #255214; }
.pick-result { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; padding: 14px 18px; border-radius: var(--r); background: #f1f8ea; border: 1px solid #cfe3bf; font-size: 17px; animation: swap .3s var(--ease); }
.pick-result[hidden] { display: none; }
.pick-result .btn { margin-left: auto; }
.pick-clear { border: 0; background: none; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.pick-clear:hover { color: var(--ink); }

/* строки-ранги */
.ranks { display: grid; gap: 16px; }
.rank { --c: var(--grass); position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; gap: 34px; align-items: center; padding: 28px 32px 28px 40px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e1); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .3s, border-color .25s; }
.rank::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--c); transition: width .35s var(--ease-out); }
.rank::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, color-mix(in srgb, var(--c) 13%, transparent), transparent 38%); }
.rank > * { position: relative; z-index: 1; }
.rank:hover { transform: translateY(-3px); box-shadow: var(--e3); }
.rank:hover::before { width: 16px; }
.rank.hot { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), var(--e2); }
.rank.match { border-color: var(--grass); box-shadow: 0 0 0 2px var(--grass), var(--e3); }
.rank.dim { opacity: .55; }
.rank.dim:hover { opacity: .9; }
.rk-badge { display: inline-block; margin-bottom: 10px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .01em; color: var(--ink); background: var(--c); }
.rk-badge.you { background: var(--grass); color: #fff; }
.rk-name { display: flex; align-items: center; gap: 14px; }
.rk-name h3 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.rk-name .ic { width: 56px; height: 39px; }
.rank:hover .ic { transform: translateY(-3px) rotate(-6deg); }
.rk-tag { margin-top: 10px; font-weight: 800; font-size: 16px; color: color-mix(in srgb, var(--c) 55%, #000); }
.rk-who { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.rk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rk-stats .stat-h b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.rk-stats .stat-h span { font-size: 15px; font-weight: 600; color: var(--muted); }
.rk-stats .meter i { height: 10px; }
.rk-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rk-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px; font-size: 14.5px; font-weight: 700; border: 1px solid transparent; cursor: help; }
.rk-chips li svg { width: 16px; height: 16px; flex: none; }
.rk-chips li.on { background: #eef7e6; color: #2c6a14; border-color: #d3e8c3; }
.rk-chips li.off { background: #f4f6f4; color: #9aa7a0; text-decoration: line-through; text-decoration-color: rgba(120,135,128,.5); }
.rk-chips b { font-weight: 800; }
.rk-buy .price-row { min-height: 0; margin: 0 0 16px; }
.rk-buy .old { min-height: 20px; }
.rk-buy .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.rk-buy .day { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--grass-d); }
.rk-buy .btn { color: var(--ink); background: var(--c); border-color: color-mix(in srgb, var(--c) 55%, #000); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 color-mix(in srgb, var(--c) 55%, #000); font-size: 16px; padding: 13px 20px; }
.rk-buy .btn:hover { filter: brightness(1.07); }
.rk-buy .btn:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 transparent; }

/* пояснения */
.gloss { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gl { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--e1); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.gl:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.gl-ic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--r-s); background: #f0f6ea; border: 1px solid #dbe8cf; }
.gl-ic svg { width: 34px; height: 34px; }
.gl b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 5px; }
.gl p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.gl-range { display: inline-block; margin-top: 10px; padding: 3px 11px; border-radius: 999px; background: #eef7e6; color: #2c6a14; font-size: 13.5px; font-weight: 800; }

@media (max-width: 1180px) {
  .rank { grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 26px; padding-inline: 30px 26px; }
  .gloss { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .rank { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px 26px 32px; }
  .rk-buy { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
  .rk-buy .price-row { margin: 0; }
  .rk-buy .btn { min-width: 190px; }
}
@media (max-width: 640px) {
  .rk-stats { grid-template-columns: 1fr; gap: 16px; }
  .rk-buy { grid-template-columns: 1fr; }
  .rk-buy .btn { min-width: 0; }
  .gloss { grid-template-columns: 1fr; }
  .pick { padding: 18px 16px; }
  .pick-result .btn { margin-left: 0; width: 100%; }
}
.gl-no { background: #fff7f6; border-color: #efc5be; }
.gl-no .gl-ic { background: #fde9e6; border-color: #f0c7c0; color: var(--danger); }
.gl-no .gl-ic svg { width: 28px; height: 28px; }
.gl-no .gl-range { background: #fde9e6; color: #a52f20; }


/* ============================================================
   V3. ИНТЕРФЕЙС ИГРЫ
   Один сильный приём: привилегии оформлены как инвентарь Minecraft
   (серая панель, слоты, подсказки). Всё остальное спокойнее и квадратнее.
   ============================================================ */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-rub.woff2) format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-rub.woff2) format('woff2'); unicode-range: U+20BD; }

:root {
  --bg: #eaf1f5;
  --sky-1: #7cc8f0;
  --sky-2: #cfeefb;
  --ink: #151a26;
  --text: #151a26;
  --muted: #424e5a;
  --faint: #66727e;
  --line: #d9e3e9;
  --line-2: #bfcbd4;
  --em: #22d36f;
  --em-d: #0b8a45;
  --gui: #c6cbd0;
  --gui-hi: #f4f6f7;
  --gui-lo: #7b838b;
  --slot: #8a9299;
  --r-lg: 8px;
  --r: 6px;
  --r-s: 4px;
  --e1: 0 3px 0 rgba(21, 26, 38, .09);
  --e2: 0 4px 0 rgba(21, 26, 38, .14), 0 16px 26px -18px rgba(21, 26, 38, .34);
  --e3: 0 5px 0 rgba(21, 26, 38, .18), 0 24px 36px -20px rgba(21, 26, 38, .42);
  --font-head: 'Unbounded', 'Onest', system-ui, sans-serif;
}
.bg-grid { background: linear-gradient(var(--sky-2) 0, var(--bg) 520px), var(--bg); }
.eyebrow { display: none; }

h1, h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.025em; line-height: 1.14; }
h1 { font-size: clamp(30px, 4.2vw, 52px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h1 em, h2 em { font-style: normal; color: inherit; }
.sec-head { gap: 14px; margin-bottom: 36px; }
.lead { max-width: 60ch; }

/* ---------- шапка ---------- */
.nav, .nav.scrolled { background: var(--ink); border-bottom: 0; backdrop-filter: none; box-shadow: 0 4px 0 #2e7d1f; }
.nav.scrolled { box-shadow: 0 4px 0 #2e7d1f, 0 16px 24px -14px rgba(10, 14, 22, .6); }
.nav-in { height: 72px; }
.logo { color: #fff; font-size: 19px; letter-spacing: -.02em; }
.logo-cube { width: 28px; height: 28px; border-radius: 3px; border-color: #0c0f16; box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -2px -2px 0 rgba(0,0,0,.25); }
.links a { color: #a9b6c3; font-weight: 600; }
.links a:hover, .links a.active { color: #fff; }
.links a::after { background: var(--em); height: 3px; bottom: 0; }
.nav-cta { align-items: center; }
.nav .btn-ghost { background: transparent; color: #fff; border: 2px solid #343c4e; box-shadow: none; padding: 8px 16px; }
.nav .btn-ghost:hover { border-color: #5a667c; transform: none; }
.btn-buy {
  position: relative; overflow: hidden; isolation: isolate; color: #032413; border: 2px solid #064d27; border-radius: var(--r-s); font-weight: 800;
  background: linear-gradient(#4af08e, var(--em) 55%, #17b95f);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,70,30,.25), 0 3px 0 #064d27;
}
.btn-buy:hover { filter: brightness(1.06); transform: translateY(-1px); border-color: #064d27; }
.btn-buy:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 1px 0 #064d27; }
.btn-buy::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); transition: left .7s var(--ease-out); }
.btn-buy:hover::after { left: 130%; }
.nav .btn-buy { padding: 8px 16px; font-size: 15px; gap: 8px; }
.nav .btn-buy small { font-size: 13px; font-weight: 700; opacity: .75; }

/* ---------- кнопки и переключатели ---------- */
.btn { border: 2px solid var(--ink); border-radius: var(--r-s); background: #fff; box-shadow: 0 3px 0 var(--ink); padding: 10px 20px; font-weight: 700; }
.btn:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { color: #fff; border-color: #0f3a07; background: linear-gradient(#63b83c, #3f8a22); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 #0f3a07; }
.btn-primary:hover { border-color: #0f3a07; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 4px 0 #0f3a07; }
.btn-primary:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 0 0 #0f3a07; }
.tabs { border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--e1); padding: 4px; }
.tab { border-radius: 3px; }
.tabs .thumb, .tab[aria-selected="true"] { background: var(--ink); box-shadow: none; }
.tab[aria-selected="true"] { color: #fff; }
.tabs.has-thumb .tab[aria-selected="true"] { background: transparent; }
.tab .off { background: #dff5e7; color: #0b6a36; border-radius: 3px; }
.tab[aria-selected="true"] .off { background: var(--em); color: #032413; }

/* ---------- блоки ---------- */
.step, .case, .tip, .tpl, .table-wrap, .duel-col, .rule, .mod, details, .receipt, .team, .pick, .gl { border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.step::before { border-radius: 3px; background: var(--ink); box-shadow: none; font-size: 17px; }
summary::after { background: var(--ink); border-radius: 3px; }
.chip { border-radius: var(--r-s); }
.pledge span { border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; }

/* ---------- подвал ---------- */
footer { position: relative; margin-top: 110px; padding: 60px 0 56px; background: #0f131c; border-top: 0; box-shadow: none; color: #a9b6c3; }
footer::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
  background: linear-gradient(#5fb13a 0 8px, #3f8a22 8px) 0 100% / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, #5fb13a 0 24px, transparent 24px 64px) 0 0 / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 40px, #5fb13a 40px 56px, transparent 56px 88px) 0 8px / 100% 8px no-repeat; }
footer .logo { color: #fff; }
.foot-links a { color: #a9b6c3; font-weight: 600; }
.foot-links a:hover { color: #fff; }
.foot-buy { display: inline-flex; margin-top: 16px; }

/* ---------- шапки внутренних страниц ---------- */
.d-hero { padding: 52px 0 76px; }
.d-hero h1 { max-width: 20ch; }

/* ---------- ГЛАВНАЯ ---------- */
.world { min-height: 0; border-bottom: 0; background: linear-gradient(var(--sky-1), var(--sky-2) 78%, #e4f5fb); }
.world .wrap { padding: 54px 0 0; }
.wordmark { width: min(600px, 100%); line-height: 0; filter: drop-shadow(0 6px 0 rgba(21,26,38,.12)); }
.wordmark .wm { width: 100%; height: auto; overflow: visible; }
.world .lead { margin-top: 26px; font-size: clamp(17px, 1.7vw, 20px); color: #1f3242; max-width: 46ch; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 30px; }
.hero-row .plaque { margin-top: 0; }
.hero-row .ver { margin-top: 0; }
.world .hero-actions { margin-top: 0; }
.plaque { border-radius: var(--r-s); padding: 14px 14px 14px 28px; border-color: #5a3b1c; box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -2px -2px 0 rgba(60,35,10,.25), 0 4px 0 #3e2810; }
.plaque code { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.ver b { font-size: 17px; border-radius: 3px; }
.status { border-radius: var(--r-s); }
.hill.h1 { bottom: 150px; } .hill.h2 { bottom: 150px; }
.ground { height: 164px; }
.tree { bottom: 160px; }

.hotbar-wrap { position: relative; z-index: 6; margin-top: 54px; padding-bottom: 34px; }
.hotbar { position: relative; padding: 14px 16px 16px; background: var(--gui); border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: inset 3px 3px 0 var(--gui-hi), inset -3px -3px 0 var(--gui-lo), 0 7px 0 rgba(21,26,38,.28), 0 26px 34px -18px rgba(21,26,38,.5); }
.hb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 2px 12px; color: #2b3139; }
.hb-head b { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: #151a26; }
.hb-head span { font-size: 15px; font-weight: 600; }
.hb-head a { margin-left: auto; font-size: 15px; font-weight: 800; color: #0b5a2d; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.hb-head a:hover { color: #043a1c; }
.hb-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hb-slot { --c: #888; position: relative; display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 10px 14px 10px 10px; background: var(--slot); border: 0;
  box-shadow: inset 3px 3px 0 #4b535a, inset -3px -3px 0 #f1f4f6; transition: background .2s, transform .2s var(--ease-out); }
.hb-slot:hover, .hb-slot:focus-visible { background: #a2aab1; }
.hb-slot.hot { outline: 4px solid #fff; outline-offset: -4px; box-shadow: inset 3px 3px 0 #4b535a, inset -3px -3px 0 #f1f4f6, 0 0 0 3px var(--ink); z-index: 1; }
.hb-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; }
.hb-ic .ic { width: 52px; height: 36px; filter: drop-shadow(0 3px 0 rgba(21,26,38,.35)); transition: transform .3s var(--ease-out); }
.hb-slot:hover .ic { transform: translateY(-4px) rotate(-6deg); }
.hb-txt { display: grid; gap: 1px; min-width: 0; }
.hb-txt b { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: -.03em; color: #fff; text-shadow: 2px 2px 0 #2a3038; }
.hb-txt em { font-style: normal; font-size: 15px; font-weight: 800; color: #fff; text-shadow: 2px 2px 0 #2a3038; white-space: nowrap; }
.hb-flag { position: absolute; z-index: 2; top: -13px; left: 50%; transform: translateX(-50%); padding: 2px 10px; background: var(--c); border: 2px solid var(--ink); border-radius: 3px; font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* подсказка как в игре */
.mc-tip { position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 12px); width: max-content; max-width: 250px; display: grid; gap: 3px; padding: 9px 12px 10px; text-align: left; pointer-events: none;
  background: #14081f; border: 2px solid #3b1790; border-radius: 3px; box-shadow: 0 0 0 2px #14081f, 0 12px 22px rgba(0,0,0,.4);
  opacity: 0; transform: translate(-50%, 6px); transition: opacity .16s, transform .2s var(--ease-out); }
.mc-tip b { font-family: var(--font-body); font-size: 15.5px; font-weight: 800; color: #fff; line-height: 1.3; }
.mc-tip i { font-style: normal; font-size: 14px; font-weight: 500; color: #b9b3c9; line-height: 1.35; }
.mc-tip u { text-decoration: none; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: #8e7bff; }
.hb-slot:hover .mc-tip, .hb-slot:focus-visible .mc-tip, .slot:hover .mc-tip, .slot:focus-visible .mc-tip { opacity: 1; transform: translate(-50%, 0); }
.hb-slot.first .mc-tip { left: 0; transform: translate(0, 6px); } .hb-slot.first:hover .mc-tip, .hb-slot.first:focus-visible .mc-tip { transform: none; }
.hb-slot.last .mc-tip { left: auto; right: 0; transform: translate(0, 6px); } .hb-slot.last:hover .mc-tip, .hb-slot.last:focus-visible .mc-tip { transform: none; }

@media (max-width: 1100px) {
  .hb-slots { grid-template-columns: repeat(3, 1fr); }
  .hb-slot.last .mc-tip, .hb-slot.first .mc-tip { left: 50%; right: auto; transform: translate(-50%, 6px); }
  .hb-slot.last:hover .mc-tip, .hb-slot.first:hover .mc-tip { transform: translate(-50%, 0); }
}
@media (max-width: 760px) {
  .world .wrap { padding-top: 34px; }
  .hotbar-wrap { margin-top: 44px; padding-bottom: 26px; }
  .hb-slots { grid-template-columns: 1fr 1fr; }
  .hb-slot:last-child { grid-column: 1 / -1; }
  .hb-head a { margin-left: 0; }
  .mc-tip { display: none; }
  .ground { height: 120px; } .hill.h1, .hill.h2 { bottom: 110px; } .tree { display: none; }
}
@media (hover: none) { .mc-tip { display: none; } }
.hotbar-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
@media (max-width: 760px) { .hotbar-wrap { width: calc(100% - 28px); } }

/* порядок правил: эти идут после .btn */
.btn.btn-buy { color: #032413; border-color: #064d27; background: linear-gradient(#4af08e, var(--em) 55%, #17b95f); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,70,30,.25), 0 3px 0 #064d27; }
.btn.btn-buy:hover { border-color: #064d27; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,70,30,.25), 0 4px 0 #064d27; }
.btn.btn-buy:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 0 0 #064d27; }
.world .tree { display: none; }
.wordmark { width: min(660px, 100%); }

@media (max-width: 900px) {
  .nav-in { height: auto; padding: 10px 0 6px; }
  .links a { color: #a9b6c3; padding: 8px 12px; }
  .links a.active { color: #fff; }
}
@media (max-width: 560px) {
  .nav .btn-ghost { display: none; }
  .nav .btn-buy { padding: 8px 14px; }
}
@media (max-width: 760px) {
  .cloud.c2 { display: none; }
  .sun { top: 28px; }
}

/* ============================================================
   V3. ПРИВИЛЕГИИ: инвентарь
   Строка = привилегия, столбец = слот. Слоты с иконками как в игре.
   ============================================================ */
.shop-hero { padding: 40px 0 70px; }
.shop-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 48px; align-items: end; }
.shop-top .lead { margin-top: 14px; }
.shop-top .pledge { margin-top: 0; justify-content: flex-end; }
.pledge .from-price { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff; font-weight: 700; font-size: 14.5px; }
.pledge .from-price b { color: var(--em-d); font-family: var(--font-head); font-size: 15.5px; }
.shop { padding-top: 0; margin-top: -46px; position: relative; z-index: 5; }
.shop .period-bar { margin-bottom: 22px; }
.pick-sec { padding-top: 8px; }

.inv { --cols: minmax(190px, 1.25fr) repeat(6, 62px) minmax(112px, .8fr) 118px; position: relative; padding: 16px 16px 14px; background: var(--gui); border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: inset 3px 3px 0 var(--gui-hi), inset -3px -3px 0 var(--gui-lo), 0 7px 0 rgba(21,26,38,.28), 0 26px 34px -18px rgba(21,26,38,.5); }
.inv-head { display: grid; grid-template-columns: var(--cols); gap: 10px; padding: 0 10px 8px; font-size: 13px; font-weight: 800; color: #3a424a; text-align: center; }
.inv-head span:first-child { text-align: left; }
.inv-row { position: relative; display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; padding: 10px 10px 8px; margin-top: 12px;
  background: #b4bac0; box-shadow: inset 3px 3px 0 #7b838b, inset -3px -3px 0 #eef1f3; }
.inv-row.hot { outline: 4px solid #fff; outline-offset: -4px; box-shadow: inset 3px 3px 0 #7b838b, inset -3px -3px 0 #eef1f3, 0 0 0 3px var(--ink); z-index: 1; background: #bdc3c9; }
.inv-row.match { outline: 4px solid var(--em); outline-offset: -4px; z-index: 1; }
.inv-row.dim { opacity: .55; transition: opacity .2s; }
.inv-row.dim:hover { opacity: .95; }
.iv-flag { position: absolute; z-index: 3; top: -13px; left: 14px; padding: 2px 10px; background: var(--c); border: 2px solid var(--ink); border-radius: 3px; font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.iv-flag.you { background: var(--em); }
.iv-rank { display: flex; align-items: center; gap: 12px; min-width: 0; }
.iv-ic { flex: none; display: grid; place-items: center; width: 60px; height: 52px; }
.iv-ic .ic { width: 56px; height: 39px; filter: drop-shadow(0 3px 0 rgba(21,26,38,.35)); transition: transform .3s var(--ease-out); }
.inv-row:hover .iv-ic .ic { transform: translateY(-3px) rotate(-6deg); }
.iv-rank h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #fff; text-shadow: 2px 2px 0 #2a3038; }
.iv-rank p { margin-top: 3px; font-size: 13.5px; font-weight: 700; color: #2b3139; line-height: 1.3; }

.slot { --s: #8a9299; position: relative; width: 62px; height: 62px; display: grid; place-items: center; background: var(--s);
  box-shadow: inset 3px 3px 0 #4b535a, inset -3px -3px 0 #f1f4f6; outline-offset: 2px; transition: background .15s; }
.slot:hover, .slot:focus-visible { background: #a2aab1; outline: none; }
.slot svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(21,26,38,.3)); }
.slot .n { position: absolute; right: 5px; bottom: 3px; font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: -.04em; color: #fff; text-shadow: 2px 2px 0 #2a3038; line-height: 1; }
.slot .cap { display: none; }
.slot.off svg { opacity: .22; filter: grayscale(1); }
.slot.off { background: #9aa2a8; }

.iv-price { text-align: center; line-height: 1.15; }
.iv-price .old { min-height: 16px; font-size: 13px; color: #4b555e; text-decoration: line-through; }
.iv-price .price { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.iv-price .price small { font-size: 15px; margin-left: 2px; color: #2b3139; }
.iv-price .day { margin-top: 3px; font-size: 12.5px; font-weight: 700; color: #0b5a2d; }
.iv-buy .btn { width: 100%; padding: 12px 10px; }
.iv-who { grid-column: 1 / -1; margin: 2px 4px 0; font-size: 14.5px; font-weight: 600; color: #2b3139; line-height: 1.4; }
.inv-hint { margin-top: 22px; font-size: 14.5px; color: var(--muted); max-width: 70ch; }

@media (max-width: 1060px) {
  .inv { --cols: minmax(150px, 1fr) repeat(6, 54px) 100px 100px; }
  .slot { width: 54px; height: 54px; } .slot svg { width: 30px; height: 30px; }
  .iv-rank p { display: none; }
}
@media (max-width: 900px) {
  .shop-top { grid-template-columns: 1fr; }
  .shop-top .pledge { justify-content: flex-start; }
  .inv-head { display: none; }
  .inv-row { grid-template-columns: repeat(6, 1fr) ; gap: 8px; padding: 14px 12px 12px; margin-top: 18px; }
  .iv-rank { grid-column: 1 / -1; }
  .iv-rank p { display: block; }
  .slot { width: auto; height: auto; aspect-ratio: 1; }
  .slot .cap { display: block; position: absolute; left: 0; right: 0; top: calc(100% + 4px); text-align: center; font-size: 11.5px; font-weight: 700; color: #2b3139; }
  .inv-row .slot { margin-bottom: 18px; }
  .iv-price { grid-column: 1 / 4; text-align: left; }
  .iv-buy { grid-column: 4 / -1; }
  .iv-who { order: 9; }
}
@media (max-width: 520px) {
  .slot svg { width: 26px; height: 26px; } .slot .n { font-size: 12.5px; right: 3px; bottom: 2px; }
  .iv-price .price { font-size: 24px; }
}
.iv-flag { top: -15px; left: auto; right: 14px; }
@media (max-width: 900px) {
  .shop-hero { padding: 26px 0 58px; }
  .shop-top .pledge { gap: 8px; }
  .pledge span { padding: 6px 11px; font-size: 13.5px; }
  .pledge .from-price { display: none; }
  .shop { margin-top: -34px; }
  .iv-flag { right: 10px; }
}

/* ---------- ЖИВОЙ ПЕЙЗАЖ (scene.js) ---------- */
canvas.scene { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.d-hero::after { display: none; }
.d-hero { overflow: hidden; border-bottom: 3px solid var(--ink); }
.d-hero > .wrap { z-index: 2; }
.world { border-bottom: 3px solid var(--ink); }
.world::before { display: none; }
.world .wrap { z-index: 2; }
/* текст на небе: светлый ночью, тёмный днём */
.d-hero { padding-bottom: 118px; }
.d-hero + section { padding-top: 40px; }
.shop-hero { padding-bottom: 118px; }
@media (max-width: 900px) { .d-hero, .shop-hero { padding-bottom: 84px; } }

/* подземный футер */
footer { overflow: visible; isolation: isolate; }
footer canvas.under { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; image-rendering: pixelated; }
footer::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(12,14,22,.62), rgba(12,14,22,.8)); }
footer .wrap { position: relative; }
footer .legal { color: #9aa7b4; }
@media (max-width: 900px) { .d-hero, .shop-hero { padding-bottom: 124px; } }
.ic { overflow: visible; }

/* ====================== ГЛАВНАЯ: нижние блоки ====================== */
.h-join, .h-feat, .h-final { position: relative; }
.h-join { padding: 92px 0 84px; }
.h-join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.h-join h2, .h-head h2, .h-final h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); font-size: clamp(28px, 3.6vw, 44px); }
.h-join h2 { margin-bottom: 30px; }

/* макет списка серверов */
.mcl { padding: 14px; background: #241b13 linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.45)); border: 3px solid var(--ink); border-radius: 4px; box-shadow: 0 8px 0 rgba(21,26,38,.25), 0 30px 40px -22px rgba(21,26,38,.55);
  background-image: repeating-conic-gradient(#2c2218 0 25%, #271e15 0 50%); background-size: 16px 16px; }
.mcl-bar { text-align: center; margin: 2px 0 12px; font-weight: 700; font-size: 16px; color: #fff; text-shadow: 2px 2px 0 #2a2118; }
.mcl-entry { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; margin-bottom: 8px; background: rgba(0,0,0,.55); outline: 2px solid #fff; outline-offset: -2px; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease-out); }
.mcl-entry.dim { outline: 0; opacity: 0; }
.in .mcl-entry { opacity: 1; transform: none; } .in .mcl-entry.dim { opacity: .55; transition-delay: .25s; }
.mcl-ico { flex: none; width: 64px; height: 64px; background: #3a3a3a; }
.mcl-ico svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.mcl-ico.gray { background: repeating-conic-gradient(#4a4a4a 0 25%, #3d3d3d 0 50%) 0 0 / 16px 16px; }
.mcl-txt { display: grid; gap: 3px; min-width: 0; flex: 1; }
.mcl-txt b { font-size: 18px; font-weight: 700; color: #fff; text-shadow: 2px 2px 0 #2a2118; line-height: 1.2; }
.mcl-motd { font-size: 16px; font-weight: 500; color: #aaa; line-height: 1.3; }
.mcl-motd i { font-style: normal; font-weight: 700; color: #55ff55; }
.mcl-side { display: grid; justify-items: end; gap: 6px; align-self: start; padding-top: 2px; }
.mcl-on { font-size: 15px; font-weight: 700; color: #aaa; font-variant-numeric: tabular-nums; }
.mcl-ping { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.mcl-ping i { width: 4px; background: #3a3a3a; height: calc(var(--k, 1) * 3px + 2px); transition: background .2s; }
.mcl-ping i:nth-child(1) { --k: 1; } .mcl-ping i:nth-child(2) { --k: 2; } .mcl-ping i:nth-child(3) { --k: 3; } .mcl-ping i:nth-child(4) { --k: 4; } .mcl-ping i:nth-child(5) { --k: 5; }
.in .mcl-ping i { background: #55ff55; animation: pingbar .5s steps(1) both; }
.in .mcl-ping i:nth-child(2) { animation-delay: .1s; } .in .mcl-ping i:nth-child(3) { animation-delay: .2s; } .in .mcl-ping i:nth-child(4) { animation-delay: .3s; } .in .mcl-ping i:nth-child(5) { animation-delay: .4s; }
@keyframes pingbar { 0% { background: #3a3a3a; } 100% { background: #55ff55; } }
.mcl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mcl-btns span { padding: 9px 8px; text-align: center; font-weight: 600; font-size: 15px; color: #e0e0e0; background: #6f6f6f; box-shadow: inset 2px 2px 0 #9a9a9a, inset -2px -2px 0 #3f3f3f; border: 2px solid #000; text-shadow: 2px 2px 0 #333; }
.mcl-btns span:first-child { background: #5b8a3a; box-shadow: inset 2px 2px 0 #86b862, inset -2px -2px 0 #35541f; }
.h-join-cap { margin-top: 18px; font-size: 15.5px; color: var(--faint); max-width: 46ch; }

/* шаги */
.h-steps { list-style: none; counter-reset: hs; display: grid; gap: 0; }
.h-steps li { position: relative; counter-increment: hs; display: grid; gap: 5px; padding: 0 0 28px 66px; }
.h-steps li:last-child { padding-bottom: 0; }
.h-steps li::before { content: counter(hs); position: absolute; left: 0; top: -2px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; border-radius: 4px; box-shadow: 0 4px 0 #3a4350; }
.h-steps li::after { content: ''; position: absolute; left: 22px; top: 50px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 12px); }
.h-steps li:last-child::after { display: none; }
.h-steps b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; padding-top: 3px; }
.h-steps span { font-size: 17.5px; line-height: 1.65; color: #34424d; max-width: 46ch; }
.h-steps code { font-family: inherit; font-weight: 800; color: var(--ink); background: #fff; border: 1px solid var(--line-2); padding: 1px 8px; border-radius: 4px; }
.h-copy, .h-link { justify-self: start; margin-top: 8px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.h-copy { padding: 10px 18px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-s); box-shadow: 0 3px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .2s; }
.h-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.h-copy:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.h-copy.ok { background: #bff0cf; }
.h-link { color: #0b5a2d; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; background: none; border: 0; padding: 0; }
.h-link::after { content: ' →'; display: inline-block; transition: transform .2s; }
.h-link:hover::after { transform: translateX(4px); }
.h-link.buy { padding: 11px 18px; color: #032413; text-decoration: none; background: linear-gradient(#4af08e, var(--em) 55%, #17b95f); border: 2px solid #064d27; border-radius: var(--r-s); box-shadow: 0 3px 0 #064d27; }
.h-note { margin-top: 30px; padding: 14px 18px; font-size: 16px; line-height: 1.6; color: #4a3200; background: #fcf1d6; border-left: 4px solid #e2a817; border-radius: 0 var(--r-s) var(--r-s) 0; max-width: 52ch; }

/* как у нас играют */
.h-feat { padding: 30px 0 70px; background: linear-gradient(var(--bg-2), var(--bg) 70%); border-top: 1px solid var(--line-2); }
.h-head { padding: 64px 0 18px; max-width: 700px; }
.h-head p { margin-top: 14px; font-size: 18px; line-height: 1.65; color: #34424d; }
.h-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 84px); align-items: center; padding: 54px 0; }
.h-row + .h-row { border-top: 1px dashed var(--line-2); }
.h-row.flip .h-vis { order: -1; }
.h-tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 13.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--grass-d); }
.h-tag::before { content: ''; width: 12px; height: 12px; background: var(--grass-l); box-shadow: inset -3px -3px 0 var(--grass), 3px 3px 0 var(--ink); }
.h-copy-b h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); font-size: clamp(23px, 2.6vw, 32px); margin-bottom: 16px; }
.h-copy-b p { font-size: 18px; line-height: 1.7; color: #34424d; margin-bottom: 20px; max-width: 50ch; }
.h-vis { position: relative; min-height: 340px; padding: 30px; display: flex; align-items: center; justify-content: center; gap: 28px; background: #fff; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 7px 0 rgba(21,26,38,.2), 0 28px 40px -26px rgba(21,26,38,.5); overflow: hidden; }

/* терра */
.v-terra { background: linear-gradient(#cfe8f7, #e8f5fb); }
.vt { --u: 10%; position: relative; width: min(100%, 290px); aspect-ratio: 1; background: #86c85a;
  background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 10% 10%; box-shadow: inset 0 0 0 3px #5fa13a, 0 0 0 4px var(--ink);
  opacity: 0; transform: scale(.82) rotate(-2deg); transition: opacity .5s, transform .8s var(--ease-out); }
.in .vt { opacity: 1; transform: none; }
.vt-fence { position: absolute; inset: -4px; border: 5px dashed #7a5530; pointer-events: none; clip-path: inset(0 100% 100% 0); transition: clip-path 1.1s .45s ease-in-out; }
.in .vt-fence { clip-path: inset(-10px); }
.vt-sign { position: absolute; left: 50%; top: 50%; display: grid; gap: 2px; padding: 10px 16px 11px; text-align: center; font-weight: 800; font-size: 20px; color: #3b2410; background: linear-gradient(#d7aa68, #c99d5e); border: 3px solid #5a3b1c; border-radius: 4px; box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), 0 5px 0 #3e2810; transform: translate(-50%, -300%); opacity: 0; transition: opacity .2s .9s; }
.vt-sign small { font-size: 12px; font-weight: 700; opacity: .75; }
.in .vt-sign { opacity: 1; animation: signdrop .7s .9s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes signdrop { from { transform: translate(-50%, -300%); } to { transform: translate(-50%, -50%); } }
.vt-dim { position: absolute; font-size: 14px; font-weight: 800; color: var(--grass-d); opacity: 0; transition: opacity .5s 1.3s; }
.vt-w { left: 50%; top: -30px; transform: translateX(-50%); } .vt-h { top: 50%; left: -38px; transform: translateY(-50%) rotate(-90deg); }
.in .vt-dim { opacity: 1; }
.vt::after { content: ''; position: absolute; left: -9px; top: -9px; width: 14px; height: 14px; background: #b98056; box-shadow: inset 0 5px 0 #3a2a1a, 0 0 0 2px var(--ink); opacity: 0; }
.in .vt::after { opacity: 1; animation: patrol 14s 1.6s linear infinite; }
@keyframes patrol { 0% { left: -9px; top: -9px; } 25% { left: calc(100% - 5px); top: -9px; } 50% { left: calc(100% - 5px); top: calc(100% - 5px); } 75% { left: -9px; top: calc(100% - 5px); } 100% { left: -9px; top: -9px; } }

/* команды */
.v-team { background: linear-gradient(#f4f8f5, #e6efe9); flex-wrap: wrap; }
.vm { position: relative; flex: none; width: min(100%, 270px); aspect-ratio: 1; }
.vm-sq { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transform: translate(-50%, -50%) scale(0); transition: transform .7s var(--ease-out); animation: none; }
.in .vm-sq { transform: translate(-50%, -50%) scale(1); }
.vm-sq.s1 { --c: #c27a3a; width: 14.2%; transition-delay: .1s; z-index: 5; } .vm-sq.s2 { --c: #98a5b3; width: 23.1%; transition-delay: .3s; z-index: 4; }
.vm-sq.s3 { --c: #e2a817; width: 39.6%; transition-delay: .5s; z-index: 3; } .vm-sq.s4 { --c: #3fc7ab; width: 64.5%; transition-delay: .7s; z-index: 2; }
.vm-sq.s5 { --c: #3ab3e6; width: 100%; transition-delay: .9s; z-index: 1; }
.in .vm-sq { animation: sqhl 10s 2s infinite; }
.in .vm-sq.s2 { animation-delay: 4s; } .in .vm-sq.s3 { animation-delay: 6s; } .in .vm-sq.s4 { animation-delay: 8s; } .in .vm-sq.s5 { animation-delay: 10s; }
@keyframes sqhl { 0%, 18%, 100% { background: color-mix(in srgb, var(--c) 10%, transparent); } 4%, 14% { background: color-mix(in srgb, var(--c) 42%, transparent); } }
.vm-leg { list-style: none; display: grid; gap: 7px; flex: 1; min-width: 190px; }
.vm-leg li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 12px; background: #fff; border: 2px solid var(--line-2); border-left: 6px solid var(--c); border-radius: 4px; opacity: 0; transform: translateX(16px); transition: opacity .4s, transform .5s var(--ease-out); }
.vm-leg b { font-size: 15.5px; font-weight: 800; color: var(--ink); } .vm-leg span { font-size: 15.5px; font-weight: 700; color: #34424d; font-variant-numeric: tabular-nums; }
.vm-leg .l1 { --c: #c27a3a; transition-delay: .2s; } .vm-leg .l2 { --c: #98a5b3; transition-delay: .35s; } .vm-leg .l3 { --c: #e2a817; transition-delay: .5s; } .vm-leg .l4 { --c: #3fc7ab; transition-delay: .65s; } .vm-leg .l5 { --c: #3ab3e6; transition-delay: .8s; }
.in .vm-leg li { opacity: 1; transform: none; }

/* моды */
.v-mods { background: repeating-linear-gradient(135deg, #f4f8f5 0 14px, #eef4f0 14px 28px); }
.vd { list-style: none; width: min(100%, 420px); display: grid; gap: 10px; }
.vd li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 0 4px 0 rgba(21,26,38,.2); opacity: 0; transform: translateX(40px); transition: opacity .4s, transform .55s var(--ease-out); }
.in .vd li { opacity: 1; transform: none; }
.vd li:nth-child(2) { transition-delay: .12s; } .vd li:nth-child(3) { transition-delay: .24s; } .vd li:nth-child(4) { transition-delay: .36s; } .vd li:nth-child(5) { transition-delay: .48s; }
.vd b { font-size: 17px; font-weight: 800; color: var(--ink); }
.vd span { flex: none; padding: 4px 12px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border: 2px solid; border-radius: 3px; opacity: 0; transform: scale(2) rotate(-8deg); }
.vd .ok span { color: #0b5a2d; background: #dff5e6; border-color: #0b5a2d; } .vd .no span { color: #a3281a; background: #fde6e2; border-color: #a3281a; }
.in .vd span { animation: stamp .35s cubic-bezier(.3,1.6,.5,1) both; }
.in .vd li:nth-child(1) span { animation-delay: .5s; } .in .vd li:nth-child(2) span { animation-delay: .65s; } .in .vd li:nth-child(3) span { animation-delay: .8s; } .in .vd li:nth-child(4) span { animation-delay: .95s; } .in .vd li:nth-child(5) span { animation-delay: 1.1s; }
@keyframes stamp { from { opacity: 0; transform: scale(2) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(-3deg); } }
.vd .no b { text-decoration: line-through; text-decoration-color: rgba(163,40,26,.55); text-decoration-thickness: 2px; }

/* донат */
.v-pay { background: linear-gradient(#e9eef2, #dfe6ec); gap: 22px; flex-wrap: wrap; }
.vp-col { flex: 1; min-width: 150px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.vp-col h4 { font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: #0b5a2d; }
.vp-col.lock h4 { color: #a3281a; }
.vp-col p { font-size: 15.5px; font-weight: 600; color: #34424d; line-height: 1.4; }
.vp-row { display: flex; gap: 8px; }
.vp-s { position: relative; display: grid; place-items: center; width: 62px; height: 62px; background: var(--slot, #8b8b8b); box-shadow: inset 3px 3px 0 #4b535a, inset -3px -3px 0 #f1f4f6; opacity: 0; transform: translateY(16px) scale(.8); transition: opacity .35s, transform .5s cubic-bezier(.3,1.5,.5,1); }
.vp-s svg { width: 38px; height: 38px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(21,26,38,.35)); }
.in .vp-s { opacity: 1; transform: none; }
.vp-col .vp-s:nth-child(2) { transition-delay: .12s; } .vp-col .vp-s:nth-child(3) { transition-delay: .24s; }
.vp-col.lock .vp-s { transition-delay: .5s; } .vp-col.lock .vp-s:nth-child(2) { transition-delay: .62s; } .vp-col.lock .vp-s:nth-child(3) { transition-delay: .74s; }
.vp-col.lock .vp-s svg { filter: grayscale(1) brightness(.75) drop-shadow(0 2px 0 rgba(21,26,38,.3)); opacity: .55; }
.vp-col.lock .vp-s::after { content: ''; position: absolute; inset: 6px; background: linear-gradient(45deg, transparent 46%, #d33a2a 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #d33a2a 46% 54%, transparent 54%); opacity: 0; transition: opacity .2s 1.1s; }
.in .vp-col.lock .vp-s::after { opacity: 1; }

/* финал */
.h-final { padding: 20px 0 30px; background: var(--bg); }
.h-final-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding: 40px clamp(24px, 4vw, 52px); background: linear-gradient(#d3a96b, #c99d5e); border: 3px solid #5a3b1c; border-radius: 6px; box-shadow: inset 3px 3px 0 rgba(255,255,255,.3), inset -3px -3px 0 rgba(60,35,10,.25), 0 7px 0 #3e2810, 0 28px 36px -22px rgba(40,25,5,.6); }
.h-final h2 { color: #2c1b09; font-size: clamp(26px, 3.2vw, 38px); }
.h-final p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: #3b2410; max-width: 52ch; }
.h-final p a { color: #1d3a0e; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.h-final-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.h-final-btns .btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
main + footer { margin-top: 56px; }

@media (max-width: 900px) {
  .h-join { padding: 60px 0 56px; }
  .h-join-grid, .h-row { grid-template-columns: 1fr; }
  .h-row { gap: 26px; padding: 40px 0; }
  .h-row.flip .h-vis { order: 0; }
  .h-vis { min-height: 0; padding: 24px 18px; }
  .h-head { padding-top: 48px; }
  .h-steps li { padding-left: 58px; } .h-steps li::before { width: 40px; height: 40px; font-size: 18px; } .h-steps li::after { left: 19px; top: 44px; }
  .vp-s { width: 54px; height: 54px; } .vp-s svg { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .mcl-entry, .vt, .vt-sign, .vm-sq, .vm-leg li, .vd li, .vd span, .vp-s, .vt-dim { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .vt-sign { transform: translate(-50%, -50%) !important; } .vm-sq { transform: translate(-50%, -50%) !important; } .vt-fence { clip-path: none !important; }
}
.h-vis { align-content: center; }
.vm { width: min(100%, 236px); }
.vm-leg { min-width: 175px; }
.vp-col.lock .vp-s::after { background: linear-gradient(-45deg, transparent 47%, #d33a2a 47% 53%, transparent 53%); inset: 4px; }
.h-final h2 { font-size: clamp(24px, 2.7vw, 34px); }
.h-final-in > div:first-child { flex: 1 1 440px; }
.h-final-btns { flex: none; }
.vm-leg li { white-space: nowrap; } .vm { width: min(100%, 220px); } .vm-leg { min-width: 195px; }
.v-pay { min-height: 0; padding-block: 38px; }
@media (max-width: 900px) { .h-final-btns { flex: 1 1 100%; } .h-final-btns .btn { flex: 1 1 auto; justify-content: center; } .h-final-in { padding: 30px 22px; } }

/* ====================== КАРТИНКИ: небо, иконки, логотип ====================== */
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0c1530; }
.sky-layers { position: absolute; inset: 0; will-change: transform; transform: scale(1.07); }
.sky-layers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 58%; }
.sky-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,11,22,.74) 0%, rgba(6,11,22,.5) 36%, rgba(6,11,22,.1) 68%, transparent 100%), linear-gradient(rgba(6,11,22,.34), transparent 32%); }
@media (max-width: 760px) { .sky::after { background: linear-gradient(rgba(6,11,22,.62), rgba(6,11,22,.5)); } .sky-layers img { object-position: 76% 50%; } }

.world, .d-hero { background: #0c1530; }
.world::before, .d-hero::after { display: none; }
.world .wrap, .d-hero > .wrap { position: relative; z-index: 2; }
.world h1, .d-hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.4), 0 0 24px rgba(0,0,0,.35); }
.world .lead, .d-hero .lead, .d-hero p, .world .ver, .world .ver span { color: #f1f6fb; text-shadow: 0 1px 8px rgba(5,10,24,.85), 0 0 2px rgba(5,10,24,.6); }
.d-hero p a { color: #9fe8bd; }
.d-hero a.back, .d-hero .crumb { color: #dbe8f5; }
.world .ver b { background: rgba(10,16,30,.8); }

/* низ героя: земля из картинки, хотбар лежит в ней */
.world-under { position: relative; z-index: 4; margin-top: 54px; padding: 0 0 18px; background: #2a1d12 url(img/underground.webp) center top / cover no-repeat; border-bottom: 3px solid var(--ink); }
.world-under::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.28)); pointer-events: none; }
.world-under .hotbar-wrap { position: relative; margin-top: -26px; padding-bottom: 26px; }
.world { overflow: hidden; border-bottom: 0; }
.hotbar { box-shadow: inset 3px 3px 0 var(--gui-hi), inset -3px -3px 0 var(--gui-lo), 0 7px 0 rgba(0,0,0,.4), 0 26px 40px -16px rgba(0,0,0,.65); }

/* иконки привилегий */
.ic-img { width: auto !important; height: 40px !important; max-width: none; object-fit: contain; image-rendering: pixelated; flex: none; filter: drop-shadow(0 3px 0 rgba(21,26,38,.3)); transition: transform .3s var(--ease-out); }
.hb-ic .ic-img { height: 46px !important; } .hb-ic { width: 66px; }
.iv-ic .ic-img { height: 50px !important; }
.hb-slot:hover .ic-img { transform: translateY(-4px) rotate(-5deg) scale(1.06); }
.inv-row:hover .ic-img { transform: translateY(-3px) rotate(-4deg) scale(1.05); }
.ic-img { overflow: visible; }

/* логотип */
.logo-cube { background: url(img/logo.png) center / contain no-repeat !important; border: 0 !important; box-shadow: none !important; image-rendering: pixelated; width: 32px !important; height: 32px !important; border-radius: 0 !important; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }

/* картинки в блоках главной */
.v-img { padding: 0; background: #73bde4; display: block; }
.v-img img { display: block; width: 100%; height: auto; transform: scale(1.02); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: scale(1.02) translateY(0); } 50% { transform: scale(1.02) translateY(-6px); } }
.v-chip { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; font-weight: 800; font-size: 16px; color: #fff; background: rgba(12,19,32,.82); border: 2px solid #fff; border-radius: 4px; }
.v-legend { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.v-legend li { padding: 5px 10px; font-size: 14.5px; font-weight: 700; color: #fff; background: rgba(12,19,32,.84); border-radius: 4px; font-variant-numeric: tabular-nums; }
.v-legend b { color: #7be0a4; margin-right: 4px; } .v-legend b::after { content: ' игр.'; font-weight: 700; color: #b8c6d4; }
@media (prefers-reduced-motion: reduce) { .v-img img { animation: none; } }

/* финальный блок на фоне замка */
.h-final-in { background: linear-gradient(90deg, rgba(10,16,28,.88), rgba(10,16,28,.55) 60%, rgba(10,16,28,.3)); border-color: var(--ink); box-shadow: 0 7px 0 rgba(21,26,38,.35), 0 28px 36px -22px rgba(10,16,28,.7); }
.h-final h2 { color: #fff; } .h-final p { color: #e6eef6; text-shadow: 0 1px 6px rgba(0,0,0,.6); } .h-final p a { color: #9fe8bd; }
.world { padding: 0; }
.world .wrap { padding: 92px 0 0; }
.sky-layers img { object-position: 70% 100%; }
@media (max-width: 760px) { .world .wrap { padding-top: 40px; } .sky-layers img { object-position: 76% 100%; } }
@media (max-width: 760px) {
  .hb-ic { width: 44px; height: 40px; } .hb-ic .ic-img { height: 32px !important; }
  .hb-slot { gap: 8px; padding-right: 8px; } .hb-txt b { font-size: 15px; } .hb-txt em { font-size: 14px; }
  .iv-ic .ic-img { height: 42px !important; }
}

/* ====================== ГЛАВНАЯ: герой и карточки привилегий ====================== */
.world .wrap { padding: 58px 0 0; }
.wordmark { width: min(540px, 100%); }
.hero-sub { margin-top: 24px; max-width: 22ch; font-family: var(--font-head); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; font-size: clamp(26px, 3.3vw, 42px); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 28px rgba(0,0,0,.45); }
.hero-sub mark { color: #5dfb9f; background: none; position: relative; white-space: nowrap; }
.hero-sub mark::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; background: repeating-linear-gradient(90deg, #22d36f 0 8px, #17b95f 8px 16px); box-shadow: 0 2px 0 rgba(0,0,0,.35); transform-origin: left; animation: markin .9s .6s var(--ease-out) both; }
@keyframes markin { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; font-size: 15.5px; font-weight: 700; color: #fff; background: rgba(8,14,26,.62); border: 1px solid rgba(255,255,255,.22); border-radius: 4px; backdrop-filter: blur(6px); }
.hero-facts li::before { content: ''; width: 9px; height: 9px; background: #5dfb9f; box-shadow: inset -2px -2px 0 #17b95f; }
.hero-row { margin-top: 26px; }
.sky::after { background: linear-gradient(90deg, rgba(6,11,22,.7) 0%, rgba(6,11,22,.42) 34%, rgba(6,11,22,.06) 64%, transparent 100%), linear-gradient(rgba(6,11,22,.3), transparent 28%), linear-gradient(transparent 60%, rgba(6,11,22,.55)); }
.sky-layers img { filter: saturate(1.14) contrast(1.05); }

.world-under { margin-top: 36px; padding-bottom: 28px; }
.world-under .hotbar-wrap { margin-top: -76px; padding-bottom: 0; }
.hotbar { padding: 0; background: none; border: 0; box-shadow: none; }
.hb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin: 0 0 22px; }
.hb-head b { display: block; font-family: var(--font-head); font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 24px rgba(0,0,0,.5); }
.hb-head span { display: block; margin-top: 4px; font-size: 16.5px; font-weight: 600; color: #e9f0f7; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.hb-all { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; font-size: 16px; font-weight: 800; color: #fff; text-decoration: none; background: rgba(8,14,26,.7); border: 2px solid rgba(255,255,255,.7); border-radius: 4px; transition: background .2s, transform .2s; }
.hb-all:hover { background: rgba(8,14,26,.9); transform: translateY(-2px); color: #fff; }
.hb-all i { font-style: normal; padding: 2px 8px; font-size: 13.5px; color: #032413; background: #5dfb9f; border-radius: 3px; }

.hb-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; padding-top: 26px; }
.hb-slot { --c: #888; position: relative; display: flex; flex-direction: column; min-height: 0; padding: 0 16px 16px; text-align: left;
  background: linear-gradient(#1f2937, #121923 70%); border: 3px solid #0a0e15; border-radius: 4px; color: #fff;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.09), inset -3px -3px 0 rgba(0,0,0,.4), 0 9px 0 rgba(0,0,0,.4), 0 26px 30px -14px rgba(0,0,0,.7);
  transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s; }
.hb-slot::before { content: ''; height: 7px; margin: 0 -16px 0; background: repeating-linear-gradient(90deg, var(--c) 0 12px, color-mix(in srgb, var(--c) 70%, #000) 12px 24px); }
.hb-slot:hover, .hb-slot:focus-visible { transform: translateY(-10px); border-color: var(--c); box-shadow: inset 3px 3px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.4), 0 9px 0 rgba(0,0,0,.4), 0 0 0 3px color-mix(in srgb, var(--c) 40%, transparent), 0 30px 40px -14px color-mix(in srgb, var(--c) 45%, #000); }
.hb-ic { position: relative; display: grid; place-items: center; height: 112px; margin: 6px -16px 0; width: auto; }
.hb-ic::before { content: ''; position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 68%); opacity: .8; }
.hb-ic .ic-img { position: relative; height: 84px !important; filter: drop-shadow(0 8px 0 rgba(0,0,0,.4)); animation: bob 3.6s calc(var(--i) * -.7s) ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
.hb-slot:hover .ic-img { animation-duration: 1.6s; transform: none; }
.hb-name { font-family: var(--font-head); font-size: 23px; font-weight: 800; letter-spacing: -.035em; color: #fff; line-height: 1.1; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.hb-tag { margin-top: 4px; font-size: 14.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 60%, #fff); }
.hb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 14px; }
.hb-price s { flex-basis: 100%; font-size: 15px; font-weight: 600; color: #ff8d80; text-decoration-thickness: 2px; line-height: 1.2; }
.hb-price strong { font-family: var(--font-head); font-size: 36px; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hb-price em { font-style: normal; font-size: 14.5px; font-weight: 700; color: #c6d1dc; }
.hb-day { margin-top: 5px; font-size: 14px; font-weight: 700; color: #7be0a4; }
.hb-perks { list-style: none; display: grid; gap: 6px; margin: 14px 0 16px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.14); }
.hb-perks li { position: relative; padding-left: 18px; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: #dfe7ef; }
.hb-perks li::before { content: ''; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; background: var(--c); box-shadow: inset -2px -2px 0 rgba(0,0,0,.3); }
.hb-perks .hl { font-weight: 800; color: #fff; }
.hb-go { margin-top: auto; padding: 12px 10px; text-align: center; font-size: 16px; font-weight: 800; color: #032413; background: linear-gradient(#4af08e, #22d36f 55%, #17b95f); border: 2px solid #064d27; border-radius: 4px; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 3px 0 #064d27; transition: filter .2s, transform .15s; }
.hb-slot:hover .hb-go { filter: brightness(1.08); }
.hb-slot:active .hb-go { transform: translateY(2px); }
.hb-flag { position: absolute; z-index: 3; top: -3px; left: 50%; transform: translate(-50%, -50%); padding: 4px 12px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--ink); background: var(--c); border: 2px solid #0a0e15; border-radius: 3px; box-shadow: 0 3px 0 rgba(0,0,0,.4); }

/* главная привилегия: выше, ярче, блестит */
.hb-slot.hot { padding-bottom: 20px; margin-top: -26px; border-color: var(--c); background: linear-gradient(#2b2410, #151a22 70%);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.14), inset -3px -3px 0 rgba(0,0,0,.4), 0 0 0 3px color-mix(in srgb, var(--c) 50%, transparent), 0 9px 0 rgba(0,0,0,.4), 0 0 46px color-mix(in srgb, var(--c) 45%, transparent), 0 30px 36px -14px rgba(0,0,0,.7); }
.hb-slot.hot::after { content: ''; position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255,235,160,.22) 50%, transparent 60%) 0 0 / 250% 100% no-repeat; animation: sheen 4.5s 1s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -80% 0; } }
.hb-slot.hot .hb-ic { height: 126px; } .hb-slot.hot .ic-img { height: 96px !important; } .hb-slot.hot .hb-name { font-size: 26px; } .hb-slot.hot .hb-price strong { font-size: 42px; }
.hb-slot.hot .hb-go { padding: 14px 10px; font-size: 17px; animation: gopulse 2.4s ease-in-out infinite; }
@keyframes gopulse { 0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 3px 0 #064d27, 0 0 0 0 rgba(34,211,111,.55); } 50% { box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 3px 0 #064d27, 0 0 0 9px rgba(34,211,111,0); } }
.hb-slot.hot:hover { transform: translateY(-8px); }

@media (max-width: 1180px) {
  .hb-slots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 34px 20px 22px; margin: 0 -20px; scrollbar-width: none; }
  .hb-slots::-webkit-scrollbar { display: none; }
  .hb-slot { flex: 0 0 min(256px, 74vw); scroll-snap-align: center; }
  .hb-slot.hot { margin-top: 0; }
}
@media (max-width: 760px) {
  .hb-ic { height: 100px; } .hb-ic .ic-img { height: 74px !important; }
  .hb-slot.hot .hb-ic { height: 108px; } .hb-slot.hot .ic-img { height: 82px !important; }
  .hb-name { font-size: 22px; } .hb-price strong { font-size: 34px; }
  .hero-sub { margin-top: 18px; } .hero-facts li { font-size: 14.5px; }
  .world-under .hotbar-wrap { margin-top: -50px; }
  .hb-head span { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .hb-ic .ic-img, .hb-slot.hot::after, .hb-slot.hot .hb-go, .hero-sub mark::after { animation: none !important; } }
/* компактнее, чтобы привилегии были видны на первом экране */
.world .wrap { padding-top: 44px; }
.wordmark { width: min(480px, 100%); }
.hero-sub { margin-top: 16px; font-size: clamp(24px, 2.9vw, 36px); max-width: 24ch; }
.hero-row { margin-top: 22px; }
.world-under { margin-top: 30px; padding-bottom: 30px; }
.world-under .hotbar-wrap { margin-top: 0; }
.hb-head { margin-bottom: 8px; }
.hb-head b { font-size: clamp(22px, 2.3vw, 28px); } .hb-head span { font-size: 16px; }
.hb-slots { padding-top: 34px; gap: 14px; }
.hb-slot { padding: 0 15px 15px; }
.hb-slot::before { margin: 0 -15px; }
.hb-ic { height: 92px; margin: 4px -15px 0; } .hb-ic::before { width: 110px; height: 110px; }
.hb-ic .ic-img { height: 66px !important; }
.hb-slot.hot { margin-top: -22px; } .hb-slot.hot .hb-ic { height: 104px; } .hb-slot.hot .ic-img { height: 78px !important; }
.hb-name { font-size: 22px; } .hb-slot.hot .hb-name { font-size: 24px; }
.hb-tag { font-size: 14px; }
.hb-price { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hb-price strong { font-size: 34px; } .hb-slot.hot .hb-price strong { font-size: 38px; }
.hb-price > span { display: grid; gap: 1px; }
.hb-price em { font-size: 13.5px; line-height: 1.15; }
.hb-price s { flex: none; font-size: 14px; line-height: 1.15; }
.hb-perks { margin: 12px 0 14px; padding-top: 12px; gap: 5px; }
.hb-perks li { font-size: 15px; }
.hb-go { padding: 11px 8px; font-size: 15.5px; } .hb-slot.hot .hb-go { padding: 13px 8px; font-size: 16.5px; }
@media (max-width: 760px) { .world .wrap { padding-top: 30px; } .world-under .hotbar-wrap { margin-top: 0; } .hb-ic { height: 90px; } .hb-ic .ic-img { height: 66px !important; } .hb-slot.hot .hb-ic { height: 98px; } .hb-slot.hot .ic-img { height: 74px !important; } }
.wordmark { width: min(420px, 100%); }
.hero-sub { max-width: none; font-size: clamp(22px, 2.6vw, 34px); margin-top: 14px; }
.hero-row { margin-top: 18px; }
.world .wrap { padding-top: 38px; }
.world-under { margin-top: 26px; }
.hb-all, .hb-all:hover { text-decoration: none; }
.hb-all { color: #fff; }
.hb-slots { padding-top: 28px; }
.hb-slot.hot { margin-top: -18px; }
.hb-ic { height: 82px; } .hb-ic .ic-img { height: 60px !important; }
.hb-slot.hot .hb-ic { height: 94px; } .hb-slot.hot .ic-img { height: 70px !important; }
.hb-name, .hb-tag { text-align: center; }
.hb-price { justify-content: center; }
.hb-perks li { font-size: 14.5px; }
.sky-layers img { object-position: 70% 78%; }
@media (max-width: 760px) { .hero-sub { font-size: 24px; } .hb-ic { height: 90px; } .hb-ic .ic-img { height: 66px !important; } .hb-slot.hot .hb-ic { height: 98px; } .hb-slot.hot .ic-img { height: 74px !important; } }

/* герой на всю высоту: карточки лежат прямо на пейзаже */
.world-under { background: linear-gradient(rgba(6,11,22,0), rgba(6,11,22,.55) 30%, rgba(6,11,22,.92)); border-bottom: 3px solid var(--ink); padding-top: 18px; margin-top: 0; }
.world-under::before { display: none; }
.sky-layers img { object-position: 82% 40%; }
.hb-head a.hb-all, .hb-head a.hb-all:hover { color: #fff; text-decoration: none; margin-left: 0; }
.hb-head a.hb-all i { color: #032413; }
@media (max-width: 760px) { .sky-layers img { object-position: 78% 50%; } }

/* подземный футер из картинки */
footer { background: #17110b url(img/underground.webp) center top / cover no-repeat; }
footer canvas.under { display: none; }
footer::after { background: linear-gradient(rgba(10,12,20,.5), rgba(10,12,20,.82)); }
@media (max-width: 760px) {
  .hb-head { flex-wrap: nowrap; align-items: center; margin-bottom: 0; gap: 10px; }
  .hb-head span { display: none; }
  .hb-head b { font-size: 21px; }
  .hb-all { padding: 6px 10px; font-size: 13.5px; flex-direction: column; align-items: flex-end; gap: 3px; } .hb-all i { font-size: 12px; padding: 1px 6px; }
  .hb-slots { padding-top: 30px; }
  .hero-row { gap: 14px; margin-top: 16px; } .world .ver { font-size: 14px; }
  .world-under { padding-top: 8px; }
}
@media (max-width: 760px) { .hb-all { display: none; } .hb-head b { font-size: 22px; } }

/* ====================================================================
   ГЛАВНАЯ v5: небо, кусок мира и спуск под землю
   ==================================================================== */
.hero2 { position: relative; overflow: hidden; background: var(--sky-top, #0b5596); color: #fff; }
.h2-sky { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.h2-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 20px; align-items: center; min-height: 500px; padding-top: 34px; }
.h2-copy { padding: 12px 0 6px; }
.hero2 .wordmark { width: min(470px, 100%); }
.hero2 .hero-sub { max-width: 21ch; }
.hero2 .hero-row { margin-top: 24px; }
.hero2 .hero-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero2 .ver { margin: 0; color: #eaf3fb; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero2 .ver span { color: #eaf3fb; }
.hero2 .ver b { background: rgba(6,12,24,.75); }
.hero2 .status { background: rgba(6,12,24,.6); color: #fff; border-color: rgba(255,255,255,.25); }

.h2-stage { position: relative; height: 500px; perspective: 1500px; }
.stage-k { position: absolute; left: 50%; top: 50%; width: 520px; height: 460px; margin: -230px 0 0 -260px; transform: scale(var(--k, 1)); transform-style: preserve-3d; }
.slab { --T: 120px; position: absolute; left: 50%; top: 54%; width: 300px; height: 300px; margin: -150px 0 0 -150px; transform-style: preserve-3d;
  transform: translateY(var(--bob, 0px)) rotateX(calc(var(--rx, 60) * 1deg)) rotateZ(calc(var(--rz, 38) * 1deg)); }
.sf { position: absolute; image-rendering: pixelated; backface-visibility: hidden; background-size: 100% 100%; }
.sf-top { inset: 0; background-image: var(--tx-top); transform: translateZ(60px); box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); }
.sf-n, .sf-s, .sf-e, .sf-w { left: 0; top: 90px; width: 300px; height: 120px; background-image: var(--tx-side); }
.sf-n { transform: rotateX(90deg) translateZ(150px); filter: brightness(.7); }
.sf-s { transform: rotateZ(180deg) rotateX(90deg) translateZ(150px); filter: brightness(.86); }
.sf-e { transform: rotateZ(90deg) rotateX(90deg) translateZ(150px); filter: brightness(.64); }
.sf-w { transform: rotateZ(-90deg) rotateX(90deg) translateZ(150px); filter: brightness(.78); }
.slab-sign { position: absolute; left: 50%; top: 50%; width: 130px; margin-left: -65px; padding: 8px 6px 9px; text-align: center; font-weight: 800; font-size: 17px; color: #3b2410; line-height: 1.15;
  background: linear-gradient(#d7aa68, #c99d5e); border: 3px solid #5a3b1c; border-radius: 3px; box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), 0 4px 0 #3e2810;
  transform-origin: 50% 100%; transform: translate3d(0, -40px, 60px) rotateZ(calc(var(--rz, 38) * -1deg)) rotateX(calc(var(--rx, 60) * -1deg)); }
.slab-sign small { display: block; font-size: 11px; font-weight: 700; opacity: .75; }
.slab-shadow { position: absolute; left: 50%; bottom: 14px; width: 360px; height: 70px; margin-left: -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); filter: blur(4px); }
.fl { position: absolute; z-index: 5; will-change: transform; }
.fl img { display: block; width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 0 rgba(0,0,0,.3)); animation: flfloat 5s ease-in-out infinite; }
@keyframes flfloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.fl1 { left: 4%; top: 6%; width: 92px; } .fl1 img { animation-delay: -.6s; }
.fl2 { right: 2%; top: 0; width: 112px; } .fl2 img { animation-delay: -2.1s; }
.fl3 { right: 0; bottom: 18%; width: 88px; } .fl3 img { animation-delay: -3.3s; }
.fl4 { left: 0; bottom: 22%; width: 80px; } .fl4 img { animation-delay: -1.4s; }
.fl5 { left: 40%; bottom: 0; width: 70px; } .fl5 img { animation-delay: -2.8s; }

.h2-ranks { position: relative; z-index: 3; display: flex; align-items: stretch; gap: 10px; padding: 0 0 26px; }
.h2r-label { align-self: center; flex: none; margin-right: 6px; font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.03em; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.h2r { --c: #888; position: relative; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; color: #fff; text-decoration: none;
  background: rgba(7,12,24,.72); backdrop-filter: blur(6px); border: 2px solid rgba(255,255,255,.18); border-bottom: 5px solid var(--c); border-radius: 4px; transition: transform .25s var(--ease-out), background .2s, border-color .2s; }
.h2r .ic-img { grid-row: 1 / 3; height: 38px !important; }
.h2r b { font-family: var(--font-head); font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; align-self: end; }
.h2r span { font-size: 15px; font-weight: 700; color: #cfe0ef; align-self: start; }
.h2r:hover { transform: translateY(-5px); background: rgba(7,12,24,.9); border-color: var(--c); }
.h2r.hot { background: rgba(48,36,8,.85); border-color: var(--c); box-shadow: 0 0 28px color-mix(in srgb, var(--c) 50%, transparent); }
.h2r i { position: absolute; top: -11px; left: 12px; padding: 1px 8px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--c); border-radius: 3px; }
.h2r-all { align-self: center; flex: none; padding: 12px 14px; font-weight: 800; font-size: 15.5px; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ----- спуск ----- */
.dig { position: relative; background: var(--sky-bot, #4aa3dc); }
.dig-bg { position: absolute; left: 0; top: 0; z-index: 0; image-rendering: pixelated; display: block; }
.dig-glow { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle 300px at var(--gx, -999px) var(--gy, -999px), rgba(255,184,96,.26), rgba(255,184,96,0) 70%); }
.dg { position: relative; z-index: 2; padding: 92px 0; }
.dg h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: #fff; font-size: clamp(26px, 3.2vw, 40px); }
.dg-head { margin-bottom: 40px; max-width: 700px; } .dg-head.center { margin-inline: auto; text-align: center; }
.dg-head p { margin-top: 12px; font-size: 18px; line-height: 1.65; color: #e8f1f8; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.dg-head h2 { text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 24px rgba(0,0,0,.35); }
.dg-tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 13.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8ef0b4; }
.dg-tag::before { content: ''; width: 12px; height: 12px; background: #5dfb9f; box-shadow: inset -3px -3px 0 #17b95f, 3px 3px 0 #000; }

.dgc { position: relative; padding: 34px clamp(22px, 3vw, 40px); color: #fff; background: rgba(13,18,28,.9); border: 3px solid #06080d; border-radius: 4px;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.07), inset -3px -3px 0 rgba(0,0,0,.35), 0 10px 0 rgba(0,0,0,.35), 0 34px 44px -24px rgba(0,0,0,.7); }
.dg-two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dg-two.flip .dg-vis { order: -1; }
.dgc h2 { margin-bottom: 16px; }
.dg-p, .dg-list li { font-size: 18px; line-height: 1.7; color: #d9e4ee; }
.dg-p { margin-bottom: 22px; }
.dg-list { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; }
.dg-list li { position: relative; padding-left: 24px; } .dg-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: #5dfb9f; box-shadow: inset -2px -2px 0 #17b95f; }
.dg-list b { color: #fff; }
.dg-link { display: inline-block; font-weight: 800; font-size: 17px; color: #8ef0b4; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.dg-link::after { content: ' →'; }
.dg-vis { display: flex; justify-content: center; }
.big-num { font-family: var(--font-head); font-weight: 800; letter-spacing: -.06em; line-height: .95; font-size: clamp(60px, 8.4vw, 118px); color: #5dfb9f; text-shadow: 0 5px 0 #0b5a2d, 0 0 38px rgba(93,251,159,.35); margin-bottom: 18px; }
.big-num i { font-style: normal; color: #fff; font-size: .6em; margin: 0 .06em; text-shadow: 0 4px 0 #000; }

/* как зайти: таблички в земле */
.dg-join { padding: 70px 0 64px; }
.dg-join .wrap { display: flex; flex-direction: column; }
.dg-join .dg-head { margin-bottom: 18px; } .dg-note { order: 1; margin-bottom: 46px; max-width: 62ch; font-size: 16.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.signs { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.sign { position: relative; padding: 24px 24px 24px 26px; color: #3b2410; border: 4px solid #5a3b1c; border-radius: 4px; transition: transform .35s var(--ease-out);
  background: repeating-linear-gradient(180deg, #d4a867 0 22px, #c79b5a 22px 24px); box-shadow: inset 3px 3px 0 rgba(255,255,255,.3), inset -3px -3px 0 rgba(70,40,10,.25), 0 6px 0 #3e2810; }
.sign.s1 { transform: rotate(-1.4deg); } .sign.s2 { transform: rotate(.8deg); } .sign.s3 { transform: rotate(-.6deg); }
.sign:hover { transform: rotate(0) translateY(-4px); }
.sign::after { content: ''; position: absolute; left: 50%; bottom: -68px; width: 18px; height: 64px; margin-left: -9px; z-index: -1; background: linear-gradient(90deg, #7a5530 0 40%, #5a3b1c 40%); border: 3px solid #3a2410; border-top: 0; }
.sn { position: absolute; left: -16px; top: -16px; display: grid; place-items: center; width: 38px; height: 38px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #fff; background: #151a26; border: 3px solid #fff; border-radius: 4px; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.sign h3 { font-family: var(--font-head); font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 8px; color: #2c1b09; }
.sign p { font-size: 17px; line-height: 1.55; font-weight: 600; color: #3b2410; }
.sign code { font-family: inherit; font-weight: 800; background: rgba(255,255,255,.45); padding: 0 7px; border-radius: 3px; }
.sign-btn { display: inline-block; margin-top: 14px; padding: 10px 16px; font: inherit; font-weight: 800; font-size: 15.5px; color: #fff; text-decoration: none; cursor: pointer; background: #151a26; border: 2px solid #000; border-radius: 4px; box-shadow: 0 3px 0 #000; transition: transform .15s, box-shadow .15s; }
.sign-btn:hover { transform: translateY(-1px); } .sign-btn:active { transform: translateY(3px); box-shadow: none; } .sign-btn.ok { background: #1a6b3a; }

/* рамка с картой терры */
.frame { padding: 16px; width: min(100%, 400px); background: #e9d6a9; border: 14px solid #7a5530; border-radius: 3px; box-shadow: inset 0 0 0 3px #5a3b1c, 0 0 0 3px #3a2410, 0 12px 0 rgba(0,0,0,.35), 0 34px 40px -20px rgba(0,0,0,.7); transform: rotate(1.2deg); }
.frame .vt { width: 100%; margin-top: 18px; }

/* граница тимы */
.tm-ctl { display: grid; gap: 10px; margin: 6px 0 22px; padding: 18px 20px 20px; background: rgba(255,255,255,.05); border: 2px dashed rgba(255,255,255,.2); border-radius: 4px; }
.tm-ctl label { font-size: 15px; font-weight: 700; color: #b9c8d6; }
.tm-row { display: flex; align-items: center; gap: 16px; }
.tm-row output { flex: none; min-width: 46px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 28px; }
.tm-res { display: grid; gap: 4px; } .tm-res b { font-family: var(--font-head); font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.04em; color: #5dfb9f; font-variant-numeric: tabular-nums; }
.tm-res span { font-size: 16px; line-height: 1.5; color: #c9d6e2; min-height: 2.9em; }
#tm-range { -webkit-appearance: none; appearance: none; flex: 1; height: 16px; margin: 0; cursor: pointer; border: 2px solid #000; border-radius: 2px;
  background: linear-gradient(90deg, #22d36f 0 var(--p, 16%), #3c3f4a var(--p, 16%) 100%); box-shadow: inset 0 3px 0 rgba(0,0,0,.35); }
#tm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; background: linear-gradient(#6fc247 0 34%, #8b5a34 34%); border: 3px solid #000; border-radius: 2px; box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), 0 3px 0 rgba(0,0,0,.4); }
#tm-range::-moz-range-thumb { width: 24px; height: 24px; background: linear-gradient(#6fc247 0 34%, #8b5a34 34%); border: 3px solid #000; border-radius: 2px; }
#tm-range:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.tm-box { position: relative; width: min(100%, 360px); aspect-ratio: 1; background: rgba(13,18,28,.9); border: 3px solid #06080d; box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), 0 10px 0 rgba(0,0,0,.35), 0 34px 44px -24px rgba(0,0,0,.7);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 12.5% 12.5%; }
.tm-g { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px dashed var(--c); opacity: .8; }
.g1 { --c: #c27a3a; width: 14.2%; } .g2 { --c: #98a5b3; width: 23.1%; } .g3 { --c: #e2a817; width: 39.6%; } .g4 { --c: #3fc7ab; width: 64.5%; } .g5 { --c: #3ab3e6; width: 100%; }
.tm-cur { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; width: 14.2%; transform: translate(-50%, -50%); background: rgba(34,211,111,.28); border: 3px solid #5dfb9f; box-shadow: 0 0 26px rgba(93,251,159,.4); transition: width .35s var(--ease-out); }
.tm-cap { margin-top: 18px; text-align: center; font-size: 14.5px; color: #cdd9e4; text-shadow: 0 1px 5px rgba(0,0,0,.8); }
.dg-team .dg-vis { flex-direction: column; align-items: center; }

/* викторина по модам */
.quiz { width: min(100%, 460px); padding: 0; transition: box-shadow .3s, border-color .3s; }
.q-top { display: flex; justify-content: space-between; padding: 14px 24px; font-size: 15px; font-weight: 800; color: #b9c8d6; border-bottom: 2px dashed rgba(255,255,255,.14); }
.q-body { padding: 26px 24px 28px; display: grid; gap: 14px; }
.q-body small { font-size: 15.5px; font-weight: 600; color: #b9c8d6; }
.q-body h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(23px, 2.6vw, 30px); letter-spacing: -.035em; line-height: 1.15; min-height: 2.3em; }
.q-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.q-btns button, .q-next { padding: 15px 10px; font: inherit; font-size: 19px; font-weight: 800; cursor: pointer; border: 3px solid #000; border-radius: 4px; transition: transform .15s, box-shadow .15s, filter .2s; }
.q-yes { color: #032413; background: linear-gradient(#4af08e, #22d36f 55%, #17b95f); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), 0 4px 0 #064d27; }
.q-no { color: #fff; background: linear-gradient(#f0675a, #d33a2a 55%, #b02a1c); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 4px 0 #5e140b; }
.q-btns button:hover { filter: brightness(1.08); transform: translateY(-2px); } .q-btns button:active { transform: translateY(3px); box-shadow: none; }
.q-res { display: grid; gap: 10px; } .q-res b { font-family: var(--font-head); font-size: 22px; letter-spacing: -.03em; } .q-res p { font-size: 17px; line-height: 1.6; color: #d9e4ee; } .q-res a { color: #8ef0b4; font-weight: 800; }
.q-next { color: #fff; background: #2a3342; box-shadow: 0 4px 0 #000; } .q-next:hover { filter: brightness(1.2); }
.quiz.good { border-color: #22d36f; box-shadow: inset 3px 3px 0 rgba(255,255,255,.07), 0 0 0 3px rgba(34,211,111,.35), 0 10px 0 rgba(0,0,0,.35), 0 0 44px rgba(34,211,111,.3); }
.quiz.bad { border-color: #d33a2a; box-shadow: inset 3px 3px 0 rgba(255,255,255,.07), 0 0 0 3px rgba(211,58,42,.35), 0 10px 0 rgba(0,0,0,.35), 0 0 44px rgba(211,58,42,.3); }
.quiz.good .q-res b { color: #5dfb9f; } .quiz.bad .q-res b { color: #ff8d80; }

/* алмазный слой: привилегии */
.dg-deep { padding-top: 100px; }
.dg-deep .hb-head { display: none; }
.dg-deep .hb-slots { padding-top: 36px; }
.center-link { margin-top: 34px; text-align: center; }
.hotbar:not(.in) .hb-slot { opacity: 0; }
.hotbar.in .hb-slot { animation: cardin .7s calc(var(--i) * .09s) var(--ease-out) backwards; }
@keyframes cardin { from { opacity: 0; transform: translateY(46px) scale(.96); } }

/* бедрок */
.dg-bed { padding: 70px 0 90px; }
.bed-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 40px; padding: 38px clamp(24px, 4vw, 50px); background: rgba(10,12,18,.92); border: 3px solid #000; border-radius: 4px; box-shadow: inset 3px 3px 0 rgba(255,255,255,.06), 0 10px 0 rgba(0,0,0,.4); }
.bed-in > div:first-child { flex: 1 1 420px; }
.bed-in h2 { font-size: clamp(24px, 2.8vw, 34px); } .bed-in p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: #d9e4ee; max-width: 52ch; } .bed-in a { color: #8ef0b4; font-weight: 800; }
.bed-btns { display: flex; flex-wrap: wrap; gap: 12px; } .bed-btns .btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
main + footer { margin-top: 0; } footer::before { display: none; }

/* F3 */
.f3 { position: fixed; left: 14px; bottom: 14px; z-index: 40; display: none; flex-direction: column; gap: 1px; padding: 8px 12px 9px; font: 600 13px/1.45 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: #fff; background: rgba(0,0,0,.62); border-left: 3px solid #5dfb9f; pointer-events: none; }
.f3.on { display: flex; } .f3 i { font-style: normal; color: #ffe27a; } .f3 b { color: #5dfb9f; }

@media (max-width: 1000px) {
  .h2-grid { grid-template-columns: 1fr; min-height: 0; } .h2-stage { height: 340px; order: -1; margin-bottom: -10px; }
  .h2-ranks { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; } .h2-ranks::-webkit-scrollbar { display: none; }
  .h2r { flex: 0 0 188px; } .h2r-label { display: none; }
  .dg-two { grid-template-columns: 1fr; } .dg-two.flip .dg-vis { order: 0; }
  .signs { grid-template-columns: 1fr; gap: 50px; } .f3 { display: none !important; }
}
@media (max-width: 760px) {
  .dg { padding: 64px 0; } .dg-join { padding: 54px 0 64px; } .hero2 .hero-sub { max-width: none; }
  .dgc { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) { .fl img { animation: none; } .hotbar.in .hb-slot { animation: none; } }

/* правки главной v5 */
.dg [hidden], .q-res[hidden], .q-btns[hidden] { display: none !important; }
.q-body h3 { color: #fff; }
.dg h2, .dg-head p { text-wrap: balance; }
.h2r { padding: 12px 10px 12px 12px; column-gap: 10px; }
.h2r b { font-size: 15.5px; letter-spacing: -.02em; }
.h2r .ic-img { height: 34px !important; }
.h2r-label { font-size: 17px; margin-right: 0; }
.h2r-all { padding-inline: 6px; font-size: 14.5px; }
.h2-ranks { padding-bottom: 8px; }
.dg-join { padding-top: 40px; }
@media (max-width: 1000px) { .h2-ranks { margin-top: 26px; padding-bottom: 14px; } .h2r-all { flex: none; align-self: center; white-space: nowrap; } .h2-stage { height: 330px; } }

/* стрелки без подчёркивания, цифры не вылезают из карточек */
.arr, .dg-link::after, .h-link::after { display: inline-block; text-decoration: none; }
.dg-link::after { content: '→'; margin-left: .35em; transition: transform .2s var(--ease-out); }
.dg-link:hover::after { transform: translateX(4px); }
.h2r-all .arr { margin-left: .2em; }
.dgc { min-width: 0; overflow: hidden; }
.dg-two > * { min-width: 0; }
.big-num { font-size: clamp(46px, 7vw, 100px); letter-spacing: -.055em; white-space: nowrap; max-width: 100%; }
.big-num i { margin: 0 .04em; }
@media (max-width: 1000px) { .big-num { font-size: clamp(52px, 15vw, 112px); } }
@media (max-width: 420px) { .big-num { font-size: 15.5vw; } }
.dg-text { container-type: inline-size; }
.big-num { font-size: min(118px, 17cqw); }
.logo-cube { background-image: url(img/logo-sm.png) !important; width: 28px !important; height: 32px !important; }

/* у каждой страницы свой фон шапки */
.sky-layers canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-layers .sk-static { transition: filter 1.2s; }
.sky-slate::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 60% 90% at 82% 40%, rgba(255,70,60,.16), transparent 70%); }

.sky-cave::before { content: ''; position: absolute; z-index: 1; left: 80%; top: 40%; width: 760px; height: 760px; margin: -380px 0 0 -380px; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,170,70,.5), rgba(255,140,40,.18) 38%, transparent 66%); animation: torch 2.6s steps(1) infinite; }
@keyframes torch { 0% { opacity: .95; } 18% { opacity: .78; } 33% { opacity: 1; } 52% { opacity: .84; } 71% { opacity: .96; } 86% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .sky-cave::before { animation: none; } }
@media (max-width: 760px) { .sky-cave::before { left: 70%; width: 520px; height: 520px; margin: -260px 0 0 -260px; } }
.d-hero .tk-note, .d-hero p.tk-note { color: #4a3510; text-shadow: none; font-weight: 600; }

/* граница тимы v2: пять ступеней в одном масштабе и одна заливка с текущей границей */
.tstage { display: block; aspect-ratio: 1; --cell: 11.83%; background: #f6fbf0; border-radius: 4px; transition: none; }
.tstage::after { z-index: 0; border-radius: 4px; background: linear-gradient(rgba(47,106,27,.09) 1px, transparent 1px) 0 0 / var(--cell) var(--cell), linear-gradient(90deg, rgba(47,106,27,.09) 1px, transparent 1px) 0 0 / var(--cell) var(--cell); }
.tstage.none::after { opacity: 1; }
.tfr, .tcur { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 3px; }
.tfr { z-index: 1; width: var(--w); border: 2px dashed rgba(47,106,27,.3); transition: border-color .4s; }
.tfr:first-of-type { border-style: solid; border-width: 3px; }
.tfr.on { border-color: var(--grass-d); }
.tfr::before { content: attr(data-s); position: absolute; left: 10px; top: 0; transform: translateY(-50%); padding: 0 6px; font-size: 12px; font-weight: 800; line-height: 18px; color: rgba(47,106,27,.55); background: #f6fbf0; border-radius: 3px; transition: color .4s; }
.tfr.on::before { color: var(--grass-d); }
.tfr.is::before { opacity: 0; }
.tcur { z-index: 2; width: 14.2%; background: rgba(110,190,70,.32); border: 3px solid var(--grass-d); box-shadow: 0 0 0 5px rgba(110,190,70,.16); transition: width .7s var(--ease-out), opacity .3s; }
.tcur::before { content: attr(data-s); position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); padding: 0 8px; font-size: 13px; font-weight: 800; line-height: 22px; color: #fff; background: var(--grass-d); border-radius: 3px; }
.tstage.none .tcur { opacity: 0; }
.tstage.none .tfr:last-of-type { border-color: var(--grass-d); }
.tscale { margin-top: 14px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--faint); }
.tstage-wrap { padding: 20px 0 8px; }

/* переход к привилегиям: вкладки сроков не прячутся под шапкой */
#ranks { scroll-margin-top: 64px; }
@media (max-width: 900px) { #ranks { scroll-margin-top: 92px; } }
#tiers { scroll-margin-top: 92px; }
@media (max-width: 900px) { #tiers { scroll-margin-top: 126px; } }

.sky-layers canvas.scene { image-rendering: pixelated; }

/* ====================================================================
   ВИЗУАЛЬНАЯ ДОВОДКА: иконки, карточки привилегий, кнопки, анимации
   ==================================================================== */
/* иконки привилегий: кратно 28 пикселям рисунка, чтобы пиксели были ровными */
.ic-img { height: 56px !important; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.28)); }
.iv-ic .ic-img { height: 56px !important; }
.hb-ic { height: 100px; } .hb-ic .ic-img { height: 84px !important; }
.hb-slot.hot .hb-ic { height: 130px; } .hb-slot.hot .ic-img { height: 112px !important; }
.h2r .ic-img { height: 38px !important; image-rendering: auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.fl img { image-rendering: auto; }
@media (max-width: 760px) { .hb-ic { height: 84px; } .hb-ic .ic-img { height: 56px !important; } .hb-slot.hot .hb-ic { height: 110px; } .hb-slot.hot .ic-img { height: 84px !important; } .iv-ic .ic-img { height: 56px !important; } }

/* карточки привилегий: список с иконками */
.hb-perks { list-style: none; display: grid; gap: 9px; margin: 14px 0 18px; padding: 14px 0 0; border-top: 2px dashed rgba(255,255,255,.14); }
.hb-perks li { position: relative; display: flex; align-items: center; gap: 11px; padding: 0; font-size: 15.5px; line-height: 1.25; color: #e4edf5; font-weight: 600; }
.hb-perks li::before { display: none; }
.hb-perks i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: rgba(255,255,255,.07); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.hb-perks i svg { width: 20px; height: 20px; }
.hb-perks b { font-family: var(--font-head); font-weight: 800; font-size: 1.12em; color: #fff; }
.hb-perks small { display: block; margin-top: 1px; font-size: 13px; font-weight: 600; color: #9fb2c4; }
.hb-perks span { min-width: 0; }
.hb-slot { transition: transform .35s var(--ease-out), box-shadow .35s, border-color .25s; }
.hb-slot:hover { transform: translateY(-8px); box-shadow: 0 0 0 2px var(--c), 0 22px 34px -14px color-mix(in srgb, var(--c) 55%, transparent), 0 10px 0 rgba(0,0,0,.35); }

/* кнопки: объём, блик при наведении, нажатие вниз */
.btn, .hb-go, .sign-btn, .q-btns button { position: relative; overflow: hidden; isolation: isolate; transition: transform .18s var(--ease-out), box-shadow .18s, filter .2s; }
.btn::after, .hb-go::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%) -160% 0 / 60% 100% no-repeat; transition: background-position .65s var(--ease-out); pointer-events: none; }
.btn:hover::after, .hb-slot:hover .hb-go::after { background-position: 260% 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active, .hb-slot:active .hb-go { transform: translateY(2px); transition-duration: .06s; }
.btn-buy:hover { filter: brightness(1.07) saturate(1.05); }
.btn:focus-visible, .hb-slot:focus-visible, .h2r:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* слоты и строки таблицы доната */
.inv-row { transition: transform .3s var(--ease-out), box-shadow .3s; }
.inv-row:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -14px rgba(10,20,40,.55); }
.iv-ic .ic-img { transition: transform .35s var(--ease-out); }
.inv-row:hover .iv-ic .ic-img { transform: translateY(-4px) scale(1.06) rotate(-3deg); }

/* появление секций */
.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .btn::after, .hb-go::after { display: none; } .hb-slot:hover, .btn:hover, .inv-row:hover { transform: none; } }
.hb-slots { align-items: stretch; }
.hb-slot { display: flex; flex-direction: column; }
.hb-slot .hb-go { margin-top: auto; }
.hb-perks { margin-bottom: 20px; }

/* ============================================================
   Bein SMP — правки: меню в шапке и плашка привилегий
   Добавь в самый конец style.css
   ============================================================ */

/* ---------- шапка: логотип и пункты меню ---------- */
.nav-in { gap: 28px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -.01em; gap: 11px; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.logo-t { display: inline-flex; align-items: center; gap: 7px; }
.logo b {
  font: inherit; font-size: .74em; letter-spacing: .08em; display: inline-block; padding: 2px 7px 3px;
  color: #04230f; text-shadow: none; border-radius: 3px; transform: translateY(-1px);
  background: linear-gradient(#4af08e, #22d36f 60%, #17b95f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 #064d27;
}
.links { gap: 6px; }
.links a { padding: 10px 14px 11px; font-size: 13.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8497aa; }
.links a:hover, .links a.active { color: #fff; }
.links a::after { left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 0; background: var(--em); }
.nav .btn-buy, .nav .btn-ghost { font-size: 14.5px; }

/* значок в шапке: новый знак (img/logo-sm.png), квадратный */
.logo-cube { width: 32px !important; height: 32px !important; }
@media (max-width: 560px) {
  .links { gap: 2px; }
  .links a { padding: 10px 10px 11px; font-size: 12.5px; letter-spacing: .05em; }
  .links a::after { left: 10px; right: 10px; }
}

/* ---------- плашка привилегий ---------- */
.inv {
  --pn: #1a232e; --pn-hi: #2b3745; --pn-lo: #0f151c;
  background: var(--pn); border-color: #0b1016; padding: 18px 18px 16px;
  box-shadow: inset 3px 3px 0 var(--pn-hi), inset -3px -3px 0 var(--pn-lo), 0 7px 0 rgba(11, 16, 22, .35), 0 30px 40px -22px rgba(11, 16, 22, .6);
}
.inv-head { color: #8294a7; font-size: 13px; padding-bottom: 10px; }
.inv-row {
  background: #232e3b; padding-left: 18px;
  box-shadow: inset 2px 2px 0 #314050, inset -2px -2px 0 #172029;
}
.inv-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); box-shadow: inset -2px 0 0 rgba(0, 0, 0, .25); }
.inv-row:hover { box-shadow: inset 2px 2px 0 #3a4a5c, inset -2px -2px 0 #172029, 0 12px 22px -14px rgba(0, 0, 0, .7); }
.inv-row.hot { outline: 0; background: #2a3442; box-shadow: inset 0 0 0 3px var(--c), 0 0 0 3px #0b1016; }
.inv-row.match { outline: 3px solid var(--em); outline-offset: -3px; }
.inv-row.dim { opacity: .5; }
.inv-row:has(.iv-flag) { margin-top: 26px; }
.iv-flag { top: -15px; left: auto; right: 16px; padding: 3px 11px; border-color: #0b1016; border-radius: 3px; font-size: 12px; letter-spacing: .02em; box-shadow: 0 2px 0 #0b1016; }
.iv-rank h3 { color: var(--c); text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); font-size: 21px; }
.iv-rank p { color: #8fa0b2; }
.iv-ic .ic-img { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .4)); }
.slot { --s: #131a22; background: var(--s); box-shadow: inset 3px 3px 0 #090d12, inset -3px -3px 0 #323f4e; }
.slot:hover, .slot:focus-visible { background: #1b2430; box-shadow: inset 3px 3px 0 #090d12, inset -3px -3px 0 #323f4e, 0 0 0 2px var(--c); }
.slot.off { background: #10161d; }
.slot.off svg { opacity: .24; }
.slot .n { color: #fff; text-shadow: 2px 2px 0 #000; }
.iv-price .old { color: #66788b; }
.iv-price .price { color: #fff; font-size: 28px; }
.iv-price .price small { color: #9aabbc; }
.iv-price .day { color: #3be58a; }
.iv-who { color: #9fb0c1; font-weight: 600; padding-top: 2px; }
.inv-hint { color: #55636e; }

@media (max-width: 760px) {
  .inv { padding: 14px 12px 12px; }
  .inv-row { padding-left: 16px; }
  .inv-row:has(.iv-flag) { margin-top: 30px; }
  .inv .slot .cap { color: #8fa0b2; }
}

/* ====================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ: единый «майнкрафтовский» вид карточек
   ==================================================================== */
:root { --px-line: #223140; --px-shadow: rgba(24, 35, 45, .2); }

/* заголовки разделов: зелёная метка-блок и подчёркивание-грядка */
.sec-head h2, .sec-title { position: relative; padding-bottom: 14px; }
.sec-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; background: repeating-linear-gradient(90deg, var(--grass-l) 0 12px, var(--grass) 12px 24px); box-shadow: 0 3px 0 var(--dirt); }
.sec-head.center h2::after, .sec-head[style*="center"] h2::after { left: 50%; transform: translateX(-50%); }

/* большие карточки */
.step, .case, .tip, .tpl, .duel-col, .pick, .gl, .fair-col, .summary-box, .receipt {
  border: 2px solid var(--px-line); border-radius: 4px; background: #fff;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #e3ecf1, 0 5px 0 var(--px-shadow);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .2s;
}
.case:hover, .tip:hover, .step:hover, .fair-col:hover { transform: translateY(-4px); border-color: var(--grass-d); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #dcefd0, 0 9px 0 rgba(47, 106, 27, .28); }
.case { position: relative; padding-left: 28px; }
.case::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 6px; background: var(--grass); box-shadow: inset -2px 0 0 rgba(0, 0, 0, .18); }
.case b { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 17px; letter-spacing: -.02em; }

/* номера шагов: блок изумруда с объёмом */
.step::before { width: 42px; height: 42px; border-radius: 3px; color: #04230f; font-size: 19px;
  background: linear-gradient(#5af59a, #22d36f 55%, #17b95f); border: 2px solid #064d27; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 #064d27; }

/* правила, моды, вопросы: лёгкая версия, их много */
.rule, .mod, details { border: 2px solid #d3dee5; border-radius: 4px; box-shadow: none; background: #fff; }
.rule:hover, .mod:hover, details:hover { border-color: var(--grass); }
details[open] { border-color: var(--px-line); box-shadow: 0 5px 0 var(--px-shadow); }
.rule .num { display: inline-grid; place-items: center; align-self: start; min-width: 38px; height: 26px; padding: 0 6px; font-size: 14px; color: #fff; background: var(--px-line); border-radius: 3px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
.rule.pun { border-left: 6px solid var(--danger); }
.rule.pun .num { background: var(--danger); }
summary::after { border-radius: 3px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }

/* таблицы, шаблоны */
.table-wrap { border: 2px solid var(--px-line); border-radius: 4px; box-shadow: 0 5px 0 var(--px-shadow); overflow: hidden; }
.tpl { overflow: hidden; }
.tpl-bar { background: #18232d; color: #fff; }
.tpl pre { background: #f4f8fa; }

/* табы, чипы, поля */
.tabs .tab, .tab { border-radius: 3px; transition: background .2s, color .2s, transform .15s; }
.tab:active { transform: translateY(1px); }
.chips li { border-radius: 3px; }
input[type="text"], input[type="email"], input[type="search"], input:not([type]), textarea { border-radius: 4px; border: 2px solid #c3d1da; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: 0; border-color: var(--grass); box-shadow: 0 0 0 4px rgba(78, 154, 44, .2); }

/* плавное появление блоков */
.reveal { transform: translateY(18px); }
.reveal.in { transform: none; }
@media (max-width: 760px) { .case { padding-left: 24px; } .step:hover, .case:hover, .tip:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .step:hover, .case:hover, .tip:hover, .fair-col:hover { transform: none; } }
.team { border: 2px solid var(--px-line); border-radius: 4px; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #e3ecf1, 0 6px 0 var(--px-shadow); }
.tcalc, .ladder button, .stepper, .tstats > div { border-radius: 4px; }
.duel-col.ok { border-color: #2f6a1b; } .duel-col.no { border-color: #9c2f22; }
@media (max-width: 560px) {
  .nav-in { gap: 10px; flex-wrap: wrap; row-gap: 4px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-cube { width: 28px !important; height: 28px !important; }
  .logo b { padding: 1px 6px 2px; }
  .nav .btn-buy { padding: 9px 12px; font-size: 13.5px; margin-left: auto; }
  .nav .btn-buy small { display: none; }
  .nav .btn-ghost { display: none; }
}

/* ====================================================================
   СТРАНИЦА ПРИВИЛЕГИЙ: красивее
   ==================================================================== */
/* шапка: плашки привилегий с ценой */
.shop-side { display: grid; gap: 14px; justify-items: end; }
.rank-strip { display: flex; gap: 8px; }
.rs { --c: #888; position: relative; display: grid; justify-items: center; align-content: start; gap: 1px; width: 92px; padding: 10px 6px 9px; text-decoration: none; color: #fff;
  background: rgba(7, 12, 24, .78); border: 2px solid rgba(255, 255, 255, .16); border-bottom: 4px solid var(--c); border-radius: 4px; backdrop-filter: blur(5px);
  transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s; }
.rs .ic-img { height: 34px !important; image-rendering: auto; margin-bottom: 3px; }
.rs b { font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.rs span { font-size: 12.5px; font-weight: 700; color: #cfe0ef; white-space: nowrap; }
.rs:hover, .rs:focus-visible { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 12px 24px -12px var(--c); }
.rs.hot { border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); }
@media (max-width: 1000px) { .shop-side { justify-items: stretch; } .rank-strip { width: 100%; } .rs { flex: 1 1 0; width: auto; min-width: 0; padding-inline: 2px; } .rs span { font-size: 11.5px; } }

/* заголовок таблицы с иконками */
.inv-head span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.inv-head span:first-child { align-items: flex-start; justify-content: flex-end; }
.inv-head i { display: grid; width: 20px; height: 20px; opacity: .85; }
.inv-head i svg { width: 100%; height: 100%; }

/* строки */
.inv-row { transition: transform .3s var(--ease-out), box-shadow .3s, background .3s; }
.inv-row:hover { background: #2a3745; box-shadow: inset 2px 2px 0 #3a4a5c, inset -2px -2px 0 #172029, 0 0 0 2px color-mix(in srgb, var(--c) 75%, #000), 0 16px 28px -14px color-mix(in srgb, var(--c) 60%, transparent); }
.iv-rank { gap: 14px; }
.iv-ic { position: relative; display: grid; place-items: center; width: 84px; height: 72px; flex: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 34%, transparent), transparent 74%); }
.iv-rank h3 { font-size: 24px; letter-spacing: -.035em; }
.iv-rank p { font-size: 14px; }
.iv-price .price { font-size: 34px; }
.inv-row .btn { min-width: 118px; }
.inv-row.hot { background: linear-gradient(105deg, #33311f, #2a3442 55%); }
.inv-row.hot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 226, 120, .13) 50%, transparent 60%) 0 0 / 250% 100% no-repeat; animation: sheen 5s 1s ease-in-out infinite; }
.inv-row.flash { animation: rowflash 1.5s ease; }
@keyframes rowflash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 25% { box-shadow: 0 0 0 5px var(--c), 0 0 46px var(--c); } }
.inv-row.hot.flash { box-shadow: inset 0 0 0 3px var(--c), 0 0 0 3px #0b1016; }
.slot { transition: transform .2s var(--ease-out), background .2s; }
.slot.on:hover { transform: translateY(-3px); }

/* подбор привилегии */
.pick .pick-head b::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 10px; background: var(--grass-l); box-shadow: inset -3px -3px 0 var(--grass), 3px 3px 0 var(--dirt); }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 2px solid #c3d1da; border-radius: 4px; background: #f7fafc; box-shadow: 0 3px 0 #d5e0e7; }
.chip::before { content: ''; flex: none; width: 15px; height: 15px; border: 2px solid #8aa0ad; border-radius: 2px; background: #fff; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--grass); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--grass-bg); color: var(--ink); border-color: var(--grass-d); box-shadow: 0 3px 0 #9fcf80; }
.chip[aria-pressed="true"]::before { background: var(--grass); border-color: var(--grass-d); box-shadow: inset 0 0 0 2px #fff; }
.pick-result { border: 2px solid var(--grass-d); border-radius: 4px; background: var(--grass-bg); animation: cardin .45s var(--ease-out); }

/* окно заказа */
dialog#checkout { border: 3px solid #0e151c; border-radius: 4px; box-shadow: inset 0 0 0 2px #fff, 0 10px 0 rgba(0, 0, 0, .35), 0 40px 90px -24px rgba(0, 0, 0, .6); overflow: hidden; }
dialog#checkout .m-head { align-items: center; padding: 18px 22px; background: linear-gradient(#18232d, #243445); border-bottom: 4px solid var(--c, #22d36f); }
dialog#checkout .m-head > div { flex: 1; min-width: 0; }
dialog#checkout .m-head h3 { color: #fff; font-family: var(--font-head); letter-spacing: -.03em; }
dialog#checkout .m-head p { color: #9fb2c4; }
.m-ic { display: grid; place-items: center; width: 74px; height: 62px; flex: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #22d36f) 45%, transparent), transparent 75%); }
.m-ic .ic-img { height: 56px !important; }
dialog#checkout .m-x { background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 3px; }
dialog#checkout .m-x:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }
dialog#checkout .summary-box { border-color: var(--c, var(--px-line)); }
dialog#checkout .sum-total b { color: var(--grass-d); }
@media (max-width: 480px) { .m-ic { width: 54px; height: 48px; } .m-ic .ic-img { height: 42px !important; } }
@media (prefers-reduced-motion: reduce) { .inv-row.hot::after { animation: none; } .inv-row.flash { animation: none; } }
.shop-top .rank-strip { margin-top: 24px; }
.shop-hero { padding-bottom: 76px; }

/* телефон: плашки рангов и подписи слотов не слипаются */
@media (max-width: 560px) {
  .rank-strip { gap: 5px; }
  .rs { padding: 8px 1px 8px; border-radius: 6px; }
  .rs .ic-img { height: 28px !important; margin-bottom: 2px; }
  .rs b { font-size: 9.5px; letter-spacing: -.04em; }
  .rs span { font-size: 10px; letter-spacing: -.02em; }
  .inv-row { gap: 6px; }
  .inv .slot .cap, .slot .cap { font-size: 9px; letter-spacing: -.03em; white-space: nowrap; overflow: visible; }
}
@media (max-width: 360px) {
  .rs b { font-size: 8.5px; } .rs span { font-size: 9px; }
  .slot .cap { font-size: 8px; }
}

/* ---------- ПРОВЕРКА КАЧЕСТВА: мелкие недочёты ---------- */
/* недостающие бонусы в карточках: приглушены, чтобы видеть, что даёт апгрейд */
.hb-perks li.off { opacity: .4; }
.hb-perks li.off span { font-weight: 500; }
.hb-perks li.off i { filter: grayscale(1); }
.hb-perks li.off small { font-style: italic; }
/* шаблон тикета: подсказка в одной плашке с текстом */
.tpl pre { padding-bottom: 12px; margin: 0; }
.tpl-hint { margin: 0; padding: 0 24px 20px; background: #f4f8fa; border-top: 0; font-size: 15px; }
.tpl-hint::before { content: ''; display: block; height: 0; border-top: 2px dashed #cfdbe3; margin: 0 0 14px; }
/* FAQ: справа карточка «не нашёл ответ» */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.faq-wrap .faq { max-width: none; }
.faq-aside { position: sticky; top: 96px; display: grid; gap: 12px; padding: 22px; background: #fff; border: 2px solid var(--px-line); border-radius: 4px; box-shadow: 0 5px 0 var(--px-shadow); }
.faq-aside b { font-family: var(--font-head); font-size: 20px; letter-spacing: -.02em; }
.faq-aside p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.faq-aside .btn { justify-content: center; text-align: center; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-aside { position: static; } }
/* телефон: плашки рангов в шапке главной — сеткой, а не лентой */
@media (max-width: 700px) {
  .h2-ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 20px; }
  .h2r-label { grid-column: 1 / -1; margin: 0 0 2px; font-size: 17px; }
  .h2r { grid-template-columns: auto; justify-items: center; text-align: center; padding: 10px 4px; row-gap: 2px; column-gap: 0; }
  .h2r .ic-img { grid-row: auto; height: 30px !important; }
  .h2r b { font-size: 13px; align-self: auto; } .h2r span { font-size: 12.5px; align-self: auto; }
  .h2r i { left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; top: -9px; }
  .h2r-all { grid-column: 1 / -1; justify-self: start; padding: 4px 0 0; }
}
@media (max-width: 700px) { .h2-ranks { padding-top: 14px; row-gap: 16px; } .h2r i { top: -10px; } }

/* подсказка слота всегда поверх соседних строк */
.inv, .inv-row { overflow: visible; }
.inv-row:hover, .inv-row:focus-within, .inv-row.hot:hover { z-index: 30 !important; }
.inv-row .mc-tip { z-index: 60; }
.wordmark { filter: drop-shadow(0 8px 14px rgba(5,25,15,.35)); }
.wordmark .wm { animation: wmglint 6s ease-in-out infinite; }
@keyframes wmglint { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08) saturate(1.1); } }
@media (prefers-reduced-motion: reduce) { .wordmark .wm { animation: none; } }

/* ---------- ЛОГОТИП В ШАПКЕ ГЛАВНОЙ: чистая типографика ---------- */
.hero2 .wordmark, .wordmark { width: auto !important; filter: none; line-height: 1; margin: 0 0 18px; }
.wm2 { display: inline-flex; align-items: center; gap: .2em; font-family: var(--font-head); font-weight: 800; font-size: clamp(54px, 9vw, 104px); letter-spacing: -.045em; line-height: 1; }
.wm2-a { color: #fff; text-shadow: 0 .06em 0 rgba(6, 30, 70, .38), 0 .12em .22em rgba(6, 30, 70, .25); }
.wm2-b { position: relative; padding: .1em .2em .12em; color: #05200f; letter-spacing: -.02em; border-radius: .1em; transform: rotate(-3deg);
  background: linear-gradient(180deg, #5cf0a0 0%, #22d36f 55%, #14b05b 100%);
  box-shadow: inset 0 .035em 0 rgba(255,255,255,.6), inset 0 -.04em 0 rgba(0,0,0,.16), 0 .07em 0 #0a6b38, 0 .13em 0 #064a26, 0 .2em .3em rgba(5, 25, 15, .35);
  transition: transform .35s var(--ease-out); }
.wm2-b::after { content: ''; position: absolute; top: .08em; left: .09em; width: .16em; height: .16em; background: rgba(255,255,255,.75); }
.wordmark:hover .wm2-b { transform: rotate(0deg) translateY(-.03em); }
@media (max-width: 560px) { .wm2 { font-size: clamp(44px, 15vw, 64px); } }

/* крупные чёткие иконки привилегий (сетка 16×16, кратные размеры) */
.slot svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); image-rendering: pixelated; }
.inv-head i { width: 28px; height: 28px; opacity: 1; }
.hb-perks i { width: 36px; height: 36px; }
.hb-perks i svg { width: 32px; height: 32px; }
.gl-ic { width: 64px; height: 64px; }
.gl-ic svg { width: 48px; height: 48px; }
.gl-no .gl-ic svg { width: 28px; height: 28px; }
.slot .n { right: 3px; bottom: 1px; }
@media (max-width: 1100px) { .slot svg { width: 40px; height: 40px; } }
@media (max-width: 900px) { .slot svg { width: 32px; height: 32px; } }
@media (max-width: 520px) { .slot svg { width: 30px; height: 30px; } .hb-perks i svg { width: 28px; height: 28px; } .hb-perks i { width: 32px; height: 32px; } }

/* переключатель языка */
.lang-sw { display: inline-flex; border: 2px solid #343c4e; border-radius: 4px; overflow: hidden; margin-right: 6px; }
.lang-sw button { font: 800 12.5px/1 var(--font-body); letter-spacing: .04em; padding: 9px 10px; color: #9fb0c2; background: transparent; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.lang-sw button:hover { color: #fff; }
.lang-sw button[aria-pressed="true"] { background: #22d36f; color: #06210f; }
@media (max-width: 560px) { .lang-sw { margin-right: 4px; } .lang-sw button { padding: 7px 8px; font-size: 11.5px; } }

/* ============================================================
   Футер v2: карточка с адресом, колонки ссылок, нижняя строка
   ============================================================ */
footer { padding: 56px 0 30px; }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 22px 26px; background: rgba(8,11,18,.62); border: 2px solid rgba(255,255,255,.16); border-radius: 4px; box-shadow: 0 5px 0 rgba(0,0,0,.4); backdrop-filter: blur(3px); }
.fc-text { display: grid; gap: 4px; }
.fc-text b { font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; color: #fff; line-height: 1.15; }
.fc-text span { color: #b9c6d2; font-size: 15.5px; }
.fc-ip { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.fc-ip code { display: flex; align-items: center; padding: 0 18px; min-height: 48px; font: 700 20px/1 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: #8ef0b4; background: #0a0d14; border: 2px solid #2b3446; border-radius: 4px; box-shadow: inset 0 2px 0 rgba(0,0,0,.5); letter-spacing: .01em; }
.fc-ip .btn.ok { background: linear-gradient(#e7f4dd, #cfe6bb); color: var(--grass-d); }

.foot2 { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 46px 0 40px; }
.f-brand { display: grid; align-content: start; justify-items: start; gap: 14px; }
.f-brand p { margin: 0; max-width: 34ch; color: #b9c6d2; font-size: 15.5px; line-height: 1.65; }
.f-brand .btn { margin-top: 4px; }
footer .f-brand .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.28); box-shadow: none; padding: 9px 18px; }
footer .f-brand .btn-ghost:hover { border-color: #fff; transform: none; }
.f-col { display: grid; align-content: start; gap: 4px; }
.f-col h4 { margin: 0 0 8px; font: 800 13px/1 var(--font-body, inherit); letter-spacing: .12em; text-transform: uppercase; color: #8ef0b4; }
.f-col a { position: relative; width: fit-content; padding: 6px 0; color: #d3dde6; font-weight: 600; font-size: 15.5px; transition: color .2s, transform .25s var(--ease); }
.f-col a::before { content: ''; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: #5dfb9f; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease); }
.f-col a:hover { color: #fff; transform: translateX(6px); }
.f-col a:hover::before { opacity: 1; transform: scale(1); }
.f-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 32px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.f-bottom .legal { margin: 0; max-width: 780px; font-size: 13px; line-height: 1.6; color: #98a6b4; opacity: 1; }
.f-copy { font-size: 13px; color: #98a6b4; white-space: nowrap; }
@media (max-width: 900px) {
  .foot2 { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-cta { padding: 18px; }
  .fc-ip { width: 100%; }
  .fc-ip code { flex: 1 1 100%; justify-content: center; }
  .fc-ip .btn { flex: 1 1 100%; justify-content: center; }
  .foot2 { padding: 34px 0 30px; }
}

/* ============================================================
   Страница тикетов v2
   ============================================================ */
.tk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.tk-hero .tk-note { margin-top: 20px; }
.tk-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.tk-facts li { display: flex; align-items: center; gap: 12px; color: #e3ecf3; font-weight: 600; font-size: 16.5px; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.tk-facts svg { flex: none; width: 22px; height: 22px; padding: 3px; color: #0d2a17; background: #5dfb9f; border-radius: 3px; box-shadow: 0 2px 0 rgba(0,0,0,.4); }

/* макет канала Discord: объясняет, куда нажимать */
.dc-mock { position: relative; }
.dc-cap { margin: 0 0 10px 4px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #cfe0ec; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.dc-win { overflow: hidden; background: #313338; border: 2px solid #1b1c20; border-radius: 6px; box-shadow: 0 8px 0 rgba(0,0,0,.4), 0 24px 50px rgba(0,0,0,.35); color: #dbdee1; font-family: 'gg sans', 'Segoe UI', system-ui, sans-serif; }
.dc-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-weight: 700; font-size: 15px; color: #f2f3f5; background: #2b2d31; border-bottom: 1px solid #1f2023; }
.dc-head i { font-style: normal; font-size: 20px; line-height: 1; color: #80848e; font-weight: 500; }
.dc-msg { display: flex; gap: 14px; padding: 16px 16px 14px; }
.dc-ava { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #5865f2; color: #fff; font: 800 18px/1 var(--font-head); }
.dc-body { min-width: 0; flex: 1; }
.dc-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15.5px; color: #f2f3f5; margin-bottom: 6px; }
.dc-name em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; padding: 2px 5px; border-radius: 3px; background: #5865f2; color: #fff; }
.dc-embed { padding: 12px 14px 14px; background: #2b2d31; border-left: 4px solid #22d36f; border-radius: 4px; display: grid; gap: 6px; justify-items: start; }
.dc-embed b { font-size: 16px; color: #fff; }
.dc-embed p, .dc-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: #dbdee1; }
.dc-btn { margin-top: 6px; display: inline-block; padding: 8px 16px; border-radius: 3px; background: #5865f2; color: #fff; font-weight: 700; font-size: 14px; animation: dcpulse 2.6s ease-in-out infinite; }
@keyframes dcpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(88,101,242,0); } 50% { box-shadow: 0 0 0 5px rgba(88,101,242,.35); } }
.dc-arrow { height: 26px; display: grid; place-items: center; background: #313338; position: relative; }
.dc-arrow::before { content: ''; width: 2px; height: 100%; background: repeating-linear-gradient(#5dfb9f 0 4px, transparent 4px 8px); opacity: .8; }
.dc-arrow::after { content: ''; position: absolute; bottom: 2px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #5dfb9f; border-bottom: 0; }
.dc-head2 { border-top: 1px solid #1f2023; }
.dc-lock { margin: 10px 0 0; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #80d9a4; }
.dc-lock svg { width: 15px; height: 15px; flex: none; }

/* карточки «выбери свой случай» */
.cases2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.case2 { grid-column: span 2; position: relative; display: grid; align-content: start; justify-items: start; gap: 6px; padding: 24px 24px 22px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: #fff; border: 2px solid var(--px-line); border-radius: 4px; box-shadow: 0 5px 0 var(--px-shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.case2:nth-child(n+4) { grid-column: span 3; }
.case2:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--px-shadow); border-color: var(--grass); }
.case2:active { transform: translateY(0); box-shadow: 0 3px 0 var(--px-shadow); }
.case2:focus-visible { outline: 3px solid var(--grass-l); outline-offset: 3px; }
.case2-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; background: var(--grass-bg); border: 2px solid #cfe3c0; border-radius: 4px; transition: transform .3s var(--ease), background .25s; }
.case2-ic svg { width: 44px; height: 44px; image-rendering: pixelated; }
.case2:hover .case2-ic { transform: rotate(-5deg) scale(1.06); background: #d9eec8; }
.case2 b { font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
.case2 p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.case2-go { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--grass-d); }
.case2-go::after { content: ''; width: 9px; height: 9px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.case2:hover .case2-go::after { transform: translateX(4px) rotate(45deg); }

/* три шага: связаны линией */
.tk-steps { position: relative; }
.tk-steps .step { position: relative; }
.tk-steps .step:not(:last-child)::after { content: ''; position: absolute; z-index: 1; top: 45px; left: calc(100% - 4px); width: 24px; height: 0; border-top: 3px dashed #9bc77f; }
.tk-steps .step:not(:last-child)::before { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 #255214; }

/* шаблон */
.tpl2 .tpl-bar { padding: 12px 14px 12px 18px; gap: 14px; justify-content: flex-start; }
.tpl2 .tpl-bar #tpl-title { flex: 1; }
.tpl-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: #e7f4dd; border: 2px solid #cfe3c0; border-radius: 4px; }
.tpl-ic svg { width: 28px; height: 28px; image-rendering: pixelated; }
.tpl2 pre { padding: 24px 26px 18px; background: repeating-linear-gradient(transparent 0 33px, rgba(24,35,45,.06) 33px 34px) 0 22px / 100% 100% no-repeat, #fbfdfb; }
.tpl2 pre .ln b { font-weight: 800; color: var(--grass-d); }
.tpl2 pre .ln.f::after { content: ''; display: inline-block; vertical-align: -2px; width: clamp(60px, 16vw, 170px); height: 0; margin-left: 6px; border-bottom: 2px dashed #b7c4b0; }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 14px 18px 18px 26px; border-top: 1px dashed var(--line-2); }
.tpl-foot .tpl-hint { padding: 0; flex: 1 1 260px; }
.tpl-foot .btn-ghost { border: 2px solid var(--ink); background: #fff; color: var(--ink); box-shadow: none; padding: 10px 18px; }
.tpl-foot .btn-ghost:hover { background: var(--ink); color: #fff; }

/* хороший / плохой пример */
.duel-col h3 { display: flex; align-items: center; gap: 10px; }
.duel-col h3 svg { flex: none; width: 28px; height: 28px; padding: 5px; color: #fff; border-radius: 3px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.duel-col.ok h3 svg { background: var(--grass); }
.duel-col.no h3 svg { background: var(--danger); }

@media (max-width: 980px) {
  .tk-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .dc-mock { max-width: 520px; }
  .cases2 { grid-template-columns: 1fr 1fr; }
  .case2, .case2:nth-child(n+4) { grid-column: auto; }
  .case2:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .tk-steps .step:not(:last-child)::after { display: none; }
}
@media (max-width: 600px) {
  .cases2 { grid-template-columns: 1fr; }
  .case2 { padding: 20px; grid-template-columns: 64px 1fr; column-gap: 16px; row-gap: 2px; align-items: center; }
  .case2-ic { grid-row: span 3; margin: 0; align-self: start; }
  .case2 p, .case2-go { grid-column: 2; }
  .tpl2 pre { padding: 18px 18px 14px; font-size: 14px; }
  .tpl-foot { padding: 14px 18px 18px; }
  .tpl-foot .btn { width: 100%; justify-content: center; }
}
.case2 { grid-template-rows: auto auto 1fr auto; }
@media (max-width: 600px) { .case2 { grid-template-rows: none; } }
.tpl2 .tpl-hint { background: none; font-size: 15px; line-height: 1.55; padding: 0; }
.tpl2 .tpl-hint::before { display: none; }
.tpl2 pre { margin: 0; line-height: 32px; padding: 20px 26px 16px; background: repeating-linear-gradient(transparent 0 31px, rgba(24,35,45,.07) 31px 32px) 0 20px / 100% calc(100% - 20px) no-repeat, #fbfdfb; }
.tpl2 .tpl-foot { background: #f4f8fa; }

/* якоря не прячутся под шапкой */
main section[id] { scroll-margin-top: 76px; }
@media (max-width: 900px) { main section[id] { scroll-margin-top: 112px; } }


/* ---- макет Discord v2 ---- */
.dc-mock { position: relative; }
.dc-mock::before { content: ''; position: absolute; inset: 10% -6% -8%; z-index: -1; background: radial-gradient(closest-side, rgba(93,251,159,.22), transparent 72%); filter: blur(10px); }
.dc-cap { display: inline-block; margin: 0 0 12px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #d6ffe6; text-shadow: none; background: rgba(8,11,18,.62); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; backdrop-filter: blur(2px); }
.dc-win, .dc-win * { text-shadow: none; }
.dc-win { background: #313338; border: 2px solid #111317; border-radius: 4px; box-shadow: 0 7px 0 rgba(0,0,0,.5), 0 30px 60px rgba(0,0,0,.4); transform: none; }
.dc-head { gap: 10px; padding: 12px 16px; background: #2b2d31; border-bottom: 1px solid #1c1d21; }
.dc-head i { color: #8a8e97; }
.dc-num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; font: 800 13px/1 var(--font-head); color: #0d2a17; background: linear-gradient(#6df3a8, #35c577); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 0 #176a3a; }
.dc-msg { padding: 16px 18px 16px; gap: 14px; }
img.dc-ava { width: 40px; height: 40px; border-radius: 50%; background: #1c2630; object-fit: cover; image-rendering: pixelated; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.dc-embed { position: relative; padding: 13px 15px 15px; background: #2b2d31; border-left: 4px solid #22d36f; border-radius: 4px; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.dc-embed b { font-size: 16.5px; }
.dc-btn { position: relative; margin-top: 8px; padding: 9px 20px 9px 18px; border-radius: 4px; background: #5865f2; box-shadow: 0 2px 0 #3b45b5; animation: dcpulse 2.6s ease-in-out infinite; }
.dc-cur { position: absolute; right: -8px; bottom: -14px; width: 20px; height: 31px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); animation: dccur 2.6s ease-in-out infinite; }
@keyframes dccur { 0%, 55%, 100% { transform: translate(6px, 8px); } 70% { transform: translate(0, 0) scale(.92); } 80% { transform: translate(0, 0) scale(1); } }
.dc-sep { position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 0 12px; background: #313338; }
.dc-sep::before { content: ''; position: absolute; left: 18px; right: 18px; top: 50%; margin-top: -5px; border-top: 1px dashed rgba(93,251,159,.45); }
.dc-sep span { position: relative; padding: 4px 12px 4px 26px; font-size: 12.5px; font-weight: 700; color: #8ef0b4; background: #313338; border: 1px solid rgba(93,251,159,.4); border-radius: 20px; }
.dc-sep span::before { content: ''; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.dc-head2 { border-top: 1px solid #1c1d21; }
.dc-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-style: normal; font-size: 12px; font-weight: 700; color: #8ef0b4; background: rgba(93,251,159,.12); border: 1px solid rgba(93,251,159,.35); border-radius: 20px; }
.dc-tag svg { width: 12px; height: 12px; }
.dc-text { line-height: 1.55; }
.dc-mention { padding: 0 3px; font-weight: 600; color: #c9cdfb; background: rgba(88,101,242,.3); border-radius: 3px; }
.dc-lock { margin-top: 12px; padding: 7px 10px; width: fit-content; background: rgba(93,251,159,.08); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .dc-btn, .dc-cur { animation: none; } .dc-cur { transform: translate(4px, 6px); } }

/* ============================================================
   Страница привилегий v2: карточка «что ты получаешь», шаги выбора
   ============================================================ */
.shop-top .pledge2 { display: block; justify-self: end; width: min(100%, 430px); margin: 0; padding: 22px 24px 20px; background: rgba(8,12,22,.78); border: 2px solid rgba(255,255,255,.18); border-radius: 4px; box-shadow: 0 6px 0 rgba(0,0,0,.45), 0 24px 50px rgba(0,0,0,.35); backdrop-filter: blur(3px); color: #fff; }
.pl-title { display: block; margin-bottom: 14px; font: 800 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8ef0b4; }
.pledge2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pledge2 li { display: flex; gap: 14px; align-items: flex-start; }
.pledge2 li i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; color: #0d2a17; background: linear-gradient(#6df3a8, #35c577); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 0 #176a3a; }
.pledge2 li i svg { width: 20px; height: 20px; }
.pledge2 li div { display: grid; gap: 2px; min-width: 0; }
.pledge2 li b { font-size: 16.5px; line-height: 1.3; color: #fff; }
.pledge2 li span { display: block; padding: 0; border: 0; background: none; border-radius: 0; font-weight: 500; font-size: 14.5px; line-height: 1.5; color: #b9c8d6; text-shadow: none; }
.pledge2 .from-price { display: block; margin: 16px 0 0; padding: 14px 0 0; border: 0; border-top: 1px dashed rgba(255,255,255,.22); background: none; border-radius: 0; font-size: 15px; font-weight: 600; color: #d3dde6; }
.pledge2 .from-price b { color: #5dfb9f; font-size: 20px; }

.shop-label { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 800 17px/1.2 var(--font-body); letter-spacing: -.01em; color: var(--ink); }
.shop-label2 { margin-top: 30px; }
.shop .period-bar { margin-bottom: 0; }
@media (max-width: 1000px) { .shop-top .pledge2 { justify-self: stretch; width: 100%; margin-top: 8px; } }
@media (max-width: 560px) {
  .shop-top .pledge2 { padding: 16px 16px 14px; }
  .pledge2 ul { gap: 10px; }
  .pledge2 li span { display: none; }
  .pledge2 li i { width: 30px; height: 30px; }
  .pledge2 .from-price { display: block; }
}
.shop > .wrap > .shop-label:first-child { margin-top: 34px; }
.shop-top { align-items: center; }

/* ===== анимации страницы привилегий ===== */
/* появление рядов: сначала ряд, потом по очереди слоты */
#tiers.pre .inv-row { opacity: 0; }
#tiers.pre .inv-head { opacity: 0; }
#tiers.go .inv-head { animation: fadeup .5s var(--ease-out) backwards; }
#tiers.go .inv-row { animation: rowin .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
#tiers.go .inv-row .slot { animation: slotpop .5s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 110ms + var(--j, 0) * 45ms + 330ms); }
#tiers.go .inv-row .iv-ic { animation: ingotdrop .7s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 110ms + 220ms); }
#tiers.go .inv-row .iv-flag { animation: flagpop .55s cubic-bezier(.3, 1.8, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 110ms + 650ms); }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } }
@keyframes rowin { from { opacity: 0; transform: translateY(42px) scale(.97); } }
@keyframes slotpop { 0% { opacity: 0; transform: scale(.3) rotate(-10deg); } }
@keyframes ingotdrop { 0% { opacity: 0; transform: translateY(-26px) scale(.6) rotate(-14deg); } }
@keyframes flagpop { 0% { opacity: 0; transform: translateY(8px) scale(.5); } }

/* ингот чуть парит, у каждой привилегии со своей фазой; Gold ещё и искрится */
.iv-ic { animation: ivfloat 4.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.9s); }
@keyframes ivfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.inv-row:hover .iv-ic { animation-duration: 1.8s; }
.inv-row.hot .iv-ic::before, .inv-row.hot .iv-ic::after, .inv-row.match .iv-ic::before {
  content: ''; position: absolute; width: 6px; height: 6px; background: #fff3b0; box-shadow: 0 0 0 2px rgba(255, 215, 90, .45);
  opacity: 0; pointer-events: none; animation: twinkle 2.8s ease-in-out infinite;
}
.inv-row.hot .iv-ic::before { top: 6px; right: 10px; }
.inv-row.hot .iv-ic::after { bottom: 10px; left: 8px; width: 4px; height: 4px; animation-delay: 1.3s; }
.inv-row.match .iv-ic::before { top: 6px; right: 10px; background: #b9ffd6; box-shadow: 0 0 0 2px rgba(34, 211, 111, .45); }
@keyframes twinkle { 0%, 60%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 75% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* смена срока: цена подсвечивается и «перекатывается», слоты коротко моргают */
.price-swap .price { animation: pvglow .8s var(--ease-out); }
@keyframes pvglow { 0% { text-shadow: 0 0 0 transparent; } 25% { text-shadow: 0 0 18px var(--c, #22d36f); } 100% { text-shadow: 0 0 0 transparent; } }
#tiers.swap .inv-row .iv-ic .ic-img { animation: ingotspin .6s var(--ease-out); }
@keyframes ingotspin { 0% { transform: scale(.82) rotate(-12deg); } 60% { transform: scale(1.12) rotate(4deg); } 100% { transform: none; } }

/* подбор: подходящая привилегия мигает рамкой, плашка «Тебе подойдёт» выскакивает */
.inv-row.match { animation: matchglow 1.6s ease-in-out 2; }
@keyframes matchglow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--em) 55%, transparent), 0 0 36px color-mix(in srgb, var(--em) 55%, transparent); } }
.iv-flag.you { animation: flagpop .55s cubic-bezier(.3, 1.8, .5, 1) backwards, flagbob 2.4s .8s ease-in-out infinite; }
@keyframes flagbob { 50% { transform: translateY(-3px); } }

/* кнопка купить: у Gold блик пробегает сам, при нажатии «вдавливается» */
.inv-row.hot .btn-buy::after { animation: btnshine 3.8s 1.6s ease-in-out infinite; }
@keyframes btnshine { 0% { left: -60%; } 35%, 100% { left: 140%; } }
.inv-row .btn-buy:active { transform: translateY(2px) scale(.98); }

/* верх страницы: чипы рангов и список обещаний выезжают по очереди */
.rs { animation: rsin .6s var(--ease-out) backwards; }
.rs:nth-child(1) { animation-delay: .15s; } .rs:nth-child(2) { animation-delay: .22s; } .rs:nth-child(3) { animation-delay: .29s; }
.rs:nth-child(4) { animation-delay: .36s; } .rs:nth-child(5) { animation-delay: .43s; } .rs:nth-child(6) { animation-delay: .5s; }
@keyframes rsin { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.rs .ic-img { animation: rsbob 3.6s ease-in-out infinite; }
.rs:nth-child(2n) .ic-img { animation-delay: -1.2s; } .rs:nth-child(3n) .ic-img { animation-delay: -2.1s; }
@keyframes rsbob { 50% { transform: translateY(-3px); } }
.pledge2 { animation: cardin .7s .1s var(--ease-out) backwards; }
.pledge2 li { animation: fadeup .55s var(--ease-out) backwards; }
.pledge2 li:nth-child(1) { animation-delay: .35s; } .pledge2 li:nth-child(2) { animation-delay: .5s; } .pledge2 li:nth-child(3) { animation-delay: .65s; } .pledge2 li:nth-child(4) { animation-delay: .8s; }
.pledge2 li i { animation: tickpop .5s cubic-bezier(.3, 1.8, .5, 1) backwards; }
.pledge2 li:nth-child(1) i { animation-delay: .5s; } .pledge2 li:nth-child(2) i { animation-delay: .65s; } .pledge2 li:nth-child(3) i { animation-delay: .8s; } .pledge2 li:nth-child(4) i { animation-delay: .95s; }
@keyframes tickpop { 0% { transform: scale(0) rotate(-30deg); } }

/* подписи шагов: номер мягко пульсирует, когда блок появился */
.shop-label .dc-num { animation: numpulse 3.2s ease-in-out infinite; }
@keyframes numpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 111, 0); } 50% { box-shadow: 0 0 0 6px rgba(34, 211, 111, .22); } }

@media (prefers-reduced-motion: reduce) {
  #tiers .inv-row, #tiers .inv-head, #tiers .slot, #tiers .iv-ic, #tiers .iv-flag, .iv-ic, .iv-ic::before, .iv-ic::after,
  .price-swap .price, #tiers .iv-ic .ic-img, .inv-row.match, .iv-flag.you, .inv-row.hot .btn-buy::after,
  .rs, .rs .ic-img, .pledge2, .pledge2 li, .pledge2 li i, .shop-label .dc-num { animation: none !important; }
  #tiers.pre .inv-row, #tiers.pre .inv-head { opacity: 1; }
}

/* ===== значок по месту: в шапке свежий, в футере потёртый, на странице доната золотой ===== */
footer .logo-cube { background-image: url(img/logo-worn-sm.png) !important; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)) brightness(.92); transition: filter .3s, transform .25s; }
footer .logo { opacity: .9; transition: opacity .3s; }
footer .logo:hover { opacity: 1; }
footer .logo:hover .logo-cube { background-image: url(img/logo-sm.png) !important; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.pg-donate .nav .logo-cube { background-image: url(img/logo-gold-sm.png) !important; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(255, 205, 70, .35)); }
footer .logo b { filter: saturate(.75) brightness(.88); transition: filter .3s; }
footer .logo:hover b { filter: none; }

/* правила: железный значок, тикеты: синий */
.pg-rules .nav .logo-cube { background-image: url(img/logo-stone-sm.png) !important; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)) drop-shadow(0 0 7px rgba(170, 195, 230, .28)); }
.pg-tickets .nav .logo-cube { background-image: url(img/logo-blue-sm.png) !important; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(70, 150, 255, .4)); }

/* оживление значков: блик пробегает по букве раз в несколько секунд (маска по форме значка) */
.logo-cube { position: relative; }
.nav .logo-cube::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(img/logo-sm.png) center / contain no-repeat; mask: url(img/logo-sm.png) center / contain no-repeat;
  image-rendering: pixelated;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .45) 50%, transparent 58%) -140% 0 / 260% 100% no-repeat;
  animation: logoglint 6s 1.2s ease-in-out infinite;
}
.pg-donate .nav .logo-cube::after { background-image: linear-gradient(110deg, transparent 42%, rgba(255, 238, 160, .55) 50%, transparent 58%); animation-duration: 5s; }
.pg-rules .nav .logo-cube::after { background-image: linear-gradient(110deg, transparent 42%, rgba(235, 245, 255, .5) 50%, transparent 58%); animation-duration: 7s; }
.pg-tickets .nav .logo-cube::after { display: none; }
@keyframes logoglint { 0% { background-position: -140% 0; } 22%, 100% { background-position: 140% 0; } }
.nav .logo:hover .logo-cube::after { animation-duration: 1.2s; animation-delay: 0s; }

/* тикеты: значок мягко «дышит» синим, как входящее уведомление */
.pg-tickets .nav .logo-cube { animation: tkbreath 3.4s ease-in-out infinite; }
@keyframes tkbreath {
  0%, 100% { filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)) drop-shadow(0 0 5px rgba(70, 150, 255, .25)); }
  50% { filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)) drop-shadow(0 0 13px rgba(90, 170, 255, .7)); }
}

/* футер: потёртый значок оживает при наведении (блик + «починка») */
footer .logo-cube { position: relative; }
footer .logo:hover .logo-cube { animation: revive .55s var(--ease-out); }
@keyframes revive { 0% { transform: scale(.88) rotate(-8deg); } 55% { transform: scale(1.12) rotate(3deg); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .nav .logo-cube::after, .pg-tickets .nav .logo-cube, footer .logo:hover .logo-cube { animation: none !important; }
}

/* бот в макете Discord: свой аватар-билетик, статус «в сети», лёгкое покачивание */
.dc-avw { position: relative; flex: none; width: 40px; height: 40px; display: block; }
.dc-avw img.dc-ava { width: 40px; height: 40px; background: #1c2630; transition: transform .3s var(--ease-out); animation: botbob 3.6s ease-in-out infinite; }
.dc-msg:hover .dc-avw img.dc-ava { animation: botwave .6s var(--ease-out); }
.dc-on { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 0 3px #313338; }
.dc-on::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #23a55a; animation: dcon 2.4s ease-out infinite; }
@keyframes botbob { 50% { transform: translateY(-2px); } }
@keyframes botwave { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.08); } 55% { transform: rotate(9deg) scale(1.08); } 100% { transform: none; } }
@keyframes dcon { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }
.dc-name em { position: relative; overflow: hidden; }
.dc-name em::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%) -150% 0 / 250% 100% no-repeat; animation: botshine 5s 1s ease-in-out infinite; }
@keyframes botshine { 0% { background-position: -150% 0; } 25%, 100% { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .dc-avw img.dc-ava, .dc-msg:hover .dc-avw img.dc-ava, .dc-on::after, .dc-name em::after { animation: none !important; } }

/* ===== раскрытие привилегии: «Что внутри» ===== */
.iv-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.iv-foot .iv-who { flex: 1; margin: 2px 4px 0; }
.iv-rank { cursor: pointer; }
.iv-more { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 15px; font: 800 13.5px/1 var(--font-body, inherit); color: #dbe7f2; background: rgba(255,255,255,.05); border: 2px solid color-mix(in srgb, var(--c) 60%, #0b1016); border-radius: 4px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease-out), color .2s; }
.iv-more:hover { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); color: #fff; transform: translateY(-1px); }
.iv-more:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.iv-more svg { width: 14px; height: 14px; transition: transform .45s var(--ease-out); }
.inv-row.open .iv-more svg { transform: rotate(180deg); }
.inv-row.open { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, #000), 0 24px 40px -22px color-mix(in srgb, var(--c) 70%, transparent); }

.iv-detail { grid-column: 1 / -1; order: 10; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1), visibility 0s .6s; }
.inv-row.open .iv-detail { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.dd-in { min-height: 0; overflow: hidden; }
.dd-box { position: relative; margin: 8px 2px 4px; padding: 18px 18px 16px; border: 2px solid color-mix(in srgb, var(--c) 55%, #000); border-radius: 4px;
  background: linear-gradient(#131b24, #18222d); box-shadow: inset 0 0 70px color-mix(in srgb, var(--c) 13%, transparent);
  clip-path: inset(0 50% 0 50%); transition: clip-path .35s ease; }
.inv-row.open .dd-box { clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.2, .9, .2, 1) .1s; }
/* луч света по центру: створки расходятся от него */
.dd-doors { position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; opacity: 0; pointer-events: none; background: linear-gradient(transparent, #fff 20%, #fff 80%, transparent); box-shadow: 0 0 22px 6px var(--c); }
.inv-row.burst .dd-doors { animation: ddbeam 1s ease-out; }
@keyframes ddbeam { 0% { opacity: 1; transform: scaleY(.1); } 25% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1) scaleX(7); } }

/* слиток прокручивается и вспыхивает */
.iv-ic { perspective: 420px; }
.inv-row.burst .iv-ic { animation: ivburst 1s var(--ease-out); }
.inv-row.burst .iv-ic .ic-img { animation: ingotturn 1s cubic-bezier(.3, 1.1, .4, 1); }
@keyframes ivburst { 0% { transform: none; } 30% { transform: scale(1.22); filter: drop-shadow(0 0 16px var(--c)) brightness(1.35); } 100% { transform: none; } }
@keyframes ingotturn { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

.dd-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.dd-head b { font: 800 13px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #8fa0b2; }
.dd-name { font: 800 22px/1 var(--font-head); letter-spacing: -.03em; }
.dd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dd-card { display: grid; align-content: start; gap: 9px; padding: 13px 14px 14px; background: #1d2833; border: 2px solid #0b1016; box-shadow: inset 2px 2px 0 #2c3b4b, inset -2px -2px 0 #111a22;
  opacity: 0; transform: translateX(-60px) scale(.7) rotate(-6deg); transition: opacity .15s, transform .15s; }
.inv-row.open .dd-card { opacity: 1; transform: none; transition: opacity .35s ease calc(var(--k) * 80ms + 330ms), transform .7s cubic-bezier(.3, 1.4, .5, 1) calc(var(--k) * 80ms + 330ms); }
.dd-card.off { background: #141c25; }
.dd-card.off .dd-top, .dd-card.off p { opacity: .55; }
.dd-card.new { box-shadow: inset 2px 2px 0 #2c3b4b, inset -2px -2px 0 #111a22, 0 0 0 2px color-mix(in srgb, var(--em) 55%, transparent); }
.dd-top { display: flex; align-items: center; gap: 9px; }
.dd-top i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; }
.dd-top svg { width: 28px; height: 28px; }
.dd-card.off .dd-top svg { filter: grayscale(1); opacity: .5; }
.dd-cap { font-weight: 800; font-size: 14px; color: #dbe7f2; }
.dd-badge { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 3px; color: #04230f; background: var(--em); box-shadow: 0 2px 0 #064d27; }
.inv-row.burst .dd-badge { animation: flagpop .55s cubic-bezier(.3, 1.8, .5, 1) backwards; animation-delay: calc(var(--k) * 80ms + 1000ms); }
.dd-val { display: flex; align-items: center; min-height: 40px; }
.dd-val .dn { font: 800 38px/1 var(--font-head); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 #000; }
.dd-yes, .dd-no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 3px; }
.dd-yes { background: var(--em); color: #04230f; box-shadow: 0 3px 0 #064d27; }
.dd-no { background: #232d38; color: #6b7c8d; box-shadow: inset 0 0 0 2px #0b1016; }
.dd-yes svg, .dd-no svg { width: 20px; height: 20px; }
.dd-bar { height: 12px; padding: 2px; background: #0b1016; border-radius: 2px; }
.dd-bar::before { content: none; }
.dd-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 8px); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); transition: width .2s; }
.inv-row.open .dd-bar i { width: calc(var(--p) * 100%); transition: width 1s cubic-bezier(.2, .9, .2, 1) calc(var(--k) * 80ms + 480ms); }
.dd-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #9fb2c4; }
.dd-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.12); }
.dd-legend { margin: 0; max-width: 52ch; font-size: 13.5px; line-height: 1.5; color: #8fa0b2; }
.dd-buy { flex: none; display: flex; align-items: center; gap: 14px; }
.dd-day { font-size: 14px; font-weight: 700; color: var(--em); }
.dd-buy .btn { min-width: 128px; }
@media (max-width: 900px) {
  .iv-foot { order: 9; } .iv-detail { order: 10; }
  .dd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .iv-more span { display: none; } .iv-more { padding: 9px 11px; }
  .dd-box { padding: 14px 12px; } .dd-grid { gap: 8px; } .dd-card { padding: 10px; }
  .dd-val .dn { font-size: 30px; } .dd-card p { font-size: 12.5px; }
  .dd-foot { flex-direction: column; align-items: stretch; gap: 12px; } .dd-buy { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-detail, .dd-box, .dd-card, .dd-bar i, .iv-more svg { transition: none !important; }
  .inv-row.burst .iv-ic, .inv-row.burst .iv-ic .ic-img, .inv-row.burst .dd-doors, .inv-row.burst .dd-badge { animation: none !important; }
}
.dd-card { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.dd-cap { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .dd-top { gap: 6px; } .dd-top i { width: 24px; height: 24px; } .dd-top svg { width: 24px; height: 24px; }
  .dd-cap { font-size: 13px; } .dd-badge { font-size: 10.5px; padding: 2px 5px; }
}
@media (max-width: 560px) {
  .dd-top { flex-wrap: wrap; row-gap: 6px; }
  .dd-cap { overflow: visible; text-overflow: clip; }
  .dd-badge { order: 3; margin-left: 0; }
}

/* ===== «Что внутри» v2: красивее карточки, плашки и появление ===== */
.dd-box { background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 18%, #131b24), #121a23 70%); }
.dd-head { position: relative; margin-bottom: 16px; }
.dd-head::after { content: ''; flex: 1; align-self: center; height: 3px; margin-left: 4px; background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 12px); opacity: .55; }
.dd-name { text-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent); }

.dd-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%; position: relative; overflow: hidden; gap: 10px; padding: 15px 15px 15px;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 100% 4px no-repeat, linear-gradient(165deg, #223040, #19232e 60%);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.3), 0 10px 20px -14px #000;
  opacity: 0; translate: -70px 24px; scale: .65; rotate: -8deg; transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity .15s, translate .15s, scale .15s, rotate .15s, transform .25s ease-out; }
.dd-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255,255,255,.1), transparent 60%); opacity: 0; transition: opacity .25s; }
.dd-card:hover::before { opacity: 1; }
.inv-row.open .dd-card { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.3), 0 14px 26px -14px #000;
  transition: opacity .35s ease calc(var(--k) * 90ms + 300ms), translate .8s cubic-bezier(.25, 1.45, .5, 1) calc(var(--k) * 90ms + 300ms), scale .8s cubic-bezier(.25, 1.45, .5, 1) calc(var(--k) * 90ms + 300ms), rotate .8s cubic-bezier(.25, 1.45, .5, 1) calc(var(--k) * 90ms + 300ms), transform .25s ease-out; }
.dd-card.off { background: linear-gradient(#131b24, #131b24); box-shadow: inset 2px 2px 0 rgba(255,255,255,.03), inset -2px -2px 0 rgba(0,0,0,.35); }
.dd-card.off .dd-top, .dd-card.off p { opacity: .5; }
.dd-card.new { background: linear-gradient(#f5c43a, #f5c43a) 0 0 / 100% 4px no-repeat, linear-gradient(165deg, #2b3126, #1b2530 60%); }

/* значок предмета в рамке-слоте */
.dd-top i { width: 42px; height: 42px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 38%, transparent), transparent 80%), #0f161d; border: 2px solid #070b10; box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -2px -2px 0 rgba(0,0,0,.4); }
.dd-top svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); }
.dd-card.on:hover .dd-top svg { animation: ddwiggle .5s ease; }
@keyframes ddwiggle { 30% { transform: rotate(-10deg) scale(1.15); } 65% { transform: rotate(7deg) scale(1.1); } }
.dd-cap { font-size: 15px; letter-spacing: -.01em; }

/* плашки: «+N» со стрелкой и «Новое» со звездой, с блеском */
.dd-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 3px; font-size: 12px; background: linear-gradient(#5ff5a0, #22d36f 70%, #19b862); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #064d27; }
.dd-badge svg { width: 12px; height: 12px; flex: none; }
.dd-badge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%) -160% 0 / 250% 100% no-repeat; animation: botshine 4s 2s ease-in-out infinite; }
.dd-card.new .dd-badge { background: linear-gradient(#ffe68a, #f5c43a 70%, #dea617); color: #3b2a00; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #7a5a05; }
/* «Новое»: по карточке бежит световая кромка */
.dd-card.new::after { content: ''; position: absolute; inset: 0; pointer-events: none; padding: 2px; background: conic-gradient(from var(--ang, 0deg), transparent 0 72%, #ffe27a 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; }
.inv-row.open .dd-card.new::after { opacity: 1; transition: opacity .4s ease 1.2s; animation: ddspin 4s linear 1.2s infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ddspin { to { --ang: 360deg; } }

/* цифры, галочки, шкалы */
.dd-val .dn { font-size: 42px; background: linear-gradient(#fff 55%, color-mix(in srgb, var(--c) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.7)); }
.inv-row.burst .dd-val .dn { animation: numpop .6s cubic-bezier(.3, 1.7, .5, 1) backwards; animation-delay: calc(var(--k) * 90ms + 420ms); }
@keyframes numpop { from { transform: scale(.4); opacity: 0; } }
.dd-yes { width: 40px; height: 40px; background: linear-gradient(#5ff5a0, #22d36f 70%, #19b862); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #064d27; }
.dd-yes svg { width: 24px; height: 24px; }
.dd-yes path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.inv-row.burst .dd-yes path { animation: ddcheck .5s ease-out backwards; animation-delay: calc(var(--k) * 90ms + 850ms); }
@keyframes ddcheck { from { stroke-dashoffset: 1; } }
.dd-no { width: 40px; height: 40px; }
.dd-bar { height: 14px; padding: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dd-bar i { position: relative; overflow: hidden; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 80%, #fff) 0 6px, transparent 6px 8px); }
.dd-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent) -80% 0 / 50% 100% no-repeat; animation: barshine 3.4s 2s ease-in-out infinite; }
@keyframes barshine { 0% { background-position: -80% 0; } 40%, 100% { background-position: 180% 0; } }

/* блик, который проскальзывает по карточке сразу после приземления */
.dd-glint { position: absolute; inset: 0; pointer-events: none; display: block; text-decoration: none; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.2) 50%, transparent 58%) -150% 0 / 250% 100% no-repeat; }
.inv-row.burst .dd-glint { animation: ddglint .9s ease-out backwards; animation-delay: calc(var(--k) * 90ms + 1000ms); }
@keyframes ddglint { 0% { background-position: -150% 0; } 100% { background-position: 150% 0; } }

@media (max-width: 560px) {
  .dd-top i { width: 34px; height: 34px; } .dd-top svg { width: 24px; height: 24px; }
  .dd-val .dn { font-size: 34px; } .dd-badge { font-size: 11px; padding: 3px 7px 3px 5px; }
  .dd-card { padding: 12px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-card { translate: none !important; scale: none !important; rotate: none !important; transition: none !important; }
  .dd-badge::after, .dd-bar i::after, .dd-card.new::after, .dd-glint, .inv-row.burst .dd-val .dn, .inv-row.burst .dd-yes path, .dd-card.on:hover .dd-top svg { animation: none !important; }
}
.dd-top .dd-badge svg { width: 12px; height: 12px; filter: none; }
@media (max-width: 560px) { .dd-top .dd-badge svg { width: 11px; height: 11px; } }

/* приземление карточки: рамка вспыхивает цветом привилегии и мягко затухает, затем проходит блик */
.inv-row.burst .dd-card { animation: ddland 1.1s ease-out backwards; animation-delay: calc(var(--k) * 90ms + 850ms); }
@keyframes ddland {
  0% { box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.3), 0 0 0 0 transparent; }
  35% { box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.3), 0 0 0 2px var(--c), 0 0 30px color-mix(in srgb, var(--c) 60%, transparent); }
  100% { box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.3), 0 14px 26px -14px #000; }
}
.inv-row.burst .dd-glint { animation-duration: 1.1s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); animation-fill-mode: both; }
@media (prefers-reduced-motion: reduce) { .inv-row.burst .dd-card { animation: none !important; } }

/* ===== общая приятность ===== */
/* кнопка «наверх»: квадратная, с кольцом прогресса прокрутки */
.to-top { position: fixed; z-index: 55; right: 20px; bottom: 20px; width: 50px; height: 50px; padding: 3px; border: 0; border-radius: 6px; cursor: pointer; color: #fff;
  background: conic-gradient(var(--em) calc(var(--p, 0) * 1%), rgba(255,255,255,.14) 0); box-shadow: 0 6px 0 rgba(0,0,0,.35), 0 14px 26px -10px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(18px) scale(.8); pointer-events: none; transition: opacity .3s, transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(#1c2733, #121a23); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: background .2s; }
.to-top svg { width: 22px; height: 22px; transition: transform .25s var(--ease-out); }
.to-top:hover span { background: linear-gradient(#26364a, #17212d); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.to-top:focus-visible { outline: 3px solid var(--em); outline-offset: 3px; }

/* уведомление снизу */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; padding: 11px 18px 11px 16px; max-width: calc(100vw - 32px); font-weight: 700; font-size: 15px; color: #e9f4ee; background: #121a23; border: 2px solid #0b1016; border-left: 5px solid var(--em); border-radius: 4px; box-shadow: 0 10px 0 rgba(0,0,0,.25), 0 20px 40px -12px rgba(0,0,0,.6);
  opacity: 0; transform: translate(-50%, 24px); pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* заголовки разделов: «травяная» линия выезжает при появлении */
.sec-head.reveal h2::after { width: 0; transition: width .8s var(--ease-out) .25s; }
.sec-head.reveal.in h2::after { width: 64px; }

/* правила: номер — это ссылка на пункт */
.rule { scroll-margin-top: 110px; position: relative; }
.rule .num { cursor: pointer; transition: filter .2s, transform .2s var(--ease-out); }
.rule .num:hover, .rule .num:focus-visible { filter: brightness(1.35); transform: translateY(-2px); }
.rule .num:active { transform: translateY(1px); }
.rule.hit { animation: rulehit 2.2s ease-out; }
@keyframes rulehit { 0%, 100% { box-shadow: var(--e1), 0 0 0 0 transparent; background: #fff; } 15%, 55% { box-shadow: var(--e1), 0 0 0 4px rgba(88, 167, 53, .55), 0 0 30px rgba(88, 167, 53, .35); background: #f3faee; } }
.rule.pun.hit { animation-name: rulehitp; }
@keyframes rulehitp { 0%, 100% { box-shadow: var(--e1), 0 0 0 0 transparent; } 15%, 55% { box-shadow: var(--e1), 0 0 0 4px rgba(209, 67, 55, .45), 0 0 30px rgba(209, 67, 55, .3); } }

/* аккуратная полоса прокрутки */
html { scrollbar-width: thin; scrollbar-color: #4d6a58 #0f1720; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0f1720; }
::-webkit-scrollbar-thumb { background: #3d5a49; border: 3px solid #0f1720; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--grass); }

@media (max-width: 560px) { .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; } .toast { bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .toast, .sec-head.reveal h2::after { transition: none; } .rule.hit { animation: none; } }
@media (max-width: 700px) { .rule .num { justify-self: start; width: auto; min-width: 46px; padding-inline: 10px; } }
