
/* ===== LIGHTING FEATURES — redesign ===== */
.lighting-features {
  padding: 90px 0 110px;
  background: #fff;
  overflow: hidden;
}
.lighting-features__title {
  font-family: "Bebas Neue";
  font-size: 54px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 750px;
  line-height: 1;
}
.lighting-features__wrapper {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 24px;
  align-items: stretch;
}
.lighting-features__items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
}
.lighting-features__items:hover {
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
}
.lighting-features__items.lf-visible {
  opacity: 1;
  transform: translateY(0);
}
.lighting-features__items:nth-child(2).lf-visible {
  transition-delay: 0.15s;
}
.lighting-features__item {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lighting-features__problem-text,
.lighting-features__solution-text {
  padding: 22px 28px 18px;
  font-size: 16px;
  line-height: 1.5;
  min-height: 110px;
}
.lighting-features__problem-text {
  background: #f2f2f2;
  border-left: 4px solid #e0e0e0;
}
.lighting-features__solution-text {
  background: linear-gradient(135deg, #031a33 0%, #0c2949 100%);
  color: #fff;
  border-left: 4px solid #3e5af7;
}
.lighting-features__solution-text span {
  color: #FFD054 !important;
  opacity: 1 !important;
}
.lighting-features__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.55;
}
.lighting-features__solution-text .lighting-features__label {
  color: #FFD054;
  opacity: 1;
}
.lighting-features__problem-text p,
.lighting-features__solution-text p {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.lighting-features__problem-image,
.lighting-features__solution-image {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 220px;
  max-height: 460px;
  margin-top: 0;
}
.lighting-features__problem-image img,
.lighting-features__solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}
.lighting-features__items:hover .lighting-features__problem-image img,
.lighting-features__items:hover .lighting-features__solution-image img {
  transform: scale(1.04);
}
.lighting-features__solution-image::before {
  content: "→ Решение";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: linear-gradient(128deg, #ffd054 0%, #ffeec2 45.19%, #ffd054 100%);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
@media (min-width: 768px) and (max-width: 1200px) {
  .lighting-features__problem-image,
  .lighting-features__solution-image {
    flex: none;
    height: 200px;
    min-height: unset;
    max-height: unset;
  }
  .lighting-features__problem-image img,
  .lighting-features__solution-image img {
    height: 200px;
  }
  .lighting-features__problem-text,
  .lighting-features__solution-text {
    min-height: 130px;
  }
}
@media (max-width: 767.98px) {
  .lighting-features {
    padding: 35px 0 50px;
  }
  .lighting-features__title {
    font-size: 28px;
    line-height: 1.05;
  }
  .lighting-features__wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }
  .lighting-features__items {
    border-radius: 12px;
    overflow: hidden;
  }
  .lighting-features__problem-image,
  .lighting-features__solution-image {
    flex: none;
    height: 200px;
    min-height: unset;
    max-height: unset;
  }
  .lighting-features__problem-image img,
  .lighting-features__solution-image img {
    height: 200px;
  }
  .lighting-features__solution-image {
    position: relative;
    margin-left: calc(-15px - 1px);
    margin-right: calc(-15px - 1px);
    width: calc(100% + 30px + 2px);
    height: 240px;
  }
  .lighting-features__solution-image img {
    height: 240px;
  }
  .lighting-features__problem-text,
  .lighting-features__solution-text {
    padding: 16px 18px 14px;
    min-height: unset;
  }
  .lighting-features__problem-text p,
  .lighting-features__solution-text p {
    font-size: 15px;
  }
}

/* ===== STEPS — redesign ===== */
.steps {
  padding: 100px 0;
  background: #fff;
  overflow: hidden;
}
.steps__title {
  font-family: "Bebas Neue";
  font-size: 54px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 670px;
  line-height: 1;
}

/* десктоп: скрываем swiper, показываем сетку */
@media (min-width: 798px) {
  .steps__slider {
    overflow: visible !important;
  }
  .steps__wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    transform: none !important;
    margin-top: 55px;
  }
  .steps__slide {
    width: auto !important;
    margin-right: 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 25px 30px;
    border-radius: 16px;
    background: #f4f4f4;
    border: 1px solid transparent;
    cursor: default;
    box-shadow: 0 0 0 rgba(62, 90, 247, 0);
    /* появление при скролле */
    opacity: 0;
    transform: translateY(35px);
  }
  .steps__slide.steps-visible {
    opacity: 1;
    transform: translateY(0);
    /* единый transition для всего — и скролл-появления и ховера */
    transition:
      opacity 0.55s ease,
      transform 0.45s ease,
      background 0.45s ease,
      border-color 0.45s ease,
      box-shadow 0.45s ease;
  }
  .steps__slide.steps-visible:hover {
    background: linear-gradient(135deg, #031a33 0%, #0c2949 100%);
    border-color: #3e5af7;
    box-shadow: 0 16px 48px rgba(62, 90, 247, 0.18);
    transform: translateY(-6px);
  }
  .steps__slide:nth-child(1) { transition-delay: 0s; }
  .steps__slide:nth-child(2) { transition-delay: 0.1s; }
  .steps__slide:nth-child(3) { transition-delay: 0.2s; }
  .steps__slide:nth-child(4) { transition-delay: 0.3s; }
  .steps__slide:hover .steps__slide-number {
    color: #ffd054;
  }
  .steps__slide:hover .steps__slide-descr {
    color: #fff;
  }
  /* разделитель-стрелка между карточками */
  .steps__slide:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #ccc;
    z-index: 2;
    pointer-events: none;
  }
  .steps__slide:hover::after {
    color: #3e5af7;
  }
  .steps__slider-buttons {
    display: none !important;
  }
}

.steps__slide-number {
  font-family: "Bebas Neue";
  font-size: 88px;
  line-height: 1;
  color: #3e5af7;
  transition: color 0.45s ease;
  padding-bottom: 0;
}
.steps__slide-descr {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-top: 20px;
  transition: color 0.45s ease;
}

/* мобиль — оставляем карусель как есть */
@media (max-width: 797.98px) {
  .steps {
    padding: 30px 0;
  }
  .steps__title {
    font-size: 28px;
  }
  .steps__slider {
    margin-top: 20px;
  }
  .steps__slide {
    row-gap: 0;
    padding: 18px 14px 22px;
    border-radius: 12px;
  }
  .steps__slide-number {
    font-size: 70px;
    padding-bottom: 10px;
  }
  .steps__slide-descr {
    font-size: 15px;
    margin-top: 10px;
  }
  .steps__slider-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    background: none;
  }
  .steps__slider-button-prev,
  .steps__slider-button-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
  }
}
/* ===== ADVANTAGES — scroll reveal + hover ===== */
.advantages {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.advantages::before {
  content: "";
  position: absolute;
  inset: 10% auto auto -180px;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 208, 84, 0.15), transparent 68%);
  pointer-events: none;
}

/* базовое состояние карточки */
.advantages__item {
  position: relative;
  overflow: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* жёлтый блик при ховере */
.advantages__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 208, 84, 0.16), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

/* иконка */
.advantages__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.advantages__icon svg {
  transition: transform 0.35s ease;
}

/* текст поверх блика */
.advantages__item-title {
  position: relative;
  z-index: 1;
}

/* ховер */
.advantages__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(17, 24, 32, 0.16);
}
.advantages__item:hover::before {
  opacity: 1;
}
.advantages__item:hover .advantages__icon {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 8px 14px rgba(255, 208, 84, 0.3));
}
.advantages__item:hover .advantages__icon svg {
  transform: rotate(-3deg);
}

/* ===== анимация появления ===== */
@keyframes advantageTileReveal {
  0% {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.advantages--ready:not(.advantages--visible) .advantages__item {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(5px);
}

.advantages--ready.advantages--visible .advantages__item {
  animation: advantageTileReveal 0.65s cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

/* после завершения анимации — чистое состояние чтобы ховер работал */
.advantages--done .advantages__item {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.advantages--visible .advantages__item:nth-child(1) { animation-delay: 0s; }
.advantages--visible .advantages__item:nth-child(2) { animation-delay: 0.09s; }
.advantages--visible .advantages__item:nth-child(3) { animation-delay: 0.18s; }
.advantages--visible .advantages__item:nth-child(4) { animation-delay: 0.27s; }
.advantages--visible .advantages__item:nth-child(5) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .advantages--ready:not(.advantages--visible) .advantages__item,
  .advantages--ready.advantages--visible .advantages__item,
  .advantages--done .advantages__item {
    opacity: 1;
    animation: none;
    transform: none;
    filter: none;
  }
  .advantages__item,
  .advantages__item::before,
  .advantages__icon,
  .advantages__icon svg {
    transition: none;
  }
}
/* advantages адаптив 768–1024px: 3 колонки вместо 5 */
@media (min-width: 768px) and (max-width: 1024px) {
  .advantages__list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
  }
  .advantages__item-title {
    font-size: 16px !important;
    margin-top: 40px !important;
  }
}

/* advantages адаптив до 767px: 2 колонки */
@media (max-width: 767.98px) {
  .advantages__list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .advantages__item-title {
    font-size: 14px !important;
    margin-top: 30px !important;
  }
  .advantages__icon {
    width: 40px !important;
    height: 36px !important;
  }
  .advantages__icon svg {
    width: 100%;
    height: auto;
  }
}
