/* MU Storm — светлая «premium» тема по референсу EternalMU */
:root {
  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --text: #1c2233;
  --muted: #6b7280;
  --line: #e3e7f0;
  --gold: #c9a24b;
  --gold-dark: #a9852f;
  --gold-soft: #f3ead2;
  --blue: #2f5fd0;
  --blue-dark: #244aa8;
  --indigo: #4f5bd5;
  --ok: #2eb872;
  --bad: #d0483e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 34, 51, .08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

/* --- Верхняя сервисная полоса --- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar-left, .topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar b { color: var(--text); }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--blue); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b7bdcc; margin-right: 6px; }
.dot-on { background: var(--ok); box-shadow: 0 0 0 3px rgba(46, 184, 114, .18); }
.dot-off { background: var(--bad); }

/* --- Шапка --- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  color: var(--text); letter-spacing: .04em;
}
.logo span { color: var(--gold); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); }

/* --- Кнопки --- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-gold { background: linear-gradient(180deg, #d9b45e, var(--gold)); color: #fff; box-shadow: 0 4px 14px rgba(201, 162, 75, .35); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(47, 95, 208, .3); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: #3f49b8; }

/* --- Hero --- */
.hero {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(47, 95, 208, .10), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, rgba(201, 162, 75, .14), transparent 60%),
    linear-gradient(180deg, #fdfdff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 84px 0 64px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 600; }
.hero-sub { max-width: 640px; margin: 0 auto 26px; color: var(--muted); font-size: 17px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--text);
  box-shadow: 0 2px 8px rgba(28, 34, 51, .05);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 44px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; }
.stat span { color: var(--muted); font-size: 14px; }

/* --- Секции --- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; font-size: clamp(24px, 3vw, 34px); margin-bottom: 40px; position: relative; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 2px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --- Карточки серверов --- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.server-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px;
}
.server-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.server-card h3 { font-size: 22px; margin: 0; }
.pill {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted);
  white-space: nowrap;
}
.pill-on { color: var(--ok); border-color: rgba(46, 184, 114, .35); background: rgba(46, 184, 114, .07); }
.pill-off { color: var(--bad); border-color: rgba(208, 72, 62, .3); background: rgba(208, 72, 62, .06); }
.server-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 20px; }
.server-facts > div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 7px 0; }
.server-facts dt { color: var(--muted); font-size: 14px; }
.server-facts dd { margin: 0; font-weight: 600; font-size: 14px; }
.server-card-cta { display: flex; gap: 12px; }

/* --- Карточки-фичи --- */
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; box-shadow: 0 4px 16px rgba(28, 34, 51, .05);
}
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* --- Шаги --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 940px; margin: 0 auto; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-dark); font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* --- FAQ --- */
.faq {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 12px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* --- CTA-полоса --- */
.cta-strip { background: linear-gradient(120deg, #1e2a4a 0%, #2f3f6e 100%); color: #fff; padding: 48px 0; }
.cta-strip h2 { color: #fff; margin: 0 0 4px; }
.cta-strip p { color: rgba(255, 255, 255, .75); margin: 0; }
.cta-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* --- Футер --- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; }
.logo-footer { font-size: 19px; margin-bottom: 6px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer-cols a { display: block; color: var(--text); font-size: 14.5px; padding: 3px 0; }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 20px; font-size: 13px; color: var(--muted); }

/* --- Иконки (инлайн-маски) --- */
.ic {
  display: inline-block; width: 18px; height: 18px; background: var(--gold);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  vertical-align: -3px;
}
.ic-lg { width: 40px; height: 40px; }
.ic-shield { --icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5l8-3z"/></svg>'); }
.ic-scales { --icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 3h2v3l5 1 2 6a3.5 3.5 0 01-7 0l1.7-5.1L13 7.4V19h4v2H7v-2h4V7.4l-1.7.5L11 13a3.5 3.5 0 01-7 0l2-6 5-1V3z"/></svg>'); }
.ic-castle { --icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 21V8l2-1V4h2v2h2V4h2v2h2V4h2v2h2V4h2v3l2 1v13h-7v-4a2 2 0 00-4 0v4H3z"/></svg>'); }
.ic-flag { --icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 3h2v18H5V3zm4 1h10l-2.5 4L19 12H9V4z"/></svg>'); }

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 56px 0 44px; }
  .hero-stats { gap: 28px; }
  .cta-strip-inner { justify-content: center; text-align: center; }
}

/* --- Страница сервера --- */
.page-head {
  background: linear-gradient(180deg, #fdfdff, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 40px 0 28px;
}
.page-head-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); margin: 0; }
.page-head p { margin: 4px 0 0; }

.facts-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; display: flex; flex-direction: column; min-width: 110px;
}
.fact span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fact b { font-size: 17px; }

.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.block-title { font-size: 22px; margin: 0 0 16px; }
.block-title + .table-wrap { margin-bottom: 32px; }
h2.block-title:not(:first-child) { margin-top: 32px; }

.table-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(28,34,51,.05); overflow-x: auto;
}
.rtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rtable th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.rtable td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rtable tbody tr:last-child td { border-bottom: 0; }
.rtable tbody tr:hover { background: #f6f8fd; }
.rtable .rank { color: var(--muted); width: 40px; }
.rtable .rank-top { color: var(--gold-dark); font-weight: 700; }
.rtable .name { font-weight: 600; }
.class-tag {
  display: inline-block; min-width: 34px; text-align: center;
  background: var(--gold-soft); color: var(--gold-dark);
  border-radius: 6px; font-size: 12px; font-weight: 700; padding: 2px 6px;
}

/* --- Формы аутентификации и кабинет --- */
.auth-wrap { display: flex; justify-content: center; }
.auth-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 40px; width: 100%; max-width: 440px;
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card form { margin-top: 18px; }
.auth-card label, .inline-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.auth-card input, .inline-form input, .inline-form select {
  display: block; width: 100%; margin-top: 5px;
  padding: 10px 12px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; color: var(--text);
}
.auth-card input:focus, .inline-form input:focus, .inline-form select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,95,208,.12);
}
.btn-wide { width: 100%; margin-top: 6px; }
.auth-alt { margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.msg { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.msg-err { background: rgba(208,72,62,.08); border: 1px solid rgba(208,72,62,.25); color: #a23830; }
.msg-ok { background: rgba(46,184,114,.08); border: 1px solid rgba(46,184,114,.3); color: #1e7c4e; }
.tag-warn {
  background: #fdf1d7; color: #9a7016; border-radius: 6px;
  font-size: 12px; font-weight: 600; padding: 2px 8px;
}
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn-line:hover { border-color: var(--bad); color: var(--bad); }
.mono { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: .92em; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(28,34,51,.05); padding: 24px 28px; margin-bottom: 24px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.panel-head h2 { font-size: 20px; margin: 0; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto; gap: 14px; align-items: end; }
.inline-form label { margin-bottom: 0; }
@media (max-width: 720px) { .inline-form { grid-template-columns: 1fr; } }

.head-actions { display: flex; gap: 10px; align-items: center; }
.stack-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; max-width: 420px; }
.stack-form input { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.stack-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,95,208,.12); }
.small-note { font-size: 13px; margin: 10px 0 0; }
.msg-warn { background: #fdf6e3; border: 1px solid #ecd9a0; color: #8a6d1a; }

.lang-switch a { padding: 0 3px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.lang-switch a.lang-on { color: var(--gold-dark); }

.totp-setup { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.totp-setup img { border: 1px solid var(--line); border-radius: 10px; }
.totp-secret { word-break: break-all; max-width: 320px; color: var(--muted); font-size: 13px; }

/* --- Новости на главной --- */
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.news-item h3 { font-size: 18px; margin: 2px 0 6px; }
.news-item p { color: var(--muted); font-size: 14.5px; margin: 0; white-space: pre-line; }
.news-date { font-size: 12.5px; color: var(--gold-dark); font-weight: 600; }

.char-actions { display: flex; gap: 6px; }
.btn-mini {
  background: var(--gold-soft); color: var(--gold-dark); border: 1px solid #e5d5a8;
  border-radius: 6px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.btn-mini:hover:not(:disabled) { background: #ecdcae; }
.btn-mini:disabled { opacity: .45; cursor: not-allowed; }
.pk-tag { background: rgba(208,72,62,.1); color: var(--bad); border-radius: 5px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.svc-details { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.svc-details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); list-style: none; }
.svc-details summary::-webkit-details-marker { display: none; }
.svc-details form { margin-top: 12px; }

/* --- Апгрейд по PDF-макету --- */
.badge-round { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; }
.badge-circle {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid #e8d9b0;
  box-shadow: 0 4px 14px rgba(201,162,75,.15);
}
.badge-label { font-size: 12.5px; font-weight: 600; color: var(--text); text-align: center; }
.hero-badges { gap: 22px; margin-bottom: 34px; }

.hero-art .hero-inner { position: relative; z-index: 1; }
.hero-art { position: relative; overflow: hidden; }
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 26%;
  background-size: contain; background-repeat: no-repeat; background-position: bottom;
  pointer-events: none; opacity: .95;
}
.hero-art::before { left: 0; background-image: url('/assets/img/hero-left.png'); background-position: left bottom; }
.hero-art::after { right: 0; background-image: url('/assets/img/hero-right.png'); background-position: right bottom; }
@media (max-width: 1000px) { .hero-art::before, .hero-art::after { display: none; } }

.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .extras-grid { grid-template-columns: 1fr; } }
.extras-panel { margin-bottom: 0; }
.extras-title { font-size: 21px; text-align: center; margin: 4px 0 18px; }

.rank-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rank-quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 12px;
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.rank-quick-card:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(201,162,75,.15); }
.rank-quick-card b { font-family: var(--serif); font-size: 16px; }
.rank-quick-card span { color: var(--blue); font-size: 13.5px; font-weight: 600; }

.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .fair-grid { grid-template-columns: 1fr; } }
.fair-list { list-style: none; margin: 0; padding: 0; }
.fair-list li { position: relative; padding: 6px 0 6px 26px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.fair-list li:last-child { border-bottom: 0; }
.fair-list li::before { position: absolute; left: 0; font-weight: 700; }
.fair-yes li::before { content: "✓"; color: var(--ok); }
.fair-no li::before { content: "✕"; color: var(--bad); }

.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .community-grid { grid-template-columns: 1fr; } }
.community-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.community-card b { display: block; font-family: var(--serif); font-size: 16px; margin: 10px 0 6px; }
.community-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.community-card a { font-size: 13.5px; font-weight: 600; }

.news-item-flat { border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 12px 0; margin: 0; background: none; }
.news-item-flat:last-child { border-bottom: 0; }
.news-item-flat h3 { font-size: 16px; }
.news-item-flat p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.about-text p { color: #3d4457; font-size: 15.5px; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 1000px; margin: 0 auto; align-items: start; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* Табы рейтингов */
.rank-tabs { margin-bottom: 24px; }
.tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
}
.tab:hover { border-color: var(--gold); }
.tab-on { background: linear-gradient(180deg, #d9b45e, var(--gold)); border-color: transparent; color: #fff; }

/* Бургер и мобильное меню */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-nav { display: none; }
@media (max-width: 720px) {
  .burger { display: block; }
  .header-dl { display: none; }
  body.nav-open .mobile-nav {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 20px 18px; border-top: 1px solid var(--line); background: var(--surface);
  }
  .mobile-nav a { padding: 10px 0; font-weight: 600; color: var(--text); border-bottom: 1px dashed var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; margin-top: 8px; text-align: center; color: #fff; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Футер: бренд + соцссылки */
.footer-brand { max-width: 300px; }
.footer-socials { display: flex; gap: 12px; margin-top: 10px; }
.footer-socials a {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.footer-socials a:hover { color: var(--blue); border-color: var(--blue); }

/* Доп. иконки */
.ic-trophy { --icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 2h12v2h4v3a5 5 0 01-5 5h-.4A6 6 0 0113 15.9V18h4v3H7v-3h4v-2.1A6 6 0 017.4 12H7a5 5 0 01-5-5V4h4V2zm14 4h-2v3.9A3 3 0 0020 7V6zM4 6v1a3 3 0 002 2.9V6H4z"/></svg>'); }
.ic-chat { --icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 3h16a2 2 0 012 2v11a2 2 0 01-2 2H8l-5 4V5a2 2 0 011-2z"/></svg>'); }
.ic-headset { --icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a9 9 0 00-9 9v7a3 3 0 003 3h2v-8H5v-2a7 7 0 0114 0v2h-3v8h2a3 3 0 003-3v-7a9 9 0 00-9-9z"/></svg>'); }

/* --- События --- */
.topbar-event { display: none; }
@media (min-width: 900px) { .topbar-event { display: inline; } }
.extras-grid-3 { grid-template-columns: 1fr 1fr 1.3fr; }
@media (max-width: 1080px) { .extras-grid-3 { grid-template-columns: 1fr; } }
.events-list { display: flex; flex-direction: column; gap: 10px; }
.event-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.event-card b { font-family: var(--serif); font-size: 15px; }
.event-card span { font-size: 13px; text-align: right; }

/* --- Тикеты и голосование --- */
.ticket-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.ticket-msg-staff { border-left: 3px solid var(--gold); background: #fffdf7; }
.ticket-msg-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 13.5px; }
.ticket-msg p { margin: 0; white-space: pre-line; font-size: 14.5px; }
.vote-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* --- Веб-шоп --- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.shop-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.shop-card b { font-family: var(--serif); font-size: 16px; }
.shop-price { color: var(--gold-dark); font-weight: 700; font-size: 14px; }

/* Игровой склад: сетка клеток */
.wh-tab-title { font-size: 15px; margin: 18px 0 8px; color: var(--ink-2); }
.wh-grid {
  display: grid;
  gap: 4px;
  max-width: 720px;
  background: #f3f1ec;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.wh-cell {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
}
.wh-cell-item {
  background: linear-gradient(180deg, #fdf7e8, #f6ecd2);
  border-color: var(--gold);
  cursor: help;
}
.wh-name {
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.wh-lvl { font-size: 9px; font-weight: 700; color: var(--gold-d, #a8863c); }
.shop-suffix { font-size: 12px; color: var(--gold-d, #a8863c); font-weight: 600; }

/* Реферальная страница */
.ref-link-box { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ref-link-box label { flex: 1; min-width: 260px; display: block; }
.ref-link-box input { width: 100%; font-family: ui-monospace, monospace; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-box {
  flex: 1; min-width: 140px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; text-align: center;
}
.stat-box b { display: block; font-size: 26px; font-family: 'Playfair Display', serif; color: var(--gold-d, #a8863c); }
.stat-box span { font-size: 13px; color: var(--ink-2); }

/* Колесо фортуны */
.wheel-layout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .wheel-layout { grid-template-columns: 1fr; } }
.wheel-side { text-align: center; }
.wheel-disc {
  width: 220px; height: 220px; margin: 0 auto; border-radius: 50%;
  background: conic-gradient(var(--gold) 0 25%, #fff 0 50%, var(--blue) 0 75%, #fff 0 100%);
  border: 6px solid var(--gold); position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.wheel-spun { animation: wheel-spin 1.2s cubic-bezier(.2,.8,.2,1) 1; }
@keyframes wheel-spin { from { transform: rotate(0); } to { transform: rotate(1080deg); } }
.wheel-hub {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--ink);
}
.wheel-result { font-size: 17px; }
.row-hit { background: #fdf7e8; }
