/* ══════════════════════════════════════════════
   clients.css — модуль «Наші клієнти»
══════════════════════════════════════════════ */

.clients {
  font-family: 'Montserrat', sans-serif;
}

.clients__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.clients__section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7aa0a0;
  margin: 0 0 10px;
}

.clients__section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: #124651;
  margin: 0 0 48px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 14px;
}
.clients__section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #2d6b5e, #8dd9c6);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   СЕКЦІЯ 1 — ЛОГОТИПИ (каруселька)
══════════════════════════════════════════════ */
.clients__logos-section {
  padding: 72px 0 56px;
  background: #fff;
}

/* Контейнер із fade-масками по краях */
.clients__track-outer {
  position: relative;
  overflow: hidden;
  /* Прозорі маски ліворуч і праворуч */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* Рухомий рядок логотипів */
.clients__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
  padding: 8px 0;
}

.clients__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  flex-shrink: 0;
}

.clients__logo-item img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s;
}

.clients__logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

.clients__logo-item a {
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════════
   СЕКЦІЯ 2 — ВІДГУКИ / КЕЙСИ
══════════════════════════════════════════════ */
.clients__cases-section {
  padding: 56px 0 80px;
  background: #fff;
}

/* Сітка карток */
.clients__cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Картка кейсу */
.clients__case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  border: 1px solid #e2eeee;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.clients__case-card:hover {
  box-shadow: 0 10px 32px rgba(42,100,88,0.11);
  transform: translateY(-4px);
  border-color: #b0d8d0;
}

/* Шапка: аватар + мета */
.clients__case-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.clients__case-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2d6b5e, #8dd9c6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.clients__case-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.clients__case-avatar span {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.clients__case-company {
  font-size: 14px;
  font-weight: 800;
  color: #124651;
  margin: 0 0 5px;
  line-height: 1.2;
}
.clients__case-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(42,100,88,0.1);
  color: #2d6b5e;
}

/* Цитата */
.clients__case-quote {
  font-family: 'Philosopher', serif;
  font-size: 16px;
  line-height: 1.7;
  color: #4a6a6d;
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
  font-style: italic;
  position: relative;
}
.clients__case-quote::before {
  /* content: '\201C'; */
  font-size: 64px;
  line-height: 0;
  position: absolute;
  top: 24px;
  left: -6px;
  color: rgba(42,100,88,0.12);
  font-family: Georgia, serif;
}

/* Автор */
.clients__case-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid #edf4f4;
}
.clients__case-name {
  font-size: 13px;
  font-weight: 700;
  color: #124651;
}
.clients__case-role {
  font-size: 12px;
  color: #7aa0a0;
}

/* Результат (кейс) */
.clients__case-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(42,100,88,0.06);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid #2d6b5e;
}
.clients__case-result svg {
  width: 16px;
  height: 16px;
  stroke: #2d6b5e;
  flex-shrink: 0;
  margin-top: 1px;
}
.clients__case-result span {
  font-size: 12.5px;
  font-weight: 600;
  color: #2d6b5e;
  line-height: 1.5;
}

/* Кнопка "Показати більше" */
.clients__cases-more {
  display: flex;
  justify-content: center;
}
.clients__more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #124651;
  background: #fff;
  border: 1.5px solid #c0d8d8;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.clients__more-btn:hover {
  border-color: #1a7a7a;
  background: rgba(26,122,122,0.05);
  transform: translateY(-1px);
}
.clients__more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .clients__cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .clients__logos-section { padding: 48px 0 36px; }
  .clients__cases-section { padding: 40px 0 56px; }
  .clients__wrap          { padding: 0 20px; }

  .clients__logo-item     { padding: 0 24px; }
  .clients__logo-item img { height: 36px; }

  .clients__cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .clients__section-title { margin-bottom: 32px; }
  .clients__case-card     { padding: 22px 18px; }
}
