/* === БАЗА ШАПКИ === */
.site-header { position: fixed; top: 25px; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: center; padding: 0 40px; transition: all 0.3s ease; }
.header-inner { width: 100%; max-width: 1400px; background: rgba(239, 236, 225, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 50px; padding: 12px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 15px 35px rgba(0,0,0,0.15); }

/* === ЛОГОТИП === */
.logo { height: 40px; display: flex; align-items: center; z-index: 1002; position: relative; }
.logo img { height: 100%; width: auto; object-fit: contain; filter: brightness(0) saturate(100%) invert(13%) sepia(74%) saturate(5834%) hue-rotate(345deg) brightness(85%) contrast(110%); }

/* === НАВИГАЦИЯ (ДЕСКТОП) === */
.nav-links { display: flex; align-items: center; }
.header-menu-list { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.header-menu-list a { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--dark-brown); position: relative; padding: 5px 0; display: block; }
.header-menu-list a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--red); transition: width 0.3s ease; }
.header-menu-list a:hover { color: var(--red); }
.header-menu-list a:hover::after { width: 100%; }

/* Активный пункт меню WP */
.header-menu-list .current-menu-item > a, .header-menu-list .current_page_item > a { color: var(--red); }
.header-menu-list .current-menu-item > a::after, .header-menu-list .current_page_item > a::after { width: 100%; }

/* === КНОПКИ И ТЕЛЕФОН === */
.header-actions { display: flex; align-items: center; gap: 25px; z-index: 1002; position: relative; }
.phone { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--dark-brown); letter-spacing: 0.5px; white-space: nowrap; transition: color 0.3s ease; }
.phone:hover { color: var(--red); }
.header-btn { background: var(--red); color: var(--white); padding: 12px 25px; border-radius: 30px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; white-space: nowrap; border: none; }
.header-btn:hover { background: var(--dark-brown); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(168,0,25,0.3); color: var(--white); }

/* === БУРГЕР И ЗАТЕМНЕНИЕ === */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1005; position: relative; background: none; border: none; padding: 5px; }
.burger span { width: 25px; height: 2px; background: var(--dark-brown); transition: all 0.3s ease; display: block; border-radius: 2px; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; pointer-events: none; transition: all 0.3s ease; }
.overlay.active { opacity: 1; pointer-events: auto; }

/* === АДАПТИВ И МОБИЛЬНОЕ МЕНЮ (ПЛАНШЕТЫ И ТЕЛЕФОНЫ) === */
@media (max-width: 1024px) {
    .site-header { padding: 0 15px; top: 15px; }
    .header-inner { padding: 10px 20px; }
    
    /* Прячем обычное меню и делаем его выезжающей боковой панелью */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Спрятано за правым краем */
        width: 280px;
        height: 100vh;
        height: 100dvh; /* Для современных мобильных браузеров */
        background: var(--bg-sand, #EFECE1);
        padding: 100px 30px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-radius: 26px 0 0 26px;
    }
    
    /* Класс, который добавляет JS при клике на бургер */
    .nav-links.active { right: 0; }
    
    .header-menu-list { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
    .header-menu-list a { font-size: 16px; padding: 10px 0; width: 100%; display: block; }
    .header-menu-list a::after { left: 0; transform: none; }
    
    .burger { display: flex; margin-left: 15px; }
    .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .site-header { padding: 0 10px; top: 10px; }
    .header-inner { padding: 10px 15px; }
    .logo { height: 30px; }
    .phone { display: none; } /* Скрываем телефон на узких экранах, чтобы влезла кнопка */
    .header-btn { padding: 10px 15px; font-size: 11px; }
}