
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенные стили для уровней тренировок */
.training-level.children {
    background: #fef3c7;
    color: #92400e;
}

/* Hover эффекты для соревнований */
.competition-item:hover .competition-season {
    transform: scale(1.02);
}

.competition-item:hover .competition-content h3 {
    color: #3b82f6;
}

/* Улучшенные стили для уровней тренировок */
.training-level.children {
    background: #fef3c7;
    color: #92400e;
}

/* Адаптивность для соревнований */
@media (max-width: 768px) {
    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .competition-content {
        padding: 1.5rem;
    }
    
    .competition-content h3 {
        font-size: 1.2rem;
    }
    
    .competition-details {
        gap: 0.5rem;
    }
    
    .detail {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .competitions-grid {
        gap: 1rem;
    }
    
    .competition-content {
        padding: 1rem;
    }
    
    .competition-content h3 {
        font-size: 1.1rem;
    }
    
    .competition-season {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .competition-season i {
        font-size: 1rem;
    }
}

/* Дополнительные эффекты для программ */
.sport-program-card:hover .sport-program-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Специальные стили для карточек достижений */
.achievement-item:hover .achievement-medal {
    transform: scale(1.1) rotate(360deg);
    transition: transform 0.6s ease;
}

/* Пульсация для популярной карточки */
.pricing-card.popular {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #3b82f6;
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    }
    50% {
        border-color: #1d4ed8;
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.25);
    }
}

/* Эффект свечения для кнопки формы */
.modern-btn:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Стили для детской группы в расписании */
.training-level.children {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

/* Дополнительные анимации */
.sport-hero-stat {
    transition: transform 0.3s ease;
}

.sport-hero-stat:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Улучшение читаемости текста в hero */
.sport-hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.sport-hero-subtitle {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Стили для индикатора загрузки формы */
.modern-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.modern-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Градиентные границы для карточек при hover */
.sport-program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sport-program-card:hover::after {
    opacity: 1;
}

/* Улучшение визуального восприятия секций */
.modern-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* Специальные эффекты для достижений */
.achievement-medal.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.achievement-medal.silver {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3);
}

.achievement-medal.bronze {
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.achievement-medal.special {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .sport-programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sport-programs-grid {
        grid-template-columns: 1fr;
    }
    
    .sport-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Финальные штрихи */
.container {
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Скрытие вертикальной линии на мобильных */
@media (max-width: 768px) {
    .container::before {
        display: none;
    }
}

/* Анимация появления hero контента (добавить в конец sport.css) */
.sport-hero-content {
    opacity: 0;
    animation: sportHeroFadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes sportHeroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ - SPORT PAGE
   =============================================== */

/* Базовые классы для анимаций скролла */
.scroll-element {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-element.animate {
    opacity: 1;
}

/* Анимация появления снизу */
.fade-up {
    transform: translateY(50px);
}

.fade-up.animate {
    transform: translateY(0);
}

/* Анимация появления слева */
.fade-left {
    transform: translateX(-50px);
}

.fade-left.animate {
    transform: translateX(0);
}

/* Анимация появления справа */
.fade-right {
    transform: translateX(50px);
}

.fade-right.animate {
    transform: translateX(0);
}

/* Анимация масштабирования */
.scale-up {
    transform: scale(0.8);
}

.scale-up.animate {
    transform: scale(1);
}

/* Анимация поворота */
.rotate-in {
    transform: rotateY(90deg);
    transform-origin: center;
}

.rotate-in.animate {
    transform: rotateY(0deg);
}

/* ===============================================
   СПЕЦИАЛЬНЫЕ АНИМАЦИИ ДЛЯ КАРТОЧЕК
   =============================================== */

/* НОВАЯ ПРОСТАЯ АНИМАЦИЯ ДЛЯ КАРТОЧЕК СПОРТИВНЫХ ПРОГРАММ */
/* Убираем все старые стили и делаем заново */

.sport-program-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.sport-program-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Индивидуальные задержки для каждой карточки */
.sport-program-card.rescue-multiathlon { 
    transition-delay: 0.1s; 
}

.sport-program-card.open-water { 
    transition-delay: 0.2s; 
}

.sport-program-card.pool-competitions { 
    transition-delay: 0.3s; 
}

.sport-program-card.first-aid { 
    transition-delay: 0.4s; 
}

.sport-program-card.team-training { 
    transition-delay: 0.5s; 
}

.sport-program-card.competitions { 
    transition-delay: 0.6s; 
}

/* Убираем все keyframes анимации которые могут конфликтовать */
.sport-program-card.animate {
    animation: none !important;
}
/* Анимация иконок спортивных карточек */
.sport-program-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(1) rotate(0deg);
}

.sport-program-card.animate .sport-program-icon {
    transform: scale(1.05) rotate(360deg);
    transition-delay: 0.2s;
}

/* ===============================================
   АНИМАЦИИ ДЛЯ КОНКУРЕНТНЫХ КАРТОЧЕК
   =============================================== */

.competition-item:nth-child(1) { transition-delay: 0.1s; }
.competition-item:nth-child(2) { transition-delay: 0.2s; }
.competition-item:nth-child(3) { transition-delay: 0.3s; }
.competition-item:nth-child(4) { transition-delay: 0.4s; }

/* ===============================================
   АНИМАЦИИ ДЛЯ КАРТОЧЕК ДОСТИЖЕНИЙ
   =============================================== */

.achievement-item {
    opacity: 0;
    transform: scale(0.8) rotateY(45deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.achievement-item.animate {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.achievement-item:nth-child(1) { transition-delay: 0.1s; }
.achievement-item:nth-child(2) { transition-delay: 0.2s; }
.achievement-item:nth-child(3) { transition-delay: 0.3s; }
.achievement-item:nth-child(4) { transition-delay: 0.4s; }
.achievement-item:nth-child(5) { transition-delay: 0.5s; }
.achievement-item:nth-child(6) { transition-delay: 0.6s; }

/* Специальная анимация для медалей */
.achievement-medal {
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.achievement-item.animate .achievement-medal {
    transform: scale(1) rotate(0deg);
    transition-delay: 0.4s;
}

/* ===============================================
   АНИМАЦИИ ДЛЯ КАРТОЧЕК ПРЕИМУЩЕСТВ
   =============================================== */

.advantage-item {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.advantage-item.animate {
    opacity: 1;
}

/* Красивые направленные анимации для преимуществ */
.advantage-item:nth-child(1) {
    transform: translateX(-80px) rotateY(-30deg) scale(0.8);
    transition-delay: 0.1s;
}

.advantage-item:nth-child(2) {
    transform: translateY(-80px) rotateX(-30deg) scale(0.8);
    transition-delay: 0.2s;
}

.advantage-item:nth-child(3) {
    transform: translateX(80px) rotateY(30deg) scale(0.8);
    transition-delay: 0.3s;
}

.advantage-item:nth-child(4) {
    transform: translateX(-80px) translateY(40px) rotateZ(-15deg) scale(0.8);
    transition-delay: 0.4s;
}

.advantage-item:nth-child(5) {
    transform: translateY(80px) rotateX(30deg) scale(0.8);
    transition-delay: 0.5s;
}

.advantage-item:nth-child(6) {
    transform: translateX(80px) translateY(40px) rotateZ(15deg) scale(0.8);
    transition-delay: 0.6s;
}

.advantage-item.animate {
    transform: translateX(0) translateY(0) rotateX(0) rotateY(0) rotateZ(0) scale(1);
}

/* Анимация иконок преимуществ */
.advantage-icon {
    transform: scale(0.5) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.advantage-item.animate .advantage-icon {
    transform: scale(1) rotate(0deg);
    transition-delay: 0.4s;
}

/* Дополнительные эффекты при анимации */
.advantage-item.animate {
    animation: advantageGlow 0.8s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
}

@keyframes advantageGlow {
    0% { box-shadow: 0 0 0 rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 0 rgba(59, 130, 246, 0); }
}

/* ===============================================
   АНИМАЦИИ ДЛЯ ЦЕНОВЫХ КАРТОЧЕК
   =============================================== */

.pricing-card {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: all 0.6s ease-out;
}

.pricing-card.animate {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.pricing-card:nth-child(1) { transition-delay: 0.1s; }
.pricing-card:nth-child(2) { transition-delay: 0.3s; }
.pricing-card:nth-child(3) { transition-delay: 0.5s; }

/* Анимация цены */
.pricing-price {
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pricing-card.animate .pricing-price {
    transform: scale(1);
    transition-delay: 0.4s;
}

/* ===============================================
   АНИМАЦИИ ДЛЯ РАСПИСАНИЯ
   =============================================== */

.schedule-tab {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
}

.schedule-tab.animate {
    opacity: 1;
    transform: translateY(0);
}

.schedule-tab:nth-child(1) { transition-delay: 0.1s; }
.schedule-tab:nth-child(2) { transition-delay: 0.2s; }
.schedule-tab:nth-child(3) { transition-delay: 0.3s; }
.schedule-tab:nth-child(4) { transition-delay: 0.4s; }
.schedule-tab:nth-child(5) { transition-delay: 0.5s; }
.schedule-tab:nth-child(6) { transition-delay: 0.6s; }
.schedule-tab:nth-child(7) { transition-delay: 0.7s; }

.training-slot {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease-out;
}

.training-slot.animate {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================================
   АНИМАЦИИ ДЛЯ ЗАГОЛОВКОВ СЕКЦИЙ
   =============================================== */

.card-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.card-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.card-description {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease-out;
    transition-delay: 0.2s;
}

.card-description.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   АНИМАЦИИ ИКОНОК С ПОВОРОТАМИ
   =============================================== */

/* Базовые повороты для разных типов иконок */
.card-icon {
    transform: scale(0) rotate(0deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card-icon.animate {
    transform: scale(1) rotate(360deg);
}

/* Специальные повороты для разных иконок */
.sport-icon.animate {
    transform: scale(1) rotate(720deg) !important; /* Двойной поворот */
}

.advantages-icon.animate {
    transform: scale(1) rotate(-360deg) !important; /* Обратный поворот */
}

.schedule-icon.animate {
    transform: scale(1) rotate(360deg) rotateY(180deg) !important; /* 3D поворот */
}

.pricing-icon.animate {
    transform: scale(1) rotate(360deg) rotateX(360deg) !important; /* 3D поворот по X */
}

.form-icon.animate {
    transform: scale(1) rotate(360deg) !important; /* Обычный поворот без переворота */
}

.achievements-icon.animate {
    transform: scale(1) rotate(360deg) rotateZ(360deg) !important; /* Двойной Z поворот */
}

/* ===============================================
   ПУЛЬСИРУЮЩИЕ ЭФФЕКТЫ
   =============================================== */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}

.animate .card-icon {
    animation: pulse-glow 2s infinite;
    animation-delay: 1s;
}

/* ===============================================
   ВОЛНОВЫЕ АНИМАЦИИ ДЛЯ ГРУПП ЭЛЕМЕНТОВ
   =============================================== */

/* Волновая анимация для сетки программ */
.sport-programs-grid.wave-animation .sport-program-card {
    animation: cardWave 0.8s ease-out forwards;
}

@keyframes cardWave {
    0% {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }
    60% {
        transform: translateY(-5px) scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Специальная анимация для advantages */
.advantages-grid.wave-animation .advantage-item {
    animation: advantageWave 1s ease-out forwards;
}

@keyframes advantageWave {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(-90deg) scale(0.8);
    }
    30% {
        opacity: 0.3;
        transform: translateY(20px) rotateX(-45deg) scale(0.9);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-5px) rotateX(10deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* ===============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ АНИМАЦИЙ
   =============================================== */

@media (max-width: 768px) {
    /* Упрощенные анимации для мобильных */
    .scroll-element {
        transition-duration: 0.5s;
    }
    
    .sport-program-card:nth-child(n) { 
        transition-delay: 0.1s; 
    }
    
    .achievement-item:nth-child(n) { 
        transition-delay: 0.1s; 
    }
    
    .advantage-item:nth-child(n) { 
        transition-delay: 0.1s; 
    }
    
    .pricing-card:nth-child(n) { 
        transition-delay: 0.1s; 
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Отключение анимаций для пользователей с ограниченными возможностями */
    .scroll-element,
    .sport-program-card,
    .competition-item,
    .achievement-item,
    .advantage-item,
    .pricing-card,
    .schedule-tab,
    .training-slot,
    .card-title,
    .card-description,
    .card-icon {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}