/**
 * Meta — Without / With infrastructure compare cards.
 */

.home-v2 .v2-section--meta-compare,
.v2-section--meta-compare {
  padding-block: calc(100vw * 48 / 390);
}

.v2-meta-compare__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(100vw * 12 / 390);
}

.v2-meta-compare__card {
  display: flex;
  flex-direction: column;
  min-height: calc(100vw * 420 / 390);
  padding: calc(100vw * 24 / 390) calc(100vw * 20 / 390) calc(100vw * 20 / 390);
  border-radius: 10px;
}

.v2-meta-compare__card--without {
  background: #ebebeb;
  color: #202020;
}

.v2-meta-compare__card--with {
  background: #64db69;
  color: #ffffff;
}

.v2-meta-compare__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(100vw * 16 / 390);
  margin-bottom: calc(100vw * 28 / 390);
}

.v2-meta-compare__card-title {
  margin: 0;
  max-width: calc(100% - 56px);
  font-size: calc(100vw * 32 / 390);
  font-weight: 500;
  line-height: 1;
  text-transform: capitalize;
}

.v2-meta-compare__card-title-line {
  display: block;
}

@media (max-width: 1023px) {
  .is-lang-uk .v2-meta-compare__card-title {
    max-width: calc(100% - 52px);
    font-size: calc(100vw * 26 / 390);
    line-height: 1.02;
    text-transform: none;
  }
}

.v2-meta-compare__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: calc(100vw * 44 / 390);
  height: calc(100vw * 44 / 390);
  border-radius: 50%;
  font-size: calc(100vw * 16 / 390);
  font-weight: 500;
  line-height: 1;
}

.v2-meta-compare__card--without .v2-meta-compare__badge {
  background: #202020;
  color: #ebebeb;
}

.v2-meta-compare__card--with .v2-meta-compare__badge {
  background: #ffffff;
  color: #64db69;
}

.v2-meta-compare__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: auto;
}

.v2-meta-compare__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(100vw * 10 / 390);
  min-height: calc(100vw * 56 / 390);
  padding-block: calc(100vw * 14 / 390);
  border-top: 1px solid rgba(32, 32, 32, 0.12);
}

.v2-meta-compare__card--with .v2-meta-compare__row {
  border-top-color: rgba(255, 255, 255, 0.35);
}

.v2-meta-compare__row-key {
  font-size: calc(100vw * 14 / 390);
  font-weight: 400;
  line-height: 1;
}

.v2-meta-compare__card--without .v2-meta-compare__row-key {
  color: rgba(32, 32, 32, 0.3);
}

.v2-meta-compare__card--with .v2-meta-compare__row-key {
  color: rgba(255, 255, 255, 0.5);
}

.v2-meta-compare__row-text {
  font-size: calc(100vw * 14 / 390);
  font-weight: 400;
  line-height: 1.2;
  text-transform: lowercase;
}

.v2-meta-compare__row-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.v2-meta-compare__card--without .v2-meta-compare__row-dot {
  background: rgba(32, 32, 32, 0.2);
}

.v2-meta-compare__card--with .v2-meta-compare__row-dot {
  background: rgba(255, 255, 255, 0.5);
}

@media (min-width: 1024px) {
  .home-v2 .v2-section--meta-compare,
  .v2-section--meta-compare {
    padding-block: clamp(48px, calc(100vw * 80 / 1920), 80px);
  }

  .v2-meta-compare__grid {
    grid-template-columns: repeat(2, minmax(0, calc(100vw * 890 / 1920)));
    justify-content: space-between;
    gap: clamp(12px, calc(100vw * 20 / 1920), 20px);
  }

  .v2-meta-compare__card {
    min-height: clamp(560px, calc(100vw * 820 / 1920), 820px);
    padding: clamp(32px, calc(100vw * 40 / 1920), 40px) clamp(32px, calc(100vw * 40 / 1920), 40px) clamp(24px, calc(100vw * 32 / 1920), 32px);
  }

  .v2-meta-compare__card-head {
    margin-bottom: clamp(24px, calc(100vw * 40 / 1920), 40px);
  }

  .v2-meta-compare__card-title {
    max-width: min(calc(100vw * 490 / 1920), 490px);
    font-size: clamp(40px, calc(100vw * 70 / 1920), 70px);
  }

  .is-lang-uk .v2-meta-compare__card-title {
    font-size: clamp(40px, calc(100vw * 62 / 1920), 62px);
  }

  .v2-meta-compare__badge {
    width: clamp(48px, calc(100vw * 60 / 1920), 60px);
    height: clamp(48px, calc(100vw * 60 / 1920), 60px);
    font-size: clamp(18px, calc(100vw * 24 / 1920), 24px);
  }

  .v2-meta-compare__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(12px, calc(100vw * 16 / 1920), 16px);
    min-height: clamp(64px, calc(100vw * 84 / 1920), 84px);
    padding-block: clamp(16px, calc(100vw * 20 / 1920), 20px);
  }

  .v2-meta-compare__row-key,
  .v2-meta-compare__row-text {
    font-size: clamp(16px, 1.042vw, 20px);
  }
}
