html {
    scroll-behavior: smooth; 
}
/* ======================== Сброс и Фон ======================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f3ed; 
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

/* ======================== Меню (Навигация) ======================== */
.header {
	position: fixed; 
	z-index: 1000; 
	background-color: #e0d8cc;
	top: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #e0d8cc; 
}


.main-nav {
    display: flex;
    justify-content: center;
    gap: 25px; 
    padding: 0;
    margin: 0;
    font-size: 14px;
    text-transform: lowercase; 
}

.nav-item {
    text-decoration: none;
    color: #4a4a4a; 
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #a06e75;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* ======================== Основной блок (Контейнер) ======================== */
.content-block {
    width: 100%;
    max-width: 450px; 
    padding: 0;
    box-sizing: border-box;
    margin-top: 70px;
    overflow-wrap: break-word; 
    word-wrap: break-word; 
}

.secondary-content {
    padding: 0 15px; 
}

/* ======================== Карточка Изображения ======================== */
.card {
    position: relative;
    text-align: center;
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* ======================== СТИЛЬНЫЕ КНОПКИ (СИЛЬНО СКРУГЛЕННЫЕ И КОМПАКТНЫЕ) ======================== */
:root {
    --accent-color: #a06e75;
    --accent-dark: #885c62;
}

.course-button {
    /* СБРОС СТИЛЕЙ БРАУЗЕРА ДЛЯ КНОПКИ <button> */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    
    display: block;
    width: 80%; /* Компактная ширина */
    max-width: 300px; /* Компактная ширина */
    margin: 30px auto 40px auto; 
    padding: 18px 30px;
    
    background-color: white; 
    color: var(--accent-color); 
    border: 2px solid var(--accent-color); 
    
    text-decoration: none !important;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px; /* ИЗМЕНЕНИЕ: Сильное скругление */
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease-out; 
    outline: none !important;
}

.course-button:hover {
    background-color: var(--accent-color); 
    color: white;
    border-color: var(--accent-color);
}

.course-button:active {
    transform: scale(0.98); 
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); 
    outline: none !important;
}

/* ======================== НОВЫЙ БЛОК: АНИМАЦИЯ БЕГУЩЕЙ ЛЕНТЫ ======================== */

.scrolling-wrapper {
    width: 100%;
    overflow: hidden; 
    white-space: nowrap; 
    margin: 20px 0 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scrolling-content {
    display: flex;
    animation: scroll-left 40s linear infinite; 
    width: 200%; 
}

/* Стили для одного элемента фото в ленте */
.photo-item {
    display: inline-block;
    width: 120px; 
    height: 120px; 
    margin-right: 5px; 
    overflow: hidden;
    flex-shrink: 0; 
    border-radius: 8px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Ключевые кадры для бесконечного движения */
@keyframes scroll-left {
    0% {
        transform: translateX(0); 
    }
    100% {
        transform: translateX(-50%); 
    }
}


/* ======================== Стили для YouTube-видео ======================== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin-bottom: 25px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ======================== СТИЛИ ДЛЯ АККОРДЕОНА ======================== */

.accordion {
    margin-bottom: 15px; 
    border-radius: 0; 
    overflow: visible; 
    box-shadow: none; 
    border-bottom: 1px solid #e0d8cc; 
    transition: background-color 0.3s;
}

.accordion-button {
    background-color: transparent; 
    color: #333; 
    cursor: pointer;
    padding: 16px 15px 16px 15px; 
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    font-weight: bold; 
    transition: color 0.3s;
    position: relative;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    font-family: Arial, sans-serif;
}

.accordion-button:hover,
.accordion-button.active {
    background-color: transparent; 
    color: #a06e75; 
}

.accordion-button::before {
    content: '+'; 
    font-size: 20px;
    font-weight: normal;
    color: #a06e75; 
    margin-right: 10px;
    order: -1; 
    transition: transform 0.3s ease;
}

.accordion-button.active::before {
    content: '—'; 
    transform: rotate(0deg);
}

.accordion-content {
    padding: 0 0px; 
    background-color: transparent; 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 5px 15px 20px 15px; 
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    border-top: none; 
    margin: 0;
    text-align: left;
}

/* УНИКАЛЬНАЯ СТИЛИЗАЦИЯ ПЕРВОГО ВОПРОСА */
.secondary-content .accordion:first-child {
    border-bottom: none; 
    margin-bottom: 25px; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(160, 110, 117, 0.15); 
    overflow: hidden;
}

.secondary-content .accordion:first-child .accordion-button {
    font-size: 1.1em; 
    font-weight: 700;
    color: #a06e75; 
    border-left: 5px solid #a06e75; 
    padding: 16px 15px 16px 15px; 
    background-color: #fff9f6; 
    font-family: 'Georgia', serif; 
    border-bottom: 1px solid #f7f3ed; 
    justify-content: flex-start;
    text-align: left;
}

.secondary-content .accordion:first-child .accordion-button::before {
    order: -1;
    margin-right: 10px;
}

.secondary-content .accordion:first-child .accordion-content {
    background-color: #f7f3ed;
}

.secondary-content .accordion:first-child .accordion-content p {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #777;
    background-color: #f7f3ed;
    padding: 15px 15px 20px 20px; 
    text-align: left;
}


/* ======================== Стили для Слайдера ======================== */
.slider-full-width {
    width: 100%;
    padding: 0 15px; 
    box-sizing: border-box;
}

.slider-container {
    max-width: 450px; 
    position: relative;
    margin: auto;
}

.slider-wrapper {
    overflow: hidden; 
    border-radius: 12px;
}

.slide {
    display: none; 
    width: 100%;
}

.slide img {
    width: 100%;
    vertical-align: middle;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px; 
    height: 40px; 
    line-height: 40px; 
    padding: 0;
    margin-top: -20px; 
    
    color: #a06e75;
    background-color: transparent;
    border: 2px solid #a06e75;
    
    font-weight: bold;
    font-size: 24px; 
    text-align: center; 
    transition: all 0.3s ease;
    border-radius: 80%; 
    user-select: none;
    box-shadow: 0 0 5px rgba(160, 110, 117, 0.2); 
    text-decoration: none;
    z-index: 10; 
}

.prev:hover, .next:hover {
    background-color: #a06e75; 
    color: white; 
    box-shadow: 0 0 8px rgba(160, 110, 117, 0.8);
}

.next {
    right: 0;
}

.prev {
    left: 0;
}


/* ======================== ФУТЕР ======================== */
.footer-block {
    width: 100%;
    max-width: 450px;
    background-color: #e0d8cc; 
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    margin-top: 40px;
}

/* Стили для ссылок в подвале */
.footer-block a {
    color: #4a4a4a !important; 
}

/* ======================== СТИЛИЗАЦИЯ ФОРМЫ (form.html) ======================== */

/* Контейнер формы */
.form-page-container {
    width: 100%;
    max-width: 420px; 
    padding: 30px;
    background-color: white; 
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(160, 110, 117, 0.2); 
    margin: 90px auto 40px auto; 
    box-sizing: border-box;
}

/* Поля ввода (перенесены из form.html) */
.input-group input[type="text"],
.input-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 15px; /* ИЗМЕНЕНИЕ: Скругление полей */
    box-sizing: border-box;
    font-size: 16px;
}

/* Фокус полей ввода */
.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus {
    border-color: var(--accent-color); 
    box-shadow: 0 0 0 3px rgba(160, 110, 117, 0.3); 
    outline: none;
}

/* Стильная анимированная кнопка (Сильно скругленная и компактная) */
.submit-button {
    /* СБРОС СТИЛЕЙ БРАУЗЕРА ДЛЯ КНОПКИ <button> */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;

    position: relative;
    display: block;
    width: 80%; /* Компактная ширина */
    max-width: 300px; /* Компактная ширина */
    margin: 30px auto 0 auto; /* Центрирование */
    padding: 18px 30px;
    overflow: hidden;

    background-color: var(--accent-color);
    color: white;
    
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px; /* ИЗМЕНЕНИЕ: Сильное скругление */
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(160, 110, 117, 0.4);
    transition: all 0.3s ease-out;
    z-index: 1; 
}

/* Анимация волны при наведении (эффект "сияния") */
.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4); 
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
    z-index: -1; 
}

.submit-button:hover {
    background-color: var(--accent-dark); 
    box-shadow: 0 8px 20px rgba(160, 110, 117, 0.6);
    transform: translateY(-2px);
}

.submit-button:hover::after {
    width: 400px; 
    height: 400px;
    opacity: 1;
}

.submit-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(160, 110, 117, 0.4);
}

/* ======================== СТИЛИ ДЛЯ АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ ПРОКРУТКЕ ======================== */

/* 1. Исходное состояние: Элементы скрыты и сдвинуты вниз */
.reveal-on-scroll {
    opacity: 0; /* Сделать элемент невидимым */
    transform: translateY(40px); /* Сдвинуть его на 40px вниз */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Плавный переход */
    will-change: opacity, transform; /* Оптимизация производительности */
}

/* 2. Активное состояние: Элементы становятся видимыми и возвращаются на место */
.reveal-on-scroll.is-visible {
    opacity: 1; /* Сделать элемент видимым */
    transform: translateY(0); /* Вернуть на исходное место */
}