
.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/iz00.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;
    }
}




  /* ====================================================
     П.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;
        }
    }


    /* --- Секция услуг --- */

    .container h2 {
        text-align: center;
        margin-bottom: 40px;
        font-size: 28px;
    }

    /* Сетка: 3 блока в ряд */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* Карточка */
    .service-card {
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .service-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-4px);
    }

    /* Картинка сверху */
    .service-img {
        width: 100%;
        aspect-ratio: 4 / 3;   /* одинаковая высота всех картинок */
        overflow: hidden;
    }

    .service-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;     /* заполняет блок без искажения пропорций */
        display: block;
        transition: transform 0.4s ease;
    }

    .service-card:hover .service-img img {
        transform: scale(1.05);  /* лёгкий зум при наведении */
    }

    /* Текст карточки */
    .service-title {
        font-size: 18px;
        margin: 16px 16px 8px;
    }

    .service-text {
        font-size: 14px;
        line-height: 1.5;
        color: #555;
        margin: 0 16px 16px;
    }

    /* --- Адаптив --- */
    @media (max-width: 992px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr);  /* 2 блока в ряд */
        }
    }

    @media (max-width: 600px) {
        .services-grid {
            grid-template-columns: 1fr;  /* 1 блок в ряд */
        }

        .container h2 {
            font-size: 22px;
        }
    }



    /* Ряд из двух блоков: слева контент, справа картинка */
    .formats-block {
        display: grid;
        grid-template-columns: 1fr 1fr;  /* левый и правый блок по 50% */
        align-items: stretch;
        gap: 32px;
    }

    /* Левый блок — контент */
    .format-content {
        background: #fff;
        padding: 24px;
        border-radius: 8px;
    }

    /* Список форматов */
    .format-list {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
        display: grid;
        grid-template-columns: 1fr 1fr;  /* пункты в две колонки */
        gap: 10px 16px;
    }

    .format-list li {
        font-size: 16px;
        color: #333;
    }

    /* Связующий абзац */
    .format-link {
        font-size: 15px;
        line-height: 1.6;
        color: #555;
        margin: 0;
    }

    /* Правый блок — картинка */
    .format-image {
        width: 100%;
    }

    .format-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    /* Адаптив: на планшетах и мобильных — контент сверху, картинка снизу */
    @media (max-width: 992px) {
        .formats-block {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .format-image img {
            aspect-ratio: 4 / 3;  /* чтобы на мобильном картинка не была слишком плоской */
        }
    }


    /* Сетка: 3 блока в ряд, адаптив */
    .risks-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-top: 30px;
    }

    /* Карточка с текстом */
    .risk-card {
        background: #fff;
        padding: 24px;
        border-radius: 8px;
        border: 1px solid #e8e8e8;
    }

    .risk-card p {
        font-size: 15px;
        line-height: 1.6;
        color: #333;
        margin: 0;
    }

    /* Адаптив: планшет — 2 колонки */
    @media (max-width: 992px) {
        .risks-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Адаптив: мобильный — 1 колонка */
    @media (max-width: 600px) {
        .risks-grid {
            grid-template-columns: 1fr;
        }
    }


    .work-stages-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin-top: 30px;
    }

    .stage-card {
        background: #fff;
        padding: 28px;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
    }

    /* Тонкая акцентная линия сверху */
    .stage-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #d32f2f; /* красный акцент — можно заменить на цвет темы */
    }

    .stage-card:hover::before {
        background-color: #c2185b; /* чуть темнее при наведении */
    }

    .stage-card:hover {
        transform: translateY(-4px); /* лёгкий подъём карточки */
        box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    }

    .stage-num {
        font-size: 36px;
        font-weight: 700;
        color: #222;
        line-height: 1;
        margin: 0 0 14px 0;
    }

    .stage-title {
        font-size: 18px;
        margin: 0 0 12px 0;
        color: #1a1a1a;
    }

    .stage-desc {
        font-size: 15px;
        line-height: 1.5;
        color: #555;
        margin: 0;
    }

    @media (max-width: 992px) {
        .work-stages-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .work-stages-grid { grid-template-columns: 1fr; }
        .stage-num { font-size: 28px; }
    }


    /* Сетка: 2 блока в ряд */
    .tech-docs-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 30px;
    }

    /* Карточки */
    .td-card {
        background: #fff;
        padding: 28px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* мягкая тень */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .td-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    }

    /* Заголовки внутри карточек */
    .td-title {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 16px 0;
    }

    /* Текст */
    .td-text,
    .td-note {
        font-size: 15px;
        line-height: 1.6;
        color: #555;
        margin: 0 0 16px 0;
    }

    .td-note {
        margin-top: 16px;
        font-style: italic;
        color: #666;
    }

    /* Список документов */
    .td-list {
        list-style: none;
        padding: 0;
        margin: 0 0 16px 0;
    }

    .td-list li {
        position: relative;
        padding-left: 22px;
        font-size: 15px;
        color: #333;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    /* Галочка вместо маркера */
    .td-list li::before {
        content: "✓";
        position: absolute;
        left: 0;
        top: 2px;
        color: #2e7d32; /* спокойный зелёный для галочки */
        font-weight: bold;
    }

    /* Адаптив: на планшете и мобильном — 1 колонка */
    @media (max-width: 992px) {
        .tech-docs-grid {
            grid-template-columns: 1fr;
        }
    }


    /* Сетка: 4 блока в ряд, на планшете — 2, на мобильном — 1 */
    .utp-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    /* Общий фон секции (если нужно задать фон всей секции — делай это на родительском блоке вне .container) */
    /* Здесь фон задаём только карточкам — так проще подстроить под тему Spectech */

    .utp-card {
        background-color: #e6ecf1; /* сине‑серый спокойный фон */
        padding: 28px;
        border-radius: 12px;
        color: #222;
        transition: all 0.3s ease;
    }

    .utp-card:hover {
        background-color: #dbe8ed;
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    }

    /* Иконка (заглушка эмодзи; можно заменить на SVG или FontAwesome) */
    .utp-icon {
        font-size: 36px;
        line-height: 1;
        margin-bottom: 16px;
        display: block;
    }

    .utp-title {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 10px 0;
        color: #1a1a1a;
    }

    .utp-text {
        font-size: 15px;
        line-height: 1.6;
        color: #444;
        margin: 0;
    }

    /* Адаптив: планшет — 2 в ряд */
    @media (max-width: 992px) {
        .utp-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Адаптив: мобильный — 1 в ряд */
    @media (max-width: 600px) {
        .utp-grid {
            grid-template-columns: 1fr;
        }

        .utp-card {
            padding: 24px;
        }
    }
