/* Поднебесье: Valory — site styles */
:root {
  --bg: #070c14;
  --bg-deep: #05080e;
  --navy: #0c1624;
  --card: rgba(10, 18, 32, 0.78);
  --gold: #e4c57a;
  --gold-dim: #b8954a;
  --gold-bright: #f3e0a8;
  --jade: #3d8f74;
  --cream: #efe4cc;
  --text: #e4dccb;
  --muted: #9c9382;
  --line: rgba(228, 197, 122, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --serif: "Playfair Display", "Times New Roman", serif;
  --display: "Cinzel", "Playfair Display", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 12, 20, 0.86);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  transform-origin: center center;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
  transition: filter .35s ease;
}
.brand:hover {
  color: inherit;
}
.brand:hover img {
  filter: drop-shadow(0 0 10px rgba(86, 220, 170, 0.75)) drop-shadow(0 0 2px rgba(228, 197, 122, 0.55));
  animation: dragon-hover 1.15s ease-in-out infinite;
}
@keyframes dragon-hover {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1.04); }
  35% { transform: translateY(-4px) rotate(-8deg) scale(1.12); }
  70% { transform: translateY(2px) rotate(6deg) scale(1.08); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kicker {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 20px;
  color: var(--gold-bright);
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--cream);
  font-size: 14px;
  letter-spacing: .04em;
}
.nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: end stretch;
  background: url("../images/hero.jpg") center 30% / cover no-repeat, var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7,12,20,.35) 0%, rgba(7,12,20,.15) 35%, rgba(7,12,20,.72) 72%, var(--bg) 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 88px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .brand:hover img {
    animation: none;
    transform: scale(1.08);
  }
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: rgba(7,12,20,.35);
}
.hero h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  color: #fff8e8;
}
.hero h1 span {
  display: block;
  font-family: var(--display);
  letter-spacing: .22em;
  color: var(--gold);
}
.hero-lead {
  max-width: 560px;
  margin: 18px 0 32px;
  color: var(--cream);
  font-size: 18px;
}
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  font-weight: 700;
  letter-spacing: .06em;
  transition: .2s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #23180a;
}
.btn-gold:hover { filter: brightness(1.06); color: #23180a; }
.btn-ghost {
  background: rgba(7,12,20,.45);
  color: var(--gold);
}
.btn-ghost:hover { background: rgba(228,197,122,.12); color: var(--gold-bright); }
.btn-disabled {
  border-color: rgba(228,197,122,.25);
  color: var(--muted);
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

/* Sections */
.section { padding: 88px 0; scroll-margin-top: 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: #fff6df;
}
.section-head p, .muted { color: var(--muted); }

.about-grid, .features, .classes, .news-grid, .steps {
  display: grid;
  gap: 20px;
}
.about-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
.about-visual {
  min-height: 340px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7,12,20,.15), rgba(7,12,20,.55)),
    url("../images/section-info.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.features { grid-template-columns: repeat(4, 1fr); }
.feature, .class-card, .news-card, .step {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
}
.feature h3, .class-card h3, .news-card h3, .step h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
}
.feature p, .class-card p, .news-card p, .step p { margin: 0; color: var(--muted); }
.feature-icon {
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.classes { grid-template-columns: repeat(3, 1fr); }
.class-card { position: relative; overflow: hidden; min-height: 280px; }
.class-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.class-role {
  color: var(--jade);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.news-grid { grid-template-columns: 1.4fr .8fr; }
.news-card.featured { padding: 0; overflow: hidden; }
.news-card.featured img { width: 100%; height: 280px; object-fit: cover; }
.news-body { padding: 24px; }
.news-date { color: var(--gold); font-size: 13px; letter-spacing: .08em; }
.news-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.steps { grid-template-columns: repeat(3, 1fr); }
.step-num {
  font-family: var(--display);
  color: var(--gold);
  letter-spacing: .12em;
  font-size: 14px;
}

.start {
  background:
    linear-gradient(180deg, rgba(7,12,20,.55), rgba(7,12,20,.82)),
    url("../images/section-start.jpg") center / cover no-repeat;
}

/* Footer */
.footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 18px;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    background: rgba(7,12,20,.96);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 16px;
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 900px) {
  .about-grid, .features, .classes, .news-grid, .steps, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { place-items: end stretch; }
  .hero-content { padding-bottom: 64px; }
}

/* =========================================================
   Аккаунт, скачивание клиента, личный кабинет
   ========================================================= */
[hidden] { display: none !important; }
button.btn { font-size: 15px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
button.btn:disabled { opacity: .6; cursor: progress; }
.btn-disabled { cursor: default; }
.btn:focus-visible, .nav a:focus-visible, .nav button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* Шапка: вход / регистрация / игрок */
.nav a.is-active { color: var(--gold); }
.nav-auth {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.nav .nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(228,197,122,.16), rgba(228,197,122,.04));
  letter-spacing: .06em;
}
.nav .nav-cta:hover, .nav .nav-cta.is-active { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #23180a; }
.nav .nav-user { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); font-weight: 600; }
.nav-user-dot { width: 7px; height: 7px; transform: rotate(45deg); background: var(--jade); box-shadow: 0 0 10px rgba(61,143,116,.8); }
.nav-logout {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .04em;
}
.nav-logout:hover { color: var(--gold); }

/* Золотая линия с ромбом */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  max-width: 320px;
}
.gold-rule::before, .gold-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.gold-rule span {
  width: 9px; height: 9px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px rgba(228,197,122,.45);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .gold-rule { margin-left: auto; margin-right: auto; }

/* Угловые орнаменты карточек */
.corner { position: absolute; width: 22px; height: 22px; pointer-events: none; border-color: var(--gold); border-style: solid; border-width: 0; }
.corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* Шаги */
.step { display: flex; flex-direction: column; }
.step p { flex: 1; }
.step-link { margin-top: 16px; font-size: 14px; letter-spacing: .04em; }

/* Раздел скачивания */
.download {
  position: relative;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(61,143,116,.22), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, rgba(201,162,39,.10), transparent 70%),
    linear-gradient(180deg, #0b1a22, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.dl-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "seal body" "btn btn";
  grid-template-rows: 1fr auto;
  gap: 22px 22px;
  padding: 30px;
  background:
    linear-gradient(160deg, rgba(228,197,122,.07), transparent 45%),
    rgba(9, 18, 28, .82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(7,12,20,.6), inset 0 0 0 6px rgba(228,197,122,.04);
  transition: border-color .25s ease, transform .25s ease;
}
.dl-card::before, .dl-card::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 0 solid var(--gold);
}
.dl-card::before { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.dl-card::after { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.dl-card.is-ready:hover { border-color: rgba(228,197,122,.6); transform: translateY(-2px); }
.dl-seal {
  grid-area: seal;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 5px rgba(7,12,20,.9), inset 0 0 0 6px rgba(228,197,122,.45), 0 0 26px rgba(61,143,116,.35);
  background: radial-gradient(circle at 50% 35%, rgba(61,143,116,.55), rgba(11,26,34,.95) 70%);
}
.dl-seal span { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.dl-body { grid-area: body; }
.dl-meta { color: var(--jade); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.dl-card h3 { margin: 4px 0 8px; font-family: var(--serif); font-size: 26px; color: var(--cream); }
.dl-card p { margin: 0; color: var(--muted); font-size: 15px; }
.dl-btn { grid-area: btn; width: 100%; }
.dl-btn.btn-disabled { font-weight: 600; letter-spacing: .08em; border-style: dashed; }
.dl-note { margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 15px; }

/* Страницы аккаунта */
.page-solid .header { background: rgba(7, 12, 20, 0.86); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.page-auth {
  background:
    linear-gradient(180deg, rgba(7,12,20,.72) 0%, rgba(7,12,20,.88) 55%, var(--bg) 100%),
    url("../images/hero.jpg") center 30% / cover no-repeat fixed,
    var(--bg);
}
.auth { padding: 150px 0 96px; min-height: 100vh; display: flex; align-items: center; }
.auth-grid {
  display: grid;
  grid-template-columns: .95fr 1fr;
  gap: 64px;
  align-items: center;
}
.auth-emblem {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin-bottom: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 0 40px rgba(61,143,116,.35);
}
.auth-aside h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  color: #fff6df;
}
.auth-aside > p { margin: 0 0 26px; color: var(--cream); font-size: 17px; max-width: 460px; opacity: .9; }
.auth-points { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); max-width: 460px; }
.auth-points li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); }
.auth-points li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: rgba(61,143,116,.6);
}

.auth-card, .profile-card {
  position: relative;
  padding: 40px 40px 36px;
  background:
    linear-gradient(170deg, rgba(228,197,122,.08), transparent 35%),
    linear-gradient(180deg, rgba(13,27,37,.95), rgba(8,15,24,.96));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 6px rgba(7,12,20,.55), inset 0 0 0 7px rgba(228,197,122,.10);
}
.auth-card h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 34px;
  color: #fff6df;
}
.card-sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.card-lead { margin: 0 0 14px; color: var(--cream); }
.card-lead strong { color: var(--gold-bright); font-weight: 600; word-break: break-all; }
.card-slot { margin: 0 0 18px; }
.card-seal {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 26px;
  box-shadow: inset 0 0 0 4px rgba(7,12,20,.9), inset 0 0 0 5px rgba(228,197,122,.4);
  background: radial-gradient(circle at 50% 35%, rgba(228,197,122,.18), rgba(11,26,34,.95) 70%);
}
.card-seal.is-jade { background: radial-gradient(circle at 50% 35%, rgba(61,143,116,.7), rgba(11,26,34,.95) 70%); }
.card-seal.is-warn { color: #f0b48a; }
.card-seal.is-pulse { animation: seal-pulse 1.6s ease-in-out infinite; }
@keyframes seal-pulse { 50% { box-shadow: inset 0 0 0 4px rgba(7,12,20,.9), inset 0 0 0 5px rgba(228,197,122,.4), 0 0 28px rgba(228,197,122,.35); } }

/* Формы */
.form { display: grid; gap: 18px; }
.form-compact { gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(228,197,122,.22);
  border-bottom-color: rgba(228,197,122,.5);
  border-radius: 3px;
  background: rgba(4, 9, 15, .65);
  color: var(--cream);
  font: 500 16px/1.4 var(--sans);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder { color: #5f6670; }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(7, 14, 22, .9);
  box-shadow: 0 0 0 3px rgba(228,197,122,.14), 0 0 22px rgba(61,143,116,.18);
}
.field-hint { color: #7d7768; font-size: 13px; }
.field-error { color: #ec9a86; font-size: 13px; min-height: 0; }
.field-error:empty { display: none; }
.field.has-error input { border-color: rgba(236,154,134,.7); }
.field.has-error .field-hint { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-block { margin-top: 4px; min-height: 52px; letter-spacing: .1em; }
.form-foot { margin: 6px 0 0; text-align: center; font-size: 14px; }
.auth-card > .form-foot { margin-top: 18px; }
.confirm-resend { margin-top: 8px; }
.auth-card .gold-rule { max-width: none; }

/* Уведомления */
.notice {
  position: relative;
  padding: 14px 16px 14px 18px;
  border: 1px solid;
  border-left-width: 3px;
  font-size: 14.5px;
  line-height: 1.55;
}
.notice p { margin: 0; }
.notice .btn { margin-top: 12px; }
.notice-info { border-color: rgba(61,143,116,.5); background: rgba(61,143,116,.10); color: #cfe3da; }
.notice-success { border-color: rgba(61,143,116,.7); background: rgba(61,143,116,.16); color: #d7efe5; }
.notice-warn { border-color: rgba(228,197,122,.55); background: rgba(228,197,122,.08); color: var(--cream); }
.notice-error { border-color: rgba(236,154,134,.55); background: rgba(236,154,134,.08); color: #f3d3c9; }

/* Личный кабинет */
.cabinet {
  padding: 150px 0 96px;
  min-height: 100vh;
  background:
    radial-gradient(50% 50% at 15% 10%, rgba(61,143,116,.18), transparent 70%),
    linear-gradient(180deg, rgba(7,12,20,.6), var(--bg) 60%),
    url("../images/section-start.jpg") center top / cover no-repeat;
}
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  color: #fff6df;
}
.page-title span { color: var(--gold); }
.page-title span:not(:empty)::before { content: ", "; color: #fff6df; }
.cabinet-grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.cabinet-grid.is-offline { grid-template-columns: 1fr; }
.cabinet-grid.is-offline .profile-card { display: none; }
.profile-emblem { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; box-shadow: 0 0 0 1px var(--line), 0 0 30px rgba(61,143,116,.35); }
.profile-list { margin: 0 0 26px; }
.profile-list div { padding: 12px 0; border-bottom: 1px solid rgba(228,197,122,.14); }
.profile-list dt { color: var(--gold); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.profile-list dd { margin: 4px 0 0; color: var(--cream); font-weight: 600; word-break: break-all; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; transform: rotate(45deg); background: var(--jade); box-shadow: 0 0 10px rgba(61,143,116,.9); }
.cabinet-download h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 32px; color: #fff6df; }
.cabinet-download > .muted { margin: 0 0 24px; }
.section-head.wide { max-width: none; }
.cabinet-download .dl-grid { max-width: none; margin: 0; }
.cabinet-download .dl-card { grid-template-columns: 1fr; grid-template-areas: "seal" "body" "btn"; grid-template-rows: auto 1fr auto; padding: 28px 26px; }

/* Кабинет: вкладки, настройки, пожертвования */
.cabinet-main { min-width: 0; }
.cabinet-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.cabinet-tab {
  position: relative;
  padding: 12px 20px 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 13px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.cabinet-tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.cabinet-tab:hover { color: var(--cream); }
.cabinet-tab.is-active, .cabinet-tab[aria-selected="true"] { color: var(--gold-bright); }
.cabinet-tab.is-active::after, .cabinet-tab[aria-selected="true"]::after { opacity: 1; }
.cabinet-tab:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.cabinet-panel h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 32px; color: #fff6df; }
.cabinet-panel > .muted { margin: 0 0 24px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-card {
  position: relative;
  padding: 28px 26px 26px;
  background: linear-gradient(180deg, rgba(13,27,37,.9), rgba(8,15,24,.92));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px rgba(7,12,20,.5), inset 0 0 0 6px rgba(228,197,122,.08);
}
.settings-card-wide { grid-column: 1 / -1; }
.settings-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 23px; color: var(--cream); }
.settings-sub { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.settings-card .card-slot:empty { display: none; }

.donate-rate {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin: 0 0 24px; padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(228,197,122,.10), rgba(61,143,116,.06) 70%, transparent);
}
.donate-rate-main { display: grid; gap: 2px; }
.donate-rate-label { color: var(--jade); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.donate-rate-main strong { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); letter-spacing: .04em; color: var(--gold-bright); line-height: 1.2; }
.donate-rate-main strong em { font-style: normal; color: #7fd3b2; }
.donate-rate-main .muted { font-size: 14.5px; }
.donate-example { color: var(--cream); font-size: 15px; }
.donate-example b { color: var(--gold-bright); }

.donate-calc {
  position: relative;
  max-width: 560px;
  padding: 28px 26px;
  margin: 0 0 22px;
  background: linear-gradient(180deg, rgba(13,27,37,.92), rgba(8,15,24,.95));
  border: 1px solid var(--line);
}
.donate-calc h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 23px; color: var(--cream); }
.donate-calc input[type="number"] { font-size: 20px; font-weight: 600; }
.donate-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.donate-result { margin: 0; border-top: 1px solid rgba(228,197,122,.18); }
.donate-result div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(228,197,122,.12); }
.donate-result dt { color: var(--muted); font-size: 14px; }
.donate-result dd { margin: 0; color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.donate-result .donate-total { border-bottom: 0; padding-top: 14px; }
.donate-result .donate-total dt { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.donate-result .donate-total dd { font-family: var(--display); font-size: 28px; color: var(--gold-bright); }
.donate-note { max-width: 560px; }
.cabinet-grid.is-offline .cabinet-tab[data-tab="security"] { display: none; }

@media (max-width: 1080px) {
  .nav.open .nav-auth {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    width: 100%;
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .auth-grid, .cabinet-grid, .dl-grid, .field-row, .settings-grid { grid-template-columns: 1fr; }
  .auth { padding-top: 120px; }
  .auth-grid { gap: 36px; }
  .auth-aside .auth-points { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .auth-card, .profile-card { padding: 30px 22px 26px; }
  .settings-card, .donate-calc { padding: 24px 18px 22px; }
  .cabinet-tab { padding: 10px 12px 12px; letter-spacing: .1em; }
  .donate-rate { padding: 18px 18px; }
  .dl-card { grid-template-columns: 1fr; grid-template-areas: "seal" "body" "btn"; grid-template-rows: auto 1fr auto; padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Кликабельная картинка «Информация о сервере» */
a.about-visual-link { display: block; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
a.about-visual-link:hover, a.about-visual-link:focus-visible { transform: translateY(-4px); filter: brightness(1.08); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(228,197,122,.55); outline: none; }
