/* ===============================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   =============================================== */

/* Анимация появления hero статистики */
.sport-hero-stat {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sport-hero-stat.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Правильный порядок появления статистики */
.sport-hero-stat:nth-child(1) { transition-delay: 0.1s; } /* Участников */
.sport-hero-stat:nth-child(2) { transition-delay: 0.3s; } /* Тренеров */
.sport-hero-stat:nth-child(3) { transition-delay: 0.5s; } /* Выпускников */

/* ===============================================
   АНИМАЦИИ ДЛЯ ФОРМЫ
   =============================================== */

/* Анимация контейнера формы */
.sport-form-container, .modern-card form {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.sport-form-container.animate, .modern-card.animate form {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация полей формы */
.form-group, .form-row {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease-out;
}

.sport-form-container.animate .form-group,
.modern-card.animate .form-group,
.sport-form-container.animate .form-row,
.modern-card.animate .form-row {
    opacity: 1;
    transform: translateX(0);
}

.sport-form-container.animate .form-group:nth-child(1),
.modern-card.animate .form-group:nth-child(1),
.sport-form-container.animate .form-row:nth-child(1),
.modern-card.animate .form-row:nth-child(1) { 
    transition-delay: 0.1s; 
}

.sport-form-container.animate .form-group:nth-child(2),
.modern-card.animate .form-group:nth-child(2),
.sport-form-container.animate .form-row:nth-child(2),
.modern-card.animate .form-row:nth-child(2) { 
    transition-delay: 0.2s; 
}

.sport-form-container.animate .form-group:nth-child(3),
.modern-card.animate .form-group:nth-child(3),
.sport-form-container.animate .form-row:nth-child(3),
.modern-card.animate .form-row:nth-child(3) { 
    transition-delay: 0.3s; 
}

.sport-form-container.animate .form-group:nth-child(4),
.modern-card.animate .form-group:nth-child(4),
.sport-form-container.animate .form-row:nth-child(4),
.modern-card.animate .form-row:nth-child(4) { 
    transition-delay: 0.4s; 
}

.sport-form-container.animate .form-group:nth-child(5),
.modern-card.animate .form-group:nth-child(5),
.sport-form-container.animate .form-row:nth-child(5),
.modern-card.animate .form-row:nth-child(5) { 
    transition-delay: 0.5s; 
}

/* ===============================================
   ЭКСПЕРИМЕНТАЛЬНЫЕ 3D ЭФФЕКТЫ
   =============================================== */

.sport-program-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.sport-program-card.animate {
    animation: card3DFlip 0.8s ease-out forwards;
}

@keyframes card3DFlip {
    0% {
        transform: rotateY(-90deg) translateY(50px);
        opacity: 0;
    }
    50% {
        transform: rotateY(-45deg) translateY(25px);
        opacity: 0.5;
    }
    100% {
        transform: rotateY(0deg) translateY(0px);
        opacity: 1;
    }
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА ДЛЯ SPORT ПРОГРАММ
   Добавить в конец sport.css
   ======================================== */

/* Базовое модальное окно */
.program-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.program-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Контент модального окна */
.program-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1920px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
}

.program-modal.active .program-modal-content {
    transform: scale(1) translateY(0);
}

/* Кнопка закрытия */
.program-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.program-modal-close:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Заголовок модального окна */
.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sport-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-header-info h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.modal-program-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.modal-program-details span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Основное содержимое */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2rem;
}

.modal-main-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-description {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.sport-description {
    background: linear-gradient(135deg, #f8faff, #f1f5f9);
    border-left-color: #667eea;
}

.modal-description p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.modal-features h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.sport-feature {
    background: linear-gradient(135deg, #f8faff, #f1f5f9);
    border-color: #c7d2fe;
}

.sport-feature:hover {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: #667eea;
}

.modal-feature:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.modal-feature i {
    color: #3b82f6;
    font-size: 1rem;
}

.sport-feature i {
    color: #667eea;
}

.modal-feature span {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Боковая панель */
.modal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-video-section,
.modal-contacts-section,
.modal-booking-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-video-section h3,
.modal-contacts-section h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    color: white;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Социальные ссылки */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.social-link:hover {
    background: #f1f5f9;
    text-decoration: none;
    color: #1f2937;
    transform: translateX(3px);
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.social-icon.vk { background: #4c75a3; }
.social-icon.telegram { background: #0088cc; }
.social-icon.phone { background: #10b981; }
.social-icon.email { background: #ef4444; }

.social-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.social-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.2;
}

.social-handle {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.2;
}

/* Секция записи */
.modal-booking-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.sport-booking {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.modal-booking-section h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.modal-booking-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.modal-booking-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.modal-booking-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

/* Разделитель */
.modal-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 1.5rem 0;
}

/* Выделенный блок */
.modal-highlight {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 1rem 0;
}

.sport-highlight {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left-color: #3b82f6;
}

.sport-highlight p {
    color: #1e40af;
}

.modal-highlight p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
}

/* Стили сложности */
.difficulty-easy {
    background: rgb(0 121 45 / 40%) !important;
    color: #1dc900 !important;
}

.difficulty-medium {
    background: rgb(249 255 0 / 24%) !important;
    color: #fffa17 !important;
}

.difficulty-hard {
    background: rgb(159 0 0 / 17%) !important;
    color: #ff2e2e !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .program-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .modal-header-info h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        height: 180px;
    }
    
    .social-link {
        padding: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-feature,
.social-link {
    animation: fadeIn 0.6s ease forwards;
}

.modal-feature:nth-child(1) { animation-delay: 0.1s; }
.modal-feature:nth-child(2) { animation-delay: 0.2s; }
.modal-feature:nth-child(3) { animation-delay: 0.3s; }
.modal-feature:nth-child(4) { animation-delay: 0.4s; }

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   КОНЕЦ СТИЛЕЙ МОДАЛЬНЫХ ОКОН
   ======================================== */
/* ========================================
   СТИЛИ ДЛЯ КЛИКАБЕЛЬНОГО DETAIL
   ======================================== */

/* Кликабельный detail элемент */
.detail.clickable-detail {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.detail.clickable-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.detail.clickable-detail:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.detail.clickable-detail:hover::before {
    left: 100%;
}

.detail.clickable-detail:active {
    transform: translateX(3px) scale(0.98);
}

/* Иконка ссылки */
.detail-link-icon {
    margin-left: auto !important;
    font-size: 0.8rem !important;
    opacity: 0.7;
    transition: all 0.3s ease;
    color: #3b82f6 !important;
}

.detail.clickable-detail:hover .detail-link-icon {
    opacity: 1;
    transform: scale(1.1);
    color: #1d4ed8 !important;
}

/* Анимация при клике */
@keyframes clickPulse {
    0% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
    100% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }
}

.detail.clickable-detail:active {
    animation: clickPulse 0.3s ease;
}

/* Дополнительные стили для различения от обычных detail */
.detail.clickable-detail span {
    font-weight: 600;
    color: #1e40af;
}

.detail.clickable-detail i:first-child {
    color: #3b82f6 !important;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 768px) {
    .detail.clickable-detail {
        padding: 0.5rem;
    }
    
    .detail-link-icon {
        font-size: 0.7rem !important;
    }
}

/* Стили для focus accessibility */
.detail.clickable-detail:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ========================================
   КОНЕЦ СТИЛЕЙ ДЛЯ КЛИКАБЕЛЬНОГО DETAIL
   ======================================== */