/* ═══════════════════════════════════════════════════════════════
   CONTROL — дизайн-система. Монохром + красный акцент, точечный
   шрифт (Doto) для латинских меток, Manrope для текста, JetBrains Mono
   для цифр/кода. Темы: dark (по умолчанию) / light через [data-theme].
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Doto"; font-weight: 400; src: url("../fonts/doto-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Doto"; font-weight: 500; src: url("../fonts/doto-latin-500-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Doto"; font-weight: 700; src: url("../fonts/doto-latin-700-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Doto"; font-weight: 900; src: url("../fonts/doto-latin-900-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url("../fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; src: url("../fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; src: url("../fonts/jetbrains-mono-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 400; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 400; src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 500; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 500; src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 600; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 600; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 700; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 700; src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 800; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Manrope"; font-weight: 800; src: url("../fonts/manrope-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }

:root {
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Noto Sans", "Noto Sans SC", "Noto Sans KR", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", monospace;
  --font-dot: "Doto", "JetBrains Mono", monospace;

  --accent: #e8261f;
  --accent-hover: #ff3b33;
  --accent-ink: #ffffff;
  --ok: #2fbf71;
  --warn: #e0a400;

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1180px;
  --gap: 20px;
  --shadow: 0 1px 0 rgba(0,0,0,.25), 0 12px 32px -16px rgba(0,0,0,.6);
  --t: .16s ease;
}

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-2: #121214;
  --bg-3: #19191c;
  --bg-4: #202024;
  --line: #27272b;
  --line-2: #343439;
  --fg: #f3f3f0;
  --fg-2: #a9a9b0;
  --fg-3: #6f6f78;
  --grid: rgba(255,255,255,.028);
  --glow: rgba(255,255,255,.05);
  --neon: #19d3ff;
  --gold: #e2b93b;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e8e7e1;
  --bg-2: #f8f7f3;
  --bg-3: #e0dfd8;
  --bg-4: #d3d2ca;
  --line: #b9b8b0;
  --line-2: #9c9b93;
  --fg: #101011;
  --fg-2: #46464d;
  --fg-3: #74747c;
  --grid: rgba(0,0,0,.065);
  --glow: rgba(255,255,255,.75);
  --neon: #0a9fcf;
  --gold: #b07f0a;
  --shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 30px -16px rgba(0,0,0,.35);
}

/* ─── База ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(900px 420px at 18% -8%, var(--glow), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  background-position: center top;
  background-attachment: scroll;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.accent { color: var(--accent); }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding: 28px 0 60px; }

/* ─── Точечные метки (Doto) ──────────────────────────────── */
.dot { font-family: var(--font-dot); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dot-label { font-family: var(--font-dot); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }
.dot-label .accent { color: var(--accent); }
.wordmark { font-family: var(--font-dot); font-weight: 900; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 2px; }
.wordmark .sq { display: inline-block; width: 7px; height: 7px; background: var(--accent); margin: 0 4px; transform: translateY(1px); }

/* ─── Шапка ──────────────────────────────────────────────── */
.topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; }
.topbar .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 20px; }
.topbar nav.main { display: flex; gap: 30px; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.topbar nav.main a { color: var(--fg-2); padding: 8px 0 7px; border-bottom: 2px solid transparent; }
.topbar nav.main a:hover, .topbar nav.main a.active { color: var(--fg); border-bottom-color: var(--fg); }
.topbar .right { display: flex; align-items: center; gap: 18px; justify-self: end; }
.nav-link { font-weight: 600; font-size: 15px; color: var(--fg); }
.nav-link:hover { color: var(--accent); }
.sep { width: 1px; height: 24px; background: var(--line-2); }
.statusline { display: flex; align-items: center; gap: 8px; font-family: var(--font-dot); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.statusline .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.statusline .line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }

/* Переключатель темы — две пиксельные фигурки */
.theme-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 3px; background: var(--bg-2); }
.theme-switch button { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-3); transition: background var(--t), color var(--t), box-shadow var(--t); }
.theme-switch button:hover { color: var(--fg); background: var(--bg-3); }
.theme-switch button.on { color: var(--fg); background: var(--bg-4); box-shadow: inset 0 0 0 2px var(--accent); }
.theme-switch svg { width: 24px; height: 24px; shape-rendering: crispEdges; }
.theme-switch button.on svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }

/* Мобильное меню */
.burger { all: unset; display: none; cursor: pointer; padding: 8px; color: var(--fg-2); }
.burger svg { width: 22px; height: 22px; display: block; }
.only-sm { display: none; }
@media (max-width: 860px) {
  .topbar .container { grid-template-columns: auto 1fr; height: 64px; }
  .topbar nav.main { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 16px; gap: 6px; }
  .topbar nav.main.open { display: flex; }
  .topbar nav.main a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .hide-sm { display: none !important; }
  .only-sm { display: block; }
}

/* ─── Кнопки ─────────────────────────────────────────────── */
.input[type="file"] { padding: 7px 10px; cursor: pointer; }
.input[type="file"]::file-selector-button { font: inherit; font-weight: 700; font-size: 13px; padding: 6px 12px; margin-right: 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--fg); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t), transform var(--t); white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--bg-3); border-color: var(--fg-3); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); }
.btn-danger:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.arrow::after { content: "↗"; font-family: var(--font-mono); margin-left: 2px; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ─── Карточки и сетки ───────────────────────────────────── */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.card.pad-lg { padding: 28px; }
.card.pad-sm { padding: 14px 16px; }
.card.corners::before, .card.corners::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--fg-3); }
.card.corners::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.card.corners::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.card.dashed { border-style: dashed; border-color: var(--accent); background: transparent; }
.card.hover:hover { border-color: var(--fg-3); box-shadow: var(--shadow); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .idx { font-family: var(--font-dot); font-weight: 700; color: var(--accent); letter-spacing: .12em; font-size: 13px; }
.section-head .more { margin-left: auto; }

/* ─── Бейджи, статусы ────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--fg-2); background: var(--bg-3); line-height: 1.4; }
.badge.red { color: #fff; background: var(--accent); border-color: var(--accent); }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.badge.info { color: var(--info, #4aa3ff); border-color: color-mix(in srgb, var(--info, #4aa3ff) 50%, var(--line)); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--fg-2); background: var(--bg-2); text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip:hover { color: var(--fg); border-color: var(--fg-3); }
.chip.active { color: var(--fg); border-color: var(--fg); }
.chip .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.badge.outline { background: transparent; }
.badge.dot-b { font-family: var(--font-dot); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); }
.sdot.ok { background: var(--ok); } .sdot.warn { background: var(--warn); } .sdot.red { background: var(--accent); }

/* ─── Формы ──────────────────────────────────────────────── */
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--fg-2); }
.input, select, textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: inherit; transition: border-color var(--t), box-shadow var(--t); }
.input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 120px; resize: vertical; font-family: var(--font-sans); }
textarea.mono { font-family: var(--font-mono); font-size: 13px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--fg-3); margin-top: 5px; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline label { margin: 0; }
.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--fg); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--bg-4); border: 1px solid var(--line-2); border-radius: 999px; transition: background var(--t); cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: var(--fg-3); transition: transform var(--t), background var(--t); }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::before { transform: translateX(18px); background: #fff; }

/* ─── Таблицы ────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-family: var(--font-dot); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.table tr:hover td { background: var(--bg-3); }
.table .num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 18px; }
.table-wrap .table th:last-child, .table-wrap .table td:last-child { padding-right: 18px; }
.empty { padding: 40px 20px; text-align: center; color: var(--fg-3); }
.empty .dot-label { margin-bottom: 8px; }

/* ─── Уведомления ────────────────────────────────────────── */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14px; }
.flash.ok { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); }
.flash.ok::before { content: "✓"; color: var(--ok); font-family: var(--font-mono); }
.flash.err { border-color: var(--accent); }
.flash.err::before { content: "!"; color: var(--accent); font-family: var(--font-mono); font-weight: 900; }
.flash.info::before { content: "i"; color: var(--fg-2); font-family: var(--font-mono); }
.note { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--bg-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; }
.note.soft { border-left-color: var(--fg-3); }

/* ─── Главная ────────────────────────────────────────────── */
.hero-simple { padding: 56px 0 28px; }
.hero-simple.compact { padding: 36px 0 20px; }
.hero-simple h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 10px; }
.hero-simple h1 .accent-dot { color: var(--accent); }
.hero-simple .lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--fg-2); margin: 0 0 28px; max-width: 720px; }
.search { display: flex; align-items: center; gap: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; height: 62px; max-width: 1040px; transition: border-color var(--t), box-shadow var(--t); }
.search:focus-within { border-color: var(--fg-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 6%, transparent); }
.search svg { width: 22px; height: 22px; color: var(--fg-3); flex: none; }
.search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: 17px; height: 100%; }
.search input::placeholder { color: var(--fg-3); }
.filter-tabs { display: flex; gap: 28px; margin: 34px 0 24px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs a, .filter-tabs button { all: unset; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--fg-2); padding: 6px 0 8px; border-bottom: 2px solid transparent; white-space: nowrap; }
.filter-tabs a:hover, .filter-tabs button:hover { color: var(--fg); }
.filter-tabs a.on, .filter-tabs button.on { color: var(--fg); border-bottom-color: var(--fg); }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px 22px; min-height: 240px; color: var(--fg); transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.shop-card:hover { color: var(--fg); border-color: var(--fg-3); transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-card .mark { font-family: var(--font-mono); font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -.04em; margin-bottom: 22px; min-height: 40px; }
.shop-card .name { font-weight: 700; font-size: 20px; letter-spacing: -.01em; text-transform: uppercase; }
.shop-card .tag { color: var(--fg-2); font-size: 14px; margin-top: 4px; }
.shop-card .foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.shop-card .status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fg-2); white-space: nowrap; }
.shop-card .go { font-family: var(--font-mono); font-size: 18px; color: var(--fg-2); transition: transform var(--t), color var(--t); }
.shop-card .handle { font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.shop-card:hover .go { color: var(--accent); transform: translate(2px, -2px); }
.shop-card.cta .name { text-transform: none; }
.shop-card.cta .mark { color: var(--fg); font-weight: 400; }
.shop-card.cta .foot .btn { width: 100%; }
.shop-card.cta { border-style: dashed; border-color: var(--line-2); }
.shop-card.cta:hover { border-color: var(--accent); }
.shop-card .logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; margin-bottom: 18px; border: 1px solid var(--line); }
.shop-card .rate { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.shop-card .rate .st { color: var(--warn); }
.shop-card .foot .ext { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); text-decoration: none; }
.shop-card .foot .ext:hover { color: var(--accent); }
.shop-card.static:hover { transform: none; box-shadow: none; border-color: var(--line); }
/* бейджи статуса на карточке */
.shop-card .pills { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; border: 1px solid transparent; }
.pill.ok { background: color-mix(in srgb, var(--ok) 18%, var(--bg-2)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.pill.red { background: var(--accent); color: #fff; }
.pill.gold { background: color-mix(in srgb, var(--gold) 20%, var(--bg-2)); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.shop-card .status.ok { color: var(--ok); }
.shop-card .status .dep { font-family: var(--font-mono); font-weight: 700; }
/* платные стили карточек — должны бросаться в глаза */
.shop-card.neon { border: 2px solid var(--neon); box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 45%, transparent), 0 0 34px color-mix(in srgb, var(--neon) 60%, transparent), inset 0 0 46px color-mix(in srgb, var(--neon) 9%, transparent); animation: neon-pulse 2.8s ease-in-out infinite; }
.shop-card.neon:hover { animation-play-state: paused; box-shadow: 0 0 0 2px var(--neon), 0 0 56px color-mix(in srgb, var(--neon) 80%, transparent); border-color: var(--neon); }
.shop-card.neon .mark, .shop-card.neon .name { color: var(--neon); text-shadow: 0 0 16px color-mix(in srgb, var(--neon) 65%, transparent); }
@keyframes neon-pulse { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 45%, transparent), 0 0 52px color-mix(in srgb, var(--neon) 85%, transparent), inset 0 0 46px color-mix(in srgb, var(--neon) 12%, transparent); } }
.shop-card.gold { border: 2px solid var(--gold); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, var(--bg-2)), var(--bg-2) 55%, color-mix(in srgb, var(--gold) 8%, var(--bg-2))); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent), 0 10px 34px -14px color-mix(in srgb, var(--gold) 70%, transparent); }
.shop-card.gold:hover { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 14px 40px -14px var(--gold); }
.shop-card.gold .mark, .shop-card.gold .name { color: var(--gold); }
.shop-card.gold .name::after { content: " ★"; font-size: 14px; vertical-align: middle; }
.shop-card.frame { border: 3px solid var(--accent); box-shadow: 0 0 0 1px var(--bg), 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.shop-card.frame::before { content: ""; position: absolute; inset: 7px; border: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 10px; pointer-events: none; }
.shop-card.frame:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--bg), 0 0 0 4px var(--accent); }
.shop-card.frame .mark, .shop-card.frame .name { color: var(--accent); }
.shop-card { position: relative; }
@media (prefers-reduced-motion: reduce) { .shop-card.neon { animation: none; } }

/* ─── Страница магазина ──────────────────────────────────── */
.shop-head { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; margin-top: 10px; }
@media (max-width: 760px) { .shop-head { grid-template-columns: 1fr; } }
.shop-side h1 { font-size: 34px; letter-spacing: -.02em; }
.rating-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 1px; font-size: 18px; line-height: 1; color: var(--line-2); }
.stars span.on { color: var(--warn); }
.stars.sm { font-size: 13px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-pick label { font-size: 26px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--warn); }
.review .reply { border-left: 2px solid var(--accent); padding: 6px 12px; background: var(--bg-3); border-radius: 0 8px 8px 0; }
.reply { border-left: 2px solid var(--accent); padding: 6px 12px; background: var(--bg-3); border-radius: 0 8px 8px 0; }
.ok { color: var(--ok); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 36px 0 44px; border-bottom: 1px solid var(--line); }
.hero .kicker { color: var(--accent); margin-bottom: 14px; }
.hero h1 .accent { color: transparent; background-image: radial-gradient(circle, var(--accent) 36%, transparent 42%); background-size: 5px 5px; background-position: 0 0; -webkit-background-clip: text; background-clip: text; letter-spacing: .01em; }
.hero h1 .accent-dot { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--fg-2); max-width: 520px; }
.hero .actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1.1; }
.hero-art .meta { position: absolute; font-family: var(--font-dot); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.hero-art .meta.tl { left: 0; top: 8px; } .hero-art .meta.tr { right: 0; top: 8px; text-align: right; }
.hero-art .meta.bl { left: 0; bottom: 8px; } .hero-art .meta.br { right: 0; bottom: 8px; text-align: right; }
.hero-art svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 420px; margin: 0 auto; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--font-mono); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.stat .k { color: var(--fg-3); font-size: 12px; font-weight: 600; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ─── Тарифы ─────────────────────────────────────────────── */
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan .price { font-family: var(--font-mono); font-weight: 700; font-size: 36px; letter-spacing: -.03em; }
.plan .price small { font-size: 14px; color: var(--fg-3); font-weight: 500; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "■"; color: var(--accent); font-size: 8px; margin-top: 7px; }
.plan li.off { color: var(--fg-3); } .plan li.off::before { color: var(--line-2); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .tag { position: absolute; top: -11px; left: 20px; }

/* ─── Кабинет ────────────────────────────────────────────── */
.cab { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.cab aside { position: sticky; top: 84px; }
.cab aside .shop-name { font-weight: 800; font-size: 17px; margin-bottom: 2px; }
.cab aside .menu { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.cab aside .menu a { padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--fg-2); display: flex; gap: 10px; align-items: center; }
.cab aside .menu a:hover { background: var(--bg-3); color: var(--fg); }
.cab aside .menu a.active { background: var(--bg-3); color: var(--fg); box-shadow: inset 3px 0 0 var(--accent); }
.cab aside .menu .grp { font-family: var(--font-dot); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); padding: 14px 12px 4px; }
.cab aside .menu a .ico { width: 18px; text-align: center; opacity: .8; }
@media (max-width: 900px) { .cab { grid-template-columns: 1fr; } .cab aside { position: static; } .cab aside .menu { flex-direction: row; flex-wrap: wrap; } .cab aside .menu .grp { width: 100%; } }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--fg-3); font-weight: 600; } .kv dd { margin: 0; }
.tree-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tree-item:last-child { border-bottom: 0; }
.tree-item .indent { width: 18px; flex: none; }
.tree-item .name { font-weight: 700; flex: 1; }
.tree-item .acts { display: flex; gap: 6px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--fg-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--fg); border-bottom-color: var(--accent); }
.tabs .tab { background: none; border: 0; cursor: pointer; padding: 8px 14px; font: inherit; font-weight: 700; font-size: 13px; color: var(--fg-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .tab.on, .tabs .tab:hover { color: var(--fg); border-bottom-color: var(--accent); }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-3); border: 1px solid var(--line); }
.progress { height: 6px; background: var(--bg-4); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }
.codebox { font-family: var(--font-mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps > div { display: flex; gap: 14px; align-items: flex-start; }
.steps > div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-dot); font-weight: 900; color: var(--accent); letter-spacing: .1em; font-size: 14px; margin-top: 2px; }

/* ─── Вход ───────────────────────────────────────────────── */
.auth { max-width: 460px; margin: 40px auto; }
.auth .qr { display: grid; place-items: center; padding: 18px; background: #fff; border-radius: var(--radius); }
.auth .qr svg { width: 180px; height: 180px; }

/* ─── Подвал ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--fg-3); font-size: 13px; }
footer .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
footer { margin-top: 20px; }
footer .dots { font-family: var(--font-dot); letter-spacing: .3em; color: var(--line-2); }
footer .hello { font-family: var(--font-mono); color: var(--fg-2); }
footer .hello::after { content: "_"; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
footer .spacer { flex: 1; }
footer nav { display: flex; gap: 22px; align-items: center; }
footer nav a { color: var(--fg-2); font-weight: 500; } footer nav a:hover { color: var(--fg); }
.lang-select { background: transparent; border: 1px solid var(--line); color: var(--fg-2); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; width: auto; }

/* ─── Утилиты ────────────────────────────────────────────── */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.w-50 { width: 50%; } .maxw-sm { max-width: 560px; } .maxw-md { max-width: 760px; }
.fs-13 { font-size: 13px; } .fs-12 { font-size: 12px; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, var(--bg-3), var(--bg-4), var(--bg-3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Разделы: софты, статьи ─────────────────────────────── */
.nav-ico { position: relative; display: inline-flex; align-items: center; }
.nav-ico svg { width: 20px; height: 20px; }
.nav-ico .cnt { position: absolute; top: -8px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.post-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--fg); transition: border-color var(--t), transform var(--t); }
.post-card:hover { color: var(--fg); border-color: var(--fg-3); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--bg-3); display: grid; place-items: center; color: var(--fg-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-align: center; padding: 0 12px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card .name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.post-card .tag { color: var(--fg-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta, .article-row .meta, .post .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--fg-3); font-size: 12px; margin-top: auto; padding-top: 6px; }
.post-card .meta .accent { color: var(--accent); }
.post .post-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.post h1 { font-size: 34px; letter-spacing: -.02em; margin: 4px 0 6px; }
.post .price-line { font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.shots img { height: 180px; border-radius: 10px; border: 1px solid var(--line); }
.prose { line-height: 1.65; font-size: 16px; }
.prose h2, .prose h3, .prose h4 { margin: 22px 0 8px; letter-spacing: -.01em; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px 22px; }
.prose code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-3); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 0 0 12px; padding: 6px 14px; border-left: 2px solid var(--accent); color: var(--fg-2); }
.prose img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--fg); transition: border-color var(--t); }
.article-row:hover { color: var(--fg); border-color: var(--fg-3); }
.article-row .cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: var(--bg-3); }
.article-row .cover.ph { display: grid; place-items: center; color: var(--fg-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.article-row h3 { margin: 4px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.article-row p { margin: 0; font-size: 14px; }
@media (max-width: 640px) { .article-row { grid-template-columns: 1fr; } }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 20px; }
.article-body { max-width: 780px; }
.comment p { font-size: 14px; }

/* ─── Чат и личные сообщения ──────────────────────────────── */
.chat-wrap { display: flex; flex-direction: column; gap: 14px; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.chat-head h1 { font-size: 34px; }
.chat-log { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; height: 60vh; min-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.chat-log .msg { display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.chat-log .msg:hover { background: var(--bg-3); }
.chat-log .msg.hl { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chat-log .who { font-weight: 700; white-space: nowrap; }
.chat-log .who a::before { content: "@"; color: var(--fg-3); font-weight: 400; }
.chat-log .txt { flex: 1; word-break: break-word; }
.chat-log .txt a { color: var(--accent); }
.chat-log .mention { font-weight: 700; color: var(--fg); }
.chat-log .mention.me { color: var(--accent); }
.chat-log .ts { font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.chat-log .del { all: unset; cursor: pointer; color: var(--fg-3); font-size: 12px; padding: 0 4px; opacity: 0; }
.chat-log .msg:hover .del { opacity: 1; }
.chat-log .del:hover { color: var(--accent); }
.chat-log.dm { height: 55vh; gap: 6px; }
.chat-log.dm .msg { flex-direction: column; gap: 2px; align-items: flex-start; max-width: 78%; background: var(--bg-3); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.chat-log.dm .msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--bg-3)); border-radius: 12px 12px 4px 12px; }
.chat-log.dm .txt { white-space: pre-wrap; }
.chat-form { display: flex; gap: 10px; align-items: flex-start; }
.chat-form .input { flex: 1; }
.dm-row { display: block; color: var(--fg); }
.dm-row.unread { border-color: var(--accent); }

.section-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 18px; }
.section-tools .filter-tabs { flex: 1; min-width: 0; margin: 0; }
.section-tools > .row { flex: none; }
@media (max-width: 640px) { .section-tools { flex-direction: column; align-items: stretch; } }

/* ─── Главная: лента + чат ────────────────────────────────── */
.home-hero { padding: 48px 0 24px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 24px; }
@media (max-width: 980px) { .home-grid { grid-template-columns: 1fr; } }
.home-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 980px) { .home-side { position: static; } }
.post-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .post-grid.three { grid-template-columns: 1fr; } }
.chat-widget { padding: 16px; }
.chat-log.mini { height: 380px; min-height: 0; padding: 8px 10px; font-size: 13px; }
.chat-log.mini .msg { flex-wrap: wrap; padding: 4px 6px; font-size: 13px; }
.chat-log.mini .ts { display: none; }
.chat-form.compact { margin-top: 10px; gap: 8px; }
.chat-form.compact .input { height: 40px; font-size: 14px; }
.chat-form.compact .btn { height: 40px; padding: 0 14px; }
.cta-mini { display: block; color: var(--fg); }
.cta-mini .big { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; }
.cta-mini:hover { color: var(--fg); border-color: var(--accent); }
.cta-mini .btn { width: 100%; }
.stat-col { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.stat-col .stat { padding: 14px 10px; border-right: 1px solid var(--line); text-align: center; }
.stat-col .stat:last-child { border-right: 0; }
.stat-col .stat .v { font-size: 20px; }
.stat-col .stat .k { font-size: 11px; }

/* ─── Поле ввода с эмодзи ────────────────────────────────── */
.chat-input { position: relative; flex: 1; display: flex; }
.chat-input .input { flex: 1; padding-right: 44px; }
.emoji-btn { all: unset; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; font-size: 19px; color: var(--fg-3); line-height: 1; }
.emoji-btn:hover { color: var(--fg); background: var(--bg-3); }
.emoji-panel { display: none; position: absolute; right: 0; bottom: calc(100% + 8px); width: 330px; max-width: 92vw; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); z-index: 30; padding: 8px; }
.emoji-panel.open { display: block; }
.emoji-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
.emoji-tabs button { all: unset; cursor: pointer; flex: 1; text-align: center; font-size: 18px; padding: 4px 0; border-radius: 8px; opacity: .55; }
.emoji-tabs button.on, .emoji-tabs button:hover { opacity: 1; background: var(--bg-3); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 210px; overflow-y: auto; }
.emoji-grid button { all: unset; cursor: pointer; text-align: center; font-size: 21px; line-height: 1; padding: 5px 0; border-radius: 8px; }
.emoji-grid button:hover { background: var(--bg-3); transform: scale(1.15); }
.emoji-grid[hidden], .tab-pane[hidden] { display: none; }
@media (max-width: 640px) { .article-row .cover.ph { display: none; } }

/* ─── Светлая тема: контуры заметнее ─────────────────────── */
:root[data-theme="light"] .card, :root[data-theme="light"] .shop-card, :root[data-theme="light"] .post-card,
:root[data-theme="light"] .article-row, :root[data-theme="light"] .stat-row, :root[data-theme="light"] .stat-col,
:root[data-theme="light"] .chat-log, :root[data-theme="light"] .dm-row { box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 22px -18px rgba(0,0,0,.4); }
:root[data-theme="light"] .input, :root[data-theme="light"] select, :root[data-theme="light"] textarea.input { border-color: var(--line-2); background: #fff; }
:root[data-theme="light"] .search { border-color: var(--line-2); background: #fff; }
:root[data-theme="light"] .topbar { border-bottom: 1px solid var(--line); }
:root[data-theme="light"] .btn { border-color: var(--line-2); }
:root[data-theme="light"] .table th, :root[data-theme="light"] .table td { border-color: var(--line); }
:root[data-theme="light"] .filter-tabs { border-bottom: 1px solid var(--line); }
:root[data-theme="light"] .badge { border-color: var(--line-2); }

/* ─── Динамика ───────────────────────────────────────────── */
body, .card, .topbar, .btn, .input, .shop-card, .post-card, .article-row { transition: background-color .25s ease, border-color .25s ease, color .15s ease, box-shadow .2s ease, transform .16s ease; }
.btn:active { transform: scale(.97); }
/* появление карточек при загрузке — волной */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.shop-grid > *, .post-grid > *, .article-list > *, .stat-row > *, .stat-col > *, .home-side > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.shop-grid > :nth-child(2), .post-grid > :nth-child(2), .article-list > :nth-child(2), .stat-row > :nth-child(2), .stat-col > :nth-child(2), .home-side > :nth-child(2) { animation-delay: .06s; }
.shop-grid > :nth-child(3), .post-grid > :nth-child(3), .article-list > :nth-child(3), .stat-row > :nth-child(3), .stat-col > :nth-child(3), .home-side > :nth-child(3) { animation-delay: .12s; }
.shop-grid > :nth-child(4), .post-grid > :nth-child(4), .article-list > :nth-child(4), .stat-row > :nth-child(4) { animation-delay: .18s; }
.shop-grid > :nth-child(5), .article-list > :nth-child(5) { animation-delay: .24s; }
.shop-grid > :nth-child(n+6), .article-list > :nth-child(n+6) { animation-delay: .3s; }
/* заголовок: красная точка «дышит», по тексту раз проходит блик */
.hero-simple h1 .accent-dot { display: inline-block; animation: dot-breathe 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes dot-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
h1.shiny { background: linear-gradient(100deg, var(--fg) 42%, color-mix(in srgb, var(--fg) 45%, var(--bg)) 50%, var(--fg) 58%); background-size: 260% 100%; background-repeat: repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shine 1.8s ease-in-out .3s 1 both; }
h1.shiny .accent-dot { -webkit-text-fill-color: var(--accent); color: var(--accent); }
@keyframes shine { from { background-position: 0% 0; } to { background-position: 100% 0; } }
/* индикаторы онлайна пульсируют */
.sdot.ok { position: relative; }
.sdot.ok::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.pill.red { animation: pill-glow 2.4s ease-in-out infinite; }
@keyframes pill-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
/* логотип: редкий «глитч» */
.wordmark { position: relative; }
.wordmark:hover .sq, .wordmark .sq { animation: sq-blink 3.2s steps(1) infinite; }
@keyframes sq-blink { 0%, 92%, 100% { opacity: 1; } 94%, 98% { opacity: 0; } }
.glitch { animation: glitch .32s steps(2) 1; }
@keyframes glitch { 0% { text-shadow: 2px 0 var(--accent), -2px 0 var(--neon); transform: translateX(-1px); } 50% { text-shadow: -2px 0 var(--accent), 2px 0 var(--neon); transform: translateX(1px); } 100% { text-shadow: none; transform: none; } }
/* полоска загрузки при переходах */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); z-index: 999; transition: width .3s ease, opacity .3s ease; opacity: 0; pointer-events: none; }
.progress.on { width: 72%; opacity: 1; }
/* новые сообщения в чате въезжают */
.chat-log .msg.new { animation: msg-in .25s ease-out both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* сетка фона медленно плывёт (только на десктопе) */
@media (min-width: 900px) { body { animation: grid-drift 90s linear infinite; } }
@keyframes grid-drift { from { background-position: center top, 0 0, 0 0; } to { background-position: center top, 0 32px, 32px 0; } }

/* ─── Терминал в шапке главной ───────────────────────────── */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: center; }
@media (max-width: 980px) { .home-hero { grid-template-columns: 1fr; } .hero-terminal { display: none; } }
.hero-terminal { background: #0b0b0c; color: #d8d8d2; border: 1px solid #2a2a2e; border-radius: 12px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; padding: 14px 16px 16px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.7), inset 0 0 60px rgba(255,255,255,.02); position: relative; overflow: hidden; animation: rise .5s .2s both; }
.hero-terminal .bar { display: flex; gap: 6px; margin-bottom: 10px; }
.hero-terminal .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2f2f34; display: block; }
.hero-terminal .bar i:first-child { background: var(--accent); }
.hero-terminal .line { white-space: nowrap; overflow: hidden; width: 0; animation: type .9s steps(34, end) forwards; }
.hero-terminal .line.l1 { animation-delay: .4s; }
.hero-terminal .line.l2 { animation-delay: 1.5s; }
.hero-terminal .line.l3 { animation-delay: 2.3s; }
.hero-terminal .line.l4 { animation-delay: 3.1s; }
.hero-terminal .line.l5 { animation-delay: 4.1s; }
.hero-terminal .line .p { color: var(--accent); }
.hero-terminal .line .k { color: #8a8a92; }
.hero-terminal .line .ok { color: #2fbf71; }
.hero-terminal .cur { display: inline-block; width: 8px; height: 14px; background: #d8d8d2; vertical-align: -2px; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes type { from { width: 0; } to { width: 100%; } }
.hero-terminal::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(transparent, rgba(255,255,255,.035), transparent); animation: scan 4s linear 1s infinite; pointer-events: none; }
@keyframes scan { to { top: 110%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hero-terminal .line { width: 100%; }
}

/* ─── Ники: роли и платные стили ─────────────────────────── */
.nick { font-weight: 700; color: var(--fg); text-decoration: none; display: inline-flex; align-items: baseline; gap: 3px; }
.nick .ri { font-style: normal; font-size: .8em; }
/* роли: главный админ — красный с «дыханием» значка, смотрящий — золото, модератор — янтарь */
.nick.role-owner { color: var(--accent); text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 25%, transparent); }
.nick.role-owner .ri { animation: dot-breathe 2.2s ease-in-out infinite; }
.nick.role-overseer { color: var(--gold); text-shadow: 0 0 10px color-mix(in srgb, var(--gold) 50%, transparent); }
.nick.role-overseer .ri { animation: dot-breathe 3s ease-in-out infinite; }
.nick.role-moderator { color: var(--warn); text-shadow: 0 0 8px color-mix(in srgb, var(--warn) 35%, transparent); }
.rb { font-family: var(--font-dot); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; vertical-align: middle; border: 1px solid currentColor; line-height: 1.4; white-space: nowrap; }
.rb-owner { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); animation: pill-glow 2.4s ease-in-out infinite; }
.rb-overseer { color: #15130c; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 45%, transparent); }
.rb-moderator { color: var(--warn); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
/* карточка профиля для ролей */
.prof-head.pr-owner { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 40px color-mix(in srgb, var(--accent) 18%, transparent); }
.prof-head.pr-owner .avatar { border-color: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.prof-head.pr-overseer { border-color: color-mix(in srgb, var(--gold) 70%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent), 0 0 36px color-mix(in srgb, var(--gold) 15%, transparent); }
.prof-head.pr-overseer .avatar { border-color: var(--gold); }
.prof-head.pr-moderator { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
.prof-head.pr-moderator .avatar { border-color: var(--warn); }
.chat-log .who .rb { margin-left: 4px; }
.utitle { font-family: var(--font-dot); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.utitle.big-title { font-size: 12px; margin-top: 4px; color: var(--fg-2); }
.nick.ns-neon { color: var(--neon); text-shadow: 0 0 8px color-mix(in srgb, var(--neon) 70%, transparent), 0 0 18px color-mix(in srgb, var(--neon) 35%, transparent); }
.nick.ns-gold { background: linear-gradient(90deg, #f2d27a, #b8860b, #f7e3a1, #c9a227); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ns-shift 4s linear infinite; }
.nick.ns-fire { background: linear-gradient(90deg, #ff3b30, #ff8a00, #ffd166, #ff3b30); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ns-shift 2.5s linear infinite; }
.nick.ns-rainbow { background: linear-gradient(90deg, #ff3b30, #ffb000, #2fbf71, #19d3ff, #6c5ce7, #ff3b30); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ns-shift 6s linear infinite; }
.nick.ns-glitch:hover { animation: glitch .3s steps(2) infinite; }
.nick.ns-ghost { opacity: .45; filter: blur(.3px); transition: opacity .2s, filter .2s; }
.nick.ns-ghost:hover { opacity: 1; filter: none; }
@keyframes ns-shift { to { background-position: 200% 0; } }
.chat-log .who .nick::before { content: none; }
.style-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.style-opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.style-opt:has(input:checked) { border-color: var(--accent); }
.style-opt input { display: none; }
.style-opt .nick { font-size: 15px; }

/* ─── Достижения и стена ─────────────────────────────────── */
/* ─── Достижения: плитки с SVG-иконками, редкость, блик ──── */
.ach-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ach-ico.sm { width: 16px; height: 16px; }
.ach-item { position: relative; display: inline-block; outline: none; }
.ach-item::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translate(-50%, 4px); width: max-content; max-width: 240px; padding: 7px 10px; border-radius: 9px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ach-item:hover::before, .ach-item:focus::before { opacity: 1; transform: translate(-50%, 0); }
.ach-badge { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); color: var(--fg-2); overflow: hidden; isolation: isolate; cursor: help; transition: transform .15s, border-color .15s, box-shadow .15s; }
.ach-badge.lg { width: 56px; height: 56px; border-radius: 16px; cursor: default; }
.ach-badge.lg .ach-ico { width: 28px; height: 28px; }
.ach-badge::after { content: ""; position: absolute; top: -70%; bottom: -70%; left: 0; width: 45%; background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%); transform: translateX(-280%) rotate(18deg); animation: ach-shine 7.5s ease-in-out infinite; animation-delay: var(--d, 0s); pointer-events: none; mix-blend-mode: screen; }
[data-theme="light"] .ach-badge::after { background: linear-gradient(100deg, transparent 0%, color-mix(in srgb, currentColor 40%, transparent) 50%, transparent 100%); mix-blend-mode: normal; }
@keyframes ach-shine { 0%, 76% { transform: translateX(-280%) rotate(18deg); } 90%, 100% { transform: translateX(380%) rotate(18deg); } }
.ach-item:hover .ach-badge, .ach:hover .ach-badge { transform: translateY(-2px) scale(1.06); }
.ach-badge.t-rare { color: var(--neon); border-color: color-mix(in srgb, var(--neon) 55%, var(--line)); background: color-mix(in srgb, var(--neon) 10%, var(--bg-3)); box-shadow: 0 0 12px color-mix(in srgb, var(--neon) 22%, transparent); }
.ach-badge.t-epic { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 65%, var(--line)); background: color-mix(in srgb, var(--gold) 12%, var(--bg-3)); box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 28%, transparent); }
.ach-badge.t-epic::after { background: linear-gradient(100deg, transparent 0%, rgba(255,232,160,.8) 50%, transparent 100%); }
.ach-badge.t-secret { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--bg-3)); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.ach-badge.t-secret .ach-ico { animation: dot-breathe 3s ease-in-out infinite; }
.ach-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.ach-row.left { justify-content: flex-start; margin-top: 14px; }
.ach-more { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--fg-3); line-height: 1.1; }
.ach-more b { font-size: 13px; color: var(--fg); } .ach-more span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.ach-more:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.ach-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 4px; color: var(--fg-3); }
.ach-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ach-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--fg-3); }
.ach-legend .t-rare i { background: var(--neon); } .ach-legend .t-epic i { background: var(--gold); } .ach-legend .t-secret i { background: var(--accent); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 16px; }
.ach { display: flex; align-items: center; gap: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, transform .15s; }
.ach:not(.have) { opacity: .6; }
.ach:not(.have) .ach-badge { color: var(--fg-3); border-color: var(--line); background: var(--bg-3); box-shadow: none; }
.ach:not(.have) .ach-badge::after { display: none; }
.ach:not(.have) .ach-badge .ach-ico { opacity: .35; }
.ach-lock { position: absolute; width: 14px; height: 14px; right: 5px; bottom: 5px; fill: none; stroke: var(--fg-3); stroke-width: 2; }
.ach.have.t-rare { border-color: color-mix(in srgb, var(--neon) 45%, var(--line)); }
.ach.have.t-epic { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 7%, var(--bg-2)), var(--bg-2) 60%); }
.ach.have.t-secret { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ach.have.t-common { border-color: var(--line-2); }
.ach .ach-txt { min-width: 0; }
.ach .tier { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.ach.have.t-rare .tier { color: var(--neon); } .ach.have.t-epic .tier { color: var(--gold); } .ach.have.t-secret .tier { color: var(--accent); }
.ach .cnt { margin-left: auto; font-size: 12px; color: var(--fg-3); white-space: nowrap; }

/* ─── Профиль ────────────────────────────────────────────── */
.prof { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.prof-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 26px; padding: 22px; }
.prof-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.prof-ava { position: relative; width: 150px; height: 150px; margin-bottom: 4px; }
.prof-ava .avatar { width: 100%; height: 100%; border-radius: 22px; object-fit: cover; border: 1px solid var(--line-2); display: block; }
.prof-ava .avatar.ph { display: grid; place-items: center; background: var(--bg-3); font-size: 44px; font-weight: 700; color: var(--fg-2); }
.prof-ava.sm { width: 84px; height: 84px; margin: 0; } .prof-ava.sm .avatar { border-radius: 18px; } .prof-ava.sm .avatar.ph { font-size: 26px; }
.online-dot { position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 3px solid var(--bg-2); box-shadow: 0 0 10px var(--ok); }
.online { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: dot-breathe 1.8s ease-in-out infinite; }
.w-100 { width: 100%; }
.btn-tg { border-color: color-mix(in srgb, #2aabee 55%, var(--line-2)); color: #2aabee; }
.btn-tg:hover { background: color-mix(in srgb, #2aabee 14%, var(--bg-2)); color: #2aabee; border-color: #2aabee; }
.prof-main { min-width: 0; }
.prof-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.prof-nick { margin: 0; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.prof-nick .nick { display: inline-flex; align-items: center; }
.prof-nick .rb { font-size: 10px; margin-left: 6px; vertical-align: 8px; }
.prof-seen { text-align: right; display: flex; gap: 8px; align-items: center; padding-top: 10px; }
.prof-bio { margin: 12px 0 0; color: var(--fg-2); white-space: pre-wrap; word-break: break-word; line-height: 1.5; max-width: 70ch; }
.prof-kv { margin-top: 14px; gap: 4px 16px; }
.prof-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; gap: 4px; }
.pstat { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1 1 90px; padding: 8px 6px; border-radius: 10px; color: var(--fg-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pstat b { font-size: 20px; color: var(--fg); letter-spacing: 0; }
.pstat:hover { background: var(--bg-3); color: var(--fg-2); text-decoration: none; }
.pstat:hover b { color: var(--accent); }
.prof-body { padding-top: 6px; }
.prof-tabs { margin: 0 0 16px; }
.prof-tabs .tab { white-space: nowrap; }
.prof-tabs .tab .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-left: 3px; }
.prof-tabs .tab.on .cnt { color: var(--accent); }
.prof-body .empty { padding: 28px 10px; }
.card-link { display: block; } .card-link:hover { border-color: var(--line-2); text-decoration: none; }
.me-head { display: flex; gap: 16px; align-items: center; }
.nav-user .nick { font-size: 15px; } .nav-user .rb { display: none; }
@media (max-width: 860px) {
  .prof-head { grid-template-columns: 1fr; padding: 16px; }
  .prof-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .prof-ava { width: 96px; height: 96px; } .prof-ava .avatar.ph { font-size: 30px; }
  .prof-side .btn { width: auto; flex: 1 1 120px; }
  .prof-seen { text-align: left; padding-top: 0; }
  .prof-nick { font-size: 26px; }
}

.wall { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wall-post { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; animation: rise .35s both; }
.wall-form { display: flex; gap: 10px; align-items: center; }
.shop-grid.two { grid-template-columns: repeat(2, 1fr); }

/* ─── Фильтры каталога ───────────────────────────────────── */
.filters { display: flex; flex-direction: column; gap: 10px; margin: -8px 0 22px; }
.frow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.frow .dot-label { min-width: 72px; }
.shop-card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.shop-card .tags span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: var(--fg-2); }
.shop-card .tags span.geo { font-size: 12px; padding: 1px 5px; }

/* ─── Правила ─── */
.rules { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.rules-toc { position: sticky; top: 84px; padding: 14px 16px; }
.rules-toc .idx { font-family: var(--font-dot); font-weight: 700; color: var(--accent); letter-spacing: .12em; font-size: 12px; margin-bottom: 8px; }
.rules-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rules-toc a { display: flex; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--fg-2); font-size: 13.5px; line-height: 1.3; border-left: 2px solid transparent; }
.rules-toc a .mono { color: var(--accent); flex: 0 0 auto; }
.rules-toc a:hover, .rules-toc a.on { background: var(--bg-3); color: var(--fg); border-left-color: var(--accent); text-decoration: none; }
.rules-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rules-intro { display: flex; gap: 14px; align-items: flex-start; border-color: var(--line-2); }
.rules-intro p { margin: 2px 0 0; color: var(--fg-2); line-height: 1.55; }
.rules-sec h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.01em; display: flex; gap: 10px; align-items: baseline; }
.rules-sec h2 .mono { font-size: 14px; }
.rules-sec ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rules-sec li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 9px 6px; border-top: 1px dashed var(--line); line-height: 1.55; scroll-margin-top: 90px; }
.rules-sec li:first-child { border-top: 0; }
.rules-sec li:target { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 8px; }
.rules-sec .anchor { color: var(--fg-3); font-size: 12px; padding-top: 3px; }
.rules-sec .anchor:hover { color: var(--accent); text-decoration: none; }
.rules-sec.reveal { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.rules-sec.reveal:nth-child(3) { animation-delay: .06s; } .rules-sec.reveal:nth-child(4) { animation-delay: .12s; } .rules-sec.reveal:nth-child(5) { animation-delay: .18s; }
.rules-foot { font-size: 13px; padding: 12px 16px; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } .rules-toc { position: static; } }

/* ─── Симпатии ─── */
.like-form { display: inline-block; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s, transform .15s; text-decoration: none; }
.like-btn .heart { color: var(--fg-3); transition: color .15s, transform .2s; }
.like-btn:hover { border-color: var(--accent); color: var(--fg); text-decoration: none; }
.like-btn:hover .heart { color: var(--accent); transform: scale(1.15); }
.like-btn.on, .like-btn.static { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); cursor: default; }
.like-btn.on .heart, .like-btn.static .heart { color: var(--accent); text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.like-btn .cnt { font-family: var(--font-mono); color: var(--accent); }
.like-btn[disabled] { opacity: 1; }
.like-btn.pop .heart { animation: heart-pop .45s cubic-bezier(.2,.8,.2,1.4); }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }
.like-wrap .like-btn { width: 100%; justify-content: center; }
.pstat.hot b { color: var(--accent); }
.comment .like-btn { padding: 3px 9px; font-size: 12px; }
/* ─── Уведомления ─── */
.notif { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; color: var(--fg); padding: 12px 16px; }
.notif:hover { border-color: var(--line-2); text-decoration: none; }
.notif.unread { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--bg-2)); }
.notif-ico { font-size: 18px; text-align: center; }
.notif-text { font-size: 14px; line-height: 1.4; }
/* ─── Розыгрыши ─── */
.raffle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.raffle-card { display: block; color: var(--fg); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.raffle-card:hover { border-color: var(--gold); text-decoration: none; box-shadow: 0 0 24px color-mix(in srgb, var(--gold) 18%, transparent); }
.raffle-card.joined { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.raffle-card h3 { font-size: 18px; }
.raffle-prize { text-align: right; }
.raffle-prize .prize-label { font-size: 18px; font-weight: 800; margin-top: 6px; color: var(--gold); }
.raffle-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.raffle-stats .pstat { flex: 0 1 160px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.fans a { font-weight: 600; }
.raffle-mini { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.raffle-line { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px dashed var(--line); color: var(--fg); }
.raffle-line:first-of-type { border-top: 0; }
.raffle-line:hover { text-decoration: none; color: var(--gold); }
.likes-mini { color: var(--accent); }

/* ─── Ранги по симпатиям ─── */
.rank { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-dot); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; border: 1px solid currentColor; vertical-align: middle; line-height: 1.5; white-space: nowrap; }
.rank i { font-style: normal; font-size: 11px; }
.rank.r-novice { color: var(--fg-3); border-color: var(--line-2); }
.rank.r-warm { color: #e0a24a; background: color-mix(in srgb, #e0a24a 10%, transparent); }
.rank.r-seasoned { color: var(--neon); background: color-mix(in srgb, var(--neon) 10%, transparent); text-shadow: 0 0 8px color-mix(in srgb, var(--neon) 50%, transparent); }
.rank.r-guru { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); border-color: color-mix(in srgb, var(--gold) 80%, transparent); text-shadow: 0 0 10px color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 25%, transparent); }
.rank.r-guru i { animation: dot-breathe 2.4s ease-in-out infinite; }
.rank.r-legend { color: #fff; border: 0; background: linear-gradient(90deg, var(--accent), var(--gold), var(--neon), var(--accent)); background-size: 300% 100%; animation: ns-shift 5s linear infinite; box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 32px color-mix(in srgb, var(--gold) 25%, transparent); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.rank.r-legend i { animation: legend-spin 3s linear infinite; display: inline-block; }
@keyframes legend-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.prof-rank { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.prof-rank .rank { font-size: 11px; padding: 3px 9px; }
.rank-next { font-size: 12px; color: var(--fg-3); }
.rank-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rank-bar { height: 6px; border-radius: 3px; background: var(--bg-3); margin: 10px 0 8px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 3px; }
.rank-scale { display: flex; gap: 10px; flex-wrap: wrap; color: var(--fg-3); }
.rank-scale .cur { color: var(--fg); font-weight: 700; }
.rank-scale .r-warm.cur { color: #e0a24a; } .rank-scale .r-seasoned.cur { color: var(--neon); } .rank-scale .r-guru.cur, .rank-scale .r-legend.cur { color: var(--gold); }
/* ─── Скрытый текст ─── */
.hide-block.locked { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 16px; color: var(--fg-3); background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--fg-3) 8%, transparent) 8px 9px); margin: 12px 0; font-size: 14px; }
.hide-block.locked .lock { margin-right: 6px; }
.hide-block.open { border-left: 3px solid var(--accent); padding: 4px 14px; margin: 12px 0; background: color-mix(in srgb, var(--accent) 5%, transparent); border-radius: 0 10px 10px 0; }
/* ─── Модерация в профиле ─── */
.warn-row, .note-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.warn-row.dim { opacity: .55; }
.red { color: var(--accent); }
/* ─── Лента / топ ─── */
.feed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .feed-grid { grid-template-columns: 1fr; } }
.feed-item { display: block; color: var(--fg); }
.feed-title { display: block; font-weight: 700; font-size: 17px; margin: 6px 0 4px; color: var(--fg); text-decoration: none; }
.feed-title:hover { color: var(--accent); }
.top-users .uod { padding: 8px 0 6px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; flex-wrap: wrap; }
.top-row .spacer-r { margin-left: auto; color: var(--accent); }
/* ─── Споры ─── */
.dispute-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .dispute-grid { grid-template-columns: 1fr; } }
.dispute-row { display: block; color: var(--fg); }
.card.dim { opacity: .7; }
.timeline .tl-item { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.timeline .tl-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); margin-top: 5px; flex: none; }
.timeline .tl-item.open i { background: var(--accent); } .timeline .tl-item.reply i { background: var(--neon); }
.timeline .tl-item.resolved i { background: var(--ok); } .timeline .tl-item.rejected i { background: var(--accent); }
.timeline .tl-item.wait i { background: transparent; border: 1px dashed var(--fg-3); animation: dot-breathe 2s ease-in-out infinite; }

/* ─── Каталог: живая точка в меню, фильтры, закреп ───────── */
.topbar nav.main a.nav-live { padding: 5px 13px; border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); border-radius: 999px; border-bottom-width: 1px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 0%, transparent), 0 0 12px color-mix(in srgb, var(--ok) 18%, transparent); transition: box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.topbar nav.main a.nav-live:hover { border-color: var(--ok); box-shadow: 0 0 16px color-mix(in srgb, var(--ok) 32%, transparent); border-bottom-color: var(--ok); }
.topbar nav.main a.nav-live.active { color: var(--fg); background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 75%, transparent); border-bottom-color: color-mix(in srgb, var(--ok) 75%, transparent); }
@media (max-width: 860px) { .topbar nav.main a.nav-live { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 10px 4px; background: none; box-shadow: inset 3px 0 0 var(--ok); padding-left: 10px; } }

.filters.card { padding: 14px 18px; gap: 10px; margin: -6px 0 22px; }
.filters .frow { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px 14px; }
.filters .flabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.filters .fchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.filters .chip { padding: 5px 12px; }
.filters .chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters .geo-input { width: 300px; max-width: 100%; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.input.err { border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
@media (max-width: 640px) { .filters .frow { grid-template-columns: 1fr; gap: 6px; } .filters.card { padding: 12px 14px; } .filters .geo-input { width: 100%; } }

.pinned-block { margin: 0 0 26px; padding: 16px 18px 18px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold) 5%, var(--bg)); }
.pinned-block .dot-label { color: var(--gold); }
.pinned-grid { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.shop-card.pinned { border-color: color-mix(in srgb, var(--gold) 65%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent), 0 10px 30px color-mix(in srgb, var(--gold) 12%, transparent); }
.shop-card.pinned:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), 0 14px 36px color-mix(in srgb, var(--gold) 18%, transparent); }
.badge.gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 12%, var(--bg-3)); }
.pin-card { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
@media (max-width: 860px) { .pinned-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pinned-grid { grid-template-columns: 1fr; } }

/* выбор гео в кабинете */
.geo-pick .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 20px; }
.geo-pick .chip.on { gap: 8px; }
.geo-pick .chip .x { all: unset; cursor: pointer; font-size: 11px; color: var(--fg-3); padding: 0 2px; }
.geo-pick .chip .x:hover { color: var(--accent); }
pre.code { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-family: var(--font-mono); line-height: 1.5; white-space: pre; margin: 8px 0 12px; }

/* ─── Страница магазина: ассортимент и наличие ──────────── */
.stock-groups { display: flex; flex-direction: column; gap: 14px; }
.stock-group { padding: 14px 18px; }
.stock-head { gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.stock-rows { display: flex; flex-direction: column; }
.stock-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.stock-row .thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.stock-row .sname { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.stock-row .sprice { font-size: 14px; }
.stock-row.out .sname, .stock-row.out .sprice { color: var(--fg-3); }
.stock-row .sbuy { min-width: 86px; text-align: right; }
@media (max-width: 640px) { .stock-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "stock buy"; gap: 6px 10px; }
  .stock-row .thumb { display: none; } .stock-row .sname { grid-area: name; } .stock-row .sprice { grid-area: price; } .stock-row .sstock { grid-area: stock; } .stock-row .sbuy { grid-area: buy; } }

/* ─── Реклама ────────────────────────────────────────────── */
.ad-banner { position: relative; margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.ad-banner img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover; }
.ad-banner .ad-label { position: absolute; top: 8px; right: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--fg-2); backdrop-filter: blur(4px); }
.ad-banner .ad-text { position: absolute; left: 12px; bottom: 8px; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--fg); backdrop-filter: blur(4px); }
.ads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 14px; }
.ad-offer .price-line { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; }
.ad-offer .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 960px) { .ads-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ads-grid { grid-template-columns: 1fr; } }

/* ─── Обложка профиля ────────────────────────────────────── */
.prof-head.has-cover { background-image: linear-gradient(90deg, color-mix(in srgb, var(--bg-2) 92%, transparent) 0%, color-mix(in srgb, var(--bg-2) 78%, transparent) 45%, color-mix(in srgb, var(--bg-2) 45%, transparent) 100%), var(--cover);
  background-size: cover; background-position: center; }
.prof-head.has-cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent); }
.prof-head.has-cover .prof-stats { background: color-mix(in srgb, var(--bg-2) 80%, transparent); border-radius: 12px; padding: 6px 10px; backdrop-filter: blur(6px); }
.cover-preview { height: 90px; border-radius: 10px; border: 1px solid var(--line); background-size: cover; background-position: center; margin-bottom: 8px; }
@media (max-width: 860px) { .prof-head.has-cover { background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 70%, transparent) 0%, color-mix(in srgb, var(--bg-2) 92%, transparent) 55%, var(--bg-2) 100%), var(--cover); } }

/* ─── Мобильные правки ───────────────────────────────────── */
.prof-ava { flex: 0 0 auto; }
.tabs .tab { white-space: nowrap; flex: 0 0 auto; }
.tabs { scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
@media (max-width: 860px) {
  .topbar .right { gap: 10px; }
  .burger { padding: 6px 0 6px 2px; }
  .topbar .container { gap: 10px; }
}
@media (max-width: 900px) {
  /* меню кабинета — горизонтальная лента чипов вместо колонки */
  .cab aside .menu { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin-top: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cab aside .menu::-webkit-scrollbar { display: none; }
  .cab aside .menu .grp { display: none; }
  .cab aside .menu a { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; white-space: nowrap; }
  .cab aside .menu a.active { box-shadow: none; background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .cab aside .menu a .ico { display: none; }
}
@media (max-width: 640px) {
  .chat-log { height: calc(100vh - 360px); min-height: 280px; }
  .hero-simple h1 { font-size: 40px; }
}
.cab > * { min-width: 0; }
.cab aside .menu { max-width: 100%; }
.me-head { flex-wrap: wrap; } .me-head > div { flex: 1 1 200px; min-width: 0; }

/* удаление магазина в админке */
.del-details { display: inline-block; position: relative; vertical-align: middle; }
.del-details summary { list-style: none; cursor: pointer; } .del-details summary::-webkit-details-marker { display: none; }
.del-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; padding: 12px; background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 12px; box-shadow: 0 12px 30px color-mix(in srgb, #000 35%, transparent); text-align: left; white-space: normal; }


/* ─── Чат: ответы и цитаты ───────────────────────────────── */
.chat-log .rep { all: unset; cursor: pointer; color: var(--fg-3); font-size: 13px; padding: 0 4px; opacity: 0; }
.chat-log .msg:hover .rep { opacity: 1; }
.chat-log .rep:hover { color: var(--accent); }
.chat-log .quote { display: block; font-size: 12px; color: var(--fg-2); border-left: 2px solid color-mix(in srgb, var(--accent) 60%, var(--line-2)); padding: 1px 8px; margin: 0 0 3px; border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--fg) 4%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; text-decoration: none; }
.chat-log .txt a.quote { color: var(--fg-2); }
.chat-log .quote b { color: var(--fg); margin-right: 4px; }
.chat-log .quote:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chat-log .msg.flash-hl { background: color-mix(in srgb, var(--accent) 22%, transparent); transition: background .6s ease; }
.chat-form { flex-wrap: wrap; }
.reply-bar { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line-2)); margin-bottom: 4px; min-width: 0; }
.reply-bar .rarrow { color: var(--accent); }
.reply-bar .qt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.reply-bar .x { all: unset; cursor: pointer; color: var(--fg-3); padding: 0 4px; } .reply-bar .x:hover { color: var(--accent); }
@media (max-width: 640px) { .chat-log .rep, .chat-log .del { opacity: .6; } }

/* ─── Стена: картинки ───────────────────────────────────── */
.wall-form { flex-wrap: wrap; }
.wall-form .attach { padding: 8px 12px; cursor: pointer; }
.attach-preview { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-2); }
.attach-preview img { height: 56px; border-radius: 8px; border: 1px solid var(--line); }
.wall-img { display: block; margin-top: 8px; max-width: 420px; }
.wall-img img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.img-row { gap: 8px; align-items: center; }

.report-details summary { list-style: none; cursor: pointer; } .report-details summary::-webkit-details-marker { display: none; }
.report-form { padding: 10px; }
