/* --- СТИЛИ ДЛЯ СЕКЦИИ 1 (МИ / ВИ) --- */
.comparison-section {
  background: url('/wp-content/themes/codiq/assets/images/cases.png') no-repeat center center;
  background-size: cover;
  padding: 80px 20px;
  font-family: sans-serif;
  color: #ffffff;
  display: flex;
  justify-content: center;
  height: 35vw;
}

.comparison-container {
    display: flex;
    max-width: 1440px;
    width: 100%;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}
.comp-card-list li span {
    text-decoration: underline;
}
.comparison-title-box {
  flex: 1;
}

.comparison-main-title {
    letter-spacing: 1px;
    margin: 0;
    font-size: 44px;
    line-height: 65px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 700;
    font-family: "Montserrat";
}

.comparison-cards {
  display: flex;
  gap: 20px;
  flex: 2;
}

.comp-card {
    padding: 30px 50px;
    flex: 1;
    min-height: 160px;
    box-sizing: border-box;
    background-color: #116af8bf;
    background-image: url(/wp-content/themes/codiq/assets/images/V.svg);
    background-repeat: no-repeat;
}

.comp-card-title {
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 48px;
    letter-spacing: 0px;
    line-height: 40px;
    color: #ffffff;
    font-weight: 700;
    font-family: "Montserrat";
}

.comp-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comp-card-list li {
    font-size: 24px;
    letter-spacing: 0px;
    line-height: 36px;
    color: #ffffff;
    font-weight: 500;
    font-family: "Montserrat";
}


/* --- СТИЛИ ДЛЯ СЕКЦИИ 2 (СЕТКА КЕЙСОВ) --- */
.cases-grid-section {
    padding: 60px 20px;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    background-color: #dce3eb;
    background-image: url(/wp-content/themes/codiq/assets/images/map_back_2.png);
    
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

.cases-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Две колонки */
  gap: 30px;
  max-width: 1440px;
  width: 100%;
}

.grid-case-item {
  height: 400px; /* Фиксированная высота блоков с кейсами */
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Затемняющий синеватый фильтр поверх фоновой картинки */
.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 32, 67, 0.75); /* Полупрозрачный темно-синий тон */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}

.grid-case-logo {
  max-width: 60%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 30px;
}

.grid-case-text {
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 40px;
    max-width: 300px;
    font-size: 24px;
    letter-spacing: 0px;
    color: #ffffff;
    font-weight: 400;
    font-family: "Montserrat";
    text-align: center;
}

.btn-grid-case {
    background-color: #0066ff;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 14px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 400;
    font-family: "Montserrat";
    text-align: center;
}

.btn-grid-case:hover {
  background-color: #0052cc;
}


/* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ --- */
@media (max-width: 992px) {
  .comparison-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .comparison-cards {
    flex-direction: column;
  }

  .comp-card {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .cases-grid-container {
    grid-template-columns: 1fr; /* Перестраиваем кейсы в одну колонку */
  }

  .grid-case-item {
    height: 350px;
  }
}
