* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
}
body {
  background: #0b1119;
  color: #eef2f6;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes rowSlideIn { from { transform: translateX(-30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: sticky;
  top: 0;
  background: rgba(11, 17, 25, 0.95);
  backdrop-filter: blur(25px);
  z-index: 100;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo span {
  font-weight: 600;
  background: linear-gradient(135deg, #4884ff, #3acf6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.search-header {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  position: relative;
}
.search-header input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 60px;
  padding: 13px 20px 13px 52px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}
.search-header input:focus {
  border-color: #4884ff;
  box-shadow: 0 0 30px rgba(72,132,255,0.15);
}
.search-header i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8fa0;
  font-size: 1rem;
}
.search-suggestions {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  background: rgba(20, 28, 40, 0.98);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 12px;
  display: none;
  z-index: 150;
  border: 1px solid rgba(72,132,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.search-suggestions.active {
  display: block;
  animation: scaleIn 0.2s ease;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.suggestion-item:hover {
  background: rgba(72,132,255,0.1);
}
.suggestion-item i {
  position: static;
  color: #4884ff;
  font-size: 0.9rem;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-icon {
  color: #eef2f6;
  font-size: 1.2rem;
  opacity: 0.8;
  text-decoration: none;
  position: relative;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}
.header-icon:hover {
  opacity: 1;
  background: rgba(255,255,255,0.05);
}
.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff4757;
  color: #fff;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.6rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, #4884ff, #3a6fd8);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(72,132,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(72,132,255,0.4);
}
.btn-outline {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.15);
  color: #eef2f6;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: #4884ff;
  background: rgba(72,132,255,0.05);
}
.btn-sm {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  color: #eef2f6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-sm:hover {
  border-color: #4884ff;
  background: rgba(72,132,255,0.08);
}
.btn-sm.active {
  background: #4884ff;
  border-color: #4884ff;
  color: #fff;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 0 6px;
  font-size: 0.78rem;
  opacity: 0.65;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: #8aa9ff;
  text-decoration: none;
}

/* Заголовок каталога */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 8px;
  flex-wrap: wrap;
  gap: 16px;
}
.catalog-header h1 {
  font-size: 1.8rem;
  font-weight: 400;
  animation: slideIn 0.5s ease;
}
.catalog-header p {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-top: 2px;
}
.results-count {
  font-size: 0.85rem;
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 8px;
}
.results-count strong {
  color: #4884ff;
  font-weight: 500;
}

/* Быстрые фильтры (чипсы) */
.quick-filters {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.quick-filters::-webkit-scrollbar {
  display: none;
}
.quick-chip {
  padding: 8px 18px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: #9aabbf;
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all 0.3s;
  font-weight: 400;
  font-family: inherit;
}
.quick-chip.active {
  background: #4884ff;
  border-color: #4884ff;
  color: #fff;
}
.quick-chip:hover:not(.active) {
  border-color: rgba(72,132,255,0.5);
  color: #fff;
}

/* Основной layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  margin-top: 16px;
}

/* Сайдбар фильтров */
.filters-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 6px;
}
.filters-sidebar::-webkit-scrollbar {
  width: 4px;
}
.filters-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}
.filter-panel {
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 14px;
}
.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.filter-panel-title {
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-panel-title i {
  color: #4884ff;
  font-size: 0.9rem;
}
.filter-reset {
  font-size: 0.7rem;
  color: #8aa9ff;
  cursor: pointer;
  background: none;
  border: none;
}
.filter-section {
  margin-bottom: 16px;
}
.filter-section:last-child {
  margin-bottom: 0;
}
.filter-label {
  font-size: 0.78rem;
  font-weight: 400;
  margin-bottom: 8px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.84rem;
  transition: all 0.2s;
}
.filter-checkbox:hover {
  color: #fff;
}
.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
  margin: 0;
}
.filter-checkbox input[type="checkbox"] {
  border-radius: 5px;
}
.filter-checkbox input[type="radio"] {
  border-radius: 50%;
}
.filter-checkbox input[type="checkbox"]:checked,
.filter-checkbox input[type="radio"]:checked {
  background: #4884ff;
  border-color: #4884ff;
}
.filter-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}
.filter-checkbox input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.filter-count {
  margin-left: auto;
  font-size: 0.68rem;
  opacity: 0.45;
}
.price-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.price-inputs input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: all 0.3s;
}
.price-inputs input:focus {
  border-color: #4884ff;
}
.range-slider {
  width: 100%;
  margin: 8px 0;
}
.range-input {
  width: 100%;
  -webkit-appearance: none;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  outline: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4884ff;
  cursor: pointer;
  border: 3px solid #0b1119;
  box-shadow: 0 0 10px rgba(72,132,255,0.3);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  opacity: 0.5;
}

/* Панель результатов */
.results-panel {
  min-width: 0;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.012);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.04);
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sort-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  min-width: 180px;
}
.sort-select option {
  background: #1a2533;
  color: #fff;
}
.view-toggle {
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 3px;
}
.view-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #7f8fa0;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.view-btn.active {
  background: #4884ff;
  color: #fff;
}
.selected-info {
  font-size: 0.8rem;
  opacity: 0.6;
}
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.active-filter-tag {
  background: rgba(72,132,255,0.08);
  border: 1px solid rgba(72,132,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.active-filter-tag .remove-tag {
  color: #ff4757;
  cursor: pointer;
  font-weight: 500;
}

/* Таблица (список) */
.platforms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.platforms-table thead th {
  text-align: left;
  padding: 8px 16px 12px;
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.platform-row {
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  transition: all 0.3s;
  cursor: pointer;
  animation: rowSlideIn 0.4s ease;
}
.platform-row:hover {
  border-color: rgba(72,132,255,0.25);
  background: rgba(72,132,255,0.03);
  transform: translateX(2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.platform-row td {
  padding: 16px;
  vertical-align: middle;
  border: none;
}
.platform-row td:first-child {
  border-radius: 16px 0 0 16px;
}
.platform-row td:last-child {
  border-radius: 0 16px 16px 0;
}
.plat-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e2a3a, #152030);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #6a9cff;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.plat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.plat-icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.plat-initials {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.5rem;
  background: rgba(0,0,0,0.65);
  padding: 2px 4px;
  border-radius: 4px;
}
.platform-card {
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(72,132,255,0.35);
}
.platform-card-media {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1a2533, #121c28);
  position: relative;
}
.platform-card-media img,
.platform-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #6a9cff;
  background: linear-gradient(135deg, #1e2a3a, #152030);
}
.card-badge.verified {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #3acf6b;
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 2;
}
.plat-name {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
}
.plat-category {
  font-size: 0.72rem;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 4px;
}
.plat-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}
.plat-rating i {
  color: #ffc107;
  font-size: 0.65rem;
}
.plat-rating span {
  opacity: 0.5;
  font-size: 0.7rem;
  font-weight: 300;
}
.plat-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plat-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.plat-stat-value {
  font-weight: 500;
  min-width: 50px;
}
.plat-stat-label {
  font-size: 0.65rem;
  opacity: 0.45;
}
.plat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.plat-tag {
  background: rgba(72,132,255,0.06);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  white-space: nowrap;
}
.plat-price {
  font-size: 1.15rem;
  font-weight: 500;
  color: #3acf6b;
  white-space: nowrap;
}
.plat-price small {
  font-size: 0.65rem;
  opacity: 0.5;
  font-weight: 300;
}
.plat-actions {
  display: flex;
  gap: 6px;
}
.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  color: #eef2f6;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.action-btn:hover {
  border-color: #4884ff;
  background: rgba(72,132,255,0.1);
}
.action-btn.fav {
  color: #ff4757;
}
.action-btn.fav.active {
  background: rgba(255,71,87,0.15);
  border-color: rgba(255,71,87,0.3);
}
.action-btn.compare-checked {
  background: #4884ff;
  border-color: #4884ff;
  color: #fff;
}
.btn-order {
  background: #4884ff;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 400;
}
.btn-order:hover {
  background: #3a6fd8;
  box-shadow: 0 8px 20px rgba(72,132,255,0.3);
}

.filter-select {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.84rem;
  outline: none;
}
.filter-select option { background: #1a2533; }

.plat-cover-thumb {
  width: 72px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e2a3a;
  position: relative;
}
.plat-cover-img { width: 100%; height: 100%; object-fit: cover; }
.plat-cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #6a9cff; font-size: 1.2rem;
}
.plat-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #3acf6b;
  color: #fff;
  border-radius: 50%;
  font-size: 0.55rem;
  margin-left: 4px;
  vertical-align: middle;
}
.plat-badge {
  background: #ff4757;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.6rem;
  margin-left: 6px;
}

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 20px;
  margin-bottom: 20px;
}
.catalog-empty i { font-size: 3rem; color: #4884ff; opacity: 0.5; }
.catalog-empty h3 { font-weight: 400; font-size: 1.2rem; }
.catalog-empty p { opacity: 0.55; font-size: 0.9rem; }

/* Сетка — 4 колонки на ПК, квадратные обложки */
.platforms-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.platforms-grid.active { display: grid; }

.platform-card {
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.platform-card:hover {
  border-color: rgba(72,132,255,0.28);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.platform-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1e2a3a, #152030);
  cursor: pointer;
  overflow: hidden;
}
.platform-card-media img,
.platform-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.platform-card:hover .platform-card-media img,
.platform-card:hover .platform-card-cover {
  transform: scale(1.04);
}
.platform-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #6a9cff;
  background: linear-gradient(135deg, #1e2a3a, #152030);
}
.card-price-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #3acf6b;
  z-index: 2;
}
.card-badge.verified,
.card-badge.hot {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}
.card-badge.hot {
  background: #ff4757;
  color: #fff;
}
.card-badge.verified {
  background: #3acf6b;
  color: #fff;
}
.platform-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.platform-card--compact .plat-name {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.platform-card--compact .plat-category {
  font-size: 0.68rem;
  opacity: 0.5;
}
.card-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.card-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-plat-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-plat-logo img, .card-plat-logo .plat-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-card-logo-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  z-index: 2;
  background: #1a2533;
}
.platform-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-card-media { position: relative; }
.card-rating.compact {
  font-size: 0.68rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.card-rating.compact i { font-size: 0.55rem; }
.card-rating.compact .muted { display: none; }
.card-metrics {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  opacity: 0.7;
}
.card-metrics i { color: #4884ff; margin-right: 3px; font-size: 0.65rem; }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.card-tags .plat-tag {
  font-size: 0.6rem;
  padding: 2px 7px;
}
.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.card-actions .btn-order {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 10px;
}
.card-actions .action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.page-dots {
  display: flex;
  align-items: center;
  padding: 0 4px;
  opacity: 0.4;
}

/* Quick view v2 */
.qv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  font-size: 1.1rem;
}
.quick-view-modal { max-width: 640px; margin: 0 auto; left: 0; right: 0; }
.qv-cover { border-radius: 16px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 16/9; background: #1e2a3a; }
.qv-cover-inner, .qv-cover-inner img { width: 100%; height: 100%; object-fit: cover; }
.qv-header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.qv-header h3 { font-weight: 500; font-size: 1.2rem; }
.qv-category { opacity: 0.6; font-size: 0.85rem; margin-top: 4px; }
.qv-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.qv-metrics div {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.qv-metrics strong { display: block; font-size: 1rem; color: #3acf6b; }
.qv-metrics span { font-size: 0.68rem; opacity: 0.5; }
.qv-desc { opacity: 0.75; font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.qv-actions { display: flex; gap: 10px; margin-top: 16px; }
.qv-actions .btn-primary { flex: 1; justify-content: center; }

/* Compare modal */
.compare-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(920px, 94vw);
  max-height: 85vh;
  background: #1a2533;
  border-radius: 24px;
  border: 1px solid rgba(72,132,255,0.25);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.compare-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.compare-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-modal-header h3 { font-weight: 400; font-size: 1.1rem; }
.compare-modal-body { padding: 20px 24px; overflow: auto; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.compare-table th, .compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  vertical-align: top;
}
.compare-table th { font-weight: 500; min-width: 140px; }
.compare-thumb { width: 100%; height: 80px; border-radius: 10px; overflow: hidden; margin-bottom: 8px; background: #1e2a3a; }
.compare-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  z-index: 3;
}
.card-fav-btn.active {
  color: #ff4757;
  background: rgba(255,71,87,0.2);
}

/* Панель сравнения */
.compare-panel {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a2533;
  border: 1px solid rgba(72,132,255,0.4);
  border-radius: 20px;
  padding: 14px 20px;
  display: none;
  align-items: center;
  gap: 20px;
  z-index: 300;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
  animation: slideUp 0.3s ease;
  flex-wrap: wrap;
}
.compare-panel.active {
  display: flex;
}
.compare-panel-items {
  display: flex;
  gap: 10px;
}
.compare-panel-item {
  background: rgba(72,132,255,0.08);
  border: 1px solid rgba(72,132,255,0.2);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-panel-item i {
  color: #ff4757;
  cursor: pointer;
  font-size: 0.7rem;
}

/* Быстрый просмотр */
.quick-view-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 28, 40, 0.99);
  backdrop-filter: blur(30px);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px;
  z-index: 400;
  transform: translateY(100%);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(72,132,255,0.3);
  max-height: 80vh;
  overflow-y: auto;
}
.quick-view-modal.active {
  transform: translateY(0);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 390;
  display: none;
}
.modal-overlay.active {
  display: block;
}

/* Пагинация */
.pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.pagination-info {
  font-size: 0.8rem;
  opacity: 0.55;
}
.pagination {
  display: flex;
  gap: 6px;
}
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.85rem;
}
.page-btn:hover {
  border-color: #4884ff;
}
.page-btn.active {
  background: #4884ff;
  border-color: #4884ff;
  color: #fff;
}

/* Мобильная кнопка фильтров */
.mobile-filter-fab {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #4884ff;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(72,132,255,0.4);
  align-items: center;
  justify-content: center;
}
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 340;
  backdrop-filter: blur(4px);
}
.filter-overlay.active {
  display: block;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #1a2533;
  color: #fff;
  padding: 14px 26px;
  border-radius: 60px;
  z-index: 999;
  border: 1px solid rgba(72,132,255,0.4);
  font-size: 0.9rem;
  transition: all 0.4s;
  white-space: nowrap;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1280px) {
  .platforms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 320px;
    z-index: 350;
    background: #0f1722;
    transform: translateX(-100%);
    transition: transform 0.35s;
    padding: 20px;
    border-radius: 0;
  }
  .filters-sidebar.open {
    transform: translateX(0);
  }
  .mobile-filter-fab {
    display: flex;
  }
  .platforms-table {
    font-size: 0.8rem;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .header.header--public {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0;
  }
  .header--public .header-search-row,
  .header--public .search-wrap,
  .header--public .search-header {
    order: unset;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
  }
  .header--public .search-header.search-box {
    display: flex;
    min-width: 0;
  }
  .header--public .search-header.search-box i {
    position: static;
    transform: none;
  }
  .platforms-table {
    display: none;
  }
  .platforms-table.active {
    display: block;
  }
  .platform-row td {
    display: block;
    padding: 10px 16px;
    text-align: left;
    border-radius: 0 !important;
  }
  .platform-row td:first-child {
    border-radius: 16px 16px 0 0 !important;
  }
  .platform-row td:last-child {
    border-radius: 0 0 16px 16px !important;
  }
  .platform-row {
    display: block;
    margin-bottom: 12px;
  }
  .plat-actions {
    justify-content: flex-start;
  }
  .catalog-header h1 {
    font-size: 1.4rem;
  }
  .platforms-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Compact mode */
.catalog-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.catalog-header h1 {
  font-size: 1.55rem;
  margin-bottom: 4px;
}
.catalog-header p {
  font-size: 0.82rem;
  opacity: 0.55;
}
.quick-filters {
  gap: 6px;
  margin-bottom: 14px;
}
.quick-chip {
  padding: 7px 12px;
  font-size: 0.78rem;
}
.filter-panel {
  padding: 14px;
}
.filter-section {
  margin-bottom: 14px;
}
.results-toolbar {
  padding: 10px 12px;
  margin-bottom: 12px;
}
.platform-card {
  border-radius: 14px;
}
.platform-card-media {
  aspect-ratio: 1 / 1;
}
.platform-card-body {
  padding: 10px 12px;
}
.platform-card--compact .plat-name {
  font-size: 0.86rem;
}
.platforms-table th,
.platforms-table td {
  padding: 10px 12px;
}
.active-filters {
  gap: 6px;
  margin-bottom: 10px;
}
.active-filter-tag {
  font-size: 0.72rem;
  padding: 5px 10px;
}