@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.inter-

<
uniquifier > {
  font-family: "Inter", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: 'Inter', sans-serif;
}

.modal-wrapper {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.6); /* полу-прозрачный серый */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* скрыта */
  pointer-events: none; /* клики/скролл проходят ниже */
  transition: opacity 0.4s ease;
  z-index: 1000;
}

/* показываем обёртку, делаем её кликабельной */
.modal-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}

/* 2) Блокируем скролл страницы, пока открыт попап */
body.modal-open {
  overflow: hidden !important;
}

.container-popup {
  position: fixed;
  top: 50%;
  left: 50%; /* изначально чуть уменьшено и невидимо */
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  pointer-events: none; /* плавный переход при появлении/скрытии */
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  z-index: 1000;
  max-width: 800px;
  max-height: max-content;
  width: 100%;
height:100%;
  background: white;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* когда у контейнера есть класс active — показываем */
.container-popup.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.container-popup .popup-overlay { /* ничего не рисуем в невидимом состоянии */
  content: "";
}

.container-popup.active .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* затемнённый фон */ /* слой под самим попапом, но над остальным контентом */
  z-index: 999;
}

/* === Блокировка скролла страницы === */
body.modal-open {
  overflow: hidden !important;
}

.container-popup .top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
margin-bottom: 28px;

}

.container-popup .left {
  flex: 0 0 48%;
  width: 48%;
}

.container-popup .right {
  flex: 0 0 52%;
  width: 52%;
}

.container-popup .left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.container-popup .left svg {
  position: absolute;
  top: -12%;
  left: -30%;
  width: 130%;
  height: 130%;
  z-index: 0;
  pointer-events: none; /* чтобы не мешал кликам */
  object-fit: contain;
}

.container-popup .left img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  bottom: 2vh;
  right: 8%;
}

.container-popup .features li, .container-popup .features-title, .container-popup .custom-checkbox__label {
  font-family: 'Inter', sans-serif;
  color: black
}

.container-popup .right p {
  margin-bottom: clamp(5px, 2vw, 15px);
  font-size: clamp(14px, 1vw, 18px);
  margin-right: clamp(10px, 2vw, 20px);
  color: black;
line-height: 1.1;
}

.container-popup .popup-title { /*font-family: 'Inter', sans-seаrif;*/
  font-style: normal;
  font-size: clamp(12px, 2.5vw, 30px) !important;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.1;
  font-weight: bold;
  color: black;
}

.container-popup .features-title {
  font-size: 16px;
  font-weight: bold;
}

.container-popup .features {
  list-style: none;
  font-size: clamp(14px, 2vw, 16px);
  display: flex;
  flex-direction: column;
}

.container-popup .close-button-popup {
  position: static; /* сбрасываем absolute */
  align-self: flex-end;
  border: none;
  font-size: 24px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  line-height: 1;
  color: #000; /* или #333, или как в дизайне */
  padding: 20px 20px 0 10px;
  background-color: transparent;
}

.container-popup .close-wrapper {
  color: transparent;
  display: flex;
  justify-content: flex-end;
}

.container-popup .features li {
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 10px; /* 👈 регулируй отступ здесь */
  margin-bottom: clamp(5px, 1.5vw, 10px); /* опционально: отступ между пунктами */
  line-height: 1.4;
  padding-top: 4px;
}

.wpcf7-form br {
  display: none
}

.wpcf7-form {
    margin-left: 1vw;
    z-index: 1;
}

.wpcf7-form form {
  display: grid;
  grid-template-columns:1fr 1fr; /* две равные колонки */
  grid-template-areas:        "name   phone"        "agree  button";
  gap: clamp(12px, 3vw, 24px); /* зазор между всеми ячейками */
  max-width: 730px;
  width: 100%;
  margin-top: 20px;
}

/* 3. раскладываем элементы по ячейкам */
.wpcf7-form input[name="your-name"] {
  grid-area: name
}

.wpcf7-form input[name="tel-403"] {
  grid-area: phone
}

.wpcf7-form .wpcf7-checkbox {
  grid-area: agree
}

.wpcf7-form .wpcf7-submit {
  grid-area: button
}

/* 4. общие стили полей */
.wpcf7-form input[type="text"], .wpcf7-form input[type="tel"], .wpcf7-form .wpcf7-submit {
  height: 50px;
  padding-inline: 16px;
  font: 16px 'Inter', sans-serif;
  border: 1px solid #000;
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%; /* растягиваем по ячейке */
}

/* 5. кнопка */
.wpcf7-form .wpcf7-submit {
  background: #0f1021;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}

.wpcf7-form .wpcf7-submit:hover {
  opacity: .85
}

/* 6. чек‑бокс и подпись в один «блок» */
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  align-items: flex-start;
 justify-self: start; 
  gap: 8px; /* расстояние между квадратиком и текстом */
  font: 14px/1.3 'Inter', sans-serif;
  color: #555;
  max-width: 100%;
}

/* сам input‑checkbox растягиваем до видимого квадрата */
.wpcf7-form .wpcf7-checkbox input {
  appearance: none; /* убираем нативный чек‑бокс */
  margin: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #000;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.wpcf7-form .wpcf7-checkbox input:checked {
  background: #000;
}

.wpcf7-form .wpcf7-checkbox input:checked::after {
  content: '';
  position: absolute;
  width: 8px; /* длина «пера» галки */
  height: 14px; /* маленькая “галочка” */
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

span.wpcf7-list-item.first.last {
    margin: 0;
}

.wpcf7-form .wpcf7-list-item { /* <span class="wpcf7-list-item"> */
  display: flex;
  align-items: flex-start; /* верхние края по одной линии */
  gap: 8px; /* расстояние между квадратом и текстом */
}

.wpcf7-form .wpcf7-list-item > label {
  display: flex;
  align-items: center; /* выравниваем по‑вертикали */
  gap: 8px; /* расстояние между квадратом и текстом */
}

.wpcf7-form .wpcf7-list-item-label {
  display: block;
  margin-left: 5px;
  line-height: 1.3;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
  position: static; /* ← БОЛЕЕ нет absolute! */
  margin: 0; /* убираем дефолтные отступы                       */
  flex: 0 0 22px; /* жёсткая ширина / высота квадрата                */
  width: 22px;
  height: 22px;
  padding-left: 5px;
}

.wpcf7-form br {
  display: none !important;
}

.screen-reader-response {
  display: none;
}

/* ===== МОБИЛЬНЫЙ СТЕК 468- ↓ ===== *//* ===== МОБИЛЬНЫЙ СТЕК 468- ↓ ===== */
@media (max-width: 650px) {

  .container-popup.active{
    max-width:320px;
    max-height:818px;
    display: flex;           /* уже flex, но пусть будет явно */
    flex-direction: column;
    gap:0;
    border-radius:20px;
    overflow-y: auto;
  }

  /* убираем «посредника», чтобы .left и .right стали соседями формы */
  .container-popup .top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    flex-wrap: nowrap;
overflow:hidden;
        padding-bottom: 35px;
  }
    /* порядок нужный нам: right → form → left */

    .container-popup .right {
      order: 1;
    }

    .container-popup .wpcf7-form {
      order: 2;
    }

    .container-popup .left {
      order: 3;
    }

    /* по желанию: ширина 100 % и маленький отступ под картинкой */

    .container-popup > * {
      flex: 0 0 auto;
      width: 100%;
    }

    .container-popup .right {
      padding: 0 15px 0 20px; /* горизонтальный «воздух» */
      box-sizing: border-box;
      width: 100%;
margin-bottom: -12%;
    }

    .container-popup .left {
      width: 100%;
      margin-top: 16px;
      flex: 0 0 auto;
        margin-top: 8%;
    }

    .container-popup .close-button-popup {
      padding: 0;
      font-size: 16px;
      margin-top: 10px;
      margin-bottom: 10px;
    }

    .container-popup .popup-title {
      font-size: 20px !important;
      margin-top: -20px !important;
    }

    .container-popup .right p {
      font-size: 14px;
    }

    p.popup-subtitle {
      padding-top: 6px;
      line-height: 1.4 !important;
    }


    .container-popup .features li {
      padding-top: 7px;
    }


    .container-popup .left svg {
             position: absolute;
        top: -88%;
        left: 25%;
        width: 65%;
        height: auto;
        z-index: 0;
        rotate: 310deg;
    }

    .wpcf7-form form {
      /* 1 колонка вместо 2 */
      grid-template-columns: 1fr;
      /* области в столбик: сначала имя, потом телефон, потом чекбокс, потом кнопка */
      grid-template-areas:
      "name"
      "phone"
      "agree"
      "button";
    }

    .container-popup .wpcf7-form {
      width: 94%;
      margin-left: 2vw;
    }

    .wpcf7-form .wpcf7-list-item-label {
      font-size: 12px;
    }

    .container-popup .left img {
      max-width: 83%;
      bottom: 11px;
      right: 0;
      left: 10%;
    }

    .container-popup .left svg {
      position: absolute;
      top: -158%;
      left: 25%;
      width: 60%;
      height: 355%;
      z-index: 0;
      rotate: 318deg;
    }

    .modal-wrapper.active {
      /* позволяем скроллить содержимое попапа */
      overflow-y: auto;
    }
  }
  