/* ==============================
   HEADER SWITCH — DESKTOP/MOBILE
   ============================== */

/* По умолчанию: DESKTOP виден, MOBILE скрыт */
.allhir-header-desktop-only {
    display: block !important;
}

.allhir-header-mobile-only {
    display: none !important;
}

/* На экранах до 900px: MOBILE виден, DESKTOP скрыт */
@media (max-width: 900px) {
    .allhir-header-desktop-only {
        display: none !important;
    }
    .allhir-header-mobile-only {
        display: block !important;
    }
}

/* Overlay для бокового меню */
.allhir-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.allhir-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 999;
    padding: 20px;
    transition: 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-close {
    font-size: 30px;
    cursor: pointer;
    text-align: right;
    margin-bottom: 20px;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1c1b1b;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.sidebar-menu li a:hover {
    background: #fff4eb;
    color: #d46f1d;
}

.sidebar-menu li img {
    width: 28px;
    height: 28px;
}
/* ==============================
   DESKTOP HEADER STYLES
   ============================== */

.allhir-header-desktop {
    background: #1c1b1b !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-slogan {
    background: #fff4eb;
    border: 2px solid #d46f1d;
    color: #1c1b1b;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    white-space: nowrap;
}

.header-search {
    display: flex;
    flex: 1;
    max-width: 450px;
    border: 2px solid #d46f1d;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

.header-search input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    outline: none;
    font-size: 15px;
}

.header-search button {
    background: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    transition: 0.2s;
}

.header-icon:hover {
    color: #d46f1d;
}

/* Site Title */
.allhir-header-desktop .wp-block-site-title a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
}

/* Navigation */
.allhir-header-desktop .wp-block-navigation a {
    color: #fff !important;
    font-size: 15px;
}

.allhir-header-desktop .wp-block-navigation a:hover {
    color: #d46f1d !important;
}

/* ==============================
   MOBILE HEADER STYLES
   ============================== */

.allhir-header-mobile {
    background: #1c1b1b !important;
}

.header-search-mobile {
    display: flex;
    flex: 1;
    max-width: 180px;
    border: 2px solid #d46f1d;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

.header-search-mobile input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    min-width: 0;
}

.header-search-mobile button {
    background: #fff;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
}

.header-icons-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icons-mobile .header-icon {
    width: 35px;
    height: 35px;
    color: #fff;
}

.burger-menu {
    font-size: 26px;
    color: #d46f1d;
    cursor: pointer;
    padding: 5px;
}
