/* Переменные цветов */
:root {
    --primary-color: #ee24a1;
    --background-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --green: #28a745;
    --blue: #4a76a8;
    --section-alt: #f0f2f5;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}


/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.logo-text span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Навигация */
.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Бургер меню */
.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Основные секции */
main {
    margin-top: 80px;
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: var(--section-alt);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 700;
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #ff8ec7);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    font-weight: bold;
    margin-bottom: 2rem !important;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-icon {
    width: 20px;
    height: 20px;
}
.telegram-btn { 
    background: transparent; 
    color: var(--blue); 
    border-color: var(--blue); 
}
.whatsapp-btn { 
    background: transparent; 
    color: var(--green); 
    border-color: var(--green);  
}
.vk-btn { 
    background: transparent; 
    color: var(--blue); 
    border-color: var(--blue); 
}
.phone-btn { 
    background: transparent; 
    color: var(--green); 
    border-color: var(--green); 
}

.telegram-btn:hover { 
    background: var(--blue); 
    color: white; 
    border-color: var(--blue); 
}
.whatsapp-btn:hover { 
    background: var(--green); 
    color: white; 
    border-color: var(--green);  
}
.vk-btn:hover { 
    background: var(--blue); 
    color: white; 
    border-color: var(--blue); 
}
.phone-btn:hover { 
    background: var(--green); 
    color: white; 
    border-color: var(--green); 
}

/* Особенности */
.features {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Преимущества */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.achievement-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.achievement-card ul {
    list-style: none;
    padding-left: 0;
}

.achievement-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.achievement-card li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Направления */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.direction-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.direction-card:hover {
    transform: translateY(-5px);
}

.direction-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.direction-card p {
    text-transform: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Формат занятий */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.format-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.format-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.map-link:hover {
    color: #c41d7a;
    text-decoration: underline;
}

/* Цены */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    position: relative;
}

.price-card.highlight {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Контакты */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: #c41d7a;
    text-decoration: underline;
}

.note {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.phone-number {
    margin: 1rem 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.phone-number .contact-link {
    font-size: 1.3rem;
}

/* Социальные ссылки - стили как у кнопок */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid;
    text-align: center;
}

/* Стили для конкретных соцсетей */
.social-link.vk {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.social-link.telegram {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.social-link.vk:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.social-link.telegram:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Подвал */
.footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0.5rem 1rem; /* Уменьшили padding */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 0.5rem; /* Уменьшили расстояние между пунктами */
    }

    .nav a {
        padding: 0.8rem 1rem; /* Уменьшили padding ссылок */
        border-bottom: 1px solid var(--gray-light);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    main {
        margin-top: 80px;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .price-card.highlight {
        transform: none;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature > .feature-icon {
        display: none;
    }

    .feature h3::before {
        content: attr(data-icon);
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    html {
        scroll-padding-top: 100px;
    }

    /* Адаптация логотипа для мобильных */
    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text span {
        font-size: 0.8rem;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .directions-grid,
    .price-cards,
    .contact-info,
    .achievements,
    .format-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: 0.8rem;
    }

    .feature h3::before {
        margin-right: 0;
        margin-bottom: 0.5rem;
        display: block;
    }
}