/* Atlanta RolePlay — сайт.
 * Фирменные цвета — те же роли и значения, что в интерфейсе игры (brand.css клиента).
 * Палитра по умолчанию синяя; [data-brand] переключает гамму для блока или всей страницы, как на серверах
 * Atlanta Red / Green / Purple / Orange. Красный у ошибок и предупреждений — смысл, а не бренд. */

:root,
[data-brand="blue"] {
  --brand: #0a3ab8;
  --brand-strong: #0f46d6;
  --brand-vivid: #1a4fd8;
  --brand-deep: #062a8a;
  --brand-dark: #05236f;
  --brand-light: #8fb0ff;
  --brand-glow: #4f83ff;
  --brand-hot: #2a5cff;
  --brand-rgb: 10, 58, 184;
  --glow-rgb: 79, 131, 255;
}
[data-brand="red"] {
  --brand: #d33437; --brand-strong: #e71d36; --brand-vivid: #f82847; --brand-deep: #da2640; --brand-dark: #c63030;
  --brand-light: #ff8a96; --brand-glow: #ff6969; --brand-hot: #ff4040; --brand-rgb: 211, 52, 55; --glow-rgb: 255, 105, 105;
}
[data-brand="green"] {
  --brand: #12805a; --brand-strong: #159a6b; --brand-vivid: #17b07a; --brand-deep: #0d6044; --brand-dark: #094a34;
  --brand-light: #8fe0c2; --brand-glow: #3fd39c; --brand-hot: #1fc78a; --brand-rgb: 18, 128, 90; --glow-rgb: 63, 211, 156;
}
[data-brand="purple"] {
  --brand: #6a2bb8; --brand-strong: #7d33d6; --brand-vivid: #8b3ce8; --brand-deep: #4e1f8a; --brand-dark: #3c176b;
  --brand-light: #c9a6ff; --brand-glow: #a76bff; --brand-hot: #8a4cff; --brand-rgb: 106, 43, 184; --glow-rgb: 167, 107, 255;
}
[data-brand="orange"] {
  --brand: #c25a10; --brand-strong: #d96a14; --brand-vivid: #ef7a18; --brand-deep: #92430c; --brand-dark: #703309;
  --brand-light: #ffc48f; --brand-glow: #ff9a4f; --brand-hot: #ff8a2a; --brand-rgb: 194, 90, 16; --glow-rgb: 255, 154, 79;
}

:root {
  --bg: #040817;
  --bg-2: #060c20;
  --bg-3: #09112a;
  --surface: rgba(143, 176, 255, 0.045);
  --surface-2: rgba(143, 176, 255, 0.08);
  --line: rgba(143, 176, 255, 0.13);
  --line-strong: rgba(143, 176, 255, 0.26);
  --text: #eef3ff;
  --muted: #93a1c4;
  --dim: #5f6d92;
  --ok: #3ddc97;
  --warn: #ffb547;
  --danger: #ff5d6c;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(1, 4, 14, 0.55);
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand-light); text-decoration: none; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: #fff; line-height: 1.12; }
h1, h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 46px); }
h3 { font-size: 20px; font-weight: 800; }
button, input, select { font: inherit; color: inherit; }
code { font-family: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #fff; }
::selection { background: rgba(var(--glow-rgb), 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand-strong); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent {
  background: linear-gradient(100deg, var(--brand-light) 0%, var(--brand-glow) 55%, var(--brand-hot) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 800 12px/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-light);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--brand-glow); box-shadow: 0 0 12px rgba(var(--glow-rgb), 0.9);
}

/* ── Кнопки ── */
.btn {
  --btn-pad: 14px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--btn-pad); border-radius: 14px; border: 1px solid transparent;
  font: 800 15px/1.1 var(--font); color: #fff; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-hot), var(--brand-strong) 60%, var(--brand-deep));
  box-shadow: 0 12px 32px rgba(var(--brand-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { box-shadow: 0 16px 42px rgba(var(--glow-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(var(--glow-rgb), 0.7); background: var(--surface-2); }
.btn-sm { --btn-pad: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { --btn-pad: 16px 26px; font-size: 16px; border-radius: 16px; min-height: 60px; }
.btn-lg span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.btn-lg small { font-size: 11px; font-weight: 600; opacity: 0.72; letter-spacing: 0.02em; }
.btn-block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; color: var(--brand-light); font-weight: 800; cursor: pointer; }
.link-btn:hover { color: #fff; }
.center-row { display: flex; justify-content: center; margin-top: 36px; }

/* ── Знак и шапка ── */
.mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 14px rgba(1, 53, 182, 0.55)); }
.mark-lg { width: 64px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-text { font: 800 19px/0.9 var(--font-display); letter-spacing: 0.04em; }
.brand-text small { display: block; margin-top: 5px; font: 800 9px/1 var(--font); letter-spacing: 0.42em; color: var(--brand-light); }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(4, 8, 23, 0.55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, background-color 0.2s;
}
.site-header[data-scrolled] { background: rgba(4, 8, 23, 0.86); border-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.main-nav a:hover { color: #fff; background: var(--surface); }
.main-nav a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.nav-cabinet-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cabinet[aria-current="page"] { border-color: rgba(var(--glow-rgb), 0.7); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; place-items: center; }
.burger .icon { width: 22px; height: 22px; }

/* ── Секции ── */
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head > div { max-width: 820px; }
.section-head > p { max-width: 380px; margin: 0; color: var(--muted); }
.subhead { font: 800 22px/1.2 var(--font); margin: 44px 0 18px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ── Главный экран ── */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 110px); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(var(--glow-rgb), 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(var(--brand-rgb), 0.35), transparent 65%),
    linear-gradient(180deg, #050b20 0%, var(--bg) 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/features/map-dark.webp") no-repeat 115% 40% / min(1100px, 90vw);
  opacity: 0.35; mix-blend-mode: screen;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 500px at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 500px at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.45;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.server-pill { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.server-pill i, .server-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.is-online i { background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16), 0 0 14px var(--ok); }
.is-maintenance i { background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.16); }
.is-offline i { background: var(--danger); }

.hero-art { position: relative; aspect-ratio: 1 / 0.92; min-height: 360px; }
.art { position: absolute; margin: 0; border-radius: 26px; overflow: hidden; border: 1px solid rgba(143, 176, 255, 0.28); box-shadow: var(--shadow); background: var(--bg-3); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-main { right: 0; top: 4%; width: 74%; height: 88%; box-shadow: var(--shadow), 0 0 80px rgba(var(--glow-rgb), 0.28); }
.art-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(4, 8, 23, 0.55)); }
.art-side { width: 36%; aspect-ratio: 1 / 1.05; }
.art-top { left: 0; top: 0; transform: rotate(-5deg); }
.art-bottom { left: 6%; bottom: 0; transform: rotate(4deg); }
.hero-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-radius: 16px; background: rgba(6, 12, 32, 0.78); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.hero-badge b { font: 800 26px/1 var(--font-display); color: #fff; }
.hero-badge span { font-size: 13px; font-weight: 700; color: var(--muted); max-width: 90px; line-height: 1.25; }
.badge-a { right: 58%; top: 44%; }
.badge-b { right: -2%; bottom: 2%; }

/* ── Цифры ── */
.facts { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.12), transparent 40%, transparent 60%, rgba(var(--brand-rgb), 0.12)); }
.facts-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.facts-grid div { padding: 26px 20px; border-left: 1px solid var(--line); }
.facts-grid div:first-child { border-left: 0; padding-left: 0; }
.facts-grid b { display: block; font: 700 clamp(26px, 2.6vw, 36px)/1 var(--font-display); color: #fff; }
.facts-grid span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ── Пути ── */
.paths-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.path-card {
  grid-column: span 3; position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); color: var(--text); isolation: isolate; display: flex; align-items: flex-end;
}
.path-card.is-wide { grid-column: span 6; min-height: 380px; }
.path-card:not(.is-wide) .path-body strong { font-size: 21px; }
.path-card:not(.is-wide) .path-text { font-size: 14px; }
.path-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.path-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 8, 23, 0.05) 0%, rgba(4, 8, 23, 0.55) 45%, rgba(4, 8, 23, 0.96) 100%); }
.path-card:hover { color: var(--text); border-color: rgba(var(--glow-rgb), 0.55); }
.path-card:hover > img { transform: scale(1.05); }
.path-body { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.path-count { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: rgba(var(--brand-rgb), 0.55); border: 1px solid rgba(var(--glow-rgb), 0.45); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.path-body strong { font: 700 26px/1.1 var(--font-display); text-transform: uppercase; color: #fff; }
.path-text { color: #c3cde6; font-size: 15px; max-width: 460px; }
.path-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-light); font-weight: 800; font-size: 14px; }

/* ── Возможности ── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(180px, auto); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 26px;
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; color: var(--text); isolation: isolate;
  background: linear-gradient(160deg, rgba(var(--brand-rgb), 0.16), rgba(143, 176, 255, 0.03) 55%);
}
a.tile:hover { color: var(--text); border-color: rgba(var(--glow-rgb), 0.55); }
.tile h3 { font-size: 22px; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile-phone { grid-column: span 7; grid-row: span 2; justify-content: space-between; }
.tile-phone .tile-copy { max-width: 480px; }
.app-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 10px; }
.app-grid li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #c8d2ea; text-align: center; }
.app-grid img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); }
.tile-image { grid-column: span 5; min-height: 240px; }
.tile-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s; }
.tile-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 8, 23, 0.1) 10%, rgba(4, 8, 23, 0.72) 55%, rgba(4, 8, 23, 0.97) 100%); }
.tile-image:hover > img { transform: scale(1.05); }
.tile-image p { color: #c3cde6; }
.tile-bp { grid-column: span 5; grid-row: span 2; padding-right: 44%; min-height: 380px; background: radial-gradient(420px 380px at 80% 40%, rgba(var(--glow-rgb), 0.32), transparent 70%), linear-gradient(160deg, rgba(var(--brand-rgb), 0.2), rgba(143, 176, 255, 0.02)); }
.tile-bp > img { position: absolute; right: 2%; bottom: 0; height: 96%; width: auto; z-index: -1; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.tile-games { grid-column: span 7; flex-direction: row; align-items: center; justify-content: space-between; min-height: 220px; }
.tile-games .tile-copy { max-width: 300px; }
.game-cards { display: flex; gap: 10px; }
.game-cards img { width: 92px; height: 170px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-strong); transition: transform 0.3s; }
.game-cards img:nth-child(2) { transform: translateY(-12px); }
.tile-games:hover .game-cards img { transform: translateY(-6px); }
.tile-games:hover .game-cards img:nth-child(2) { transform: translateY(-18px); }
.tile-small { grid-column: span 3; min-height: 260px; }
.ores { display: flex; align-items: center; gap: 2px; margin-top: auto; }
.ores img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.tile-ores { justify-content: space-between; }
.tile-voice { justify-content: space-between; }
.tile-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-hot), var(--brand-deep)); box-shadow: 0 10px 26px rgba(var(--brand-rgb), 0.5); }
.tile-icon .icon { width: 26px; height: 26px; color: #fff; }

/* ── Серверы ── */
.servers { background: radial-gradient(800px 400px at 50% 0%, rgba(var(--brand-rgb), 0.18), transparent 70%); }
.server-list { display: grid; gap: 16px; }
.server-card {
  display: flex; align-items: center; gap: 24px; padding: 26px 30px; border-radius: var(--radius);
  border: 1px solid rgba(var(--glow-rgb), 0.4);
  background: linear-gradient(110deg, rgba(var(--brand-rgb), 0.35), rgba(var(--brand-rgb), 0.06) 60%), var(--bg-2);
  box-shadow: 0 0 60px rgba(var(--brand-rgb), 0.25);
}
.server-info { flex: 1; min-width: 0; }
.server-info h3 { font: 700 26px/1.15 var(--font-display); text-transform: uppercase; margin: 6px 0 4px; }
.server-info p { margin: 0; }
.server-state { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.future-servers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.future-card {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid rgba(var(--glow-rgb), 0.25); background: linear-gradient(120deg, rgba(var(--brand-rgb), 0.18), transparent 70%), var(--bg-2);
}
.future-card strong { flex: 1; font-weight: 800; }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-glow), var(--brand-deep)); box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.55); }

/* ── Новости ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card.is-lead { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.news-card.is-lead img { height: 0; min-height: 100%; aspect-ratio: auto; }
.news-card.is-lead .news-body { padding: 30px; }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.news-body h3 { font-size: 20px; }
.news-card.is-lead .news-body h3 { font-size: 24px; }
.news-excerpt { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.tag { padding: 4px 10px; border-radius: 999px; background: rgba(var(--brand-rgb), 0.45); color: #fff; font-size: 12px; font-weight: 800; }

/* ── Автосалоны ── */
.showroom-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.car-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; border-radius: 18px; color: var(--text);
  border: 1px solid var(--line); background: radial-gradient(260px 140px at 50% 38%, rgba(var(--glow-rgb), 0.18), transparent 70%), var(--bg-2);
  transition: border-color 0.2s, transform 0.2s;
}
a.car-card:hover, .car-card:hover { color: var(--text); border-color: rgba(var(--glow-rgb), 0.5); transform: translateY(-2px); }
.car-card img { width: 100%; height: 130px; object-fit: contain; margin: 10px 0 12px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); }
.car-card strong { font-size: 16px; font-weight: 800; }
.car-price { font: 700 17px/1.2 var(--font-display); color: var(--brand-light); }
.car-salon { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.car-noimg { height: 130px; margin: 10px 0 12px; display: grid; place-items: center; opacity: 0.35; }
.car-noimg .mark { width: 56px; height: 56px; }

/* ── Premium ── */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tier {
  --tier: 221, 221, 221; --tier-strong: #ddd;
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 28px; border-radius: var(--radius);
  border: 1px solid rgba(var(--tier), 0.4); background: linear-gradient(0deg, rgba(var(--tier), 0.16), rgba(var(--tier), 0) 100%), var(--bg-2);
}
.tier-silver { --tier: 221, 221, 221; --tier-strong: #dddddd; }
.tier-gold { --tier: 255, 212, 88; --tier-strong: #ffd458; }
.tier-platinum { --tier: 208, 88, 255; --tier-strong: #da8bff; }
.tier-diamond { --tier: 64, 190, 255; --tier-strong: #81d1ff; }
.tier img { height: 88px; width: auto; align-self: flex-start; margin-bottom: 18px; filter: drop-shadow(0 10px 24px rgba(var(--tier), 0.35)); }
.tier h3 { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; color: var(--tier-strong); }
.tier-price { margin: 8px 0 16px; font: 800 24px/1.2 var(--font); color: #fff; }
.tier-price small { font-size: 13px; color: var(--muted); font-weight: 700; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tier li { position: relative; padding-left: 18px; font-size: 14px; color: #c8d2ea; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--tier-strong); }

/* ── Как начать ── */
.start { background: linear-gradient(180deg, transparent, rgba(var(--brand-rgb), 0.12)); }
.start-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.start-grid h2 { margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 22px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.steps li > div { flex: 1; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-num { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 16px; font: 700 18px/1 var(--font-display); color: #fff; background: linear-gradient(135deg, var(--brand-hot), var(--brand-deep)); box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.45); }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 90px); }
.faq-grid h2 { margin-bottom: 18px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 800; font-size: 17px; color: #fff; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--brand-glow); transition: transform 0.2s; }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion details p { margin: -6px 0 22px; color: var(--muted); max-width: 680px; }

/* ── Подвал ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 380px; margin-top: 16px; font-size: 15px; }
.footer-grid h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); padding: 5px 0; font-weight: 600; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--dim); max-width: 760px; }
.to-top { font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ── Модальные окна ── */
.modal, .lightbox { border: 1px solid var(--line-strong); border-radius: 24px; padding: 34px; background: var(--bg-3); color: var(--text); box-shadow: var(--shadow), 0 0 80px rgba(var(--brand-rgb), 0.3); width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 48px); }
.modal-wide { width: min(760px, calc(100% - 32px)); }
.modal::backdrop, .lightbox::backdrop { background: rgba(2, 5, 14, 0.8); backdrop-filter: blur(6px); }
.modal h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.modal p { color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: #fff; z-index: 2; }
.modal-close:hover { border-color: var(--brand-glow); }
.modal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.modal-banner { width: calc(100% + 68px); max-width: none; margin: -34px -34px 26px; aspect-ratio: 16 / 8; object-fit: cover; }
.lightbox { width: min(1400px, calc(100% - 32px)); padding: 0; background: #000; overflow: hidden; }
.lightbox img { width: 100%; height: auto; max-height: calc(100vh - 48px); object-fit: contain; }

/* ── Текст статей ── */
.prose { color: #cfd7ec; font-size: 16.5px; line-height: 1.75; }
.prose p { margin: 0 0 1.05em; }
.prose strong { color: #fff; font-weight: 800; }
.prose em { color: var(--brand-light); font-style: normal; }
.prose ul { margin: 0 0 1.1em; padding: 0; list-style: none; display: grid; gap: 6px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--brand-glow); }
.prose blockquote { margin: 0 0 1.2em; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); border-left: 3px solid var(--brand-glow); background: var(--surface); }
.prose blockquote > :last-child { margin-bottom: 0; }

/* ── Шапки внутренних страниц ── */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); background: radial-gradient(800px 420px at 85% -10%, rgba(var(--glow-rgb), 0.2), transparent 70%), radial-gradient(600px 400px at 0% 0%, rgba(var(--brand-rgb), 0.3), transparent 70%); isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url("../img/features/map-dark.webp") no-repeat right -120px center / 760px;
  opacity: 0.28; mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent 35%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 80%);
}
.page-hero.has-cover::before { display: none; }
.page-hero.compact { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); }
.page-hero h1 { margin-bottom: 16px; font-size: clamp(30px, 4.6vw, 60px); }
.page-hero .lead { margin-bottom: 0; }
.page-hero-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.22; mask-image: linear-gradient(90deg, transparent 20%, #000 90%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%); }
.crumbs { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.crumbs span { margin: 0 6px; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: #dbe3f7; font-size: 13.5px; font-weight: 700; margin: 0; }
a.chip:hover { border-color: var(--brand-glow); color: #fff; }
.chip-gov { background: rgba(64, 140, 255, 0.16); border-color: rgba(64, 140, 255, 0.45); color: #a9c8ff; }
.chip-crime { background: rgba(255, 93, 108, 0.12); border-color: rgba(255, 93, 108, 0.4); color: #ffb0b8; }
.search { position: relative; display: flex; align-items: center; max-width: 520px; margin-top: 26px; }
.search .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input, .select select, .field input {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(4, 8, 23, 0.6); color: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder, .field input::placeholder { color: var(--dim); }
.search input:focus, .select select:focus, .field input:focus { border-color: var(--brand-glow); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), 0.18); }
.search-sm { margin-top: 0; min-width: 220px; }
.search-sm input { padding-block: 11px; }
.select select { padding: 11px 36px 11px 14px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.select option { background: var(--bg-3); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: #dbe3f7; font-weight: 800; font-size: 14.5px; }
.tab span { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.tab:hover { color: #fff; border-color: rgba(var(--glow-rgb), 0.6); }
.tab[aria-current="page"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand-hot), var(--brand-deep)); box-shadow: 0 10px 26px rgba(var(--brand-rgb), 0.45); }
.tab[aria-current="page"] span { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ── Путеводитель ── */
.guide-cat { padding: 52px 0 8px; }
.guide-cat + .guide-cat { border-top: 1px solid var(--line); margin-top: 36px; }
.guide-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.guide-cat-head h2 { font-size: clamp(24px, 2.8vw, 34px); }
.guide-cat-head p { margin: 0; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.article-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.article-card:hover { color: var(--text); border-color: rgba(var(--glow-rgb), 0.5); transform: translateY(-2px); }
.article-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-cover.is-empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(var(--brand-rgb), 0.35), transparent 70%), var(--bg-3); }
.article-cover.is-empty .mark { width: 64px; height: 64px; }
.article-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 22px; }
.article-body strong { font-size: 18px; font-weight: 800; color: #fff; }
.article-excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-body .chip { padding: 3px 10px; font-size: 12px; }

.guide-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: 44px 0 90px; align-items: start; }
.guide-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-right: 6px; }
.guide-nav details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.guide-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; cursor: pointer; list-style: none; font-weight: 800; color: #fff; }
.guide-nav summary::-webkit-details-marker { display: none; }
.guide-nav .count { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
.guide-nav ul { list-style: none; margin: 0 0 8px; padding: 0; }
.guide-nav li a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.guide-nav li a:hover { color: #fff; background: var(--surface); }
.guide-nav li a[aria-current="page"] { color: #fff; background: rgba(var(--brand-rgb), 0.45); box-shadow: inset 3px 0 0 var(--brand-glow); }
.guide-nav-commands { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); font-weight: 800; color: #fff; }
.guide-nav-commands.is-current, .guide-nav-commands:hover { border-color: var(--brand-glow); color: #fff; }
.guide-article { max-width: 860px; }
.gallery { display: grid; gap: 12px; margin-bottom: 30px; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.gallery-3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; }
.gallery-3 .gallery-item:first-child { grid-row: span 2; }
.gallery-item { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-3); cursor: zoom-in; aspect-ratio: 16 / 9; }
.gallery-3 .gallery-item:first-child { aspect-ratio: auto; }
.gallery-3 .gallery-item:nth-child(n + 4) { display: none; }
.gallery-item { position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 8, 23, 0.62); color: #fff; font: 700 20px/1 var(--font-display); }
.lightbox-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(4, 8, 23, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox-nav:hover { border-color: var(--brand-glow); }
.lightbox-nav.is-prev { left: 14px; }
.lightbox-nav.is-prev .icon { transform: rotate(180deg); }
.lightbox-nav.is-next { right: 14px; }
.gallery-item:hover img { transform: scale(1.03); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; font-weight: 800; }
.pager a:hover { border-color: rgba(var(--glow-rgb), 0.55); color: #fff; }
.pager small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.pager-next { text-align: right; grid-column: 2; }
.cmd-group { margin-bottom: 36px; }
.cmd-group h2 { font-size: 22px; margin-bottom: 14px; }
.cmd-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cmd-row { display: grid; grid-template-columns: minmax(170px, 0.35fr) 1fr auto; gap: 16px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); }
.cmd-row:first-child { border-top: 0; }
.cmd-row:nth-child(even) { background: var(--surface); }
.cmd-row code { justify-self: start; }
.cmd-tags { font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; }

/* ── Каталог ── */
.catalog { padding: 40px 0 90px; }
.catalog-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.catalog-bar h2 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 6px; }
.catalog-bar p { margin: 0; }
.catalog-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.catalog-note { margin-top: 26px; }

/* ── Донат ── */
.tiers-full .tier ul { gap: 10px; }
.subscription {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 18px; padding: 28px 32px; border-radius: var(--radius);
  border: 1px solid rgba(var(--glow-rgb), 0.45); background: linear-gradient(110deg, rgba(var(--brand-rgb), 0.4), rgba(var(--brand-rgb), 0.05) 70%), var(--bg-2);
}
.subscription h3 { font: 700 24px/1.15 var(--font-display); text-transform: uppercase; margin-bottom: 12px; }
.subscription .eyebrow { margin-bottom: 10px; }
.subscription-price { margin: 0; text-align: right; font: 700 30px/1.1 var(--font-display); color: #fff; }
.subscription-price small { display: block; margin-top: 6px; font: 700 13px/1 var(--font); color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #cfd7ec; }
.check-list .icon { color: var(--brand-glow); margin-top: 3px; }
.subscription .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pack { padding: 22px 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.pack header { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.pack header img { width: 52px; height: 52px; }
.pack h3 { font-size: 19px; }
.pack-price { margin: 4px 0 0; font: 700 18px/1 var(--font-display); color: var(--brand-light); }
.pack .check-list li { font-size: 14px; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.case { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(200px 140px at 50% 30%, rgba(var(--glow-rgb), 0.16), transparent 70%), var(--bg-2); }
.case img { height: 120px; width: auto; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); }
.case h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.case p.muted { flex: 1; margin-bottom: 10px; }
.case-price { margin: 6px 0 0; font: 700 16px/1 var(--font-display); color: var(--brand-light); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.more-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.more-card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 14px; }
.more-card h3 { font-size: 17px; margin-bottom: 6px; }
.more-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.note { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 0; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14.5px; }
.note .icon { color: var(--brand-glow); margin-top: 2px; }

/* ── Кабинет ── */
.panel { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; padding: 40px 0 90px; align-items: start; }
.auth-form h2 { font-size: 26px; margin-bottom: 8px; }
.auth-form > p { margin-bottom: 22px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 800; color: #dbe3f7; }
.field input { padding-left: 16px; }
.form-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 93, 108, 0.12); border: 1px solid rgba(255, 93, 108, 0.4); color: #ffc1c7; font-size: 14.5px; font-weight: 700; }
.auth-aside { display: grid; gap: 16px; }
.auth-aside h3 { margin-bottom: 8px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; margin: 0 0 22px; }
.alert-danger { background: rgba(255, 93, 108, 0.12); border: 1px solid rgba(255, 93, 108, 0.4); color: #ffd0d4; }
.alert .icon { margin-top: 3px; color: var(--danger); }
.cabinet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cabinet-head h1 { margin-bottom: 8px; word-break: break-word; }
.cabinet-head p { margin: 0; }
.cabinet { padding: 36px 0 90px; }
.account-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { --tier: var(--brand-rgb); display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.stat-card b { font: 700 26px/1.15 var(--font-display); color: #fff; }
.stat-card b small { font: 700 14px/1 var(--font); color: var(--muted); }
.stat-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-rb { border-color: rgba(var(--glow-rgb), 0.45); background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.45), rgba(var(--brand-rgb), 0.06)), var(--bg-2); }
.stat-card.tier-silver, .stat-card.tier-gold, .stat-card.tier-platinum, .stat-card.tier-diamond { border-color: rgba(var(--tier), 0.45); background: linear-gradient(0deg, rgba(var(--tier), 0.16), transparent), var(--bg-2); }
.stat-card[class*="tier-"] b { color: var(--tier-strong); }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.char-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.char-head { display: flex; align-items: center; gap: 14px; }
.char-head > div { flex: 1; min-width: 0; }
.char-head h3 { font-size: 20px; word-break: break-word; }
.char-head p { margin: 2px 0 0; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; font: 700 18px/1 var(--font-display); color: #fff; background: linear-gradient(160deg, var(--brand-hot), var(--brand-dark)); box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.4); }
.avatar.is-female { background: linear-gradient(160deg, #c04aa6, #4c1d6b); box-shadow: 0 10px 24px rgba(160, 50, 140, 0.35); }
.level { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; border: 2px solid rgba(var(--glow-rgb), 0.6); font: 700 20px/1 var(--font-display); color: #fff; box-shadow: 0 0 20px rgba(var(--glow-rgb), 0.3); }
.level small { display: block; font: 800 9px/1 var(--font); color: var(--muted); margin-top: -8px; }
.exp { display: grid; gap: 6px; }
.exp progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); appearance: none; }
.exp progress::-webkit-progress-bar { background: var(--surface-2); }
.exp progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand-strong), var(--brand-glow)); border-radius: 999px; }
.exp progress::-moz-progress-bar { background: linear-gradient(90deg, var(--brand-strong), var(--brand-glow)); border-radius: 999px; }
.char-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.char-stats div { padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.char-stats dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.char-stats dd { margin: 2px 0 0; font-weight: 800; color: #fff; }
.char-stats dd small { display: block; font-weight: 600; color: var(--muted); font-size: 12.5px; }
.char-stats .is-warn { color: var(--warn); }
.licenses { display: flex; flex-wrap: wrap; gap: 6px; }
.license { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--dim); font-size: 12px; font-weight: 700; }
.license.has { border-style: solid; border-color: rgba(var(--glow-rgb), 0.5); background: rgba(var(--brand-rgb), 0.3); color: #fff; }
.license .icon { width: 13px; height: 13px; color: var(--brand-light); }
.property { display: grid; gap: 8px; }
.prop { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.prop-kind { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-light); }
.prop strong { font-weight: 800; }
.prop .small { justify-self: end; }
.prop-car { grid-template-columns: 76px 1fr auto; }
.prop-car img { grid-row: span 2; width: 76px; height: 44px; object-fit: contain; }
.prop-car .prop-kind { grid-column: 2 / -1; }
.property-empty, .char-extra { margin: 0; }
.char-slot { align-self: start; align-items: center; justify-content: center; text-align: center; min-height: 220px; border-style: dashed; background: transparent; }
.char-slot .icon { width: 34px; height: 34px; color: var(--brand-glow); }
.char-slot.is-locked .icon { color: var(--dim); }
.char-slot p { margin: 0; }

/* ── Картинки из cloud CDN: фон по часам, фракции, внешность, питомцы, оружие ── */
.hero { isolation: isolate; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; z-index: -2; }
/* подкраска пейзажа в фирменный синий: время суток видно, но картинка остаётся в гамме сайта */
.hero.has-sky::before { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(var(--brand-rgb), 0.45); mix-blend-mode: color; pointer-events: none; }
.hero.has-sky .hero-bg {
  background:
    linear-gradient(90deg, rgba(4, 8, 23, 0.94) 0%, rgba(4, 8, 23, 0.74) 36%, rgba(4, 8, 23, 0.28) 66%, rgba(4, 8, 23, 0.2) 100%),
    radial-gradient(900px 600px at 78% 30%, rgba(var(--glow-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, rgba(4, 8, 23, 0.55) 0%, rgba(4, 8, 23, 0) 28%, rgba(4, 8, 23, 0.25) 72%, var(--bg) 100%);
}
.hero.has-sky .hero-bg::before { opacity: 0.08; }
@media (max-width: 960px) {
  .hero.has-sky .hero-bg { background: linear-gradient(180deg, rgba(4, 8, 23, 0.82) 0%, rgba(4, 8, 23, 0.66) 40%, rgba(4, 8, 23, 0.4) 62%, var(--bg) 100%); }
}

.path-logos { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; }
.path-logos img { width: 42px; height: 42px; object-fit: contain; padding: 5px; border-radius: 12px; background: rgba(4, 8, 23, 0.72); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.path-card:hover .path-logos img { transform: none; }

.factions { background: radial-gradient(900px 500px at 12% 0%, rgba(var(--brand-rgb), 0.18), transparent 70%); }
.faction-groups { display: grid; gap: 14px; }
.faction-group { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; gap: 24px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.faction-group header { display: grid; gap: 6px; }
.faction-group h3 { font: 700 17px/1.2 var(--font-display); text-transform: uppercase; }
.faction-group header p { margin: 0; }
.faction-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.faction-list-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.faction {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; border-radius: 16px;
  border: 1px solid var(--line); color: #dbe3f7; text-align: center; font-weight: 800; font-size: 14px; line-height: 1.25;
  background: radial-gradient(120px 90px at 50% 35%, rgba(var(--glow-rgb), 0.12), transparent 70%), var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
a.faction:hover { color: #fff; border-color: rgba(var(--glow-rgb), 0.55); transform: translateY(-2px); }
.faction-logo { display: block; width: 72px; height: 72px; flex: none; }
.faction-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }

.tile-wide { grid-column: span 6; min-height: 300px; justify-content: space-between; }
.tile-creator { background: radial-gradient(420px 260px at 80% 100%, rgba(var(--glow-rgb), 0.22), transparent 70%), linear-gradient(160deg, rgba(var(--brand-rgb), 0.2), rgba(143, 176, 255, 0.03) 60%); }
.faces { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.faces img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: 12px; border: 1px solid var(--line); filter: grayscale(1) contrast(1.05) brightness(0.95); }
.faces img:nth-child(even) { transform: translateY(10px); }
.pet-row { display: flex; align-items: flex-end; gap: 4px; }
.pet-row img { width: calc((100% - 20px) / 6); height: 110px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); transition: transform 0.3s; }
a.tile-pets:hover .pet-row img { transform: translateY(-4px); }

.page-hero-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.page-hero-logos img { width: 64px; height: 64px; object-fit: contain; padding: 8px; border-radius: 16px; background: rgba(4, 8, 23, 0.6); border: 1px solid var(--line-strong); }
.page-hero-logos.is-icon img { padding: 12px; }
.article-cover { position: relative; }
.cover-badges { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.cover-badges img, .article-card:hover .article-cover .cover-badges img { width: 38px; height: 38px; object-fit: contain; padding: 5px; border-radius: 10px; background: rgba(4, 8, 23, 0.8); border: 1px solid var(--line-strong); transform: none; }

.extra { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.extra h2 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 8px; }
.extra > p { margin: 0 0 20px; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pet-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(200px 140px at 50% 25%, rgba(var(--glow-rgb), 0.14), transparent 70%), var(--bg-2); }
.pet-card img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); }
.pet-card h3 { font-size: 18px; }
.pet-price { margin: 6px 0 12px; font: 700 16px/1 var(--font-display); color: var(--brand-light); }
.abilities { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.abilities li { display: flex; gap: 8px; align-items: flex-start; }
.abilities .icon { width: 14px; height: 14px; margin-top: 3px; }
.abilities .can { color: #cfd7ec; }
.abilities .can .icon { color: var(--ok); }
.abilities .cannot { color: var(--dim); }
.abilities .cannot .icon { color: var(--danger); }
.weapon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.weapon-card { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.weapon-card img { width: 100%; height: 64px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
.weapon-card h3 { font-size: 15px; }
.weapon-card p { margin: 6px 0 0; font: 700 15px/1 var(--font-display); color: var(--brand-light); }
.salon-list { display: grid; gap: 10px; }
.salon { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; }
.salon:hover { color: #fff; border-color: rgba(var(--glow-rgb), 0.55); }
.salon .icon { grid-row: span 2; grid-column: 2; color: var(--brand-glow); }
.salon span { grid-column: 1; }

.price { display: inline-flex; align-items: center; gap: 0.3em; white-space: nowrap; }
.coin { width: 1em; height: 1em; flex: none; filter: none; }
.ac-name { display: inline-flex; align-items: center; gap: 0.35em; color: #fff; font-weight: 800; }
.stat-coins { display: flex; align-items: center; gap: 10px; }
.stat-coins .coin { width: 0.95em; height: 0.95em; }
.char-stats .has-logo dd { display: flex; align-items: center; gap: 10px; }
.frac-logo { width: 34px; height: 34px; object-fit: contain; flex: none; }
.prop-biz { grid-template-columns: 44px 1fr auto; }
.prop-icon { grid-row: span 2; width: 36px; height: 36px; object-fit: contain; }
.prop-biz .prop-kind { grid-column: 2 / -1; }
.subscription-icon img { width: 132px; height: auto; }
a.more-card { color: var(--text); transition: border-color 0.2s, transform 0.2s; }
a.more-card:hover { color: var(--text); border-color: rgba(var(--glow-rgb), 0.5); transform: translateY(-2px); }

@media (max-width: 1100px) {
  .faction-group { grid-template-columns: 1fr; gap: 14px; }
  .faction-list { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 640px) {
  .tile-wide { grid-column: span 12; }
  .faces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faces img:nth-child(even) { transform: none; }
  .pet-row img { height: 72px; }
  .faction-list, .faction-list-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .faction { padding: 12px 6px; font-size: 12.5px; }
  .faction-logo { width: 52px; height: 52px; }
  .faction-group { padding: 18px 16px; }
  .path-logos img { width: 34px; height: 34px; }
  .page-hero-logos img { width: 52px; height: 52px; }
  .subscription-icon img { width: 96px; }
}

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; width: 100%; margin: 12px auto 0; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .facts-grid div:nth-child(4) { border-left: 0; padding-left: 0; }
  .facts-grid div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .tiers, .more-grid, .account-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-phone, .tile-games { grid-column: span 12; }
  .tile-bp, .tile-image, .tile-small { grid-column: span 6; }
  .future-servers { grid-template-columns: repeat(2, 1fr); }
  .showroom-track { grid-template-columns: repeat(3, 1fr); }
  .showroom-track .car-card:nth-child(n + 10) { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .burger { display: grid; }
  .header-cabinet { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 14px 24px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-header[data-open] .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 12px; font-size: 16px; }
  .nav-cabinet-mobile { display: block; color: #fff !important; }
  .header-row { gap: 12px; }
  .header-actions { margin-left: auto; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head > p { max-width: 640px; }
  .paths-grid { grid-template-columns: repeat(2, 1fr); }
  .path-card, .path-card.is-wide { grid-column: span 1; min-height: 300px; }
  .path-card .path-body strong { font-size: 21px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.is-lead { grid-column: 1 / -1; }
  /* ровно две новости — обе в половину ширины, без пустого места справа */
  .news-card.is-lead:nth-last-child(2) { grid-column: auto; display: flex; }
  .news-card.is-lead:nth-last-child(2) img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .start-grid, .faq-grid, .auth-layout { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .guide-nav { position: static; max-height: none; order: 2; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .subscription { grid-template-columns: 1fr; }
  .subscription-price { text-align: left; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .btn-primary.btn-sm span { display: none; }
  .header-actions .btn-primary.btn-sm { --btn-pad: 10px 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art { aspect-ratio: 1 / 1; min-height: 0; }
  .hero-badge { padding: 9px 12px; }
  .hero-badge b { font-size: 20px; }
  .badge-a { right: auto; left: 2%; top: 58%; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .facts-grid div:nth-child(-n + 2) { border-top: 0; }
  .facts-grid div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line) !important; }
  .paths-grid, .news-grid, .tiers, .more-grid, .future-servers { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card b { font-size: 19px; }
  .showroom-track, .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .showroom-track .car-card:nth-child(n + 10) { display: flex; }
  .car-card { padding: 14px 12px 16px; }
  .car-card img, .car-noimg { height: 90px; margin: 18px 0 8px; }
  .car-card strong { font-size: 14px; overflow-wrap: anywhere; }
  .car-price { font-size: 14px; }
  .car-salon { top: 10px; left: 12px; font-size: 10px; }
  .news-card.is-lead { grid-template-columns: 1fr; }
  .news-card.is-lead img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .tile-bp, .tile-image, .tile-small { grid-column: span 12; }
  .tile-bp { padding-right: 40%; min-height: 320px; }
  .app-grid { grid-template-columns: repeat(4, 1fr); }
  .tile-games { flex-direction: column; align-items: flex-start; }
  .server-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .server-actions, .server-actions .btn { width: 100%; }
  .steps li { flex-wrap: wrap; }
  .steps li .btn { width: 100%; }
  .cmd-row { grid-template-columns: 1fr; gap: 6px; }
  .cmd-tags { text-align: left; }
  .gallery-2, .gallery-3 { grid-template-columns: 1fr; }
  .gallery-3 .gallery-item:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .char-grid { grid-template-columns: 1fr; }
  .subscription .check-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 26px 22px; }
  .modal-banner { width: calc(100% + 44px); margin: -26px -22px 22px; }
  .cabinet-head { flex-direction: column; align-items: flex-start; }
  .catalog-tools, .catalog-tools .search-sm { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── Живые разделы: карта штата, Forbes, новости, регистрация, кейсы, Battle Pass ── */
@media (max-width: 1180px) and (min-width: 961px) {
  .header-row { gap: 16px; }
  .main-nav a { padding: 9px 9px; font-size: 14px; }
  .header-cabinet span { display: none; }
}

/* новости: вся карточка — ссылка */
.news-card { position: relative; transition: border-color 0.2s; }
.news-card:hover { border-color: rgba(var(--glow-rgb), 0.5); }
.card-link { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:hover, .news-card:hover .link-btn { color: #fff; }
.tag-hot { background: rgba(255, 93, 108, 0.8); }
.news-page { padding: 36px 0 90px; }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-article-head .news-meta { margin-bottom: 16px; }
.news-article-head h1 { font-size: clamp(26px, 3.8vw, 50px); max-width: 980px; margin-bottom: 0; }
.news-article-body { padding-block: 36px 24px; }
.news-article-body > * { max-width: 860px; }
.news-banner { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 30px; }
.news-back { margin: 30px 0 0; }
.icon-back { display: inline-flex; }
.icon-back .icon { transform: rotate(180deg); }

/* регистрация и уведомления кабинета */
.field-hint { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.45; }
.field input[aria-invalid="true"] { border-color: rgba(255, 93, 108, 0.75); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mini-steps { margin: 0 0 18px; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.mini-steps li::marker { color: var(--brand-light); font-weight: 800; }
.alert-ok { background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.35); color: #c9f5e1; }
.alert-ok .icon { color: var(--ok); }

/* кабинет: Battle Pass и питомец */
.char-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.bp-mini, .pet-mini { position: relative; display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.bp-mini strong { font: 700 22px/1.1 var(--font-display); color: #fff; }
.bp-mini strong small { font: 700 12px/1 var(--font); color: var(--muted); }
.bp-mini progress { width: 100%; height: 6px; margin: 4px 0 2px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); appearance: none; }
.bp-mini progress::-webkit-progress-bar { background: var(--surface-2); }
.bp-mini progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand-strong), var(--brand-glow)); border-radius: 999px; }
.bp-mini progress::-moz-progress-bar { background: linear-gradient(90deg, var(--brand-strong), var(--brand-glow)); border-radius: 999px; }
.bp-mini.is-premium { border-color: rgba(255, 212, 88, 0.45); background: linear-gradient(0deg, rgba(255, 212, 88, 0.1), transparent 80%); }
.bp-mini.is-premium progress::-webkit-progress-value { background: linear-gradient(90deg, #d89b1e, #ffd458); }
.bp-mini.is-premium progress::-moz-progress-bar { background: linear-gradient(90deg, #d89b1e, #ffd458); }
.pet-mini { padding-right: 88px; min-height: 86px; background: radial-gradient(120px 90px at 85% 70%, rgba(var(--glow-rgb), 0.16), transparent 70%); }
.pet-mini.no-image { padding-right: 14px; }
.pet-mini img { position: absolute; right: 8px; bottom: 4px; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
.pet-mini strong { font-size: 17px; font-weight: 800; color: #fff; word-break: break-word; }

/* кейсы: окно «Что внутри» */
.case-open { margin-top: 14px; }
.case-count { padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.case-modal { width: min(1000px, calc(100% - 32px)); }
.case-modal-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-right: 44px; }
.case-modal-head img { width: 96px; height: 96px; object-fit: contain; flex: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.case-modal-head .eyebrow { margin-bottom: 8px; }
.case-modal-head h2 { margin-bottom: 6px; }
.modal .case-modal-head p.muted { margin: 0; }
.prize-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.prize {
  --rarity: 69, 147, 255;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 12px 12px; text-align: center;
  border-radius: 14px; border: 1px solid rgba(var(--rarity), 0.3); border-bottom: 3px solid rgb(var(--rarity));
  background: radial-gradient(150px 90px at 50% 18%, rgba(var(--rarity), 0.22), transparent 70%), var(--bg-2);
}
.rarity-0 { --rarity: 69, 147, 255; }
.rarity-1 { --rarity: 204, 195, 0; }
.rarity-2 { --rarity: 156, 124, 189; }
.rarity-3 { --rarity: 223, 83, 83; }
.rarity-4 { --rarity: 212, 212, 212; }
.prize > img, .prize-noimg { width: 100%; height: 78px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
.prize-noimg { display: grid; place-items: center; opacity: 0.4; }
.prize strong { font-size: 14.5px; font-weight: 800; color: #fff; line-height: 1.25; }
.prize .small { font-size: 12.5px; }
.prize-chance { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(var(--rarity), 0.28); border: 1px solid rgba(var(--rarity), 0.55); color: #fff; font-size: 12px; font-weight: 800; }
.prize-rarity { margin-top: 5px; font-size: 11.5px; font-weight: 800; color: rgb(var(--rarity)); }
.prize-sell { font-size: 12px; font-weight: 700; color: var(--muted); }
.prize-sell .price { color: #dbe3f7; }
.modal p.case-modal-note { margin: 16px 0 0; }

/* Forbes */
.forbes { padding: 44px 0 90px; }
.forbes-updated { margin: 16px 0 0; }
.podium { display: flex; justify-content: center; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.podium-card {
  --medal: 205, 214, 230;
  position: relative; flex: 1 1 0; min-width: 0; max-width: 410px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 34px 22px 22px; text-align: center;
  border-radius: var(--radius); border: 1px solid rgba(var(--medal), 0.4);
  background: radial-gradient(260px 170px at 50% 0%, rgba(var(--medal), 0.18), transparent 70%), var(--bg-2);
}
.podium-card.place-1 { --medal: 255, 212, 88; order: 2; padding-top: 48px; box-shadow: 0 0 70px rgba(255, 212, 88, 0.1); }
.podium-card.place-2 { order: 1; }
.podium-card.place-3 { --medal: 222, 150, 98; order: 3; }
.podium-rank { position: absolute; top: -17px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--font-display); color: #050b1d; background: rgb(var(--medal)); box-shadow: 0 6px 18px rgba(var(--medal), 0.45); }
.podium-card .avatar { width: 64px; height: 64px; margin-bottom: 10px; }
.podium-card h2 { font: 800 19px/1.25 var(--font); text-transform: none; word-break: break-word; }
.podium-card p { margin: 0; }
.podium-card p.podium-total { margin: 10px 0 4px; font: 700 clamp(20px, 2.3vw, 28px)/1.1 var(--font-display); color: rgb(var(--medal)); }
.forbes-details > summary { cursor: pointer; list-style: none; }
.forbes-details > summary::-webkit-details-marker { display: none; }
.forbes-details .icon { color: var(--brand-glow); transition: transform 0.2s; }
.forbes-details[open] > summary .icon { transform: rotate(45deg); }
.podium-card .forbes-details { width: 100%; margin-top: 14px; text-align: left; }
.podium-card .forbes-details > summary { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--brand-light); }
.forbes-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.forbes-row + .forbes-row { border-top: 1px solid var(--line); }
.forbes-row summary, .forbes-static { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 22px; align-items: center; gap: 16px; padding: 14px 20px; }
.forbes-row summary:hover { background: var(--surface); }
.forbes-rank { font: 700 16px/1 var(--font-display); color: var(--muted); text-align: center; }
.forbes-name { display: grid; min-width: 0; }
.forbes-name strong { color: #fff; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forbes-name small { color: var(--muted); font-size: 13px; font-weight: 600; }
.forbes-total { font: 700 17px/1.1 var(--font-display); color: var(--brand-light); white-space: nowrap; }
.forbes-items { list-style: none; margin: 0; padding: 2px 20px 18px 76px; display: grid; gap: 8px; }
.podium-card .forbes-items { padding: 12px 0 0; }
.forbes-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.forbes-item img { width: 56px; height: 34px; object-fit: contain; }
.forbes-item .prop-icon { width: 30px; height: 30px; justify-self: center; }
.forbes-item span { display: grid; min-width: 0; font-weight: 700; font-size: 14px; color: #fff; }
.forbes-item small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-light); }
.forbes-item b { font-size: 14px; color: #dbe3f7; white-space: nowrap; }
.forbes-item-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-glow); justify-self: center; }
.forbes-item.is-money .forbes-item-dot { background: var(--ok); }

/* карта штата */
.map-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding: 32px 0 90px; align-items: start; }
.map-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.map-layers { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 2px; min-width: 0; }
.map-layers legend { float: left; width: 100%; padding: 2px 8px 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.layer { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: #dbe3f7; }
.layer:hover { background: var(--surface); }
.layer input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--brand-glow); cursor: pointer; }
.layer b { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.layer-free { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.layer-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid rgba(255, 255, 255, 0.85); }
.layer-dot.is-job { background: #c77a00; border-color: var(--warn); }
.layer-dot.is-fraction { background: #0b1a45; border-color: #fff; }
.layer-dot.is-salon { background: var(--brand-strong); border-color: #fff; }
.layer-dot.is-biz { background: #0b1a45; border-color: var(--brand-glow); }
.layer-dot.is-house-free { background: var(--ok); border-color: #eafff5; }
.layer-dot.is-house-owned { background: var(--dim); border-color: #b9c3dc; }
.map-type { display: grid; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.map-type select { width: 100%; letter-spacing: 0; text-transform: none; font-size: 14.5px; font-weight: 700; color: #fff; }
.map-hint { margin: 0; }
.map-side .note { margin: 0; }
.map-frame { position: relative; min-width: 0; }
.map-viewport {
  position: relative; height: min(78vh, 860px); min-height: 440px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: #030f22; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 80px rgba(var(--brand-rgb), 0.18);
}
.map-viewport:focus { outline: none; }
.map-viewport:focus-visible { box-shadow: 0 0 0 3px rgba(var(--glow-rgb), 0.55); }
.map-viewport.is-dragging { cursor: grabbing; }
.map-stage { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 1; }
/* бирюзовое свечение карты из телефона — в фирменный синий */
.map-img { width: 100%; height: 100%; max-width: none; filter: hue-rotate(28deg) saturate(1.15); pointer-events: none; -webkit-user-drag: none; }
.map-markers { position: absolute; inset: 0; }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--brand-glow); background: #0b1a45; color: #fff; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55); transition: transform 0.15s ease;
}
.pin svg { width: 16px; height: 16px; pointer-events: none; }
.pin img { width: 20px; height: 20px; object-fit: contain; pointer-events: none; }
.pin:hover, .pin:focus-visible, .pin.is-active { transform: scale(1.3); z-index: 3; outline: none; }
.pin.is-active { border-color: #fff; box-shadow: 0 0 0 4px rgba(var(--glow-rgb), 0.6), 0 6px 16px rgba(0, 0, 0, 0.6); }
.pin-biz.is-salon { background: var(--brand-strong); border-color: #fff; }
/* иконки товаров из телефона бывают тёмными — у бизнеса с картинкой светлая подложка */
.pin-biz.has-img { background: radial-gradient(circle at 50% 40%, #ffffff, #c5d5ff 75%); }
.pin-biz.is-free::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #030f22; }
.pin-job { background: #c77a00; border-color: var(--warn); }
.pin-fraction { width: 38px; height: 38px; margin: -19px 0 0 -19px; background: rgba(4, 8, 23, 0.92); border-color: rgba(255, 255, 255, 0.75); }
.pin-fraction img { width: 28px; height: 28px; }
.pin-house { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-width: 1.5px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.pin-house.is-free { background: var(--ok); border-color: #eafff5; }
.pin-house.is-owned { background: var(--dim); border-color: #b9c3dc; }
.map-viewport.is-near .pin-house { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.map-controls { position: absolute; top: 14px; right: 14px; display: grid; gap: 6px; z-index: 4; }
.map-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(4, 8, 23, 0.86); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-btn:hover { border-color: var(--brand-glow); }
.map-info {
  position: absolute; left: 14px; bottom: 14px; z-index: 5; width: min(340px, calc(100% - 28px)); padding: 18px 20px 20px;
  border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(6, 12, 32, 0.95); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.map-info .modal-close { top: 10px; right: 10px; width: 34px; height: 34px; }
.map-info-img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 10px; }
.map-info .prop-kind { margin: 0; }
.map-info h2 { margin: 4px 40px 6px 0; font: 800 19px/1.25 var(--font); text-transform: none; letter-spacing: 0; }
.map-info-meta { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 960px) {
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { flex-direction: column; align-items: stretch; gap: 26px; }
  .podium-card, .podium-card.place-1 { order: 0; max-width: none; padding-top: 34px; }
  .map-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .map-frame { order: -1; }
  .map-side { position: static; }
  .map-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-viewport { height: 68vh; min-height: 380px; }
}
@media (max-width: 640px) {
  .news-list { grid-template-columns: 1fr; }
  .char-extras { grid-template-columns: 1fr; }
  .case-modal-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 36px; }
  .case-modal-head img { width: 64px; height: 64px; }
  .case-modal-head h2 { font-size: 20px; overflow-wrap: anywhere; }
  .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prize { padding: 12px 8px 10px; }
  .prize > img, .prize-noimg { height: 60px; }
  .forbes-row summary, .forbes-static { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .forbes-row summary > .icon { display: none; }
  .forbes-total { font-size: 14px; }
  .forbes-items { padding: 0 14px 14px; }
  .forbes-item { grid-template-columns: 44px minmax(0, 1fr); }
  .forbes-item b { grid-column: 2; }
  .map-layers { grid-template-columns: 1fr; }
  .map-viewport { height: 62vh; border-radius: 16px; }
  .map-info { left: 8px; right: 8px; bottom: 8px; width: auto; }
}

/* главная: «Живой штат» */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.live-card { position: relative; display: flex; min-height: 340px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; color: var(--text); background: var(--bg-2); isolation: isolate; transition: border-color 0.2s; }
.live-card:hover { color: var(--text); border-color: rgba(var(--glow-rgb), 0.55); }
.live-card:hover .link-btn { color: #fff; }
/* остров занимает середину квадратной карты: при высоте 116% он целиком помещается в карточку */
.live-map > img { position: absolute; right: -8%; top: -8%; height: 116%; width: auto; max-width: none; z-index: -2; filter: hue-rotate(28deg) saturate(1.15); transition: transform 0.6s ease; }
.live-map:hover > img { transform: scale(1.04); }
.live-map::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg-2) 32%, rgba(6, 12, 32, 0.55) 62%, rgba(6, 12, 32, 0.1)); }
.live-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px; width: 100%; }
.live-map .live-body { max-width: 430px; }
.live-body .prop-kind { margin: 0; }
.live-body h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.15 var(--font-display); text-transform: uppercase; }
.live-body > p.muted { margin: 0 0 auto; }
.live-stats { list-style: none; margin: 6px 0 auto; padding: 0; display: grid; gap: 10px; }
.live-stats li { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-weight: 700; }
.live-stats b { font: 700 24px/1 var(--font-display); color: #fff; }
.live-forbes { background: radial-gradient(420px 260px at 92% 0%, rgba(255, 212, 88, 0.12), transparent 70%), var(--bg-2); }
.live-top { list-style: none; margin: 6px 0 auto; padding: 0; display: grid; gap: 8px; width: 100%; }
.live-top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface); }
.live-top span { font: 700 14px/1 var(--font-display); color: var(--muted); }
.live-top li:first-child span { color: #ffd458; }
.live-top strong { font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-top b { font: 700 15px/1 var(--font-display); color: var(--brand-light); white-space: nowrap; }
@media (max-width: 960px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-card { min-height: 300px; }
}
@media (max-width: 640px) {
  .live-body { padding: 22px; }
  .live-map > img { right: -45%; opacity: 0.6; }
  .live-map::before { background: linear-gradient(90deg, var(--bg-2) 20%, rgba(6, 12, 32, 0.4)); }
}
