/* ========================================
   СТИЛИ СТРАНИЦЫ КЛИЕНТОВ
   ======================================== */

.clients-header {
  text-align: center;
  margin: 30px 0;
}

.clients-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

/* Сетка клиентов */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.client-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 30px;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.client-logo {
  margin-bottom: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-card:hover .client-logo img {
  filter: grayscale(0%);
}

.client-name {
  color: #2c2c2c;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
}

.client-name a { color: #2c2c2c; text-decoration: none; }
.client-name a:hover { text-decoration: underline; }

.client-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.client-link {
  color: #b0ff00;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s ease;
}

.client-link:hover {
  color: #9ee600;
}

/* Фильтр клиентов */
.clients-filter {
  margin: 30px 0;
  text-align: center;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.filter-button {
  background: white;
  border: 2px solid #2c2c2c;
  color: #2c2c2c;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.filter-button:hover,
.filter-button.active {
  background: #2c2c2c;
  color: white;
}

/* Статистика клиентов */
.clients-stats {
  background: linear-gradient(135deg, #2c2c2c, #444);
  color: white;
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
  text-align: center;
}

.clients-stats h2 {
  color: #b0ff00;
  margin-bottom: 30px;
  border-bottom-color: #b0ff00;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  padding: 20px;
}

.stat-item .number {
  font-size: 3em;
  font-weight: bold;
  color: #b0ff00;
  margin-bottom: 10px;
  display: block;
}

.stat-item .label {
  color: #f0f0f0;
  font-weight: bold;
  font-size: 16px;
}

/* Отзывы клиентов */
.clients-testimonials {
  margin: 50px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4em;
  color: #b0ff00;
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  margin-left: 30px;
  margin-bottom: 20px;
  font-style: italic;
  color: #333;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 30px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info {
  flex: 1;
}

.testimonial-author-name {
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 5px;
}

.testimonial-author-position {
  color: #666;
  font-size: 14px;
}

/* Логотипы клиентов */
.clients-logos {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
}

.clients-logos h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}

.logo-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.05);
}

.logo-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0%);
}

/* Кнопка "Подробнее" */
.client-details-btn {
  background: #b0ff00;
  color: #2c2c2c;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.client-details-btn:hover {
  background: #9ee600;
  transform: translateY(-2px);
}

/* Модальные окна для партнёров */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  color: #2c2c2c;
}

.modal-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.modal-client-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
  color: #2c2c2c;
  margin: 0;
  font-size: 24px;
}

.modal-body {
  padding: 30px;
  line-height: 1.8;
  color: #333;
}

.modal-body p {
  margin-bottom: 20px;
}

.modal-website {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Адаптивность для страницы клиентов */
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .client-card {
    padding: 20px;
  }

  .client-logo {
    height: 80px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-button {
    width: 200px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 20px 20px 15px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-client-logo {
    width: 80px;
    height: 80px;
  }
}
