/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    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(241, 196, 15, 0.9) 0%, rgba(243, 156, 18, 0.95) 100%), url('../images/preschool_photo.jpg')
        ;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    opacity: 0.95;
}

/* ===== КНОПКИ ===== */
.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-download {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-download:hover {
    background: #219653;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

/* ===== КОНТЕНТ СЕКЦИЯ ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.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(--warning);
    border-radius: 2px;
}

/* ===== ОПИСАНИЕ ===== */
.description {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.description h4 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--warning);
    padding-bottom: 0.5rem;
}

.description p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.full-description {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--gray);
}

.show-more-btn {
    background: var(--warning);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
}

.show-more-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* ===== ПРОГРАММА ОБУЧЕНИЯ ===== */
.program {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program-item {
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--warning);
    transition: var(--transition);
}

.program-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.program-item h5 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.program-item ul {
    list-style: none;
    padding-left: 0;
}

.program-item li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.program-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ===== ФОТОГАЛЕРЕЯ ===== */
.gallery {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.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(241, 196, 15, 0.85);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* ===== ЦЕНЫ ===== */
.pricing {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.pricing h4 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    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.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--warning) 0%, #f1c40f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 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-top: 1rem;
    font-weight: 600;
}

/* ===== КОНТАКТЫ В ФУТЕРЕ ===== */
.contact-bar {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.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;
    margin: 0;
}

.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.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 3rem 1rem;
    }

    .description,
    .program,
    .gallery,
    .pricing {
        padding: 2rem;
    }

    .program-grid,
    .gallery-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@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: 3rem 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .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.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title h3 {
        font-size: 1.6rem;
    }

    .price-amount {
        font-size: 2.2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
@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%;
}