:root {
  --blue: #0073c6;
  --blue-dark: #004080;

  --bg-main: #ffffff;
  --bg-soft: #eef4fb;

  --text-main: #1a1a1a;
  --text-secondary: #5c6b7a;

  --border: rgba(0, 0, 0, 0.06);
  --card-width: 320px;
}

/* ===== BODY ===== */
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =========================================
   CARD
========================================= */

.equipment-card {
  width: 280px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
 
  border-radius: 18px;
  overflow: hidden;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);

  transition: 0.2s ease;
}

.equipment-card {
  width: 280px;          /* фиксированная ширина */
  flex: 0 0 280px;       /* важно: не сжимается */
}
.equipment-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* скрытие карточек */
.equipment-card.hidden-card {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
}

.equipment-card.placeholder {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  background: transparent;
}

/* ===== LINK ===== */
.card-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  z-index: 1;
  pointer-events: auto;
}

/* ===== IMAGE ===== */
.equipment-image {
  background: linear-gradient(135deg, #eef4fb, #e3ecf7);
  padding: 15px;
  text-align: center;
}

.equipment-image img {
  height: 120px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.card-link:hover .equipment-image img {
  transform: scale(1.12);
}

/* ===== BODY ===== */
.equipment-body {
  padding: 8px;
  flex: 1;
}

.equipment-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 2px;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

.equipment-type {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ===== SPEC ===== */
.spec {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* ===== BADGES (ПОЛНОСТЬЮ ВОССТАНОВЛЕНО) ===== */
.badge-dynamic {
  cursor: pointer;
  transition: all 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  opacity: 1;
  display: inline-flex;
  position: relative;
}

.badge-dynamic.hidden-badge {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  display: inline-flex;
}

.badge-dynamic.active {
  background: linear-gradient(135deg, #0b1626, #13233a);
  color: #e6edf5;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.badge-dynamic.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, #13233a, #1a2a44);
}

/* SCROLLABLE BADGES ROW */
.equipment-badges-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.badge-left .badge {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f3f5;
  color: #555;
  border: 1px solid #e0e0e0;
  font-size: 11px;
  line-height: 1;
}

.badge-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.badge-right .badge {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f8f9fb;
  color: #444;
  border: 1px solid #e5e7eb;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-right .badge--gray {
  background: transparent;
  border: none;
  color: #888;
  padding: 0 1px;
  margin-right: -1px;
}

.hidden-details .hidden-detail {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hidden-details .hidden-detail.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}


/* кнопка "Подробнее" */
.equipment-hover {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  padding: 10px 12px;
  text-align: center;

  font-size: 14px;
  font-weight: 600;
  color: #fff;

  border-radius: 12px;

  background: rgba(11, 22, 38, 0.85);
  backdrop-filter: blur(8px);

  transform: translateY(20px);
  opacity: 0;

  transition: all 0.25s ease;

  z-index: 5;
  pointer-events: none;
}

/* появление */
.equipment-card:hover .equipment-hover {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* плавность всей карточки */
.equipment-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.compare-title {
  max-width: 1200px;
  margin: 50px auto 20px;
  padding: 0 20px;

  font-size: 20px;
  font-weight: 700;

  color: #1a1a1a;

  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-title::before {
  content: "";
  width: 10px;
  height: 10px;

  border-radius: 50%;
  background: linear-gradient(135deg, #0073c6, #4da3ff);

  box-shadow: 0 0 0 4px rgba(0, 115, 198, 0.15);
}

/* ===== COMPARE TABLE WRAPPER ===== */
.compare-table {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0;
  box-sizing: border-box;
}

/* ===== TABLE BASE ===== */
.compare-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;

  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  font-size: 14px;
  color: #1a1a1a;

  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== HEADER ===== */
.compare-table thead th {
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b1626, #13233a);
  color: #e6edf5;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.compare-table thead th:first-child {
  text-align: left;
}

/* ===== ROWS ===== */
.compare-table tbody tr {
  transition: 0.15s ease;
}

/* ===== ОБЩИЙ ФОН ЯЧЕЕК ===== */
.compare-table td {
  padding: 7px 12px; /* компактнее */
  border-bottom: 1px solid #e5eef8;

  vertical-align: middle;
  word-break: break-word;

  background: #f7faff; /* ещё светлее */
  color: #444;
}

/* ===== PARAM COLUMN ===== */
.compare-table td:first-child {
  font-weight: 500;
  color: #444;
  width: 40%;
}

/* ===== VALUE COLUMNS ===== */
.compare-table td:not(:first-child) {
  text-align: center;
}

/* ===== HOVER ===== */
.compare-table tbody tr:hover td {
  background: #e6f0ff;
}

/* ===== EMPTY CELLS ===== */
.compare-table td:empty::after {
  content: "—";
  color: #9aa9bb;
}

/* ===== GROUP ROWS ===== */
.group-row td {
  background: #e6f0ff !important; /* как hover */
  color: #0073c6 !important; /* как иконки */
  font-weight: 800;
  font-size: 14px;

  padding: 10px 12px 10px 42px !important;
  position: relative;
}

/* =========================================
   CTA BLOCK (ОЧИЩЕННЫЙ)
========================================= */
.compare-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  justify-content: center;
  gap: 48px;

  width: 100%;
}


/* ЛЕВАЯ КАРТОЧКА */
.compare-consult {
    width: 280px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 18px 20px;

    border-radius: 16px;

    /* как у info-box — единый язык */
    background: linear-gradient(135deg, #f7fbff, #eef6ff);

    border: 1px solid rgba(0, 115, 198, 0.18);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    transition: 0.25s ease;

    position: relative;
}

/* hover как у info-box */
.compare-consult:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.consult-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consult-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* заголовок — делаем “сильнее” */
.cta-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 15.5px;
    font-weight: 700;
    color: #0b1a2a;
    margin: 0;
}

/* текст */
.compare-consult p {
    font-size: 13.5px;
    color: #4b5b6b;
    line-height: 1.5;
    margin: 0;
}

/* кнопка — усиливаем премиальность */
.compare-cta-btn {
    margin-top: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 14px;
    border-radius: 12px;

    background: linear-gradient(135deg, #0073c6, #4da3ff);
    color: #fff;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 10px 20px rgba(0, 115, 198, 0.25);

    transition: 0.2s ease;
}

/* hover кнопки */
.compare-cta-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #005a9e, #3390ff);
    box-shadow: 0 14px 28px rgba(0, 115, 198, 0.35);
}

/* самолетик */
.compare-cta-btn::after {
  content: "";
  width: 14px;
  height: 14px;

  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

/* ===== HEADER BLOCK ===== */
.compare-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.compare-h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;

  margin: 0 0 14px 0;
  color: #0b1a2a;

  letter-spacing: -0.6px;

  position: relative;
  display: inline-block;

  max-width: 900px;
}

/* градиентная линия */
.compare-h1::after {
  content: "";
  display: block;

  width: 110px;
  height: 5px;

  margin-top: 12px;

  border-radius: 6px;

  background: linear-gradient(90deg, #0073c6, #4da3ff);

  box-shadow: 0 6px 14px rgba(0, 115, 198, 0.25);
}

/* лёгкий акцент фона */
.compare-h1::before {
  content: "";
  position: absolute;

  left: -12px;
  top: -10px;

  width: 60px;
  height: 60px;

  background: radial-gradient(circle, rgba(0,115,198,0.12), transparent 70%);
  z-index: -1;
}

/* подзаголовок */
.compare-subtitle {
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 700px;
}

/* правый блок */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    border: 1px solid rgba(0, 115, 198, 0.18);
    box-shadow: 
        0 8px 22px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    transition: 0.25s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 14px 30px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ТЕКСТ */
.info-box > div:last-child {
    font-size: 13.5px;
    line-height: 1.45;
    color: #1a1a1a;
}

/* ===== БЕЙДЖ "СЕРТИФИЦИРОВАНО" ===== */
.info-box::before {
    content: "✓ Сертифицировано";

    position: absolute;
    top: -10px;
    right: 12px;

    font-size: 11px;
    font-weight: 600;

    padding: 4px 10px;
    border-radius: 999px;

    background: linear-gradient(135deg, #0073c6, #4da3ff);
    color: #fff;

    box-shadow: 0 6px 14px rgba(0, 115, 198, 0.25);
    letter-spacing: 0.2px;
}

.compare-hero-grid {
    display: grid;
    grid-template-columns: var(--card-width) 1fr;
    gap: 60px;
    align-items: start;
}

.info-box,
.compare-consult {
    width: 100%;
}

/* ЛЕВО */
.compare-info {
    width: var(--card-width);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ДОВЕРИЕ */
.compare-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-bottom: 20px;

    padding: 14px 16px;
    border-radius: 14px;

    background: linear-gradient(135deg, #f5f9ff, #eef4fb);
    border: 1px solid rgba(0, 115, 198, 0.08);
}

/* каждая строка — как mini-card */
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    font-size: 13.5px;
    color: #2b3a4a;
    line-height: 1.4;

    padding: 6px 0;
}

/* иконка-акцент */
.trust-item::before {
    content: "✓";

    flex: 0 0 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;

    color: #0073c6;
    background: rgba(0, 115, 198, 0.12);

    border-radius: 50%;
    margin-top: 1px;
}

.icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(0, 115, 198, 0.12);

    flex: 0 0 38px;
}

.ui-icon {
    width: 22px;
    height: 22px;

    filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(1900%) hue-rotate(190deg);
}

.icon--table {
    width: 18px;
    height: 18px;

    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);

    background-color: currentColor;

    -webkit-mask-image: url("/assets/svg/filter-ascending.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("/assets/svg/filter-ascending.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* АДАПТИВ */
@media (max-width: 900px) {
    .compare-hero-grid {
        grid-template-columns: 1fr;
    }

    .compare-products-grid {
    grid-template-columns: 1fr;
  }

    .compare-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
  .compare-table table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .compare-table td,
  .compare-table th {
    font-size: 13px;
    padding: 6px 10px;
  }
}