/* Подключаем красивые шрифты */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    overflow: auto;
    color: #3A3A3A;
}

/* --- БЕЛЫЙ ФОН (без картинки) --- */
body {
    background-image: url('IMG_2205.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Все содержимое поверх */
.menu-trigger,
.main-content {
    position: relative;
    z-index: 1;
}

/* ===== ВЫЕЗЖАЮЩЕЕ МЕНЮ (сохранено как было) ===== */
.menu-trigger {
    position: fixed;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
}

.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    left: -250px;
    top: 0;
    background-color: #8B7E74;
    padding-top: 30px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-trigger:hover .sidebar,
.sidebar:hover {
    left: 0;
}

.menu-trigger::after {
    content: "☰";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #3A3A3A;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(245, 245, 247, 0.9);
    padding: 10px 5px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.sidebar h3 {
    color: #FFFFFF;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #C9A9A9;
    margin: 0 20px 25px 20px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    font-size: 20px;
    text-transform: uppercase;
}

.menu-button {
    display: block;
    padding: 12px 25px;
    margin: 8px 15px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.menu-button:hover {
    background-color: #92A1A2;
    padding-left: 35px;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.menu-button.active {
    background-color: #92A1A2;
    border-left: 3px solid #C9A9A9;
}

/* Стили для выпадающего списка в меню */
.sidebar select {
    width: calc(100% - 30px);
    margin-left: 15px;
    padding: 8px;
    margin-top: 20px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
}

.sidebar select option {
    color: black;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    margin-left: 300px;
    padding: 40px 30px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== ЗАГОЛОВОК - РОЗОВЫЙ КАК МЕНЮ ===== */
.text-box {
    background-color: #b89595;  /* ТОТ ЖЕ ЦВЕТ, ЧТО И БОКОВОЕ МЕНЮ */
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
}

.text-box h1 {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 5vw, 38px);
    letter-spacing: 1px;
    margin: 0;
}

/* ===== ФОН ОСНОВНОГО ТЕКСТА ===== */
.welcome-message {
    background-color: #F5F5F7;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(58, 58, 58, 0.08);
    border-left: 4px solid #C9A9A9;
    color: #3A3A3A;
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
}

.welcome-message p {
    font-size: 18px;
    line-height: 1.5;
    margin: 15px 0;
}

.content {
    margin-top: 20px;
}

/* ===== РОЗОВО-ДЫМЧАТЫЙ АККОРДЕОН ===== */
.accordion-container {
    margin: 20px 0;
    width: 100%;
    max-width: 1000px;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid rgba(201, 169, 169, 0.3);
    border-radius: 8px;
    background-color: #F5F5F7;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: #8B7E74;
    color: #FFFFFF;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    border-bottom: 1px solid #C9A9A9;
}

.accordion-header:hover {
    background-color: #92A1A2;
    padding-left: 25px;
}

.accordion-content {
    display: none;
    padding: 15px;
    background-color: #FFFFFF;
    border-top: 1px solid rgba(201, 169, 169, 0.2);
}

.accordion-content.show {
    display: block;
}

.accordion-subitem {
    margin: 12px 0;
    border: 1px solid rgba(201, 169, 169, 0.3);
    border-radius: 6px;
    background-color: #FAF8F9;
    overflow: hidden;
}

.accordion-subheader {
    background-color: #C9A9A9;
    color: #3A3A3A;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.accordion-subheader:hover {
    background-color: #b89595;
    padding-left: 20px;
}

.accordion-subcontent {
    display: none;
    padding: 12px 15px;
    background-color: #F5F5F7;
}

.accordion-subcontent.show {
    display: block;
}

.accordion-subcontent a {
    color: #8B7E74;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    border-bottom: 1px dotted rgba(139, 126, 116, 0.2);
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s ease;
}

.accordion-subcontent a:hover {
    color: #92A1A2;
    padding-left: 8px;
    border-bottom-color: #C9A9A9;
}

.accordion-subcontent p {
    margin: 10px 0;
    color: #3A3A3A;
    font-size: 15px;
    line-height: 1.5;
}

/* Стиль для выделенного текста */
.output-highlight {
    font-style: italic;
    background-color: rgba(201, 169, 169, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #C9A9A9;
    margin: 12px 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .main-content {
        margin-left: 60px;
        padding: 20px;
    }
    
    .text-box, .welcome-message {
        padding: 20px 25px;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-left: 45px;
        padding: 15px;
    }
    
    .text-box h1 {
        font-size: 24px;
    }
    
    .welcome-message p {
        font-size: 16px;
    }
}
