:root {
  --slideshow-height: 600px;
}

/* Слайдер и параллакс */
.slideshow {
  position: relative;
  width: 100vw;
  height: var(--slideshow-height);
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: #fff;
}
.slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.parallax-layer {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  transform: translate3d(0,0,0);
  will-change: transform;
}

/* Текст слева */
.promo-text {
  position: absolute;
  top: 50%;
  left: calc((100vw - 1300px) / 2 + 50px);
  transform: translateY(-50%);
  z-index: 10;
  max-width: 480px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.45);
  padding: 25px 30px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.promo-text h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.promo-text p { font-size: 15px; line-height: 1.4; color: #f0f0f0; }

/* Карточка формы справа */
.fixed-form {
  position: absolute;
  top: 50%;
  right: calc((100vw - 1300px) / 2 + 50px);
  transform: translateY(-50%);
  width: 380px;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 35px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  text-align: center; /* заголовки по центру */
  z-index: 10;
  backdrop-filter: blur(6px);
}
.fixed-form h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 10px;
}
.fixed-form .subtext {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 18px;
  font-weight: bold;
}



/* ВАЖНО: правки именно для формы */
.fixed-form .lc-label { display: none !important; }           /* 3. скрыть лейбл */
.fixed-form .lcform { text-align: left; }                     /* локально тексты слева */
.fixed-form .lc-agree {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;                                /* 4. текст слева */
  margin: 10px 0 14px 0 !important;
}
.fixed-form .lc-agree span { display: block; }

/* Адаптивность */
@media (max-width: 1300px) {
  .fixed-form { right: 40px; width: 320px; }
  .promo-text { left: 40px; max-width: 420px; }
}
@media (max-width: 900px) and (min-width: 750px) {
  .fixed-form { right: 30px; width: 320px; padding: 28px 30px; }
  .promo-text { left: 30px; max-width: 400px; }
}
@media (max-width: 750px) {
  .parallax-layer { background-position: center 90%; }
  .slideshow { height: 500px; }
  .promo-text {
    position: relative; top: -36px; left: 0; transform: none;
    width: 100%; max-width: none; margin: 0; text-align: center;
    padding: 28px 26px 14px; background: none; border-radius: 0; box-sizing: border-box; z-index: 8;
  }
  .slideshow::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0) 70%);
    z-index: 5; pointer-events: none;
  }
  .promo-text h2 { font-size: 22px; line-height: 1.35; margin-bottom: 6px; }
  .promo-text p  { font-size: 16px; color: #fff; margin-bottom: 6px; }

  .fixed-form {
    bottom: 40px; top: auto; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 360px; right: auto; z-index: 10; padding: 18px;
  }
  .fixed-form h3 { font-size: 17px; margin-bottom: 8px; }
  .fixed-form .subtext { font-size: 13px; margin-bottom: 14px; }
}
@media (max-width: 500px) {
  .promo-text { top: -22px; padding: 22px 18px 12px; }
  .promo-text h2 { font-size: 20px; }
  .promo-text p  { font-size: 14px; }
  .fixed-form { bottom: 30px; padding: 16px; }
  .fixed-form h3 { font-size: 16px; }
  .fixed-form .subtext { font-size: 12px; }
}
@media (max-width: 358px) {
  .slideshow { height: 505px !important; }
  .fixed-form { bottom: 5px !important; }
}

/* Доп. правка: между 359px и 396px — опустить форму и увеличить высоту */
@media (max-width: 396px) and (min-width: 359px) {
  .slideshow { height: 500px; }
  .fixed-form { bottom: 10px; }
}

/* Доп. правка: между 501px и 596px — опустить форму и увеличить высоту */
@media (max-width: 596px) and (min-width: 501px) {
  .slideshow { height: 500px; }
  .fixed-form { bottom: 10px; }
}

/* === FIX: правильные размеры заголовка на мобильных === */
@media (max-width: 750px) {
  .promo-text h1,
  .promo-text .codeh1 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
}
@media (max-width: 500px) {
  .promo-text h1,
  .promo-text .codeh1 {
    font-size: 20px !important;
  }
}
