:root {
    --bg-outer: #E5E0D5;
    --bg-light: #FAF8F5;
    --text-dark: #2C2621;
    --text-muted: #5D544C;
    --accent-gold: #A58E74;
    --card-bg: #FFFFFF;
    --border-color: rgba(165, 142, 116, 0.2);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-outer);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.site-wrapper {
    width: 100%;
    max-width: 1240px;
    background-color: var(--bg-light);
    box-shadow: 0 0 60px rgba(44, 38, 33, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* Для позиционирования выпадающего меню на мобильных */
}

button, .btn-outline {
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--text-dark);
    padding: 12px 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #FFF;
}

/* Шапка сайта */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    text-transform: uppercase;
    line-height: 1;
}

.logo span {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

/* --- СТИЛИ НАВИГАЦИИ (ДЕСКТОП) --- */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--accent-gold);
}

/* Кнопка бургера (скрыта по умолчанию) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    z-index: 110;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (ДО 900px) --- */
@media (max-width: 900px) {
    .header-container {
        padding: 20px;
    }

    /* Показываем кнопку бургера */
    .menu-toggle {
        display: flex;
    }

    /* Анимация превращения бургера в крестик "X" */
    .menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: -2px;
        left: 3px;
    }

    .menu-toggle.active .hamburger-bar:nth-child(2) {
        width: 0%;
        opacity: 0;
    }

    .menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: 2px;
        left: 3px;
    }

    /* Перестраиваем меню в выпадающую панель */
    .main-nav {
        position: absolute;
        top: 100%; /* Меню открывается строго под шапкой */
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(44, 38, 33, 0.05);

        /* Плавный эффект скрытия/появления */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 90;
        padding: 30px 0;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Направление ссылок вертикально */
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
}