/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

/* =========================================
   ВЕРХНЯЯ ПАНЕЛЬ (TOP BAR)
========================================= */
.top-bar {
    background-color: #1e293b;
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts-links {
    display: flex;
    gap: 20px;
}

.contact-item {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ЦВЕТНЫЕ ИКОНКИ СОЦСЕТЕЙ */
.contact-item.tg i { color: #24A1DE; }
.contact-item.wa i { color: #25D366; }
.contact-item.insta i { color: #E4405F; }

.contact-item:hover {
    opacity: 0.8;
}

.top-phone {
    font-weight: bold;
}

/* =========================================
   НАВИГАЦИЯ (NAVBAR)
========================================= */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    color: #1e293b;
}

.site-logo {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

.logo-text span {
    color: #e11d48;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #475569;
    font-weight: 500;
}

.nav-links a:hover {
    color: #e11d48;
}

/* =========================================
   ГЛАВНЫЙ ЭКРАН (HERO)
========================================= */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: left;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: #e11d48;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #f59e0b;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.btn-primary {
    background-color: #e11d48;
    color: white;
}

.btn-primary:hover {
    background-color: #be123c;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1e293b;
}

/* =========================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
========================================= */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1e293b;
}

/* =========================================
   ГАЛЕРЕЯ (О ШКОЛЕ) - ПРАВКА РАЗМЕРА
========================================= */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 фото в ряд */
    gap: 15px;
    margin-bottom: 40px;
}

.about-img {
    width: 100%;
    height: 180px; /* Уменьшенная высота для аккуратности */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-description p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #475569;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   НАШ ПОДХОД (CARDS)
========================================= */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 40px;
    color: #e11d48;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: #1e293b;
}

/* =========================================
   КОМАНДА
========================================= */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-card {
    text-align: center;
    width: 280px;
}

.member-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.team-card h4 {
    font-size: 22px;
    color: #1e293b;
}

.team-card p {
    color: #64748b;
    font-weight: 500;
}

/* =========================================
   ЦЕНЫ (PRICING)
========================================= */
.price-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    border: 1px solid #e2e8f0;
}

.price-card.featured {
    border: 2px solid #e11d48;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.1);
}

.popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #e11d48;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.price-value {
    font-size: 40px;
    font-weight: bold;
    color: #1e293b;
    margin: 20px 0;
}

.price-value span {
    font-size: 16px;
    color: #64748b;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.price-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.price-card ul li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

/* =========================================
   ФУТЕР
========================================= */
footer {
    background-color: #1e293b;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

footer h3, footer h4 {
    margin-bottom: 20px;
}

footer p {
    color: #94a3b8;
    margin-bottom: 10px;
}

footer i {
    margin-right: 10px;
    color: #e11d48;
}

/* =========================================
   ПЛАВАЮЩАЯ КНОПКА WHATSAPP
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 1000;
}

.whatsapp-float i {
    font-size: 24px;
}

.whatsapp-float:hover {
    background-color: #1ebd5a;
    transform: translateY(-3px);
}

/* =========================================
   АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ (МОБИЛЬНАЯ ВЕРСИЯ)
========================================= */
@media (max-width: 768px) {
    .top-bar-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .navbar-flex {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .about-gallery {
        grid-template-columns: repeat(2, 1fr); /* На мобильных 2 в ряд */
    }

    .price-card.featured {
        transform: scale(1);
    }
}