* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Arial", sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header,
footer {
  background: #0b1220;
  color: #e2e8f0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

header .container,
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-weight: 600;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav a {
  font-size: 14px;
  color: #cbd5f5;
  white-space: nowrap;
}

/* Бургер-меню */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #e2e8f0;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hero {
  padding: 48px 0 32px;
  background: #f8fafc;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 16px;
  max-width: 720px;
}

.hero-image {
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: block;
}

.brand-hero-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  display: block;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #e2e8f0;
}

.section {
  padding: 32px 0;
}

.section h2 {
  margin-top: 0;
  font-size: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f1f5f9;
}

.brand-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.filters-wrapper {
  margin-bottom: 16px;
}

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

.filter {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #cbd5f5;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter:hover {
  background: #f1f5f9;
  border-color: #64748b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter.active {
  background: #0b1220;
  color: #ffffff;
  border-color: #0b1220;
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.3);
  transform: translateY(-2px);
}

.filter.active::after {
  content: '✓';
  margin-left: 8px;
  font-size: 16px;
  font-weight: 600;
}

.filter-results {
  font-size: 13px;
  color: #64748b;
  padding: 8px 0;
}

.filter-results.filtered {
  color: #0b1220;
  font-weight: 500;
}

.filter-results strong {
  color: #0b1220;
  font-weight: 600;
}

.filter-results.filtered strong {
  color: #0b1220;
}

.btn-link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: #0b1220;
  color: #f8fafc;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-link:hover {
  background: #111827;
}

.hero .btn-link {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pros-cons ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.faq details {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #ffffff;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.notice .icon-inline {
  vertical-align: middle;
  margin-right: 8px;
}

.muted {
  color: #64748b;
  font-size: 14px;
}

footer .muted {
  color: #94a3b8;
}

.icon-inline {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

.breadcrumbs {
  margin-bottom: 16px;
  font-size: 14px;
  color: #64748b;
}

.breadcrumbs a {
  color: #3b82f6;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
  color: #94a3b8;
}

/* Мобильные стили */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 12px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  header .container {
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand span {
    font-size: 14px;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b1220;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 0;
    border-top: 1px solid #1e293b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid #1e293b;
    margin: 0;
    font-size: 15px;
  }

  nav a:last-child {
    border-bottom: none;
  }

  /* Таблицы на мобильных - карточки */
  .table-wrap {
    overflow: visible;
    border: none;
    border-radius: 0;
  }

  table {
    min-width: auto;
    border: none;
  }

  thead {
    display: none;
  }

  tbody tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  tbody tr:last-child {
    margin-bottom: 0;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    gap: 12px;
  }

  tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
    min-width: 100px;
    font-size: 13px;
  }

  /* Скрываем метку только для ячеек с брендом (без data-label) */
  tbody td:first-child:not([data-label])::before {
    display: none;
  }

  /* Ячейка с брендом (без data-label) */
  tbody td:first-child:not([data-label]) {
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
    display: block;
  }

  tbody td:first-child:not([data-label]) .brand-cell {
    width: 100%;
  }

  /* Ячейки с data-label */
  tbody td[data-label] {
    flex-direction: column;
    align-items: stretch;
  }

  tbody td[data-label]::before {
    margin-bottom: 4px;
    display: block;
  }

  /* Для ячеек с номером */
  tbody td[data-label="№"] {
    flex-direction: row;
    align-items: center;
    padding: 8px 0;
  }

  .brand-cell {
    width: 100%;
  }

  .btn-link {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  .section {
    padding: 24px 0;
  }

  .section h2 {
    font-size: 20px;
  }

  .container {
    padding: 0 16px;
  }

  .filters {
    gap: 6px;
  }

  .filter {
    padding: 8px 16px;
    font-size: 13px;
  }
}
