/* ─────────────────────────────────────────────────────────────
   BloodMoon — стили сайта
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0B090B;
  --surface: #141013;
  --surface-2: #100C0E;
  --line: rgba(255, 255, 255, .08);
  --line-red: rgba(255, 59, 59, .22);
  --text: #F4ECEC;
  --muted: #B8ADAE;
  --dim: #8F8385;
  --red: #FF3B3B;
  --red-soft: #FF5A62;
  --red-deep: #B3121D;
  --red-dark: #8B0000;
  --logo: #E3232F;
  --header-h: 72px;
  --font-logo: 'Cinzel Decorative', 'Trajan Pro', Georgia, serif;
  --font-head: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #FF6B72; outline-offset: 2px; }
code { font-family: var(--font-mono); font-size: .9em; padding: 1px 6px; background: rgba(255, 255, 255, .07); color: var(--text); white-space: nowrap; }
b, strong { font-weight: 600; }

.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.i { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--dim); }
.fine a, .text-link { color: #FF6B72; text-decoration: underline; text-underline-offset: 3px; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(11, 9, 11, .55);
  color: var(--text);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, border-color .2s, background-color .2s;
}
.btn:hover { border-color: rgba(255, 255, 255, .42); }
.btn:active { transform: translateY(1px); }
.btn--red {
  background: linear-gradient(180deg, #F0303C, var(--red-deep));
  border-color: var(--red-soft);
  color: #fff;
  box-shadow: 0 0 26px rgba(230, 30, 45, .4);
}
.btn--red:hover { border-color: #FF8A90; box-shadow: 0 0 38px rgba(230, 30, 45, .62); }
.btn--outline { border-color: #D71E2A; background: rgba(139, 0, 0, .18); }
.btn--outline:hover { border-color: var(--red); background: rgba(139, 0, 0, .36); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }

.ip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 10px;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: none;
  font: 500 14px var(--font-mono);
  color: var(--text);
  transition: border-color .2s;
}
.ip:hover { border-color: var(--red); }
.ip svg { width: 14px; height: 14px; color: var(--dim); }

/* ── Шапка ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 11, .8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 23px/1 var(--font-logo);
  color: var(--logo);
  white-space: nowrap;
}
.logo svg { filter: drop-shadow(0 0 8px rgba(255, 40, 50, .6)); }
.logo--sm { font-size: 19px; }
.logo--sm svg { width: 26px; height: 26px; }
.nav { flex: 1; display: flex; justify-content: center; align-items: stretch; gap: 30px; height: var(--header-h); }
.nav a { display: flex; align-items: center; font-size: 14px; color: #CFC4C5; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: #FF4D55; box-shadow: inset 0 -2px 0 var(--red); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(11, 9, 11, .5);
  font-size: 14px; color: #E9DFE0;
  transition: border-color .2s;
}
.icon-btn:hover, .icon-btn.is-active { border-color: rgba(255, 59, 59, .6); }
.icon-btn .label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: var(--muted);
  font-size: 11px; font-weight: 600;
}
.cart-count.has-items { background: var(--red); color: #fff; }
.burger { display: none; }

@media (max-width: 1060px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: auto; display: none; flex-direction: column; gap: 0;
    padding: 8px 16px 20px;
    background: #0E0B0D;
    border-bottom: 1px solid var(--line-red);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  }
  .nav.is-open { display: flex; }
  .nav a { height: 52px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a.is-active { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .burger { display: inline-flex; width: 44px; height: 44px; justify-content: center; padding: 0; }
  .header-actions .icon-btn { height: 44px; }
  .header-actions .label { display: none; }
}
@media (max-width: 420px) {
  .logo { font-size: 18px; gap: 8px; }
  .logo svg { width: 26px; height: 26px; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { padding: 0 10px; }
}

/* ── Первый экран главной ── */
.hero {
  position: relative;
  min-height: 680px;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  display: flex; align-items: center;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11, 9, 11, .92) 22%, rgba(11, 9, 11, .35) 46%, rgba(11, 9, 11, 0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 11, 0) 26%),
    url(../img/hero.webp) right center / auto 100% no-repeat,
    var(--bg);
}
.hero__content { max-width: 760px; display: flex; flex-direction: column; gap: 18px; padding-block: 64px; animation: rise 1s cubic-bezier(.2, .7, .1, 1) .1s both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #BFB3B4; }
.eyebrow svg { color: var(--red); }
.hero__title {
  margin: 0;
  font: 900 clamp(46px, 7.2vw, 98px)/1 var(--font-logo);
  color: var(--logo);
  text-shadow: 0 0 42px rgba(255, 30, 45, .45), 0 4px 0 #4A0008;
}
.hero__tagline { margin: 4px 0 0; font: 600 clamp(28px, 3vw, 38px)/1.1 var(--font-head); }
.hero__text { margin: 0; max-width: 450px; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero__ip { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }

@media (max-width: 760px) {
  .hero {
    min-height: 0; align-items: flex-end;
    padding-top: 300px;
    background:
      linear-gradient(0deg, var(--bg) 40%, rgba(11, 9, 11, .55) 58%, rgba(11, 9, 11, 0) 76%),
      url(../img/hero.webp) 72% top / auto 470px no-repeat,
      var(--bg);
  }
  .hero__content { padding-block: 24px 40px; gap: 14px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ── Шапка внутренних страниц ── */
.page-hero {
  position: relative; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--line-red);
  background:
    linear-gradient(90deg, var(--bg) 18%, rgba(11, 9, 11, .78) 48%, rgba(11, 9, 11, .3)),
    linear-gradient(0deg, var(--bg), rgba(11, 9, 11, 0) 70%),
    url(../img/hero.webp) right 35% / cover no-repeat,
    var(--bg);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__art {
  position: absolute; z-index: 0;
  right: max(0px, calc((100% - 1280px) / 2));
  bottom: -30px;
  width: 320px; height: 320px; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 70%);
  mask-image: radial-gradient(circle, #000 48%, transparent 70%);
  pointer-events: none;
}
.crumbs { display: flex; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { margin: 0; font: 700 clamp(42px, 5.4vw, 64px)/1 var(--font-head); }
.page-hero p { margin: 14px 0 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
@media (max-width: 760px) {
  .page-hero { padding: calc(var(--header-h) + 40px) 0 36px; }
  .page-hero__art { width: 200px; height: 200px; right: -40px; top: calc(var(--header-h) + 10px); bottom: auto; opacity: .55; }
}

/* ── Секции ── */
.section { padding-block: 72px; }
.section--tight { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 32px; }
.section-title {
  display: flex; align-items: center; gap: 18px;
  margin: 0;
  font: 700 clamp(34px, 4vw, 50px)/1 var(--font-head);
}
.section-title::after {
  content: ""; flex: none; width: 130px; height: 14px; margin-top: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='14'%3E%3Cpath d='M0 7h100M118 7h12' stroke='%23B3121D' stroke-width='1.2'/%3E%3Cpath d='M104 7l6-5.5 6 5.5-6 5.5z' fill='none' stroke='%23FF3B3B' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-sub { margin: 10px 0 0; max-width: 560px; font: 500 19px/1.35 var(--font-head); color: #A89C9D; text-wrap: pretty; }
.section-aside { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; font-size: 13px; color: #CFC4C5; }
.section-aside::before, .section-aside::after { content: ""; width: 44px; height: 1px; background: var(--red-deep); }
@media (max-width: 760px) {
  .section { padding-block: 48px; }
  .section-title::after { width: 80px; }
  .section-aside { display: none; }
}

/* ── Полоса преимуществ ── */
.features { border-block: 1px solid var(--line-red); background: linear-gradient(180deg, #110D0F, #0D0A0C); }
.features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 92px; padding: 16px; transition: background-color .2s; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature svg { color: var(--red); filter: drop-shadow(0 0 6px rgba(255, 59, 59, .5)); }
.feature b { display: block; font-size: 15px; font-weight: 500; }
.feature small { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); }
.feature:hover { background: rgba(139, 0, 0, .12); }
@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { justify-content: flex-start; gap: 12px; padding: 16px 14px; }
  .feature svg { width: 28px; height: 28px; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature b { font-size: 14px; }
}

/* ── Карточки привилегий ── */
.rank-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.rank-card {
  --c: #9E9E9E;
  --card: #151114;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card), #0F0C0E);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rank-card:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 34px color-mix(in srgb, var(--c) 28%, transparent); }
.rank-card__art { position: relative; height: 162px; }
.rank-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rank-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--card)); }
.rank-card__body {
  position: relative; margin-top: -20px; padding: 0 14px 16px; flex: 1;
  display: grid; gap: 12px;
  grid-template-areas: "name" "list" "period" "price" "btn";
  grid-template-rows: auto 1fr auto auto;
}
.rank-card__name { grid-area: name; margin: 0; font: 700 26px/1 var(--font-head); }
.rank-card[data-rank="eclipse"] .rank-card__name { color: #FFD27A; }
.bullets { grid-area: list; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.bullets li { display: flex; gap: 7px; }
.bullets li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 5px; transform: rotate(45deg); background: var(--c); }
.rank-card__price { grid-area: price; font-size: 21px; font-weight: 600; white-space: nowrap; }
.rank-card__price s { display: block; font-size: 13px; font-weight: 400; color: var(--dim); }
.rank-card__btn { grid-area: btn; }
.rank-card--lord { --card: #2A0A0F; background: linear-gradient(180deg, #2A0A0F, #150A0C); border-color: rgba(255, 59, 59, .45); }
.rank-card--lord .rank-card__name { color: var(--red-soft); text-shadow: 0 0 18px rgba(255, 59, 59, .5); }
.rank-card--lord .bullets { color: #CBBDBE; }

@media (max-width: 1180px) { .rank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rank-grid { grid-template-columns: 1fr; gap: 10px; }
  .rank-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .rank-card:hover { transform: none; }
  .rank-card__art { height: auto; min-height: 150px; }
  .rank-card__art::after { background: linear-gradient(90deg, transparent 60%, var(--card)); }
  .rank-card--lord { background: linear-gradient(90deg, #1A090C, #2A0A0F); }
  .rank-card__body {
    margin-top: 0; padding: 14px 14px 14px 10px; gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name price" "list list" "period period" "btn btn";
    grid-template-rows: auto auto auto;
  }
  .rank-card__name { font-size: 25px; align-self: baseline; }
  .rank-card__price { font-size: 17px; text-align: right; }
  .rank-card__price s { font-size: 12px; }
  .rank-card__btn { height: 44px; }
}

/* ── Промо-карточки ── */
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promo {
  position: relative; overflow: hidden;
  min-height: 210px; padding: 24px 26px;
  display: flex; align-items: flex-end;
  background: #110D0F;
  border: 1px solid var(--line-red);
  transition: border-color .2s;
}
.promo img { position: absolute; right: -10px; top: 50%; width: 270px; height: 270px; object-fit: cover; transform: translateY(-50%); transition: transform .5s; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #110D0F 30%, rgba(17, 13, 15, .6) 55%, rgba(17, 13, 15, 0) 80%); }
.promo__body { position: relative; z-index: 2; max-width: 250px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.promo h3 { margin: 0; font: 700 32px/1 var(--font-head); }
.promo p { margin: 0; font-size: 14px; color: var(--muted); }
.promo .btn { margin-top: 6px; }
.promo:hover { border-color: rgba(255, 59, 59, .55); }
.promo:hover img { transform: translateY(-50%) scale(1.06); }
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr; gap: 12px; }
  .promo { min-height: 180px; padding: 20px; }
  .promo img { width: 220px; height: 220px; right: -30px; }
  .promo h3 { font-size: 28px; }
  .promo .btn { height: 44px; }
}

/* ── Вкладки ── */
.tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgba(11, 9, 11, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 54px; padding: 0 16px; border: 0; background: none; font-size: 14px; color: #CFC4C5; box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #FF4D55; box-shadow: inset 0 -2px 0 var(--red); }

/* ── Товары ── */
.notice { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--line-red); background: rgba(139, 0, 0, .12); font-size: 14px; color: var(--muted); }
.notice svg { color: var(--red); margin-top: 1px; }
.notice b { color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.product {
  --c: var(--red);
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
  background: linear-gradient(180deg, #151114, #0F0C0E);
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.product:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.product__icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.product__icon svg { width: 22px; height: 22px; }
.product__name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.product__lore { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.product__lore li { position: relative; padding-left: 13px; }
.product__lore li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--c); }
.product__note { align-self: flex-start; padding: 3px 8px; font-size: 12px; color: #6EE7A8; background: rgba(61, 220, 132, .12); }
.product__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.product__price { font-size: 20px; font-weight: 600; color: var(--red-soft); white-space: nowrap; }
.product__where { font-size: 12px; color: var(--dim); }

/* ── Формы ── */
.panel { padding: 28px; background: linear-gradient(180deg, #151114, #0F0C0E); border: 1px solid var(--line); }
.panel--red { border-color: rgba(255, 59, 59, .3); background: linear-gradient(160deg, rgba(139, 0, 0, .26), #141013 48%); }
.panel h2, .panel h3 { margin: 0; font: 700 30px/1.05 var(--font-head); }
@media (max-width: 560px) { .panel { padding: 20px; } }
.stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13px; color: #A89C9D; }
.field__hint { font-size: 12px; color: var(--dim); }
.field__error { font-size: 13px; color: #FF7A7A; }
.field__error:empty { display: none; }
.input {
  width: 100%; height: 50px; padding: 0 14px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #6F6466; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 59, .15); }
.input.is-invalid { border-color: #FF6B6B; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
.input-group { position: relative; display: block; }
.input-group .input { padding-right: 40px; }
.input-group__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--red); pointer-events: none; }
.inline-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.inline-row .btn { height: 50px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.total strong { font-size: 28px; color: var(--text); white-space: nowrap; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Рубины ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.widget-head { display: flex; align-items: center; gap: 14px; }
.widget-head img { width: 72px; height: 72px; object-fit: cover; -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 72%); mask-image: radial-gradient(circle, #000 50%, transparent 72%); }
.widget-head p { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.ruby-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ruby-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); background: #0F0C0E; text-align: left; transition: border-color .2s, background-color .2s; }
.ruby-preset:hover { border-color: rgba(255, 59, 59, .45); }
.ruby-preset span { font-size: 17px; font-weight: 600; }
.ruby-preset small { font-size: 12px; color: var(--dim); }
.ruby-preset.is-active { border-color: var(--red); background: rgba(255, 59, 59, .1); }
@media (max-width: 420px) { .ruby-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.check-list .num { font: 700 30px/1 var(--font-head); color: var(--red); }
.check-list b { display: block; margin-bottom: 2px; font-size: 16px; }
.check-list span { color: var(--muted); }
.spend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.spend { --c: var(--red); display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s; }
.spend:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.spend svg { width: 24px; height: 24px; color: var(--c); }
.spend b { font-size: 16px; }
.spend small { font-size: 13px; color: var(--muted); }

/* ── Кейсы ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); background: var(--surface-2); }
.step__num { font: 700 34px/1 var(--font-head); color: var(--red); }
.step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.case-card { --c: var(--red); border: 1px solid var(--line); background: linear-gradient(180deg, #151114, #0F0C0E); overflow: hidden; }
.case-card__art { height: 220px; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 20%, transparent), transparent 62%); }
.case-card__art img { width: 250px; height: 250px; object-fit: cover; -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 68%); mask-image: radial-gradient(circle, #000 45%, transparent 68%); }
.case-card__head { padding: 0 22px 18px; border-bottom: 1px solid var(--line); }
.case-card__head h2 { margin: 0; font: 700 32px/1 var(--font-head); color: var(--c); }
.case-card__keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.case-card__keys b { color: var(--text); }
.reward-list { list-style: none; margin: 0; padding: 6px 22px 20px; }
.reward-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.reward-row:last-child { border-bottom: 0; }
.reward-row__name { font-size: 14px; }
.reward-row__pct { font-size: 14px; font-weight: 600; color: var(--c); }
.reward-row__bar { grid-column: 1 / -1; height: 3px; background: rgba(255, 255, 255, .06); }
.reward-row__bar i { display: block; height: 100%; background: var(--c); }
.tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 6px; font-size: 11px; color: #FFD54A; border: 1px solid rgba(255, 213, 74, .35); vertical-align: 1px; white-space: nowrap; }
.tag svg { width: 11px; height: 11px; }
@media (max-width: 1000px) { .case-grid, .steps { grid-template-columns: 1fr; } }

/* ── Батл пасс ── */
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stat { padding: 12px 16px; border: 1px solid var(--line); background: rgba(11, 9, 11, .65); }
.stat b { display: block; font-size: 20px; }
.stat small { font-size: 12px; color: var(--dim); }
.season-name { display: inline-block; margin-bottom: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #FF6B72; }
.pass-scroll { overflow-x: auto; border: 1px solid var(--line); background: #0F0C0E; scrollbar-color: #3A2A2E #0F0C0E; }
.pass-grid { display: grid; grid-template-columns: 128px repeat(var(--levels, 30), 164px); min-width: max-content; }
.pass-grid > div { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pass-label { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 8px; background: #151013; font-size: 13px; font-weight: 600; box-shadow: 1px 0 0 var(--line); }
.pass-label svg { width: 18px; height: 18px; color: #FFB020; }
.pass-label--premium { color: #FFD27A; }
.pass-num { text-align: center; font: 700 22px/1 var(--font-head); color: var(--muted); }
.pass-cell { display: flex; flex-direction: column; gap: 8px; min-height: 92px; font-size: 13px; }
.pass-cell--premium { background: linear-gradient(180deg, rgba(255, 176, 32, .08), transparent); }
.reward { display: flex; align-items: flex-start; gap: 8px; line-height: 1.3; }
.reward svg { width: 16px; height: 16px; color: var(--k, var(--muted)); margin-top: 1px; }
.hint-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--dim); }
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.quest { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.quest b { flex: none; font-size: 13px; color: #FFD54A; }
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta p { margin: 8px 0 0; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Помощь ── */
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); background: var(--surface-2); }
.help-card svg { width: 28px; height: 28px; color: var(--red); }
.help-card h3 { margin: 0; font: 700 26px/1.05 var(--font-head); }
.help-card p { margin: 0; font-size: 14px; color: var(--muted); }
.help-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) { .help-cards { grid-template-columns: 1fr; } }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-red); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; line-height: 1.65; color: var(--muted); }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rule { padding: 22px; border: 1px solid var(--line); background: var(--surface-2); }
.rule h3 { margin: 0; font: 700 28px/1 var(--font-head); }
.rule small { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
.rule--ok h3 { color: #6EE7A8; }
.rule--ban h3 { color: var(--red-soft); }
.rule ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.rule li { position: relative; padding-left: 14px; }
.rule li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--red); }
.rule--ok li::before { background: #3DDC84; }
.rule p { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Вход ── */
.auth { display: grid; place-items: center; padding: 64px 0 88px; }
.auth .panel { width: min(460px, 100%); }
.auth__lead { margin: 10px 0 0; color: var(--muted); }
.auth__user { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); background: var(--bg); }
.auth__user svg { width: 28px; height: 28px; color: var(--red); }
.auth__user b { display: block; font: 600 18px var(--font-mono); }
.auth__user small { color: var(--dim); }

/* ── Корзина ── */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 10px; }
.cart-item { --c: var(--red); display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 12px 14px 12px 12px; border: 1px solid var(--line); background: var(--surface); }
.cart-item__art { width: 88px; height: 88px; object-fit: cover; object-position: top; }
.cart-item__kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cart-item__name { margin-top: 4px; font: 700 28px/1 var(--font-head); color: var(--c); }
.cart-item__meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.cart-item__price { font-size: 19px; font-weight: 600; white-space: nowrap; }
.icon-only { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: var(--dim); transition: color .2s, border-color .2s; }
.icon-only:hover { color: var(--red); border-color: var(--line-red); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.summary__row--discount { color: #6EE7A8; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; text-align: center; border: 1px dashed rgba(255, 255, 255, .14); }
.empty svg { width: 40px; height: 40px; color: var(--dim); }
.empty h2 { margin: 0; font: 700 34px/1 var(--font-head); }
.empty p { margin: 0 0 8px; color: var(--muted); }
.empty .btn-row { width: min(420px, 100%); }
@media (max-width: 1000px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .cart-item__art { width: 64px; height: 64px; grid-row: span 2; }
  .cart-item__name { font-size: 24px; }
  .cart-item__price { grid-column: 2; grid-row: 2; }
  .cart-item .icon-only { grid-column: 3; grid-row: 1 / span 2; }
}

/* ── Подвал ── */
.site-footer { border-top: 1px solid var(--line-red); background: radial-gradient(ellipse 60% 140% at 50% 100%, rgba(139, 0, 0, .22), transparent 70%), var(--bg); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding-block: 28px 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #CFC4C5; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--dim); }
.status--online .status__dot { border-color: #3DDC84; box-shadow: 0 0 8px #3DDC84; }
.status--offline .status__dot { border-color: var(--red-soft); }
.footer-ip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.socials { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.socials a { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .12); color: #CFC4C5; transition: border-color .2s; }
.socials a:hover { border-color: var(--red); }
.socials a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 16px 28px; border-top: 1px solid var(--line); font-size: 12px; color: #6F6466; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__bottom a:hover { color: var(--text); }
@media (max-width: 760px) { .socials { margin-left: 0; } }

/* ── Уведомление и окно ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  background: #1A1316; border: 1px solid rgba(255, 59, 59, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast a { color: #FF6B72; text-decoration: underline; text-underline-offset: 3px; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 4, .76); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s both; }
.modal__box { width: min(460px, 100%); padding: 28px; background: #141013; border: 1px solid rgba(255, 59, 59, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal__box h2 { margin: 0 0 10px; font: 700 32px/1.05 var(--font-head); }
.modal__box p { margin: 0 0 22px; line-height: 1.6; color: var(--muted); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Выбор срока привилегии на карточке */
.period { grid-area: period; display: flex; gap: 4px; }
.period__btn { flex: 1; padding: 6px 4px; font: inherit; font-size: 13px; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.period__btn:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.period__btn.is-active { color: #fff; background: color-mix(in srgb, var(--c, #d71e2a) 28%, transparent);
  border-color: color-mix(in srgb, var(--c, #d71e2a) 60%, transparent); }

/* ─────────────────────────────────────────────────────────────
   Живые данные с сервера, биржа, топы, гайд
   ───────────────────────────────────────────────────────────── */
a.tab { display: inline-flex; align-items: center; }
.tab.is-active { color: #FF4D55; box-shadow: inset 0 -2px 0 var(--red); }
.modal__body { margin: 0 0 22px; line-height: 1.6; color: var(--muted); }
.modal__body p { margin: 0 0 12px; }
.receipt { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 12px; padding: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.receipt .total strong { font-size: 24px; }
.tag--red { color: #FF6B72; border-color: rgba(255, 59, 59, .45); }
.danger { color: #FF6B72; }
.live-empty { margin: 0; font-size: 14px; color: var(--dim); }

/* Сейчас на сервере */
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.live-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: 20px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, #151114, #0F0C0E); }
.live-card b { font: 700 34px/1.05 var(--font-head); }
.live-card small { font-size: 13px; color: var(--muted); }
.live-card__kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.live-card--link { transition: border-color .2s; }
.live-card--link:hover { border-color: var(--line-red); }
.live-card--moon { border-color: rgba(255, 59, 59, .5); background: radial-gradient(circle at 85% 20%, rgba(255, 40, 50, .35), transparent 55%), linear-gradient(180deg, #2A0B10, #120709); }
.live-card--moon .live-card__kicker { color: #FF6B72; }
.live-card--off b { color: var(--dim); }
.spark { position: absolute; right: 0; bottom: 0; width: 60%; height: 56px; opacity: .9; pointer-events: none; }
.spark__line { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark__fill { fill: rgba(255, 59, 59, .12); stroke: none; }
.live-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.live-split h3 { font-size: 26px; }
.boss-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.boss-row img { width: 56px; height: 56px; object-fit: contain; image-rendering: auto; }
.boss-row--rage { border-color: rgba(255, 59, 59, .45); }
.boss-row__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.boss-row__head { display: flex; align-items: center; gap: 4px; }
.boss-row small { font-size: 12px; color: var(--dim); }
.hp { height: 6px; background: rgba(255, 255, 255, .07); }
.hp i { display: block; height: 100%; background: linear-gradient(90deg, #8B0000, var(--red)); transition: width .6s; }
.beacon-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface-2); }
.beacon-row__lvl { display: grid; place-items: center; width: 44px; height: 44px; font: 700 20px/1 var(--font-head); color: var(--red); border: 1px solid var(--line-red); background: rgba(139, 0, 0, .15); }
.beacon-row b { display: block; }
.beacon-row small { font-size: 12px; color: var(--dim); }
body.is-blood-moon .hero { box-shadow: inset 0 -120px 120px -60px rgba(255, 30, 40, .25); }
@media (max-width: 900px) { .live-grid, .live-split { grid-template-columns: 1fr; } }

/* Биржа */
.exchange-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.exchange-split h3 { font-size: 26px; margin-bottom: 14px; }
.chart .spark { position: static; width: 100%; height: 160px; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--dim); }
.trades { display: flex; flex-direction: column; }
.trade { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.trade span { color: var(--muted); }
.trade small { font-size: 12px; color: var(--dim); }
@media (max-width: 900px) { .exchange-split { grid-template-columns: 1fr; } }

/* Топы */
.top-wrap { max-width: 760px; }
.top-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.top-row { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; border: 1px solid var(--line); background: var(--surface-2); }
.top-row img { width: 40px; height: 40px; image-rendering: pixelated; }
.top-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row__place { font: 700 26px/1 var(--font-head); color: var(--dim); text-align: center; }
.top-row__value { font-weight: 600; white-space: nowrap; }
.top-row--1 { border-color: rgba(255, 213, 74, .5); background: linear-gradient(90deg, rgba(255, 213, 74, .1), var(--surface-2) 60%); }
.top-row--1 .top-row__place { color: #FFD54A; }
.top-row--2 .top-row__place { color: #D6D6DE; }
.top-row--3 .top-row__place { color: #D98C4A; }
@media (max-width: 480px) { .top-row { grid-template-columns: 30px 32px minmax(0, 1fr); } .top-row img { width: 32px; height: 32px; } .top-row__value { grid-column: 3; font-size: 13px; } }

/* Гайд */
.guide-section { scroll-margin-top: calc(var(--header-h) + 60px); border-top: 1px solid var(--line); }
.guide-section:first-of-type { border-top: 0; }
.guide-sub { margin: 48px 0 16px; font: 700 28px/1.1 var(--font-head); }
.guide-sub--flush { margin-top: 0; }
.guide-lead { margin: -6px 0 16px; }
.guide-moon { margin-bottom: 20px; }
.guide-moon p { margin: 0; color: var(--muted); }
.check-list--tight { margin-top: 14px; gap: 8px; }
.check-list--tight li { grid-template-columns: 22px minmax(0, 1fr); }
.check-list--tight .num { font-size: 16px; }

.model-view { position: relative; aspect-ratio: 1; min-height: 0; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 38%, rgba(255, 40, 50, .16), transparent 62%), linear-gradient(180deg, #151114, #0B090B); cursor: grab; touch-action: pan-y; }
.model-view:active { cursor: grabbing; }
.model-view canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.model-view--tall { aspect-ratio: 3 / 4; }
.model-view--mini { width: 72px; height: 72px; aspect-ratio: auto; flex: none; }
.model-view--mini .model-view__hint { display: none; }
.model-view__hint { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--dim); pointer-events: none; transition: opacity .3s; }
.model-view:not(.is-loaded):not(.is-failed)::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 2px solid rgba(255, 59, 59, .25); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.boss-grid { display: grid; gap: 20px; }
.boss-card { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 28px; padding: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #151114, #0F0C0E); }
.boss-card h3 { margin: 0; font: 700 40px/1 var(--font-head); }
.boss-card h4 { margin: 24px 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.boss-card__body > p { margin: 10px 0 0; }
.stats--tight { margin-top: 16px; }
.ability-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ability-list li { display: flex; gap: 12px; align-items: center; }
.ability-list b { display: block; font-size: 15px; }
.ability-list span { font-size: 14px; color: var(--muted); }
.reward-table { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.reward-table dt { color: var(--dim); }
.reward-table dd { margin: 0; }
@media (max-width: 820px) { .boss-card { grid-template-columns: 1fr; } .boss-card .model-view--tall { aspect-ratio: 1; } .reward-table { grid-template-columns: 1fr; gap: 2px; } .reward-table dd { margin-bottom: 8px; } }

.weapon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.weapon-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.weapon-card h3 { margin: 8px 0 0; font: 700 28px/1 var(--font-head); }
.weapon-card p { margin: 0; }
@media (max-width: 640px) { .weapon-grid { grid-template-columns: 1fr; } }

.altar-list { display: flex; flex-direction: column; }
.altar-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.altar-row span { color: var(--muted); text-align: right; }

.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, #151114, #0F0C0E); }
.item-card p { margin: 0; color: var(--muted); }
.item-card__head { display: flex; gap: 16px; align-items: center; }
.item-card__head img { width: 64px; height: 64px; image-rendering: pixelated; border: 1px solid var(--line); background: var(--surface-2); }
.item-card__head h3 { margin: 0; font: 700 28px/1.05 var(--font-head); }
.item-card__step { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 10px; font-size: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.chips small { color: var(--dim); }
@media (max-width: 860px) { .item-grid { grid-template-columns: 1fr; } }

.craft { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: 12px 14px; align-items: center; margin-top: auto; padding-top: 6px; }
.craft__grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 3px; }
.craft__cell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .1); background: #0B090B; }
.craft__cell img { width: 36px; height: 36px; image-rendering: pixelated; }
.craft__cell--result { width: 58px; height: 58px; border-color: var(--line-red); background: rgba(139, 0, 0, .15); }
.craft__cell--result img { width: 46px; height: 46px; }
.craft__cell--result i { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-weight: 600; font-size: 13px; text-shadow: 0 1px 2px #000; }
.craft__block { display: grid; place-items: center; width: 36px; height: 36px; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 100%, #fff 12%), color-mix(in srgb, var(--c) 80%, #000)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.craft__arrow { font-size: 22px; color: var(--dim); }
.craft__legend { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.craft__legend b { display: inline-block; width: 16px; color: var(--text); }
@media (max-width: 560px) { .craft { grid-template-columns: auto auto auto; } .craft__legend { grid-column: 1 / -1; } }

.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.guide-table th, .guide-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.guide-table thead th { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); background: var(--surface-2); }
.guide-table tbody th { font: 700 20px/1 var(--font-head); color: var(--red); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.pct { display: inline-block; min-width: 52px; padding: 2px 8px; font-weight: 600;
  background: linear-gradient(90deg, rgba(110, 231, 168, .22) calc(var(--p) * 1%), rgba(255, 255, 255, .04) 0); }
#tools .notice { margin: 16px 0 0; }

.beacon-level { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #151114, #0F0C0E); }
.beacon-level__num { display: grid; place-items: center; width: 56px; height: 56px; font: 700 26px/1 var(--font-head); color: var(--red); border: 1px solid var(--line-red); background: rgba(139, 0, 0, .15); }
.beacon-level b { display: block; font-size: 16px; }
.beacon-level div > span { display: block; font-size: 14px; color: var(--muted); }
.beacon-level div > span.danger { color: #FF6B72; }
.beacon-level small { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
#guide-beacon-recipe .craft { margin-top: 28px; }

.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.perk { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.perk b { font-size: 16px; }
.perk p { margin: 0; flex: 1; font-size: 14px; color: var(--muted); }
.perk small { font-size: 12px; color: var(--red-soft); }
/* Колонки .split не должны распираться широким содержимым (таблицы прокручиваются внутри себя) */
.split > * { min-width: 0; }
