/* Универсальные переменные для всех страниц */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: rgba(51, 51, 51, 0.8);
    --color-primary: #ff7700;
    --color-secondary: #ff9933;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: rgba(255, 119, 0, 0.3);
    --shadow-color: rgba(255, 119, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    text-align: center;
    padding: 60px 0 40px;
    color: white;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.main-title i {
    color: var(--color-primary);
    animation: pulse 2s infinite;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation Styles */
.navigation {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid rgba(255, 119, 0, 0.3);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    /* Улучшения для touch */
    min-height: 44px;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn:hover {
    background: rgba(255, 119, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 119, 0, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ff7700, #ff9933);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 119, 0, 0.4);
}

.nav-btn i {
    font-size: 1.1rem;
}

/* Main Content Styles */
.main-content {
    background: transparent;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: #ff7700;
}

.section-description {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Lessons Grid */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.lesson-card {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 119, 0, 0.3);
    position: relative;
    overflow: hidden;
    /* Улучшения для touch */
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7700, #ff9933);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 119, 0, 0.2);
}

.lesson-card:hover::before {
    transform: scaleX(1);
}

.lesson-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.lesson-content {
    margin-bottom: 25px;
}

.lesson-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.lesson-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.lesson-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.duration, .difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.difficulty.beginner {
    color: #28a745;
}

.difficulty.intermediate {
    color: #ffc107;
}

.difficulty.advanced {
    color: #dc3545;
}

.lesson-actions {
    text-align: center;
}

.btn-start {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    /* Улучшения для touch */
    min-height: 44px;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-start:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s;
}

/* Coming Soon Styles */
.coming-soon {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.coming-soon i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.coming-soon h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.coming-soon p {
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-content p {
    font-size: 0.9rem;
}

/* Responsive Design */
/* Для очень больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .lessons-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 40px;
    }
}

/* Для планшетов в ландшафтном режиме */
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .lessons-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
}

/* Для планшетов */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 40px 0 30px;
    }
    
    .main-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .main-content {
        padding: 25px 15px;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lesson-card {
        padding: 20px;
    }
    
    .lesson-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .training-camp-block {
        padding: 24px 20px 18px 20px;
        margin: 0 10px 24px 10px;
    }
    
    .camp-preview {
        flex-direction: column;
        gap: 15px;
    }
    
    .camp-img img,
    .camp-img video {
        width: 100%;
        height: 180px;
    }
    
    .camp-info {
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}

/* Для мобильных устройств */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 60px 0 20px; /* увеличено для системной панели */
    }
    
    .main-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .navigation {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 20px 12px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .lesson-card {
        padding: 16px;
    }
    
    .lesson-title {
        font-size: 1.1rem;
    }
    
    .lesson-description {
        font-size: 0.9rem;
    }
    
    .btn-start {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .training-camp-block {
        padding: 18px 12px 14px 12px;
        margin: 0 5px 20px 5px;
        border-radius: 16px;
    }
    
    .section-header .section-title {
        font-size: 1.4rem;
    }
    
    .section-header .section-description {
        font-size: 0.9rem;
    }
    
    .camp-img img,
    .camp-img video {
        height: 160px;
        border-radius: 12px;
    }
    
    .camp-action {
        padding: 6px 18px;
        font-size: 0.9rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .training-camp-block {
        padding: 14px 8px 12px 8px;
        margin: 0 2px 16px 2px;
    }
    
    .section-header .section-title {
        font-size: 1.2rem;
    }
    
    .camp-img img,
    .camp-img video {
        height: 140px;
    }
    
    .camp-action {
        padding: 5px 14px;
        font-size: 0.85rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for buttons */
.btn-start.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-start.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} 