/* Подключение шрифта Playfair Display только для хедера */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Раздел 1 — Header */
.site-header {
    background: url('../images/block1_bg.png') no-repeat center center/cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Контейнер */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 40px;
    position: relative;
}

/* --- Десктопное меню --- */
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    display: flex;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    color: #3A2A23;
    transition: color 0.3s ease;
    line-height: 2rem;
}

.desktop-nav a:hover {
    color: #D4A373;
}

/* Логотип внутри десктопного меню */
.desktop-nav .logo-item {
    margin: 0 40px;
}

.desktop-nav .logo-item a {
    border: none;
    padding: 0;
}

.desktop-nav .logo-item img {
    height: 10rem;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

/* При скролле уменьшаем логотип и шрифт */
.site-header.scrolled .desktop-nav .logo-item img {
    height: 4rem;
}
.site-header.scrolled .desktop-nav a {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

/* --- Кнопка гамбургера --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    position: absolute;
    left: 20px;
    top: 20px;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #3A2A23;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* --- Мобильная версия --- */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffdf9;
        padding: 20px;
        z-index: 1000;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu-grid {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        align-items: start;
    }

    .mobile-logo img {
        max-height: 80px; /* логотип не уменьшается */
        width: auto;
        display: block;
    }

    .mobile-menu .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu .nav-list a {
        text-decoration: none;
        font-size: 1.4rem;
        font-weight: 400;
        font-family: 'Playfair Display', serif;
        color: #3A2A23;
        transition: color 0.3s ease;
        line-height: 1.8rem;
    }

    .mobile-menu .nav-list a:hover {
        color: #D4A373;
    }
}
