/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2C3E50;
    --secondary: #3498DB;
    --accent: #E74C3C;
    --light: #ECF0F1;
    --dark: #1A252F;
    --success: #27AE60;
    --warning: #F39C12;
    --gray: #95A5A6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

/* ===== ШАПКА САЙТА ===== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem; /* Уменьшено с 2rem до 1.2rem */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem; /* Уменьшено с 1.05rem до 0.95rem */
    padding: 0.5rem 0.8rem; /* Уменьшено с 1rem до 0.8rem */
    border-radius: 5px;
    transition: var(--transition);
    white-space: nowrap; /* Запрещаем перенос слов */
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav a.active {
    background: var(--secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.95) 100%), url('../images/index_photo.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--secondary);
    font-weight: 500;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-accent:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.btn-light {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===== О НАС СЕКЦИЯ ===== */
.about {
    padding: 5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



.about-text h4 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== ФОТОГАЛЕРЕЯ ===== */
.gallery {
    padding: 3rem 2rem;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
    background: var(--light);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item::before {
    content: 'Фотография занятия';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.85);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.advantage-card h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.advantage-card p {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== ОТДЕЛЕНИЯ ===== */
.departments {
    padding: 5rem 2rem;
    background: white;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.department-card {
    background: linear-gradient(135deg, white 0%, var(--light) 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.department-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.department-header h4 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.department-header .age {
    font-size: 0.95rem;
    opacity: 0.9;
    display: block;
}

.department-body {
    padding: 1.5rem;
}

.department-body p {
    margin-bottom: 1rem;
    color: var(--dark);
}

.department-footer {
    padding: 1rem 1.5rem;
    background: var(--light);
    text-align: center;
}

/* ===== ЦЕНЫ ===== */
.pricing {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    text-align: center;
}

.pricing .section-title h3 {
    color: white;
}

.pricing .section-title h3::after {
    background: var(--secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.price-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.price-card.popular {
    background: rgba(52, 152, 219, 0.2);
    border-color: var(--secondary);
    position: relative;
    z-index: 10;
}

.price-card.popular::before {
    content: 'ПОПУЛЯРНО';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.price-features {
    text-align: left;
    margin: 1.5rem 0;
}

.price-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.discount-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ===== КОНТАКТЫ В ФУТЕРЕ ===== */
.contact-bar {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

.contact-bar h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.telegram-btn {
    background: #2CA5E0;
    color: white;
}

.telegram-btn:hover {
    background: #1c8cd8;
    transform: translateY(-2px);
}

.callback-btn {
    background: var(--accent);
    color: white;
}

.callback-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ===== ФУТЕР ===== */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-address {
    margin: 1rem 0;
    font-size: 0.95rem;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 968px) {
    .header-container {
        padding: 0 1rem;
    }

    nav ul {
        gap: 0.8rem; /* Уменьшено для мобильных */
    }

    nav a {
        font-size: 0.85rem; /* Уменьшено для мобильных */
        padding: 0.4rem 0.6rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        text-align: center;
    }

    nav a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        white-space: normal; /* Разрешаем перенос на мобильных */
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .section-title h3 {
        font-size: 2rem;
    }

    .price-card.popular::before {
        font-size: 0.75rem;
        padding: 0.2rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.4rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h3 {
        font-size: 1.6rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .gallery-grid,
    .advantages-grid,
    .departments-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.about-text-list {
    margin-left: 5%;
    margin-bottom: 2%;
}

.about-text-par {
    margin-bottom: 0;
    padding-bottom: 0;
}

@font-face {
    font-family: 'AudioWide';
    src: url('../fonts/Audiowide-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.hero-h1 {
    font-family: AudioWide;
}

.about-text {
    width: 100%;
}