/* Шапка сайта */
.site-header {
    width: 100%;
    padding: 16px 40px;
    background-color: rgba(253, 248, 242, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(198, 164, 63, 0.15);
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1.2px;
    color: #2E2E2E;
    text-decoration: none;
    position: relative;
    transition: opacity 0.2s;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40%;
    height: 1px;
    background-color: #C6A43F;
    transition: width 0.3s;
}

.logo:hover::after {
    width: 100%;
}

/* Стили для кастомного логотипа (изображения) */
.custom-logo-link {
    display: inline-block;
    max-width: 200px;
    height: auto;
}

.custom-logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    width: auto;
}

.vertical-line {
    width: 1px;
    height: 40px;
    background-color: rgba(198, 164, 63, 0.3);
}

.slogan {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #4A4A4A;
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 240px;
}

.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2E2E2E;
    text-decoration: none;
    padding: 4px 0;
    transition: letter-spacing 0.3s ease, color 0.2s;
    display: inline-block;
}

.main-nav li:not(:last-child)::after {
    content: '✧';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(198, 164, 63, 0.3);
    pointer-events: none;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C6A43F;
    transition: width 0.3s ease;
}

.main-nav a:hover::before {
    width: 100%;
}

.main-nav a:hover {
    letter-spacing: 1.5px;
    color: #C6A43F;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.header-contacts .phone-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(198, 164, 63, 0.08);
    padding: 6px 14px;
    border-radius: 40px;
    transition: background-color 0.3s;
}

.header-contacts .phone-wrapper:hover {
    background-color: rgba(198, 164, 63, 0.15);
}

.header-contacts .phone-wrapper i {
    color: #C6A43F;
    font-size: 14px;
}

.header-contacts .phone {
    font-weight: 500;
    font-size: 15px;
    color: #2E2E2E;
    text-decoration: none;
}

.header-contacts .social-icons {
    display: flex;
    gap: 12px;
}

.header-contacts .social-icons a {
    color: #2E2E2E;
    font-size: 18px;
    transition: color 0.2s, transform 0.2s;
}

.header-contacts .social-icons a:hover {
    color: #C6A43F;
    transform: translateY(-2px);
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #2E2E2E;
    transition: transform 0.3s ease, opacity 0.2s;
}

/* Хлебные крошки */
.breadcrumbs-wrapper {
    background: #FDF8F2;
    border-bottom: 1px solid rgba(198, 164, 63, 0.1);
    padding: 12px 0;
}

.breadcrumbs {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs a {
    color: #C6A43F;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #b08c35;
}

.breadcrumbs .separator {
    color: #ccc;
    font-size: 16px;
    line-height: 1;
}

.breadcrumbs .current {
    color: #2E2E2E;
    font-weight: 500;
}

/* Адаптивность шапки */
@media screen and (max-width: 880px) {
    .site-header {
        padding: 16px 30px;
    }
    
    .header-container {
        position: relative;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #FDF8F2;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s;
        z-index: 100;
    }
    
    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .main-nav li:not(:last-child)::after {
        display: none;
    }
    
    .main-nav a {
        font-size: 18px;
        color: #2E2E2E;
        font-weight: 500;
    }
    
    .burger {
        display: flex;
        z-index: 110;
    }
    
    .burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-contacts {
        width: 100%;
        justify-content: center;
        margin: 10px 0 0;
        order: 3;
    }
    
    .slogan {
        max-width: none;
        text-align: center;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .site-header {
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .custom-logo-link {
        max-width: 150px;
    }
    
    .custom-logo {
        max-height: 50px;
    }
    
    .vertical-line {
        height: 30px;
    }
    
    .slogan {
        font-size: 11px;
        max-width: 150px;
    }
    
    .header-contacts .phone-wrapper {
        padding: 4px 10px;
    }
    
    .header-contacts .phone {
        font-size: 14px;
    }
    
    .breadcrumbs-wrapper {
        padding: 8px 0;
    }
    
    .breadcrumbs {
        font-size: 13px;
        gap: 5px;
    }
}