/* ============ EXTERIOR PEEK SLIDER ============ */
.exterior-section {
  width: 100%;
  padding: 60px 0;
  background: #f5f5f7;
  overflow: hidden;
}

.exterior-peek {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Лента слайдов */
.exterior-peek__track {
  display: flex;
  align-items: center;
  gap: 24px;
  /* Отступы по бокам = (100% - ширина центрального слайда) / 2 */
  padding: 0 calc((100% - 66%) / 2);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* Слайд: 66% ширины контейнера (центральный полный, по бокам видно ~17% слева и справа) */
.exterior-peek__slide {
  position: relative;
  flex: 0 0 66%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
              opacity   0.6s ease,
              filter    0.6s ease;
  opacity: 0.45;
  transform: scale(0.92);
  filter: brightness(0.75);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Активный (центральный) слайд */
.exterior-peek__slide.active {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
}

.exterior-peek__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Градиент снизу для подписи */
.exterior-peek__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}

/* Подпись в левом нижнем углу — только у активного */
.exterior-peek__caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  max-width: 70%;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

.exterior-peek__slide.active .exterior-peek__caption {
  opacity: 1;
}

/* Стрелки */
.exterior-peek__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.exterior-peek__arrow:hover {
  background: #fff;
}

.exterior-peek__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.exterior-peek__arrow svg {
  width: 22px;
  height: 22px;
}

.exterior-peek__arrow.prev { left: 24px; }
.exterior-peek__arrow.next { right: 24px; }

/* Адаптив */
@media (max-width: 900px) {
  .exterior-peek__track {
    gap: 16px;
    padding: 0 calc((100% - 82%) / 2);
  }
  .exterior-peek__slide {
    flex: 0 0 82%;
  }
  .exterior-peek__caption {
    font-size: 16px;
    left: 20px;
    bottom: 20px;
  }
  .exterior-peek__arrow {
    width: 44px;
    height: 44px;
  }
  .exterior-peek__arrow.prev { left: 10px; }
  .exterior-peek__arrow.next { right: 10px; }
}

@media (max-width: 560px) {
  .exterior-peek__track {
    padding: 0 calc((100% - 88%) / 2);
  }
  .exterior-peek__slide {
    flex: 0 0 88%;
    border-radius: 14px;
  }
  .exterior-peek__caption {
    font-size: 14px;
    max-width: 85%;
  }
}

.exterior-peek__slide.is-clone .exterior-peek__caption {
  /* всё равно работает через .active, но на всякий случай */
  opacity: 0 !important;
}

/* ============ INTERIOR — 3 статичных фото ============ */
.interior-section {
  width: 100%;
  padding: 40px 0 80px;
  background: #fff;
}

.interior-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  /* Пропорции верхнего ряда: 1512 : 1074 ≈ 58.5% : 41.5% */
  grid-template-columns: 1512fr 1074fr;
  gap: 16px;
}

/* Верхний ряд */
.interior-card--1,
.interior-card--2 {
  grid-row: 1;
  aspect-ratio: 1512 / 900;  /* по умолчанию берём первую — обе выравниваются по одной высоте */
}
.interior-card--2 {
  aspect-ratio: 1074 / 900;
}

/* Нижний ряд — на всю ширину */
.interior-card--3 {
  grid-column: 1 / -1;
  aspect-ratio: 1800 / 621;
}

/* Карточка */
.interior-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.interior-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.interior-card:hover img {
  transform: scale(1.03);
}

/* Градиент снизу для читаемости подписи */
.interior-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

/* Подпись в левом нижнем углу */
.interior-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: calc(100% - 48px);
}

/* ============ Адаптив ============ */
@media (max-width: 900px) {
  .interior-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .interior-card--1,
  .interior-card--2,
  .interior-card--3 {
    grid-column: 1;
    aspect-ratio: 16 / 10;
  }
  .interior-card--3 {
    aspect-ratio: 1800 / 900;
  }
  .interior-caption {
    font-size: 16px;
    left: 18px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .interior-section {
    padding: 20px 0 50px;
  }
  .interior-grid {
    padding: 0 16px;
  }
  .interior-caption {
    font-size: 14px;
  }
}

/* ============ ЛИД-РАЗДЕЛИТЕЛЬ ============ */
.lead-divider {
  width: 100%;
  padding: 24px;              /* внешние поля, фон НЕ красим */
  background: transparent;
  padding-bottom: 80px;
}

.lead-divider__inner {
  max-width: 1400px;          /* как у .interior-grid */
  margin: 0 auto;
  padding: 32px 40px;
  background: #f1f1f3;        /* серая плашка — только внутри контейнера */
  border-radius: 20px;        /* скругляем края, чтобы смотрелось карточкой */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.lead-divider__text {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lead-divider__text strong {
  font-weight: 700;
}

/* Кнопка — чёрная капсула */
.lead-divider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.lead-divider__btn:hover {
  background: #c1121f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193, 18, 31, 0.3);
}

.lead-divider__btn:active {
  transform: translateY(0) scale(0.98);
}

/* ============ Адаптив ============ */
@media (max-width: 768px) {
  .lead-divider {
    padding: 16px;
  }
  .lead-divider__inner {
    padding: 24px 24px;
    gap: 20px;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
  }
  .lead-divider__text {
    font-size: 16px;
  }
  .lead-divider__btn {
    padding: 12px 26px;
    font-size: 14px;
  }
}

/* ============ ТЕХНОЛОГИИ — fullwidth фон 1800×900 ============ */
.tech-section {
  position: relative;
  width: 100%;
  aspect-ratio: 1800 / 900;   /* сохраняем оригинальные пропорции фото */
  overflow: hidden;
  display: flex;
  align-items: center;
}

.tech-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Градиент слева для читаемости текста */
.tech-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.tech-section__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
  color: #fff;
margin-top: -25vw;
}

.tech-section__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.tech-section__text {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  max-width: 620px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

/* ============ Адаптив ============ */
@media (max-width: 900px) {
  .tech-section {
    aspect-ratio: auto;
    min-height: 500px;
    padding: 60px 0;
  }
  .tech-section__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.65) 100%
    );
  }
  .tech-section__content {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .tech-section {
    min-height: 420px;
  }
  .tech-section__title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .tech-section__text {
    font-size: 15px;
  }
}

.safety-section {
  padding: 60px 0;
  background: #fff;
  color: #000;
}

.safety-section .section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #000;
}

/* Выносим слайдер за пределы .container на всю ширину */
.safety-slider {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.safety-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.safety-slide {
  position: relative;
  flex: 0 0 66%;
  box-sizing: border-box;
  padding: 0 10px;
  transition: opacity 0.5s ease, filter 0.5s ease;
  opacity: 0.35;
  filter: brightness(0.45);
}

.safety-slide.active {
  opacity: 1;
  filter: brightness(1);
}

.safety-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 30px;
  bottom: 25px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  max-width: 60%;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.safety-slide.active .slide-caption {
  opacity: 1;
}

.safety-prev,
.safety-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.safety-prev:hover,
.safety-next:hover { background: rgba(0,0,0,0.75); }

.safety-prev { left: 20px; }
.safety-next { right: 20px; }

@media (max-width: 768px) {
  .safety-slide { flex: 0 0 85%; }
  .slide-caption { font-size: 14px; left: 15px; bottom: 12px; }
}