/* Tariffs responsive owner. Extracted from site.css Stage 3.4. */
.tariffs-page,
.tariffs-page *,
.tariffs-page *::before,
.tariffs-page *::after {
  box-sizing: border-box;
}

.tariffs-page {
  width: min(1280px, calc(100% - clamp(20px, 5vw, 72px)));
  max-width: 100%;
}

.tariffs-hero h1,
.tariffs-hero p,
.tariffs-section__head,
.tariff-card {
  min-width: 0;
  max-width: 100%;
}

.tariffs-page .civius-tariff-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body .tariffs-page {
  width: min(1280px, calc(100vw - clamp(20px, 5vw, 72px)));
  padding-top: clamp(22px, 3vw, 36px);
  padding-bottom: clamp(44px, 5.6vw, 72px);
}

body .tariffs-hero {
  grid-template-columns: minmax(0, 1fr) minmax(210px, clamp(240px, 29vw, 390px));
  gap: clamp(14px, 1.8vw, 24px);
}

body .tariffs-hero__visual {
  width: clamp(230px, 29vw, 390px);
  max-width: 100%;
}

body .tariffs-hero__visual img {
  max-height: clamp(210px, 21vw, 275px);
}

body .tariffs-hero h1 {
  max-width: 100%;
  font-size: clamp(30px, 3.15vw, 44px);
  white-space: normal;
  overflow-wrap: break-word;
}

body .tariffs-hero p {
  max-width: min(100%, 820px);
}

body .tariffs-page .civius-tariff-tabs {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow: visible;
}

body .tariff-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

body .tariff-card {
  min-height: auto;
}

@media (min-width: 761px) and (max-width: 1320px) {
  body .tariffs-page {
    width: min(1280px, calc(100vw - clamp(28px, 5.45vw, 72px)));
    padding-top: clamp(22px, 3vw, 36px);
  }

  .tariffs-hero {
    gap: clamp(10px, 1.35vw, 15px);
    padding: clamp(22px, 2.5vw, 30px);
  }

  .tariffs-hero h1 {
    font-size: clamp(28px, 3.35vw, 36px);
    line-height: 1.03;
  }

  .tariffs-hero p {
    font-size: clamp(13px, 1.35vw, 17px);
  }

  .tariffs-page .civius-tariff-tabs {
    gap: clamp(7px, 1vw, 9px);
    margin-top: clamp(10px, 1.35vw, 15px);
  }

  .tariffs-page .civius-tariff-tabs .civius-service-catalog__chip {
    min-height: clamp(40px, 4.1vw, 48px);
    padding-inline: clamp(12px, 1.45vw, 16px);
    font-size: clamp(13px, 1.25vw, 16px);
  }

  .tariffs-section {
    margin-top: clamp(36px, 4.55vw, 60px);
  }

  .tariffs-section__head {
    gap: clamp(7px, 0.9vw, 10px);
    margin-bottom: clamp(18px, 2.35vw, 30px);
  }

  .tariffs-section h2 {
    font-size: clamp(30px, 3.65vw, 40px);
  }

  .tariffs-section__head p {
    font-size: clamp(12.5px, 1.25vw, 15px);
  }

  .tariff-grid {
    gap: clamp(18px, 2.35vw, 30px);
  }

  .tariff-card {
    min-height: clamp(430px, 42vw, 520px);
    padding: clamp(20px, 2.35vw, 30px);
    gap: clamp(10px, 1.35vw, 15px);
  }

  .tariff-card h3 {
    font-size: clamp(18px, 1.9vw, 22px);
  }

  .tariff-card p,
  .tariff-card li {
    font-size: clamp(12px, 1.15vw, 14px);
  }

  .tariff-price strong {
    font-size: clamp(22px, 2.2vw, 25px);
  }

  .tariff-card .c-button {
    min-height: clamp(40px, 4.05vw, 48px);
    font-size: clamp(12px, 1.2vw, 15px);
  }
}

@media (max-width: 760px) {
  body .tariffs-page {
    width: min(calc(100% - 16px), 430px);
    max-width: calc(100vw - 16px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  body .tariffs-hero {
    grid-template-columns: 1fr;
  }

  body .tariffs-hero__visual {
    width: 100%;
  }

  .tariffs-hero h1 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .tariffs-hero p {
    width: 100%;
    max-width: 100%;
  }

  body .tariffs-page .civius-tariff-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
  }

  .tariffs-page .civius-tariff-tabs .civius-service-catalog__chip {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .tariff-grid .tariff-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - clamp(18px, 2.35vw, 30px)) / 2);
  }

  .tariff-card {
    min-height: clamp(390px, 52vw, 500px);
  }
}
