/* =========================================
   Секция Feedback (настраиваемая)
   ========================================= */
.feedback {
  width: 100%;
  background: linear-gradient(135deg, #150027 0%, #2D004F 100%);
  padding: 80px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feedback__inner {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feedback__title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 50px;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.feedback__title--white { color: #FFFFFF; }
.feedback__title--yellow { color: #FFCD02; }

/* Слайдер */
.feedback__slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

/* Лента карт – без внутренних отступов, они задаются через margin у слайдов */
.feedback__track {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 20px 0;        /* добавлено сверху и снизу */
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Карточка отзыва */
.feedback__slide {
  flex-shrink: 0;
  height: 80%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--slide-radius, 30px);
  box-shadow: var(--slide-shadow, 0 10px 30px rgba(0,0,0,0.6));
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.7s ease,
              filter 0.7s ease;
  filter: brightness(0.5);
  opacity: 0.6;
}

/* Активная (центральная) карта */
.feedback__slide--active {
  height: 93%;
  filter: brightness(1.1);
  opacity: 1;
}

/* Стрелки */
.feedback__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #FFCD02;
  border: none;
  font-size: 48px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, background 0.3s, color 0.3s;
  z-index: 10;
  line-height: 1;
}

.feedback__arrow:hover {
  background: rgba(0,0,0,0.9);
  color: #FFE55C;
}

.feedback__arrow--prev { left: 20px; }
.feedback__arrow--next { right: 20px; }

.feedback__arrow--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Адаптив: планшеты (≤768px) */
@media (max-width: 768px) {
  .feedback {
    padding: 60px 0;
  }
  .feedback__title {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .feedback__slider {
    height: 450px;                 /* немного уменьшена высота */
  }
  .feedback__arrow {
    width: 45px;
    height: 45px;
    font-size: 36px;
  }
  .feedback__slide {
    height: 70%;
  }
  .feedback__slide--active {
    height: 90%;
  }
}

/* Адаптив: мобильные (≤480px) */
@media (max-width: 480px) {
  .feedback {
    padding: 50px 0;
  }
  .feedback__title {
    font-size: 26px;              /* шрифт меньше, чтобы не переносился */
    margin-bottom: 30px;
  }
  .feedback__slider {
    height: 320px;                /* ещё ниже для компактности */
  }
  .feedback__arrow {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
  .feedback__slide {
    height: 65%;
  }
  .feedback__slide--active {
    height: 88%;
  }
  .feedback__track {
    padding: 10px 0;              /* меньше вертикального отступа */
  }
}