section.testimonials {
  background-color: #ffffff;
  overflow: hidden; 
}

section.testimonials > .main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* Шапка секции */
section.testimonials .testimonials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

section.testimonials .section-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #132134;
  text-transform: none !important;
  text-align: left !important;
}

/* Навигация слайдера */
section.testimonials .testimonials-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

section.testimonials .testim-prev,
section.testimonials .testim-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f4f6f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

section.testimonials .testim-prev:hover,
section.testimonials .testim-next:hover {
  background-color: #e5e9f0;
}

section.testimonials .testim-prev::before,
section.testimonials .testim-next::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

section.testimonials .testim-prev::before {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 12L6 8L10 4' stroke='%232563EB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

section.testimonials .testim-next::before {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12L10 8L6 4' stroke='%232563EB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

section.testimonials .testimonials-slider .slick-track {
  display: flex !important;
  align-items: stretch;
}

section.testimonials .testimonials-slider .slick-track::before,
section.testimonials .testimonials-slider .slick-track::after {
  display: none !important;
}

section.testimonials .testimonials-slider .slick-slide {
  height: auto !important;
  float: none !important;
}

/* === КАРТОЧКА ОТЗЫВА === */
section.testimonials .testim-card {
  margin: 0 10px; /* Отступы между слайдами */
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  min-height: 320px;
  display: flex !important; /* Slick перебивает display, форсируем */
  flex-direction: column;
}

/* Шапка карточки (Десктоп - в линию) */
section.testimonials .testim-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

section.testimonials .testim-logo {
  flex-shrink: 0;
  width: 100px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

section.testimonials .testim-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
}

/* Заглушка, если нет картинки-логотипа */
section.testimonials .testim-logo-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f4f6f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  color: #94a3b8;
  padding: 4px;
  line-height: 1.2;
  overflow: hidden;
}

section.testimonials .testim-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

section.testimonials .testim-company {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #132134;
  line-height: 1.2;
}

section.testimonials .testim-sphere {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.3;
}

/* Контент отзыва */
section.testimonials .testim-content {
  flex-grow: 1;
}

section.testimonials .testim-content p.info-more {
  margin: 0;
  font-size: 15px;
  color: #475569;
  line-height: 1.5;
}

/* Стили для ссылок "Читать полностью" из JS */
section.testimonials .slider-morelink {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #2563eb !important;
  font-style: normal;
  text-decoration: none;
}

section.testimonials .slider-morelink:hover {
  text-decoration: underline;
}

section.testimonials .slider-morecontent span {
  display: none;
}


/* === АДАПТИВ === */
@media screen and (max-width: 1320px) {
  section.testimonials > .main-container {
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  section.testimonials {
    padding: 40px 0;
  }
  
  /* Контейнер не обрезает слайды справа */
  section.testimonials > .main-container {
    padding-left: 20px;
    padding-right: 0; 
  }
  
  section.testimonials .testimonials-header {
    padding-right: 20px;
  }

  section.testimonials .section-title {
    font-size: 26px;
  }

  section.testimonials .testim-card {
    width: 280px !important; /* Фиксированная ширина на мобилке */
    margin: 0 16px 0 0;
    padding: 24px;
    min-height: auto;
  }
  
  /* Перестроение шапки карточки в колонку */
  section.testimonials .testim-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  section.testimonials .testim-logo {
    height: 48px;
  }
}

@media screen and (max-width: 576px) {
  section.testimonials > .main-container {
    padding-left: 16px;
  }
  section.testimonials .testimonials-header {
    padding-right: 16px;
  }
}