/*
 * ШВСМ г.Алматы - Современный светлый дизайн
 * Школа высшего спортивного мастерства
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Light Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;

    /* Accent Colors */
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --accent-gold: #f59e0b;
    --accent-success: #10b981;
    --accent-danger: #ef4444;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-glow: rgba(37, 99, 235, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.1);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Content Body (WYSIWYG) ===== */
.content-body ul,
.content ul {
    list-style: disc;
    padding-left: 24px;
    margin: 16px 0;
}

.content-body ol,
.content ol {
    list-style: decimal;
    padding-left: 24px;
    margin: 16px 0;
}

.content-body li,
.content li {
    margin-bottom: 8px;
}

.content-body h2,
.content h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.content-body p,
.content p {
    margin-bottom: 16px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
/* Top Header Bar */
.top-header {
    position: relative;
    background-image: url('/static/images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px 0;
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.85);
    z-index: 0;
}

.top-header .container {
    position: relative;
    z-index: 1;
}

.top-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.emblem {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.school-info {
    display: flex;
    flex-direction: column;
}

.official-site {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.school-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 500px;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 13px;
}

.header-datetime {
    opacity: 0.9;
}

.header-weather {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-header .lang-switcher {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-header .lang-btn {
    color: rgba(255, 255, 255, 0.8);
}

.top-header .lang-btn:hover {
    color: white;
}

.top-header .lang-btn.active {
    background: white;
    color: #1e40af;
}

/* Marquee Bar */
.marquee-bar {
    background: linear-gradient(90deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.marquee-content {
    position: relative;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Main Header / Navigation */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    gap: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown li a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: white;
    background: var(--accent-primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== Main Content ===== */
.main {
    padding-top: 0;
    min-height: calc(100vh - 200px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 120px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.hero-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.hero-stat-number {
    display: inline-block;
    font-size: 48px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-suffix {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
}

.hero-stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-stats {
        gap: 16px;
        justify-content: center;
    }

    .hero-stat {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
        padding: 16px;
    }

    .hero-stat-number {
        font-size: 36px;
    }

    .hero-stat-label {
        font-size: 12px;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    color: white;
    background: var(--accent-gradient);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--text-muted);
}

/* ===== Section ===== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ===== Sport Card ===== */
.sport-card {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sport-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    transition: all var(--transition-base);
}

.sport-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(37, 99, 235, 0.3);
}

.sport-card:hover::before {
    background: linear-gradient(to top,
            rgba(37, 99, 235, 0.9) 0%,
            rgba(37, 99, 235, 0.5) 40%,
            rgba(0, 0, 0, 0.2) 100%);
}

.sport-card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.sport-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sport-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fallback for cards without images */
.sport-card--no-image {
    background: var(--accent-gradient);
}

.sport-card--no-image::before {
    background: rgba(0, 0, 0, 0.3);
}

/* Old sport-icon style - kept for backwards compatibility */
.sport-icon {
    display: none;
}

/* ===== News Card ===== */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    height: 200px;
    background: var(--bg-primary);
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 12px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Coach Card ===== */
.coach-card {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.coach-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg);
}

.coach-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.coach-card .position {
    font-size: 14px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.coach-card .sports-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.sport-tag {
    padding: 4px 10px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-primary);
    border-radius: var(--radius-full);
}

/* ===== Page Header ===== */
.page-header {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.breadcrumb {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

/* ===== Content Styles ===== */
.content {
    padding: 60px 0;
}

.content-body {
    max-width: 800px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-body h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.content-body p {
    margin-bottom: 20px;
}

/* ===== Documents List ===== */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.document-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.document-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.document-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.document-download {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.document-item:hover .document-download {
    background: var(--accent-primary);
    color: white;
}

/* ===== Gallery ===== */
.gallery-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* News Controls */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-search {
    flex: 1;
    max-width: 400px;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 14px;
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-btn {
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: var(--accent-secondary);
}

.news-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.pagination-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .news-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search {
        max-width: 100%;
    }

    .news-filters {
        justify-content: center;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 40px;
}

.footer-emblem {
    width: 70px;
    height: 70px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
}

.footer-logo p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contacts i {
    color: var(--accent-secondary);
    width: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 24px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        display: block;
        padding: 16px;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0 0 0 20px;
        box-shadow: none;
    }

    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* HTMX Loading State */
.htmx-request {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

/* ===== Partners Section (Slider) ===== */
.partners-section {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.partners-slider {
    display: flex;
    animation: slidePartners 25s linear infinite;
    width: max-content;
}

.partners-slider:hover {
    animation-play-state: paused;
}

.partners-track {
    display: flex;
    gap: 80px;
    padding: 0 40px;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
    opacity: 0.8;
    min-width: 200px;
}

.partner-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.partner-link img {
    height: 120px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

@keyframes slidePartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    cursor: default;
}

.lightbox-caption {
    color: white;
    font-size: 16px;
    margin-top: 16px;
    text-align: center;
    max-width: 80%;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.2s;
    opacity: 0.7;
}

.lightbox-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Gallery item clickable */
.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ===== Leader Detail Page ===== */
.leader-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.leader-photo-block {
    position: sticky;
    top: 120px;
}

.leader-photo-large {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.leader-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
}

.leader-info-block {
    padding: 20px 0;
}

.leader-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.leader-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    border-left: 4px solid var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.leader-contacts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-primary);
}

.contact-item a {
    color: var(--accent-primary);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.leader-message {
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.1));
    border-radius: var(--radius-lg);
    padding: 40px;
    border-left: 5px solid var(--accent-primary);
}

.leader-message h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.leader-message h3 i {
    margin-right: 10px;
}

.leader-message blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
}

.leader-bio {
    margin-top: 48px;
}

.leader-bio h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.bio-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .leader-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .leader-photo-block {
        position: static;
        max-width: 250px;
        margin: 0 auto;
    }

    .leader-stats {
        grid-template-columns: 1fr;
    }

    .leader-message {
        padding: 24px;
    }
}

/* ===== Sections Page ===== */
.sections-filters {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.section-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.section-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-sport {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-open {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-limited {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.section-info {
    flex: 1;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}

.info-label i {
    width: 20px;
    margin-right: 8px;
    color: var(--accent-primary);
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

.places-open {
    color: #10b981;
}

.places-limited {
    color: #f59e0b;
}

.places-closed {
    color: #ef4444;
}

.payment-free {
    color: #10b981;
    font-weight: 600;
}

.payment-paid {
    color: #f59e0b;
}

.payment-partial {
    color: #3b82f6;
}

.section-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.btn-disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .filters-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Section Detail Page ===== */
.section-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    align-items: start;
}

.section-main-info {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.section-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.sport-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
}

.section-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.info-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.info-block-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.info-block-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-block-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-location {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.schedule-item i {
    color: var(--accent-primary);
    font-size: 20px;
    margin-top: 3px;
}

.schedule-item strong {
    display: block;
    margin-bottom: 4px;
}

.schedule-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Detailed Schedule */
.schedule-detailed {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(59, 130, 246, 0.06));
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-size: 16px;
}

.schedule-header i {
    font-size: 20px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.schedule-day-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.schedule-day-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.schedule-day-name {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.schedule-time i {
    font-size: 12px;
    color: var(--text-muted);
}

.schedule-location-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.schedule-location-detail i {
    font-size: 10px;
}

.schedule-note {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.closed-notice {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coach-card-detail,
.sport-info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.coach-card-detail h3,
.sport-info-card h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-primary);
}

.coach-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.coach-photo-small {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.coach-photo-placeholder-small {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.coach-info strong {
    display: block;
    font-size: 16px;
}

.coach-info span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
}

.coach-info .experience {
    color: var(--accent-primary);
    font-weight: 500;
}

.coach-achievements {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.sport-info-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.section-card-mini {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
}

.section-card-mini:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.section-card-mini-header {
    margin-bottom: 12px;
}

.section-card-mini h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-card-mini p {
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 992px) {
    .section-detail-grid {
        grid-template-columns: 1fr;
    }

    .section-sidebar {
        order: -1;
    }
}

@media (max-width: 576px) {
    .info-blocks {
        grid-template-columns: 1fr;
    }
}

/* ===== Coach Detail Page ===== */
.coach-detail-section {
    padding-top: 40px;
}

.coach-detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

.coach-detail-sidebar {
    position: sticky;
    top: 100px;
}

.coach-photo-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.coach-detail-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.coach-detail-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.coach-contacts-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.coach-contacts-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.coach-contacts-card h3 i {
    color: var(--accent-primary);
    margin-right: 8px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}

.contact-link:last-child {
    border-bottom: none;
}

.contact-link:hover {
    color: var(--accent-primary);
}

.contact-link i {
    color: var(--accent-primary);
    width: 20px;
}

.coach-detail-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.coach-detail-header {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.coach-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.coach-title {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}

.coach-position-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.coach-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.coach-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.info-card-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-card-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.coach-achievements-section,
.coach-bio-section,
.coach-workplace-section,
.coach-sections-block {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.coach-achievements-section h2,
.coach-bio-section h2,
.coach-workplace-section h2,
.coach-sections-block h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.coach-achievements-section h2 i,
.coach-bio-section h2 i,
.coach-workplace-section h2 i,
.coach-sections-block h2 i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.achievements-content,
.bio-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.workplace-content p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.workplace-position {
    color: var(--text-primary);
}

.coach-sections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coach-section-item {
    display: block;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.coach-section-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.section-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.section-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.section-item-meta i {
    color: var(--accent-primary);
    margin-right: 4px;
}

@media (max-width: 992px) {
    .coach-detail-grid {
        grid-template-columns: 1fr;
    }

    .coach-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .coach-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .coach-info-grid {
        grid-template-columns: 1fr;
    }

    .coach-detail-content {
        padding: 24px;
    }

    .coach-name {
        font-size: 1.5rem;
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE STYLES ===== */

/* === Tablet (max-width: 1024px) === */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .top-header-content {
        flex-wrap: wrap;
        gap: 16px;
    }

    .emblem {
        width: 80px;
        height: 80px;
    }

    .school-name {
        font-size: 14px;
        max-width: 400px;
    }

    .section-title {
        font-size: 36px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 16px;
    }
}

/* === Mobile Large (max-width: 768px) === */
@media (max-width: 768px) {

    /* Top Header Mobile */
    .top-header {
        padding: 16px 0;
    }

    .top-header-content {
        flex-direction: column;
        text-align: center;
    }

    .top-header-left {
        flex-direction: column;
        gap: 12px;
    }

    .emblem {
        width: 70px;
        height: 70px;
    }

    .school-info {
        align-items: center;
    }

    .official-site {
        font-size: 10px;
    }

    .school-name {
        font-size: 13px;
        text-align: center;
        max-width: 100%;
    }

    .top-header-right {
        flex-direction: column;
        gap: 12px;
    }

    .header-info {
        align-items: center;
    }

    /* Navigation Mobile */
    .header {
        position: sticky;
        top: 0;
    }

    .nav {
        justify-content: space-between;
        padding: 0 16px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-secondary);
        padding: 80px 24px 24px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        text-align: left;
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0 0 16px 20px;
        box-shadow: none;
    }

    .dropdown li a {
        padding: 12px 0;
    }

    /* Marquee */
    .marquee-bar {
        padding: 8px 0;
    }

    .marquee-text {
        font-size: 12px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Section Headers */
    .section-title {
        font-size: 28px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-badge {
        font-size: 10px;
        padding: 6px 14px;
    }

    /* Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 8px;
    }

    /* Content */
    .content {
        padding: 40px 0;
    }

    .content-body {
        font-size: 15px;
    }

    /* Gallery */
    .gallery-filters {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-emblem {
        width: 60px;
        height: 60px;
    }

    .footer-contacts li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    /* News Card */
    .news-card-image {
        height: 180px;
    }

    .news-card-body {
        padding: 16px;
    }

    /* Coach Card */
    .coach-card {
        padding: 24px;
    }

    .coach-photo {
        width: 100px;
        height: 100px;
    }

    /* Sport Card */
    .sport-card {
        padding: 24px;
    }

    .sport-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Partners */
    .partners-track {
        gap: 40px;
    }

    .partner-link img {
        height: 80px;
    }
}

/* === Mobile Medium (max-width: 576px) === */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .top-header-content {
        gap: 10px;
    }

    .emblem {
        width: 60px;
        height: 60px;
    }

    .school-name {
        font-size: 12px;
        line-height: 1.4;
    }

    .official-site {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 24px;
    }

    .section-text {
        font-size: 14px;
    }

    /* Buttons smaller */
    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Lang switcher */
    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Gallery single column */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Schedule */
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    /* About info blocks */
    .info-blocks {
        grid-template-columns: 1fr;
    }

    .info-block {
        padding: 20px;
    }

    /* Documents */
    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Contacts page */
    .contact-card {
        padding: 20px;
    }

    /* Section detail */
    .section-detail-content,
    .coach-detail-content {
        padding: 20px;
    }
}

/* === Mobile Small (max-width: 480px) === */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .emblem {
        width: 50px;
        height: 50px;
    }

    .school-name {
        font-size: 11px;
    }

    .footer-logo h3 {
        font-size: 16px;
    }

    .footer-desc {
        font-size: 13px;
    }

    /* Hide weather on very small screens */
    .header-weather {
        display: none;
    }

    /* Cards more compact */
    .sport-card,
    .coach-card,
    .news-card-body {
        padding: 16px;
    }

    .sport-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .coach-photo {
        width: 80px;
        height: 80px;
    }

    /* Partner logos smaller */
    .partner-link img {
        height: 60px;
    }

    .partners-track {
        gap: 24px;
        padding: 0 20px;
    }
}

/* === Print Styles === */
@media print {

    .top-header,
    .marquee-bar,
    .header,
    .nav-toggle,
    .footer-social,
    .lang-switcher {
        display: none !important;
    }

    .footer {
        background: white;
        color: black;
        padding: 20px 0;
    }

    .section {
        padding: 20px 0;
    }
}

/* === Landscape phone orientation fix === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .nav-menu {
        padding-top: 60px;
    }
}

/* ===== Anticorruption Block ===== */
.anticorruption-block {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.anticorruption-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.anticorruption-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.anticorruption-title-block h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.anticorruption-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.anticorruption-hotline {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.hotline-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hotline-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.hotline-phone {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 56px;
    font-weight: 800;
    color: #fbbf24;
    text-decoration: none;
    transition: all var(--transition-base);
}

.hotline-phone:hover {
    transform: scale(1.05);
    color: #fcd34d;
}

.hotline-phone i {
    font-size: 40px;
    animation: phone-ring 1.5s ease-in-out infinite;
}

@keyframes phone-ring {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

.hotline-free {
    font-size: 13px;
    opacity: 0.7;
}

.anticorruption-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.anticorruption-features .feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.anticorruption-features .feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.anticorruption-features .feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
}

.anticorruption-features .feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.anticorruption-features .feature-card p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
}

.anticorruption-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.anticorruption-links .btn-primary {
    background: #fbbf24;
    color: #1e3a5f;
}

.anticorruption-links .btn-primary:hover {
    background: #fcd34d;
}

.anticorruption-links .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.anticorruption-links .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .anticorruption-block {
        padding: 24px;
    }

    .anticorruption-header {
        flex-direction: column;
        text-align: center;
    }

    .anticorruption-title-block h2 {
        font-size: 22px;
    }

    .hotline-phone {
        font-size: 40px;
    }

    .hotline-phone i {
        font-size: 28px;
    }
}