/* SEO-витрина Midas Drop. Мир основного сайта (docs/design/tokens.md): графит, один акцент лайм, золото только у монеты,
   Fira Sans для заголовков и цифр, Inter для текста, плоские карточки. Мобила по умолчанию, ПК с 1024. Без JS. */

@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-700-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-700-latin.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: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/fira-sans-800-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/fira-sans-800-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/fira-sans-800-latin.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: 'Fira Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/fira-sans-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-latin.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: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0e0e10;
  --surface-1: #161618;
  --surface-2: #1d1d20;
  --surface-3: #28282c;
  --divider: #2e2e33;
  --edge: #34343a;
  --key-shadow: 0 3px 0 #0a0a0b, 0 3px 3px rgba(0, 0, 0, 0.25);
  --accent: #b8f800;
  --accent-hi: #d4ff4d;
  --accent-deep: #9ad400;
  --accent-soft: rgba(184, 248, 0, 0.14);
  --on-accent: #0f1a00;
  --coin: #ffd60a;
  --text-1: #ffffff;
  --text-2: #a3a3a8;
  --text-3: #8a8a91;
  --prose: #d2d2d6;
  --head: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-color: var(--surface-3) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text-1); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: var(--on-accent); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 1.15rem + 2.7vw, 3rem); line-height: 1.05; letter-spacing: -0.022em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.acc { color: var(--accent); }
/* цвета игр как в каталоге основного сайта (владелец, 2026-10-01): CS2 — голубой, Standoff 2 — жёлтый */
.g-cs2 { color: #38b6ff; }
.g-so2 { color: var(--coin); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- кнопки (плоские, как в tokens.md: без градиента, тени и свечения) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--surface-3); color: var(--text-1); font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background-color 0.15s, transform 0.15s; }
.btn:hover { background: #323237; }
.btn:active { transform: translateY(1px); }
.btn--acc { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn--acc:hover { background: var(--accent-deep); }
.btn--acc .i { transition: transform 0.2s var(--ease); }
.btn--acc:hover .i { transform: translateX(3px); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }

/* ---------- шапка: мобила — прикреплённая полоса, ПК — плавающая мини-шапка с тенью-«ключом» (tokens.md) ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--surface-1); border-radius: 0 0 12px 12px; }
.top__in { display: flex; align-items: center; gap: 12px; height: 60px; }
.top__logo { display: block; margin-right: auto; }
.top__logo img { width: 101px; height: 32px; }
.top__nav { display: none; }
.top__cta { min-height: 40px; padding: 0 16px; font-size: 14px; }
.top__cta .i { display: none; }
.top__menu { position: relative; }
.top__menu summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); cursor: pointer; list-style: none; }
.top__menu summary::-webkit-details-marker { display: none; }
.top__menu[open] summary { background: var(--accent-soft); color: var(--accent); }
.top__menu nav { position: absolute; right: 0; top: 50px; width: min(280px, calc(100vw - 32px)); display: grid; padding: 8px; background: var(--surface-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.top__menu nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.top__menu nav a:hover, .top__menu nav a[aria-current] { background: var(--surface-3); }
.top__menu nav a[aria-current] { color: var(--accent); }
@media (min-width: 1024px) {
  .top { top: 10px; margin: 10px auto 0; max-width: 1220px; padding-inline: var(--gutter); background: none; border-radius: 0; }
  .top__in { height: 64px; gap: 24px; padding: 0 10px 0 20px; background: var(--surface-2); border-radius: 14px; box-shadow: var(--key-shadow); max-width: none; }
  .top__logo { margin-right: 8px; }
  .top__nav { display: flex; gap: 2px; margin-right: auto; }
  .top__nav a { padding: 9px 13px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 15px; text-decoration: none; transition: color 0.15s, background-color 0.15s; }
  .top__nav a:hover { color: var(--text-1); background: var(--surface-3); }
  .top__nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }
  .top__menu { display: none; }
  .top__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
  .top__cta .i { display: block; }
}

/* ---------- арт-полосы: полноширинный арт с затемнением и рваным краем снизу (tokens.md «Секция с артом») ---------- */
.hero, .band { position: relative; isolation: isolate; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 23px) no-repeat, url('/img/edge.svg') left bottom / 400px 24px repeat-x;
  mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 23px) no-repeat, url('/img/edge.svg') left bottom / 400px 24px repeat-x; }
.hero__bg, .band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before, .band::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14, 14, 16, 0.92) 0%, rgba(14, 14, 16, 0.55) 55%, rgba(14, 14, 16, 0.75) 100%), linear-gradient(180deg, rgba(14, 14, 16, 0.35), transparent 40%, var(--surface-1)); }
@media (min-width: 1024px) { .hero, .band { margin-top: -84px; padding-top: 84px; } }

/* композиция из трёх кейсов */
.trio { position: relative; width: min(100%, 360px); aspect-ratio: 1.25; margin-inline: auto; }
.trio img { position: absolute; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.65)); }
.trio__c { width: 56%; left: 22%; bottom: 0; z-index: 2; }
.trio__l { width: 42%; left: -4%; bottom: 26%; rotate: -12deg; z-index: 1; }
.trio__r { width: 42%; right: -4%; bottom: 26%; rotate: 12deg; z-index: 1; }
.trio .trio__coin { width: 15%; right: 16%; top: 6%; rotate: 14deg; z-index: 3; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.trio--sm { width: min(100%, 300px); }

/* ---------- первый экран главной ---------- */
.hero { padding: 20px 0 64px; }
.hero__in { display: grid; gap: 18px; align-items: center; }
.hero .trio { display: none; } /* мобила: кнопка и рулетка — на первом экране; атмосферу даёт арт полосы */
.hero__h1 { font-weight: 800; font-size: clamp(2.5rem, 1.3rem + 5.8vw, 5.2rem); line-height: 0.97; letter-spacing: -0.03em; }
.hero__aka { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.hero__aka li { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font: 700 13px/1.2 var(--head); color: #d6d6da; }
.hero__lead { margin-top: 18px; max-width: 56ch; font-size: 17px; color: var(--prose); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__btns .btn { flex: 1 1 auto; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks .i { width: 18px; height: 18px; color: var(--accent); }
@media (min-width: 1024px) {
  .hero { padding: 132px 0 104px; }
  .hero__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; }
  .hero .trio { display: block; width: min(100%, 470px); }
  .hero__btns .btn { flex: 0 0 auto; }
}

/* ---------- окно открытия кейса: «объёмное окно» tokens.md (одно на экран), лента рулетки ---------- */
.opener { position: relative; z-index: 2; margin-top: -40px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: inset 1px 0 0 var(--edge), inset -1px 0 0 var(--edge), var(--key-shadow); }
.opener__head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; }
.opener__head img { width: 44px; height: 44px; flex: none; }
.opener__head p { display: grid; margin-right: auto; line-height: 1.3; }
.opener__head b { font: 700 16px/1.25 var(--head); }
.opener__head span { font-size: 13px; color: var(--text-2); }
.opener__go { display: none; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.opener__go:hover { text-decoration: underline; }
.opener__go .i { width: 18px; height: 18px; }
.roll { --w: 120px; --gap: 8px; --dur: 6.6s; --delay: 0.5s; margin: 0; }
.roll__view { position: relative; height: calc(var(--w) * 0.84 + 26px); overflow: hidden; border-radius: 12px; background: #121214;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.roll__track { position: absolute; left: 50%; top: 50%; display: flex; gap: var(--gap); will-change: transform;
  transform: translate(calc(-1 * (var(--win) * (var(--w) + var(--gap)) + var(--w) / 2) + 11px), -50%);
  animation: roll-spin var(--dur) cubic-bezier(0.08, 0.7, 0.11, 1) var(--delay) both; }
@keyframes roll-spin { from { transform: translate(calc(-1 * (5 * (var(--w) + var(--gap)) + var(--w) / 2)), -50%); } }
.roll__it { position: relative; display: grid; place-items: center; width: var(--w); height: calc(var(--w) * 0.84); flex: none; border-radius: 12px;
  background: radial-gradient(90% 75% at 50% 100%, var(--g), transparent 72%), var(--surface-2); border-bottom: 3px solid var(--r); }
.roll__it img { width: 82%; height: auto; }
.roll__it.is-win { box-shadow: 0 0 0 2px var(--r), 0 0 18px var(--g); transform: scale(1.06); animation: roll-win 0.45s var(--ease) calc(var(--dur) + var(--delay)) both; }
@keyframes roll-win { from { box-shadow: none; transform: none; } }
.roll__mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); }
.roll__mark::before, .roll__mark::after { content: ''; position: absolute; left: 50%; translate: -50% 0; border: 7px solid transparent; }
.roll__mark::before { top: 0; border-top-color: var(--accent); }
.roll__mark::after { bottom: 0; border-bottom-color: var(--accent); }
.roll__won { margin-top: 12px; text-align: center; font: 700 16px/1.4 var(--head); animation: roll-show 0.4s ease-out calc(var(--dur) + var(--delay)) both; }
.roll__star { color: #ffd700; }
@keyframes roll-show { from { opacity: 0; translate: 0 4px; } }
@media (min-width: 1024px) {
  .opener { margin-top: -64px; padding: 18px 20px 20px; }
  .opener__go { display: inline-flex; }
  .roll { --w: 156px; --gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .roll__track, .roll__it.is-win, .roll__won { animation: none; } }

/* ---------- секции ---------- */
.sec { padding: 56px 0; }
.sec--tight { padding-top: 24px; }
.sec h2 + .prose { margin-top: 18px; }
.sec__lead { margin-top: 14px; max-width: 64ch; font-size: 17px; color: var(--text-2); }
.sec__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--accent); font-weight: 600; text-decoration: none; }
.sec__more:hover { text-decoration: underline; }
.sec__more .i { width: 18px; height: 18px; }
@media (min-width: 1024px) { .sec { padding: 96px 0; } .sec--tight { padding-top: 40px; } }

/* текст + арт рядом */
.split { display: grid; gap: 28px; align-items: center; }
.split__art img { border-radius: 16px; }
.split .ticks { flex-direction: column; font-size: 15px; color: var(--prose); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--rev .split__art { order: -1; } }

/* режимы — как карточка режима основного сайта: градиент поверхность → оттенок режима, 3D-иконка с обрезкой */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.mode { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 176px; height: 100%; padding: 16px; overflow: hidden; border-radius: 14px; text-decoration: none;
  background: linear-gradient(180deg, var(--surface-2), var(--tint)); transition: transform 0.2s var(--ease); }
.mode:hover { transform: translateY(-3px); }
.mode__n { position: relative; z-index: 1; font: 700 19px/1.15 var(--head); }
.mode__d { position: relative; z-index: 1; max-width: 22ch; font-size: 13.5px; line-height: 1.45; color: #c4c4c9; }
.mode__ico { position: absolute; right: -14px; bottom: -14px; width: 92px; height: 92px; transition: transform 0.25s var(--ease); }
.mode:hover .mode__ico { transform: rotate(-6deg) scale(1.06); }
@media (min-width: 1024px) {
  .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .mode { min-height: 236px; padding: 22px; }
  .mode__n { font-size: 24px; }
  .mode__d { font-size: 15px; }
  .mode__ico { width: 136px; height: 136px; }
}

/* ряд мини-игр */
.more { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--surface-1); }
.more__t { font: 700 15px/1.3 var(--head); color: var(--text-2); }
.more__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.more__list a { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; text-decoration: none; text-align: center; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background-color 0.15s, color 0.15s; }
.more__list a:hover { background: var(--surface-2); color: var(--text-1); }
.more__list img { width: 52px; height: 52px; transition: transform 0.25s var(--ease); }
.more__list a:hover img { transform: translateY(-3px) rotate(-5deg); }
@media (min-width: 1024px) { .more { padding: 18px 20px; } .more__list { grid-template-columns: repeat(11, minmax(0, 1fr)); } }

/* две игры */
.games { display: grid; gap: 14px; margin-top: 28px; }
.game { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 20px; overflow: hidden; border-radius: 16px; background: var(--surface-1); text-decoration: none; isolation: isolate; }
.game img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s var(--ease); }
.game::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 14, 16, 0.96) 16%, rgba(14, 14, 16, 0.3) 66%, rgba(14, 14, 16, 0.05)); }
.game:hover img { transform: scale(1.04); }
.game__t { font: 800 clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem)/1.02 var(--head); letter-spacing: -0.02em; }
.game__d { margin-top: 8px; max-width: 46ch; color: #d0d0d4; font-size: 15px; }
.game__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 700; }
@media (min-width: 900px) { .games { grid-template-columns: 1fr 1fr; gap: 16px; } .game { min-height: 420px; padding: 30px; } }

/* кейсы: карточка кейса основного сайта — плоская, арт, название, цена лаймом с монетой */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.case { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 14px 10px 16px; border-radius: 12px; background: var(--surface-1); text-align: center; text-decoration: none; transition: background-color 0.15s; }
.case:hover { background: var(--surface-2); }
.case img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; transition: transform 0.25s var(--ease); }
.case:hover img { transform: translateY(-4px) scale(1.03); }
.case__n { margin-top: 8px; font: 700 16px/1.2 var(--head); }
.case__c { margin-top: 3px; font-size: 13px; color: var(--text-3); }
.case__p { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #0a0a0b; font: 700 14px/1 var(--head); color: var(--accent); font-variant-numeric: tabular-nums; }
.case__p img { width: 18px; height: 18px; max-width: none; aspect-ratio: auto; }
.case:hover .case__p img { transform: none; }
.case__d { margin-top: 10px; max-width: 34ch; font-size: 14px; color: var(--text-2); }
.cases .is-big { grid-column: span 2; }
.cases .is-big .case { justify-content: center; padding: 20px; background: linear-gradient(180deg, var(--surface-2), #26300a); }
.cases .is-big img { max-width: 220px; }
.cases .is-big .case__n { font-size: 24px; }
@media (min-width: 1024px) {
  .cases { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .cases .is-big { grid-row: span 2; }
  .cases .is-big img { max-width: 260px; }
  .cases .is-big .case__n { font-size: 28px; }
}
.prose .cases { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* шаги — номер несёт смысл (порядок действий): контурная цифра Fira */
.steps { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 20px; border-radius: 14px; background: var(--surface-1); overflow: hidden; }
.steps li::before { content: counter(s); position: absolute; right: 10px; top: -6px; font: 800 96px/1 var(--head); color: transparent; -webkit-text-stroke: 2px rgba(184, 248, 0, 0.55); letter-spacing: -0.04em; }
.steps h3 { position: relative; max-width: 80%; font-size: 1.3rem; }
.steps p { position: relative; margin-top: 8px; max-width: 30ch; color: var(--text-2); font-size: 15px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .steps li { min-height: 200px; padding: 24px; } }

/* честность: строка хеша — это данные, поэтому моноширинный */
.fair { display: grid; gap: 20px; padding: 22px; border-radius: 16px; background: var(--surface-1); }
.fair__code { display: grid; gap: 10px; margin: 0; padding: 16px; border-radius: 12px; background: #0a0a0b; font: 500 13px/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--text-2); overflow-wrap: anywhere; }
.fair__code b { color: var(--text-1); font-weight: 600; }
.fair__code .ok { color: var(--accent); }
@media (min-width: 900px) { .fair { grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding: 40px; align-items: center; } }

/* приложение: телефон выходит из панели, низ арта уходит в фон */
.app { display: grid; gap: 8px; align-items: center; padding: 0 20px 24px; border-radius: 18px; background: var(--surface-1); }
.app__art img { width: min(100%, 520px); margin: 0 auto; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
@media (min-width: 900px) { .app { grid-template-columns: 1fr 1fr; gap: 48px; padding: 0 48px 0 24px; margin-top: 40px; } .app__art { align-self: end; margin-top: -48px; } .app__text { padding: 40px 0; } }

/* вопросы */
.faq { margin-top: 24px; border-top: 1px solid var(--divider); }
.faq__i { border-bottom: 1px solid var(--divider); }
.faq__i summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i h3 { font-weight: 700; font-size: 17px; line-height: 1.35; transition: color 0.15s; }
.faq__i summary:hover h3 { color: var(--accent); }
.faq__ico { color: var(--text-2); transition: transform 0.2s var(--ease); }
.faq__i[open] .faq__ico { transform: rotate(45deg); color: var(--accent); }
.faq__a { padding: 0 0 20px; max-width: 72ch; color: var(--text-2); }
.faq__a a:not(.btn) { color: var(--text-1); }

/* призыв */
.cta { display: flex; flex-direction: column; gap: 16px; margin: 40px 0 0; padding: 22px; border-radius: 16px; background: var(--surface-1); }
.cta__t { font: 800 22px/1.15 var(--head); }
.cta__d { margin-top: 6px; color: var(--text-2); }
@media (min-width: 900px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; } }

/* финальный экран: полноширинный арт с рваным краем сверху */
.final { position: relative; margin-top: 24px; padding: 96px 0 104px; text-align: center; isolation: isolate; overflow: hidden;
  -webkit-mask: url('/img/edge.svg') top left / 400px 24px repeat-x, linear-gradient(#000 0 0) 0 23px / 100% calc(100% - 23px) no-repeat;
  mask: url('/img/edge.svg') top left / 400px 24px repeat-x, linear-gradient(#000 0 0) 0 23px / 100% calc(100% - 23px) no-repeat; }
.final > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 14, 16, 0.55), rgba(14, 14, 16, 0.85) 70%, var(--bg)); }
.final .trio { width: min(100%, 340px); margin-bottom: 12px; }
.final h2 { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4rem); }
.final p { max-width: 52ch; margin: 14px auto 0; color: #d6d6da; font-size: 17px; }
.final .btn { margin-top: 26px; }

/* ---------- внутренние страницы ---------- */
.band { padding: 8px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text-1); text-decoration: underline; }
.crumbs > * + *::before { content: '/'; margin-right: 6px; color: var(--text-3); }
.ph { display: grid; gap: 20px; align-items: center; padding-top: 16px; }
.ph h1 { font-weight: 800; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1; letter-spacing: -0.027em; }
.ph__lead { margin-top: 16px; max-width: 60ch; font-size: 18px; color: var(--prose); }
.ph__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ph__art img { width: 100%; max-width: 260px; margin-inline: auto; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.6)); }
.ph__art--wide img { max-width: none; border-radius: 16px; filter: none; }
.ph .trio { width: min(100%, 260px); }
@media (min-width: 1024px) {
  .band { padding: 112px 0 96px; }
  .ph { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; padding-top: 0; }
  .ph__art img { max-width: 400px; }
  .ph .trio { width: min(100%, 380px); }
}

.prose { max-width: 760px; padding-top: 8px; padding-bottom: 8px; color: var(--prose); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 56px; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); color: var(--text-1); }
.prose h2:first-child { margin-top: 24px; }
.prose h3 { margin-top: 32px; color: var(--text-1); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose a:not(.btn) { color: var(--text-1); }
.prose a:not(.btn):hover { color: var(--accent); }
.prose strong { color: var(--text-1); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent); font-family: var(--head); font-weight: 700; }
.tbl { width: 100%; overflow-x: auto; border-radius: 14px; background: var(--surface-1); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--text-1); font-weight: 600; background: var(--surface-2); }
.prose tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.note { padding: 16px 18px; border-radius: 12px; background: var(--surface-1); color: var(--text-2); font-size: 15px; }
.note b { color: var(--text-1); }
.upd { font-size: 14px; color: var(--text-3); }

.rel { display: grid; gap: 10px; max-width: 760px; margin-top: 48px; }
.rel__t { font: 800 22px/1.2 var(--head); }
.rel__a { position: relative; display: grid; gap: 2px; padding: 16px 52px 16px 18px; border-radius: 12px; background: var(--surface-1); text-decoration: none; transition: background-color 0.15s; }
.rel__a:hover { background: var(--surface-2); }
.rel__a b { font: 700 17px/1.3 var(--head); }
.rel__a span { font-size: 14px; color: var(--text-2); }
.rel__a .i { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--accent); transition: translate 0.2s var(--ease); }
.rel__a:hover .i { translate: 3px -50%; }

.blog { display: grid; gap: 14px; max-width: 900px; margin-top: 8px; }
.post { display: grid; gap: 6px; padding: 24px; border-radius: 14px; background: var(--surface-1); text-decoration: none; transition: background-color 0.15s; }
.post:hover { background: var(--surface-2); }
.post b { font: 800 23px/1.2 var(--head); }
.post span { color: var(--text-2); }
.post time { font-size: 13px; color: var(--text-3); }

/* ---------- подвал ---------- */
.foot { margin-top: 64px; padding: 40px 0 28px; background: var(--surface-1); border-top: 1px solid var(--divider); font-size: 14px; }
main:has(> .final:last-child) + .foot { margin-top: 0; }
.foot__grid { display: grid; gap: 28px; }
.foot__brand p { margin-top: 12px; max-width: 46ch; color: var(--text-2); }
.foot__brand a:not(.btn) { color: var(--text-1); }
.foot__age { display: flex; align-items: center; gap: 8px; }
.age { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 6px; border: 1px solid var(--text-3); border-radius: 6px; font: 700 12px/1 var(--head); color: var(--text-1); }
.foot__col { display: grid; align-content: start; gap: 8px; }
.foot__h { font: 700 15px/1.3 var(--head); color: var(--text-1); }
.foot__col a { color: var(--text-2); text-decoration: none; }
.foot__col a:hover { color: var(--text-1); text-decoration: underline; }
.foot__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--divider); color: var(--text-3); font-size: 13px; }
.foot__copy time { white-space: nowrap; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }

/* 404 */
.nf { padding: 72px 0 24px; text-align: center; }
.nf h1 { font: 800 clamp(2.4rem, 1.5rem + 4vw, 4rem)/1 var(--head); letter-spacing: -0.03em; }
.nf p { max-width: 48ch; margin: 14px auto 0; color: var(--text-2); }
.nf .ph__btns { justify-content: center; }
.final__case { width: 210px; margin: 0 auto 8px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7)); }
.ph__art--phone img { max-width: 100%; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); filter: none; }
