/* =========================================================
   Страница "Программы" — разводящая (/programs/) и деталка.
   Подключается ТОЛЬКО на этих двух шаблонах через is_page_template()
   в functions.php — на остальной сайт не влияет.
   Используются существующие переменные сайта: font Geologica,
   .container_center, .section, .btn45 — свои стили только
   для новых блоков (программные namespace-классы programs-*, program-*).
   ========================================================= */

/* ---------- Единый отступ между блоками страницы ----------
   Везде по странице (разводящая и деталка) вертикальный отступ
   между соседними блоками — 160px на десктопе (100px на планшете,
   60px на мобильном — как в базовом .section сайта).
   Управляем ТОЛЬКО padding-top следующего блока, у hero и у каждого
   блока снизу отступа нет — так отступы не складываются в двойные.
   Для новых блоков внутри деталки (program-blocks) достаточно
   класса .program-block-spacing. ---------- */

.programs-cards,
.program-block-spacing {
  padding-bottom: 0;
}

.programs-cards,
.program-block-spacing + .program-block-spacing,
.programs-hero + .programs-cards,
.programs-hero + .program-block-spacing,
.program-hero + .program-block-spacing,
.program-hero + .programs-form,
.programs-cards + .section,
.program-block-spacing + .section,
.program-block-spacing + .programs-form {
  padding-top: 60px;
}

@media (min-width: 768px) {
  .programs-cards,
  .program-block-spacing + .program-block-spacing,
  .programs-hero + .programs-cards,
  .programs-hero + .program-block-spacing,
  .program-hero + .program-block-spacing,
  .program-hero + .programs-form,
  .programs-cards + .section,
  .program-block-spacing + .section,
  .program-block-spacing + .programs-form {
    padding-top: 100px;
  }
}

@media (min-width: 1200px) {
  .programs-cards,
  .program-block-spacing + .program-block-spacing,
  .programs-hero + .programs-cards,
  .programs-hero + .program-block-spacing,
  .program-hero + .program-block-spacing,
  .program-hero + .programs-form,
  .programs-cards + .section,
  .program-block-spacing + .section,
  .program-block-spacing + .programs-form {
    padding-top: 160px;
  }
}

/* ---------- Hero (разводящая и деталка) ---------- */

/* отступ от хлебных крошек до hero: 28px на мобильном, 40px от 768px.
   Нижний отступ крошек (.section) обнуляем — programs.css грузится только на страницах программ */
.breadcrumbs {
  padding-bottom: 0;
}

.programs-hero {
  padding-top: 28px;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .programs-hero {
    padding-top: 40px;
  }
}

.programs-hero__row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.programs-hero__panel {
  position: relative;
  flex: 1.35 1 0;
  background: #14392c;
  border-radius: 24px;
  padding: 32px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow: visible;
}

.programs-hero__media {
  flex: 1 1 0;
  align-self: stretch;
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
}

.programs-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programs-hero__badge {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 180px;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 768px) {
  .programs-hero__badge {
    display: block;
  }
}

@media (min-width: 1200px) {
  .programs-hero__badge {
    width: 290px;
    height: 290px;
    right: 0;
    bottom: 0;
  }
}

.programs-hero__eyebrow {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.85;
}

.programs-hero__title {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 120%;
  margin: 0;
}

.programs-hero__text {
  font-size: 15px;
  line-height: 150%;
  opacity: 0.9;
  max-width: 34em;
}

.programs-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.programs-hero__btn,
.programs-hero__btn-outline {
  border-radius: 14px;
  padding: 15px 28px;
  font-family: Geologica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.programs-hero__btn {
  background: #2ba77b;
  box-shadow: 0 3px 0 0 #1f8a63, inset 0 0 13px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.programs-hero__btn:hover {
  background: #26966e;
  color: #fff;
}

.programs-hero__btn-outline {
  background: #fff;
  box-shadow: 0 3px 0 0 #26966e;
  color: #26966e;
}

.programs-hero__btn-outline:hover {
  background: #e3efe9;
  color: #26966e;
}

@media (min-width: 768px) {
  .programs-hero__panel {
    padding: 44px 48px;
  }

  .programs-hero__title {
    font-size: 42px;
  }

  .programs-hero__text {
    font-size: 17px;
  }
}

@media (min-width: 1200px) {
  .programs-hero__panel {
    padding: 60px;
  }

  .programs-hero__eyebrow {
    font-size: 20px;
    /* .programs-hero__panel уже даёт gap:16px, добираем до 36px итоговых */
    margin-bottom: 20px;
  }

  .programs-hero__btns {
    width: 630px;
    gap: 12px;
  }

  .programs-hero__btn {
    min-width: 230px;
    flex: none;
  }

  .programs-hero__btn-outline {
    flex: 1 1 auto;
  }

  .programs-hero__title {
    font-size: 54px;
  }

  .programs-hero__text {
    font-size: 20px;
    /* .programs-hero__panel уже даёт gap:16px между блоками, добираем до 95px итоговых */
    margin-bottom: 79px;
  }
}

@media (max-width: 768px) {
  .programs-hero__row {
    flex-direction: column;
    gap: 12px;
  }

  .programs-hero__media {
    min-height: 200px;
    order: -1;
  }

  .programs-hero__btn,
  .programs-hero__btn-outline {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- Hero деталки программы (светлый баннер) ---------- */

.program-hero {
  padding-top: 28px;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .program-hero {
    padding-top: 40px;
  }
}

.program-hero__banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 20px;
  border-radius: 24px;
  background: #f7f7f7;
}

/* на мобильном/планшете картинка встаёт между текстом и плашками, как в мобильном макете */
.program-hero__content {
  display: contents;
}

.program-hero__title { order: 1; }
.program-hero__text { order: 2; }
.program-hero__visual { order: 3; }
.program-hero__chips { order: 4; }
.program-hero__btns { order: 5; }

.program-hero__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 110%;
  color: #2a2a2a;
}

.program-hero__title span {
  color: #26966e;
}

.program-hero__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #7c7c7c;
}

.program-hero__text p {
  margin: 0 0 12px;
}

.program-hero__text p:last-child {
  margin-bottom: 0;
}

/* плашки одинаковой ширины (по самой длинной) столбиком; на десктопе — сетка, см. ниже */
.program-hero__chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-hero__chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  color: #7f7f7f;
}

.program-hero__chip::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='8.25' stroke='%2326966E' stroke-width='1.5'/%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-4.8' stroke='%2326966E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.program-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.program-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #2ba77b;
  box-shadow: 0 3px 0 0 #1f8a63, inset 0 0 13px 0 rgba(255, 255, 255, 0.25);
  font-family: Geologica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.program-hero__btn:hover {
  background: #26966e;
  color: #fff;
}

/* как на разводящей: белая, зелёный текст, зелёная полоска снизу */
.program-hero__btn_outline {
  background: #fff;
  box-shadow: 0 3px 0 0 #26966e;
  color: #26966e;
}

.program-hero__btn_outline:hover {
  background: #e3efe9;
  color: #26966e;
}

/* картинка: иллюстрация на мятном круге (UDS) */
.program-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 240px;
}

.program-hero__image {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.program-hero__qr {
  display: none;
}

.program-hero__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 110px;
  height: auto;
  z-index: 1;
}

/* картинка: фото на всю правую часть (скидка 10%) */
.program-hero_photo .program-hero__visual {
  margin: 0 -20px;
  min-height: 260px;
  overflow: hidden;
}

.program-hero_photo .program-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  /* картинка — весь баннер со светлой частью слева; кадрируем по людям */
  object-position: 72% center;
}

@media (max-width: 767px) {
  .program-hero__btn {
    width: 100%;
  }

  /* у PNG слева ~21% прозрачного поля — сдвигаем, чтобы иллюстрация встала по центру */
  .program-hero_illustration .program-hero__image {
    width: 121%;
    max-width: none;
    max-height: none;
    margin-left: -21%;
  }
}

@media (min-width: 768px) {
  .program-hero__btn {
    padding: 12px 70px;
  }
}

@media (min-width: 768px) {
  .program-hero__banner {
    padding: 40px;
  }

  .program-hero__title {
    font-size: 36px;
  }

  .program-hero__text {
    font-size: 18px;
    line-height: 26px;
  }

  .program-hero__chip {
    font-size: 16px;
  }

  .program-hero__visual {
    min-height: 320px;
  }

  .program-hero__image {
    max-height: 380px;
  }

  .program-hero__qr {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 170px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
  }

  .program-hero_photo .program-hero__visual {
    margin: 0 -40px;
    min-height: 360px;
  }
}

@media (min-width: 1200px) {
  .program-hero__banner {
    display: block;
    min-height: 560px;
    padding: 60px;
  }

  .program-hero__content {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 560px;
  }

  .program-hero__title {
    font-size: 40px;
  }

  .program-hero__text {
    margin-top: 24px;
    max-width: 480px;
  }

  .program-hero__chips {
    margin-top: 30px;
  }

  .program-hero__btns {
    margin-top: 36px;
  }

  .program-hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 560px;
    min-height: 0;
    display: block;
  }

  /* PNG уже с кругом: прижата к правому краю баннера, верх круга обрезается баннером (как в макете) */
  .program-hero_illustration .program-hero__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 770px;
    height: auto;
    max-width: none;
    max-height: none;
  }

  .program-hero__qr {
    right: 60px;
    top: 60px;
    width: 160px;
  }

  .program-hero_photo .program-hero__visual {
    margin: 0;
  }

  .program-hero__badge {
    right: 40px;
    bottom: 40px;
    width: 160px;
  }
}

@media (min-width: 1600px) {
  .program-hero__banner {
    min-height: 616px;
  }

  .program-hero__content {
    max-width: 820px;
  }

  .program-hero__title {
    font-size: 48px;
    line-height: 53px;
  }

  .program-hero__text {
    margin-top: 30px;
    max-width: 790px;
    font-size: 20px;
    line-height: 28px;
  }

  /* как в макете: 2-я и 3-я плашки в одну строку, первая и последняя — на ширину этой строки */
  .program-hero__chips {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 14px 13px;
    margin-top: 36px;
    max-width: 820px;
  }

  .program-hero__chip:first-child,
  .program-hero__chip:last-child {
    grid-column: 1 / -1;
  }

  .program-hero__chip {
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    font-size: 20px;
  }

  .program-hero__chip::before {
    width: 18px;
    height: 18px;
  }

  .program-hero__btns {
    margin-top: 41px;
  }

  .program-hero__visual {
    width: 812px;
  }

  .program-hero_illustration .program-hero__image {
    width: 1027px;
  }

  .program-hero__qr {
    width: 196px;
    padding: 16px;
  }

  .program-hero__badge {
    width: 220px;
  }
}

.program-hero__qr-text {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 16px;
  color: #7c7c7c;
}

.program-hero__qr-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- Карточки программ (разводящая) ---------- */

.programs-cards__head {
  margin-bottom: 24px;
}

.programs-cards__eyebrow {
  font-size: 12px;
  line-height: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777777;
}

.programs-cards__title {
  color: #11131d;
  font-size: 24px;
  font-weight: 700;
  line-height: 110%;
  margin: 12px 0 0;
}

@media (min-width: 768px) {
  .programs-cards__head {
    margin-bottom: 32px;
  }

  .programs-cards__title {
    font-size: 36px;
  }
}

@media (min-width: 1200px) {
  .programs-cards__head {
    margin-bottom: 38px;
  }

  .programs-cards__title {
    font-size: 48px;
  }
}

/* 6-колоночная сетка: в полном ряду 3 карточки по 2 колонки,
   в неполном последнем ряду 2 карточки растягиваются по 3 колонки, 1 — на всю ширину */
.programs-cards__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.programs-cards__item {
  grid-column: span 2;
}

.programs-cards__item:nth-child(3n + 1):nth-last-child(2),
.programs-cards__item:nth-child(3n + 1):nth-last-child(2) ~ .programs-cards__item {
  grid-column: span 3;
}

.programs-cards__item:nth-child(3n + 1):last-child {
  grid-column: span 6;
}

@media (max-width: 991px) {
  .programs-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .programs-cards__item,
  .programs-cards__item:nth-child(3n + 1):nth-last-child(2),
  .programs-cards__item:nth-child(3n + 1):nth-last-child(2) ~ .programs-cards__item,
  .programs-cards__item:nth-child(3n + 1):last-child {
    grid-column: auto;
  }
}

@media (max-width: 576px) {
  .programs-cards__grid {
    grid-template-columns: 1fr;
  }
}

.programs-cards__item {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
}

a.programs-cards__item:hover {
  box-shadow: 0 12px 28px rgba(20, 57, 44, 0.1);
}

.programs-cards__icon {
  width: 100%;
  height: 180px;
  background: #f0f0f0;
  flex: none;
}

@media (min-width: 1200px) {
  .programs-cards__icon {
    height: 220px;
  }
}

.programs-cards__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.programs-cards__content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
}

@media (min-width: 1200px) {
  .programs-cards__content {
    padding: 25px 28px 24px;
  }
}

.programs-cards__item_accent .programs-cards__content {
  background: #26966e;
}

.programs-cards__item-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
  color: #11131d;
}

.programs-cards__item-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 150%;
  color: #777777;
}

@media (min-width: 768px) {
  .programs-cards__item-title {
    font-size: 22px;
  }

  .programs-cards__item-desc {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .programs-cards__item-title {
    font-size: 28px;
    line-height: 34px;
  }

  .programs-cards__item-desc {
    line-height: 24px;
  }
}

.programs-cards__item_accent .programs-cards__item-title {
  color: #fff;
}

.programs-cards__item_accent .programs-cards__item-desc {
  color: #f6f6f6;
}

.programs-cards__more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  font-size: 14px;
  line-height: 24px;
  color: #11131d;
}

.programs-cards__more span {
  font-size: 21px;
  font-weight: 600;
  color: #2a2a2a;
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .programs-cards__more {
    font-size: 16px;
  }
}

.programs-cards__item_accent .programs-cards__more,
.programs-cards__item_accent .programs-cards__more span {
  color: #fff;
}

a.programs-cards__item:hover .programs-cards__more span {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .programs-cards__item_accent .programs-cards__content {
    background: none;
  }

  .programs-cards__item_accent .programs-cards__item-title,
  .programs-cards__item_accent .programs-cards__more {
    color: #11131d;
  }

  .programs-cards__item_accent .programs-cards__item-desc {
    color: #777777;
  }

  .programs-cards__item_accent .programs-cards__more span {
    color: #2a2a2a;
  }
}

/* ---------- Блок записи на приём (разводящая и деталка) ---------- */

.programs-form__wrap {
  --pf-pad: 24px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 32px 20px;
  border-radius: 24px;
  background-color: #f2f2f2;
  background-size: cover;
  background-position: center;
  color: #2a2a2a;
}

.programs-form__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 110%;
  color: #2a2a2a;
}

.programs-form__title span {
  color: #26966e;
}

.programs-form__text {
  margin-top: 20px;
}

.programs-form__text-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.programs-form__text p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 22px;
}

.programs-form__doctor {
  display: none;
}

.programs-form__form-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.programs-form__label {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 19px;
}

.programs-form__row {
  display: flex;
  gap: 8px;
}

/* .form input[type=text] из style.css сильнее одиночного класса — поднимаем специфичность */
.programs-form .form .programs-form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 45px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #fff;
  font-family: Geologica, sans-serif;
  font-size: 15px;
  color: #2a2a2a;
  outline: none;
}

.programs-form .form .programs-form__input::placeholder {
  color: #adadad;
}

.programs-form__btn {
  flex: none;
  height: 45px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: #26966e;
  font-family: Geologica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.programs-form__btn:hover {
  background: #1f7d5c;
}

.programs-form__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.programs-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.programs-form__check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #26966e;
}

.programs-form__check a {
  color: #26966e;
  text-decoration: none;
}

.programs-form__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
  font-size: 12px;
  line-height: 16px;
}

.programs-form__or::before,
.programs-form__or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.programs-form__call-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.programs-form__call-time {
  font-size: 14px;
  font-weight: 400;
  color: #adadad;
}

.programs-form__phone {
  margin-top: 12px;
}

.programs-form__phone a {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  color: #26966e;
  text-decoration: none;
}

@media (max-width: 767px) {
  .programs-form__row {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .programs-form__wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 40px;
  }

  .programs-form__title {
    font-size: 32px;
  }
}

@media (min-width: 1200px) {
  .programs-form__wrap {
    --pf-pad: 48px;
    grid-template-columns: minmax(0, 1fr) 320px 400px;
    padding: var(--pf-pad);
  }

  .programs-form__title {
    font-size: 38px;
  }

  .programs-form__btn {
    padding: 0 14px;
    font-size: 14px;
  }

  .programs-form .form .programs-form__input {
    padding: 0 12px;
    font-size: 14px;
  }

  .programs-form__doctor {
    display: block;
    position: relative;
    align-self: end;
    margin-top: calc(-1 * var(--pf-pad) - 50px);
    margin-bottom: calc(-1 * var(--pf-pad));
  }

  .programs-form__doctor-img {
    display: block;
    width: 100%;
    height: auto;
  }

  .programs-form__doctor-card {
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 92%;
    transform: translateX(-50%);
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
  }

  .programs-form__doctor-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
  }

  .programs-form__doctor-info {
    margin-top: 6px;
    font-size: 13px;
    line-height: 16px;
  }
}

@media (min-width: 1600px) {
  .programs-form__wrap {
    --pf-pad: 60px;
    grid-template-columns: minmax(0, 1fr) 430px 456px;
    column-gap: 36px;
  }

  .programs-form__title {
    position: relative;
    z-index: 1;
    width: 735px;
    font-size: 48px;
    line-height: 53px;
  }

  .programs-form__text {
    margin-top: 36px;
    max-width: 533px;
  }

  .programs-form__text-title,
  .programs-form__form-title {
    font-size: 20px;
  }

  .programs-form__text p,
  .programs-form__label {
    font-size: 16px;
  }

  .programs-form__doctor-card {
    width: 395px;
    bottom: 22px;
    padding: 24px;
  }

  .programs-form__doctor-name {
    font-size: 20px;
    line-height: 24px;
  }

  .programs-form__doctor-info {
    margin-top: 8px;
    font-size: 16px;
    line-height: 19px;
  }

  .programs-form__btn {
    padding: 0 20px;
    font-size: 15px;
  }

  .programs-form .form .programs-form__input {
    padding: 0 16px;
    font-size: 15px;
  }

  .programs-form__call-head {
    font-size: 20px;
    line-height: 20px;
  }

  .programs-form__phone {
    margin-top: 16px;
  }

  .programs-form__phone a {
    display: block;
    font-size: 28px;
    line-height: 28px;
  }
}

/* ---------- Блок "N простых шагов" (деталка) ---------- */

.program-steps__head {
  margin-bottom: 24px;
}

.program-steps__eyebrow {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #65706a;
}

.program-steps__title {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 115%;
  color: #202329;
}

.program-steps__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.program-steps__item {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border: 1px solid #efefef;
  border-radius: 24px;
  background: #f7f7f7;
}

.program-steps__top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
}

.program-steps__num {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2ede9;
  font-size: 15px;
  font-weight: 500;
  color: #26966e;
}

.program-steps__icon {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.program-steps__item-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
  color: #2a2a2a;
}

.program-steps__item-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 150%;
  color: #65706a;
}

@media (min-width: 768px) {
  .program-steps__head {
    margin-bottom: 32px;
  }

  .program-steps__eyebrow {
    font-size: 16px;
    line-height: 20px;
  }

  .program-steps__title {
    margin-top: 16px;
    font-size: 32px;
  }

  .program-steps__grid {
    gap: 20px;
  }

  .program-steps__item {
    padding: 24px;
  }

  .program-steps__top {
    height: 260px;
  }

  .program-steps__item-title {
    font-size: 22px;
  }

  .program-steps__item-text {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .program-steps__item {
    flex-basis: 0;
  }
}

@media (min-width: 1600px) {
  .program-steps__head {
    margin-bottom: 38px;
  }

  .program-steps__eyebrow {
    font-size: 20px;
    line-height: 25px;
  }

  .program-steps__title {
    margin-top: 24px;
    font-size: 40px;
    line-height: 46px;
  }

  .program-steps__grid {
    gap: 24px;
  }

  .program-steps__item {
    gap: 24px;
    padding: 28px;
  }

  .program-steps__top {
    height: 300px;
  }

  .program-steps__num {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .program-steps__item-title {
    font-size: 28px;
    line-height: 34px;
  }

  .program-steps__item-text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 24px;
  }
}

/* ---------- Блок "Кому доступно" (деталка) ---------- */

.program-audience__head {
  margin-bottom: 24px;
}

.program-audience__eyebrow {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #65706a;
}

.program-audience__title {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 115%;
  color: #202329;
}

.program-audience__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.program-audience__item {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 16px 20px;
  border-radius: 20px;
  background: #2ba77b;
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
  color: #fff;
}

.program-audience__icon {
  flex: none;
  width: 56px;
  height: 56px;
}

.program-audience__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .program-audience__head {
    margin-bottom: 32px;
  }

  .program-audience__eyebrow {
    font-size: 16px;
    line-height: 20px;
  }

  .program-audience__title {
    margin-top: 16px;
    font-size: 32px;
  }

  .program-audience__grid {
    gap: 20px;
  }

  .program-audience__item {
    gap: 24px;
    min-height: 110px;
    padding: 20px 24px;
    font-size: 22px;
  }

  .program-audience__icon {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 1200px) {
  .program-audience__item {
    flex-basis: 0;
  }
}

@media (min-width: 1600px) {
  .program-audience__head {
    margin-bottom: 38px;
  }

  .program-audience__eyebrow {
    font-size: 20px;
    line-height: 25px;
  }

  .program-audience__title {
    margin-top: 24px;
    font-size: 40px;
    line-height: 46px;
  }

  .program-audience__grid {
    gap: 24px;
  }

  .program-audience__item {
    gap: 30px;
    min-height: 132px;
    padding: 0 28px;
    font-size: 28px;
    line-height: 34px;
  }

  .program-audience__icon {
    width: 80px;
    height: 80px;
  }
}

/* ---------- Баннер «текст + картинка» (деталка) ---------- */

.program-textimg__banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #f0f7f4;
}

.program-textimg_bg-gray .program-textimg__banner {
  background: #f7f7f7;
}

.program-textimg__content {
  position: relative;
  z-index: 1;
  padding: 28px 20px;
}

.program-textimg__eyebrow {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #65706a;
}

.program-textimg__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 115%;
  color: #2a2a2a;
}

.program-textimg__title span {
  color: #26966e;
}

.program-textimg__text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 22px;
  color: #4c5355;
}

.program-textimg__text p {
  margin: 0;
}

/* иллюстрация: на мобильном под текстом, прижата к низу */
.program-textimg_illustration .program-textimg__media {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  padding: 0 20px;
}

.program-textimg_illustration .program-textimg__image {
  display: block;
  height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right bottom;
}

@media (min-width: 768px) {
  .program-textimg__content {
    padding: 36px 40px;
  }

  .program-textimg__eyebrow {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 20px;
  }

  .program-textimg__title {
    font-size: 32px;
  }

  .program-textimg__text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 24px;
  }

  /* иллюстрация справа, прижата к низу баннера */
  .program-textimg_illustration .program-textimg__banner {
    min-height: 230px;
  }

  .program-textimg_illustration .program-textimg__content {
    max-width: calc(100% - 360px);
  }

  .program-textimg_illustration .program-textimg__media {
    position: absolute;
    right: 40px;
    bottom: 0;
    height: calc(100% - 4px);
    margin: 0;
    padding: 0;
  }

  .program-textimg_illustration .program-textimg__image {
    height: 100%;
    max-height: 226px;
  }
}

@media (min-width: 1200px) {
  .program-textimg__title {
    font-size: 40px;
  }

  .program-textimg_illustration .program-textimg__content {
    max-width: calc(100% - 420px);
  }

  .program-textimg_illustration .program-textimg__media {
    right: 100px;
  }
}

@media (min-width: 1600px) {
  .program-textimg__content {
    padding: 36px 48px 28px;
  }

  .program-textimg__eyebrow {
    font-size: 20px;
    line-height: 25px;
  }

  .program-textimg__title {
    font-size: 48px;
    line-height: 53px;
  }

  .program-textimg__text {
    margin-top: 24px;
  }

  .program-textimg_illustration .program-textimg__content {
    max-width: calc(100% - 520px);
  }

  .program-textimg_illustration .program-textimg__media {
    right: 166px;
  }
}

/* ---------- Блок «Подключите UDS» (деталка) ---------- */

.program-uds__banner {
  position: relative;
  overflow: hidden;
  padding: 28px 20px;
  border-radius: 24px;
  background: #f7f7f7;
}

.program-uds__watermark {
  display: none;
}

.program-uds__content {
  position: relative;
  z-index: 1;
}

.program-uds__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 115%;
  color: #2a2a2a;
}

.program-uds__title span {
  color: #26966e;
}

.program-uds__text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 22px;
  color: #4c5355;
}

.program-uds__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 24px;
}

.program-uds__btn,
.program-uds__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 10px;
  background: #2ba77b;
  box-shadow: 0 3px 0 0 #1f8a63, inset 0 0 13px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.program-uds__btn:hover,
.program-uds__icon-btn:hover {
  background: #26966e;
  color: #fff;
}

.program-uds__btn {
  flex: 1 1 100%;
  padding: 0 24px;
  font-family: Geologica, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.program-uds__icon-btn {
  flex: none;
  width: 56px;
}

.program-uds__icon-btn svg {
  width: 28px;
  height: 28px;
}

.program-uds__help {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
}

.program-uds__help-icon {
  flex: none;
  width: 36px;
  height: 36px;
}

.program-uds__help-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: #2a2a2a;
}

.program-uds__help-text {
  font-size: 14px;
  line-height: 20px;
  color: #2a2a2a;
}

@media (min-width: 768px) {
  .program-uds__banner {
    padding: 36px 40px;
  }

  .program-uds__watermark {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    height: calc(100% - 20px);
    width: auto;
    max-width: 45%;
    object-fit: contain;
    object-position: right top;
  }

  .program-uds__title {
    font-size: 32px;
  }

  .program-uds__text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 24px;
  }

  .program-uds__actions {
    gap: 16px 24px;
    margin-top: 32px;
  }

  .program-uds__btn {
    flex: none;
  }

  .program-uds__btn,
  .program-uds__icon-btn {
    height: 64px;
  }

  .program-uds__icon-btn {
    width: 64px;
  }

  .program-uds__help {
    flex: 0 1 auto;
    padding: 0 28px 0 24px;
    min-height: 64px;
  }
}

@media (min-width: 1200px) {
  .program-uds__title {
    font-size: 40px;
  }
}

@media (min-width: 1600px) {
  .program-uds__banner {
    min-height: 328px;
    padding: 36px 48px 30px;
  }

  .program-uds__watermark {
    right: 9px;
    top: 9px;
    height: 261px;
    max-width: none;
  }

  .program-uds__title {
    font-size: 48px;
    line-height: 53px;
  }

  .program-uds__text {
    margin-top: 24px;
  }

  .program-uds__actions {
    margin-top: 36px;
  }

  .program-uds__btn,
  .program-uds__icon-btn {
    height: 72px;
  }

  .program-uds__btn {
    padding: 0 22px;
    margin-right: 8px;
  }

  .program-uds__icon-btn {
    width: 70px;
  }

  .program-uds__icon-btn svg {
    width: 34px;
    height: 34px;
  }

  .program-uds__help {
    gap: 16px;
    min-height: 72px;
  }

  .program-uds__help-icon {
    width: 44px;
    height: 44px;
  }

  .program-uds__help-title,
  .program-uds__help-text {
    font-size: 16px;
    line-height: 22px;
  }
}

/* ---------- Мобильная версия баннера и блока UDS (по мобильному макету) ---------- */

@media (max-width: 767px) {
  /* баннер-иллюстрация: картинка сверху выходит за край, надпись под заголовком */
  .program-textimg_illustration .program-textimg__banner {
    overflow: visible;
    margin-top: 32px;
  }

  .program-textimg_illustration .program-textimg__media {
    order: -1;
    justify-content: center;
    margin: -32px 0 0;
    padding: 0;
  }

  .program-textimg_illustration .program-textimg__image {
    height: 130px;
  }

  .program-textimg_illustration .program-textimg__content {
    display: flex;
    flex-direction: column;
    padding: 28px 20px 26px;
  }

  .program-textimg_illustration .program-textimg__title {
    order: 1;
    font-size: 24px;
    line-height: 26px;
  }

  .program-textimg_illustration .program-textimg__eyebrow {
    order: 2;
    margin: 28px 0 0;
    font-size: 14px;
    letter-spacing: 0.15em;
  }

  .program-textimg_illustration .program-textimg__text {
    order: 3;
    margin-top: 30px;
    font-size: 16px;
    line-height: 24px;
  }

  /* UDS: кнопка → карточка помощи → мессенджеры по центру, «uds» на фоне */
  .program-uds__banner {
    padding: 24px 20px 20px;
  }

  .program-uds__title {
    line-height: 27px;
  }

  .program-uds__text {
    font-size: 16px;
    line-height: 24px;
  }

  .program-uds__watermark {
    display: block;
    position: absolute;
    left: 5px;
    top: 210px;
    width: calc(100% - 10px);
    height: auto;
  }

  .program-uds__actions {
    justify-content: center;
    gap: 0 12px;
    margin-top: 44px;
  }

  .program-uds__btn {
    order: 1;
    height: 46px;
    padding: 0 12px;
    white-space: nowrap;
    text-align: center;
  }

  .program-uds__help {
    order: 2;
    align-items: flex-start;
    gap: 16px;
    margin: 30px 0 24px;
    padding: 20px 16px;
  }

  .program-uds__help-icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
  }

  .program-uds__help-title,
  .program-uds__help-text {
    font-size: 15px;
    line-height: 22px;
  }

  .program-uds__icon-btn {
    order: 3;
    width: 48px;
    height: 48px;
  }

  .program-uds__icon-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ---------- Hero деталки: режим «Фото на всю правую часть» (Скидка 10%) ---------- */

.program-hero_photo .program-hero__visual::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(to right, #f7f7f7, rgba(247, 247, 247, 0));
  pointer-events: none;
}

@media (max-width: 1199px) {
  .program-hero_photo .program-hero__visual::after {
    display: none;
  }
}

@media (min-width: 1200px) {
  .program-hero_photo .program-hero__visual {
    left: 620px;
    width: auto;
  }

  .program-hero_photo .program-hero__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
  }

  .program-hero_photo .program-hero__btn {
    padding-left: 16px;
    padding-right: 16px;
  }

  .program-hero_photo .program-hero__badge {
    right: 8px;
    bottom: 8px;
    width: 240px;
  }
}

@media (min-width: 1600px) {
  .program-hero_photo .program-hero__banner {
    min-height: 541px;
  }

  .program-hero_photo .program-hero__content {
    max-width: 790px;
  }

  /* картинка на весь баннер (светлая часть и растушёвка уже в ней) */
  .program-hero_photo .program-hero__visual {
    left: 0;
  }

  .program-hero_photo .program-hero__visual::after {
    display: none;
  }

  .program-hero_photo .program-hero__image {
    object-position: right center;
  }

  .program-hero_photo .program-hero__title {
    font-size: 54px;
    line-height: 62px;
  }

  .program-hero_photo .program-hero__text {
    margin-top: 16px;
    max-width: 740px;
  }

  .program-hero_photo .program-hero__text p {
    margin-bottom: 20px;
  }

  .program-hero_photo .program-hero__text p:last-child {
    margin-bottom: 0;
  }

  .program-hero_photo .program-hero__btns {
    margin-top: 36px;
    max-width: 739px;
  }

  /* PNG плашки с прозрачными полями: при 328px видимая часть = 289×183, как в макете */
  .program-hero_photo .program-hero__badge {
    right: 8px;
    bottom: 11px;
    width: 328px;
  }
}

/* ---------- Баннер «текст + картинка»: режим «Фото» ----------
   Картинка может быть целым баннером из Figma (фото + растушёвка + фон) или просто фото:
   на десктопе она лежит фоном на весь баннер, текст — поверх свободной половины. */

.program-textimg__text p + p {
  margin-top: 12px;
}

.program-textimg_photo .program-textimg__media {
  order: -1;
  height: 220px;
}

.program-textimg_photo .program-textimg__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
}

.program-textimg_photo.program-textimg_img-right .program-textimg__image {
  object-position: 80% center;
}

@media (min-width: 768px) {
  .program-textimg_photo .program-textimg__banner {
    min-height: 320px;
    justify-content: center;
  }

  .program-textimg_photo .program-textimg__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    height: auto;
  }

  .program-textimg_photo .program-textimg__image {
    object-position: left center;
  }

  /* растушёвка края фото в фон баннера */
  .program-textimg_photo .program-textimg__media::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 35%;
    background: linear-gradient(to left, #f0f7f4, rgba(240, 247, 244, 0));
  }

  .program-textimg_photo.program-textimg_bg-gray .program-textimg__media::after {
    background: linear-gradient(to left, #f7f7f7, rgba(247, 247, 247, 0));
  }

  .program-textimg_photo .program-textimg__content {
    margin-left: 50%;
  }

  .program-textimg_photo.program-textimg_img-right .program-textimg__media {
    left: auto;
    right: 0;
  }

  .program-textimg_photo.program-textimg_img-right .program-textimg__image {
    object-position: right center;
  }

  .program-textimg_photo.program-textimg_img-right .program-textimg__media::after {
    right: auto;
    left: 0;
    transform: scaleX(-1);
  }

  .program-textimg_photo.program-textimg_img-right .program-textimg__content {
    margin-left: 0;
    margin-right: 50%;
  }
}

@media (min-width: 1600px) {
  .program-textimg_photo .program-textimg__banner {
    min-height: 367px;
  }

  /* картинка на весь баннер, текст с 929px — как в макете */
  .program-textimg_photo .program-textimg__media {
    width: 100%;
  }

  .program-textimg_photo .program-textimg__media::after {
    display: none;
  }

  .program-textimg_photo .program-textimg__content {
    margin-left: 881px;
    padding-bottom: 32px;
  }


  .program-textimg_photo.program-textimg_img-right .program-textimg__content {
    margin-left: 0;
    margin-right: 881px;
  }
}

/* ---------- Зелёная плашка с формой записи (деталка) ---------- */

.program-cta__banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 20px;
  border-radius: 24px;
  background: #2ba77b;
  color: #fff;
}

.program-cta__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 115%;
  color: #fff;
}

.program-cta__image {
  display: block;
  width: 200px;
  height: auto;
  margin: 16px auto 0;
}

.program-cta__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.program-cta__label {
  margin-top: 16px;
  font-size: 14px;
  line-height: 19px;
}

.program-cta__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* .form input[type=text] из style.css сильнее одиночного класса — поднимаем специфичность */
.program-cta .form .program-cta__input {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #fff;
  font-family: Geologica, sans-serif;
  font-size: 16px;
  color: #2a2a2a;
  outline: none;
}

.program-cta .form .program-cta__input::placeholder {
  color: #adadad;
}

.program-cta__btn {
  height: 45px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #fff;
  font-family: Geologica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #26966e;
  cursor: pointer;
  transition: background 0.3s;
}

.program-cta__btn:hover {
  background: #e3efe9;
}

.program-cta__btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.program-cta__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  cursor: pointer;
}

/* .form input[type=checkbox] из style.css красит и меняет размер — поднимаем специфичность */
.program-cta .form .program-cta__check input[type="checkbox"] {
  flex: none;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border: none;
  margin: 0;
  border-radius: 3px;
  background: #fff center / 12px no-repeat;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.program-cta .form .program-cta__check input[type="checkbox"]:checked {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.8' stroke='%2326966E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.program-cta__check a {
  color: #fff;
  text-decoration: none;
}

@media (min-width: 768px) {
  .program-cta__banner {
    padding: 36px 40px;
  }

  .program-cta__title {
    font-size: 36px;
  }

  .program-cta__image {
    width: 240px;
    margin-left: 0;
  }

  .program-cta__text {
    font-size: 18px;
    line-height: 24px;
  }

  .program-cta__label {
    font-size: 16px;
  }

  .program-cta__row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (min-width: 1200px) {
  .program-cta__banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 36px 48px 24px;
  }

  .program-cta__left {
    flex: 1 1 auto;
  }

  .program-cta__right {
    flex: none;
    width: 520px;
  }

  .program-cta__title {
    font-size: 40px;
  }
}

@media (min-width: 1600px) {
  .program-cta__banner {
    min-height: 252px;
  }

  .program-cta__title {
    position: relative;
    z-index: 1;
    font-size: 48px;
    line-height: 53px;
  }

  /* как в макете: плашка между заголовком и формой, уходит за нижний край */
  .program-cta__image {
    position: absolute;
    left: 488px;
    bottom: 0;
    width: 332px;
    margin: 0;
  }

  .program-cta__right {
    width: 684px;
  }

  .program-cta__text {
    font-size: 20px;
    line-height: 24px;
  }
}

/* ---------- Мобильная версия: hero «Фото» и зелёная форма (по мобильному макету) ---------- */

@media (max-width: 767px) {
  /* hero «Фото»: фото сверху во всю ширину, снизу растушёвано в фон, плашка скрыта */
  .program-hero_photo .program-hero__visual {
    order: 0;
    height: 200px;
    min-height: 0;
    margin: -28px -20px 6px;
  }

  .program-hero_photo .program-hero__image {
    object-position: right center;
  }

  .program-hero_photo .program-hero__visual::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    height: 60px;
    background: linear-gradient(to top, #f7f7f7, rgba(247, 247, 247, 0));
  }

  .program-hero_photo .program-hero__badge {
    display: none;
  }

  .program-hero_photo .program-hero__title {
    font-size: 26px;
    line-height: 28px;
  }

  .program-hero_photo .program-hero__text {
    margin-top: 4px;
    font-size: 15px;
    line-height: 22px;
  }

  .program-hero_photo .program-hero__text p {
    margin-bottom: 20px;
  }

  .program-hero_photo .program-hero__text p:last-child {
    margin-bottom: 0;
  }

  .program-hero_photo .program-hero__btns {
    gap: 10px;
    margin-top: 20px;
  }

  /* зелёная форма: плашка в правом верхнем углу, заголовок под ней */
  .program-cta__banner {
    gap: 24px;
    padding: 85px 20px 24px;
  }

  .program-cta__image {
    position: absolute;
    top: 8px;
    right: 16px;
    width: 126px;
    margin: 0;
  }

  .program-cta__title {
    font-size: 24px;
    line-height: 32px;
  }

  .program-cta__text {
    line-height: 21px;
  }

  .program-cta__label {
    margin-top: 24px;
    font-size: 16px;
  }

  .program-cta__row {
    gap: 12px;
  }

  .program-cta__check {
    gap: 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .program-cta .form .program-cta__check input[type="checkbox"] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    border-radius: 4px;
    background-size: 14px;
  }
}
