/* Секция спикеров */
.speakers {
    padding: 80px 0;
    background: #ffffff;
}

/* Заголовок секции */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка спикеров */
.speakers-grid {
    display: grid;
    gap: 30px;
}

.speakers-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.speakers-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.speakers-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Карточка спикера */
.speaker-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: inherit;
}

/* Изображение спикера */
.speaker-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-image img {
    transform: scale(1.05);
}

/* Оверлей на изображении */
.speaker-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-overlay {
    transform: translateY(0);
}

.speaker-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.speaker-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: #f8f9fa;
}

/* Тело карточки */
.speaker-body {
    padding: 25px 20px;
}

.speaker-body p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Сессия спикера */
.speaker-session {
    background: linear-gradient(135deg, #1da9e4 0%, #224994 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
}

/* Социальные сети спикера */
.speaker-social {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.twitter {
    background: #1da1f2;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.flip-in {
    opacity: 0;
    transform: perspective(1000px) rotateX(90deg);
    animation: flipIn 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flipIn {
    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(0);
    }
}

/* Задержки для анимации */
.speaker-card:nth-child(1) { animation-delay: 0.1s; }
.speaker-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-card:nth-child(3) { animation-delay: 0.3s; }
.speaker-card:nth-child(4) { animation-delay: 0.4s; }
.speaker-card:nth-child(5) { animation-delay: 0.5s; }
.speaker-card:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивность */
@media (max-width: 1200px) {
    .speakers-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .speakers-grid-3,
    .speakers-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .speakers {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .speaker-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .speakers-grid-2,
    .speakers-grid-3,
    .speakers-grid-4 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .speaker-image {
        height: 280px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .speaker-body {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .speakers {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .speaker-image {
        height: 220px;
    }
}

/* Дополнительные варианты стилей */
.speakers-compact .speaker-card {
    margin-bottom: 20px;
}

.speakers-compact .speaker-image {
    height: 200px;
}

.speakers-minimal .speaker-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.speakers-minimal .speaker-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}