/* ==========================================================================
   ГЛОБАЛЬНЫЕ НАСТРОЙКИ (Сброс и шрифты)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; /* Плавная прокрутка при клике на меню */
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #fafafa; 
    color: #222; 
    overflow-x: hidden; 
    width: 100%; 
}

/* ==========================================================================
   ШАПКА (HEADER) - Симметрия и адаптация
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #111;
    color: white;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.logo img { 
    max-height: 50px; 
    object-fit: contain;
}

.nav-menu ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}

.nav-menu a { 
    color: white; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    font-weight: 600; 
    letter-spacing: 1px;
    transition: color 0.3s; 
}

.nav-menu a:hover { 
    color: #d81b60; 
}

.language-switcher { 
    font-weight: 600; 
    font-size: 0.9rem; 
}

.language-switcher a { 
    color: #888; 
    text-decoration: none; 
    margin: 0 5px; 
    transition: 0.3s; 
}

.language-switcher a:hover, 
.language-switcher span.active { 
    color: #d81b60; 
}

/* --- АДАПТАЦИЯ ШАПКИ ПОД ТЕЛЕФОН --- */
@media (max-width: 768px) {
    .header { 
        flex-direction: column; 
        gap: 15px; 
        padding: 15px; 
    }
    .logo { order: 1; }
    .language-switcher { order: 2; margin-bottom: 5px; }
    .nav-menu { order: 3; width: 100%; }
    .nav-menu ul { 
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 15px; 
    }
}

/* ==========================================================================
   КНОПКИ (Продающие элементы)
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background-color: #d81b60;
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { 
    background-color: #ad144b; 
    transform: translateY(-3px); /* Кнопка приподнимается */
    box-shadow: 0 8px 25px rgba(216, 27, 96, 0.6); 
}

/* ==========================================================================
   ГЕРОЙ-СЕКЦИЯ (Главный экран)
   ========================================================================== */
.hero {
    background-size: cover;
    background-position: center;
    background-color: #222; 
    background-blend-mode: overlay; /* Затемнение картинки для читаемости текста */
    color: white;
    text-align: center;
    padding: 140px 5% 120px;
    position: relative;
}

.hero::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Темная пленка поверх фото */
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 800px; 
    margin: 0 auto; 
}

.hero h1 { 
    font-size: clamp(2.2rem, 5vw, 4rem); 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 35px; 
    line-height: 1.6;
    color: #eee;
}

/* ==========================================================================
   БАЗОВЫЕ СЕКЦИИ
   ========================================================================== */
section { padding: 80px 5%; }
h2 { 
    text-align: center; 
    font-size: 2.2rem; 
    color: #111; 
    margin-bottom: 40px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* О нас / Тренер */
.coach-section { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: center; 
    gap: 50px; 
    background: white; 
}
.coach-photo img { 
    width: 100%; 
    max-width: 400px; 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
}
.coach-info { max-width: 500px; }
.coach-info h3 { color: #d81b60; font-size: 1.8rem; margin-bottom: 20px; }
.coach-info p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 15px; color: #444; }

/* Классы (Красивая сетка) */
.classes-section { background-color: #f9f9f9; }
.styles-description { text-align: center; max-width: 800px; margin: 0 auto 50px; font-size: 1.1rem; color: #555; line-height: 1.6;}
.classes-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.class-card {
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    text-decoration: none; 
    color: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06); 
    transition: all 0.3s ease;
    display: flex; 
    flex-direction: column;
}
.class-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.12); 
}
.class-img { width: 100%; height: 220px; object-fit: cover; }
.class-card h3 { padding: 25px 20px 10px; font-size: 1.4rem; color: #d81b60; }
.class-card p { padding: 0 20px 25px; font-size: 1rem; color: #666; line-height: 1.5; }



/* ==========================================================================
   ВИДЕО БЛОК
   ========================================================================== */
.promo-video { 
    display: flex; 
    justify-content: center; 
    margin: 0 auto 40px; 
    width: 100%;
}

.promo-video video { 
    width: auto; 
    max-width: 90%; /* Чтобы на телефоне оставались красивые отступы по бокам */
    max-height: 400px; /* 👈 ВОТ ЗДЕСЬ РАЗМЕР. 400px - это очень компактно! */
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
    display: block; 
    background: transparent; /* Никаких черных полей! */
}


/* ==========================================================================
   РАСПИСАНИЕ И АНОНСЫ (Вывод из CRM)
   ========================================================================== */
.schedule-container, #public-news-container { max-width: 800px; margin: 0 auto; }
.schedule-day-card { 
    background: white; 
    border-radius: 15px; 
    padding: 25px; 
    margin-bottom: 25px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    border-left: 6px solid #111; 
}
.schedule-day-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #111; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 15px; 
}
.schedule-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    border-bottom: 1px solid #f5f5f5; 
    font-size: 1.1rem;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-time { font-weight: 700; color: #d81b60; width: 90px; }
.schedule-group-name { flex-grow: 1; color: #333; font-weight: 500; }

/* ==========================================================================
   ФОРМА ЗАПИСИ (Премиум стиль)
   ========================================================================== */
.form-section { background-color: #111; color: white; text-align: center; }
.form-section h2 { color: white; }
.form-section form {
    max-width: 500px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    background: #1c1c1c; 
    padding: 40px 30px; 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.form-section input, .form-section select {
    width: 100%; 
    padding: 18px 20px; 
    border-radius: 10px; 
    border: 2px solid #333; 
    background: #2a2a2a; 
    color: white;
    font-family: inherit; 
    font-size: 1rem; 
    outline: none; 
    transition: all 0.3s ease;
}

.form-section input::placeholder { color: #888; }

/* Эффект свечения при вводе текста */
.form-section input:focus, .form-section select:focus { 
    border-color: #d81b60; 
    box-shadow: 0 0 15px rgba(216, 27, 96, 0.4); 
    background: #222;
}

.form-section button { 
    width: 100%; 
    margin-top: 15px; 
    padding: 18px; 
    font-size: 1.1rem;
}

/* ==========================================================================
   ПОДВАЛ (FOOTER)
   ========================================================================== */
.footer { 
    background: #050505; 
    color: #ccc; 
    text-align: center; 
    padding: 50px 5%; 
    border-top: 1px solid #222; 
}
.footer h2 { color: white; margin-bottom: 25px; font-size: 1.8rem; }
.footer p { margin-bottom: 12px; font-size: 1.05rem; }
.footer a { color: #d81b60; text-decoration: none; font-weight: bold; transition: 0.3s; }
.footer a:hover { color: #ff3377; }

.social-links { 
    margin-top: 30px; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}
.social-links a { 
    display: inline-block; 
    padding: 12px 25px; 
    border: 2px solid #d81b60; 
    border-radius: 30px; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
}
.social-links a:hover { 
    background: #d81b60; 
    color: white; 
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4);
}

/* ==========================================================================
   ЦЕНЫ (PRICING)
   ========================================================================== */
.pricing-section { background-color: #fff; }
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto; 
}
.price-card { 
    background: #fdfdfd; 
    padding: 40px 25px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border-top: 5px solid #111; 
    transition: all 0.3s ease; 
    text-align: center;
    display: flex;
    flex-direction: column;
}
.price-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(216, 27, 96, 0.15); 
    border-top-color: #d81b60;
}
.price-card h3 { font-size: 1.5rem; color: #111; margin-bottom: 10px; }
.price-value { font-size: 3rem; font-weight: 700; color: #d81b60; margin-bottom: 20px; }
.price-value span { font-size: 1.2rem; color: #888; font-weight: 500; }
.price-card p { color: #555; line-height: 1.6; font-size: 1rem; margin-bottom: 25px; flex-grow: 1; }
.price-card .btn-primary { width: 100%; margin-top: auto; padding: 12px; font-size: 0.9rem; }


/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (ДЛЯ АЙФОНОВ И ТЕЛЕФОНОВ)
   ========================================================================== */
@media (max-width: 768px) {
    /* Чиним шапку и меню */
    .header {
        flex-direction: column;
        padding: 10px;
    }
    .nav-menu {
        margin-top: 15px;
        margin-bottom: 10px;
        width: 100%;
    }
    .nav-menu ul {
        flex-wrap: wrap; /* Позволяем меню переноситься на новые строки */
        justify-content: center;
        gap: 10px;
    }
    .nav-menu ul li a {
        font-size: 0.85rem; /* Уменьшаем шрифт меню для телефонов */
        padding: 5px;
    }
    .language-switcher {
        margin-top: 10px;
    }

    /* Чиним Прайс-лист и Карточки */
    .pricing-grid {
        grid-template-columns: 1fr; /* Выстраиваем цены строго в одну колонку */
        gap: 20px;
    }
    .price-card {
        transform: none !important; /* Убираем эффект "наезда" центральной карточки */
        padding: 30px 20px;
        height: auto !important; /* Разрешаем карточке расти вниз, если текста много */
        min-height: min-content;
        display: flex;
        flex-direction: column;
    }
    .price-card p {
        margin-bottom: 30px; /* Отступ от текста до кнопки */
    }
    .price-card .btn-primary {
        margin-top: auto; /* Прижимаем кнопку к самому низу карточки, чтобы не вылезала */
        position: relative;
    }
}