/* MinecraftTimes — магазин доната. Стиль «Event Horizon» (styles/STYLE-GUIDE.md):
   чистый чёрный, монохром, тонкие линии; кремовый — только деньги и редкость. */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --panel: #050505;
  --card: rgba(255,255,255,.025);
  --card-h: rgba(255,255,255,.05);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --white: #f5f5f4;
  --mute: rgba(245,245,244,.58);
  --dim: rgba(245,245,244,.36);
  --glow: #ffe9cf;
  --glow-ink: #1a1206;
  --bad: rgba(255,170,170,.9);
  --good: rgba(200,255,214,.9);
  --ease: cubic-bezier(.16,1,.3,1);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* --- иконки: только outline ------------------------------------------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
      stroke-linecap: round; stroke-linejoin: round; }

/* --- кнопки-капсулы ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--white);
  font-weight: 500; font-size: .95rem; letter-spacing: -.01em; text-decoration: none;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), opacity .2s;
}
.btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); }
.btn--primary { background: var(--white); color: #000; border-color: var(--white); }
.btn--primary:hover { background: #fff; box-shadow: 0 0 28px rgba(255,255,255,.28); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--white);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.06); border-color: var(--line-2); }

.label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}

/* --- навигация --------------------------------------------------------- */
.nav {
  position: sticky; top: 12px; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  margin: 12px auto 0; padding: 6px 6px 6px 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav__brand { font-weight: 600; letter-spacing: -.03em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav__brand span { color: var(--dim); font-weight: 400; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; color: var(--mute); text-decoration: none; font-size: .92rem;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--white); color: #000; font-family: var(--mono); font-size: .68rem; font-weight: 700;
}
.cart-btn__count[hidden] { display: none; }

/* --- тестовый режим ---------------------------------------------------- */
.test-bar {
  margin: 14px auto 0; padding: 10px 16px; border-radius: 16px;
  border: 1px dashed rgba(255,233,207,.35); color: var(--glow); font-size: .88rem; text-align: center;
}

/* --- hero: баннер бренда ----------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: 18px; border-radius: 48px; border: 1px solid var(--line);
  height: clamp(420px, min(48vw, 100vh - 180px), 620px);
  background: #000 url("banner.jpg") center 40% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(0,0,0,.75) 100%),
    linear-gradient(180deg, transparent 35%, rgba(0,0,0,.6) 70%, #000 100%);
}
.hero__content {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 20px 40px; text-align: center;
}
.hero__title {
  margin: 0; font-weight: 300; letter-spacing: -.06em; line-height: .95;
  font-size: clamp(2.6rem, 8vw, 6rem);
  background: linear-gradient(180deg, #fff 30%, rgba(245,245,244,.62));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin: 0; color: var(--mute); max-width: 520px; }
.ip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0,0,0,.55);
  font-family: var(--mono); font-size: .85rem; letter-spacing: .02em;
}
.ip .btn { min-height: 32px; padding: 0 12px; font-family: var(--sans); font-size: .82rem; }

/* --- секции ------------------------------------------------------------ */
.section { padding: 72px 0 0; scroll-margin-top: 64px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section__title { margin: 6px 0 0; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--mute); font-size: .88rem; transition: all .3s var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--line-2); }
.chip.is-active { background: var(--white); color: #000; border-color: var(--white); }

/* --- карточки товаров -------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 14px; border-radius: 24px; border: 1px solid var(--line); background: var(--card);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}
.card:hover { background: var(--card-h); border-color: var(--line-2); transform: translateY(-2px); }
.card.is-sale { border-color: rgba(255,233,207,.18); }
.card__open { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__open:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; border-radius: 16px; }
.card__img {
  aspect-ratio: 1; border-radius: 16px; background: var(--panel); border: 1px solid rgba(255,255,255,.05);
  display: grid; place-items: center; overflow: hidden;
}
.card__img img { width: 62%; height: 62%; object-fit: contain; image-rendering: pixelated;
                 transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__type { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.card__name { margin: 2px 0 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--mono); }
.price__now { font-size: 1.05rem; font-weight: 600; }
.price__old { color: var(--dim); text-decoration: line-through; font-size: .82rem; }
.is-sale .price__now, .price.is-sale .price__now { color: var(--glow); }
.badge-sale {
  position: absolute; top: 22px; left: 22px; z-index: 1;
  padding: 4px 9px; border-radius: 999px; background: var(--glow); color: var(--glow-ink);
  font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em;
}
.card__add { min-height: 38px; padding: 0 14px; font-size: .86rem; }

.skeleton { height: 330px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(90deg, #070707 0, #111 40%, #070707 80%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 40px; border-radius: 24px; border: 1px dashed var(--line-2); color: var(--mute); text-align: center; }

/* --- шаги -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step { padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px;
  border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .75rem;
}
.step b { display: block; font-weight: 500; margin-bottom: 6px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--mute); font-size: .93rem; }

/* --- футер ------------------------------------------------------------- */
.footer { margin-top: 96px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: .88rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h3 { margin: 0 0 10px; color: var(--white); font-size: .95rem; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--mute); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__legal { margin-top: 28px; color: var(--dim); font-size: .78rem; }
.todo { color: var(--bad); font-family: var(--mono); font-size: .85em; }

/* --- окна и корзина ---------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed; z-index: 70; inset: 50% auto auto 50%;
  width: min(900px, 100% - 24px); max-height: min(88vh, 880px); overflow: auto;
  translate: -50% -46%; opacity: 0; pointer-events: none;
  border-radius: 28px; border: 1px solid var(--line-2); background: #000;
  transition: opacity .35s var(--ease), translate .5s var(--ease);
  overscroll-behavior: contain;
}
.modal.is-open { opacity: 1; translate: -50% -50%; pointer-events: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: #000; }
.modal__body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 28px; }
.modal__side { display: flex; flex-direction: column; gap: 16px; }
.modal__img { aspect-ratio: 1; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; }
.modal__img img { width: 64%; height: 64%; object-fit: contain; image-rendering: pixelated; }
.modal__title { margin: 4px 0 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; padding-right: 44px; }
.modal__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.buy-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.buy-box .price__now { font-size: 1.4rem; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: rgba(255,255,255,.06); }
.qty input { width: 44px; border: 0; background: transparent; text-align: center; font-family: var(--mono); font-size: .92rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .85rem; color: var(--mute); }
.input {
  width: 100%; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--white);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.input.is-bad { border-color: rgba(255,120,120,.6); }
.hint { font-size: .82rem; color: var(--dim); min-height: 1.2em; }
.hint.is-bad { color: var(--bad); }
.hint.is-warn { color: var(--glow); }
.hint.is-good { color: var(--good); }

.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%); display: flex; flex-direction: column;
  border-left: 1px solid var(--line-2); background: #000;
  translate: 100% 0; transition: translate .55s var(--ease);
}
.drawer.is-open { translate: 0 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.03em; }
.drawer__items { flex: 1; overflow: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__foot { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img { width: 52px; height: 52px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; }
.line__img img { width: 70%; height: 70%; object-fit: contain; image-rendering: pixelated; }
.line__name { font-size: .95rem; font-weight: 500; line-height: 1.3; }
.line__meta { font-size: .8rem; color: var(--dim); overflow-wrap: anywhere; }
.line__right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.line .qty button { width: 28px; height: 28px; }
.line .qty input { width: 30px; font-size: .82rem; }
.line__remove { border: 0; background: none; color: var(--dim); font-size: .78rem; padding: 0; }
.line__remove:hover { color: var(--white); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total b { font-family: var(--mono); font-size: 1.3rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--mute); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #f5f5f4; flex: none; }
.check a { color: var(--white); }
.pay-note { font-size: .78rem; color: var(--dim); text-align: center; }
.error-box { padding: 12px 14px; border-radius: 16px; background: rgba(255,120,120,.07); border: 1px solid rgba(255,120,120,.28); color: #ffb3b3; font-size: .88rem; }
.error-box[hidden] { display: none; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--mute); }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--white); color: #000; font-size: .9rem; font-weight: 500;
  transition: opacity .3s var(--ease), translate .45s var(--ease); white-space: nowrap;
}
.toast.is-show { opacity: 1; translate: -50% 0; }

/* --- описание товара: блоки из панели EasyDonate (desc-*.html) --------- */
.mt-desc { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.mt-desc br, .mt-roulette br, .mt-drops br { display: none; }
.desc-text { color: var(--mute); white-space: pre-line; font-size: .95rem; }
.mt-note {
  position: relative; margin: 0; padding: 14px 16px 14px 46px; border-radius: 16px;
  background: rgba(255,233,207,.06); border: 1px solid rgba(255,233,207,.22); color: var(--glow); font-size: .92rem; line-height: 1.5;
}
.mt-note::before {
  content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16v.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mt-note--danger { background: rgba(255,120,120,.07); border-color: rgba(255,120,120,.28); color: #ffb3b3; }
.mt-sec, .mt-roulette { padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.mt-sec__head, .mt-roulette__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mt-sec__head b, .mt-roulette__head b { font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.mt-sec__hint, .mt-roulette__hint { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.mt-sec > p { margin: 14px 0 0; color: var(--dim); font-size: .86rem; line-height: 1.5; }
.mt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mt-tags li { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--mute); font-size: .82rem; line-height: 1; }
.mt-tags li.is-key { background: var(--glow); border-color: var(--glow); color: var(--glow-ink); font-weight: 600; }
.mt-tags li.is-save { background: rgba(200,255,214,.09); border-color: rgba(200,255,214,.35); color: #c8ffd6; font-weight: 600; }
.mt-drops, .mt-cmds, .mt-rules, .mt-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mt-drops { gap: 2px; counter-reset: drop; }
.mt-drops li { display: grid; grid-template-columns: 26px 1fr 84px; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; }
.mt-drops li::before { counter-increment: drop; content: counter(drop); font-family: var(--mono); font-size: .72rem; color: var(--dim); text-align: right; }
.mt-drop__name { color: var(--mute); font-size: .95rem; line-height: 1.35; }
.mt-drop__bar { position: relative; height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.mt-drop__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--c, 50) * 1%); border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,233,207,.55), var(--glow)); box-shadow: 0 0 10px rgba(255,233,207,.35); }
.mt-drops li.is-rare { background: rgba(255,233,207,.07); box-shadow: inset 0 0 0 1px rgba(255,233,207,.28); }
.mt-drops li.is-rare .mt-drop__name { color: var(--glow); font-weight: 600; }
.mt-drops li.is-rare .mt-drop__name[data-tag]::after { content: attr(data-tag); margin-left: 8px; padding: 3px 8px; border-radius: 999px;
  background: var(--glow); color: var(--glow-ink); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.mt-cmds { gap: 2px; }
.mt-cmds li { display: grid; grid-template-columns: minmax(84px, max-content) minmax(0, 1fr); align-items: baseline; gap: 4px 14px; padding: 9px 10px; border-radius: 12px; color: var(--mute); font-size: .92rem; line-height: 1.4; }
.mt-cmds li:hover, .mt-drops li:hover { background: rgba(255,255,255,.04); }
.mt-cmds code { white-space: nowrap; }
.mt-desc code { padding: 2px 7px; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--white); font-family: var(--mono); font-size: .82em; }
.mt-rules { gap: 9px; }
.mt-rules li { position: relative; padding-left: 29px; color: var(--mute); font-size: .92rem; line-height: 1.45; }
.mt-rules li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.mt-rules li.no { color: rgba(255,170,170,.85); }
.mt-rules li.no::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.mt-rules li.yes { color: rgba(200,255,214,.85); }
.mt-rules li.yes::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
.mt-steps { gap: 20px; counter-reset: mstep; }
.mt-steps li { position: relative; padding-left: 38px; color: var(--mute); font-size: .92rem; line-height: 1.6; }
.mt-steps li::before { counter-increment: mstep; content: counter(mstep); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--white); font-family: var(--mono); font-size: .72rem; }
.mt-steps b { display: block; color: var(--white); font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.mt-steps code { display: block; margin-top: 10px; padding: 10px 12px; white-space: normal; word-break: break-word; line-height: 1.6; }
.mt-desc a { color: var(--glow); overflow-wrap: anywhere; text-decoration-color: rgba(255,233,207,.45); text-underline-offset: 3px; }

/* шансы кейса — точные проценты, которые считает сервер */
.odds .mt-drops li { grid-template-columns: 26px 1fr 64px 84px; }
.odds__pct { font-family: var(--mono); font-size: .8rem; color: var(--white); text-align: right; }

/* --- страницы статуса и документов ------------------------------------ */
.page { padding: 56px 0 0; }
.status-card { max-width: 640px; margin: 0 auto; padding: 32px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--card); text-align: center; }
.status-card h1 { margin: 10px 0 8px; font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -.04em; }
.status-card p { margin: 0 auto; color: var(--mute); max-width: 460px; }
.status-list { margin: 22px 0 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 8px; }
.status-list li { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.status-list li span:last-child { color: var(--dim); font-family: var(--mono); font-size: .85rem; white-space: nowrap; }
.status-list li.is-drop { border-color: rgba(255,233,207,.28); background: rgba(255,233,207,.05); }
.status-list li.is-drop span:first-child { color: var(--glow); }
.status-actions { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.spinner { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line-2); border-top-color: var(--white); animation: spin 1.1s linear infinite; }
.status-icon { width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); }
.status-icon .ic { width: 26px; height: 26px; }
@keyframes spin { to { rotate: 360deg; } }

.doc { max-width: 820px; margin: 0 auto; }
.doc h1 { margin: 8px 0 6px; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.doc h2 { margin: 36px 0 10px; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--mute); font-size: .96rem; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a, .footer a, .footer__legal a { overflow-wrap: anywhere; }
.doc .meta { color: var(--dim); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.doc td { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--mute); vertical-align: top; }
.doc td:first-child { color: var(--dim); width: 38%; padding-right: 16px; }

/* --- адаптив ------------------------------------------------------------ */
@media (max-width: 900px) {
  .modal__body { grid-template-columns: 1fr; padding: 22px; }
  .modal__side { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
  .modal__side .buy-box { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { padding-left: 14px; }
  .nav__links { display: none; }
  .hero { border-radius: 32px; height: 440px; background-size: auto 120%; background-position: 47% 95%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; border-radius: 20px; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__add { width: 100%; }
  .badge-sale { top: 16px; left: 16px; }
  .modal { width: 100%; max-height: 92vh; inset: auto 0 0 0; translate: 0 8%; border-radius: 28px 28px 0 0; }
  .modal.is-open { translate: 0 0; }
  .mt-drops li, .odds .mt-drops li { grid-template-columns: 22px 1fr auto; row-gap: 6px; }
  .mt-drop__bar { grid-column: 2 / -1; }
  .mt-cmds li { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 56px; }
  .status-card { padding: 24px 18px; }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
