
.block_banner_left {

    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    margin-bottom: 100px;
    /* СКРУГЛЕНИЕ УГЛОВ: верхний-правый и нижний-правый (по 12px), остальные 0 */
    border-radius: 20px 0px 0px 20px;
}



/* 3. Заголовок и текст в левом блоке */
.block_banner_left h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 400;

    margin-bottom: 25px;
    line-height: 1.2;
    text-transform: uppercase;
}


.block_banner_left p,
.block_banner_left strong {
    font-size: 18px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* 4. Текст, который должен быть в самом низу левого блока */
.banner_right_text {
    margin-top: auto; /* Прижимает блок к низу */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    line-height: 1.6;
    padding: 18px 30px;
    border-radius: 20px;
    color: #fff;
    width: auto;
    background: #4a6683;
}

/* 5. ПРАВЫЙ БЛОК — теперь 1/3 ширины */
.block_banner_right {
    background: #4a6683;
    border-radius: 30px;
    padding: 30px;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 50px;
    width: fit-content;
    margin-right: auto;
    font-size: 18px;
    justify-content: space-between;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #FFFFFF;
  border-radius: 50%;
  padding: 0;
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.block_banner_header {
  background-image: url(https://xn--b1ahfc9aj.xn--p1acf/wp-content/uploads/2026/11/iz454-scaled.webp);
  background-size: cover;
  background-position: center;
  padding: 50px;
  border-radius: 20px; /* радиус скругления углов */
}

/* 7. АДАПТИВ: на мобильных устройствах кладем блоки друг под друга */
@media (max-width: 768px) {
    .block_banner_flex {
        flex-direction: column;
    }

    .block_banner_left,
    .block_banner_right {
        flex-basis: 100%;
        max-width: 100%;
        min-height: 250px; /* На мобильных высоту можно уменьшить */
    }

    .block_banner_left {
        padding: 30px;
    }

    .block_banner_left h1 {
        font-size: 28px;
    }

    .block_banner_left p,
    .block_banner_left strong,
    .banner_right_text {
        font-size: 16px;
    }

    /* На мобильных прижимание к низу отключаем, чтобы текст шел по порядку */
    .banner_right_text {
        margin-top: 20px;
    }
}

/* Блок «Что входит в услугу» */
.services {

  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.services__title {
  font-size: 32px;

  margin: 0 0 40px;

}

/* Сетка: 3 блока в ряд */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Карточка услуги */
.service-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 20px 10px;
}

.service-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: #555555;
  margin: 0 20px 24px;
}

/* Адаптив */
@media (max-width: 991px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__title {
    font-size: 26px;
  }
}


.eq-prep {

  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.eq-prep__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.eq-prep__item {
  flex: 1;
  min-width: 300px;
}

.eq-prep__img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.eq-prep__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1a1a1a;
}

.eq-prep__desc {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  .eq-prep__container {
    flex-direction: column;
  }

  .eq-prep__item {
    width: 100%;
  }
}


/* Блок-предупреждение */
.eq-prep__warning {
  margin-top: 24px;
  padding: 20px 24px;
  background: #fff8e6;
  border-left: 4px solid #f5a623;
  border-radius: 12px;
  box-sizing: border-box;
}

.eq-prep__warning-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b37400;
  margin-bottom: 10px;
}

.eq-prep__warning-text {
  font-size: 15px;
  line-height: 1.6;
  color: #5a4a1e;
  margin: 0 0 10px;
}

.eq-prep__warning-text:last-child {
  margin-bottom: 0;
}

.eq-prep__warning-text strong {
  color: #1a1a1a;
}


/* Блок «Кому подойдёт» */
.audience {

  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.audience__title {
  font-size: 32px;

  margin: 0 0 40px;

}

/* Сетка: 3 плитки в ряд */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Плитка: картинка на весь блок, текст поверх снизу */
.audience-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.audience-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Белая подложка с текстом */
.audience-card__body {
  position: relative;
  z-index: 1;
  background: #ffffff;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 0 0 20px 20px; /* углы повторяют скругление плитки */
}

.audience-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.audience-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: #555555;
  margin: 0;
}

/* Адаптив */
@media (max-width: 991px) {
  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 320px;
  }

  .audience__title {
    font-size: 26px;
  }
}


/* Блок «Как мы проводим работы» */
.process {

  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.process__title {
  font-size: 32px;

  margin: 0 0 40px;

}

/* Сетка: 4 карточки в ряд */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Карточка этапа */
.process-card {
  text-align: center;

  border-radius: 20px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Круглая картинка */
.process-card__img-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.process-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.process-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: #555555;
  margin: 0;
}

/* Адаптив */
@media (max-width: 991px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .process__grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    padding: 16px;
  }

  .process-card__img-wrapper {
    width: 120px;
    height: 120px;
  }

  .process__title {
    font-size: 26px;
  }
}


/* Раскладка: грид 70/30, !important чтобы тема не перебила */
.svip-why-row {
  display: grid !important;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) !important;
  gap: 40px !important;
  align-items: center;
}

.svip-why-col-text,
.svip-why-col-img {
  min-width: 0 !important;
  max-width: 100% !important;
  float: none !important;
  width: auto !important;
}

.svip-why-image {
  width: 100% !important;
  height: auto;
  min-height: 300px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.svip-why-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 30px;
  color: #1a1a1a;
}

.svip-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svip-why-item {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.svip-why-item strong {
  color: #2c3e50;
}

/* Телефоны: в колонку */
@media (max-width: 767px) {
  .svip-why-row {
    grid-template-columns: 1fr !important;
  }
}




  /* ====================================================
     П.2: ФОРМА (ЦВЕТ #577491)
  ==================================================== */
  .form-main-bg {
      background-color: #4a6683; /* Темная внешняя рамка */
      padding: 40px 20px;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
      margin: 0 auto;
  		margin-bottom: 30px;
  }

  /* --- ОСНОВНОЙ БЛОК ФОРМЫ --- */
  .form-main {
      background-color: #577491; /* ВАШ ВЫБРАННЫЙ ЦВЕТ */
      padding: 35px 40px;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      color: #1a1c23; /* Текст темно-серый для читаемости на светло-синем фоне */
  }

  /* --- ГЛАВНЫЙ КОНТЕЙНЕР СТРОКИ --- */
  .form-row {
      display: flex !important;
      gap: 15px !important;
      width: 100% !important;
      line-height: 0;
  }

  .form-row p {
      all: unset !important;
      display: contents !important;
  }

  /* --- ЯЧЕЙКИ --- */
  .form-col {
      display: flex !important;
      flex-direction: column !important;
      min-width: 0 !important;
      flex: 1 1 calc(33.333% - 10px) !important;
  }

  /* Стили самого поля ввода */
  .form-col .form-control {
      width: 100% !important;
      height: 55px !important;
      padding: 0 20px !important;
      border: 1px solid #b0c2d6; /* Светлая рамка инпута в тон темы */
      background-color: #fff !important; /* Поля ввода — белые */
      color: #1a1c23 !important;
      font-size: 1rem !important;
      border-radius: 8px !important;
      transition: all 0.3s ease !important;
      box-sizing: border-box !important;
      order: 1 !important;
      appearance: textfield !important;
  }

  /* Стили плейсхолдера */
  .form-col .form-control::placeholder {
      color: #7d8492 !important;
      opacity: 1 !important;
  }

  /* Состояние фокуса */
  .form-col .form-control:focus {
      outline: none !important;
      border-color: #d9534f !important;
      background-color: #fff !important;
      box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.2) !important;
  }

  /* --- БЛОК ОШИБКИ --- */
  .wpcf7-not-valid-tip {
      display: block !important;
      color: #d9534f !important;
      font-size: 0.85rem !important;
      margin-top: 5px !important;
      order: 2 !important;
      line-height: 1.3 !important;
      min-height: 1em !important;
  }

  .form-col br {
      display: none !important;
  }

  /* Состояние НЕВАЛИДНОГО поля */
  .form-control.wpcf7-not-valid {
      border-color: #d9534f !important;
      background-color: #fdecee !important;
      color: #d9534f !important;
  }

  /* Скрываем общий вывод сообщений CF7 внизу формы */
  .wpcf7-response-output {
      display: none !important;
  }

  /* --- КНОПКА --- */
  .btn-cell {
      flex: 0 0 auto !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      white-space: nowrap !important;
  }

  .btn-cell .wpcf7-submit.btn.btn-primary {
      width: auto !important;
      height: 55px !important;
      padding: 0 30px !important;
      border: none !important;
      background-color: #d9534f !important; /* Красная кнопка контрастирует со стальным синим */
      color: #fff !important;
      font-weight: bold !important;
      font-size: 1rem !important;
      border-radius: 8px !important;
      cursor: pointer !important;
      transition: all 0.3s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      order: 0 !important;
  }

  .btn-cell .wpcf7-submit.btn.btn-primary:hover {
      background-color: #c12e2a !important;
      transform: translateY(-2px) !important;
      box-shadow: 0 6px 12px rgba(217, 83, 79, 0.3) !important;
  }

  .btn-cell .wpcf7-spinner {
      margin-left: 10px !important;
  }

  /* --- АДАПТИВНОСТЬ --- */
  @media (max-width: 768px) {
      .form-row {
          flex-direction: column !important;
          gap: 15px !important;
      }

      .form-col,
      .btn-cell {
          flex-basis: 100% !important;
          width: 100% !important;
      }

      .form-col .form-control {
          height: 55px !important;
      }
  }


  /* ====================================================
     ЧЕКБОКС СОГЛАСИЯ (ТОЧНО ПОД ВАШ HTML + :HAS())
  ==================================================== */
  .form-block.form-acceptance-wrap {
      margin-top: 15px !important;
      display: flex !important;
      align-items: center !important;
      cursor: pointer !important;
  }

  /* --- Убираем визуальный мусор WordPress --- */
  .form-block.form-acceptance-wrap p,
  .form-block.form-acceptance-wrap br {
      all: unset !important;
      display: contents !important; /* Ломаем блочную модель <p>, чтобы работал Flex */
  }

  /* Скрываем нативный input визуально, НО оставляем его рабочим! */
  .form-block.form-acceptance-wrap .wpcf7-form-control.wpcf7-acceptance,
  .form-block.form-acceptance-wrap input[type="checkbox"] {
      position: absolute !important;
      width: 20px !important;
      height: 20px !important;
      opacity: 0 !important; /* Не display:none, иначе :checked работать не будет */
      z-index: 3 !important; /* Должен быть выше квадрата, чтобы ловить клики */
      cursor: pointer !important;
      margin: 0 !important;
      padding: 0 !important;
  }

  /* --- Текст согласия и рисование квадрата --- */
  .form-block.form-acceptance-wrap span.cl-1 {
      position: relative !important;
      padding-left: 30px !important; /* Место под наш квадратик */
      color: #1a1c23 !important;
      font-size: 0.95rem !important;
      line-height: 1.5 !important;
      display: block !important;
      min-height: 22px !important;
  }

  /* Нарисованный белый квадрат ПЕРЕД текстом */
  .form-block.form-acceptance-wrap span.cl-1::before {
      content: '' !important;
      position: absolute !important;
      left: 0 !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      width: 20px !important;
      height: 20px !important;
      border: 2px solid #ccc !important;
      background-color: #eee !important;
      border-radius: 4px !important;
      transition: all 0.2s ease !important;
      z-index: 1 !important;
  }

  /* Галочка внутри квадрата (скрыта по умолчанию) */
  .form-block.form-acceptance-wrap span.cl-1::after {
      content: "" !important;
      position: absolute !important;
      left: 5px !important;
      top: 7px !important;
      width: 6px !important;
      height: 12px !important;
      border-style:  solid !important;
      border-width: 0 2px 2px 0 !important;
      border-color: #333 !important;
      transform: rotate(45deg) scale(0) !important; /* Масштаб 0 = скрыто */
      transition: transform 0.2s ease !important;
      z-index: 2 !important;
  }

  /* === МАГИЯ СВЯЗИ через :has() === */

  /* Если у враппера есть checked-инпут -> меняем цвет квадрата */
  .form-block.form-acceptance-wrap:has(input:checked) span.cl-1::before {
      background-color: #577491 !important; /* Ваш синий цвет фона формы */
      border-color: #577491 !important;
  }

  /* Если у враппера есть checked-инпут -> показываем галочку */
  .form-block.form-acceptance-wrap:has(input:checked) span.cl-1::after {
      transform: rotate(45deg) scale(1) !important; /* Масштаб 1 = видно */
  }

  /* Эффект при наведении на НЕотмеченный квадрат */
  .form-block.form-acceptance-wrap:not(:has(input:checked)):hover span.cl-1::before {
      background-color: #ddd !important;
      border-color: #bbb !important;
  }

  /* Ссылка "Соглашение" */
  .form-block.form-acceptance-wrap span.cl-1 a {
      color: #d9534f !important;
      text-decoration: underline !important;
  }
  .form-block.form-acceptance-wrap span.cl-1 a:hover {
      text-decoration: none !important;
  }



    /* --- ЭЛЕМЕНТ АККОРДЕОНА (каждый вопрос) --- */
    .faq-item details {
        border-top: 1px solid #e0e0e0; /* Тонкая разделительная линия между вопросами */
        transition: background-color 0.2s ease;
    }

    .faq-item details:first-child {
        border-top: none; /* Убираем верхнюю линию у первого вопроса */
    }

    /* При наведении на закрытый пункт — меняем цвет фона */
    .faq-item details:not([open]):hover {
        background-color: #f8f9fa;
    }


    /* --- ВОПРОС (summary) --- */
    .faq-question {
        cursor: pointer;
        font-family: 'Oswald', sans-serif;
        font-size: 1.2rem;
        font-weight: 600;
        color: #00579c;
        padding: 20px 40px 20px 0;
        position: relative;
        display: block;
        outline: none;

        /* ВАЖНО: отключаем стандартный маркер-треугольник браузера */
        list-style: none;
    }

    /* Хак для полного скрытия стрелки в Firefox и Chrome */
    .faq-question::-webkit-details-marker { display: none; }
    .faq-question::marker { display: none; }

    /* Иконка плюса/минуса справа (как на svarkomplekt18.ru) */
    .faq-question::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        line-height: 1;
        color: #d9534f;
        transition: transform 0.3s ease;
    }

    /* Поворот иконки при открытии */
    details[open] > summary::after {
        content: '–'; /* Заменяем плюс на минус */
        transform: translateY(-50%) rotate(0deg); /* Минус уже ровный, поворот не нужен */
    }

    /* Меняем цвет текста активного вопроса */
    details[open] > summary {
        color: #d9534f;
        padding-bottom: 10px;
    }


    /* --- ОТВЕТ --- */
    .faq-answer {
        font-size: 1rem;
        color: #333;
        line-height: 1.6;
        padding: 0 20px 25px 0;
        animation: fadeInHeight 0.4s ease-out;
    }

    /* Анимация появления текста (плавное раскрытие) */
    @keyframes fadeInHeight {
        from {
            opacity: 0;
            max-height: 0;
            overflow: hidden;
            margin-top: 0;
            margin-bottom: 0;
            padding-top: 0;
            padding-bottom: 0;
        }
        to {
            opacity: 1;
            max-height: 1000px; /* Достаточно большое число для высокого контента */
            overflow: hidden;
            margin-top: 10px;
            margin-bottom: 10px;
        }
    }
