/* Страница «Продукты и цены» — макет Figma node 1266:181, карточки 1268:370, notice 1271:751, форма 1266:351 */

.page-hero--products {
  padding: 0 0 32px;
  background: var(--color-white);
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.products-hero__banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 1440 / 360;
  max-height: 360px;
  min-height: 220px;
  background-color: #fff;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.products-hero__banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: stretch;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  min-height: 100%;
}

.products-hero__content {
  position: relative;
  z-index: 1;
  max-width: min(42%, 480px);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-hero__title {
  font-family: Manrope, var(--font);
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 55px;
  color: var(--color-primary);
}

.products-hero__btn {
  margin-top: 20px;
  align-self: flex-start;
}

.products-notice {
  padding-bottom: 32px;
}

.products-notice__box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  background: #F0F2F6;
}

.products-notice__icon {
  flex-shrink: 0;
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.products-notice__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
}

.products-notice__text p + p {
  margin-top: 12px;
}

.products-section {
  padding-top: 8px;
  padding-bottom: 48px;
}

.products-section__title {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 366px);
  gap: 24px;
  justify-content: space-around;
}

.product-price-card {
  display: flex;
  flex-direction: column;
  width: 366px;
  height: 613px;
  box-sizing: border-box;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f2f6;
  border: 1px solid #e8edf3;
  box-shadow: none;
}

.product-price-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 82px;
  padding: 8px 14px;
  color: #fff;
  text-align: center;
}

.center-form {
  justify-items: center;
}

.product-price-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.product-price-card__head-subtitle {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.92;
}

.product-price-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 14px 16px 16px;
  text-align: center;
}

.product-price-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: calc(100% - 8px);
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #177f7d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.product-price-card__badge--license {
  width: 213px;
  max-width: 213px;
}

.product-price-card__price {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 4px;
  margin: 0 0 12px;
}

.product-price-card__price-prefix,
.product-price-card__price-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #1f2937;
}

.product-price-card__price-icon {
  flex-shrink: 0;
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.product-price-card__list {
  width: 100%;
  flex: 1;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  text-align: left;
  overflow: hidden;
}

.product-price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text);
}

.product-price-card__list li + li {
  margin-top: 15px;
}

.product-price-card__check-icon {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 0;
  object-fit: contain;
}

.product-price-card__btn {
  flex-shrink: 0;
  align-self: center;
  width: 100%;
  max-width: 280px;
  margin-top: auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #2d9cdb;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  height: 50px;
    margin-bottom: 15px;
}

.product-price-card__btn:hover {
  background: #3aadf0;
  color: #fff;
  text-decoration: none;
}

.products-footnotes {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: #f0f2f6;
  border: 1px solid #e8edf3;
}

.products-footnotes p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
}

.products-footnotes p + p {
  margin-top: 8px;
}

.products-form-section {
  padding-top: 0;
  padding-bottom: 64px;
}

.products-form-section .form-notice {
  margin-bottom: 24px;
}

.products-form-box {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.05fr);
  gap: 28px 36px;
  align-items: start;
  width: 100%;
  max-width: 770px;
  min-height: 399px;
  padding: 36px 40px;
  box-sizing: border-box;
  background: #326ea3;
  color: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 61, 92, 0.12);
}

.products-form-box__lead {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 260px;
}

.products-form,
.products-form__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.products-form__field input,
.products-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
}

.products-form__field input {
  height: 40px;
}

.products-form__field textarea {
  height: 79px;
  min-height: 79px;
  resize: vertical;
}

.products-form__field input::placeholder,
.products-form__field textarea::placeholder {
  color: #94a3b8;
}

.products-form__field input:focus,
.products-form__field textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.products-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.products-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.products-form__consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.products-form__consent a {
  color: #9ec9ef;
  text-decoration: underline;
}

.products-form__submit {
  flex-shrink: 0;
  min-width: 200px;
  width: auto;
  padding: 14px 28px;
  border: 0;
  border-radius: 6px;
  background: #2d9cdb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.products-form__submit:hover {
  background: #3aadf0;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 366px);
  }
}

@media (max-width: 820px) {
  .products-grid {
    grid-template-columns: minmax(0, 366px);
    justify-content: center;
  }

  .product-price-card {
    width: 100%;
    max-width: 366px;
    margin-inline: auto;
  }
}

@media (max-width: 1024px) {
  .products-form-box {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .products-form-box__lead {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: minmax(0, 366px);
    justify-content: center;
  }

  .product-price-card {
    width: 100%;
    max-width: 366px;
    height: auto;
    min-height: 613px;
    margin-inline: auto;
  }

  .products-section__title {
    font-size: 24px;
  }

  .products-notice__box {
    gap: 16px;
    padding: 20px 24px;
  }

  .products-notice__icon {
    width: 40px;
    height: 40px;
  }

  .products-notice__text p {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .products-form-box {
    max-width: none;
    padding: 28px 24px;
  }

  .products-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .products-form__submit {
    width: 100%;
    min-width: 0;
  }
}
