/* ============================================================
   Невод — дизайн-система (портирована из Claude Design handoff)
   Токены: nevod-theme.css; компоненты и раскладка — по макетам.
   Тема: html.nv[data-theme="dark"|"light"], по умолчанию тёмная.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800&family=Golos+Text:wght@400;600;800&display=swap');

/* ---------- Токены (тёмная тема) ---------- */
.nv {
  --color-bg: #0d1218;
  --color-surface: #151c25;
  --color-text: #e6ecf2;
  --color-divider: color-mix(in srgb, #e6ecf2 30%, transparent);
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;

  --color-neutral-100: #111820;
  --color-neutral-200: #19222c;
  --color-neutral-300: #243040;
  --color-neutral-400: #364457;
  --color-neutral-500: #5a6a7c;
  --color-neutral-600: #8494a5;
  --color-neutral-700: #aab8c6;
  --color-neutral-800: #cdd7e0;
  --color-neutral-900: #eaeff4;

  --color-accent-100: #331109;
  --color-accent-200: #4a150b;
  --color-accent-300: #6f1a0d;
  --color-accent-400: #a82311;
  --color-accent-500: #ec3013;
  --color-accent-600: #ff5a3d;
  --color-accent-700: #ff8a73;
  --color-accent-800: #ffbdae;
  --color-accent-900: #ffe3db;

  --color-accent-2-100: #33140d;
  --color-accent-2-200: #4a1a11;
  --color-accent-2-300: #6f2417;
  --color-accent-2-400: #a5361f;
  --color-accent-2-500: #ef6853;
  --color-accent-2-600: #ff8a73;
  --color-accent-2-700: #ffab99;
  --color-accent-2-800: #ffc9bd;
  --color-accent-2-900: #ffe6df;

  --nv-club-lok: #cf1e2e; --nv-club-lok-r: #1c3f94;
  --nv-club-cska: #21409a; --nv-club-cska-r: #cf1e2e;
  --nv-club-ska: #0c5aa6; --nv-club-ska-r: #e8eef5;
  --nv-club-din: #1560bd; --nv-club-din-r: #e8eef5;
  --nv-club-akb: #157a41; --nv-club-akb-r: #e8eef5;
  --nv-club-tra: #22262c; --nv-club-tra-r: #e8eef5;
  --nv-club-avg: #8f1d21; --nv-club-avg-r: #22262c;
  --nv-club-mmg: #22262c; --nv-club-mmg-r: #d2451e;
  --nv-club-spa: #d2242e; --nv-club-spa-r: #e8eef5;
  --nv-club-sib: #0f7db0; --nv-club-sib-r: #e8eef5;

  --nv-ice: #7fc7ef;
  --nv-ice-dim: color-mix(in srgb, #7fc7ef 55%, var(--color-text));
  --nv-ice-bg: color-mix(in srgb, #7fc7ef 12%, transparent);
  --nv-success: #35c28e;
  --nv-success-bg: color-mix(in srgb, #35c28e 14%, transparent);
  --nv-warning: #ffb020;
  --nv-warning-bg: color-mix(in srgb, #ffb020 14%, transparent);
  --nv-danger: var(--color-accent-600);
  --nv-danger-bg: color-mix(in srgb, #ec3013 16%, transparent);
  --nv-info: var(--nv-ice);
  --nv-info-bg: var(--nv-ice-bg);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px rgba(255,255,255,.05), 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 0 0 1px rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.5);
  --shadow-lg: 0 0 0 1px rgba(255,255,255,.07), 0 20px 48px rgba(0,0,0,.65);

  --grad-accent: linear-gradient(135deg, #e65a40 0%, #cf3418 70%, #b32508 100%);
  --grad-accent-hover: linear-gradient(135deg, #f0684e, #e04324);
  --grad-surface: linear-gradient(180deg, #1a2330, #141b24);
  --grad-header: linear-gradient(180deg, #131a23, #0d1218);
  --grad-ice: linear-gradient(135deg, color-mix(in srgb, #7fc7ef 22%, transparent), color-mix(in srgb, #7fc7ef 6%, transparent));

  --font-display: "Archivo", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", "Archivo", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --nv-overlay: color-mix(in srgb, #05070a 60%, transparent);
  --nv-scheme: dark;
  color-scheme: dark;
}

/* ---------- Токены (светлая тема) ---------- */
.nv[data-theme="light"] {
  --color-bg: #f0f3f6;
  --color-surface: #e5eaef;
  --color-text: #1a2029;
  --color-divider: color-mix(in srgb, #1a2029 40%, transparent);

  --color-neutral-100: #f6f8fa;
  --color-neutral-200: #e7ebef;
  --color-neutral-300: #d2d9df;
  --color-neutral-400: #b3bcc6;
  --color-neutral-500: #939ea9;
  --color-neutral-600: #75808b;
  --color-neutral-700: #58636e;
  --color-neutral-800: #3d4751;
  --color-neutral-900: #272f38;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --nv-ice: #1273a8;
  --nv-ice-dim: color-mix(in srgb, #1273a8 75%, var(--color-text));
  --nv-ice-bg: color-mix(in srgb, #1273a8 10%, transparent);
  --nv-success: #178f5c;
  --nv-success-bg: color-mix(in srgb, #178f5c 12%, transparent);
  --nv-warning: #a06c00;
  --nv-warning-bg: color-mix(in srgb, #ffb020 18%, transparent);
  --nv-danger: #dd2b0f;
  --nv-danger-bg: color-mix(in srgb, #dd2b0f 10%, transparent);

  --shadow-sm: 0 0 0 1px color-mix(in srgb, #2d2b2b 14%, transparent), 0 1px 3px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 0 0 1px color-mix(in srgb, #2d2b2b 14%, transparent), 0 6px 18px color-mix(in srgb, #2d2b2b 18%, transparent);
  --shadow-lg: 0 0 0 1px color-mix(in srgb, #2d2b2b 14%, transparent), 0 20px 48px color-mix(in srgb, #2d2b2b 26%, transparent);

  --grad-accent: linear-gradient(135deg, #ef5238, #d32d10);
  --grad-accent-hover: linear-gradient(135deg, #f46a52, #e04324);
  --grad-surface: linear-gradient(180deg, #eef1f5, #e2e8ee);
  --grad-header: linear-gradient(180deg, #f6f8fa, #eef1f5);
  --grad-ice: linear-gradient(135deg, color-mix(in srgb, #1273a8 14%, transparent), color-mix(in srgb, #1273a8 4%, transparent));
  --nv-overlay: color-mix(in srgb, #1a2029 45%, transparent);
  --nv-scheme: light;
  color-scheme: light;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html.nv { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); -webkit-text-size-adjust: 100%; }
.nv body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.nv a { color: var(--color-accent-600); text-decoration: none; }
.nv a:hover { text-decoration: underline; }
.nv h1, .nv h2, .nv h3, .nv h4, .nv h5, .nv h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.nv h1 { font-size: 40px; text-transform: uppercase; letter-spacing: -.02em; }
.nv h2 { font-size: 26px; }
.nv h3 { font-size: 20px; }
.nv h4 { font-size: 16px; }
.nv h5 { font-size: 14px; }
.nv h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.nv p { margin: 0; }
.nv img { max-width: 100%; }
.nv code, .nv pre { font-family: var(--font-mono); }
.nv table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.nv button, .nv input, .nv select, .nv textarea { font: inherit; color: inherit; }
.nv ::selection { background: color-mix(in srgb, var(--color-accent) 45%, transparent); }
.nv .text-muted, .nv .muted { color: var(--color-neutral-600); }
.nv .tabular { font-variant-numeric: tabular-nums; }
.nv .hide { display: none !important; }
.nv [hidden] { display: none !important; }
.nv .nowrap { white-space: nowrap; }
.nv .grow { flex: 1; min-width: 0; }
.nv .right { margin-left: auto; }
.nv .center { text-align: center; }
.nv .small { font-size: 12px; }
.nv .success { color: var(--nv-success); }
.nv .danger { color: var(--nv-danger); }
.nv .warning { color: var(--nv-warning); }
.nv .ice { color: var(--nv-ice); }

/* Заголовок раздела */
.nv .sec-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent-600); border-bottom: 2px solid var(--color-divider); padding-bottom: 8px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nv .sec-label .right { margin-left: auto; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--color-neutral-600); font-size: 12px; display: flex; gap: 8px; align-items: center; }
.nv .page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.nv .page-head .sub { color: var(--color-neutral-600); font-size: 13px; }
.nv .page-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Кнопки ---------- */
.nv .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .05s; background: var(--color-neutral-200); color: var(--color-text); }
.nv .btn:active { transform: translateY(1px); }
.nv .btn:disabled, .nv .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.nv .btn-primary { background: var(--grad-accent); color: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.nv .btn-primary:hover { background: var(--grad-accent-hover); color: #fff; }
.nv .btn-secondary { background: var(--color-neutral-200); border-color: var(--color-neutral-400); color: var(--color-text); }
.nv .btn-secondary:hover { background: var(--color-neutral-300); }
.nv .btn-ghost { background: transparent; color: var(--color-neutral-700); }
.nv .btn-ghost:hover { background: var(--color-neutral-200); color: var(--color-text); }
.nv .btn-danger { color: var(--nv-danger); }
.nv .btn-ghost.btn-danger:hover { background: var(--nv-danger-bg); }
.nv .btn-secondary.btn-danger { border-color: color-mix(in srgb, var(--nv-danger) 45%, transparent); }
.nv .btn-success { background: var(--nv-success); color: #fff; }
.nv .btn-success:hover { filter: brightness(1.08); }
.nv .btn-ice { background: var(--nv-ice-bg); color: var(--nv-ice); border-color: color-mix(in srgb, var(--nv-ice) 35%, transparent); }
.nv .btn-block { width: 100%; }
.nv .btn-sm { padding: 4px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.nv .btn-md { padding: 7px 12px; font-size: 12px; }
.nv .btn-lg { padding: 12px 20px; font-size: 15px; }
.nv .btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Теги ---------- */
.nv .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; letter-spacing: .02em; }
.nv .tag-neutral { background: var(--color-neutral-200); color: var(--color-neutral-700); border: 1px solid var(--color-neutral-300); }
.nv .tag-accent { background: var(--grad-accent); color: #fff; }
.nv .tag-outline { background: transparent; color: var(--color-neutral-700); border: 1px solid var(--color-neutral-400); }
.nv .tag-ice { background: var(--nv-ice-bg); color: var(--nv-ice); }
.nv .tag-success { background: var(--nv-success-bg); color: var(--nv-success); }
.nv .tag-warning { background: var(--nv-warning-bg); color: var(--nv-warning); }
.nv .tag-danger { background: var(--nv-danger-bg); color: var(--nv-danger); }
.nv .tag-live { background: var(--nv-danger-bg); color: var(--nv-danger); animation: nv-pulse 1.6s infinite; }

/* ---------- Поля ---------- */
.nv .field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nv .field > label, .nv .label { font-size: 12px; font-weight: 500; color: var(--color-neutral-700); }
.nv .field .hint { font-size: 11px; color: var(--color-neutral-600); }
.nv .input, .nv select.input, .nv textarea.input { width: 100%; padding: 9px 12px; border-radius: var(--radius-md); border: 1px solid var(--color-neutral-400); background: var(--color-neutral-100); color: var(--color-text); font-size: 14px; line-height: 1.35; outline: none; transition: border-color .15s, box-shadow .15s; color-scheme: var(--nv-scheme); }
.nv .input::placeholder { color: var(--color-neutral-500); }
.nv .input:focus { border-color: var(--color-accent-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.nv .input:disabled { opacity: .6; }
.nv textarea.input { resize: vertical; min-height: 90px; font-family: inherit; }
.nv select.input { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238494a5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.nv .input-sm { padding: 5px 8px; font-size: 12px; border-radius: var(--radius-sm); }
.nv .input-score { width: 48px; text-align: center; font-weight: 600; padding: 6px 4px; -moz-appearance: textfield; }
.nv .input-score::-webkit-inner-spin-button, .nv .input-score::-webkit-outer-spin-button { -webkit-appearance: none; }
.nv input[type="checkbox"], .nv input[type="radio"] { accent-color: var(--color-accent); width: 16px; height: 16px; }
.nv input[type="file"] { font-size: 13px; color: var(--color-neutral-700); }
.nv .check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.nv .check input { margin-top: 2px; flex: none; }
.nv .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.nv .form-grid .full { grid-column: 1 / -1; }
.nv .form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.nv .form-row .field { flex: 1; min-width: 160px; }
.nv .form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nv form.stack-sm { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Карточки ---------- */
.nv .card { background: var(--grad-surface); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); padding: 20px 22px; }
.nv .card-sm { padding: 14px 16px; }
.nv .card-flat { background: var(--color-neutral-100); box-shadow: none; border: 1px solid var(--color-neutral-300); }
.nv .card-ice { background: var(--grad-ice); box-shadow: none; border: 1px solid color-mix(in srgb, var(--nv-ice) 30%, transparent); }
.nv .card-accent { border: 1px solid color-mix(in srgb, var(--color-accent) 45%, transparent); }
.nv .stack { display: flex; flex-direction: column; gap: 24px; }
.nv .stack-sm { display: flex; flex-direction: column; gap: 12px; }
.nv .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.nv .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nv .grid-side { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.nv .grid-side-l { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.nv .grid-side-wide { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.nv .sticky-side { position: sticky; top: 84px; }

/* Плитки-счётчики */
.nv .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.nv .tile { background: var(--grad-surface); border: 1px solid var(--color-neutral-300); border-radius: var(--radius-lg); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.nv .tile span, .nv .tile .stat-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--color-neutral-600); }
.nv .tile b, .nv .tile .stat-number { font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.nv .tile.warn b { color: var(--nv-warning); }
.nv .tile.danger b { color: var(--nv-danger); }
.nv .tile.ice b { color: var(--nv-ice); }
.nv .tile.success b { color: var(--nv-success); }
.nv .tile.accent b { color: var(--color-accent-600); }

/* ---------- Сегментированный переключатель ---------- */
.nv .seg { display: inline-flex; background: var(--color-neutral-200); border: 1px solid var(--color-neutral-300); border-radius: 999px; padding: 2px; gap: 2px; }
.nv .seg-opt { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--color-neutral-600); background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.nv .seg-opt:hover { color: var(--color-text); }
.nv .seg-opt.on, .nv .seg-opt.active { background: var(--color-neutral-400); color: var(--color-text); }

/* ---------- Флеш-сообщения ---------- */
.nv .flash { padding: 10px 14px; font-size: 13px; border-radius: var(--radius-md); border-left: 3px solid var(--nv-info); background: var(--nv-info-bg); animation: nv-flash-in .3s ease-out; }
.nv .flash a { color: inherit; text-decoration: underline; }
.nv .flash-success { border-left-color: var(--nv-success); background: var(--nv-success-bg); }
.nv .flash-error, .nv .flash-danger { border-left-color: var(--nv-danger); background: var(--nv-danger-bg); }
.nv .flash-warning { border-left-color: var(--nv-warning); background: var(--nv-warning-bg); }
.nv .flash-info { border-left-color: var(--nv-ice); background: var(--nv-ice-bg); }
.nv .note { padding: 10px 14px; font-size: 12px; border-radius: var(--radius-md); background: var(--nv-ice-bg); border-left: 3px solid var(--nv-ice); color: var(--color-neutral-800); }
.nv .note-warn { background: var(--nv-warning-bg); border-left-color: var(--nv-warning); }

/* ---------- Таблицы ---------- */
.nv .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nv .table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nv .table th { padding: 8px 12px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-neutral-600); text-align: left; font-weight: 500; border-bottom: 1px solid var(--color-neutral-400); white-space: nowrap; }
.nv .table td { padding: 9px 12px; border-bottom: 1px solid var(--color-neutral-300); vertical-align: middle; }
.nv .table tbody tr:hover { background: color-mix(in srgb, var(--color-neutral-200) 60%, transparent); }
.nv .table .num, .nv .table th.num, .nv .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.nv .table .c, .nv .table th.c, .nv .table td.c { text-align: center; }
.nv .table tr.playoff td:first-child { box-shadow: inset 3px 0 0 var(--nv-ice); }
.nv .table tr.me td, .nv .table tr.own td { background: var(--color-accent-100); }
.nv .table tr.me td:first-child, .nv .table tr.own td:first-child { box-shadow: inset 3px 0 0 var(--color-accent); }
.nv .table tr.dim td { color: var(--color-neutral-600); }
.nv .table tr.gap td { text-align: center; color: var(--color-neutral-500); padding: 4px; letter-spacing: .2em; }
.nv .table .pts { font-weight: 600; font-size: 14px; }
.nv .table-compact th { padding: 6px 8px; }
.nv .table-compact td { padding: 6px 8px; }
.nv .table .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nv .table .who .avatar { width: 24px; height: 24px; font-size: 10px; }
.nv .table .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv .table .who small { color: var(--color-neutral-600); font-size: 11px; white-space: nowrap; }

/* ---------- Пустое состояние ---------- */
.nv .empty { border: 1px dashed var(--color-neutral-400); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; color: var(--color-neutral-600); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nv .empty svg { width: 36px; height: 36px; stroke: var(--color-neutral-500); fill: none; stroke-width: 1.6; }
.nv .empty b { color: var(--color-neutral-700); font-size: 14px; }

/* ---------- Список-строки ---------- */
.nv .rows { display: flex; flex-direction: column; }
.nv .row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--color-neutral-300); font-size: 13px; min-width: 0; }
.nv .row:last-child { border-bottom: 0; }
.nv .row .name { font-weight: 500; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv .row .meta { font-size: 11px; color: var(--color-neutral-600); white-space: nowrap; }
.nv .row b.n { font-variant-numeric: tabular-nums; }
.nv .row .avatar { width: 24px; height: 24px; font-size: 10px; }

/* ---------- Клубы, флаги, аватары, бренд ---------- */
.nv .club { display: inline-flex; align-items: center; gap: 6px; background: var(--color-neutral-200); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 11px; font-weight: 500; white-space: nowrap; color: var(--color-text); max-width: 100%; }
.nv .club span { overflow: hidden; text-overflow: ellipsis; }
.nv .club img, .nv .club .club-logo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.nv .club-logo { display: inline-block; width: 22px; height: 22px; object-fit: contain; vertical-align: middle; flex: none; }
.nv .club-logo-lg { width: 40px; height: 40px; }
.nv .club-logo-sm { width: 16px; height: 16px; }
.nv .team { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.nv .team.r { flex-direction: row-reverse; text-align: right; }
.nv .team span:not(.club-logo):not(.nv-flag):not(.flag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv .flag { font-size: 16px; line-height: 1; flex: none; }
.nv .nv-logo { display: inline-block; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }
.nv-logo-lokomotiv{background-image:url('/assets/logos/lokomotiv.png')!important}.nv-logo-cska{background-image:url('/assets/logos/cska.png')!important}.nv-logo-ska{background-image:url('/assets/logos/ska.png')!important}.nv-logo-dinamo_msk{background-image:url('/assets/logos/dinamo_msk.png')!important}.nv-logo-spartak{background-image:url('/assets/logos/spartak.png')!important}.nv-logo-severstal{background-image:url('/assets/logos/severstal.png')!important}.nv-logo-torpedo{background-image:url('/assets/logos/torpedo.png')!important}.nv-logo-dinamo_minsk{background-image:url('/assets/logos/dinamo_minsk.png')!important}.nv-logo-sochi{background-image:url('/assets/logos/sochi.png')!important}.nv-logo-drakony{background-image:url('/assets/logos/drakony.png')!important}.nv-logo-kunlun{background-image:url('/assets/logos/kunlun.png')!important}.nv-logo-lada{background-image:url('/assets/logos/lada.png')!important}.nv-logo-vityaz{background-image:url('/assets/logos/vityaz.png')!important}.nv-logo-akbars{background-image:url('/assets/logos/akbars.png')!important}.nv-logo-salavat{background-image:url('/assets/logos/salavat.png')!important}.nv-logo-avangard{background-image:url('/assets/logos/avangard.png')!important}.nv-logo-metallurg{background-image:url('/assets/logos/metallurg.png')!important}.nv-logo-traktor{background-image:url('/assets/logos/traktor.png')!important}.nv-logo-avtomobilist{background-image:url('/assets/logos/avtomobilist.png')!important}.nv-logo-sibir{background-image:url('/assets/logos/sibir.png')!important}.nv-logo-barys{background-image:url('/assets/logos/barys.png')!important}.nv-logo-amur{background-image:url('/assets/logos/amur.png')!important}.nv-logo-neftehimik{background-image:url('/assets/logos/neftehimik.png')!important}.nv-logo-admiral{background-image:url('/assets/logos/admiral.png')!important}
.nv .nv-flag { display: inline-block; width: 20px; height: 15px; border-radius: 2px; background-size: cover; background-position: center; background-color: var(--color-neutral-300); vertical-align: -2px; flex: none; }
.nv .avatar, .nv .nv-avatar { display: inline-flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; font-weight: 600; color: #fff; text-transform: uppercase; background-size: cover; background-position: center; object-fit: cover; flex: none; font-family: var(--font-display); line-height: 1; }
.nv .nv-brand { display: inline-block; width: 26px; height: 26px; background: url('/assets/puck.png') center / contain no-repeat; flex: none; }
.nv .nv-code { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .07em; }
.nv .nv-copy { display: flex; gap: 8px; align-items: center; min-width: 0; }
.nv .nv-copy .input { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv code.code { display: inline-block; background: var(--color-neutral-200); border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); padding: 2px 8px; font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.nv .code-big { display: block; flex: 1; background: var(--color-neutral-200); border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-align: center; font-family: var(--font-mono); }

/* ---------- Голосование и рейтинг ---------- */
.nv .nv-vote { display: inline-flex; align-items: center; gap: 2px; background: var(--color-neutral-200); border: 1px solid var(--color-neutral-300); border-radius: 999px; padding: 2px; }
.nv .nv-vote button { min-width: 36px; min-height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--color-neutral-600); font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0; transition: background .15s, color .15s; }
.nv .nv-vote button::before { content: "+"; }
.nv .nv-vote button.down::before { content: "−"; }
.nv .nv-vote button:hover { background: var(--color-neutral-300); color: var(--color-text); }
.nv .nv-vote button.on-up { background: var(--nv-success-bg); color: var(--nv-success); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nv-success) 50%, transparent); }
.nv .nv-vote button.on-down { background: var(--nv-danger-bg); color: var(--nv-danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nv-danger) 50%, transparent); }
.nv .nv-vote .val { min-width: 34px; text-align: center; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-neutral-600); }
.nv .nv-vote .val.pos { color: var(--nv-success); }
.nv .nv-vote .val.neg { color: var(--nv-danger); }
.nv .nv-vote.disabled button { opacity: .4; pointer-events: none; }
.nv .nv-vote.busy { opacity: .6; pointer-events: none; }
.nv .nv-star, .nv .rating-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; background: var(--color-neutral-200); color: var(--color-neutral-600); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.4; }
.nv .nv-star.pos, .nv .rating-badge.rating-pos { background: var(--nv-success-bg); color: var(--nv-success); }
.nv .nv-star.neg, .nv .rating-badge.rating-neg { background: var(--nv-danger-bg); color: var(--nv-danger); }
.nv .nv-star.md { font-size: 13px; padding: 3px 12px; }
.nv .nv-star.lg { font-size: 17px; padding: 5px 16px; }

/* ---------- Модалки ---------- */
.nv .modal { position: fixed; inset: 0; z-index: 1000; background: var(--nv-overlay); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.nv .modal.open { display: flex; }
.nv .modal-content { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.nv .modal-content h3 { margin-bottom: 14px; }
.nv .modal-img { max-width: 92vw; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.nv .modal-close { position: absolute; top: 14px; right: 18px; background: var(--color-neutral-200); border: 0; color: var(--color-text); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }

/* ---------- Анимации ---------- */
@keyframes nv-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #ec3013 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes nv-flash-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes nv-hl { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 70%, transparent); } 100% { box-shadow: var(--shadow-sm); } }
.nv .hl { animation: nv-hl 2.2s ease-out; }

/* ---------- Шапка ---------- */
.nv .site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px 40px; border-bottom: 2px solid var(--color-divider); background: var(--grad-header); }
.nv .brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--color-text); flex: none; }
.nv .brand .nv-brand { width: 26px; height: 26px; }
.nv .brand b { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .02em; line-height: 1; display: block; }
.nv .brand small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-neutral-600); margin-top: 3px; font-weight: 700; }
.nv .site-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nv .site-nav a { padding: 6px 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; color: var(--color-neutral-800); text-decoration: none !important; white-space: nowrap; }
.nv .site-nav a:hover { background: var(--color-neutral-200); color: var(--color-text); }
.nv .site-nav a.active { color: var(--color-accent-700); font-weight: 600; background: var(--color-accent-100); box-shadow: inset 0 -2px 0 var(--color-accent); }
.nv .site-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.nv .site-tools .guest-btns { display: flex; gap: 8px; }
.nv .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; color: var(--color-neutral-700); cursor: pointer; position: relative; text-decoration: none !important; padding: 0; }
.nv .icon-btn:hover { background: var(--color-neutral-200); color: var(--color-text); }
.nv .icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv .icon-btn .badge-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--grad-accent); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.nv .user-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--color-neutral-100); border: 1px solid var(--color-divider); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: var(--color-text); font-size: 13px; text-decoration: none !important; }
.nv .user-pill .avatar { width: 26px; height: 26px; font-size: 11px; }
.nv .user-pill b { font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv .user-pill svg { width: 14px; height: 14px; stroke: var(--color-neutral-600); fill: none; stroke-width: 2; }
.nv .dd { position: relative; }
.nv .dd-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 190px; background: var(--color-surface); border: 1px solid var(--color-neutral-300); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.nv .dd.open .dd-menu { display: block; }
.nv .dd-menu a, .nv .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--color-text); background: none; border: 0; cursor: pointer; text-decoration: none !important; font-weight: 600; }
.nv .dd-menu a:hover, .nv .dd-menu button:hover { background: var(--color-neutral-200); }
.nv .dd-menu a.on, .nv .dd-menu button.on { color: var(--color-accent-700); }
.nv .dd-menu a.on::after, .nv .dd-menu button.on::after { content: "✓"; margin-left: auto; font-size: 11px; }
.nv .dd-menu .sep { height: 1px; background: var(--color-neutral-300); margin: 4px 0; }
.nv .dd-menu svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nv .dd-menu .danger { color: var(--nv-danger); }
.nv .dd-menu .hdr { padding: 6px 10px 8px; font-size: 11px; color: var(--color-neutral-600); }
.nv .dd-menu .hdr b { display: block; color: var(--color-text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.nv .burger { display: none; }
.nv .mobile-menu { display: none; border-bottom: 2px solid var(--color-divider); background: var(--grad-header); padding: 6px 16px 12px; }
.nv .mobile-menu.open { display: block; }
.nv .mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 13px 12px; font-size: 15px; font-weight: 600; color: var(--color-text); border-bottom: 1px solid var(--color-neutral-300); text-decoration: none !important; }
.nv .mobile-menu a.active { background: var(--color-accent-100); color: var(--color-accent-700); box-shadow: inset 3px 0 0 var(--color-accent); border-radius: var(--radius-sm); font-weight: 600; }
.nv .mobile-menu .mm-actions { display: flex; gap: 8px; padding-top: 12px; }
.nv .mobile-menu .mm-actions .btn { flex: 1; }

/* ---------- Основная область и подвал ---------- */
.nv .site-main { --nv-max: 1100px; width: 100%; max-width: calc(var(--nv-max) + 80px); margin: 0 auto; padding: 32px 40px 56px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.nv .site-footer { border-top: 2px solid var(--color-divider); background: var(--grad-header); padding: 20px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: auto; }
.nv .site-footer .brand .nv-brand { width: 22px; height: 22px; }
.nv .site-footer .brand b { font-size: 14px; }
.nv .site-footer .copy { font-size: 11px; color: var(--color-neutral-600); flex: 1; min-width: 240px; line-height: 1.5; }
.nv .site-footer .links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.nv .site-footer .links a { color: var(--color-neutral-600); }
.nv .site-footer .links a:hover { color: var(--color-text); }

/* ---------- Гостевая ---------- */
.nv .hero-title { display: flex; flex-direction: column; gap: 4px; }
.nv .hero-title .sub { color: var(--color-neutral-600); font-size: 14px; }
.nv .post-form { display: flex; flex-direction: column; gap: 12px; }
.nv .post-form textarea.input { min-height: 96px; }
.nv .post-form .attach { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.nv .post-form .bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nv .post-form .bar .hint { font-size: 11px; color: var(--color-neutral-600); }
.nv .msg { background: var(--grad-surface); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.nv .msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nv .msg-head .avatar { width: 28px; height: 28px; font-size: 12px; }
.nv .msg-head .nick { font-weight: 600; font-size: 14px; cursor: pointer; }
.nv .msg-head .nick:hover { color: var(--color-accent-700); }
.nv .msg-head .date { font-size: 11px; color: var(--color-neutral-600); white-space: nowrap; }
.nv .msg-head .date a { color: inherit; }
.nv .msg-head .num { margin-left: auto; font-size: 12px; color: var(--color-neutral-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nv .msg-head .num a { color: inherit; text-decoration: none; }
.nv .msg-head .num a:hover { color: var(--color-text); }
.nv .msg-head .nick-muted { font-weight: 600; font-size: 14px; color: var(--color-neutral-600); }
.nv .msg-hidden { opacity: .75; box-shadow: none; border: 1px dashed var(--color-neutral-300); background: transparent; }
.nv .msg-hidden .msg-text { font-style: italic; color: var(--color-neutral-600); }
.nv .msg-text .quote a { color: inherit; }
.nv .msg-text { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.nv .msg-text .quote { margin: 4px 0 6px; border-left: 3px solid var(--color-neutral-400); padding: 4px 10px; color: var(--color-neutral-700); font-style: italic; font-size: 13px; }
.nv .msg-text .quote b { color: var(--color-neutral-800); font-style: normal; }
.nv .msg-text .quote:first-child { margin-top: 0; }
.nv .msg-img { max-width: 100%; max-height: 420px; border-radius: var(--radius-md); cursor: zoom-in; display: block; }
.nv .msg-video { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.nv .msg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nv .msg-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nv .msg-foot .hint { font-size: 11px; color: var(--color-neutral-600); }
.nv .msg.hidden-msg { opacity: .6; border: 1px dashed var(--color-neutral-400); }
.nv .match-line { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--color-neutral-300); font-size: 13px; }
.nv .match-line:last-child { border-bottom: 0; }
.nv .match-line .team { flex: 1; min-width: 0; font-size: 12px; }
.nv .match-line .team img, .nv .match-line .team .club-logo { width: 20px; height: 20px; }
.nv .match-line .score { font-family: var(--font-display); font-weight: 600; font-size: 15px; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nv .match-line .score.time { font-size: 12px; color: var(--color-neutral-600); font-weight: 500; }
.nv .match-line .score.live { color: var(--nv-danger); }
.nv .mini-standings td { padding: 6px 8px; }

/* ---------- Календарь ---------- */
.nv .match-card { background: var(--grad-surface); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); padding: 14px 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.nv .match-card .team { font-size: 14px; }
.nv .match-card .team img, .nv .match-card .team .club-logo { width: 30px; height: 30px; }
.nv .match-card .team.r { justify-content: flex-start; }
.nv .match-card .mid { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 96px; }
.nv .match-card .mid .score { font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.nv .match-card .mid .score.live { color: var(--nv-danger); }
.nv .match-card .mid .score.time { font-size: 18px; color: var(--color-neutral-700); }
.nv .match-card .mid .st { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-neutral-600); font-weight: 500; }
.nv .match-list { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Таблица (standings) ---------- */
.nv .standings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.nv .standings .club-cell { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.nv .legend { display: flex; gap: 16px; font-size: 11px; color: var(--color-neutral-600); flex-wrap: wrap; }
.nv .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }

/* ---------- Тотализатор / турниры ---------- */
.nv .pred-row { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--color-neutral-300); font-size: 13px; scroll-margin-top: 90px; }
.nv .pred-row:last-child { border-bottom: 0; }
.nv .pred-row .when { font-size: 11px; color: var(--color-neutral-600); min-width: 78px; line-height: 1.3; }
.nv .pred-row .when b { display: block; color: var(--color-text); font-size: 12px; }
.nv .pred-row .team { font-size: 13px; }
.nv .pred-row .team img, .nv .pred-row .team .club-logo { width: 24px; height: 24px; }
.nv .pred-row .inputs { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nv .pred-row .inputs .input { width: 48px; }
.nv .pred-row .state { font-size: 11px; min-width: 70px; text-align: right; }
.nv .pred-row.closed { opacity: .75; }
.nv .rules { display: flex; gap: 10px; flex-wrap: wrap; }
.nv .rule { flex: 1; min-width: 140px; background: var(--color-neutral-200); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.nv .rule b { font-family: var(--font-display); font-size: 22px; color: var(--color-accent-600); }
.nv .rule span { font-size: 12px; color: var(--color-neutral-700); }
.nv .cup { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nv .cup .trophy { font-size: 40px; line-height: 1; }
.nv .cup .body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.nv .cup .body b { font-family: var(--font-display); font-size: 16px; }
.nv .cup .body span { font-size: 12px; color: var(--color-neutral-600); }
.nv .lb-me { background: var(--color-accent-100); border-radius: var(--radius-md); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.nv .lb-me b { font-family: var(--font-display); font-size: 20px; }
.nv .t-card { background: var(--grad-surface); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.nv .t-card.archive { opacity: .85; }
.nv .t-card .t-head { display: flex; align-items: flex-start; gap: 12px; }
.nv .t-card .t-icon { font-size: 34px; line-height: 1; flex: none; }
.nv .t-card .t-title { flex: 1; min-width: 0; }
.nv .t-card .t-title b { display: block; font-family: var(--font-display); font-size: 17px; }
.nv .t-card .t-title b a { color: inherit; }
.nv .t-card .t-title span { font-size: 12px; color: var(--color-neutral-600); }
.nv .t-card .t-desc { font-size: 13px; color: var(--color-neutral-800); }
.nv .t-card .t-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--color-neutral-600); }
.nv .t-card .t-stats b { color: var(--color-text); font-variant-numeric: tabular-nums; }
.nv .t-card .t-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.nv .t-card .t-foot .my { font-size: 12px; color: var(--color-neutral-700); }
.nv .t-card .t-foot .my b { color: var(--color-accent-600); }
.nv .t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.nv .groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.nv .group { background: var(--color-neutral-200); border-radius: var(--radius-md); padding: 10px 12px; }
.nv .group h6 { color: var(--nv-ice); margin-bottom: 6px; }
.nv .group div { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 0; }
.nv .res { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--color-neutral-300); font-size: 13px; }
.nv .res:last-child { border-bottom: 0; }
.nv .res .score { font-family: var(--font-display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 60px; text-align: center; }
.nv .res .score small { display: block; font-size: 9px; color: var(--color-neutral-600); letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); }
.nv .res .stage { font-size: 11px; color: var(--color-neutral-600); text-align: right; min-width: 70px; }
.nv .stage-tag { display: inline-flex; justify-content: center; min-width: 74px; }
.nv .pts-cell.hit { color: var(--nv-success); font-weight: 600; }
.nv .pts-cell.miss { color: var(--color-neutral-500); }
.nv .t-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.nv .t-meta div { display: flex; flex-direction: column; gap: 2px; }
.nv .t-meta span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-neutral-600); font-weight: 500; }
.nv .t-meta b { font-size: 14px; }

/* ---------- Профиль / авторизация ---------- */
.nv .auth-wrap { max-width: 440px; margin: 20px auto 0; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.nv .auth-wrap .card { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.nv .auth-wrap h1 { font-size: 28px; }
.nv .auth-wrap .links { font-size: 13px; color: var(--color-neutral-600); text-align: center; }
.nv .profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nv .profile-head .avatar { width: 88px; height: 88px; font-size: 34px; }
.nv .profile-head .who { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.nv .profile-head .who h1 { font-size: 30px; text-transform: none; }
.nv .profile-head .who .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--color-neutral-600); }
.nv .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.nv .profile-grid .full { grid-column: 1 / -1; }
.nv .link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.nv .link-row img { width: 18px; height: 18px; border-radius: 50%; }
.nv .link-row .status { margin-right: auto; }
.nv .avatar-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nv .avatar-form .avatar { width: 64px; height: 64px; font-size: 26px; }
.nv .inv-list .row { align-items: center; }
.nv .inv-list .row .nv-code { font-weight: 600; }
.nv .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.nv .kv span { color: var(--color-neutral-600); }

/* ---------- Уведомления ---------- */
.nv .notif { display: flex; gap: 10px; padding: 14px 12px; border-left: 3px solid var(--nv-info); background: var(--nv-info-bg); border-bottom: 1px solid var(--color-neutral-300); align-items: flex-start; }
.nv .notif.success { border-left-color: var(--nv-success); background: var(--nv-success-bg); }
.nv .notif.warning { border-left-color: var(--nv-warning); background: var(--nv-warning-bg); }
.nv .notif.error { border-left-color: var(--nv-danger); background: var(--nv-danger-bg); }
.nv .notif.read { opacity: .75; background: transparent; }
.nv .notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; margin-top: 5px; }
.nv .notif.read .dot { visibility: hidden; }
.nv .notif .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nv .notif .title { font-weight: 600; font-size: 13px; }
.nv .notif.read .title { font-weight: 600; }
.nv .notif .text { font-size: 12px; color: var(--color-neutral-700); overflow-wrap: anywhere; }
.nv .notif .meta { font-size: 11px; color: var(--color-neutral-600); }
.nv .notif form { flex: none; }
.nv .notif-list { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-neutral-100); box-shadow: var(--shadow-sm); }

/* ---------- Статистика ---------- */
.nv .top-msg { padding: 10px 0; border-bottom: 1px solid var(--color-neutral-300); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.nv .top-msg:last-child { border-bottom: 0; }
.nv .top-msg .h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-neutral-600); }
.nv .top-msg .h b { color: var(--color-text); }
.nv .top-msg .h .avatar { width: 20px; height: 20px; font-size: 9px; }
.nv .top-msg .t { color: var(--color-neutral-800); overflow-wrap: anywhere; }
.nv .rank { display: inline-block; width: 22px; text-align: center; }

/* ---------- Документы ---------- */
.nv .doc-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.nv .doc-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.nv .doc-toc a { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--color-neutral-700); }
.nv .doc-toc a:hover { background: var(--color-neutral-200); text-decoration: none; }
.nv .doc-toc a.on { color: var(--color-accent-700); background: var(--color-accent-100); box-shadow: inset 3px 0 0 var(--color-accent); }
.nv .doc { font-size: 14px; line-height: 1.65; display: flex; flex-direction: column; gap: 10px; }
.nv .doc h2 { font-size: 17px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--color-neutral-300); scroll-margin-top: 90px; }
.nv .doc h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.nv .doc p { color: var(--color-neutral-800); }
.nv .doc ul, .nv .doc ol { margin: 0; padding-left: 22px; color: var(--color-neutral-800); }
.nv .doc li { margin: 3px 0; }
.nv .doc .updated { font-size: 12px; color: var(--color-neutral-600); }

/* ---------- Пагинация ---------- */
.nv .pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.nv .pager a, .nv .pager span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--color-neutral-700); background: var(--color-neutral-200); text-decoration: none !important; }
.nv .pager a:hover { background: var(--color-neutral-300); }
.nv .pager .on { background: var(--grad-accent); color: #fff; }

/* ---------- Админка ---------- */
.nv .admin-wrap { display: grid; grid-template-columns: 224px 1fr; flex: 1; min-height: 100vh; }
.nv .admin-side { background: var(--grad-header); border-right: 2px solid var(--color-divider); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.nv .admin-side .brand small { color: var(--color-accent-600); }
.nv .admin-nav { display: flex; flex-direction: column; gap: 2px; }
.nv .admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; color: var(--color-neutral-800); text-decoration: none !important; }
.nv .admin-nav a:hover { background: var(--color-neutral-200); color: var(--color-text); }
.nv .admin-nav a.active { background: var(--color-accent-100); color: var(--color-accent-700); font-weight: 600; box-shadow: inset 3px 0 0 var(--color-accent); }
.nv .admin-nav .grp { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-600); font-weight: 500; padding: 12px 12px 4px; }
.nv .admin-side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--color-neutral-600); }
.nv .admin-body { padding: 26px 32px 60px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nv .admin-body .container { max-width: none; width: 100%; }
.nv .admin-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.nv .admin-top h2 { font-size: 24px; }
.nv .admin-top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nv .admin-burger { display: none; }
.nv .admin-backdrop { display: none; position: fixed; inset: 0; background: var(--nv-overlay); z-index: 150; }
.nv .admin-backdrop.open { display: block; }
/* Совместимость с классами старых админ-страниц */
.nv .admin-body .card { margin-bottom: 20px; }
.nv .admin-body .card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent-600); border-bottom: 2px solid var(--color-divider); padding-bottom: 8px; margin-bottom: 14px; }
.nv .admin-body .card h4 { margin: 12px 0 8px; font-size: 14px; }
.nv .admin-body .flash { margin-bottom: 16px; }
.nv .admin-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nv .admin-body th { padding: 8px 10px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-neutral-600); text-align: left; border-bottom: 1px solid var(--color-neutral-400); }
.nv .admin-body td { padding: 8px 10px; border-bottom: 1px solid var(--color-neutral-300); vertical-align: middle; }
.nv .admin-body .badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--color-neutral-200); color: var(--color-neutral-700); white-space: nowrap; }
.nv .admin-body .badge-ok, .nv .admin-body .badge-user, .nv .admin-body .badge-active, .nv .admin-body .badge-success { background: var(--nv-success-bg); color: var(--nv-success); }
.nv .admin-body .badge-moderator, .nv .admin-body .badge-warning, .nv .admin-body .badge-expired { background: var(--nv-warning-bg); color: var(--nv-warning); }
.nv .admin-body .badge-admin, .nv .admin-body .badge-banned, .nv .admin-body .badge-hidden, .nv .admin-body .badge-revoked, .nv .admin-body .badge-error, .nv .admin-body .badge-danger { background: var(--nv-danger-bg); color: var(--nv-danger); }
.nv .admin-body .badge-used, .nv .admin-body .badge-info { background: var(--nv-ice-bg); color: var(--nv-ice); }
.nv .admin-body .btn-gray { background: var(--color-neutral-200); border-color: var(--color-neutral-400); }
.nv .admin-body .btn-warn { background: var(--nv-warning-bg); color: var(--nv-warning); }
.nv .admin-body .btn-ok { background: var(--nv-success-bg); color: var(--nv-success); }
.nv .admin-body .btn-danger:not(.btn-ghost) { background: var(--nv-danger-bg); color: var(--nv-danger); }
.nv .admin-body .stats-grid, .nv .admin-body .inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.nv .admin-body .stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.nv .admin-body .stat, .nv .admin-body .stat-card, .nv .admin-body .inv-stat { background: var(--grad-surface); border: 1px solid var(--color-neutral-300); border-radius: var(--radius-lg); padding: 14px 18px; min-width: 130px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.nv .admin-body .stat b, .nv .admin-body .stat-number, .nv .admin-body .inv-stat b { font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; display: block; color: var(--color-text); }
.nv .admin-body .stat, .nv .admin-body .stat-label, .nv .admin-body .inv-stat span { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--color-neutral-600); }
.nv .admin-body .stat.warn, .nv .admin-body .stat[style*="fed7d7"] { border-color: color-mix(in srgb, var(--nv-warning) 50%, transparent); background: var(--nv-warning-bg) !important; }
.nv .admin-body .stat.warn b, .nv .admin-body .stat[style*="fed7d7"] b { color: var(--nv-warning); }
.nv .admin-body .two, .nv .admin-body .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.nv .admin-body .form-group { margin-bottom: 14px; }
.nv .admin-body label { display: block; font-size: 12px; font-weight: 500; color: var(--color-neutral-700); margin-bottom: 5px; }
.nv .admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]), .nv .admin-body select, .nv .admin-body textarea { width: 100%; max-width: 640px; padding: 8px 10px; border-radius: var(--radius-md); border: 1px solid var(--color-neutral-400); background: var(--color-neutral-100); color: var(--color-text); font-size: 13px; font-family: inherit; outline: none; color-scheme: var(--nv-scheme); }
.nv .admin-body input:focus, .nv .admin-body select:focus, .nv .admin-body textarea:focus { border-color: var(--color-accent-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.nv .admin-body input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-accent); vertical-align: middle; }
.nv .admin-body .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.nv .admin-body .inline input, .nv .admin-body .inline select, .nv .admin-body .score-form input, .nv .admin-body .score-form select, .nv .admin-body .create-form input { width: auto; padding: 5px 8px; font-size: 12px; }
.nv .admin-body .inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.nv .admin-body .inline > div { display: flex; flex-direction: column; gap: 3px; }
.nv .admin-body .inline label { margin: 0; font-size: 11px; }
.nv .admin-body .inline input[type=number] { width: 60px; }
.nv .admin-body .score-form { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nv .admin-body .score-form input[type=number] { width: 48px; text-align: center; font-weight: 600; }
.nv .admin-body .create-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.nv .admin-body .create-form label { margin-bottom: 4px; }
.nv .admin-body .actions form { display: inline; }
.nv .admin-body .actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nv .admin-body .row { display: flex; gap: 16px; flex-wrap: wrap; border: 0; padding: 0; }
.nv .admin-body .row > div { flex: 1; min-width: 200px; }
.nv .admin-body .pill { display: inline-flex; align-items: center; gap: 4px; background: var(--color-neutral-200); border-radius: 999px; padding: 2px 10px; font-size: 12px; margin-right: 4px; }
.nv .admin-body .pill[style*="c6f6d5"] { background: var(--nv-success-bg) !important; color: var(--nv-success); }
.nv .admin-body .note { margin: 10px 0; }
.nv .admin-body .logo { height: 22px; vertical-align: middle; margin-right: 4px; }
.nv .admin-body code { background: var(--color-neutral-200); border-radius: var(--radius-sm); padding: 1px 6px; font-size: 12px; }
.nv .admin-body .code { font-family: var(--font-mono); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.nv .admin-body .copy { padding: 2px 8px; font-size: 12px; border: 1px solid var(--color-neutral-400); background: var(--color-neutral-200); border-radius: var(--radius-sm); cursor: pointer; color: var(--color-text); }
.nv .admin-body .url { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; font-family: var(--font-mono); font-size: 12px; }
.nv .admin-body details pre { max-height: 240px; overflow: auto; background: var(--color-neutral-100); padding: 8px; border-radius: var(--radius-sm); font-size: 11px; white-space: pre-wrap; word-break: break-all; }
.nv .admin-body .err { font-size: 12px; color: var(--nv-danger); max-width: 320px; word-break: break-word; }
.nv .admin-body .filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.nv .admin-body .filters a { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--color-neutral-700); background: var(--color-neutral-200); text-decoration: none !important; margin: 0; }
.nv .admin-body .filters a.on, .nv .admin-body .filters a.active { background: var(--color-neutral-400); color: var(--color-text); }
.nv .admin-body .tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--color-divider); }
.nv .admin-body .tab { padding: 10px 18px; cursor: pointer; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--color-neutral-600); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.nv .admin-body .tab.active { color: var(--color-accent-700); background: var(--color-accent-100); box-shadow: inset 0 -2px 0 var(--color-accent); margin-bottom: -2px; }
.nv .admin-body .tab-content { display: none; }
.nv .admin-body .tab-content.active { display: block; }
.nv .admin-body .status-scheduled { color: var(--nv-warning); }
.nv .admin-body .status-live { color: var(--nv-danger); }
.nv .admin-body .status-finished { color: var(--nv-success); }
.nv .admin-body .msg-text { max-width: 420px; overflow-wrap: anywhere; font-size: 13px; }
.nv .admin-body .empty { padding: 20px; }
.nv .admin-body .thead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.nv .admin-body .muted { color: var(--color-neutral-600); }
.nv .admin-body .modal[style*="block"] { display: flex; }
.nv .admin-body .modal-content { margin: 0; }

/* ---------- Адаптив ---------- */

/* ---------- Гостевая: цитата и «Писание» ---------- */
.nv blockquote.quote { margin: 0; border-left: 3px solid var(--nv-ice); background: var(--grad-ice); border-radius: var(--radius-md); padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.nv blockquote.quote p { margin: 0; font-size: 14px; line-height: 1.55; font-style: italic; }
.nv blockquote.quote span { font-size: 12px; color: var(--color-neutral-600); }
.nv .pager-bar { justify-content: flex-end; }
.nv .pager .pager-side { margin-left: auto; text-transform: lowercase; }
.nv .modal-content.wide { max-width: 720px; display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; background: var(--grad-surface); border: 1px solid var(--color-neutral-300); }
.nv .modal-content.wide p { margin: 0; font-size: 14px; line-height: 1.6; }
.nv .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nv .modal-head h4 { margin: 0; }
@media (max-width: 1100px) {
  .nv .site-main { padding: 24px 24px 48px; }
  .nv .site-header { padding: 12px 24px; gap: 16px; }
  .nv .site-footer { padding: 18px 24px; }
  .nv .grid-side, .nv .grid-side-wide, .nv .grid-side-l { grid-template-columns: 1fr; }
  .nv .sticky-side { position: static; }
  .nv .doc-wrap { grid-template-columns: 1fr; }
  .nv .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nv .site-header { padding: 12px 16px; gap: 10px; }
  .nv .site-nav { display: none; }
  .nv .burger { display: inline-flex; }
  .nv .site-tools .user-pill b { display: none; }
  .nv .site-tools .user-pill { padding-right: 8px; }
  .nv .site-tools .guest-btns { display: none; }
  .nv .site-main { padding: 20px 16px 32px; gap: 14px; }
  .nv h1 { font-size: 28px; }
  .nv .grid-2, .nv .standings-grid, .nv .profile-grid, .nv .form-grid, .nv .grid-3 { grid-template-columns: 1fr; }
  .nv .form-grid .full { grid-column: auto; }
  .nv .post-form .attach { grid-template-columns: 1fr; }
  .nv .site-footer { padding: 18px 16px; gap: 12px; }
  .nv .site-footer .copy { flex-basis: 100%; }
  .nv .card { padding: 16px; }
  .nv .pred-row { grid-template-columns: 1fr auto 1fr; }
  .nv .pred-row .when { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
  .nv .pred-row .when b { display: inline; }
  .nv .pred-row .state { grid-column: 1 / -1; text-align: left; }
  .nv .match-card { padding: 12px 14px; gap: 8px; }
  .nv .match-card .team { font-size: 13px; }
  .nv .match-card .mid { min-width: 70px; }
  .nv .match-card .mid .score { font-size: 20px; }
  .nv .t-grid { grid-template-columns: 1fr; }
  .nv .profile-head .avatar { width: 64px; height: 64px; font-size: 26px; }
  .nv .profile-head .who h1 { font-size: 24px; }
  .nv .admin-wrap { grid-template-columns: 1fr; }
  .nv .admin-side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 200; box-shadow: var(--shadow-lg); }
  .nv .admin-side.open { transform: none; }
  .nv .admin-burger { display: inline-flex; }
  .nv .admin-body { padding: 16px 16px 48px; }
  .nv .admin-body .two, .nv .admin-body .two-col { grid-template-columns: 1fr; }
  .nv .res { grid-template-columns: 1fr auto 1fr; }
  .nv .res .stage { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 480px) {
  .nv h1 { font-size: 24px; }
  .nv .auth-wrap .card { padding: 20px 18px; }
  .nv .tiles { grid-template-columns: 1fr 1fr; }
}
@media print { .nv .site-header, .nv .site-footer, .nv .mobile-menu { display: none !important; } }

/* ---------- Иконки темы / бургера ---------- */
.nv .ic-moon { display: none; }
.nv[data-theme="light"] .ic-sun { display: none; }
.nv[data-theme="light"] .ic-moon { display: block; }
.nv .dd-menu .ic-sun, .nv .dd-menu .ic-moon { display: block; }
.nv .burger .ic-close { display: none; }
.nv .burger.open .ic-burger { display: none; }
.nv .burger.open .ic-close { display: block; }
