/* Стили для страницы "Наша команда" */

/* Шапка страницы */
.page-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 80px 40px;
  text-align: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-subtitle {
  font-size: 18px;
  color: #0090ff;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.page-description {
  font-size: 18px;
  line-height: 1.6;
  color: #4d4d4d;
  max-width: 800px;
  margin: 0 auto;
}

/* Основной контент - команда */
.team-section {
  padding: 80px 40px;
  background: #f8f9fa;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
  justify-items: center; /* Центрируем карточки в ячейках сетки */
}

/* ФИКСИРОВАННЫЙ РАЗМЕР И ЦЕНТРИРОВАНИЕ КАРТОЧЕК */
.team-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: fit-content;
  width: 100%; /* Занимает всю ширину ячейки */
  max-width: 400px; /* Фиксированная максимальная ширина */
  margin: 0 auto; /* Центрирование */
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-photo {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #f0f9ff;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0090ff;
  font-size: 64px;
}

.experience-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #0090ff 0%, #0066cc 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.team-info {
  padding: 30px;
}

.member-name {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.2;
}

.member-position {
  color: #0090ff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.member-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.skill-tag {
  background: #f0f9ff;
  color: #0090ff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e6f7ff;
}

/* Состояние когда нет сотрудников */
.no-members {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-members i {
  font-size: 64px;
  color: #0090ff;
  margin-bottom: 20px;
  display: block;
}

.no-members h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

/* Преимущества команды */
.team-benefits {
  padding: 80px 40px;
  background: #1b1d22;
  color: white;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.team-benefits h2 {
  font-size: 32px;
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.benefit-item {
  background: #252830;
  padding: 40px 30px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-8px);
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.benefit-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: white;
}

.benefit-item p {
  color: #ccc;
  line-height: 1.6;
  font-size: 14px;
}

/* Призыв к действию */
.team-cta {
  padding: 80px 40px;
  background: linear-gradient(135deg, #252830 0%, #252830 100%);
  color: white;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.team-cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.team-cta p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  background: white;
  color: #0090ff;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .team-card {
    max-width: 350px; /* Уменьшаем максимальную ширину для планшетов */
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 60px 20px;
  }
  
  .team-section {
    padding: 60px 20px;
  }
  
  .team-benefits {
    padding: 60px 20px;
  }
  
  .team-cta {
    padding: 60px 20px;
  }
  
  .page-title {
    font-size: 32px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-card {
    max-width: 100%; /* На мобильных занимает всю ширину */
    margin: 0 auto;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 40px 15px;
  }
  
  .team-section {
    padding: 40px 15px;
  }
  
  .team-info {
    padding: 20px 15px;
  }
  
  .member-name {
    font-size: 20px;
  }
  
  .member-position {
    font-size: 14px;
  }
  
  .team-benefits {
    padding: 40px 15px;
  }
  
  .team-cta {
    padding: 40px 15px;
  }
  
  .team-cta h2 {
    font-size: 28px;
  }
  
  .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .experience-badge {
    top: 15px;
    right: 15px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Специальные стили для карточек */
.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Для квадратных фото */
.team-card .team-photo img[style*="object-fit: cover"] {
  object-position: center center;
}

/* Убедимся, что все изображения правильно отображаются */
.team-photo img {
  background: #f8f9fa;
  min-height: 100%;
}
/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #0090ff;
    border-radius: 8px;
    color: #0090ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.active {
    background: #0090ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 144, 255, 0.3);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

.pagination-item.disabled:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Адаптивность пагинации */
@media (max-width: 768px) {
    .pagination {
        margin-top: 30px;
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .pagination-item {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 8px;
    }
    
    .pagination-item {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
    }
}