/**
 * Главная: «Полигон» + «Тарифы» — Figma 2_index_1440
 */

body.page-home #polygon > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.page-home .cta-banner--polygon {
  width: 100%;
  max-width: 935px;
  margin-inline: auto;
  align-items: center;
  text-align: center;
  /* Единый шаг между заголовком, текстом, кнопкой и «Тарифы…» */
  --polygon-stack-gap: clamp(16px, 2.5vw, 28px);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: var(--polygon-stack-gap) !important;
}

body.page-home .cta-banner--polygon .cta-banner__copy {
  display: contents;
}

body.page-home .cta-banner--polygon h2,
body.page-home .cta-banner--polygon p,
body.page-home .cta-banner--polygon .cta-banner__subtitle,
body.page-home .cta-banner--polygon .cta-banner__law,
body.page-home .cta-banner--polygon .cta-banner__tariffs-lead {
  text-align: center;
  margin: 0 !important;
  margin-inline: auto !important;
}

body.page-home .cta-banner--polygon .cta-banner__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
}

body.page-home .cta-banner--polygon .cta-banner__subtitle {
  max-width: min(523px, 100%);
  font-family: var(--font);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: #020203;
  text-align: center;
}

body.page-home .cta-banner--polygon .cta-banner__law {
  max-width: min(523px, 100%);
  font-size: 14px;
  line-height: 1.5;
  color: #020203;
  text-align: center;
}

body.page-home .cta-banner--polygon .cta-banner__tariffs-lead {
  max-width: 935px;
  width: 100%;
  font-family: var(--font);
  font-size: clamp(20px, 2.15vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  color: #020203;
  text-align: center;
}

@media (min-width: 1900px) {
  body.page-home .cta-banner--polygon {
    max-width: 1559px;
    --polygon-stack-gap: 45px;
  }

  body.page-home .cta-banner--polygon .cta-banner__subtitle {
    max-width: 523px;
    font-size: 28px;
  }

  body.page-home .cta-banner--polygon .cta-banner__law {
    font-size: 16px;
    line-height: 1.3;
  }

  body.page-home .cta-banner--polygon .cta-banner__tariffs-lead {
    max-width: 1559px;
    font-size: 36px;
    line-height: 1.27;
    letter-spacing: -0.02em;
  }
}

body.page-home #prices .cta-banner--home-prices-intro {
  padding: 0;
}

body.page-home #prices .cta-banner--home-prices-intro h2 {
  max-width: 935px;
  margin-inline: auto;
}

body.page-home #prices .price-card__vat {
  font-family: var(--font-body-figma);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #020203;
  margin: 0;
}

/* Карточки: компактная высота, растут с контентом; цена «₽ /год» — одна строка */
body.page-home #prices .price-card {
  height: auto;
  min-height: 0;
  gap: 14px;
}

body.page-home #prices .price-card__amount {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: baseline;
  align-self: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
}

body.page-home #prices .price-card__value,
body.page-home #prices .price-card__currency,
body.page-home #prices .price-card__amount small {
  white-space: nowrap;
  flex-shrink: 0;
}

body.page-home #prices .price-card__amount small {
  display: inline;
  margin-left: 0;
}

body.page-home #prices .price-card .btn,
body.page-home #prices .price-card__cta {
  margin-top: 12px;
}

body.page-home #prices .pricing-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 40px);
}

body.page-home #prices .pricing-footer__link {
  min-width: 206px;
  min-height: 47px;
  padding: 15px 40px;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #08c;
  border-color: #08c;
}

@media (min-width: 601px) and (max-width: 880px) {
  body.page-home #prices .pricing,
  body.page-home .section--home-prices .pricing {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 4px;
    grid-template-columns: none;
    scroll-snap-align: unset;
  }

  body.page-home #prices .pricing::-webkit-scrollbar,
  body.page-home .section--home-prices .pricing::-webkit-scrollbar {
    display: none;
  }

  body.page-home #prices .price-card {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    scroll-snap-align: start;
    padding: 18px 14px 20px;
    gap: 14px;
    min-height: 0;
    height: auto;
  }

  body.page-home #prices .price-card__name {
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: #020203;
  }

  body.page-home #prices .price-card__name::after {
    margin-top: 20px;
    height: 4px;
    background: #ed1a34;
  }

  body.page-home #prices .price-card__amount,
  body.page-home #prices .price-card__value {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    color: #020203;
  }

  body.page-home #prices .price-card__amount small,
  body.page-home #prices .price-card__currency {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #020203;
  }

  body.page-home #prices .price-card__advantage {
    font-family: var(--font-body-figma);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #020203;
    padding: 0;
    background: transparent;
  }

  body.page-home #prices .price-card__list {
    font-family: var(--font-body-figma);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #020203;
    gap: 5px;
  }

  body.page-home #prices .price-card .btn,
  body.page-home #prices .price-card__cta {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    min-height: 47px;
    max-width: none;
    width: 100%;
    margin-top: 12px;
  }
}

@media (min-width: 881px) and (max-width: 1023px) {
  body.page-home #prices .pricing,
  body.page-home .section--home-prices .pricing {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: center;
    gap: 10px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  body.page-home #prices .price-card {
    width: 300px;
    min-height: 0;
    height: auto;
    padding: 18px 14px 20px;
    gap: 14px;
  }

  body.page-home #prices .price-card__name {
    font-size: 24px;
  }

  body.page-home #prices .price-card__name::after {
    margin-top: 20px;
  }

  body.page-home #prices .price-card__advantage,
  body.page-home #prices .price-card__list {
    font-family: var(--font-body-figma);
    font-size: 16px;
    line-height: 1.3;
    color: #020203;
  }

  body.page-home #prices .price-card__list {
    gap: 5px;
  }
}

@media (max-width: 1279px) {
  body.page-home #prices .price-card__amount,
  body.page-home #prices .price-card__value {
    font-size: 28px;
  }
}

@media (min-width: 1280px) {
  body.page-home #prices .price-card {
    min-height: 0;
    height: auto;
    gap: 18px;
    padding: 24px 24px 28px;
  }

  body.page-home #prices .price-card__name::after {
    margin-top: 24px;
  }

  body.page-home #prices .price-card__amount,
  body.page-home #prices .price-card__value {
    font-size: 48px;
  }

  body.page-home #prices .price-card .btn,
  body.page-home #prices .price-card__cta {
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  body.page-home #prices .price-card__amount,
  body.page-home #prices .price-card__value {
    font-size: 26px;
  }
}

/* Перебивает поздние блоки styles.css: компактные карточки, цена в одну строку */
body.page-home #prices .price-card {
  height: auto !important;
  min-height: 0 !important;
}

body.page-home #prices .price-card__amount {
  display: inline-flex !important;
  flex-flow: row nowrap !important;
  align-items: baseline !important;
  white-space: nowrap !important;
}

body.page-home #prices .price-card__value,
body.page-home #prices .price-card__currency,
body.page-home #prices .price-card__amount small {
  white-space: nowrap !important;
}

/* Полигон: один column-gap между всеми строками и кнопкой (перебивает margin из styles.css) */
body.page-home .cta-banner--polygon {
  --polygon-stack-gap: clamp(16px, 2.5vw, 28px);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: var(--polygon-stack-gap) !important;
}

body.page-home .cta-banner--polygon .cta-banner__copy {
  display: contents !important;
}

body.page-home .cta-banner--polygon h2,
body.page-home .cta-banner--polygon .cta-banner__subtitle,
body.page-home .cta-banner--polygon .cta-banner__law,
body.page-home .cta-banner--polygon .cta-banner__tariffs-lead,
body.page-home .cta-banner--polygon .cta-banner__actions {
  margin: 0 !important;
}

@media (min-width: 1900px) {
  body.page-home .cta-banner--polygon {
    --polygon-stack-gap: 45px;
  }
}
