/* ==========================================================================
   Counter-Strike Universe — библиотека компонентов.
   Все состояния: default / hover / active / focus / disabled / loading /
   empty / error. Значения — только из tokens.css.
   ========================================================================== */

/* --- Кнопки --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 9px 16px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: none;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn .icon { width: 17px; height: 17px; }

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover  { background: var(--accent-hover); }
.btn--primary:active { background: var(--olive-active); }

.btn--secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover  { background: var(--surface-soft); border-color: var(--border-strong); }
.btn--secondary:active { background: var(--surface-soft); }

.btn--soft {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}
.btn--soft:hover { background: var(--surface); }

.btn--ghost { color: var(--text-secondary); }
.btn--ghost:hover { background: var(--surface-soft); color: var(--text); }

.btn--danger { background: var(--red); color: #FFFFFF; }
.btn--danger:hover { background: var(--red-hover); }

.btn--sm { min-height: 32px; padding: 6px 12px; font-size: var(--fs-tiny); border-radius: var(--r-sm); }
.btn--lg { min-height: 46px; padding: 12px 24px; font-size: var(--fs-body); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 38px; min-height: 38px; }
.btn--icon.btn--sm { width: 32px; }

.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: #FFFFFF;
  animation: spin .7s linear infinite;
}
.btn--secondary.is-loading::after,
.btn--ghost.is-loading::after { color: var(--text-secondary); }

@keyframes spin { to { transform: rotate(1turn); } }

/* --- Чипы и фильтры -------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}
.chip .icon { width: 14px; height: 14px; }
.chip--static { cursor: default; }

.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- Бейджи ---------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.badge--accent   { background: var(--accent-soft); color: var(--accent-hover); }
.badge--esports  { background: var(--steel-soft);  color: var(--steel-hover); }
.badge--workshop { background: var(--orange-soft); color: var(--orange-hover); }
.badge--cosmetic { background: var(--violet-soft); color: var(--violet); }
.badge--server   { background: var(--green-soft);  color: var(--green); }
.badge--danger   { background: var(--red-soft);    color: var(--red-hover); }
.badge--warning  { background: var(--amber-soft);  color: var(--amber); }

.badge--live { background: var(--red-soft); color: var(--red-hover); }
.badge--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* --- Карточки -------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card--flat { box-shadow: none; }
.card--panel { border-radius: var(--r-panel); }

a.card,
.card--link { transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
a.card:hover,
.card--link:hover { box-shadow: var(--shadow-elevated); border-color: var(--border-strong); transform: translateY(-1px); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media-badges {
  position: absolute;
  inset: auto auto var(--sp-2) var(--sp-2);
  display: flex;
  gap: var(--sp-1);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
}
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) 0;
}
.card__title { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
.card__subtitle { color: var(--text-secondary); font-size: var(--fs-small); }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-tiny);
}
.card__meta > * { display: inline-flex; align-items: center; gap: 5px; }
.card__footer {
  margin-top: auto;
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Компактная карточка-действие (quick action из референса). */
.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.action-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-elevated); }
.action-card__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.action-card.is-active { border-color: var(--accent-border); background: var(--accent-soft); }

/* Строка списка (lineup дня, матчи, серверы). */
.list-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--surface-soft); }
.list-row__thumb {
  width: 38px; height: 38px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--surface-soft);
  object-fit: cover;
}
.list-row__main { min-width: 0; flex: 1; }
.list-row__title { display: block; font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.list-row__sub { display: block; color: var(--text-secondary); font-size: var(--fs-tiny); line-height: 1.4; }

/* --- Плитка показателя ------------------------------------------------------ */

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.stat__value { font-size: 1.625rem; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__label { color: var(--text-secondary); font-size: var(--fs-tiny); font-weight: var(--fw-medium); }
.stat__delta { font-size: var(--fs-tiny); font-weight: var(--fw-semibold); }
.stat__delta--up   { color: var(--green); }
.stat__delta--down { color: var(--red); }

/* --- Поля ввода -------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: var(--fw-medium); }
.field__hint  { color: var(--text-muted); font-size: var(--fs-tiny); }
.field__error { color: var(--red-hover); font-size: var(--fs-tiny); font-weight: var(--fw-medium); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 9px 12px;
  min-height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  font-size: var(--fs-small);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 100px; resize: vertical; line-height: var(--lh-body); }

.input::placeholder,
.textarea::placeholder { color: var(--text-muted); }

.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--surface-soft);
  color: var(--text-muted);
  cursor: not-allowed;
}

.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--red); }
.input.is-error:focus { box-shadow: 0 0 0 3px rgba(206, 82, 82, .18); }

.select {
  appearance: none;
  padding-right: 34px;
  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='%23687069' stroke-width='2' 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 11px center;
  cursor: pointer;
}

/* Поиск с иконкой. */
.search { position: relative; display: flex; align-items: center; width: 100%; }
.search .icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.search .input { padding-left: 38px; border-radius: var(--r-pill); }
.search--lg .input { min-height: 48px; font-size: var(--fs-body); }
.search--lg .icon { left: 16px; }
.search--lg .input { padding-left: 46px; }

/* Ползунок. */
.range { width: 100%; appearance: none; height: 4px; border-radius: var(--r-pill); background: var(--surface-soft); }
.range::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 16px; height: 16px; border: 2px solid var(--surface);
  border-radius: 50%; background: var(--accent); cursor: pointer;
}

/* Переключатель. */
.switch { display: inline-flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-small); }
.switch input { position: absolute; opacity: 0; }
.switch__track {
  width: 38px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  padding: 3px;
  transition: background var(--dur) var(--ease);
}
.switch__track::after {
  content: "";
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--shadow-focus); }

/* --- Вкладки ----------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"],
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); font-weight: var(--fw-semibold); }

/* Сегментированный переключатель (Все / T / CT). */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-soft);
  border-radius: var(--r-input);
}
.segmented button {
  padding: 5px 13px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text-secondary);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

/* --- Таблица ------------------------------------------------------------------ */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th {
  padding: 10px var(--sp-4);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 11px var(--sp-4);
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:hover { background: var(--surface-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Мобильная таблица: строка превращается в карточку, без горизонтального скролла. */
@media (max-width: 768px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr {
    padding: var(--sp-3) var(--sp-4);
    border-top: 1px solid var(--border);
  }
  .table--stack tr:first-child { border-top: 0; }
  .table--stack td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 3px 0;
    border: 0;
  }
  .table--stack td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: var(--fs-tiny);
    font-weight: var(--fw-medium);
  }
  .table--stack .num { text-align: right; }
}

/* --- Прогресс и шкалы ---------------------------------------------------------- */

.progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  overflow: hidden;
}
.progress__bar { height: 100%; border-radius: var(--r-pill); background: var(--accent); }

.meter {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-tiny);
}
.meter .progress { flex: 1; }

/* --- Аватар -------------------------------------------------------------------- */

.avatar {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 26px; height: 26px; }
.avatar--lg { width: 48px; height: 48px; font-size: var(--fs-body); }

/* --- Хлебные крошки ------------------------------------------------------------ */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--fs-tiny);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs [aria-current] { color: var(--text-secondary); }

/* --- Уведомления ---------------------------------------------------------------- */

.alert {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-card);
  background: var(--accent-soft);
  font-size: var(--fs-small);
}
.alert__title { font-weight: var(--fw-semibold); }
.alert--warning { background: var(--amber-soft); border-color: #EBD9AE; }
.alert--danger  { background: var(--red-soft);   border-color: var(--red-border); }
.alert--neutral { background: var(--surface-soft); border-color: var(--border); }

/* --- Пустое состояние и ошибка --------------------------------------------------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  color: var(--text-secondary);
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-panel);
  background: var(--surface-soft);
  color: var(--text-muted);
}
.empty__title { color: var(--text); font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
.empty__text { max-width: 46ch; font-size: var(--fs-small); }

/* --- Скелетоны ------------------------------------------------------------------ */

.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface-soft) 25%, #E4E7E2 37%, var(--surface-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton--text { height: 12px; }
.skeleton--title { height: 18px; width: 60%; }
.skeleton--media { aspect-ratio: 16 / 10; border-radius: 0; }
@keyframes shimmer { to { background-position: -135% 0; } }

/* --- Пагинация -------------------------------------------------------------------- */

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-1); }
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 34px; height: 34px;
  padding-inline: 8px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}
.pagination a:hover { background: var(--surface-soft); color: var(--text); }
.pagination [aria-current] { background: var(--accent); color: #FFFFFF; }

/* --- Тёмная функциональная зона ---------------------------------------------------- */

.dark-zone {
  --surface: var(--dark-elevated);
  --border: var(--dark-border);
  --text: var(--dark-text);
  --text-secondary: var(--dark-text-muted);
  --text-muted: #7E8987;
  --surface-soft: #333E3F;
  background: var(--dark-workspace);
  color: var(--dark-text);
  border-radius: var(--r-panel);
}
.dark-zone--hero { background: var(--dark-hero); }

.code-output {
  padding: var(--sp-4);
  border-radius: var(--r-card);
  background: var(--dark-workspace);
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}

/* --- Шапка ------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--surface);
  font-size: 13px;
  font-weight: var(--fw-extrabold);
  letter-spacing: -.03em;
}
.logo__text {
  font-size: 15px;
  font-weight: var(--fw-extrabold);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav__link {
  padding: 7px 11px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--surface-soft); color: var(--text); }
.nav__link[aria-current] { color: var(--text); font-weight: var(--fw-semibold); background: var(--surface-soft); }

.header__search { flex: 1; max-width: 420px; min-width: 0; margin-left: auto; }
.header__actions { display: flex; align-items: center; gap: var(--sp-1); flex: none; }

.version-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.version-select:hover { border-color: var(--border-strong); color: var(--text); }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-soft); color: var(--text); }
.icon-btn__dot {
  position: absolute;
  top: 6px; right: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--surface);
}

/* --- Подвал ------------------------------------------------------------------------- */

.footer {
  margin-top: var(--sp-9);
  padding-block: var(--sp-8) var(--sp-6);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--grid-gap);
}
.footer__title {
  margin-bottom: var(--sp-3);
  color: var(--text);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer__list { display: flex; flex-direction: column; gap: 7px; color: var(--text-secondary); }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-tiny);
}
.footer__disclaimer { max-width: 72ch; line-height: 1.6; }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- Нижняя навигация (мобайл) -------------------------------------------------------- */

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-header);
  display: none;
  height: var(--bottom-nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.bottom-nav__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: var(--fw-medium);
}
.bottom-nav__link[aria-current] { color: var(--accent); }

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .page { padding-bottom: var(--bottom-nav-h); }
}

/* --- Мобильная шапка ------------------------------------------------------------------ */

/* Выдвижное меню разделов: заменяет горизонтальную навигацию на узких экранах. */
.nav-toggle { display: none; }

.nav-drawer {
  padding-block: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer__list { display: flex; flex-direction: column; margin-top: var(--sp-3); }
.nav-drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}
.nav-drawer__list a:last-child { border-bottom: 0; }
.nav-drawer__list a[aria-current] { color: var(--accent); }

@media (max-width: 1279px) {
  .header .nav { display: none; }
  .nav-toggle { display: grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 768px) {
  .header__search { display: none; }
  .header__inner { gap: var(--sp-3); }
}

/* --- Карточка карты --------------------------------------------------------- */

.map-card .card__media { aspect-ratio: 4 / 3; }
.map-card .card__body { gap: 4px; padding: var(--sp-3); }
.map-card .card__title { font-size: var(--fs-small); }
.map-card .card__subtitle { font-size: var(--fs-tiny); line-height: 1.4; }


/* --- Блок «готовится» ------------------------------------------------------- */

.soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
}
.soon__title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}
.soon__text { color: var(--text-secondary); font-size: var(--fs-tiny); line-height: 1.5; }


/* --- Типы утилити ----------------------------------------------------------- */

/* Цветовая типизация раскидок: используется и в разделе lineups, и в списке
   на странице карты, поэтому живёт в общих компонентах. */
[data-utility] {
  --util:      var(--accent);
  --util-soft: var(--accent-soft);
}
[data-utility="smoke"]   { --util: var(--steel);  --util-soft: var(--steel-soft); }
[data-utility="flash"]   { --util: var(--amber);  --util-soft: var(--amber-soft); }
[data-utility="molotov"] { --util: var(--orange); --util-soft: var(--orange-soft); }
[data-utility="he"]      { --util: var(--text-secondary); --util-soft: var(--surface-soft); }

.lineup-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--util-soft);
  color: var(--util);
}
