/* ============================= */
/* Утилитарные классы - новое */
/* ============================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #fbbe49;
    color: #000;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 10px;
    outline: 2px solid #fbbe49;
}
header nav a.active {
    background-color: #e0a700;
    color: #fff;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* ============================= */
/* Основные стили */
/* ============================= */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1864b8;
    color: #fff;
}

/* Контейнер */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
header {
    padding: 20px 0;
    background-color: #1864b8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

header h1 {
    display: inline-block;
    margin: 0;
    font-size: 28px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

header nav a {
    display: inline-block;
    color: #fff;                
    text-decoration: none;
    margin-left: 15px;
    padding: 10px 18px;
    border-radius: 6px;
    background-color: #fbbe49;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.3s ease, box-shadow 0.25s ease;
}
header nav a:hover {
    background-color: #e0a700;
    color: #fff;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
header nav a:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}
/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0f5fa8; /* фон на случай, если видео не загрузилось */
}
/* Блок для видеофонa */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
/* Видео внутри hero-bg */
.hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* чтобы видео заполняло весь блок */
    transform: translate(-50%, -50%);
}
/* Градиент/затемнение поверх видео */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(31,112,193,0.6), rgba(24,100,184,1.0));
    z-index: 1; /* поверх видео, под текстом */
}
.hero-content {
    position: relative;
    z-index: 2; /* текст поверх видео и градиента */
    width: 100%;
    color: #fff;
    padding: 0 1.5rem;
    max-width: 900px;
    text-align: center;
}
.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}
/* Плавная микро-анимация кнопки */
.hero .btn {
    display: inline-block;
    padding: 22px 55px;
    font-size: 1.4em;
    background: #fbbe49;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, background-color 0.3s ease, box-shadow 0.25s ease;
}

/* ============================= */
/* Новые классы для кнопки - вместо inline-transform */
/* ============================= */
.btn-hover {
    transform: translateY(-6px) scale(1.12);
}

.btn-active {
    transform: translateY(2px) scale(1.1);
}

.hero .btn:hover {
    background: #e0a700;
    transform: translateY(-6px) scale(1.12);
    box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

.hero .btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ABOUT */
#about {
    padding: 80px 0;
    background: linear-gradient(to bottom, #1f70c1, #1864b8);
}

#about ul {
    list-style: none;   /* убираем стандартные точки */
    margin: 0;
    padding: 0;
}

#about ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}
#about ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #fbbe49;
}

/* PROGRAM */
#program {
    padding: 80px 0;
}

#program ul {
    list-style: none;   /* убираем стандартные точки */
    margin: 0;
    padding: 0;
}

#program ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

#program ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #fbbe49;
}

/* SIGNUP */
#signup {
    padding: 80px 0;
    text-align: center;
}

form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

form input {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

form button {
    padding: 14px;
    background: #fbbe49;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

form button:hover {
    background: #e0a700;
    color: #fff;
    transform: translateY(-2px);
}
/* ============================= */
/* FAQ аккордеон с плавным раскрытием */
/* ============================= */
#faq {
    padding: 80px 0;
    background: linear-gradient(to bottom, #1864b8, #1458a0);
}

#faq h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #ffffff;
}

.faq-item {
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255,255,255,0.2);
}

.faq-question {
    margin: 0;
    font-size: 18px;
    color: #fff;
    position: relative;  /* обязательно для абсолютного позиционирования стрелки */
    padding-right: 25px; /* место для стрелки */
}

.faq-answer {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    
    /* для плавного раскрытия */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer.open {
    max-height: 500px; /* достаточно для текста, можно увеличить */
}
.faq-question::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

/* когда вопрос открыт, вращаем стрелку */
.faq-question.open::after {
    transform: translateY(-50%) rotate(-180deg);
}

/* ============================= */
/* Кнопка "Записаться" после FAQ */
/* ============================= */
.faq-back-to-signup {
    text-align: center;
    margin: 30px 0 60px;
}

.faq-back-to-signup .btn {
    padding: 18px 50px;
    font-size: 1.2em;
    background: #fbbe49;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.25s;
}

.faq-back-to-signup .btn:hover {
    background: #e0a700;
    transform: translateY(-2px);
    color: #fff;
}

/* Блок сообщений формы */
#form-message > div {
    display: inline-block; /* ширина под текст */
    max-width: 100%;       /* не выходит за пределы формы на маленьких экранах */
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;    /* текст по центру */
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: #1864b8;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
}
/* Контакты - ссылки белые с hover */
#contacts a {
    color: #fff;
    text-decoration: underline;
}

#contacts a:hover {
    color: #fbbe49;
}
/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
/* style.css */
.privacy-text {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease, padding 0.4s ease;
    background: #f9f9f9;
    border: 1px solid #1864b8; /* теперь граница по всему блоку */
    border-radius: 8px; /* скругление всех углов */
    padding: 0 10px; /* padding сверху/снизу будем менять через JS */
    margin-top: 5px;
    font-size: 0.9em;
    color: #000000;
}

.form-note {
    font-size: 0.85em;
    color: #ffffff;
    margin-top: 5px;
}
.privacy-toggle {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
}

/* Адаптивность */

/* HERO */
@media (max-width: 768px) {
    .hero-bg {
        transform: none !important;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
}

/* Контейнер хэдера: лого слева, меню справа */
@media (max-width: 833px) {
    header .container {
        display: flex;
        flex-direction: row;       
        justify-content: space-between; 
        align-items: center;       
        position: relative;
    }

    header {
        position: relative;  
        z-index: 1001;
    }

    /* Кнопка гамбургера видна до 833px */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #fff;
        z-index: 1002;
    }

    /* Скрываем меню по умолчанию на мобильных */
    header nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: #1864b8;  
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    /* Показываем меню при нажатии */
    header nav.open {
        display: flex;
    }

    /* Ссылки */
    header nav a {
        color: #fff;
        background-color: #fbbe49;
        width: 100%;  
        text-align: center;
        padding: 10px 0;
        border-radius: 6px;
    }

    form input,
    form button {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 16px;
        box-sizing: border-box;
    }
}
/* Узкие экраны < 550px */
/* Узкие экраны < 550px */
@media (max-width: 549px) {
    /* Меню скрыто по умолчанию */
    header nav {
        display: none;
        position: absolute;
        top: 60px;          /* под кнопкой бургер */
        right: 0;           /* меню справа */
        background: rgba(86, 157, 233, 0.1); /* 0.8 — 80% непрозрачности */
        flex-direction: column;
        align-items: center; /* центрируем кнопки внутри фона */
        gap: 10px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1001;
        width: auto;        /* фиксируем размер блока по содержимому */
        min-width: 180px;   /* чтобы кнопки помещались */
    }

    /* Меню открывается по кнопке */
    header nav.open {
        display: flex;
    }

    /* Ссылки внутри меню */
    header nav a {
        width: 140px;        /* фиксированная ширина кнопок */
        text-align: center;
        padding: 10px 0;
        border-radius: 6px;
        background-color: #fbbe49;
        color: #fff;
    }

    /* Кнопка бургер видна */
    .menu-toggle {
        display: block;
        z-index: 1002;
    }
}
/* Средние экраны 550–833px - flex, чтобы кнопки не искажались */
@media (min-width: 550px) and (max-width: 833px) {
    /* Контейнер хедера */
    header .container {
        display: flex;
        justify-content: space-between; /* Лого слева, кнопка справа */
        align-items: center;
        position: relative;
    }

    /* Кнопка гамбургера */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #fff;
        z-index: 1002; /* выше меню */
    }

    /* Меню скрыто по умолчанию */
    header nav {
        display: none;               /* скрыто до нажатия */
        position: absolute;
        top: 60px;                   /* под кнопкой */
        right: 0;
        background: rgba(125, 174, 226, 0.1);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1001;
        gap: 10px;
        justify-content: center;
    }

    /* Меню открывается по кнопке */
    header nav.open {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* две колонки */
        gap: 10px;
        justify-content: center;
    }

    /* Ссылки в меню */
    header nav a {
        width: 120px;            /* фиксированная ширина кнопок */
        text-align: center;
        padding: 10px 0;
        border-radius: 6px;
        background-color: #fbbe49;
        color: #fff;
    }
}
/* Узкие экраны < 390px */
@media (max-width: 390px) {
    header h1 {
        font-size: 20px;
    }
}

/* Десктоп > 833px */
@media (min-width: 834px) {
    .menu-toggle {
        display: none;
    }

    header nav {
        display: flex !important;  
        flex-direction: row;
        gap: 15px;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    header nav a {
        width: auto;  
        text-align: center;
    }
}
