section.banner-home {
  position: relative;
  overflow: visible !important;
}

section.banner-home > .main-container {
  max-width: 1312px; 
  margin: 0 auto;
  padding: 0 16px; 
  box-sizing: border-box;
  position: relative;
}

section.banner-home .banner-home-layout {
  position: relative;
  width: 100%;
}

section.banner-home .banner-home-slider .slick-list {
  border-radius: 20px;
  overflow: hidden !important;
  z-index: 1;
}

section.banner-home .banner-home-slider {
  position: relative;
}

section.banner-home .banner-home-slider:active,
section.banner-home .banner-home-slider:focus {
  outline: 0;
}

/* Слайд и фон */
section.banner-home .banner-home-slider .slide-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px; 
}

section.banner-home .banner-home-slider .slide-item:not(:first-child) {
  display: none;
}

section.banner-home .banner-home-slider.slick-initialized .slide-item:not(:first-child) {
  display: block;
}

section.banner-home .banner-home-slider .slide-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(19, 53, 133, 0.92) 0%,
    rgba(24, 62, 148, 0.78) 45%,
    rgba(19, 33, 52, 0.25) 100%
  );
  z-index: 0;
  pointer-events: none;
}

section.banner-home .slick-slide img.hero-img,
section.banner-home .slide-item img.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

/* Контент */
section.banner-home .banner-home-slider .item-container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
}

section.banner-home .banner-home-slider .slide-layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 48px 75px; 
  min-height: 540px;
}

section.banner-home .banner-home-slider .slide-layout .item-info {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  max-width: 580px;
  margin: 0;
}

/* Бейдж */
section.banner-home .banner-home-slider .item-info .info-badge {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.2;
  color: #ffffff;
  border: 1px solid #2869F0;
  border-radius: 8px;
}

/* Заголовок */
section.banner-home .banner-home-slider .item-info .info-title {
  color: #ffffff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 20px;
}

/* Описание */
section.banner-home .banner-home-slider .item-info .info-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 32px;
}

section.banner-home .banner-home-slider .item-info .info-text ul {
  padding-left: 20px;
  margin: 10px 0;
}

/* Кнопка "Подробнее" */
section.banner-home .banner-home-slider .item-info .info-more.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  padding: 14px 32px;
  margin: 0;
  background: #ffffff;
  color: #2b6cb0!important;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

section.banner-home .banner-home-slider .item-info .info-more.btn-secondary:hover {
  background: #f0f5ff;
  color: #1e4e8c;
}

/* Навигация */
section.banner-home .slick-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  border: 1px solid #f0f3f8 !important;
  box-shadow: 0 4px 16px rgba(19, 33, 52, 0.08) !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
  visibility: visible !important;
  opacity: 1 !important;
}

section.banner-home .slick-arrow:hover {
  border-color: #d0def5 !important;
  box-shadow: 0 6px 20px rgba(19, 33, 52, 0.14) !important;
}

section.banner-home .slick-prev {
  left: -54px !important; 
}

section.banner-home .slick-next {
  right: -54px !important;
}

section.banner-home .slick-prev::before,
section.banner-home .slick-next::before {
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}

section.banner-home .slick-prev::before {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 13L1 7L7 1' stroke='%232B59C3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

section.banner-home .slick-next::before {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 13L7 7L1 1' stroke='%232B59C3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Пагинация */
section.banner-home .banner-home-slider .slick-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: auto;
}

section.banner-home .banner-home-slider .slick-dots li {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}

section.banner-home .banner-home-slider .slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

section.banner-home .banner-home-slider .slick-dots li button::before {
  display: none;
}

section.banner-home .banner-home-slider .slick-dots li.slick-active button {
  background-color: #ffffff;
  transform: scale(1.15);
}

/* Форма */
section.banner-home .banner-home-form {
  position: absolute;
  top: 0;
  right: 80px;
  bottom: 0;
  width: auto;
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

section.banner-home .item-form {
  pointer-events: auto;
  background-color: #ffffff;
  border-radius: 12px;
  width: 400px;
  max-width: 100%;
  margin: 0;
  box-shadow: 0 10px 30px rgba(19, 33, 52, 0.15);
}

section.banner-home .item-form .form-free-consult {
  padding: 32px;
  box-shadow: none;
}


section.banner-home .item-form .form .form-title {
  text-transform: none;
  text-align: left;
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: #132134;
}

section.banner-home .item-form .form input[type="text"],
section.banner-home .item-form .form input[type="tel"],
section.banner-home .item-form .form input[type="email"] {
  height: 48px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #132134;
  background-color: #f4f6f9;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

section.banner-home .item-form .form input[type="text"]:focus,
section.banner-home .item-form .form input[type="tel"]:focus,
section.banner-home .item-form .form input[type="email"]:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #3b82f6;
}

section.banner-home .item-form .form .form-submit {
  padding: 6px 0 12px;
}

section.banner-home .item-form .form .form-submit input[type="submit"] {
  width: 100%;
  height: 48px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #E66161;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

section.banner-home .item-form .form .form-submit input[type="submit"]:hover {
  background-color: #d4524e;
  box-shadow: none;
}
section.banner-home .item-form .form .form-accept {
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

section.banner-home .item-form .form .form-accept .wpcf7-list-item {
  position: relative !important;
  display: inline-flex !important;
  margin: 0 !important;
}

section.banner-home .item-form .form .form-accept label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  cursor: pointer;
  position: relative;
}

/* Текст согласия */
section.banner-home .item-form .form .form-accept span.wpcf7-list-item-label {
  font-size: 12px !important;
  color: #475569 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

section.banner-home .item-form .form .form-accept a {
  color: #132134 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

section.banner-home .item-form .form .form-accept a:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}
/* нативный чекбокс скрыт */
section.banner-home .item-form .form-accept input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

/* label: чекбокс у первой строки текста */
section.banner-home .item-form .form-accept label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  position: relative !important;
}

/* квадрат: фиксированная позиция и размер в любом состоянии */
section.banner-home .item-form .form-accept .checkbox-custom {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px 8px !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

/* никаких псевдоэлементов внутри квадрата */
section.banner-home .item-form .form-accept .checkbox-custom::before,
section.banner-home .item-form .form-accept .checkbox-custom::after,
section.banner-home .item-form .form-accept input[type="checkbox"]:checked + .checkbox-custom::before,
section.banner-home .item-form .form-accept input[type="checkbox"]:checked + .checkbox-custom::after {
  content: none !important;
  display: none !important;
}

/* выбранное состояние: меняется только фон */
section.banner-home .item-form .form-accept input[type="checkbox"]:checked + .checkbox-custom {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1.5 4L3.83333 6.5L8.5 1.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* label: выравнивание по верху, чекбокс всегда на одном месте */
section.banner-home .item-form .form-accept label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  position: relative !important;
}

/* квадрат: фиксированный размер, без сдвигов в любом состоянии */
section.banner-home .item-form .form-accept .checkbox-custom,
section.banner-home .item-form .form-accept input[type="checkbox"]:checked + .checkbox-custom,
section.banner-home .item-form .form-accept input[type="checkbox"]:focus + .checkbox-custom {
  margin: 2px 0 0 !important;
  top: auto !important;
  transform: none !important;
}

/* галочка: рисуем поверх, не влияя на раскладку */
section.banner-home .item-form .form-accept .checkbox-custom {
  position: relative !important;
}
section.banner-home .item-form .form-accept .checkbox-custom::after {
  display: block !important;          /* всегда block, меняем только прозрачность */
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  opacity: 0 !important;
  transition: opacity 0.15s ease !important;
}
section.banner-home .item-form .form-accept input[type="checkbox"]:checked + .checkbox-custom::after {
  opacity: 1 !important;
}

/* рамка ошибки привязана к list-item */
section.banner-home .wpcf7-list-item {
  position: relative;
  display: block;
  margin: 0;
}

@media screen and (max-width: 1400px) {
  section.banner-home .slick-prev {
    left: 20px !important; 
  }
  section.banner-home .slick-next {
    right: 20px !important;
  }
}

@media screen and (max-width: 1250px) {
  section.banner-home .banner-home-slider .slide-layout {
    padding: 48px 40px 70px;
  }
  section.banner-home .banner-home-slider .slide-layout .item-info {
    max-width: 440px; 
  }
  section.banner-home .banner-home-slider .item-info .info-title {
    font-size: 36px;
  }
}

@media screen and (max-width: 1024px) {
  section.banner-home .banner-home-slider .slide-layout {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 40px 24px 90px;
    min-height: auto;
  }
  section.banner-home .banner-home-slider .slide-layout .item-info {
    max-width: 100%;
  }
  
  section.banner-home .slick-arrow {
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;
  }
  section.banner-home .slick-prev {
    left: 24px !important;
  }
  section.banner-home .slick-next {
    right: 24px !important;
  }
  
  section.banner-home .banner-home-slider .slick-dots {
    bottom: 41px; 
  }

  section.banner-home .banner-home-form {
    position: static;
    justify-content: center;
    margin-top: 32px;
    width: 100%;
  }
  section.banner-home .item-form {
    width: 100%;
    max-width: 100%;
    border: none;
    box-shadow: none; 
    border-radius: 0;
  }
  section.banner-home .item-form .form-free-consult {
    padding: 0; 
  }
  section.banner-home .item-form .form .form-title {
    font-size: 22px;
  }
}

@media screen and (max-width: 576px) {
  section.banner-home .banner-home-slider .slide-layout {
    padding: 32px 16px 88px; 
  }
  section.banner-home .banner-home-slider .item-info .info-title {
    font-size: 32px;
  }
  section.banner-home .banner-home-slider .item-info .info-text {
    font-size: 15px;
  }
  section.banner-home .banner-home-slider .item-info .info-more.btn-secondary {
    width: 100%;
  }
  section.banner-home .slick-prev {
    left: 16px !important;
  }
  section.banner-home .slick-next {
    right: 16px !important;
  }
}