:root {
    --primary: #FE4800;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #F5F5F5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Jost', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- НАВИГАЦИЯ --- */
header {
    padding: 30px 0;
    /*position: sticky;
            top: 0;
            z-index: 1000;
            background-color: var(--white);*/
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 20px;
    text-decoration: none;
    color: var(--black);
}

.menu {
    display: flex;
    gap: 65px;
    align-items: baseline;
}

.menu-item {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 16px;
    transition: color 0.2s;
}

.menu-item:hover {
    color: var(--primary);
}

.btn-transparent {
    background-color: transparent;
    color: var(--primary);
    padding: 18px 40px;
    border: solid 2px var(--primary);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-transparent a {
    color: var(--primary);
    text-decoration: none;
}

.btn-transparent:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

.btn-transparent:hover a {
    color: var(--white);
    text-decoration: none;
}


/* --- ГЕРОЙ БЛОК --- */
.hero {
    padding-bottom: 60px;
    position: relative;
    /* Теперь картинка позиционируется относительно всей секции */
    overflow-x: hidden;
    /* Защищает всю страницу от появления горизонтальной полосы прокрутки */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    min-height: 70vh;
    /* Убираем overflow: hidden — теперь элементы могут выходить за границы */
    overflow: visible;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.orange-text {
    color: var(--primary);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Golos text', system-ui, -apple-system, sans-serif;
    line-height: 1;
    text-transform: none;
}

.hero p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 450px;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 20px;
}

.btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 72, 0, 0.3);
}

.hero-image {
    position: absolute;
    right: 4%;
    /* Если нужно немного сдвинуть вправо за край блока */
    top: 55%;
    transform: translateY(-50%);
    /* Центрируем по вертикали */
    width: 40vw;
    max-width: 700px;
    min-width: 200px;
    overflow: visible;
    height: auto;
    z-index: 2;
    /* Поднимаем слой, если картинка должна быть над фоном */
}

/* Также обязательно убедитесь, что сама картинка внутри блока адаптируется: */
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 0 0 rgba(254, 72, 0, 0));
}

.hero-image:hover img {
    transform: translateY(-2px);
    box-shadow: none;
    /* 3. ДОБАВЛЯЕМ тень по контуру PNG */
    /* Синтаксис: filter: drop-shadow(сдвиг-x сдвиг-y размытие цвет); */
    filter: drop-shadow(0 5px 10px rgba(254, 72, 0, 0.5));
}

@media (max-width: 768px) {
    .hero-image {
        width: 35vw;
        right: -10%;
    }
}

/* Стили для слова "свой" */
.white-word {
    display: inline-block;
    color: #ffffff;
    position: relative;
    z-index: 1;
    padding: 0px 6px;
    margin: 0 4px;
}

.white-word::before {
    content: "";
    position: absolute;
    top: 6%;
    left: -5%;
    width: 110%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 8px;
    z-index: -1;
    transform: rotate(-3deg);
    transition: 0.3s ease;
}

.white-word:hover::before {
    transform: rotate(0deg);
}

/* --- КАРТОЧКИ --- */
.cards-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.card {
    background-color: var(--white);
    border-radius: 24px;
    /* Мягкое скругление как на макете */
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Размытая объемная тень */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: none;
    /* Убираем жесткую рамку */
}

/* Эффект при наведении */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* Стилизация центральной акцентной карточки */
.card.featured {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(254, 72, 0, 0.25);
}

.card.featured:hover {
    box-shadow: 0 20px 45px rgba(254, 72, 0, 0.4);
}

.card-tag {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Меняем цвет тега внутри оранжевой карточки */
.card.featured .card-tag {
    color: rgba(255, 255, 255, 0.9);
}

.card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    flex-grow: 1;
}

/* Кнопки внутри карточек */
.card .card-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--black);
    padding: 14px 25px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.card:not(.featured):hover .card-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

/* Кнопка внутри оранжевой карточки */
.card.featured .card-btn {
    border-color: var(--white);
    color: var(--white);
}

.card.featured:hover .card-btn {
    background-color: var(--white);
    color: var(--primary);
}

/* --- АСИНХРОН (ЯРКИЙ БЛОК) --- */
.async-section {
    padding: 80px 0;
}

.async-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.async-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 40px;
    color: var(--primary);
}

.async-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
}

.feature-text h4 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-text p {
    color: #555555;
    line-height: 1.5;
}

.async-image {
    position: absolute;
    width: 30vw;
    right: 8%;
    max-width: 700px;
    height: auto;
}

.async-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- АККОРДЕОН (FAQ) --- */
.faq-section {
    padding: 60px 0 85px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 2px solid var(--black);
}

.accordion-header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    user-select: none;
}

.accordion-icon {
    font-size: 28px;
    font-weight: 300;
    transition: transform 0.3s, color 0.2s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 30px;
    line-height: 1.6;
    color: #555555;
    font-size: 16px;
}

/* Активные состояния аккордеона */
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.accordion-item.active .accordion-header {
    color: var(--primary);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {

    .hero-grid,
    .async-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu {
        display: none;
    }

    /* Для простоты примера прячем меню на мобилках */
    .async-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }

    .accordion-header {
        font-size: 18px;
    }
}

/* --- Секция формы --- */
.booking-section {
    background-color: var(--primary);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.booking-container {
    max-width: 600px;
    margin: 0 auto;
}

.booking-content {
    text-align: center;
}

.booking-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.booking-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.accordion-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(-135deg);
    border-color: var(--primary);
}

/* --- Элементы формы --- */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    width: 100%;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.51);
    border-radius: 12px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Цвет подсказки (placeholder) */
.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Состояние при клике/фокусе */
.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Заголовок группы чекбоксов */
.courses-group {
    text-align: left;
    margin: 8px 0;
}

.courses-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Контейнер для чекбоксов */
/* Переводим контейнер в горизонтальный режим */
.checkbox-group {
    display: flex;
    flex-direction: row;
    /* Элементы идут в ряд */
    flex-wrap: wrap;
    /* Переносятся на новую строку на маленьких экранах */
    gap: 12px;
    /* Отступ между кнопками */
}

/* Делаем плашки более компактными */
.custom-checkbox {
    flex: 1 1 0;
    /* Плашки равномерно заполняют ширину */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Центрируем текст и галочку внутри */
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
    /* Чтобы текст курса не разрывался */
}

.custom-checkbox:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Скрываем стандартный инпут */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Кастомный квадратик */
.checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Галочка внутри квадратика */
.checkbox-box::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #ffffff;
    font-size: 0.95rem;
}

/* Состояние: Чекбокс выбран */
.custom-checkbox input:checked~.checkbox-box {
    background-color: #ffffff;
    border-color: #ffffff;
}

.custom-checkbox input:checked~.checkbox-box::after {
    display: block;
}

.custom-checkbox input:checked {
    border-color: #ffffff;
}

/* --- Кнопка отправки --- */
.booking-btn {
    width: 100%;
    padding: 18px;
    background-color: #ffffff;
    color: var(--primary);
    /* Текст цвета акцента */
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 8px;
}

/* Эффект реакции на курсор для кнопки */
.booking-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.booking-btn:active {
    transform: translateY(-1px);
}

.footer {
    background-color: var(--white);
    color: var(--black);
    padding: 50px 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    /* Основная ширина вашего сайта */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Настройки для каждого из 3 блоков */
.footer-block {
    display: flex;
    align-items: center;
}

/* Левый блок: 30% ширины */
.footer-socials {
    flex: 0 0 30%;
    flex-direction: column;
    align-items: flex-start;
    /* Выравнивание по левому краю */
    gap: 8px;
}

/* Центральный блок: оставшиеся 40% */
.footer-copy {
    flex: 0 0 40%;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Правый блок: 30% ширины */
.footer-nav {
    flex: 0 0 30%;
    /* Переключаем направление с горизонтального на вертикальное */
    flex-direction: column;
    align-items: flex-end;
    /* Выравнивание по правому краю */
    gap: 8px;
    /* Расстояние МЕЖДУ ссылками по вертикали */
}

/* Стилизация ссылок */
.social-link,
.footer-link {
    color: var(--black);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Эффект при наведении (используем ваш фирменный оранжевый акцент) */
.social-link:hover,
.footer-link:hover {
    color: var(--primary, #fe4800);
    transform: translateY(-2px);
}

/* Адаптив под мобильные телефоны */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-socials,
    .footer-copy,
    .footer-nav {
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* На мобилке меняем порядок: меню -> соцсети -> копирайт */
    .footer-nav {
        order: 1;
    }

    .footer-socials {
        order: 2;
    }

    .footer-copy {
        order: 3;
    }
}

.btn-up {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;

    /* Размеры и форма */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;

    /* Оформление */
    background-color: #007bff;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;

    /* Плавные переходы для анимации появления/исчезновения */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s;
}

.btn-up:hover {
    background-color: #0056b3;
}

/* Класс, который JS будет добавлять при прокрутке вниз */
.btn-up_show {
    opacity: 1;
    visibility: visible;
}

/* Затемняющий фон */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* Карточка модального окна */
.modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

/* Кнопка крестика */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

/* Иконка */
.modal-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Текст сообщения */
.modal-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Кнопка внутри модального окна */
.modal-btn {
    padding: 10px 24px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.modal-btn:hover {
    background-color: #0056b3;
}