/* Blood and Soul — Pandora. Тёмная тема в цветах заставки игры: пепел, огонь, багрянец и золото. */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-cyrillic.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;
  --bg: #0d0a0c;
  --bg-2: #120d10;
  --surface: #171115;
  --surface-2: #1f171b;
  --surface-3: #2a1f24;
  --line: rgba(217, 178, 106, .16);
  --line-strong: rgba(217, 178, 106, .34);
  --text: #ece3d6;
  --text-2: #c9bcad;
  --muted: #968a80;
  --gold: #d9b26a;
  --gold-hi: #f2d58f;
  --gold-lo: #a97a2c;
  --ember: #e8742a;
  --crimson: #b3202f;
  --crimson-hi: #e04552;
  --ok: #6fc48a;
  --wait: #e3b04b;
  --bad: #e25b5b;
  --violet: #8a63d8;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  --font-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 520px at 50% -140px, rgba(179, 32, 47, .16), transparent 70%),
    radial-gradient(900px 600px at 100% 30%, rgba(138, 99, 216, .05), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
strong { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
::selection { background: rgba(217, 178, 106, .35); color: #fff; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }
.narrow { max-width: 560px; }
.section { padding-block: 56px 8px; }
.section-tight { padding-block: 8px 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h1, .section-head h2 { margin: 0; }
.section-title { position: relative; padding-bottom: 12px; margin-bottom: 24px; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head .section-title { margin-bottom: 0; }
.link-more { font-size: .95rem; white-space: nowrap; }

/* ---------------------------------------------------------------- шапка */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 12, .86);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: url("../img/icon.png") center / cover no-repeat, var(--surface-3);
  box-shadow: 0 0 0 2px var(--gold-lo), 0 0 0 4px rgba(13, 10, 12, .9), 0 0 18px rgba(232, 116, 42, .45);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; color: var(--gold-hi); }
.logo-server { font-size: .7rem; text-transform: uppercase; letter-spacing: .32em; color: var(--ember); margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a {
  color: var(--text-2); padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; position: relative;
}
.main-nav > a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.main-nav > a.active { color: var(--gold-hi); }
.main-nav > a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.nav-account { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 12px;
  padding: 5px 12px; border-radius: 999px; font-size: .82rem; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status-pill.is-up i { background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 196, 138, .18); animation: pulse 2.4s ease-in-out infinite; }
.status-pill.is-down i { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(111, 196, 138, 0); } }

.account-btn { gap: 8px; }
.coin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 8px 1px 4px; border-radius: 999px;
  background: rgba(217, 178, 106, .12); color: var(--gold-hi);
  font-size: .82rem; font-variant-numeric: tabular-nums;
}
.coin-badge i {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, var(--gold-lo) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 12px 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px; }
  .main-nav > a.active::after { left: 12px; right: auto; width: 40px; }
  .status-pill { margin: 8px 0 4px; align-self: flex-start; }
  .nav-account { margin: 8px 0 0; flex-wrap: wrap; }
  .nav-account .btn { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- кнопки */

.btn {
  --btn-pad: 11px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-pad); border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font-body); letter-spacing: .02em; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold {
  color: #1d1206;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  border-color: #f7e2a8 var(--gold-lo) #7d5719;
  box-shadow: 0 6px 20px -8px rgba(232, 116, 42, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-gold:hover:not([disabled]) { color: #1d1206; box-shadow: 0 8px 28px -6px rgba(232, 116, 42, .85), inset 0 1px 0 rgba(255, 255, 255, .6); filter: brightness(1.06); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .03); border-color: var(--line-strong); }
.btn-ghost:hover:not([disabled]) { color: var(--gold-hi); border-color: var(--gold); background: rgba(217, 178, 106, .08); }
.btn-sm { --btn-pad: 7px 14px; font-size: .88rem; }
.btn-lg { --btn-pad: 14px 30px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

.link-action, .link-danger {
  background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; cursor: pointer; color: var(--gold);
}
.link-action:hover { color: var(--gold-hi); }
.link-danger { color: var(--bad); }
.link-danger:hover { color: #ff8a8a; }

/* ---------------------------------------------------------------- сообщения */

.flash, .alert {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; margin: 0 0 16px; font-size: .95rem;
}
.alert > div { flex-basis: 100%; }
.alert > div + div { margin-top: 2px; }
.flash { margin-top: 20px; }
.flash-ok, .alert-ok { background: rgba(111, 196, 138, .08); border-color: rgba(111, 196, 138, .35); color: #bfe8cb; }
.flash-bad, .alert-bad { background: rgba(226, 91, 91, .08); border-color: rgba(226, 91, 91, .4); color: #f3c0c0; }
.alert-wait { background: rgba(227, 176, 75, .07); border-color: rgba(227, 176, 75, .35); color: #f0dcae; align-items: center; }
.alert a { color: inherit; text-decoration: underline; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(227, 176, 75, .25); border-top-color: var(--wait);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- главная: заставка */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(620px, 78vh); display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -1; }
.hero-bg img { object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 10, 12, .82) 22%, rgba(13, 10, 12, .2) 55%, rgba(13, 10, 12, .45) 100%),
    radial-gradient(70% 90% at 50% 100%, rgba(13, 10, 12, .55), transparent 70%);
}
.hero-content { padding-block: 120px 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-kicker {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .28em; color: var(--gold-hi);
  background: rgba(13, 10, 12, .55); border: 1px solid var(--line-strong);
}
.hero-title {
  margin: 0 0 12px; font-size: clamp(2.8rem, 1.6rem + 6vw, 5.6rem); line-height: .95; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold-hi) 38%, var(--gold) 62%, #9a6420 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .85)) drop-shadow(0 0 30px rgba(232, 116, 42, .35));
}
.hero-lead { max-width: 620px; font-size: 1.12rem; color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) {
  .hero-kicker { letter-spacing: .14em; font-size: .68rem; }
  .hero-content { padding-block: 96px 44px; }
  .table th, .table td { padding-inline: 8px; }
}

.status-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: -1px; position: relative; z-index: 2;
  background: var(--line); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
  padding-inline: 0; max-width: calc(1180px - 2 * var(--gutter));
}
.status-strip .stat { background: var(--surface); padding: 16px 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.stat-value.ok { color: var(--ok); }
.stat-value.bad { color: var(--bad); }
@media (max-width: 1228px) { .status-strip { margin-inline: var(--gutter); width: auto; } }
@media (max-width: 720px) { .status-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- новости */

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.news-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card-body time, .article > time { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ember); }
.news-card-body h3 { margin: 0; font-size: 1.35rem; }
.news-card-body h3 a { color: var(--text); }
.news-card-body h3 a:hover { color: var(--gold-hi); }
.news-card-body p { margin: 0; color: var(--text-2); font-size: .95rem; }

.page-head { padding-block: 44px 20px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--text-2); margin: 0; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pager a {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text-2); font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--gold); color: var(--gold-hi); }
.pager a.active { background: var(--gold); color: #1d1206; border-color: var(--gold); font-weight: 600; }

.article { max-width: 820px; padding-block: 36px 64px; }
.article > time { display: block; margin-bottom: 6px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: .92rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 8px 0 28px; border: 1px solid var(--line); }
.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; max-width: 70ch; }
.prose h3 { color: var(--gold-hi); margin: 1.6em 0 .5em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; border: 1px solid var(--line); }
.prose a { text-decoration: underline; text-decoration-color: rgba(217, 178, 106, .4); text-underline-offset: 3px; }
.prose strong { color: var(--text); }

/* ---------------------------------------------------------------- шаги и особенности */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li {
  position: relative; padding: 26px 24px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.steps h3 { margin: 10px 0 6px; }
.steps p { color: var(--text-2); margin-bottom: 10px; }
.steps li > a { font-size: .95rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #1d1206; font-variant-numeric: lining-nums;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); transform: rotate(45deg); border-radius: 6px;
}
.step-num::first-line { line-height: 1; }
.steps .step-num { position: relative; }
.steps .step-num { transform: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; width: 44px; height: 44px; }
.steps-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.steps-list li p { margin: 8px 0 0; }
.steps-list .step-num { flex-shrink: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); min-height: 260px; display: flex; align-items: flex-end; isolation: isolate;
}
.feature picture, .feature img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature picture { z-index: -1; }
.feature img { object-fit: cover; transition: transform .6s; }
.feature:hover img { transform: scale(1.05); }
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(13, 10, 12, .96) 0%, rgba(13, 10, 12, .7) 40%, rgba(13, 10, 12, .05) 80%);
}
.feature-body { padding: 22px 24px; }
.feature-body h3 { color: var(--gold-hi); margin-bottom: 6px; font-size: 1.5rem; }
.feature-body p { margin: 0; color: var(--text-2); font-size: .96rem; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } .feature { min-height: 230px; } }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 64px;
  border-block: 1px solid var(--line); text-align: center;
}
.cta-bg, .cta-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-bg { z-index: -1; }
.cta-bg img { object-fit: cover; object-position: 50% 40%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 10, 12, .92), rgba(13, 10, 12, .6), rgba(13, 10, 12, .92)); }
.cta-content { padding-block: 72px; display: flex; flex-direction: column; align-items: center; }
.cta-content h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); color: var(--gold-hi); }
.cta-content p { color: var(--text-2); margin-bottom: 22px; }

/* ---------------------------------------------------------------- панели, таблицы, формы */

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; min-width: 0;
}
.panel > h2 { font-size: 1.45rem; margin-bottom: 14px; }
.panel > h2:not(:first-child) { margin-top: 26px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline { display: inline; margin: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
.table th {
  text-align: left; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.table tbody tr:last-child td { border-bottom: 0; }
.row-actions { white-space: nowrap; }
.row-actions > * + * { margin-left: 12px; }
.row-actions form button + button { margin-left: 12px; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(255, 255, 255, .03);
}
.tag-credited, .tag-done, .tag-active { color: var(--ok); border-color: rgba(111, 196, 138, .4); background: rgba(111, 196, 138, .08); }
.tag-paid, .tag-taken, .tag-new, .tag-pending { color: var(--wait); border-color: rgba(227, 176, 75, .4); background: rgba(227, 176, 75, .08); }
.tag-failed, .tag-banned { color: var(--bad); border-color: rgba(226, 91, 91, .45); background: rgba(226, 91, 91, .08); }
.tag-canceled, .tag-created { color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: .9rem; color: var(--text-2); font-weight: 600; }
.field > span em { font-weight: 400; font-style: normal; color: var(--muted); }
.field small { color: var(--muted); font-size: .82rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-strong);
  font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 178, 106, .18); }
input::placeholder, textarea::placeholder { color: #6d625a; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; align-items: end; }
.field-row .check { margin-bottom: 26px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-row input, .filter-row select { width: auto; flex: 1 1 200px; padding-block: 8px; }
.cf-turnstile { margin-bottom: 16px; min-height: 65px; }

.auth-wrap {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 56px var(--gutter);
  min-height: calc(100vh - var(--header-h) - 160px);
}
.auth-bg, .auth-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-bg { z-index: -1; }
.auth-bg img { object-fit: cover; filter: saturate(1.1); }
.auth-wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(13, 10, 12, .55), rgba(13, 10, 12, .95)); }
.auth-form { width: 100%; max-width: 440px; padding: 30px 32px; background: rgba(23, 17, 21, .92); box-shadow: var(--shadow); }
.auth-form h1 { font-size: 2.2rem; margin-bottom: 4px; }
.auth-form > .muted { margin-bottom: 20px; }
.form-foot { text-align: center; margin: 16px 0 0; font-size: .92rem; color: var(--text-2); }
.narrow .auth-form { max-width: none; margin-block: 40px 56px; }
@media (max-width: 480px) { .auth-form { padding: 24px 20px; } .auth-wrap { padding-block: 32px; } }

.center-block { text-align: center; padding-block: 72px; }
.center-block p { color: var(--text-2); }

/* ---------------------------------------------------------------- скачивание */

.download-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.download-main p { color: var(--text-2); }
.download-main .btn-lg { margin-bottom: 8px; }
.mirror-list { display: flex; flex-wrap: wrap; gap: 10px; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- кабинет и пополнение */

.cabinet { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; padding-bottom: 56px; }
.cabinet-main, .cabinet-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 900px) { .cabinet { grid-template-columns: 1fr; } .cabinet-side { order: -1; } }

.balance-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 116, 42, .18), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line-strong);
}
.balance-card::before {
  content: ""; position: absolute; right: -28px; top: -28px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 243, 196, .16), rgba(217, 178, 106, .07) 45%, transparent 70%);
  pointer-events: none;
}
.balance {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1.1; color: var(--gold-hi);
  margin: 6px 0 8px; font-variant-numeric: lining-nums tabular-nums;
}
.balance small { font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--text-2); }
.balance-card .btn { margin-top: 6px; }

.order-mini { list-style: none; margin: 0 0 12px; padding: 0; }
.order-mini li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.order-mini li:last-child { border-bottom: 0; }

.topup { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; padding-bottom: 56px; }
@media (max-width: 900px) { .topup { grid-template-columns: 1fr; } }
.topup-form > h2 { margin-top: 4px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip {
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-strong);
  font: 600 .95rem var(--font-body); font-variant-numeric: tabular-nums; transition: all .15s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.chip.active { background: rgba(217, 178, 106, .16); border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(217, 178, 106, .12); }
.amount-field { max-width: 280px; }
.provider-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 20px; }
.provider {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg-2); transition: border-color .15s, background .15s;
}
.provider:hover { border-color: var(--gold); }
.provider:has(input:checked) { border-color: var(--gold); background: rgba(217, 178, 106, .1); }
.provider input { margin: 0; }
.topup-sum {
  padding: 16px 18px; margin-bottom: 16px; border-radius: var(--radius-sm);
  background: rgba(217, 178, 106, .07); border: 1px solid var(--line-strong); font-size: 1.05rem;
}
.topup-sum strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.bonus { margin-left: 10px; color: var(--ok); font-weight: 600; font-size: .95rem; }
.bonus:empty { display: none; }
.bonus-list { list-style: none; padding: 0; margin: 0 0 8px; }
.bonus-list li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.bonus-list li:last-child { border-bottom: 0; }
.bonus-list strong { color: var(--ok); }
.topup aside .balance { font-size: 2rem; }

/* ---------------------------------------------------------------- админ-панель */

.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; padding-block: 20px 4px; }
.admin-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: .92rem; }
.admin-nav a:hover { border-color: var(--gold); color: var(--gold-hi); }
.admin-nav a.active { background: rgba(217, 178, 106, .14); border-color: var(--gold); color: var(--gold-hi); }
.page-admin-dashboard h1, .page-admin-news h1, .page-admin-news_edit h1, .page-admin-orders h1, .page-admin-users h1 { margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-grid .stat { gap: 6px; }
.admin-form { max-width: 860px; }

/* ---------------------------------------------------------------- подвал */

.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: .92rem; }
.cta-band + .site-footer, main:has(> .cta-band:last-child) + .site-footer { margin-top: 0; }
.footer-row { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-block: 36px 20px; }
.footer-brand { max-width: 420px; }
.footer-brand .logo-name { font-size: 1.5rem; margin-bottom: 6px; }
.footer-brand p { color: var(--muted); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.footer-nav a { color: var(--text-2); }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-copy { padding-block: 16px 28px; color: var(--muted); font-size: .82rem; border-top: 1px solid rgba(217, 178, 106, .08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Встроенная капча регистрации */
.captcha-field{margin:14px 0}
.captcha-field > label{display:block;margin-bottom:6px;color:#a79fbd;font-size:14px}
.captcha-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.captcha-row svg{flex:0 0 auto;border-radius:8px}
.captcha-row input{flex:1;min-width:120px}
