/* ============================================================
   HolstLab — Хедер
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --hh-brown:  #B85C38;
    --hh-dark:   #363636;
    --hh-font:   'Inter', sans-serif;
    --hh-h:      72px;
    --hh-h-mob:  58px;
}

/* ---- Сброс темовых стилей ---- */
.hl-header { all: initial; }

/* ---- Обёртка ---- */
.hl-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(54,54,54,0.09);
    font-family: var(--hh-font);
    box-sizing: border-box;
}

.hl-header *, .hl-header *::before, .hl-header *::after {
    box-sizing: border-box;
    font-family: var(--hh-font);
}

.hl-hdr-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
    height: var(--hh-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ---- Логотип ---- */
.hl-hdr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}
.hl-hdr-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--hh-brown);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.hl-hdr-logo:hover .hl-hdr-logo-icon { transform: rotate(-4deg) scale(1.05); }
.hl-hdr-logo-text { display: flex; flex-direction: column; gap: 1px; }
.hl-hdr-logo-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--hh-dark);
    letter-spacing: -0.5px;
    line-height: 1;
}
.hl-hdr-logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(54,54,54,0.45);
    line-height: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ---- Навигация ---- */
.hl-hdr-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    flex: 1;
}
.hl-hdr-nav a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(54,54,54,0.65);
    text-decoration: none !important;
    padding: 7px 14px;
    border-radius: 100px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.hl-hdr-nav a:hover {
    background: rgba(184,92,56,0.08);
    color: var(--hh-brown);
    text-decoration: none !important;
}
.hl-hdr-nav a.active { color: var(--hh-brown); font-weight: 600; }

/* ---- Правый блок ---- */
.hl-hdr-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Телефон */
.hl-hdr-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none !important;
}
.hl-hdr-phone-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--hh-dark);
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none !important;
    transition: color 0.15s;
}
.hl-hdr-phone:hover .hl-hdr-phone-num { color: var(--hh-brown); }
.hl-hdr-phone-hint {
    font-size: 10px;
    color: rgba(54,54,54,0.4);
    white-space: nowrap;
    line-height: 1;
}

/* Корзина */
.hl-hdr-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid rgba(54,54,54,0.14);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color 0.15s, background 0.15s;
    color: var(--hh-dark);
    flex-shrink: 0;
}
.hl-hdr-cart:hover {
    border-color: var(--hh-brown);
    background: rgba(184,92,56,0.06);
    color: var(--hh-brown);
}
.hl-hdr-cart svg { display: block; }
.hl-hdr-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: var(--hh-brown);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    display: none;
}
.hl-hdr-cart-badge.visible { display: flex; }

/* CTA-кнопка */
.hl-hdr-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hh-brown);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 22px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
}
.hl-hdr-cta:hover {
    background: #9e4f30;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184,92,56,0.35);
    color: #fff !important;
    text-decoration: none !important;
}
.hl-hdr-cta:active { transform: translateY(0); box-shadow: none; }

/* Бургер */
.hl-hdr-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1.5px solid rgba(54,54,54,0.14);
    border-radius: 12px;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.hl-hdr-burger:hover { border-color: var(--hh-brown); }
.hl-hdr-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--hh-dark);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}
.hl-hdr-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hl-hdr-burger.open span:nth-child(2) { opacity: 0; }
.hl-hdr-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Мобильное меню ---- */
.hl-mob-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}
.hl-mob-menu.open { pointer-events: auto; }

.hl-mob-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.25s;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.hl-mob-menu.open .hl-mob-backdrop { opacity: 1; }

.hl-mob-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.hl-mob-menu.open .hl-mob-panel { transform: translateX(0); }

.hl-mob-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(54,54,54,0.09);
    flex-shrink: 0;
}
.hl-mob-close {
    width: 36px;
    height: 36px;
    background: rgba(54,54,54,0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    color: var(--hh-dark);
}
.hl-mob-close:hover { background: rgba(184,92,56,0.1); color: var(--hh-brown); }

.hl-mob-nav {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.hl-mob-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hh-dark);
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.hl-mob-nav a:hover {
    background: rgba(184,92,56,0.08);
    color: var(--hh-brown);
    text-decoration: none !important;
}
.hl-mob-nav a .hl-mob-nav-dot {
    width: 8px;
    height: 8px;
    background: var(--hh-brown);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.4;
}
.hl-mob-nav a:hover .hl-mob-nav-dot { opacity: 1; }

.hl-mob-footer {
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(54,54,54,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hl-mob-footer-phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--hh-dark);
    text-decoration: none !important;
    display: block;
}
.hl-mob-footer-hint {
    font-size: 12px;
    color: rgba(54,54,54,0.4);
    margin-top: -6px;
    display: block;
}
.hl-mob-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hh-brown);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    border-radius: 100px;
    text-decoration: none !important;
    margin-top: 4px;
    transition: background 0.2s;
}
.hl-mob-cta:hover { background: #9e4f30; color: #fff !important; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
    .hl-hdr-phone-hint { display: none; }
    .hl-hdr-nav a { padding: 7px 10px; font-size: 13px; }
}

@media (max-width: 900px) {
    .hl-hdr-inner { padding: 0 20px; height: var(--hh-h-mob); gap: 12px; }
    .hl-hdr-nav { display: none; }
    .hl-hdr-phone { display: none; }
    .hl-hdr-cta { display: none; }
    .hl-hdr-burger { display: flex; }
    .hl-mob-menu { display: block; }
}

@media (max-width: 480px) {
    .hl-hdr-inner { padding: 0 16px; }
    .hl-hdr-logo-sub { display: none; }
}
