* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Навигационное меню — бирюзовая версия */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #009688 0%, #26a69a 100%);
    z-index: 1000;
    padding: 1.2rem 0;
    box-shadow: 0 5px 25px rgba(0, 150, 136, 0.25);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: linear-gradient(135deg, #008778 0%, #1b9688 100%);
    padding: 0.8rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo h2 {
    color: white;
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo span {
    display: block;
    font-size: 0.9rem;
    color: #b2dfdb;
    margin-top: -0.3rem;
    font-weight: 500;
}

/* Список ссылок */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

/* Стили для ссылок */
.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 25px;
}

/* Активная ссылка (текущий раздел) */
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* Эффект при наведении */
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Анимация подчёркивания */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffeb3b; /* Жёлтый акцент для контраста */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 70%;
}

/* Индикатор активного раздела */
.nav-links a.active::after {
    width: 80%;
    background: #ffeb3b;
}

/* Главный баннер */
.header {
    background: linear-gradient(135deg, #009688 0%, #26a69a 100%);
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.header p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: #4db6ac;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 182, 172, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(77, 182, 172, 0.4);
}

/* О нас */
.about {
    padding: 5rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #00796b;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #009688, #26a69a);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.about-text ul {
    list-style: none;
}

.about-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4db6ac;
    font-weight: bold;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 150, 136, 0.15);
}

/* Занятия */
.classes {
    padding: 5rem 0;
    background: #e0f2f1;
}

.classes h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #00796b;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.class-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Карточки занятий (продолжение) */
.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 150, 136, 0.2);
}

.class-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.class-card h3 {
    padding: 1rem;
    margin: 0;
    color: #00796b;
    border-bottom: 1px solid #e0f2f1;
}

.class-card p {
    padding: 1rem;
    color: #555;
}

/* Контакты */
.contacts {
    padding: 5rem 0;
    background: white;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #00796b;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    color: #009688;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.map img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 150, 136, 0.1);
}

/* Подвал */
.footer {
    background: #00796b;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .header {
        padding: 6rem 0 3rem;
        margin-top: 120px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .class-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header h1 {
        font-size: 2rem;
    }

    .about h2,
    .classes h2,
    .contacts h2 {
        font-size: 2rem;
    }
}