﻿@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&family=Russo+One&family=Exo+2:ital,wght@1,700;1,800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f0f3f7;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --accent: #2563eb;
  --accent-soft: #f8fafc;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-hover: 0 8px 24px rgba(15,23,42,.10);
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --font-racing: "Russo One", "Exo 2", "Bank Gothic", Eurostile, "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .header-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--mono);
}

nav { display: flex; gap: 28px; flex-wrap: wrap; }

nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

nav a:hover { color: var(--text); text-decoration: none; }
nav a { position: relative; outline: none; -webkit-tap-highlight-color: transparent; }
nav a:focus, nav a:focus-visible { outline: none; box-shadow: none; }
nav a.active, nav a.active:hover { color: #2563EB; font-weight: 700; }
nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: #2563EB; }

main {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px;
}

main h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color: var(--text);
}

main > p { color: var(--text-2); max-width: 720px; margin-bottom: 18px; }

.section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 40px 0 16px;
  font-family: var(--mono);
}


.gamepad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.gamepad-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.gamepad-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.gamepad-card.placeholder {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.3);
}

.card-media {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  overflow: hidden;
  flex-shrink: 0;
}

.card-media img.gamepad-image {
  width: 85%;
  height: 85%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.04) brightness(1.02);
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  width: 100%;
  height: 100%;
}

.card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  color: var(--text);
}

.card-info::before {
  content: none;
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.card-info .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.card-info .desc {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.card-info .verdict {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  margin: 0;
}

.review-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gamepad-card:hover .review-link {
  color: #1e40af;
}

.gamepad-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.gamepad-card .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.gamepad-card p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; flex-grow: 1; }

.gamepad-card .verdict {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-top: auto;
}

.review-link {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.filter-tag.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(15,23,42,.15);
}

/* ===== ПЛАШКА С ТЕСТИРОВАНИЕМ ===== */
.testing-banner {
  margin-top: 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testing-banner h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testing-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.testing-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testing-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.testing-progress {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.testing-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #1e40af);
  transition: width 0.3s ease;
}

.testing-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gamepad-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  animation: fadeIn 0.2s ease;
}

.gamepad-modal.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15,23,42,.2);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  color: var(--text-2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 48px 40px;
}

.modal-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 24px;
}

.modal-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 8px;
  color: var(--text-3);
}

.modal-right h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--mono);
  text-transform: uppercase;
}

.modal-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

.modal-specs-row {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.modal-spec-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-review {
  margin-bottom: 20px;
}

.modal-review h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-column h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-column li {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.modal-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-spec span {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.modal-spec strong {
  font-size: 14px;
  color: var(--text);
}

.modal-verdict {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  color: var(--text);
}

.modal-verdict h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
  font-family: var(--mono);
}

.modal-verdict p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.stat-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: all 0.2s;
}

.chip:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
}
.chip svg { color: var(--text-3); flex-shrink: 0; }
.chip-num {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--mono);
}
.chip-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; line-height: 1.3; }
.chip-arrow { margin-left: auto; color: var(--text-3); font-size: 20px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  color: var(--text);
  transition: all 0.2s;
}

.cat:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.cat-count {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }

.guide-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text);
  transition: border-color .2s;
}

.guide-links a:hover { border-color: var(--text-3); text-decoration: none; }
.guide-links span { font-weight: 600; font-size: 15px; }
.guide-links em { font-style: normal; font-size: 12px; color: var(--text-3); font-family: var(--mono); }

.promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.promo h3 { font-size: 18px; margin-bottom: 6px; }
.promo p { font-size: 14px; color: var(--text-2); }

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
  text-decoration: none;
}

.search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 6px 6px 18px;
  max-width: 760px;
  margin: 20px 0 20px;
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.search input::placeholder { color: var(--text-3); }

.search button {
  border: none;
  background: var(--card);
  color: var(--text-2);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.search button:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .stat-chips { grid-template-columns: repeat(2, 1fr); }
  .stat-chips .chip:last-child { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  header .header-inner { padding: 14px 20px; flex-direction: column; gap: 12px; }
  nav { gap: 18px; flex-wrap: wrap; justify-content: center; }
  main { padding: 32px 20px; }
  .stat-chips .chip:last-child { grid-column: auto; }
  .stat-chips, .category-grid { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: flex-start; }
  .modal-body { grid-template-columns: 1fr; padding: 32px 24px; }
  .modal-specs { grid-template-columns: 1fr; }
  .modal-pros-cons { grid-template-columns: 1fr; }
  .quick-filters { gap: 6px; }
  .filter-tag { font-size: 11px; padding: 6px 12px; }
  .testing-items { grid-template-columns: 1fr; }
}
/* ===== Список гайдов (карточки в колонку) ===== */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.guide-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}

.guide-item:hover {
  box-shadow: var(--shadow-hover);
}

.guide-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.guide-item .difficulty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
  line-height: 1.5;
}

.guide-item p:not(.difficulty) {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.6;
  max-width: 720px;
}

.guide-item a {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

.guide-item a:hover {
  text-decoration: underline;
}
/* ===== КНОПКА-ССЫЛКА ===== */
.btn-secondary {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--border);
  transition: all .15s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ===== СЕТКА ИГР ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.game-genre {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.game-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.game-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 14px;
  flex-grow: 1;
  line-height: 1.5;
}

.game-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

/* ===== ЛЕНТА ОБНОВЛЕНИЙ ===== */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

.changelog-item {
  position: relative;
  padding-bottom: 12px;
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.changelog-date {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.changelog-item p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

.changelog-item strong {
  color: var(--text);
}

/* ===== АДАПТИВ ДЛЯ ИГР ===== */
@media (max-width: 600px) {
  .games-grid { grid-template-columns: 1fr; }
}
/* ===== КАТАЛОГ ДРАЙВЕРОВ ===== */
.driver-filters {
  display: flex;
  gap: 8px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}

.filter-btn:hover { border-color: var(--text-3); }
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.driver-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}

.driver-card:hover { box-shadow: var(--shadow-hover); }

.driver-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.driver-type {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
}

.driver-version {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.driver-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.driver-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.driver-desc {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.driver-compat {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.driver-compat strong { color: var(--text); }

.driver-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.driver-actions .btn {
  font-size: 13px;
  padding: 8px 14px;
}

/* ===== ФИЛЬТР ОПУБЛИКОВАННЫЕ/ВСЕ ===== */
.review-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-filters .filter-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--card);
  color: var(--text-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.review-filters .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.review-filters .filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== ШАПКА: ЛОГО, ЯКОРЯ ===== */
html { scroll-behavior: smooth; }
#gamepad-list, #in-testing { scroll-margin-top: 80px; }
header h1 a.logo { color: var(--text); }
header h1 a.logo::first-letter { color: var(--accent); }
header h1 a.logo:hover { text-decoration: none; color: var(--accent); }
nav a:hover { color: var(--accent); }

/* ===== КНОПКА В МОДАЛКЕ ===== */
.modal-tester-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.modal-tester-btn:hover { background: #1e40af; text-decoration: none; }

/* ===== ТЕСТЕР (Hardware Tester, светлый) ===== */
#view-tester[hidden], .gt-grid[hidden] { display: none; }
.gt-card { max-width: 1440px; width: 100%; margin: 24px auto; padding: 32px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15px; }
.gt-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.gt-slot { padding: 10px 14px; border: 1px solid #E2E8F0; border-radius: 8px; font-family: var(--mono); font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff; text-align: left; }
.gt-slot.on { color: var(--text); cursor: pointer; }
.gt-slot.sel { border-color: var(--accent); background: var(--accent-soft); }
.gt-wait { padding: 72px 16px; text-align: center; color: var(--accent); font-weight: 600; font-size: 18px; }
.gt-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.gt-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.gt-title strong { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-title span, .gt-cap { font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: .5px; }
.gt-status { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.gt-status b { color: var(--text); }
.gt-btns { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-bottom: 20px; }
.gt-b { border: 1px solid #E2E8F0; border-radius: 6px; padding: 6px 0; text-align: center; font-family: var(--mono); font-size: 13px; line-height: 1.4; color: var(--text-2); }
.gt-b i { display: block; font-style: normal; color: var(--text-3); font-size: 12px; }
.gt-b.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gt-b.on i { color: #fff; }
.gt-sticks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; }
.gt-sticks canvas { width: 100%; max-width: 220px; aspect-ratio: 1; display: block; margin: 6px auto; }
.gt-axes { font-family: var(--mono); font-size: 13px; color: var(--text-2); line-height: 1.6; }
.gt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gt-actions button { padding: 10px 16px; border: 1px solid #E2E8F0; border-radius: 8px; background: #fff; font-family: var(--mono); font-size: 13px; cursor: pointer; color: var(--text); }
.gt-actions button:hover, .gt-actions button.on { border-color: var(--accent); color: var(--accent); }
#gt-svg { width: 100%; height: auto; max-height: none; }
#gt-svg .body { fill: #F1F5F9; stroke: #CBD5E1; stroke-width: 2; }
#gt-svg .p { fill: #fff; stroke: #94A3B8; stroke-width: 1.5; }
#gt-svg .p.on { fill: var(--accent); stroke: var(--accent); }
#gt-svg .f { fill: var(--accent); opacity: .85; }
#gt-svg .stk { fill: #E2E8F0; stroke: #64748B; stroke-width: 1.5; }
#gt-svg .t { font: 600 10px var(--mono); fill: #475569; text-anchor: middle; pointer-events: none; }
@media (max-width: 900px) {
  .gt-grid { grid-template-columns: 1fr; gap: 24px; }
  .gt-slots { grid-template-columns: 1fr 1fr; }
  .gt-btns { grid-template-columns: repeat(6, 1fr); }
  .gt-card { padding: 16px; }
}
/* ===== ФУТЕР ===== */
.footer-status { font-family: var(--mono); font-size: 12px; color: var(--text-3) !important; }
.footer-lab-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.footer-lab-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.footer-lab-progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.footer-lab-progress span { display: block; height: 100%; background: var(--accent); }
.footer-lab-days { font-size: 13px; color: var(--text-2); }
.footer-col a.footer-lab-btn { align-self: flex-start; color: var(--accent); font-weight: 600; }
.footer-logo { font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: .5px; color: var(--text); }
.footer-logo::first-letter { color: var(--accent); }
.footer-logo:hover { text-decoration: none; color: var(--accent); }
.footer-brand p { margin-top: 12px; max-width: 420px; color: var(--text-2); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-3); margin-bottom: 4px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { max-width: 1440px; margin: 0 auto; padding: 16px 32px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }

/* ===== БАЗА ЗНАНИЙ ===== */
#guides, #in-testing, #categories, #gamepad-list { scroll-margin-top: 80px; }
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.kb-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; color: var(--text); box-shadow: var(--shadow); transition: all .2s; }
.kb-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.kb-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .8px; }
.kb-card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.kb-card p { font-size: 13px; color: var(--text-2); flex-grow: 1; }
.kb-more { margin-top: 6px; text-align: left; }
.modal-body-single { grid-template-columns: 1fr; }
.modal-guide { max-width: 720px; }
.guide-text p { color: var(--text-2); margin-bottom: 12px; }
.guide-text ul { padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { .kb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kb-grid { grid-template-columns: 1fr; } }

/* ===== ПАЛИТРА: графит + технологичный синий ===== */
.filter-tag:hover { background: var(--card); }
.filter-tag.active, .filter-btn.active, .review-filters .filter-btn.active,
.btn-primary, .modal-tester-btn, .gt-b.on {
  background: #0F172A; border-color: #0F172A; color: #fff; box-shadow: none;
}
.btn-primary:hover, .modal-tester-btn:hover { background: #1E293B; }
.filter-tag:hover, .filter-btn:hover, .review-filters .filter-btn:hover { border-color: #0F172A; color: #0F172A; }
.filter-tag.active:hover, .filter-btn.active:hover { color: #fff; }
.card-info::before { color: var(--text-3); }
.card-info .verdict, .gamepad-card .verdict, .modal-verdict {
  background: #F8FAFC; border-left: 3px solid #CBD5E1; color: #0F172A;
}
.gamepad-card:hover .card-info .verdict { border-left-color: #2563EB; }
.modal-verdict h4, .modal-column h4 { color: #0F172A; }
.testing-bar { background: #2563EB; }
.gt-slot.sel { border-color: #2563EB; background: #EFF6FF; }
.gt-b.on { background: #2563EB; border-color: #2563EB; }
.gt-actions button:hover, .gt-actions button.on { border-color: #2563EB; color: #2563EB; }
#gt-svg .p.on { fill: #2563EB; stroke: #2563EB; }
#gt-svg .f { fill: #2563EB; }
.btn-secondary:hover { background: #F8FAFC; }
.review-link { color: #2563EB; }
.gamepad-card:hover .review-link { color: #1E40AF; }

/* ===== ПЛОТНАЯ ГЛАВНАЯ ===== */
.hero { margin-bottom: 4px; }
.hero h1 { font-size: 34px; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 8px; }
.hero-sub { color: var(--text-2); max-width: 760px; margin-bottom: 10px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; color: #2563EB; background: #EFF6FF; padding: 4px 10px; border-radius: 20px; }
.home section.block { margin-top: 40px; }
.home section.block:first-of-type { margin-top: 0; }
.home .section-title { margin: 0 0 16px; }
.home h2.block-title { font-size: 24px; margin-bottom: 8px; }
.gamepad-grid { margin-top: 16px; gap: 20px; }
.card-info { padding: 16px; }
.card-media { height: 210px; }
.kb-grid { margin-bottom: 0; }
.search { margin: 16px 0; }
.quick-filters { margin-bottom: 16px; }
.stat-chips { margin-bottom: 0; }
#hero, #reviews, #categories, #guides, #in-testing, #tester { scroll-margin-top: 72px; }
#view-tester { margin-top: 40px; }
.tester-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tester-bar h2 { margin: 0; font-size: 24px; }
.tester-close { font-family: var(--mono); font-size: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.tester-close:hover { border-color: #0F172A; }
.gt-card { margin: 0 auto; padding: 20px; }
/* ===== SPA-экраны ===== */
.view[hidden] { display: none !important; }
.home .view > section.block:first-child { margin-top: 0; }
.planned-list { margin: 12px 0 0 20px; color: var(--text-2); line-height: 1.8; }
.card-info .desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

/* ===== Кнопка звука в шапке ===== */
header .header-inner { gap: 20px; }
.header-sep { width: 1px; height: 22px; background: #E2E8F0; margin-left: auto; flex-shrink: 0; }
nav { margin-left: auto; }
.header-sep { margin-left: -4px; }
@media (max-width: 600px) { .header-sep { display: none; } header .header-inner { position: relative; } }

/* ===== Hero-карточка ===== */
.hero-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 16px; padding: 28px 32px; box-shadow: var(--shadow); }
.hero-card .search { margin-bottom: 0; }
.hero-quick { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; }
.hero-cta { display: block; text-align: center; background: #2563EB; color: #fff; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 10px; transition: background .2s, transform .2s; }
.hero-cta:hover { background: #1E40AF; text-decoration: none; transform: translateY(-1px); }
.hero-quick-label { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tag { font: inherit; font-size: 13px; color: var(--text-2); background: #fff; border: 1px solid #E2E8F0; border-radius: 20px; padding: 6px 14px; cursor: pointer; transition: all .2s; }
.hero-tag:hover { color: #2563EB; border-color: #2563EB; background: #EFF6FF; }
.hero + .hero, .hero .stat-chips { margin-top: 20px; }
@media (max-width: 900px) { .hero-card { grid-template-columns: 1fr; padding: 20px; } }

/* ===== Витрина ===== */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.home .section-head .section-title { margin: 0; }
.section-link { font-size: 14px; font-weight: 600; white-space: nowrap; }
.gamepad-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.10); }

/* ===== Новости на главной ===== */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.10); }
.news-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.news-tag { font-weight: 700; letter-spacing: .04em; color: #2563EB; }
.news-date { color: #64748B; white-space: nowrap; }
.news-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.news-card p { font-size: 14px; color: #475569; margin-bottom: 16px; flex-grow: 1; }

/* ===== Геометрия главной и футера ===== */
.news-grid { width: 100%; max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.news-card { max-width: none; min-width: 0; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.hero-card { align-items: center; }
.hero-cta { width: 100%; box-sizing: border-box; }
.hero-cta-note { font-size: 12px; color: var(--text-3); text-align: center; margin: -4px 0 4px; }
.hero-tags { justify-content: space-between; }
.hero-tag { flex: 1 1 auto; text-align: center; }
.stat-chips .chip { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.stat-chips .chip-arrow { margin-left: auto; line-height: 1; }
.category-grid .cat { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.category-grid .cat-name { flex: 1; min-width: 0; }
.category-grid .cat::after { content: "→"; color: var(--text-3); font-size: 18px; line-height: 1; flex-shrink: 0; transition: color .2s, transform .2s; }
.category-grid .cat:hover::after { color: var(--accent); transform: translateX(3px); }

/* ===== Скелетон новостей ===== */
.news-skeleton { gap: 10px; min-height: 200px; }
.news-skeleton .sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%); background-size: 200% 100%; animation: sk-shimmer 1.2s infinite linear; }
.news-skeleton .sk-s { width: 50%; }
.news-skeleton .sk-t { height: 16px; }
.news-skeleton .sk-p { width: 85%; }
@keyframes sk-shimmer { to { background-position: -200% 0; } }

/* ===== Строгий инженерный стиль ===== */
:root { --radius: 8px; }
.hero-card, .hero-quick, .hero-cta, .hero-tag, .cat, .news-card, .gamepad-card, .kb-card,
.search, .search input, .search button, .filter-tag, .tester-close, .footer-lab-card,
.testing-banner { border-radius: 8px; }
.hero-tag, .filter-tag, .news-skeleton .sk { border-radius: 6px; }
.hero-card { box-shadow: none; }
.hero-cta:hover, .gamepad-card:hover, .news-card:hover { transform: none; }
.hero-cta:hover { box-shadow: none; }
.hero-tag:hover, .filter-tag:hover { border-color: #0F172A; color: #0F172A; background: #fff; }

/* моноширинный шрифт для цифр */
.chip-num, .cat-idx, .cat-count, .news-date, .news-tag, .gt-b, .price, .card-price,
.gamepad-card [class*="price"], .gamepad-card [class*="meta"], .footer-lab-days, .testing-label { font-family: var(--mono); }

/* счётчики: единая панель-полоса */
.stat-chips { gap: 0; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; overflow: hidden; margin-top: 20px; }
.stat-chips .chip { background: transparent; border: 0; border-right: 1px solid #E2E8F0; border-radius: 0; box-shadow: none; }
.stat-chips .chip:last-child { border-right: 0; }
.stat-chips .chip:hover { background: #F8FAFC; box-shadow: none; }
.stat-chips .chip:hover .chip-arrow { color: #0F172A; }
@media (max-width: 900px) {
  .stat-chips .chip { border-bottom: 1px solid #E2E8F0; }
  .stat-chips .chip:nth-child(2n) { border-right: 0; }
  .stat-chips .chip:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .stat-chips .chip { border-right: 0; }
}

/* категории: технический индекс */
.category-grid .cat { box-shadow: none; transition: border-color .15s; }
.category-grid .cat:hover { border-color: #0F172A; box-shadow: none; transform: none; }
.category-grid .cat:hover::after { color: #0F172A; transform: none; }
.cat-idx { font-size: 12px; color: var(--text-3); letter-spacing: .5px; flex-shrink: 0; }
.category-grid .cat:hover .cat-idx { color: #0F172A; }
.category-grid .cat-count { order: 3; }

/* новости */
.news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.news-card { box-shadow: none; transition: border-color .15s; }
.news-card:hover { border-color: #0F172A; box-shadow: none; }
.news-card .review-link { text-transform: none; font-size: 13px; display: block; text-align: left; align-self: flex-start; margin-top: auto; padding: 0; }

/* ===== ТЕСТЕР: скин Xbox ===== */
.gt-grid.idle { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.gt-skin { position: relative; }
.gt-grid.idle #gt-svg { opacity: .45; filter: grayscale(.4); }
.gt-skin-wait { display: none; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: rgba(15,23,42,.8); color: #fff; font: 600 13px var(--mono); padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.gt-grid.idle .gt-skin-wait { display: block; }
.gt-wait { padding: 20px 16px 8px; font-size: 15px; }
#gt-svg .body { fill: url(#xg-body); }
#gt-svg .rim { fill: none; stroke: #fff; stroke-width: 2; opacity: .8; }
#gt-svg .ring { fill: #CBD5E1; stroke: #94A3B8; stroke-width: 1.5; }
#gt-svg .ring2 { fill: #E2E8F0; stroke: #94A3B8; stroke-width: 1; }
#gt-svg .stk { fill: #334155; stroke: #0F172A; }
#gt-svg .tex { fill: none; stroke: #64748B; stroke-width: 3; stroke-dasharray: 1.5 2.5; }
#gt-svg g .p { fill: #475569; stroke: #1E293B; }
#gt-svg g .p.on { fill: #2563EB; }
#gt-svg .dpad { fill: #E2E8F0; stroke: #94A3B8; stroke-width: 1.5; }
#gt-svg .dpad-c { fill: #CBD5E1; }
#gt-svg .xl { stroke: #94A3B8; stroke-width: 2; stroke-linecap: round; fill: none; pointer-events: none; }
#gt-svg .pc { font: 600 9px var(--mono); fill: #64748B; text-anchor: middle; }
#gt-svg .ay { stroke: #EAB308; } #gt-svg .ax { stroke: #2563EB; } #gt-svg .ab { stroke: #DC2626; } #gt-svg .aa { stroke: #16A34A; }
#gt-svg .p.ay.on { fill: #EAB308; stroke: #CA8A04; } #gt-svg .p.ax.on { fill: #2563EB; } #gt-svg .p.ab.on { fill: #DC2626; stroke: #B91C1C; } #gt-svg .p.aa.on { fill: #16A34A; stroke: #15803D; }
#gt-svg .p.ay, #gt-svg .p.ax, #gt-svg .p.ab, #gt-svg .p.aa { stroke-width: 2.5; }
#gt-svg .p.on + .t { fill: #fff; }

/* ===== В РАБОТЕ ===== */
.lab-h { font-size: 18px; margin: 0 0 14px; }
.lab-grid, .queue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab-card, .queue-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; box-shadow: var(--shadow); }
.lab-card h4 { font-size: 16px; margin: 0 0 10px; }
.lab-days { display: flex; justify-content: space-between; font: 600 12px var(--mono); color: var(--text-2); margin-bottom: 6px; }
.lab-sub { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .8px; color: #2563EB; margin: 14px 0 6px; }
.lab-games, .lab-obs { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text-2); }
.lab-games li { display: inline-block; background: #EFF6FF; border-radius: 6px; padding: 2px 8px; margin: 0 4px 4px 0; }
.lab-obs li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.lab-obs b { color: var(--text); font-weight: 600; text-align: right; }
.queue-card { display: flex; flex-direction: column; gap: 4px; }
.queue-card span { font: 12px var(--mono); color: var(--text-3); }

/* ===== БАЗА ЗНАНИЙ: фильтры ===== */
.kb-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.kb-search { flex: 1 1 220px; max-width: 320px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--card); color: var(--text); }
.kb-search:focus { outline: none; border-color: #2563EB; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 13px; cursor: pointer; color: var(--text-2); }
.kb-chip:hover { border-color: #2563EB; color: #2563EB; }
.kb-chip.active { background: #2563EB; border-color: #2563EB; color: #fff; }
.kb-chip:focus { outline: none; }
.kb-empty { grid-column: 1 / -1; color: var(--text-3); }
@media (max-width: 900px) { .lab-grid, .queue-grid { grid-template-columns: 1fr; } }

/* D-Pad */
#gt-svg .p.dp { fill: #E2E8F0; stroke: #94A3B8; stroke-width: 1.5; }
#gt-svg .p.dp.on { fill: #2563EB; stroke: #1D4ED8; }
#gt-svg .da { fill: #64748B; pointer-events: none; }
#gt-svg .p.dp.on + .da { fill: #fff; }

/* ===== FORZA HALL ===== */
.fh { max-width: 1440px; margin: 0 auto; }
.fh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.fh-bar .section-title { margin: 0 auto 0 0; }
.fh-input, .fh-form input, .fh-form select, .fh-form textarea { padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font: inherit; width: 100%; box-sizing: border-box; }
.fh-input { width: 260px; }
.fh-input:focus, .fh-form input:focus, .fh-form select:focus, .fh-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.fh-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag.active { background: #0F172A; color: #fff; border-color: #0F172A; }
.fh-add { background: #2563EB; color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.fh-add:hover { background: #1d4ed8; }
.fh-ghost { background: #fff; color: #0F172A; border: 1px solid #0F172A; border-radius: 6px; padding: 10px 18px; font: inherit; cursor: pointer; }
.fh-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.fh-form[hidden] { display: none; }
.fh-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.fh-wide { grid-column: 1 / -1; }
.fh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fh-grid { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.fh-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; display: grid; grid-template-columns: 220px 160px 240px 1fr auto; align-items: center; gap: 16px; }
.fh-who strong { display: block; }
.fh-setup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fh-links { display: flex; gap: 8px; justify-content: flex-end; }
.fh-ico, .fh-del { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--accent); text-decoration: none; font-size: 14px; cursor: pointer; padding: 0; }
.fh-ico-youtube { color: #dc2626; }
.fh-ico-twitch { color: #7c3aed; }
.fh-ico:hover, .fh-del:hover { border-color: var(--accent); }
.fh-del { color: #b91c1c; }
.fh-badge { background: #2563EB; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.fh-tag { font-size: 12px; color: var(--text-3); }
.fh-pad { background: #0F172A; color: #fff; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.fh-dz { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.fh-steer { display: inline-block; margin-top: 4px; padding: 2px 8px; border: 1px solid var(--border, currentColor); border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.fh-note { margin: 0; font-size: 14px; color: var(--text-2); }
.fh-link { color: var(--accent); font-size: 13px; }
.fh-mine { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 12px; color: var(--accent); font-weight: 600; }
.fh-mine button { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; color: #b91c1c; }
.fh-empty { color: var(--text-3); }
.cat-forza { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }
.cat-forza a { color: var(--accent); font-weight: 600; }
@media (max-width: 1000px) { .fh-card { grid-template-columns: 1fr 1fr; } .fh-links { justify-content: flex-start; } }
@media (max-width: 640px) { .fh-card, .fh-form { grid-template-columns: 1fr; } .fh-input { width: 100%; } }
.fh-adv { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 0; min-width: 0; }
.fh-adv legend { font-size: 13px; font-weight: 600; padding: 0 6px; color: var(--text); }
.fh-adv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fh-sync { display: flex; align-items: center; gap: 10px; }
.fh-sync input[type=number] { order: 2; width: 72px; flex: none; }
.fh-sync input[type=range] { flex: 1; padding: 0; min-width: 0; accent-color: #2563EB; }
.fh-axes-btn { align-self: flex-start; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; }
.fh-adv .fh-axes-btn { margin-top: 10px; }
.fh-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 10px auto 0; max-width: 720px; justify-content: center; }
.fh-extra > label { min-width: 0; }
.fh-extra .fh-sync { width: 100%; }
.fh-extra[hidden] { display: none; }
.fh-ax { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.fh-ax span { flex: 1; }
.fh-ax input { width: 64px; flex: none; }
.fh-scale { position: relative; height: 4px; border-radius: 2px; background: var(--border); }
.fh-scale i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: #2563EB; }
.fh-card .fh-axes-btn { align-self: stretch; width: 100%; background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 6px; padding: 6px 10px; color: var(--text-2); outline: none; text-align: center; }
.fh-card .fh-axes-btn:focus, .fh-card .fh-axes-btn:focus-visible { outline: none; box-shadow: none; }
.fh-axes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 6px; padding: 10px; }
.fh-axes[hidden] { display: none; }
.fh-cell { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid #E2E8F0; border-radius: 6px; padding: 6px 10px; min-width: 0; }
.fh-cell span { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.fh-cell b { font-family: monospace; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
@media (max-width: 640px) { .fh-axes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fh-adv-row, .fh-extra { grid-template-columns: minmax(0, 1fr); } }

#view-forza.fh { padding: 20px; border-radius: 12px; }
#view-forza .fh-card, #view-forza .fh-form { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
#view-forza .fh-form { background: rgba(255, 255, 255, 0.96); }
#view-forza .fh-filters, #view-forza .fh-bar { position: relative; z-index: 1; }
#view-forza .filter-tag:not(.active) { background: #fff; }
@media (max-width: 640px) { #view-forza.fh { padding: 12px; background-attachment: scroll; } }

/* Forza Hall: командные ливреи */
.fh-card { --tc: #0F172A; --tc-rgb: 15, 23, 42; position: relative; overflow: hidden; border-left: 4px solid var(--tc); background: linear-gradient(90deg, rgba(var(--tc-rgb), 0.06) 0%, #FFFFFF 35%); }
.fh-team-esv { --tc: #DC2626; --tc-rgb: 220, 38, 38; --wm-op: 0.05; --wm-size: 44px; --rank-bg: #0F172A; --rank-fg: #fff; --rank-bd: #DC2626;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.05) 0%, rgba(15, 23, 42, 0.05) 18%, #FFFFFF 40%); }
.fh-team-k1z { --tc: #09090B; --tc-rgb: 9, 9, 11; --wm-op: 0.06; --wm-size: 96px; --rank-bg: #18181B; --rank-fg: #fff; --rank-bd: #18181B;
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.07) 0%, #FFFFFF 35%); }
.fh-team-f1r { --tc: #1B5E4B; --tc-rgb: 27, 94, 75; --wm-op: 0.05; --wm-size: 40px; --rank-bg: #1B5E4B; --rank-fg: #E9DDB4; --rank-bd: #A38A4F;
  background: linear-gradient(90deg, rgba(27, 94, 75, 0.07) 0%, rgba(163, 138, 79, 0.05) 18%, #FFFFFF 40%); }
.fh-team-custom { --tc: #2563EB; --tc-rgb: 37, 99, 235; --wm-op: 0.05; --wm-size: 56px; --rank-bg: rgba(37, 99, 235, 0.08); --rank-fg: #2563EB; --rank-bd: #2563EB;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, #FFFFFF 35%); }
.fh-card > * { position: relative; z-index: 2; }
.fh-card > .fh-wm { position: absolute; z-index: 0; right: 150px; top: 50%; transform: translateY(-50%) skewX(-12deg); font-family: var(--mono, monospace); font-size: var(--wm-size, 56px); font-weight: 900; line-height: 1; letter-spacing: -1px; white-space: nowrap; color: var(--tc); opacity: var(--wm-op, 0.05); pointer-events: none; user-select: none; padding: 0 20px; border-left: 10px solid var(--tc); }
.fh-rank { display: inline-block; margin: 4px 0 2px; padding: 1px 8px; border: 1px solid var(--rank-bd, var(--tc)); border-radius: 4px; background: var(--rank-bg, rgba(var(--tc-rgb), 0.08)); color: var(--rank-fg, var(--tc)); font-family: var(--mono, monospace); font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
.fh-card .fh-axes { background: #F8FAFC; }
@media (max-width: 640px) { .fh-card > .fh-wm { right: 8px; font-size: calc(var(--wm-size, 56px) * 0.6); } }

/* ===== Footer (единый блок, не дублировать выше) ===== */
header .header-inner, main { max-width: 1440px; width: 100%; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; transform: none; }
footer { width: 100%; background: #FFFFFF; border-top: 1px solid #E2E8F0; margin-top: 64px; padding: 0; color: var(--text-2); font-size: 14px; }
.footer-container { max-width: 1440px; width: 100%; margin: 0 auto; padding: 48px 32px 24px; box-sizing: border-box; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; width: 100%; }
.footer-brand, .footer-col { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; margin: 0; padding: 0; }
.footer-lab-card { width: 100%; box-sizing: border-box; }
.footer-bottom { width: 100%; margin-top: 36px; padding-top: 20px; border-top: 1px solid #E2E8F0; text-align: center; font-size: 13px; color: var(--text-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { header .header-inner, main { padding-left: 16px; padding-right: 16px; } .footer-container { padding-left: 16px; padding-right: 16px; } }

/* карточки-ссылки: единая типографика, без подчёркивания и синего наследуемого цвета */
a.gamepad-card, a.gamepad-card:hover, a.gamepad-card:focus, a.gamepad-card:visited { color: var(--text); text-decoration: none; }
a.gamepad-card *, a.gamepad-card:hover * { text-decoration: none; }

/* ===== Прижатый футер ===== */
html { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; margin-top: auto; }
body > main { padding-bottom: 64px; }

/* ===== Главная: редакционный дизайн ===== */
.hero-card { grid-template-columns: minmax(0, 1fr); gap: 40px; background: transparent; border: 0; padding: 8px 0 0; }
.hero .hero-card h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 12px; }
.hero-main .hero-sub { margin-bottom: 20px; }
.hero-main .search { margin-bottom: 12px; }
.hero-main .hero-tags { justify-content: flex-start; margin-bottom: 20px; }
.hero-main .hero-tag { flex: 0 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .hero-cta { width: auto; padding: 12px 22px; }
.hero-cta-alt { background: #fff; color: #0F172A; border: 1px solid #CBD5E1; }
.hero-cta-alt:hover { background: #F8FAFC; border-color: #0F172A; color: #0F172A; }
.hero-showcase { background: #0F172A; color: #F8FAFC; border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hs-label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: #94A3B8; }
.hero .hero-showcase .hs-title { font-size: 26px; letter-spacing: -0.02em; color: #F8FAFC; margin: 0; }
.hs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hs-metric { display: flex; flex-direction: column; gap: 4px; padding-left: 12px; border-left: 2px solid #2563EB; min-width: 0; }
.hs-val { font-family: var(--mono); font-size: 22px; font-weight: 700; color: #F8FAFC; white-space: nowrap; }
.hs-name { font-size: 12px; color: #94A3B8; line-height: 1.3; }
.hs-link { color: #60A5FA; font-weight: 600; }
.hs-link:hover { color: #93C5FD; text-decoration: none; }
@media (max-width: 900px) { .hero-card { grid-template-columns: 1fr; padding: 0; } .hs-val { font-size: 18px; } }

/* статистика: единая панель */
.stat-chips { gap: 0; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; }
.stat-chips .chip { border: 0; border-radius: 0; box-shadow: none; background: transparent; border-left: 1px solid #E2E8F0; }
.stat-chips .chip:first-child { border-left: 0; }
.stat-chips .chip:hover { background: #F8FAFC; transform: none; box-shadow: none; }
@media (max-width: 900px) { .stat-chips .chip { border-left: 0; border-top: 1px solid #E2E8F0; } .stat-chips .chip:first-child { border-top: 0; } }

/* новости: главная новость */
.news-featured { grid-column: span 2; grid-row: span 2; padding: 28px; background: #F8FAFC; }
.news-featured h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.news-featured p { font-size: 15px; }
.news-badge { background: #2563EB; color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; margin-right: auto; }
@media (max-width: 1024px) { .news-featured { grid-row: auto; } }
@media (max-width: 600px) { .news-featured { grid-column: auto; } }

/* hover интерактивных карточек */
.cat, .news-card, .gamepad-card, .kb-card, .hero-showcase, .footer-lab-card { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.cat:hover, .news-card:hover, .gamepad-card:hover, .kb-card:hover { transform: translateY(-2px); border-color: #CBD5E1; box-shadow: 0 6px 16px rgba(15,23,42,.08); }

/* ===== Ровная сетка главной + задержки ===== */
.hero-main { max-width: 760px; }
.news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.latency-line { font-family: var(--mono); font-size: 12px; color: var(--text-2); margin: 6px 0 0; }
.sort-bar { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 13px; color: var(--text-2); }
.sort-select { font: inherit; padding: 6px 10px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 6px; }
.lat-table { width: 100%; border-collapse: collapse; background: #FFFFFF; border: 1px solid #E2E8F0; font-size: 14px; }
.lat-table th, .lat-table td { padding: 10px 14px; border-bottom: 1px solid #E2E8F0; text-align: left; }
.lat-table th { background: #F8FAFC; font-size: 12px; color: var(--text-3); cursor: pointer; user-select: none; }
.lat-table td.mono { font-family: var(--mono); }
.lat-table tr:hover td { background: #F8FAFC; }
.lat-src { margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* ===== Статус-бар геймпада ===== */
.gp-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 14px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.gp-status .gp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.gp-status.on .gp-dot { background: #16a34a; }
.gp-status b { color: #0f172a; font-weight: 600; }
.gp-hint, .gp-idx { color: var(--text-3); }
.gp-open { margin-left: auto; padding: 2px 10px; border: 1px solid #E2E8F0; border-radius: 4px; color: var(--accent); background: var(--accent-soft); }
.gp-open:hover { border-color: var(--accent); }

/* ===== Атмосфера: живой фон, лого, виджеты ===== */
body {
  background-color: #0F172A;
  background-image: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.78)), url('./teamreact.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.home section.block { margin-top: 28px; }
.section-title { margin-top: 28px; }
main { padding-top: 24px; }

/* Логотип */
header { border-bottom: 2px solid #0F172A; }
header h1 a.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 12px; height: 26px; background: var(--accent); transform: skewX(-18deg); box-shadow: 5px 0 0 #0F172A; margin-right: 6px; flex: none; }
.logo-text { font-weight: 800; letter-spacing: 1px; }
.logo-sub { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: #fff; background: #0F172A; padding: 3px 8px 3px 10px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
header h1 a.logo::first-letter { color: inherit; }
header h1 a.logo:hover .logo-sub { background: var(--accent); }
@media (max-width: 600px) { .logo-sub { display: none; } }

/* Виджеты */
.widget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.widget { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 20px 22px; }
.wg-tag { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 6px; }
.widget h3 { font-size: 18px; margin-bottom: 12px; }
.wg-rows { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wg-rows li { position: relative; display: flex; justify-content: space-between; font-size: 13px; padding-bottom: 6px; color: var(--text-2); }
.wg-rows b { font-family: var(--mono); color: var(--text); }
.wg-rows i { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #0F172A); transform: skewX(-30deg); }
.wg-note { font-size: 12px; color: var(--text-3); margin: 12px 0 8px; }
.wg-link { font-size: 13px; font-weight: 600; }
.widget p { font-size: 14px; color: var(--text-2); }

/* Слот под кадры NFS ProStreet: --img задаётся из data.js (SITE_IMAGES) */
.has-img { background-color: #0F172A; background-image: linear-gradient(115deg, #0F172A 0%, #1e293b 100%); border-left-color: #fff; color: #F8FAFC; min-height: 190px; display: flex; align-items: flex-end; }
.has-img::before { content: ''; position: absolute; inset: 0; background-image: var(--img, none); background-size: cover; background-position: center 45%; background-repeat: no-repeat; z-index: 0; }
.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 52%, rgba(15, 23, 42, 0.25) 100%); z-index: 1; }
.wg-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.wg-facts li { font-family: var(--mono); font-size: 11px; color: #E2E8F0; padding: 3px 8px; border: 1px solid rgba(147,197,253,.45); border-radius: 4px; background: rgba(15,23,42,.55); }
.wg-models { list-style: none; margin: 14px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 6px; }
.wg-models li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2); }
.wg-models em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-left: 4px; }
.wg-models b { font-family: var(--mono); color: var(--text); white-space: nowrap; }
/* Слот фона виджета Forza Hall: задайте --img (напр. в SITE_IMAGES.forzaHall) — по умолчанию нейтральный тёмный градиент */
.forza-widget-bg { --img: none; background-image: linear-gradient(135deg, #0F172A 0%, #1e293b 60%, #334155 100%); }
.has-img .wg-body { position: relative; z-index: 2; }
.has-img h3 { color: #fff; margin-bottom: 8px; }
.has-img p { color: #CBD5E1; margin-bottom: 10px; max-width: 420px; }
.has-img .wg-tag { color: #93C5FD; }
.has-img .wg-link { color: #fff; }
@media (max-width: 900px) { .widget-grid { grid-template-columns: 1fr; } }

/* ===== Единая тема поверх teamreact.jpg ===== */
:root {
  --ui-accent: #2563EB;
  --ui-accent-hover: #1E40AF;
  --ui-light: rgba(255, 255, 255, 0.94);
  --ui-dark: rgba(15, 23, 42, 0.9);
  --ui-border: 1px solid rgba(148, 163, 184, 0.35);
  --ui-radius: 12px;
}
body {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 30%, rgba(15, 23, 42, 0.8) 100%),
    radial-gradient(ellipse at 50% 35%, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.2) 70%),
    url('./teamreact.jpg');
}

/* Текст прямо на фоне */
.hero h1, .hero .hero-card h1, .section-title, main > h1, main > h2,
.tester-bar h2, .block > h2, .block > h3 { color: #F8FAFC; text-shadow: 0 2px 12px rgba(2, 6, 23, 0.7); }
.hero-sub, .section-sub, .hero-main .hero-sub { color: #CBD5E1; text-shadow: 0 1px 8px rgba(2, 6, 23, 0.7); }
.section-title a, .block > a, .news-more, .kb-more, .hero-main a:not(.btn):not(.hero-cta) { color: #93C5FD; }
.section-title a:hover, .block > a:hover, .kb-more:hover { color: #BFDBFE; }

/* Светлые карточки */
.gamepad-card, .game-card, .driver-card, .kb-card, .news-card, .lab-card, .queue-card,
.gt-card, .fh-card, .cat, .chip, .hero-quick, .widget, .lat-table, .stat-chips, .footer-lab-card, .gp-status {
  background-color: var(--ui-light);
  border: var(--ui-border);
  border-radius: var(--ui-radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.stat-chips .chip { background: transparent; border: 0; border-right: 1px solid rgba(148, 163, 184, 0.35); border-radius: 0; backdrop-filter: none; }
.stat-chips .chip:last-child { border-right: 0; }
.widget { border-left: 4px solid var(--ui-accent); }
.fh-card { border-left: 4px solid var(--tc); background: linear-gradient(90deg, rgba(var(--tc-rgb), 0.08) 0%, var(--ui-light) 35%); }
.cat:hover, .news-card:hover, .gamepad-card:hover, .kb-card:hover, .driver-card:hover { border-color: var(--ui-accent); }

/* Тёмные блоки (Forza Hall и «Быстрые ориентиры») */
.widget.has-img, .forza-widget-bg { background-color: var(--ui-dark); border: var(--ui-border); border-left: 4px solid var(--ui-accent); color: #F8FAFC; }
.widget.has-img::after { background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.4) 100%); }
.has-img .wg-link, .has-img .wg-tag { color: #93C5FD; }

/* Кнопки, фильтры, бейджи, прогресс — один акцент */
.btn-primary, .modal-tester-btn, .hero-cta, .gt-b.on,
.filter-tag.active, .filter-btn.active, .review-filters .filter-btn.active, .kb-chip.active {
  background: var(--ui-accent); border-color: var(--ui-accent); color: #fff;
}
.btn-primary:hover, .modal-tester-btn:hover, .hero-cta:hover { background: var(--ui-accent-hover); }
.filter-tag:hover, .filter-btn:hover, .review-filters .filter-btn:hover, .kb-chip:hover, .hero-tag:hover {
  border-color: var(--ui-accent); color: var(--ui-accent); background: #fff;
}
.filter-tag.active:hover, .filter-btn.active:hover, .kb-chip.active:hover { color: #fff; background: var(--ui-accent-hover); }
.filter-tag, .filter-btn, .kb-chip, .hero-tag, .tester-close, .sort-select, .kb-search {
  background: var(--ui-light); border: var(--ui-border);
}
.badge, .news-badge, .fh-badge { background: var(--ui-accent); color: #fff; }
.badge { background: #EFF6FF; color: var(--ui-accent); }
.footer-lab-progress span, .testing-progress span, .wg-rows i { background: var(--ui-accent); }
.wg-rows i { background: linear-gradient(90deg, var(--ui-accent), #1E40AF); }
header { border-bottom-color: rgba(148, 163, 184, 0.35); }

/* ===== Стеклянный минимализм поверх teamreact.jpg ===== */
:root {
  --glass: rgba(15, 23, 42, 0.62);
  --glass-2: rgba(30, 41, 59, 0.58);
  --glass-hover: rgba(30, 41, 59, 0.72);
  --glass-line: 1px solid rgba(248, 250, 252, 0.14);
  --glass-line-hover: 1px solid rgba(248, 250, 252, 0.28);
  --g-title: #F8FAFC; --g-text: #CBD5E1; --g-meta: #94A3B8; --g-accent: #38BDF8;
  /* перенастройка базовых токенов */
  --card: var(--glass); --border: rgba(248, 250, 252, 0.14); --text: var(--g-title);
  --text-2: var(--g-text); --text-3: var(--g-meta); --accent: var(--g-accent);
  --accent-soft: rgba(56, 189, 248, 0.1);
  --shadow: 0 2px 10px rgba(2, 6, 23, 0.18); --shadow-hover: 0 4px 16px rgba(2, 6, 23, 0.25);
  --ui-accent: #38BDF8; --ui-accent-hover: #7DD3FC;
  --ui-light: var(--glass); --ui-dark: var(--glass); --ui-border: var(--glass-line);
}
body {
  color: var(--g-text);
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.5) 40%, rgba(15, 23, 42, 0.72) 100%),
    url('./teamreact.jpg');
}
a { color: var(--g-accent); }

/* Поверхности */
header, footer { background: rgba(15, 23, 42, 0.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(248, 250, 252, 0.14); }
header h1, header h1 a, nav a { color: var(--g-title); }
nav a:hover, nav a.active { color: var(--g-accent); }
.logo-mark { box-shadow: 5px 0 0 rgba(248, 250, 252, 0.85); }
.logo-sub { background: rgba(248, 250, 252, 0.14); }
.gamepad-card, .game-card, .driver-card, .kb-card, .news-card, .lab-card, .queue-card,
.gt-card, .fh-card, .cat, .chip, .hero-quick, .widget, .lat-table, .stat-chips, .footer-lab-card,
.gp-status, .fh-form, .search, .news-featured, .hero-showcase, .modal-content {
  background-color: var(--glass);
  background-image: none;
  border: var(--glass-line);
  box-shadow: none;
  color: var(--g-text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.widget, .fh-card { border-left: 3px solid var(--g-accent); }
.fh-card { border-left-color: var(--tc); background-image: linear-gradient(90deg, rgba(var(--tc-rgb), 0.18) 0%, transparent 35%); }
.fh-team-esv, .fh-team-k1z, .fh-team-ecu, .fh-team-ea { background-image: none; }
.widget.has-img, .forza-widget-bg { background-color: var(--glass-2); background-image: none; }
.widget.has-img::after { background: linear-gradient(90deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%); }
.stat-chips .chip { background: transparent; border-color: rgba(248, 250, 252, 0.14); backdrop-filter: none; -webkit-backdrop-filter: none; }
.stat-chips .chip:hover, .lat-table tr:hover td { background: rgba(248, 250, 252, 0.06); }
.gamepad-card:hover, .game-card:hover, .driver-card:hover, .kb-card:hover, .news-card:hover, .cat:hover,
.queue-card:hover, .hero-quick:hover, .widget:hover, .fh-card:hover {
  background-color: var(--glass-hover); border-color: rgba(248, 250, 252, 0.28); box-shadow: none; transform: none;
}
.fh-card:hover { border-left-color: var(--tc); }
.card-footer, .card-media { background: rgba(248, 250, 252, 0.04); border-color: rgba(248, 250, 252, 0.1); }

/* Поля, кнопки, теги */
.search input, .kb-search, .sort-select, .fh-input, .fh-form input, .fh-form select, .fh-form textarea,
.filter-tag, .filter-btn, .kb-chip, .hero-tag, .tester-close, .gt-slot, .gt-b, .gt-actions button,
.btn-secondary, .fh-ghost, .fh-cell, .fh-axes, .fh-card .fh-axes, .fh-card .fh-axes-btn, .fh-ico, .fh-del, .hero-cta-alt {
  background: rgba(15, 23, 42, 0.5); border: var(--glass-line); color: var(--g-text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.search input::placeholder, .kb-search::placeholder, .fh-form input::placeholder { color: var(--g-meta); }
.filter-tag:hover, .filter-btn:hover, .review-filters .filter-btn:hover, .kb-chip:hover, .hero-tag:hover,
.tester-close:hover, .btn-secondary:hover, .hero-cta-alt:hover, .fh-ghost:hover {
  background: var(--glass-hover); border: var(--glass-line-hover); color: var(--g-accent);
}
.btn-primary, .modal-tester-btn, .hero-cta, .fh-add, .gt-b.on,
.filter-tag.active, .filter-btn.active, .review-filters .filter-btn.active, .kb-chip.active {
  background: rgba(56, 189, 248, 0.22); border: 1px solid rgba(56, 189, 248, 0.6); color: #F8FAFC;
}
.btn-primary:hover, .modal-tester-btn:hover, .hero-cta:hover, .fh-add:hover,
.filter-tag.active:hover, .filter-btn.active:hover, .kb-chip.active:hover { background: rgba(56, 189, 248, 0.34); color: #F8FAFC; }
.badge, .lab-games li, .news-badge, .fh-badge { background: rgba(56, 189, 248, 0.14); color: var(--g-accent); }
.gt-slot.sel { background: rgba(56, 189, 248, 0.16); border-color: var(--g-accent); }
.fh-pad { background: rgba(248, 250, 252, 0.12); }
.header-sep { background: rgba(248, 250, 252, 0.14); }

/* Таблицы и тексты */
.lat-table th { background: rgba(248, 250, 252, 0.05); color: var(--g-meta); }
.lat-table th, .lat-table td { border-color: rgba(248, 250, 252, 0.1); }
.gp-status b, .wg-rows b, .wg-models b, .hs-val { color: var(--g-title); }
.gp-open { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.4); }
.wg-rows i { background: linear-gradient(90deg, var(--g-accent), rgba(56, 189, 248, 0.15)); }
.wg-tag, .news-tag, .has-img .wg-tag, .has-img .wg-link, .wg-link { color: var(--g-accent); }
.news-date { color: var(--g-meta); }
.has-img h3 { color: var(--g-title); }
.has-img p { color: var(--g-text); }
.section-title a, .block > a, .news-more, .kb-more, .hero-main a:not(.btn):not(.hero-cta) { color: var(--g-accent); }
h1, h2, h3, h4, .card-info h3, .news-card h3, .kb-card h3, .cat h3 { color: var(--g-title); }
.modal-verdict, .modal-column { background: rgba(248, 250, 252, 0.05); color: var(--g-text); border-left-color: rgba(248, 250, 252, 0.25); }
.modal-verdict h4, .modal-column h4 { color: var(--g-title); }
/* Тестер: геймпад на тёмной подложке */
#gt-svg .body { fill: rgba(248, 250, 252, 0.08); stroke: rgba(248, 250, 252, 0.35); }

/* ===== Плотное стекло: чёткое отделение блоков от фона ===== */
:root {
  --glass: rgba(15, 23, 42, 0.83);
  --glass-2: rgba(15, 23, 42, 0.86);
  --glass-hover: rgba(30, 41, 59, 0.9);
  --glass-line: 1px solid rgba(226, 232, 240, 0.22);
  --glass-line-hover: 1px solid rgba(96, 165, 250, 0.55);
  --glass-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --glass-sep: rgba(148, 163, 184, 0.16);
}
.gamepad-card, .game-card, .driver-card, .kb-card, .news-card, .lab-card, .queue-card,
.gt-card, .fh-card, .cat, .hero-quick, .widget, .lat-table, .stat-chips, .footer-lab-card,
.gp-status, .fh-form, .news-featured, .hero-showcase, .modal-content {
  background-color: var(--glass);
  border: var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-shine);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.widget.has-img, .forza-widget-bg { background-color: var(--glass-2); }
.widget, .fh-card { border-left: 3px solid var(--g-accent); }
.fh-card { border-left-color: var(--tc); }
.gamepad-card:hover, .game-card:hover, .driver-card:hover, .kb-card:hover, .news-card:hover, .cat:hover,
.queue-card:hover, .hero-quick:hover, .widget:hover, .fh-card:hover, .gt-card:hover, .lab-card:hover {
  background-color: var(--glass-hover);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: var(--glass-shadow), var(--glass-shine);
}
.widget:hover, .fh-card:hover { border-left-color: var(--g-accent); }
.fh-card:hover { border-left-color: var(--tc); }

/* Заголовки и метрики */
.widget h3, .wg-tag { text-shadow: 0 1px 6px rgba(2, 6, 23, 0.6); }
.widget h3 { color: #F8FAFC; font-weight: 800; letter-spacing: -0.2px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-sep); }
.wg-tag { color: #7DD3FC; }
.wg-rows { gap: 0; }
.wg-rows li { padding: 9px 0; border-bottom: 1px solid var(--glass-sep); }
.wg-rows li:last-child { border-bottom: 0; }
.wg-rows b, .latency-line, .lat-table td.mono, .hs-val { color: #F8FAFC; font-weight: 700; }
.wg-rows b { font-size: 14px; text-shadow: 0 0 12px rgba(56, 189, 248, 0.35); }
.wg-models { border-top: 1px solid var(--glass-sep); }
.wg-models li { padding: 5px 0; border-bottom: 1px solid var(--glass-sep); }
.wg-models li:last-child { border-bottom: 0; }
.lat-table th, .lat-table td { border-color: var(--glass-sep); }
.lat-table th { color: #CBD5E1; }
.lat-table tr:hover td { background: rgba(96, 165, 250, 0.10); }

/* Бейджи и ранги */
.badge, .news-badge, .fh-badge, .lab-games li, .fh-steer {
  background: rgba(56, 189, 248, 0.2); color: #E0F2FE;
  border: 1px solid rgba(125, 211, 252, 0.45); font-weight: 700;
}
.fh-rank { border-width: 1px; font-weight: 800; box-shadow: var(--glass-shine); }
.fh-pad { background: rgba(248, 250, 252, 0.16); border: 1px solid rgba(226, 232, 240, 0.22); }
.fh-cell { border-color: var(--glass-sep); }
.cat-name { color: #F8FAFC; font-weight: 800; }
.cat-count { color: #93C5FD; }

/* ===== Финальная полировка: тёмное стекло, без белых элементов ===== */
/* Фильтры (Forza Hall, Каталог, База знаний, Драйверы) */
#view-forza .filter-tag, #view-forza .filter-tag:not(.active),
.filter-tag, .filter-btn, .review-filters .filter-btn, .kb-chip, .hero-tag, .sort-select, .kb-search {
  background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(226, 232, 240, 0.2); color: #E2E8F0;
  transition: background-color .2s, border-color .2s, color .2s;
}
#view-forza .filter-tag:hover, .filter-tag:hover, .filter-btn:hover, .review-filters .filter-btn:hover,
.kb-chip:hover, .hero-tag:hover {
  background: rgba(30, 41, 59, 0.9); border-color: #38BDF8; color: #38BDF8;
}
#view-forza .filter-tag.active, .filter-tag.active, .filter-btn.active, .review-filters .filter-btn.active, .kb-chip.active,
#view-forza .filter-tag.active:hover, .filter-tag.active:hover, .filter-btn.active:hover, .kb-chip.active:hover {
  background: #2563EB; border-color: #38BDF8; color: #F8FAFC; font-weight: 700;
}
.sort-select option { background: #0F172A; color: #E2E8F0; }

/* Карточки каталога: единый монолит */
.gamepad-card { overflow: hidden; }
.card-media { background: rgba(15, 23, 42, 0.65); border-bottom: 1px solid rgba(226, 232, 240, 0.14); }
.card-media img.gamepad-image { mix-blend-mode: normal; filter: drop-shadow(0 6px 14px rgba(2, 6, 23, 0.6)); }
.placeholder-img { color: #94A3B8; }
.card-info .verdict, .gamepad-card .verdict, .modal-verdict {
  background: rgba(30, 41, 59, 0.78); border: 1px solid rgba(226, 232, 240, 0.14);
  border-left: 3px solid #38BDF8; color: #E2E8F0;
}
.gamepad-card:hover .card-info .verdict { border-left-color: #7DD3FC; background: rgba(30, 41, 59, 0.9); }
.gamepad-card:hover .review-link { color: #7DD3FC; }
.card-footer { background: transparent; border: 0; }

/* Остальные виджеты: формы, тестер, оси, кнопки */
#view-forza .fh-form { background: rgba(15, 23, 42, 0.83); }
.fh-cell, .fh-axes, .fh-card .fh-axes, .fh-card .fh-axes-btn, .fh-ghost, .fh-ico, .fh-del,
.gt-slot, .gt-actions button, .btn-secondary, .hero-cta-alt, .hero-quick, .hero-card, .news-card {
  background: rgba(15, 23, 42, 0.72); border-color: rgba(226, 232, 240, 0.2); color: #E2E8F0;
}
.gt-slot.sel { background: rgba(56, 189, 248, 0.16); border-color: #38BDF8; }
.fh-ghost:hover, .gt-actions button:hover, .btn-secondary:hover, .fh-ico:hover, .fh-del:hover {
  background: rgba(30, 41, 59, 0.9); border-color: #38BDF8; color: #38BDF8;
}
.fh-input, .fh-form input, .fh-form select, .fh-form textarea, .search input {
  background: rgba(15, 23, 42, 0.72); color: #E2E8F0; border: 1px solid rgba(226, 232, 240, 0.2);
}
.fh-input:focus, .fh-form input:focus, .fh-form select:focus, .fh-form textarea:focus, .kb-search:focus {
  outline: none; border-color: #38BDF8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}
.sort-select, .lat-table, .stat-chips { color: #E2E8F0; }
.news-date { color: #94A3B8; }
footer { background: rgba(15, 23, 42, 0.7); }

/* ===== Мягкая интеграция: без рамок у hero, тонкие поверхности ===== */
:root {
  --soft: rgba(15, 23, 42, 0.62);
  --soft-hover: rgba(15, 23, 42, 0.7);
  --soft-line: 1px solid rgba(255, 255, 255, 0.09);
  --soft-line-hover: 1px solid rgba(255, 255, 255, 0.18);
  --glass: var(--soft); --glass-2: var(--soft); --glass-hover: var(--soft-hover);
  --glass-line: var(--soft-line); --glass-line-hover: var(--soft-line-hover);
  --glass-shadow: none; --glass-shine: none;
  --glass-sep: rgba(255, 255, 255, 0.07);
}
body {
  background-image:
    linear-gradient(180deg, rgba(8, 12, 24, 0.86) 0%, rgba(8, 12, 24, 0.6) 38%, rgba(8, 12, 24, 0.82) 100%),
    url('./teamreact.jpg');
}

/* Hero: без коробки и обводки */
.hero, .hero-card, .hero .hero-card, .hero-main {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hero-card { padding: 24px 0 8px; }
.hero { position: relative; margin-bottom: 8px; }
.hero::before { content: none; }
.hero h1, .hero .hero-card h1 { text-shadow: 0 2px 18px rgba(2, 6, 23, 0.85); }
.hero-sub { color: #E2E8F0; text-shadow: 0 1px 8px rgba(2, 6, 23, 0.7); }

/* Карточки и виджеты: тонкая граница, мягкое стекло */
.gamepad-card, .game-card, .driver-card, .kb-card, .news-card, .lab-card, .queue-card,
.gt-card, .fh-card, .cat, .hero-quick, .widget, .lat-table, .stat-chips, .footer-lab-card,
.gp-status, .fh-form, .news-featured, .hero-showcase, .modal-content, #view-forza .fh-form {
  background-color: var(--soft);
  border: var(--soft-line);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.widget, .fh-card { border-left-width: 2px; }
.widget.has-img, .forza-widget-bg { background-color: var(--soft); }
.news-card, .hero-quick { background: var(--soft); border-color: rgba(255, 255, 255, 0.09); }
.gamepad-card:hover, .game-card:hover, .driver-card:hover, .kb-card:hover, .news-card:hover, .cat:hover,
.queue-card:hover, .hero-quick:hover, .widget:hover, .fh-card:hover, .gt-card:hover, .lab-card:hover {
  background-color: var(--soft-hover); border-color: rgba(255, 255, 255, 0.18); box-shadow: none;
}
.stat-chips .chip { border-color: rgba(255, 255, 255, 0.09); }
.card-media, .card-footer { border-color: rgba(255, 255, 255, 0.07); }
.card-info .verdict, .gamepad-card .verdict, .modal-verdict { border-color: rgba(255, 255, 255, 0.09); border-left: 2px solid #38BDF8; background: rgba(15, 23, 42, 0.5); }
.lat-table th, .lat-table td { border-color: rgba(255, 255, 255, 0.07); }
.filter-tag, .filter-btn, .kb-chip, .hero-tag, .sort-select, .kb-search, .search input {
  background: rgba(15, 23, 42, 0.56); border: var(--soft-line);
}

/* Ритм */
main { padding-top: 32px; }
.home section.block, .block { margin-top: 40px; }
.section-title { margin: 40px 0 16px; }
.widget-grid, .news-grid, .category-grid, .gamepad-grid, .driver-grid { gap: 20px; }
.stat-chips { margin-top: 28px; }

/* ===== Racing typography (ProStreet-style accents; body text stays on --font-body) ===== */
.logo-text, .footer-logo, .logo-sub,
.hero h1, .hero .hero-card h1,
.section-title, .section-head h2,
.hs-val, .hs-label, .hero-quick-label, .news-badge, .wg-tag {
  font-family: var(--font-racing);
  font-weight: 400;
  text-transform: uppercase;
  font-synthesis: none;
}
.logo-text { letter-spacing: 1.5px; font-style: italic; }
.logo-sub { letter-spacing: 2px; }
.hero h1, .hero .hero-card h1 { line-height: 1.1; letter-spacing: 0.02em; font-style: italic; }
.section-title, .section-head h2 { letter-spacing: 0.06em; line-height: 1.25; }
.hs-val { letter-spacing: 0.04em; }
.hs-label, .hero-quick-label, .news-badge, .wg-tag { letter-spacing: 0.12em; }

/* ===== Читаемость: новостная лента и карточки обзоров ===== */
.news-card, .gamepad-card .card-info { background-color: rgba(15, 23, 42, 0.82); }
.news-card h3, .card-info h3, .gamepad-card h3 { color: #F8FAFC; font-size: 18px; line-height: 1.3; letter-spacing: 0; text-shadow: none; }
.news-card p, .card-info .desc, .gamepad-card p { color: #E2E8F0; font-size: 15px; line-height: 1.65; text-shadow: none; }
.news-featured h3 { font-size: 26px; line-height: 1.2; }
.news-featured p { font-size: 16px; }
.news-meta { font-size: 13px; }
.news-tag { color: #7DD3FC; }
.news-date, .card-info .meta, .gamepad-card .meta { color: #CBD5E1; font-size: 13px; }
.card-info .verdict, .gamepad-card .verdict { color: #F1F5F9; font-size: 14px; line-height: 1.55; }

/* ===== Тёмное стекло: модальное окно обзора и медиа-блок карточек ===== */
.modal-specs, .modal-left {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  color: #F8FAFC;
}
.modal-specs-row, .modal-spec { color: #F8FAFC; border-color: rgba(255, 255, 255, 0.08); }
.modal-spec-label, .modal-spec span { color: #94A3B8; }
.modal-specs-row strong, .modal-spec strong { color: #F8FAFC; }

.modal-close {
  background: rgba(15, 23, 42, 0.78);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
}
.modal-close:hover { background: rgba(56, 189, 248, 0.18); border-color: rgba(56, 189, 248, 0.6); color: #F8FAFC; }

.card-media, .modal-left {
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 60%, #0B1220 100%);
  overflow: hidden;
}
.card-media { border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.card-media img.gamepad-image, .modal-image {
  mix-blend-mode: normal;
  background: transparent;
  transition: transform .45s ease;
  filter: drop-shadow(0 8px 18px rgba(2, 6, 23, 0.65));
}
.gamepad-card:hover .card-media img.gamepad-image, .modal-left:hover .modal-image { transform: scale(1.06); }

/* Телеметрическая заглушка */
.modal-placeholder, .placeholder-img { background: none; border: 0; }
.telemetry-ph {
  position: relative; width: 100%; height: 100%; min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; box-sizing: border-box; text-align: center;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;
  color: #94A3B8;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.telemetry-ph-icon { color: rgba(125, 211, 252, 0.55); display: block; line-height: 0; }
.telemetry-ph-icon svg { width: 84px; height: 84px; }
.telemetry-ph-name { color: #F8FAFC; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.telemetry-ph-spec { color: #7DD3FC; font-size: 11px; letter-spacing: 0.14em; }
.telemetry-ph-tag { position: absolute; top: 8px; left: 10px; font-size: 10px; letter-spacing: 0.14em; color: #64748B; }
.modal-left .telemetry-ph { min-height: 300px; }

/* ===== Изображения на всю площадь контейнера ===== */
.card-media { height: 220px; padding: 0; overflow: hidden; display: block; border-radius: 0; }
.card-media img.gamepad-image {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; mix-blend-mode: normal; filter: none; padding: 0;
}
.modal-left { padding: 0; overflow: hidden; align-items: stretch; }
.modal-left:has(.modal-image) {
  width: 100%; max-height: 280px; aspect-ratio: 4 / 3; align-self: start;
  border-radius: 10px; background: rgba(15, 23, 42, 0.72);
  display: flex; align-items: center; justify-content: center;
}
.modal-image {
  width: 100%; height: 100%; min-height: 0; max-height: none;
  object-fit: contain; object-position: center; display: block;
  padding: 0; border-radius: 0; filter: none; mix-blend-mode: normal;
}

/* ===== Закреплённая шапка на всех страницах ===== */
html { scrollbar-gutter: stable; height: auto !important; overflow-x: clip !important; overflow-y: visible !important; }
body { height: auto !important; overflow-x: clip !important; overflow-y: visible !important; transform: none; filter: none; perspective: none; }
body > header, header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important;
  transform: none !important; translate: none !important; margin: 0 !important;
  z-index: 9999 !important;
  background: rgba(17, 24, 39, 0.92) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body { padding-top: var(--header-h, 76px); }

/* ===== Точечные правки оформления ===== */
/* Верхнее меню: без цветных рамок и переходов */
nav a, nav a:hover, nav a:focus, nav a.active, nav a.active:hover { color: #F8FAFC; border: 0; box-shadow: none; outline: none; transition: none; }
nav a { opacity: .78; }
nav a:hover, nav a.active { opacity: 1; }
nav a.active::after { background: #F8FAFC; }

/* Каталог обзоров: более тёмный фон, светлый читаемый текст */
#view-catalog .gamepad-card { background-color: rgba(8, 13, 28, 0.82); border-color: rgba(248, 250, 252, 0.16); }
#view-catalog .gamepad-card:hover { background-color: rgba(8, 13, 28, 0.9); }
#view-catalog .card-info h3, #view-catalog .gamepad-card h3 { color: #F8FAFC; }
#view-catalog .card-info .desc, #view-catalog .gamepad-card p { color: #E2E8F0; }
#view-catalog .card-info .meta, #view-catalog .gamepad-card .meta, #view-catalog .card-info::before { color: #CBD5E1; }
#view-catalog .card-info .verdict, #view-catalog .gamepad-card .verdict { background: rgba(248, 250, 252, 0.08); color: #F8FAFC; }


/* Forza Hall: цветной ник и команда, заметнее эмблема команды */
.fh-card .fh-who strong { color: var(--tc); }
.fh-card .fh-tag { color: var(--tc); font-weight: 600; }
.fh-team-esv, .fh-team-k1z, .fh-team-f1r, .fh-team-custom { --wm-op: 0.11; }

/* ===== Forza Hall: единая карточка из 4 блоков + фоновая эмблема команды ===== */
.fh-card { grid-template-columns: minmax(150px, 1.1fr) minmax(140px, 1fr) minmax(170px, 1fr) minmax(200px, 1.6fr) auto; align-items: stretch; gap: 0; padding: 0; }
.fh-card > .fh-who, .fh-card > .fh-team, .fh-card > .fh-setup, .fh-card > .fh-ach, .fh-card > .fh-links { padding: 14px 18px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.fh-card > .fh-team, .fh-card > .fh-setup, .fh-card > .fh-ach { border-left: 1px solid rgba(148, 163, 184, 0.16); }
.fh-links { flex-direction: row !important; align-items: center; justify-content: flex-end; }
.fh-lbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #94A3B8; opacity: 0.8; }
.fh-card .fh-who strong { color: color-mix(in srgb, var(--tc) 30%, #E2E8F0); font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.fh-card .fh-tag { color: #CBD5E1; font-weight: 500; font-size: 13px; }
.fh-card .fh-badge { align-self: flex-start; background: rgba(148, 163, 184, 0.16); color: #CBD5E1; border: 1px solid rgba(148, 163, 184, 0.25); }
.fh-card .fh-pad { background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148, 163, 184, 0.22); color: #F1F5F9; }
.fh-card .fh-rank { align-self: flex-start; margin: 0; background: rgba(148, 163, 184, 0.12); border-color: rgba(var(--tc-rgb), 0.5); color: #E2E8F0; }
.fh-card .fh-note { font-size: 13px; line-height: 1.45; color: #CBD5E1; }
/* эмблема: полупрозрачный слой с затуханием слева направо */
.fh-card > .fh-wm { right: auto; left: 38%; top: 50%; opacity: calc(var(--wm-op, 0.1) * 1.4); color: color-mix(in srgb, var(--tc) 40%, #94A3B8); border-left-color: currentColor;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 60%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 60%, transparent 100%); }
.fh-card .fh-axes { margin: 0 18px 14px; }
@media (max-width: 1000px) { .fh-card { grid-template-columns: 1fr 1fr; } .fh-card > .fh-team, .fh-card > .fh-setup, .fh-card > .fh-ach { border-left: 0; } .fh-card > .fh-wm { left: 30%; } }
@media (max-width: 640px) { .fh-card { grid-template-columns: 1fr; } .fh-card > .fh-wm { left: 10%; right: auto; } }

/* ===== Forza Hall: правки — иконки соцсетей, графитовый фон, без разделителей ===== */
.fh-card > .fh-team, .fh-card > .fh-setup, .fh-card > .fh-ach { border-left: 0; }
.fh-card {
  background-color: #0E1116;
  background-image:
    radial-gradient(120% 160% at 0% 0%, rgba(var(--tc-rgb), 0.30) 0%, transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, rgba(30,35,44,0.92), rgba(12,14,18,0.96));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 18px rgba(0,0,0,0.35);
}
.fh-team-esv, .fh-team-k1z, .fh-team-f1r, .fh-team-custom { --wm-op: 0.16; }
.fh-card > .fh-wm { left: 42%; font-size: calc(var(--wm-size, 56px) * 1.15); color: color-mix(in srgb, var(--tc) 55%, #CBD5E1); }
.fh-card .fh-tag { font-family: var(--mono, monospace); font-weight: 700; letter-spacing: 1px; color: #E2E8F0; }
.fh-card .fh-rank { margin-top: 2px; }
.fh-card .fh-ico { width: 44px; height: 44px; background: rgba(15, 23, 42, 0.6); }
.fh-card .fh-ico svg { display: block; }
.fh-card .fh-ico-youtube:hover { border-color: #FF0000; }
.fh-card .fh-ico-twitch:hover { border-color: #9146FF; }

/* ===== Forza Hall: эмблема команды у левого края, скругление виджетов ===== */
.fh-card > .fh-wm {
  left: 14px; right: auto; z-index: 0; pointer-events: none;
  transform: translateY(-50%) skewX(-12deg);
  opacity: calc(var(--wm-op, 0.1) * 1.1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.6) 45%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.6) 45%, transparent 100%);
}
@media (max-width: 1000px) { .fh-card > .fh-wm { left: 10px; } }
@media (max-width: 640px) { .fh-card > .fh-wm { left: 8px; right: auto; } }
.fh-card .fh-pad { border-radius: 12px; }
.fh-card .fh-axes-btn { border-radius: 12px; }
.fh-card .fh-axes { border-radius: 14px; }

/* ===== Forza Hall: единая панель управления, простой режим формы, выравнивание карточек ===== */
#view-forza .fh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#view-forza .fh-bar .fh-input, #view-forza .fh-bar .filter-tag, #view-forza .fh-bar .fh-add {
  box-sizing: border-box; height: 42px; margin: 0; padding: 0 16px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.4px; border-width: 1px; border-style: solid;
}
#view-forza .fh-bar .fh-input { width: 280px; text-transform: none; font-weight: 500; letter-spacing: 0; justify-content: flex-start; }
#view-forza .fh-bar .fh-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-forza .fh-bar .fh-add { margin-left: auto; }
@media (max-width: 640px) { #view-forza .fh-bar .fh-input { width: 100%; } #view-forza .fh-bar .fh-add { margin-left: 0; width: 100%; } }

.fh-form.fh-simple .fh-pro { display: none; }
.fh-mode { flex-direction: row !important; align-items: center; gap: 8px !important; cursor: pointer; }
.fh-mode input { width: auto !important; }
.fh-color { gap: 10px; }
.fh-color input[type=color] { width: 48px; height: 38px; padding: 2px; flex: none; cursor: pointer; }
.fh-color small { color: var(--text-3); font-size: 11px; line-height: 1.3; }

.fh-card { align-items: center; }
.fh-card > .fh-who, .fh-card > .fh-team, .fh-card > .fh-setup, .fh-card > .fh-ach, .fh-card > .fh-links { align-self: center; justify-content: center; align-items: flex-start; }
.fh-card > .fh-team { align-items: center; text-align: center; }
.fh-card > .fh-links { align-items: center; }
.fh-card .fh-lbl { line-height: 1; margin: 0; }
.fh-card > .fh-setup { align-items: center; text-align: center; }
.fh-card > .fh-setup .fh-pad, .fh-card > .fh-setup .fh-axes-btn { align-self: center; width: 100%; max-width: 240px; box-sizing: border-box; text-align: center; margin: 0; }

/* Выравнивание «Геймпад» / «Достижения»: общий верх, фиксированная ось */
.fh-card { align-items: stretch; }
.fh-card > .fh-setup, .fh-card > .fh-ach { justify-content: flex-start; align-self: stretch; padding-top: 18px; align-items: stretch; text-align: left; }
.fh-card > .fh-setup .fh-lbl, .fh-card > .fh-ach .fh-lbl { align-self: flex-start; height: 10px; }
.fh-card > .fh-setup .fh-pad { min-height: 38px; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; line-height: 1.25; max-width: none; }
.fh-card > .fh-setup .fh-axes-btn { max-width: none; }
.fh-card > .fh-ach .fh-note { margin: 0; }

/* Схема геймпада в Advanced Controls */
.fh-extra { grid-template-columns: minmax(290px, 360px) repeat(2, minmax(0, 1fr)); max-width: 1120px; align-items: start; }
.fh-extra .fh-padmap { display: block; grid-column: 1; grid-row: 1 / span 4; align-self: center; justify-self: center; width: 100%; height: auto; min-height: 0; margin: 0 auto; padding: 0; box-sizing: border-box; opacity: 0.8; pointer-events: none; }
.fh-padmap rect, .fh-padmap circle, .fh-padmap path { fill: rgba(148, 163, 184, 0.10); stroke: #64748B; stroke-width: 1.2; }
.fh-padmap path.fh-pm-dp { fill: none; stroke-width: 3; stroke-linecap: round; }
.fh-padmap .fh-pm-hl { stroke: #38BDF8; fill: rgba(56, 189, 248, 0.15); }
.fh-padmap text { font: 600 8px var(--mono, monospace); fill: #94A3B8; text-anchor: middle; stroke: none; }
.fh-padmap .fh-pm-t { font-size: 6px; fill: #38BDF8; }
@media (max-width: 1000px) { .fh-extra { grid-template-columns: minmax(240px, 290px) repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .fh-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fh-extra .fh-padmap { display: none; } }
@media (max-width: 640px) { .fh-extra { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   ЭТАП 1 РЕДИЗАЙНА: студийная глубина поверхностей
   Блок должен оставаться последним — переопределяет предыдущие слои.
   Уровни: base (страница) → surface-1 (полосы) → surface-2 (карточки) → glass (акцентные виджеты)
   ===================================================================== */
:root {
  --bg-base: #0b0d10;
  --bg-surface-1: #101318;
  --bg-surface-2: #141820;
  --bg-surface-2-hover: #181d27;
  --bg-glass: rgba(20, 24, 32, 0.72);
  --line: rgba(255, 255, 255, 0.06);
  --line-hover: rgba(255, 255, 255, 0.14);
  --border-thin: 1px solid var(--line);
  --border-thin-hover: 1px solid var(--line-hover);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* перенастройка унаследованных токенов на новую систему */
  --mono: var(--font-mono);
  --bg: var(--bg-base);
  --card: var(--bg-surface-2);
  --border: var(--line);
  --soft: var(--bg-surface-2);
  --soft-hover: var(--bg-surface-2-hover);
  --soft-line: var(--border-thin);
  --soft-line-hover: var(--border-thin-hover);
  --glass: var(--bg-glass);
  --glass-2: var(--bg-glass);
  --glass-hover: var(--bg-surface-2-hover);
  --glass-line: var(--border-thin);
  --glass-line-hover: var(--border-thin-hover);
  --glass-sep: var(--line);
  --ui-border: var(--border-thin);
}

/* Страница: плоский базовый фон вместо фото */
html { background: var(--bg-base); }
body { background: var(--bg-base); background-image: none; color: #CBD5E1; }

/* Шапка и футер */
body > header, header { background: rgba(11, 13, 16, 0.88) !important; border-bottom: var(--border-thin) !important; }
footer { background: var(--bg-surface-1); border-top: var(--border-thin); -webkit-backdrop-filter: none; backdrop-filter: none; }
.footer-bottom, .header-sep { border-color: var(--line); }
.header-sep { background: var(--line-hover); }

/* Чередующиеся полосы секций (на всю ширину окна) */
.home #categories, .home #news {
  position: relative;
  background: var(--bg-surface-1);
  box-shadow: 0 0 0 100vmax var(--bg-surface-1);
  clip-path: inset(0 -100vmax);
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Уровень 2: карточки и интерактивные контейнеры — сплошные, с тонкой границей */
.gamepad-card, .game-card, .driver-card, .kb-card, .news-card, .lab-card, .queue-card,
.gt-card, .fh-form, .cat, .hero-quick, .news-featured, .modal-content,
#view-forza .fh-form, #view-catalog .gamepad-card, .gamepad-card .card-info {
  background-color: var(--bg-surface-2);
  border: var(--border-thin);
  box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.gamepad-card .card-info, .news-card { background-color: var(--bg-surface-2); }
.gamepad-card .card-info { border: 0; }
.gamepad-card:hover, .game-card:hover, .driver-card:hover, .kb-card:hover, .news-card:hover, .cat:hover,
.queue-card:hover, .hero-quick:hover, .gt-card:hover, .lab-card:hover, #view-catalog .gamepad-card:hover {
  background-color: var(--bg-surface-2-hover);
  border-color: var(--line-hover);
  box-shadow: none;
}
.gamepad-card:hover .card-info { background-color: transparent; }
.gamepad-card { overflow: hidden; }

/* Кнопки, фильтры, поля — интерактивные контейнеры */
.filter-tag, .filter-btn, .review-filters .filter-btn, .kb-chip, .hero-tag, .sort-select, .kb-search,
.search, .search input, .fh-input, .fh-form input, .fh-form select, .fh-form textarea,
#view-forza .filter-tag:not(.active), .gt-slot, .gt-b, .gt-actions button, .btn-secondary, .tester-close,
.fh-ghost, .fh-cell, .fh-axes, .fh-card .fh-axes, .fh-card .fh-axes-btn, .fh-ico, .fh-del, .hero-cta-alt,
#view-kb .kb-chip, #view-kb .kb-search {
  background-color: var(--bg-surface-2);
  border: var(--border-thin);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.search input { border: 0; background: transparent; }
.filter-tag:hover, .filter-btn:hover, .review-filters .filter-btn:hover, .kb-chip:hover, .hero-tag:hover,
.tester-close:hover, .btn-secondary:hover, .hero-cta-alt:hover, .fh-ghost:hover, .gt-actions button:hover,
.fh-ico:hover, .fh-del:hover, #view-kb .kb-chip:hover {
  border: var(--border-thin-hover);
}
/* активные состояния сохраняют акцент */
.filter-tag.active, .filter-btn.active, .kb-chip.active, #view-forza .filter-tag.active { border-color: rgba(56, 189, 248, 0.6); }
.fh-input:focus, .fh-form input:focus, .fh-form select:focus, .fh-form textarea:focus, .kb-search:focus,
.search:focus-within { border-color: #38BDF8; }

/* Forza Hall: ливрея команды сохраняется, меняется только обводка */
.fh-card { border: var(--border-thin); border-left: 2px solid var(--tc); box-shadow: none; }
.fh-card:hover { border-color: var(--line-hover); border-left-color: var(--tc); }

/* Стекло: акцентные виджеты и телеметрия */
.widget, .widget.has-img, .forza-widget-bg, .hero-showcase, .gp-status, .lat-table, .stat-chips,
.footer-lab-card {
  background-color: var(--bg-glass);
  border: var(--border-thin);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: none;
}
.widget, .widget.has-img { border-left: 2px solid var(--g-accent, #38BDF8); }
.widget:hover, .gp-status:hover { background-color: var(--bg-glass); border-color: var(--line-hover); }
.widget:hover { border-left-color: var(--g-accent, #38BDF8); }
.stat-chips .chip { border-color: var(--line); }
.stat-chips .chip:hover, .lat-table tr:hover td { background: rgba(255, 255, 255, 0.04); }

/* Внутренние разделители и таблицы */
.card-media, .card-footer, .lat-table th, .lat-table td, .wg-rows li, .wg-models, .wg-models li,
.lab-obs li, .kb-toolbar, .driver-compat { border-color: var(--line); }
.card-media { background: var(--bg-surface-1); }
.card-info .verdict, .gamepad-card .verdict, .modal-verdict, #view-catalog .card-info .verdict {
  border-color: var(--line); border-left: 2px solid #38BDF8; background: var(--bg-surface-1);
}
.modal-specs, .modal-left { background: var(--bg-surface-1); border: var(--border-thin); }
.modal-close { border: var(--border-thin-hover); }
.modal-overlay { background: rgba(5, 7, 9, 0.8); }
.testing-progress, .footer-lab-progress { background: rgba(255, 255, 255, 0.08); }
.news-skeleton .sk { background: linear-gradient(90deg, var(--bg-surface-2) 25%, var(--bg-surface-1) 50%, var(--bg-surface-2) 75%); background-size: 200% 100%; }

/* Моноширинные технические показатели: Гц, мс, %, deadzone, счётчики */
.chip-num, .cat-idx, .cat-count, .news-date, .gt-b, .gt-b i, .gt-status, .gt-axes, .gt-slot, .gt-actions button,
.gp-status, .latency-line, .lat-table td, .lat-table td.mono, .lat-table th,
.wg-rows b, .wg-models b, .wg-models em, .lab-days, .lab-obs b, .queue-card span, .footer-lab-days, .footer-status,
.card-info .meta, .gamepad-card .meta, .modal-meta, .modal-spec strong, .driver-version, .driver-meta,
.fh-dz, .fh-cell b, .fh-rank, .fh-steer, .fh-sync input[type=number], .testing-label,
.hs-val, .game-meta, .changelog-date, #gt-svg .pc, #gt-svg .t {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.chip-num, .wg-rows b, .lab-obs b, .fh-cell b { font-weight: 700; }

/* =====================================================================
   ЭТАП 2: первый экран — асимметричный Hero + приборная панель
   ===================================================================== */
.hero .hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 8px;
}
.hero-main { max-width: none; min-width: 0; }
.hero .hero-card h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.hero-main .hero-sub { max-width: 560px; font-size: 16px; margin-bottom: 22px; }
.hero-main .search { max-width: 520px; margin: 0 0 14px; padding: 4px 4px 4px 16px; }
.hero-main .search input { font-size: 14px; }
.hero-main .search button { width: 36px; height: 36px; }
.hero-main .hero-tags { margin-bottom: 22px; }
.hero-main .hero-actions .hero-cta {
  padding: 14px 28px; font-size: 15px; font-weight: 700;
  background: #2563EB; border: 1px solid rgba(147, 197, 253, 0.5); color: #fff;
}
.hero-main .hero-actions .hero-cta:hover { background: #1E40AF; }

/* Живая карточка стендового теста (glass) */
.hero-live {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  padding: 22px 24px;
  background: var(--bg-glass);
  border: var(--border-thin);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; }
.hl-status { display: inline-flex; align-items: center; gap: 8px; color: #34D399; font-weight: 700; }
.hl-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); animation: hl-pulse 1.8s ease-in-out infinite; }
@keyframes hl-pulse { 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); } }
@media (prefers-reduced-motion: reduce) { .hl-dot { animation: none; } }
.hl-id { color: var(--text-3); }
.hero-live .hl-title { font-size: 22px; letter-spacing: -0.02em; margin: 0; text-shadow: none; }
.hl-days { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hl-days b { font-size: 34px; line-height: 1; color: #F8FAFC; font-weight: 700; }
.hl-days span { font-size: 13px; color: var(--text-3); }
.hl-days em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 700; color: #38BDF8; }
.hl-bar { height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hl-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2563EB, #38BDF8); border-radius: 3px; }
.hl-metrics { display: flex; flex-direction: column; margin: 0; }
.hl-metrics > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hl-metrics dt { color: var(--text-2); }
.hl-metrics dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: #F8FAFC; text-align: right; }
.hl-link { font-size: 13px; font-weight: 600; }

/* Приборная панель: единая строка со статистикой */
.hero .stat-chips {
  grid-column: 1 / -1;
  display: flex; flex-wrap: nowrap; gap: 32px; margin-top: 28px;
  width: fit-content; max-width: 100%; justify-self: start;
  background: rgba(15, 18, 24, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 18px 28px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  align-items: stretch;
}
.hero .stat-chips .chip {
  flex: 0 0 auto; min-width: 0; padding: 4px 0 4px 32px; gap: 12px; box-sizing: border-box;
  background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0;
}
.hero .stat-chips .chip:first-child { border-left: 0; padding-left: 0; }
.hero .stat-chips .chip:last-child { padding-right: 0; }
.hero .stat-chips .chip-arrow { display: none; }
.hero .stat-chips .chip-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; line-height: 1; }
.hero .stat-chips .chip-label { font-size: 10px; line-height: 1.3; }
.hero .stat-chips .chip-arrow { font-size: 16px; }

@media (max-width: 900px) {
  .hero .hero-card { grid-template-columns: 1fr; gap: 28px; }
  .hero .stat-chips { flex-wrap: wrap; padding: 14px 16px; gap: 0; width: 100%; }
  .hero .stat-chips .chip:first-child, .hero .stat-chips .chip:last-child { padding: 10px 20px; }
  .hero .stat-chips .chip { padding: 10px 20px; flex: 1 1 33%; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .hero .stat-chips .chip:nth-child(-n+3) { border-top: 0; }
  .hero .stat-chips .chip:not(:nth-child(3n+1)) { border-left: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 600px) {
  .hero .stat-chips .chip { flex-basis: 50%; }
  .hero .stat-chips .chip:nth-child(-n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .hero .stat-chips .chip:nth-child(-n+2) { border-top: 0; }
  .hero .stat-chips .chip:not(:nth-child(3n+1)) { border-left: 0; }
  .hero .stat-chips .chip:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, 0.08); }
  .hero .stat-chips .chip:last-child { flex-basis: 100%; border-left: 0; }
}

/* =====================================================================
   ЭТАП 3: каталог — чистое превью + тех. бейджи; «В работе» — инженерный лог
   ===================================================================== */
.gamepad-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

/* Карточка каталога: превью — главный элемент, без тяжёлых рамок */
#view-catalog .gamepad-card, .gamepad-card { border: 1px solid var(--line); border-radius: 10px; }
.gamepad-card .card-media { position: relative; height: auto; aspect-ratio: 4 / 3; border: 0; background: var(--bg-surface-1); }
.gamepad-card .card-media img.gamepad-image { transition: transform .5s ease; }
.gamepad-card:hover .card-media img.gamepad-image { transform: scale(1.04); }
.gamepad-card .card-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.78)); pointer-events: none; }
.gamepad-card .telemetry-ph { min-height: 0; }

/* Тех. бейджи поверх превью */
.spec-badges { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.spec-badges li {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
  padding: 5px 8px; border-radius: 4px; color: #E2E8F0;
  background: rgba(11, 13, 16, 0.62); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.spec-badges li:nth-child(2) { color: #7DD3FC; }

/* Текстовая часть — спокойнее */
.gamepad-card .card-info { padding: 14px 16px 16px; }
.gamepad-card .card-info::before { content: none; }
.gamepad-card .card-info h3 { font-size: 17px; margin-bottom: 4px; }
.gamepad-card .card-info .meta { font-size: 11px; color: var(--text-3); text-transform: none; margin-bottom: 10px; }
.gamepad-card .card-info .desc { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.card-info .verdict, .gamepad-card .verdict { font-size: 13px; padding: 8px 10px; border-radius: 0 6px 6px 0; }
.gamepad-card .review-link { margin-top: 10px; text-align: left; font-size: 11px; letter-spacing: .06em; }

/* «В работе»: инженерный лог */
#in-testing .lab-grid { counter-reset: lab; gap: 14px; }
.lab-card { counter-increment: lab; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-surface-2); }
.lab-card:hover { border-color: var(--line-hover); }
.lab-card::before {
  content: none;
  display: block; margin-bottom: 4px;
  font: 600 10px var(--font-mono); letter-spacing: .14em; color: var(--text-3);
}
.lab-card h4 { font-size: 15px; margin: 0 0 12px; letter-spacing: -0.01em; }
.lab-days { margin-bottom: 7px; font: 700 12px var(--font-mono); font-variant-numeric: tabular-nums; color: #F8FAFC; }
.lab-days span:last-child { color: #38BDF8; }
.lab-card .testing-progress { height: 3px; border-radius: 0; background: rgba(255, 255, 255, 0.08); margin: 0 0 14px; }
.lab-card .testing-bar { border-radius: 0; background: #38BDF8; }
.lab-card:has(.testing-bar[style*="100%"]) .testing-bar { background: #34D399; }
.lab-card:has(.testing-bar[style*="100%"]) .lab-days span:last-child { color: #34D399; }
.lab-sub { margin: 12px 0 6px; font: 600 10px var(--font-mono); letter-spacing: .14em; color: var(--text-3); }
.lab-games li { font: 500 11px var(--font-mono); padding: 3px 7px; margin: 0 4px 4px 0; border-radius: 3px; background: transparent; border: 1px solid var(--line-hover); color: #CBD5E1; }
.lab-obs li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; align-items: baseline; }
.lab-obs li:last-child { border-bottom: 0; padding-bottom: 0; }
.lab-obs li span { color: var(--text-2); }
.lab-obs b { font: 600 12px var(--font-mono); font-variant-numeric: tabular-nums; color: #F8FAFC; }
.queue-card { padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.queue-card span { font: 500 11px var(--font-mono); }

/* =====================================================================
   ЭТАП 4: «Драйверы и утилиты» — плотный табличный список
   ===================================================================== */
.drv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line); }
.drv-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  height: 60px; padding: 0 12px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: background-color .15s;
}
.drv-row:hover { background: rgba(255, 255, 255, 0.035); text-decoration: none; }
.drv-ico {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px;
  font: 700 11px var(--font-mono); letter-spacing: .02em; color: #7DD3FC;
  background: var(--bg-surface-2); border: 1px solid var(--line-hover);
}
.drv-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drv-main strong { font-size: 14px; font-weight: 700; line-height: 1.2; color: #F8FAFC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drv-desc { font-size: 12px; line-height: 1.3; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drv-tag {
  font: 600 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 8px; border-radius: 4px; color: var(--text-2); border: 1px solid var(--line-hover);
}
.drv-btn {
  font: 600 12px var(--font-mono); white-space: nowrap; padding: 7px 14px; border-radius: 6px;
  color: #F8FAFC; background: rgba(56, 189, 248, 0.16); border: 1px solid rgba(56, 189, 248, 0.45);
  transition: background-color .15s, border-color .15s;
}
.drv-row:hover .drv-btn { background: rgba(56, 189, 248, 0.3); border-color: #38BDF8; }

@media (max-width: 1100px) { .drv-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .drv-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; padding: 0 4px; }
  .drv-tag { display: none; }
  .drv-btn { padding: 6px 10px; }
}

/* =====================================================================
   ЭТАП 5: Forza Hall — форма в выдвижной панели, чистая сетка карточек
   ===================================================================== */
.fh-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(5, 7, 9, 0.7); animation: fh-fade .2s ease; }
.fh-backdrop[hidden] { display: none; }
#view-forza .fh-form.fh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 10001;
  width: min(580px, 100vw); margin: 0; padding: 0 24px 0;
  overflow-y: auto; overscroll-behavior: contain; align-content: start;
  background: var(--bg-surface-2); border: 0; border-left: var(--border-thin-hover); border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  animation: fh-drawer-in .24s cubic-bezier(.2, .8, .2, 1);
}
#view-forza .fh-form.fh-drawer[hidden] { display: none; }
@keyframes fh-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fh-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fh-form.fh-drawer, .fh-backdrop { animation: none !important; } }
.fh-drawer-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin: 0 -24px 4px; padding: 18px 24px 14px; background: var(--bg-surface-2); border-bottom: var(--border-thin); }
.fh-drawer-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.fh-drawer-close { width: 34px; height: 34px; border-radius: 8px; border: var(--border-thin); background: var(--bg-surface-1); color: var(--text-2); font-size: 14px; cursor: pointer; }
.fh-drawer-close:hover { border: var(--border-thin-hover); color: #F8FAFC; }
.fh-drawer .fh-actions { position: sticky; bottom: 0; z-index: 2; margin: 8px -24px 0; padding: 14px 24px 18px; background: var(--bg-surface-2); border-top: var(--border-thin); }
/* в узкой панели схема геймпада не нужна, оси в две колонки */
.fh-drawer .fh-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.fh-drawer .fh-extra .fh-padmap { display: none; }
.fh-drawer .fh-adv-row { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  #view-forza .fh-form.fh-drawer { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .fh-drawer-head { margin: 0 -16px 4px; padding: 14px 16px 12px; }
  .fh-drawer .fh-actions { margin: 8px -16px 0; padding: 12px 16px 16px; }
  .fh-drawer .fh-extra { grid-template-columns: minmax(0, 1fr); }
}

/* Телеметрия настроек на карточке */
.fh-telem { display: flex; gap: 6px; flex-wrap: wrap; }
.fh-telem span {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 8px; border-radius: 4px;
  font: 600 10px var(--font-mono); letter-spacing: .08em; color: var(--text-3);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.fh-telem b { font-size: 12px; letter-spacing: 0; color: #F8FAFC; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* =====================================================================
   ФИНАЛЬНАЯ ПОЛИРОВКА: адаптив 1280 / 768 / 390, без горизонтального скролла
   ===================================================================== */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, canvas, video { max-width: 100%; }
main, .view, .block { min-width: 0; }
.gamepad-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.driver-grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.games-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.section-head { flex-wrap: wrap; }
.section-link { white-space: normal; }
#latency-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lat-table { min-width: 0; }
.gt-skin-wait { white-space: normal; width: max-content; max-width: 92%; text-align: center; }
.gt-title strong, .fh-who strong, .card-info h3 { overflow-wrap: anywhere; }

@media (max-width: 768px) {
  .lat-table th, .lat-table td { padding: 8px 8px; font-size: 12px; }
  .section-title { font-size: 11px; }
  .fh-bar { align-items: stretch; }
  .tester-bar h2 { font-size: 20px; }
}
@media (max-width: 480px) {
  .hero .hero-card h1 { font-size: clamp(28px, 9vw, 36px); }
  .hero-main .hero-actions .hero-cta { width: 100%; text-align: center; }
  .hero-live { padding: 18px 16px; }
  .quick-filters, .fh-filters, .kb-chips { gap: 6px; }
  .gt-btns { grid-template-columns: repeat(4, 1fr); }
  .gt-sticks { grid-template-columns: 1fr; }
  .gt-actions button { flex: 1 1 100%; }
  .lat-table th:last-child, .lat-table td:last-child { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   ИСПРАВЛЕНИЯ ПОСЛЕ РЕДИЗАЙНА: обои, нижний ряд виджетов, мета категорий
   ===================================================================== */
/* Обои teamreact.jpg + тёмный градиент (градиент по высоте страницы, фото фиксировано) */
body {
  background-color: var(--bg-base);
  background-image:
    linear-gradient(180deg, rgba(11, 13, 16, 0.72) 0%, #0b0d10 100%),
    url('./teamreact.jpg');
  background-size: 100% 100%, cover;
  background-position: top center, center top;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
}
/* Hero прозрачный: обои не перекрываются */
.hero, .hero.block, .hero .hero-card, .hero .hero-main { background: transparent !important; }
/* Полосы секций полупрозрачные, чтобы обои читались */
.home #categories, .home #news {
  background: rgba(16, 19, 24, 0.82);
  box-shadow: 0 0 0 100vmax rgba(16, 19, 24, 0.82);
}

/* Нижний ряд: PIT // ЗАДЕРЖКА и FORZA HALL — одинаковая высота */
.widget-grid { align-items: stretch; }
.widget-grid > .widget { height: 100%; }
.widget.has-img { align-items: stretch; min-height: 0; }
.has-img .wg-body { display: flex; flex-direction: column; width: 100%; }
.has-img .wg-body .wg-link { margin-top: auto; padding-top: 10px; }
.has-img p { max-width: none; }
.wg-setups { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.wg-setups li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.wg-setups a {
  display: grid; grid-template-columns: 28px 52px minmax(120px, auto) 1fr; align-items: center; gap: 12px;
  padding: 9px 6px; color: #E2E8F0; font-size: 13px; text-decoration: none;
  border-radius: 8px; transition: background 0.15s ease;
}
.wg-setups a:hover { color: #F8FAFC; background: rgba(255, 255, 255, 0.03); text-decoration: none; }
.ws-pos { font: 600 11px var(--font-mono); color: rgba(255, 255, 255, 0.4); font-variant-numeric: tabular-nums; }
.ws-team { font: 700 11px var(--font-mono); letter-spacing: .06em; text-align: center; padding: 2px 0; border-radius: 4px; color: #38BDF8; background: rgba(56, 189, 248, 0.14); }
.ws-team-esv { color: #60A5FA; background: rgba(96, 165, 250, 0.16); }
.ws-team-k1z { color: #F87171; background: rgba(248, 113, 113, 0.16); }
.ws-team-f1r { color: #FBBF24; background: rgba(251, 191, 36, 0.16); }
.ws-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-val { font: 500 12px var(--font-mono); white-space: nowrap; justify-self: end; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 3px 9px; color: rgba(255, 255, 255, 0.85); }
.wg-setups li:nth-child(1) .ws-pos { color: #38bdf8; }
.wg-setups li:nth-child(2) .ws-pos, .wg-setups li:nth-child(3) .ws-pos { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 480px) { .wg-setups a { grid-template-columns: 24px 44px minmax(0, 1fr); } .ws-val { display: none; } }

/* Декор: череп в правой части карточки Forza Hall */
.widget.wg-forza { position: relative; overflow: hidden; }
.widget.wg-forza::after {
  content: ""; position: absolute; right: -10px; bottom: 0; width: 220px; aspect-ratio: 1;
  background: url("images/skull.png") no-repeat right bottom / contain;
  opacity: 0.16; mix-blend-mode: screen; pointer-events: none; z-index: 0;
}
.widget.wg-forza .wg-body { position: relative; z-index: 1; }

/* Счётчики в карточках категорий */
.category-grid .cat-count, .cat-count {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.55);
}
.category-grid .cat:hover .cat-count { color: rgba(255, 255, 255, 0.8); }

/* =====================================================================
   FORZA HALL: жёсткая табличная сетка карточек игроков
   ИГРОК 240 · КОМАНДА 100 · ГЕЙМПАД 230 · ДОСТИЖЕНИЯ 1fr · СОЦСЕТИ auto
   ===================================================================== */
.fh-grid .fh-card {
  display: grid;
  grid-template-columns: 240px 100px 230px minmax(0, 1fr) auto;
  column-gap: 24px; row-gap: 14px;
  align-items: start; align-content: start;
  padding: 16px 20px;
}
/* общие правила колонок: единая верхняя линия и левая ось */
.fh-grid .fh-card > .fh-who,
.fh-grid .fh-card > .fh-team,
.fh-grid .fh-card > .fh-setup,
.fh-grid .fh-card > .fh-ach,
.fh-grid .fh-card > .fh-links {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  align-self: start; text-align: left; gap: 6px;
  min-width: 0; margin: 0; padding: 0; border: 0;
}
.fh-grid .fh-card > .fh-links { flex-direction: row !important; align-items: center; justify-content: flex-end; gap: 8px; }
/* заголовки колонок — на одной базовой линии */
.fh-grid .fh-card .fh-lbl { display: block; height: 12px; line-height: 12px; margin: 0 0 2px; align-self: flex-start; }
.fh-grid .fh-card .fh-who strong { max-width: 100%; }
.fh-grid .fh-card .fh-rank, .fh-grid .fh-card .fh-badge { align-self: flex-start; max-width: 100%; white-space: normal; }
.fh-grid .fh-card .fh-tag { text-align: left; overflow-wrap: anywhere; }

/* колонка ГЕЙМПАД: одна левая линия, перенос длинных названий внутри плашки */
.fh-grid .fh-card > .fh-setup > * { align-self: stretch; }
.fh-grid .fh-card > .fh-setup .fh-lbl { align-self: flex-start; }
.fh-grid .fh-card > .fh-setup .fh-pad {
  width: 100%; max-width: none; box-sizing: border-box; margin: 0;
  display: block; min-height: 38px; text-align: left; line-height: 1.3;
  overflow-wrap: anywhere; word-break: normal; hyphens: auto;
}
.fh-grid .fh-card > .fh-setup .fh-telem { justify-content: flex-start; }
.fh-grid .fh-card > .fh-setup .fh-axes-btn {
  width: 100%; max-width: none; box-sizing: border-box; margin: 0; text-align: left;
}
.fh-grid .fh-card > .fh-ach .fh-note { margin: 0; text-align: left; overflow-wrap: anywhere; }
.fh-grid .fh-card .fh-axes { grid-column: 1 / -1; margin: 0; }

/* меньшие контейнеры: сохраняем структуру, слегка сжимаем фиксированные колонки */
@media (max-width: 1200px) {
  .fh-grid .fh-card { grid-template-columns: 200px 90px 200px minmax(0, 1fr) auto; column-gap: 20px; }
}
/* < 992px: компактная двухколоночная сетка, без горизонтального скролла */
@media (max-width: 991px) {
  .fh-grid .fh-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 16px; }
  .fh-grid .fh-card > .fh-links { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .fh-grid .fh-card { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
}

/* =====================================================================
   НИЖНИЙ РЯД: PIT // ЗАДЕРЖКА и FORZA HALL — без обрезки, плотный фон, контраст
   ===================================================================== */
.widget-grid { align-items: stretch; }
.widget-grid > .widget {
  height: auto; min-height: 0; max-height: none;
  overflow: visible;                       /* ничего не обрезаем по нижнему краю */
  padding-bottom: 20px;
  display: flex; flex-direction: column;
  background-color: rgba(16, 19, 24, 0.9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.widget-grid > .widget:hover { background-color: rgba(16, 19, 24, 0.9); }
/* подложки с картинкой повторяют скругление карточки */
.widget.has-img::before, .widget.has-img::after { border-radius: inherit; }
/* нижняя ссылка всегда прижата к низу и видна целиком */
.widget-grid > .widget > .wg-link,
.widget-grid > .widget .wg-body > .wg-link { margin-top: auto; padding-top: 12px; display: inline-block; align-self: flex-start; }
.widget.has-img { align-items: stretch; }
.widget.has-img > .wg-body { flex: 1 1 auto; display: flex; flex-direction: column; width: 100%; }

/* читаемость списка задержек */
.wg-rows li, .wg-rows li span, .wg-models li, .wg-models li span { color: rgba(255, 255, 255, 0.85); }
.wg-models em { color: rgba(255, 255, 255, 0.55); }
.wg-note { color: rgba(255, 255, 255, 0.6); }
.wg-setups a, .wg-setups .ws-name { color: rgba(255, 255, 255, 0.85); }

/* =====================================================================
   МЕТАЛЛ: шлифованная текстура, объём и hover для карточек
   (.cat = category-card, .wg-latency = PIT, .wg-forza = превью Forza Hall,
    .kb-card = «База знаний», .fh-drawer = боковая панель)
   ===================================================================== */
.category-grid .cat,
.widget-grid > .widget.wg-latency,
.widget-grid > .widget.wg-forza,
.kb-card,
#view-kb .kb-card,
.guide-item {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px),
    linear-gradient(155deg, rgba(31, 36, 46, 0.92) 0%, rgba(15, 18, 24, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px -8px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.category-grid .cat:hover,
.widget-grid > .widget.wg-latency:hover,
.widget-grid > .widget.wg-forza:hover,
.kb-card:hover,
#view-kb .kb-card:hover,
.guide-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.35), 0 16px 32px -8px rgba(0, 0, 0, 0.85);
}
.category-grid .cat:hover .cat-idx { color: var(--text-3); }
.category-grid .cat:hover::after { color: #38BDF8; }


/* Боковая панель: тот же металл, но непрозрачный; без подъёма */
#view-forza .fh-form.fh-drawer {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px),
    linear-gradient(155deg, #1F242E 0%, #0F1218 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.04), -24px 0 60px -8px rgba(0, 0, 0, 0.75);
}

/* Карточка-слот «+ Добавить свой сетап» в конце сетки Forza Hall */
.fh-slot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 72px; padding: 16px 20px; box-sizing: border-box;
  border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px), rgba(15, 18, 24, 0.5);
  color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.fh-slot-plus { font-size: 22px; line-height: 1; font-weight: 400; }
.fh-slot:hover, .fh-slot:focus-visible {
  transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.6); color: #38BDF8; outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .category-grid .cat, .kb-card, .fh-slot { transition: none; }
  .category-grid .cat:hover, .kb-card:hover, .fh-slot:hover { transform: none; }
}

/* =====================================================================
   ПРАВКИ ВЁРСТКИ ГЛАВНОЙ: новости, плотность подложек, футер, счётчики
   (.category-card = .cat, .pit-card = .wg-latency, .forza-preview-card = .wg-forza)
   ===================================================================== */
/* 1. Новости: шапка на одной линии, карточки одной высоты, ссылка внизу */
.home #news .section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: nowrap; gap: 16px; }
.home #news .section-head .section-link { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) { .home #news .section-head { flex-wrap: wrap; } }
.news-grid { grid-auto-rows: 1fr; }
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card .news-meta { flex-wrap: nowrap; }
.news-card .news-tag { white-space: nowrap; flex-shrink: 0; }
.news-card .review-link { margin-top: auto; }

/* 2. Плотная подложка поверх обоев */
.category-grid .cat,
.widget-grid > .widget.wg-latency,
.widget-grid > .widget.wg-forza,
.news-card,
.news-card:hover {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px),
    linear-gradient(155deg, rgba(15, 18, 24, 0.94) 0%, rgba(15, 18, 24, 0.94) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.widget-grid > .widget.wg-latency:hover,
.widget-grid > .widget.wg-forza:hover,
.category-grid .cat:hover {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px),
    linear-gradient(155deg, rgba(15, 18, 24, 0.94) 0%, rgba(15, 18, 24, 0.94) 100%);
}
.wg-models li, .wg-models li span { color: rgba(255, 255, 255, 0.85); }

/* 3. Футер: ширина контейнера и чёткая сетка */
.footer-container { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-brand { grid-column: auto; }
}

/* 4. Счётчики категорий */
.category-grid .cat-count, .cat-count { font-size: 12px; color: rgba(255, 255, 255, 0.65); }

/* =====================================================================
   БЕСШОВНАЯ ШАПКА И ОВЕРЛЕЙ ОБОЕВ (без серой полосы под навигацией)
   ===================================================================== */
body > header, header {
  background: rgba(11, 13, 16, 0.65) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}
body {
  background-color: #0b0d10;
  background-image:
    linear-gradient(180deg, rgba(11, 13, 16, 0.78) 0%, rgba(11, 13, 16, 0.55) 35%, rgba(11, 13, 16, 0.88) 75%, #0b0d10 100%),
    url('./teamreact.jpg');
  background-size: 100% 100%, cover;
  background-position: top center, center top;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
}
.hero, .hero.block, .hero .hero-card, .hero .hero-main {
  background: transparent !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

/* =====================================================================
   БЕЗ ПОЛОС НА ВСЮ ШИРИНУ: секции главной прозрачны, плотность — только у карточек
   ===================================================================== */
.home section, .home section.block,
.home #hero, .home #categories, .home #widgets, .home #news {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* Skull в виджете «Геймпады сообщества»: поверх подложки, под строками лидерборда */
.widget.wg-forza { position: relative; overflow: hidden; isolation: isolate; }
.widget.wg-forza::after {
  content: ""; position: absolute; right: -15px; bottom: -10px; width: 240px; aspect-ratio: 1;
  background: url("images/skull.png") no-repeat right bottom / contain;
  z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0.28; filter: contrast(1.15);
}
.widget.wg-forza .wg-body { position: relative; z-index: 2; }

/* Hero-виджет RADAR */
.rd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rd-list li { border-top: 1px solid var(--line); }
.rd-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; }
.rd-main { display: flex; flex-direction: column; min-width: 0; }
.rd-main strong { font-size: 14px; color: #F8FAFC; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-main small { font-size: 11px; color: var(--text-3); letter-spacing: .06em; }
.rd-status { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #38BDF8; white-space: nowrap; }
.rd-list a:hover strong { color: #38BDF8; }
.rd-empty { padding: 10px 0; color: var(--text-3); font-size: 13px; }

/* =====================================================================
   ФУТЕР: 4 колонки, виджет быстрой проверки, плавный стык с обоями
   Контейнер = main (max-width 1440, padding 24) — одна ширина с контентом
   ===================================================================== */
body > footer {
  position: relative; margin-top: 0;
  background: linear-gradient(180deg, rgba(19, 23, 31, 0.90) 0%, rgba(12, 15, 20, 0.95) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}
body > footer .footer-container {
  max-width: 1440px; width: 100%; margin: 0 auto; box-sizing: border-box;
  padding: 48px 24px 0;
}
body > footer .footer-grid {
  display: grid; grid-template-columns: 1.3fr 0.85fr 1fr 1.35fr; gap: 32px; align-items: start; width: 100%;
}
body > footer .footer-brand, body > footer .footer-col { min-width: 0; }
body > footer .footer-logo { color: #F8FAFC; }
body > footer .footer-brand p { margin-top: 10px; max-width: 360px; line-height: 1.55; }
body > footer .footer-status { margin-top: 12px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
}
.footer-quick {
  width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px;
  background: linear-gradient(155deg, rgba(31, 36, 46, 0.92) 0%, rgba(15, 18, 24, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.fq-title { color: #F8FAFC; font-size: 15px; }
.fq-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); line-height: 1.4; }
.fq-status span { min-width: 0; overflow-wrap: anywhere; }
.fq-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #64748B; }
.footer-quick.is-live .fq-status { color: #E2E8F0; }
.footer-quick.is-live .fq-dot { background: #22C55E; box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
.fq-actions { display: flex; flex-direction: column; gap: 8px; }
body > footer .footer-col a.fq-btn {
  display: flex; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-align: center; transition: background .2s, border-color .2s, color .2s;
}
body > footer .footer-col a.fq-primary {
  color: #F8FAFC; border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #3b4352 0%, #232a36 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
body > footer .footer-col a.fq-primary:hover { border-color: var(--accent); color: #fff; }
body > footer .footer-col a.fq-secondary { color: #CBD5E1; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; }
body > footer .footer-col a.fq-secondary:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
body > footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  width: 100%; margin: 40px 0 0; padding: 20px 0 24px; box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left; font-size: 13px; color: var(--text-3);
}
body > footer .footer-note { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 1024px) {
  body > footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body > footer .footer-brand { grid-column: auto; }
}
@media (max-width: 600px) {
  body > footer .footer-container { padding-left: 16px; padding-right: 16px; }
  body > footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* COMMS // TERMINAL (footer col 4) */
.comms-terminal {
  width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px), linear-gradient(155deg, rgba(31, 36, 46, 0.94) 0%, rgba(15, 18, 24, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px -8px rgba(0, 0, 0, 0.75);
}
body > footer .footer-col a.comms-row {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02);
  transition: transform .2s, border-color .2s, color .2s;
}
body > footer .footer-col a.comms-row:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.45); color: #fff; }
.comms-ico { flex: none; color: #94A3B8; }
.comms-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.comms-txt strong { color: #F8FAFC; font-size: 13px; overflow-wrap: anywhere; }
.comms-txt small { color: var(--text-3); font-size: 12px; }
.comms-badge {
  flex: none; font-family: var(--mono, 'JetBrains Mono', monospace); font-variant-numeric: tabular-nums;
  font-size: 11px; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.08); white-space: nowrap;
}
body > footer .footer-col a.comms-cta {
  display: flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 8px;
  font-family: var(--mono, 'JetBrains Mono', monospace); font-size: 12px; font-weight: 600; text-align: center; color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.18); background: linear-gradient(180deg, #3b4352 0%, #232a36 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); transition: border-color .2s, color .2s;
}
body > footer .footer-col a.comms-cta:hover { border-color: rgba(56, 189, 248, 0.45); color: #fff; }
/* Footer engineering stamp */
.footer-stamp { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-2); }
.footer-stamp::first-letter { color: inherit; }
.footer-stamp-mark { display: block; flex: none; }
.footer-stamp-label { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-stamp:hover .footer-stamp-label { color: #38bdf8; }
body > footer .footer-stamp { color: rgba(248, 250, 252, 0.62); }
/* ===== «База знаний» и «Полезное»: единый строгий стиль (финальный, без цветов категорий) ===== */
#view-kb .kb-card, .guide-item { border: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: none; backdrop-filter: none; }
#view-kb .kb-card:hover, .guide-item:hover { border-color: rgba(56, 189, 248, 0.45); }
#view-kb .kb-card, .guide-item { display: flex; flex-direction: column; }
#view-kb .kb-card { height: 100%; }
#view-kb .kb-card h3, .guide-item h3 { color: #f8fafc; }
#view-kb .kb-card p, .guide-item p:not(.difficulty) { color: rgba(255, 255, 255, 0.65); }
#view-kb .kb-tag { display: flex; align-items: center; gap: 8px; font-family: var(--mono, 'JetBrains Mono', monospace); font-variant-numeric: tabular-nums; color: #94a3b8; }
#view-kb .kb-tag-name { color: #38bdf8; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; padding: 2px 7px; }
#view-kb .kb-tag-time, .guide-item .difficulty { color: rgba(255, 255, 255, 0.45); }
#view-kb .kb-more, #view-kb .review-link, .guide-item a { color: #38bdf8; margin-top: auto; }
#view-kb .kb-more, #view-kb .review-link { padding-top: 14px; }
#view-kb .kb-chip { background: rgba(15, 18, 24, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); }
#view-kb .kb-chip:hover { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.45); color: #f8fafc; }
#view-kb .kb-chip.active, #view-kb .kb-chip.active:hover { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.45); color: #f8fafc; font-weight: 600; }
#view-kb .kb-search:focus { border-color: #38bdf8; }

/* ===== Модалка: задержки, отзыв владельца, где купить; цены в карточке ===== */
.modal-latency, .modal-owner, .modal-buy, .modal-content > .modal-review { margin: 0 40px 20px; }
.modal-content > .modal-review { margin-top: 0; }
.modal-latency, .modal-buy {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0px, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 3px), linear-gradient(155deg, rgba(31,36,46,0.94) 0%, rgba(15,18,24,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 28px -8px rgba(0,0,0,0.75);
  border-radius: 14px; padding: 16px 18px; color: #F8FAFC;
}
.modal-latency h4, .modal-buy h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.mlat-table { width: 100%; border-collapse: collapse; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-size: 13px; }
.mlat-table th, .mlat-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mlat-table thead th { color: #7DD3FC; font-weight: 600; font-size: 12px; }
.mlat-table tbody th { text-align: left; color: #94A3B8; font-weight: 500; }
.mlat-table td { color: #F8FAFC; }
.mlat-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-size: 12px; color: #94A3B8; }
.mlat-foot b { color: #F8FAFC; }
.mlat-foot a { color: #38bdf8; text-decoration: none; }
.mlat-foot a:hover { text-decoration: underline; }
.modal-owner { border-left: 3px solid #38bdf8; background: rgba(15,23,42,0.5); border-radius: 0 12px 12px 0; padding: 14px 18px; color: #E2E8F0; }
.modal-owner-tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; color: #38bdf8; margin-bottom: 6px; }
.modal-owner h4 { margin: 0 0 6px; color: #F8FAFC; }
.modal-owner p { margin: 0; line-height: 1.6; }
.modal-buy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: stretch; }
.modal-tester-row { display: flex; justify-content: center; margin-top: 14px; }
.shop-ico { flex: none; border-radius: 6px; }
.shop-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border-radius: 10px; min-width: 0;
  background: rgba(15,23,42,0.7); border: 1px solid rgba(255,255,255,0.12); color: #F8FAFC; text-decoration: none; font-size: 14px;
  transition: transform .15s, border-color .15s;
}
.shop-btn:hover { transform: translateY(-2px); border-color: rgba(56,189,248,0.45); text-decoration: none; }
.shop-price { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #7DD3FC; }
.shop-go { color: #38bdf8; }
.modal-tester-row .modal-tester-btn { display: inline-flex; align-items: center; justify-content: center; }
.card-prices { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 12px; color: #94A3B8; }
.cp-item { cursor: pointer; }
.cp-item b { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #7DD3FC; font-weight: 600; }
.cp-item:hover { color: #F8FAFC; }
@media (max-width: 720px) {
  .modal-latency, .modal-owner, .modal-buy, .modal-content > .modal-review { margin-left: 16px; margin-right: 16px; }
  .modal-buy-row { grid-template-columns: 1fr; }
}

/* ===== Сравнение 3 моделей + футер таблицы задержек (вкладка «В работе») ===== */
.cmp-hint { margin: -6px 0 16px; font-size: 13px; color: var(--text-3); }
.cmp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cmp-card {
  display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px), linear-gradient(155deg, rgba(31, 36, 46, 0.94) 0%, rgba(15, 18, 24, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px -8px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cmp-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.45); }
.cmp-select {
  width: 100%; padding: 9px 10px; border-radius: 6px; cursor: pointer;
  background: rgba(11, 13, 16, 0.8); color: #F8FAFC; border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 13px 'JetBrains Mono', monospace;
}
.cmp-select:focus { outline: 2px solid rgba(56, 189, 248, 0.6); outline-offset: 1px; }
.cmp-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cmp-media { height: 150px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.cmp-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cmp-name { margin: 0; font-size: 15px; letter-spacing: -0.01em; color: #F8FAFC; }
.cmp-poll { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-2); }
.cmp-poll b { font: 700 15px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #38BDF8; }
.cmp-sub { font: 600 10px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cmp-lat { display: grid; grid-template-columns: 52px 1fr 76px; align-items: center; gap: 8px; font-size: 12px; }
.cmp-lat-l { color: var(--text-2); }
.cmp-lat-v { font: 600 12px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #F8FAFC; text-align: right; }
.cmp-bar { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; width: 0; background: #64748B; transition: width 0.3s ease; }
.cmp-bar i.good { background: #34D399; }
.cmp-bar i.mid { background: #38BDF8; }
.cmp-bar i.slow { background: #FBBF24; }
.cmp-spec { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; }
.cmp-spec li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.06)); }
.cmp-spec span { color: var(--text-2); flex: none; }
.cmp-spec b { color: #F8FAFC; font-weight: 600; text-align: right; }
.cmp-price { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.cmp-open {
  margin-top: 4px; padding: 9px 12px; text-align: center; border-radius: 6px; text-decoration: none;
  font: 600 12px 'JetBrains Mono', monospace; letter-spacing: .04em; color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45); transition: background 0.2s ease;
}
.cmp-open:hover { background: rgba(56, 189, 248, 0.12); }
.lat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.lat-refresh {
  padding: 8px 14px; border-radius: 6px; cursor: pointer; background: transparent; color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45); font: 600 12px 'JetBrains Mono', monospace;
}
.lat-refresh:hover:not(:disabled) { background: rgba(56, 189, 248, 0.12); }
.lat-refresh:disabled { opacity: 0.6; cursor: wait; }
.lat-stamp { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: var(--text-2); }
.lat-stamp b { color: #F8FAFC; }
.lat-note { flex-basis: 100%; color: rgba(255, 255, 255, 0.6); }

/* ROADMAP // РАЗВИТИЕ ПРОЕКТА */
.road-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px), linear-gradient(155deg, rgba(31, 36, 46, 0.94) 0%, rgba(15, 18, 24, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px -8px rgba(0, 0, 0, 0.75);
  transition: transform .15s ease, border-color .15s ease;
}
.road-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.45); }
.road-tag { font: 600 11px 'JetBrains Mono', monospace; letter-spacing: .8px; text-transform: uppercase; color: #38bdf8; }
.road-card h4 { margin: 0; font-size: 16px; color: #F8FAFC; }
.road-card p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }
.road-link {
  align-self: flex-start; margin-top: auto; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: #38bdf8; text-decoration: none; border: 1px solid rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.08);
}
.road-link:hover { background: rgba(56, 189, 248, 0.18); }
@media (max-width: 900px) { .road-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .cmp-grid { grid-template-columns: 1fr; } }

/* PIT // ЗАДЕРЖКА: реальные данные Gamepadla */
.wg-rows b, .wg-models b, .wg-note b { font-family: var(--mono, 'JetBrains Mono', monospace); font-variant-numeric: tabular-nums; }
.wg-note { color: rgba(255, 255, 255, 0.65); font-variant-numeric: tabular-nums; }
.wg-note b { color: #F8FAFC; font-weight: 600; }
.wg-rows i { transition: width .4s ease; }
.wg-models .wg-pick-row { display: block; border-bottom: 0; padding: 0 0 4px; }
.wg-pick { width: 100%; font: 12px var(--mono, 'JetBrains Mono', monospace); color: #F8FAFC; padding: 7px 10px; border-radius: 8px; cursor: pointer;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0, rgba(255,255,255,.014) 1px, transparent 1px, transparent 3px), linear-gradient(155deg, rgba(31,36,46,.94), rgba(15,18,24,.96));
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.wg-pick:hover, .wg-pick:focus { border-color: rgba(56, 189, 248, 0.45); outline: 0; }
.wg-pick option { background: #0f1218; color: #F8FAFC; }
.wg-models .wg-detail { display: block; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.65); font-variant-numeric: tabular-nums; }
.wg-models .wg-detail:empty { display: none; }
.wg-models .wg-detail b { font-size: 11px; color: #F8FAFC; }

/* Сворачиваемая дорожная карта */
.road-details > summary { cursor: pointer; list-style: none; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.road-details > summary::-webkit-details-marker { display: none; }
.road-details > summary::before { content: "▸"; color: rgba(56, 189, 248, 0.9); transition: transform 0.15s; }
.road-details[open] > summary::before { transform: rotate(90deg); }
.road-details:not([open]) > summary { margin-bottom: 0; }

/* О проекте: компактная сетка из 3 карточек */
.about-page { min-height: 0; padding: 48px 0; margin-bottom: 0; }
.about-page .about-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .about-page .about-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   ПОВЕРХНОСТИ: матовый пластик (blur + блик + шум), точечная сетка у
   инструментов, штриховка Forza Hall; мягкий hover без скачков
   ===================================================================== */
:root {
  --noise-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  --dot-grid: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px);
  --plastic-fill: linear-gradient(155deg, rgba(31, 36, 46, 0.72) 0%, rgba(15, 18, 24, 0.84) 100%);
}
body .gamepad-card,
body .kb-card, body #view-kb .kb-card,
body .guide-item,
body .driver-card,
body .news-card, body .news-card:hover,
body .category-grid .cat, body .category-grid .cat:hover,
body .road-card,
body .cmp-card,
body .about-page .kb-card {
  background-color: transparent;
  background-image: var(--noise-tex), var(--plastic-fill);
  background-size: 160px 160px, auto;
  background-repeat: repeat, no-repeat;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px -10px rgba(0, 0, 0, 0.7);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body .gamepad-card .card-info, body .gamepad-card:hover .card-info { background-color: transparent; }
body .gamepad-card:hover,
body .kb-card:hover, body #view-kb .kb-card:hover,
body .guide-item:hover,
body .driver-card:hover,
body .news-card:hover,
body .category-grid .cat:hover,
body .road-card:hover,
body .cmp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  border-top-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.3), 0 16px 32px -10px rgba(0, 0, 0, 0.8);
}

/* Инструментальные блоки: Тестер геймпада и «Ориентиры по задержке» — точечная сетка 16px */
body #view-tester.gt-card,
body .widget-grid > .widget.wg-latency {
  background-color: rgba(11, 13, 16, 0.6);
  background-image: var(--dot-grid), var(--noise-tex), var(--plastic-fill);
  background-size: 16px 16px, 160px 160px, auto;
  background-repeat: repeat, repeat, no-repeat;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px -10px rgba(0, 0, 0, 0.7);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body .widget-grid > .widget.wg-latency:hover {
  background-image: var(--dot-grid), var(--noise-tex), var(--plastic-fill);
  border-color: rgba(56, 189, 248, 0.4); border-top-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.3), 0 16px 32px -10px rgba(0, 0, 0, 0.8);
}

/* Forza Hall: диагональная техническая штриховка (цветовой акцент команды сохранён) */
body #view-forza .fh-card {
  background-image:
    radial-gradient(120% 160% at 0% 0%, rgba(var(--tc-rgb), 0.30) 0%, transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    var(--noise-tex),
    linear-gradient(180deg, rgba(30, 35, 44, 0.9), rgba(12, 14, 18, 0.94));
  background-size: auto, auto, 160px 160px, auto;
  border-top-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  transition: border-color .25s ease, box-shadow .25s ease;
}
body #view-forza .fh-card:hover {
  border-color: rgba(56, 189, 248, 0.35); border-top-color: rgba(56, 189, 248, 0.5);
  border-left-color: var(--tc);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.3), 0 10px 24px -8px rgba(0, 0, 0, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  body .gamepad-card:hover, body .kb-card:hover, body .guide-item:hover, body .driver-card:hover,
  body .news-card:hover, body .category-grid .cat:hover, body .road-card:hover, body .cmp-card:hover { transform: none; }
}

/* О проекте: высота строго по содержимому (низ задаёт padding-bottom у main) */
body .about-page { min-height: 0; height: auto; padding: 0; margin-bottom: 0; }
body .about-page .about-grid { align-items: stretch; }
body .about-page .kb-card { height: auto; }

/* О проекте: единая панель по центру вьюпорта */
body .about-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--header-h, 64px) - 160px); padding: 0; margin: 0;
}
.about-panel {
  width: 100%; max-width: 820px; box-sizing: border-box; padding: 40px 44px 28px; border-radius: 16px;
  background-color: rgba(11, 13, 16, 0.6);
  background-image: var(--noise-tex), linear-gradient(155deg, rgba(31, 36, 46, 0.72) 0%, rgba(15, 18, 24, 0.84) 100%);
  background-size: 160px 160px, auto;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 48px -16px rgba(0, 0, 0, 0.8);
}
.about-eyebrow { display: block; margin-bottom: 12px; font: 600 12px 'JetBrains Mono', monospace; letter-spacing: .16em; color: #38bdf8; }
.about-title { margin: 0 0 20px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; color: #F8FAFC; }
.about-panel p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.about-links a {
  padding: 8px 14px; border-radius: 8px; font: 600 13px 'JetBrains Mono', monospace; color: #7DD3FC; text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.07);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.about-links a:hover { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.6); color: #F8FAFC; }
@media (max-width: 600px) { .about-panel { padding: 28px 20px 20px; } .about-links a { flex: 1 1 100%; text-align: center; } }

/* Hero: кнопка поиска и подложка счётчиков */
.search button svg { display: block; margin: 0 auto; }
.search button { color: #CBD5E1; }
body .hero .stat-chips {
  background: rgba(11, 14, 20, 0.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 12px 18px;
}

/* Виджеты главной: матовое стекло в стиле «О проекте» */
body .widget-grid > .widget.wg-latency, body .widget-grid > .widget.wg-forza {
  background-color: rgba(16, 20, 28, 0.72);
  background-image: var(--noise-tex);
  background-size: 160px 160px; background-repeat: repeat;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
body .widget-grid > .widget.wg-latency:hover, body .widget-grid > .widget.wg-forza:hover { background-image: var(--noise-tex); }
.wg-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wg-top-row { display: flex; gap: 12px; align-items: flex-start; }
.wg-top-pos { font: 600 12px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #38bdf8; padding-top: 2px; }
.wg-top-main { flex: 1; min-width: 0; }
.wg-top-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wg-top-name { font-size: 14px; font-weight: 600; color: #F8FAFC; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-top-ms { font: 700 14px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #F8FAFC; white-space: nowrap; }
.wg-top-meta { display: flex; gap: 12px; margin: 2px 0 6px; font: 11px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.55); }
.wg-top-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wg-top-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #38bdf8, rgba(56, 189, 248, 0.25)); }
.wg-empty { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Единый матовый стиль для оставшихся поверхностей */
body .lab-card, body .lat-table, body .fh-form:not(.fh-drawer), body .footer-lab-card {
  background-color: transparent;
  background-image: var(--noise-tex), var(--plastic-fill);
  background-size: 160px 160px, auto;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09); border-top-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color .25s ease, box-shadow .25s ease;
}
body .lab-card:hover { border-color: rgba(56, 189, 248, 0.4); }

/* ===== Карточка каталога в стиле витрины: фото, название, чипы, магазины ===== */
body .gamepad-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px;
  background-color: rgba(16, 20, 28, 0.78); background-image: var(--noise-tex); background-size: 160px 160px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body .gamepad-card .card-media { aspect-ratio: 16 / 10; height: auto; flex: none; position: relative; overflow: hidden; border: 0; }
body .gamepad-card .card-media img.gamepad-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
body .gamepad-card:hover .card-media img.gamepad-image { transform: scale(1.03); }
body .gamepad-card .gc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; gap: 0; border: 0; background: transparent; }
body .gamepad-card .gc-body h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; font-weight: 700; color: #F8FAFC; }
.gc-meta { margin: 0 0 12px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.gc-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.gc-chips li {
  padding: 3px 9px; border-radius: 999px; font: 600 11px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
  color: #CBD5E1; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
}
.gc-chips li:nth-child(2) { color: #7DD3FC; }
body .gamepad-card .gc-verdict {
  margin: 0 0 16px; padding: 0; border: 0; background: none; border-radius: 0;
  font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.68);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 8px; }
.gc-shops { display: flex; flex-direction: column; gap: 6px; }
.gc-shop {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #E2E8F0;
  transition: border-color .25s ease, background .25s ease;
}
.gc-shop .shop-ico { width: 20px; height: 20px; }
.gc-shop-name { flex: 1; min-width: 0; }
.gc-shop-price { font: 600 13px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #F8FAFC; white-space: nowrap; }
.gc-shop-ozon:hover { border-color: rgba(0, 91, 255, 0.7); background: rgba(0, 91, 255, 0.1); }
.gc-shop-wb:hover { border-color: rgba(203, 17, 171, 0.7); background: rgba(203, 17, 171, 0.1); }
.gc-shop-aliexpress:hover { border-color: rgba(255, 71, 71, 0.7); background: rgba(255, 71, 71, 0.1); }
.gc-open {
  display: block; text-align: center; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); transition: border-color .25s ease, background .25s ease, color .25s ease;
}
body .gamepad-card:hover .gc-open { border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.1); color: #fff; }

/* ===== Единый стандарт фото контроллеров: каталог и модалка (прозрачные webp 800x500) ===== */
body .gamepad-card .card-media,
body .modal-left:has(.modal-image) {
  aspect-ratio: 16 / 10; height: auto; max-height: none; box-sizing: border-box; padding: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #232936 0%, #12161f 100%);
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0;
}
body .gamepad-card .card-media::after { display: none; }
body .gamepad-card .card-media img.gamepad-image,
body .modal-left .modal-image {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
  border-radius: 0; filter: none; mix-blend-mode: normal; background: transparent; padding: 0;
  transition: transform 0.25s ease;
}
body .gamepad-card:hover .card-media img.gamepad-image,
body .modal-left:hover .modal-image { transform: scale(1.05); }
body .gamepad-card .card-media .telemetry-ph { min-height: 0; width: 100%; height: 100%; }

/* Разделы каталога: компактный ряд из 4 плашек */
body .category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 0; }
body .category-grid .cat { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 18px 20px; border-radius: 12px; }
body .category-grid .cat-name { flex: none; font-size: 15px; font-weight: 600; color: #F8FAFC; }
body .category-grid .cat-count { margin-top: 0; font: 12px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { body .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { body .category-grid { grid-template-columns: 1fr; } }
body .category-grid .cat { position: relative; } body .category-grid .cat::after { position: absolute; top: 16px; right: 18px; }

/* «В работе»: сравнение моделей, таблица задержек, «В планах» в едином стеклянном стиле */
body .cmp-card, body .lat-table, body .road-card {
  background-color: rgba(16, 20, 28, 0.76); background-image: var(--noise-tex); background-size: 160px 160px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
body .cmp-media {
  height: auto; aspect-ratio: 16 / 10; padding: 0; border-radius: 8px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #232936 0%, #12161f 100%);
}
body .cmp-media img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center; display: block; border-radius: 0; }
.lat-note a { color: #38bdf8; text-decoration: none; }
.lat-note a:hover { text-decoration: underline; }

/* Матрица сравнения: одна стеклянная панель, строки разделены линиями */
body .cmp-matrix {
  display: block; overflow-x: auto; border-radius: 14px;
  background-color: rgba(16, 20, 28, 0.78); background-image: var(--noise-tex); background-size: 160px 160px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
.cmp-row { display: grid; grid-template-columns: 190px repeat(3, minmax(170px, 1fr)); min-width: 700px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cmp-row.cmp-head { border-top: 0; }
.cmp-label { padding: 16px 18px; display: flex; align-items: center; font: 600 12px 'JetBrains Mono', monospace; letter-spacing: .04em; color: rgba(255, 255, 255, 0.55); }
.cmp-cell { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.cmp-head .cmp-cell { gap: 10px; padding: 16px 18px 18px; }
.cmp-top { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
body .cmp-matrix .cmp-media { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 8px; }
.cmp-val { font: 700 15px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #F8FAFC; }
.cmp-text { font-size: 13px; line-height: 1.4; color: #E2E8F0; }
.cmp-na { font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.cmp-matrix .cmp-bar { display: block; height: 3px; width: 100%; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cmp-matrix .cmp-open { margin: 0; padding: 0; border: 0; background: none; text-align: left; font: 600 12px 'JetBrains Mono', monospace; color: #38bdf8; }
.cmp-matrix .cmp-open:hover { background: none; text-decoration: underline; }
/* Таблица задержек: стекло без глухого фона */
body .lat-table tr, body .lat-table th, body .lat-table td { background: transparent; }
body .lat-table th, body .lat-table td { border-color: rgba(255, 255, 255, 0.06); }

/* ESV Motorsport: клубный знак, подсветка и логотип на фоне карточки */
body #view-forza .fh-card.fh-team-esv {
  --tc: #E11D48; --tc-rgb: 225, 29, 72;
  border-left: 4px solid #E11D48;
  background-color: rgba(16, 20, 28, 0.78);
  background-image:
    linear-gradient(90deg, rgba(225, 29, 72, 0.12) 0%, transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, rgba(30, 35, 44, 0.9), rgba(12, 14, 18, 0.94));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body #view-forza .fh-card.fh-team-esv:hover { border-left-color: #E11D48; }
.fh-wm-logo {
  position: absolute; left: 34%; top: 50%; transform: translate(-50%, -50%);
  height: 150%; width: auto; max-width: 40%; object-fit: contain;
  opacity: 0.12; pointer-events: none; user-select: none; z-index: 0;
}
.fh-tag { display: inline-flex; align-items: center; gap: 8px; }
.fh-chevron {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #E11D48 0%, #881337 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.fh-chevron img { display: block; width: 18px; height: 18px; object-fit: contain; }
@media (max-width: 640px) { .fh-wm-logo { left: 50%; max-width: 70%; } }

/* F1R Friends 1st: изумрудно-золотой акцент, золотой логотип на фоне */
body #view-forza .fh-card.fh-team-f1r {
  --tc: #10B981; --tc-rgb: 16, 185, 129;
  border-left: 4px solid #10B981;
  background-color: rgba(16, 20, 28, 0.78);
  background-image:
    linear-gradient(90deg, rgba(6, 78, 59, 0.28) 0%, rgba(212, 175, 55, 0.06) 35%, transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, rgba(30, 35, 44, 0.9), rgba(12, 14, 18, 0.94));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body #view-forza .fh-card.fh-team-f1r:hover { border-left-color: #D4AF37; }
.fh-team-f1r .fh-wm-logo { opacity: 0.14; height: auto; width: 34%; max-width: 34%; max-height: 80%; left: 32%; }
.fh-chevron-f1r {
  background: linear-gradient(135deg, #064E3B 0%, #022C22 100%);
  border: 1px solid rgba(212, 175, 55, 0.45); box-sizing: border-box;
}
.fh-chevron-f1r img { width: 20px; height: 20px; }
@media (max-width: 640px) { .fh-team-f1r .fh-wm-logo { left: 50%; width: 60%; max-width: 60%; } }

/* Forza Hall: левосторонний градиент команды, эмблема и название на фоне */
body #view-forza .fh-card.fh-team-esv {
  background-color: transparent;
  background-image: linear-gradient(115deg, rgba(225, 29, 72, 0.32) 0%, rgba(159, 18, 57, 0.12) 30%, rgba(16, 20, 28, 0.80) 58%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px);
  border: 1px solid rgba(225, 29, 72, 0.28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body #view-forza .fh-card.fh-team-f1r {
  background-color: transparent;
  background-image: linear-gradient(115deg, rgba(6, 95, 70, 0.38) 0%, rgba(212, 175, 55, 0.10) 30%, rgba(16, 20, 28, 0.80) 58%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px);
  border: 1px solid rgba(16, 185, 129, 0.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body #view-forza .fh-card.fh-team-k1z {
  background-color: transparent;
  background-image: linear-gradient(115deg, rgba(59, 130, 246, 0.28) 0%, rgba(30, 64, 175, 0.10) 30%, rgba(16, 20, 28, 0.80) 58%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px);
  border: 1px solid rgba(59, 130, 246, 0.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body #view-forza .fh-card.fh-team-esv, body #view-forza .fh-card.fh-team-f1r, body #view-forza .fh-card.fh-team-k1z { overflow: hidden; }
.fh-card > .fh-wm-logo, .fh-team-f1r > .fh-wm-logo, .fh-team-esv > .fh-wm-logo {
  position: absolute; left: 90px; top: 50%; right: auto; transform: translateY(-50%);
  height: 88%; width: auto; max-width: 42%; max-height: none; object-fit: contain;
  opacity: 0.16; pointer-events: none; user-select: none; z-index: 0;
}
.fh-card > svg.fh-wm-k1z { width: auto; color: #fff; }
.fh-card > .fh-wm-name {
  position: absolute; left: 24%; bottom: 16%; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font: 800 22px/1 var(--font, 'Inter', system-ui, sans-serif); letter-spacing: .4em; text-transform: uppercase; color: #fff; opacity: 0.12;
}
@media (max-width: 640px) { .fh-card > .fh-wm-logo { left: 50%; transform: translate(-50%, -50%); } .fh-card > .fh-wm-name { left: 12%; } }
/* Соцсети: сдержанные стеклянные кнопки */
body #view-forza .fh-card .fh-ico {
  width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.10); color: #fff;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
body #view-forza .fh-card .fh-ico svg { width: 18px; height: 18px; }
body #view-forza .fh-card .fh-ico-youtube:hover { color: #FF0000; border-color: #FF0000; background: rgba(255, 0, 0, 0.12); }
body #view-forza .fh-card .fh-ico-twitch:hover { color: #9146FF; border-color: #9146FF; background: rgba(145, 70, 255, 0.14); }

/* K1Z: векторная монограмма */
.fh-chevron-k1z { background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%); border: 1px solid rgba(96, 165, 250, 0.45); box-sizing: border-box; }
.fh-chevron-k1z-mark { display: block; width: 20px; height: 9px; }

/* Виджет «Геймпады сообщества»: клубные бейджи и цветная грань как в Forza Hall */
.wg-setups li { border-left: 2px solid var(--tc, rgba(255, 255, 255, 0.12)); background: linear-gradient(90deg, rgba(var(--tc-rgb, 255, 255, 255), 0.10) 0%, transparent 45%); }
.wg-setups a { grid-template-columns: 28px 68px minmax(120px, auto) 1fr; }
.ws-team.ws-team-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 6px; border-radius: 6px;
  color: var(--tc); background: rgba(var(--tc-rgb), 0.14); border: 1px solid rgba(var(--tc-rgb), 0.4);
}
.ws-team.ws-team-brand img, .ws-team.ws-team-brand svg { display: block; flex: none; object-fit: contain; }
@media (max-width: 480px) { .wg-setups a { grid-template-columns: 24px 64px minmax(0, 1fr); } }

/* Виджет «Геймпады сообщества»: мини-карточки в стиле Forza Hall */
.wg-setups { gap: 8px; margin: 10px 0 14px; border-top: 0; }
.wg-setups li.ws-card {
  position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-left: 2px solid var(--tc, rgba(255, 255, 255, 0.15)); border-radius: 10px;
  background: linear-gradient(90deg, rgba(var(--tc-rgb, 255, 255, 255), 0.22) 0%, rgba(var(--tc-rgb, 255, 255, 255), 0.05) 40%, transparent 70%), rgba(16, 20, 28, 0.6);
  transition: border-color .25s ease;
}
.wg-setups li.ws-card:hover { border-color: rgba(255, 255, 255, 0.18); border-left-color: var(--tc, rgba(255, 255, 255, 0.3)); }
.wg-setups li.ws-card a { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: none; }
.ws-bg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); height: 78%; opacity: 0.14; pointer-events: none; z-index: 0; display: flex; align-items: center; }
.ws-bg img, .ws-bg svg { height: 100%; width: auto; display: block; }
.ws-chev {
  flex: none; position: relative; z-index: 1; width: 24px; height: 24px; box-sizing: border-box; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--tc-rgb, 148, 163, 184), 0.18); border: 1px solid rgba(var(--tc-rgb, 148, 163, 184), 0.5);
  font: 700 12px var(--font-mono, monospace); color: #F8FAFC;
}
.ws-chev img, .ws-chev svg { display: block; width: 16px; height: 16px; object-fit: contain; }
.wg-setups .ws-name { position: relative; z-index: 1; flex: 1; font-weight: 600; color: #F8FAFC; }
.wg-setups .ws-val { position: relative; z-index: 1; flex: none; max-width: 48%; overflow: hidden; text-overflow: ellipsis; background: none; border: 0; padding: 0; font: 500 12px var(--font-mono, monospace); color: rgba(255, 255, 255, 0.65); }
@media (max-width: 480px) { .wg-setups .ws-val { display: none; } }

/* ===== Crown in Forza Hall widget ===== */
.wg-crown { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 200px; margin: 10px 0 14px; border-radius: 10px; overflow: hidden; text-decoration: none; }
.wg-crown-bg {
  position: absolute; inset: 0; z-index: -1; background: url("images/setup-bg.png") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 50%, #000 30%, rgba(0,0,0,0.5) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 64% at 50% 50%, #000 30%, rgba(0,0,0,0.5) 62%, transparent 100%);
  opacity: 0.9; transition: opacity .3s ease;
}
.wg-crown-stage { display: block; width: min(60%, 220px); }
.wg-crown .crown-svg { display: block; width: 100%; height: auto; overflow: visible; transition: filter .3s ease, transform .3s ease; }
.wg-crown .crown-tooth { transition: fill .25s ease; }
.wg-crown .crown-node circle { fill: rgba(56, 189, 248, 0); stroke: rgba(56, 189, 248, 0); stroke-width: 3; transition: fill .25s ease, stroke .25s ease; }
.wg-crown:hover .crown-svg, .wg-crown:focus-visible .crown-svg { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6)); transform: scale(1.03); }
.wg-crown:hover .crown-tooth, .wg-crown:focus-visible .crown-tooth { fill: #6b8199; }
.wg-crown:hover .crown-node circle, .wg-crown:focus-visible .crown-node circle { fill: rgba(56, 189, 248, 0.2); stroke: rgba(56, 189, 248, 0.9); }
.wg-crown:hover .wg-crown-bg { opacity: 1; }
@media (max-width: 600px) { .wg-crown { min-height: 170px; } .wg-crown-stage { width: min(55%, 180px); } }
/* crown visibility fix */
.wg-crown-stage { position: relative; z-index: 2; width: min(65%, 240px); }
.wg-crown .crown-svg { position: relative; z-index: 2; opacity: 1; max-width: 100%; height: auto; filter: drop-shadow(0 0 6px rgba(213, 215, 218, 0.35)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.7)); }
.wg-crown .crown-tooth { fill: #6b7280; }
.wg-crown:hover .crown-svg, .wg-crown:focus-visible .crown-svg, .widget.wg-forza:hover .crown-svg { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.75)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.7)); transform: scale(1.04); }
.wg-crown:hover .crown-tooth, .wg-crown:focus-visible .crown-tooth, .widget.wg-forza:hover .crown-tooth { fill: #8fb4d6; }

/* crown: full-card backdrop + larger crown */
.wg-crown { position: static; isolation: auto; overflow: visible; }
.wg-crown-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0) 30%, rgba(8, 10, 14, 0) 70%, rgba(8, 10, 14, 0.82) 100%),
    url("images/setup-bg.png") center / cover no-repeat;
  -webkit-mask-image: none; mask-image: none; opacity: 1;
}
.widget.wg-forza .wg-body { z-index: auto; }
.widget.wg-forza .wg-tag, .widget.wg-forza h3, .widget.wg-forza .wg-link { position: relative; z-index: 3; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85); }
.wg-crown-stage { position: relative; z-index: 2; width: 85%; max-width: 380px; }
.wg-crown .crown-svg { width: 100%; max-height: 270px; height: auto; margin: 0 auto; }
@media (max-width: 600px) { .wg-crown-stage { width: 80%; } .wg-crown .crown-svg { max-height: 220px; } }
.widget.wg-forza .wg-body { position: static; }

/* crown as full-card interactive layer */
.widget.wg-forza { display: flex; flex-direction: column; }
.widget.wg-forza .wg-body { flex: 1 1 auto; pointer-events: none; }
.widget.wg-forza .wg-body .wg-link { pointer-events: auto; margin-top: auto; }
.wg-crown { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 0; margin: 0; flex: none; pointer-events: auto; }
.wg-crown-stage { position: absolute; inset: 0; width: auto; max-width: none; z-index: 2; display: flex; align-items: center; justify-content: center; }
.wg-crown .crown-svg { width: 92%; height: 92%; max-height: none; max-width: none; margin: 0; object-fit: contain; }

/* ===== Language switcher (RU / EN) ===== */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .04em; flex: none; }
.lang-switch .lang-btn { background: none; border: 0; padding: 6px 7px; border-radius: 6px; color: rgba(255, 255, 255, 0.42); cursor: pointer; font: inherit; transition: color .2s ease, background .2s ease; }
.lang-switch .lang-btn:hover { color: #F8FAFC; background: rgba(255, 255, 255, 0.06); }
.lang-switch .lang-btn.active { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.45); cursor: default; }
.lang-switch .lang-sep { color: rgba(255, 255, 255, 0.2); }
.lang-switch--header { margin-left: 8px; }
.lang-switch--footer { margin-left: auto; }
@media (max-width: 900px) { .lang-switch--header { margin-left: 0; align-self: flex-start; } }

/* mobile: give the Forza Hall card room so the crown does not cover the title */
@media (max-width: 900px) {
  .widget.wg-forza { min-height: 380px; }
  .wg-crown .crown-svg { width: 78%; height: 66%; margin-top: 28px; }
}



/* ===== Review modal: single editorial sheet ===== */
.gamepad-modal .modal-content {
  background: rgba(13, 17, 23, 0.97); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7); color: #e2e8f0; padding: 0 40px 28px; overflow: hidden;
}
.gamepad-modal .modal-body { padding: 40px 0 28px; gap: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); align-items: center; }
.gamepad-modal .modal-left, .gamepad-modal .modal-left:has(.modal-image) {
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(120, 140, 170, 0.16) 0%, transparent 70%);
  border: 0; box-shadow: none; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; max-height: 300px;
}
.gamepad-modal .modal-specs {
  background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 18px;
}
.gamepad-modal .modal-specs-row { border: 0; padding: 0; margin: 0; display: block; font-size: 13px; line-height: 1.45; }
.gamepad-modal .modal-spec-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 2px; }
.gamepad-modal .modal-specs-row strong { font-weight: 600; color: #f1f5f9; }
.gamepad-modal .modal-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #94a3b8; margin: 8px 0 0; }

.gamepad-modal .modal-latency {
  background: none; border: 0; box-shadow: none; border-radius: 0; padding: 22px 0; margin: 0; color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.gamepad-modal .modal-latency h4, .gamepad-modal .modal-column h4, .gamepad-modal .modal-owner-tag, .gamepad-modal .mb-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; font-weight: 600;
}
.gamepad-modal .modal-latency h4 { margin: 0 0 12px; }
.gamepad-modal .mlat-table thead th { color: #94a3b8; font-weight: 500; }
.gamepad-modal .mlat-table th, .gamepad-modal .mlat-table td { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.gamepad-modal .mlat-table tbody tr:last-child th, .gamepad-modal .mlat-table tbody tr:last-child td { border-bottom: 0; }
.gamepad-modal .mlat-foot a { color: #94a3b8; }
.gamepad-modal .mlat-foot a:hover { color: #f1f5f9; text-decoration: none; }

.gamepad-modal .modal-content > .modal-review { margin: 0; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.gamepad-modal .modal-pros-cons { gap: 32px; }
.gamepad-modal .modal-column { background: none; border: 0; border-left: 0; padding: 0; box-shadow: none; }
.gamepad-modal .modal-column h4 { margin: 0 0 12px; }
.gamepad-modal .modal-column ul { gap: 8px; }
.gamepad-modal .modal-column li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #cbd5e1; }
.gamepad-modal .modal-column li::before { position: absolute; left: 0; top: 0; font-family: 'JetBrains Mono', monospace; color: #94a3b8; }
.gamepad-modal .modal-pros li::before { content: "+"; }
.gamepad-modal .modal-cons li::before { content: "\2013"; }

.gamepad-modal .modal-owner {
  background: none; border: 0; border-left: 0; border-radius: 0; box-shadow: none; padding: 22px 0; margin: 0; max-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.gamepad-modal .modal-owner-tag { display: block; margin-bottom: 8px; color: #94a3b8; }
.gamepad-modal .modal-owner h4 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; color: #f8fafc; }
.gamepad-modal .modal-owner p { max-width: 68ch; line-height: 1.7; color: #cbd5e1; }

.gamepad-modal .modal-buy {
  background: none; border: 0; box-shadow: none; border-radius: 0; margin: 0; padding: 20px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.gamepad-modal .mb-shops { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.gamepad-modal .mb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.gamepad-modal .mb-link {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid transparent;
  color: #cbd5e1; text-decoration: none; font-size: 13px; white-space: nowrap; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.gamepad-modal .mb-link + .mb-link::before { content: "\00b7"; color: #475569; margin-left: -8px; margin-right: 4px; }
.gamepad-modal .mb-link:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); color: #f8fafc; }
.gamepad-modal .mb-price { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #e2e8f0; }
.gamepad-modal .mb-go { color: #64748b; font-size: 12px; }
.gamepad-modal .modal-buy .modal-tester-btn {
  display: inline-flex; width: auto; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 6px; box-shadow: none; white-space: nowrap;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); color: #f8fafc; font-size: 13px; transition: background .15s ease, border-color .15s ease;
}
.gamepad-modal .modal-buy .modal-tester-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
@media (max-width: 700px) {
  .gamepad-modal .modal-content { padding: 0 16px 20px; }
  .gamepad-modal .modal-body { padding: 56px 0 20px; gap: 18px; }
  .gamepad-modal .modal-pros-cons { grid-template-columns: 1fr; gap: 20px; }
  .gamepad-modal .modal-buy { flex-direction: column; align-items: flex-start; }
  .gamepad-modal .mb-link + .mb-link::before { display: none; }
  .gamepad-modal .mb-links { flex-direction: column; align-items: flex-start; margin-left: -10px; }
  .gamepad-modal .mb-shops { flex-direction: column; gap: 4px; }
}

/* ===== Review modal: larger, higher-contrast "where to buy" ===== */
.gamepad-modal .mb-label { font-size: 12px; color: #aab4c3; }
.gamepad-modal .mb-shops { align-items: center; gap: 10px 22px; }
.gamepad-modal .mb-links { gap: 8px 12px; }
.gamepad-modal .mb-link {
  gap: 8px; align-items: center; padding: 8px 12px; border-radius: 8px; font-size: 15px; line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); color: #f1f5f9;
}
.gamepad-modal .mb-link + .mb-link::before { content: none; }
.gamepad-modal .mb-name { font-weight: 500; color: #f1f5f9; transition: color .15s ease; }
.gamepad-modal .mb-price { font-size: 16px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.gamepad-modal .mb-go { color: #94a3b8; font-size: 13px; }
.gamepad-modal .mb-ico { flex-shrink: 0; width: 18px; height: 18px; color: #94a3b8; transition: color .2s ease; }
.gamepad-modal .mb-link:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.gamepad-modal .mb-link:hover .mb-name { color: #fff; }
.gamepad-modal .mb-ozon:hover .mb-ico { color: #3b82f6; }
.gamepad-modal .mb-wb:hover .mb-ico { color: #b44fe0; }
.gamepad-modal .mb-aliexpress:hover .mb-ico { color: #ff5a2a; }
.gamepad-modal .modal-buy { gap: 16px 28px; }
.gamepad-modal .modal-buy .modal-tester-btn { font-size: 15px; padding: 11px 18px; }
@media (max-width: 700px) {
  .gamepad-modal .mb-links { margin-left: 0; }
  .gamepad-modal .mb-link { font-size: 15px; }
}
.gamepad-modal .modal-buy .modal-tester-btn { margin-left: auto; }
@media (max-width: 700px) { .gamepad-modal .modal-buy .modal-tester-btn { margin-left: 0; } }
@media (max-width: 700px) { .gamepad-modal .mb-shops { align-items: flex-start; } }
