/* ─────────────────────────────────────────────────────────────
   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; }
}


/* ── Шапка внутренних страниц ── */
.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; }
}


/* ── Вкладки ── */
.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); }


/* ── Формы ── */
.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; }


/* ── Подвал ── */
.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); }

