
/* =========================
   ОСНОВА
========================= */

:root {
    /* Цветовая палитра сайта */
    --color-main: #292427;       /* Главный цвет — тёмный var(--color-main) */ 
    --color-secondary: #F8F5F6;  /* Второстепенный — светлый фон var(--color-secondary) */ 
    --color-accent: #B96F8B;     /* Акцентный — розовый var(--color-accent) */ 
}

@font-face { 
    font-family: "Involve";
    src: url("../assets/fonts/Involve-VF.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}  

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--color-secondary);
}

body { 
    font-family: "Involve", "Montserrat", Arial, sans-serif;
}

/* =========================
   ГАЛЕРЕЯ
========================= */

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Первый экран */

.hero {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Обычные изображения галереи */

.hero > img,
.gallery > img  {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0;
    padding: 0;
}

/* =========================
   ПЕРВЫЙ ЭКРАН
========================= */

.site-header {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 9% 10%;
    pointer-events: none;
}

/* Кнопка меню — справа сверху */

.navbar-open {
    position: absolute;
    top: 5%;
    right: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.navbar-open img {
    display: block;
    width: 40px;
    height: auto;
}

/* =========================
   УНИВЕРСАЛЬНАЯ КНОПКА
========================= */

.booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    height: 7%;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 2.5px;

    background: var(--color-main);
    color: var(--color-secondary);

    font-family: inherit;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;
    pointer-events: auto;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

/* Стрелка внутри кнопки */

.booking-button .button-arrow {
    display: block;
    flex-shrink: 0;
    width: 0.8em;
    height: 0.8em;
    object-fit: contain;
}

/* Наведение и фокус */

.booking-button:hover {
    background: #383338;
}

.booking-button:focus-visible {
    outline: 2px solid #A56D82;
    outline-offset: 4px;
}

/* Розовая кнопка */

.booking-button--pink {
    background: var(--color-accent);
    color: var(--color-secondary);
}

.booking-button--pink:hover {
    background: #C994A6;
}

/* =========================
   КНОПКА НА ПЕРВОМ ЭКРАНЕ
========================= */

.hero .booking-button {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 6%;
    display: flex;
    width: auto;
}

/* =========================
   ИЗОБРАЖЕНИЕ + КНОПКИ ПОД НИМ
   Универсальный блок для разных разделов
========================= */

.image-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;

    /* Размеры кнопок зависят от ширины блока */
    container-type: inline-size;
}

.image-action > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Кнопки под изображением */

.image-action .booking-button {
    position: static;
    align-self: stretch;
    width: auto;

    height: 12cqw;
    min-height: 0;
    padding: 0 4cqw;
    margin: 2cqw 10% 12cqw;

    font-size: 3.2cqw;
}

.contacts .booking-button {
    margin: 1% 10% 1%;
}

/* =========================
   СЕКЦИЯ КУРСОВ
========================= */

/* Здесь оставляем только настройки,
   относящиеся именно к курсам, если они появятся. */
   
   
/* =========================
   ГОРИЗОНТАЛЬНЫЙ СЛАЙДЕР
========================= */

.photo-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 4vw;
    
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;

    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x;
}

.photo-slider::-webkit-scrollbar {
    display: none;
}

.photo-slider:active {
    cursor: grabbing;
}

.photo-slider__track {
    display: flex;
    gap: 3vw;
    padding: 0 10%;
    width: max-content;
}

.photo-slider__image {
    display: block;
    flex: 0 0 auto;
    height: min(82vw, 410px);
    width: auto;
    object-fit: cover;
    border-radius: 2.5px;
    pointer-events: none;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

footer .footer-info {
    width: 100%;
    max-width: 500px;
    margin-top: 7%; 
    padding: 2% 10% 10%; 
    background-color: #D4A0B2; 
    color: var(--color-main); 
    font-size:12px; 
    text-align: center;
}

footer .footer-info p {
    margin-bottom: 0.5em;
} 

footer .footer-info a { 
    color: var(--color-main); 
}
/* =========================
   ВЫБОР ГОРОДА И ЦЕНА КУРСА
========================= */

.course-location {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 500px;
    margin: 0 auto;

    padding: 0 11% 8%;

    background: #EBE9EA;

    container-type: inline-size;
}

/* Основная фотография */

.course-location__cover {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Переключатель городов */

.course-location__cities {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2%;

    width: 100%;
}

/* Кнопки городов */

.course-location__city {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 30px;
    padding: 0.4em 1.4em;

    border: 1px solid var(--color-main);
    border-radius: 999px;

    background: #EBE9EA;
    color: var(--color-main);

    font-family: inherit;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Выбранный город */

.course-location__city.is-active {
    background: var(--color-main);
    color: var(--color-secondary);
}

/* Фокус с клавиатуры */

.course-location__city:focus-visible {
    outline: 2px solid #A56D82;
    outline-offset: 3px;
}

/* =========================
   ЦЕНА КУРСА
========================= */

.course-price {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    padding: 7% 0;

    text-align: center;
}

/* Текст о скидке */

.course-price__discount {
    margin: 0 0 2%;

    color: var(--color-accent);
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 500;
    line-height: 1.3;
}

/* Текущая цена */

.course-price__current {
    margin: 0;

    color: var(--color-main);
    font-size: clamp(28px, 6vw, 38px);
    font-weight: 600;
    line-height: 1.15;
}

/* Старая цена */

.course-price__old {
    margin: 2% 0 0;

    color: rgba(41, 36, 39, 0.5);
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.3;
}

/* =========================
   КНОПКА ЗАПИСИ
========================= */

.course-location__booking {
    align-self: stretch;
    width: 100%;
    height: 3em;
    padding: 12px 10px;

    font-size: clamp(14px, 1.4vw, 18px);
}


/* =========================
   ЦЕНЫ БАЗОВОГО КУРСА
========================= */

.base-course-prices {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 7% 0;
}

.base-course-prices__city {
    width: 100%;
}

/* Варианты обучения */

.base-course-prices__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

/* Расстояние между тарифами */

.base-course-prices__option + .base-course-prices__option {
    margin-top: 7%;
}

/* Продолжительность */

.base-course-prices__duration {
    margin: 0 0 2%;

    color: var(--color-main);
    font-family: inherit;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Описание программы */

.base-course-prices__description {
    margin: 0;

    color: var(--color-main);
    font-family: inherit;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.1;
}

/* Цена */

.base-course-prices__price {
    margin: 3% 0 0;

    color: var(--color-main);
    font-family: inherit;
    font-size: clamp(28px, 6vw, 38px);
    font-weight: 600;
    line-height: 1.15;
}



/* =========================
   FAQ — ЧАСТЫЕ ВОПРОСЫ
========================= */

.faq {
    width: 100%;
    max-width: 500px;
    container-type: inline-size;
    background: var(--color-secondary);
    color: var(--color-main);
    padding-bottom: 1.5rem;
}

.faq__header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.faq__cover {
    display: block;
    width: 100%;
    height: auto;
}

.faq__title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 5%;
    color: var(--color-secondary);
    font-family: inherit;
    font-size: clamp(22px, 5cqw, 36px);
    font-weight: 500;
    text-align: center;
}

.faq__list {
    width: 100%;
    padding: 0 11%;
    max-width: 500px;
}

.faq__item {
    width: 100%;
    padding: 0;
}

.faq__item:not(:last-child) {
    padding-bottom: 4cqw;
    margin-bottom: 4cqw;
    border-bottom: 1.5px solid var(--color-accent);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3cqw;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-main);
    font-family: inherit;
    font-size: clamp(14px, 3.2cqw, 18px);
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq__question > span {
    flex: 1;
    min-width: 0;
}

.faq__item.is-open .faq__question {
    color: var(--color-accent);
}

.faq__icon {
    display: block;
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    object-fit: contain;
}

.faq__icon--minus {
    display: none;
}

.faq__item.is-open .faq__icon--minus {
    display: block;
}

.faq__item.is-open .faq__icon--plus {
    display: none;
}

.faq__answer {
    margin-top: 2cqw;
    color: #777174;
    font-family: inherit;
    font-size: clamp(14px, 2.8cqw, 16px);
    font-weight: 500;
    line-height: 1.45;
}

.faq__answer[hidden] {
    display: none;
}

.faq__question:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}