:root {
    --lg-header-burgundy: #a91435;
    --lg-header-burgundy-dark: #8b112c;
    --lg-header-gold: #d2aa53;
    --lg-header-text: #1f1f1f;
    --lg-header-muted: #4a4a4a;
    --lg-header-height: 76px;
}

body.fl-page {
    padding-top: var(--lg-header-height);
}

.lg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #fff;
    border-bottom: 1px solid #ece7e2;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.lg-header.is-scrolled {
    border-bottom-color: transparent;
    box-shadow: 0 6px 24px rgba(31, 31, 31, 0.1);
}

.lg-header__bar,
.lg-header__inner {
    width: 100%;
}

.lg-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.45rem 1.25rem;
    min-height: var(--lg-header-height);
    box-sizing: border-box;
}

.lg-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.lg-header__logo img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.lg-header__panel {
    display: contents;
}

.lg-header__nav {
    justify-self: center;
}

.lg-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lg-header__item {
    position: relative;
}

.lg-header__parent {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.lg-header__link,
.lg-header__sublink {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 0.75rem;
    font-family: "Raleway", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lg-header-text);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.lg-header__link:hover,
.lg-header__link:focus-visible,
.lg-header__sublink:hover,
.lg-header__sublink:focus-visible {
    color: var(--lg-header-burgundy);
    background: rgba(169, 20, 53, 0.06);
    outline: none;
}

.lg-header__link.is-active,
.lg-header__sublink.is-active {
    color: var(--lg-header-burgundy);
    box-shadow: inset 0 -3px 0 var(--lg-header-gold);
}

.lg-header__submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--lg-header-text);
    cursor: pointer;
}

.lg-header__submenu-toggle:focus-visible {
    outline: 2px solid var(--lg-header-burgundy);
    outline-offset: 2px;
}

.lg-header__submenu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: #fff;
    border: 1px solid #e8e2dc;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(31, 31, 31, 0.12);
    z-index: 10;
}

.lg-header__item--has-children:hover .lg-header__submenu,
.lg-header__item--has-children:focus-within .lg-header__submenu,
.lg-header__item--has-children.is-open .lg-header__submenu {
    display: block;
}

.lg-header__sublink {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
}

.lg-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-shrink: 0;
}

.lg-header__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--lg-header-text);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.lg-header__cart i {
    font-size: 1.25rem;
}

.lg-header__cart:hover,
.lg-header__cart:focus-visible {
    color: var(--lg-header-burgundy);
    background: rgba(169, 20, 53, 0.06);
    outline: none;
}

.lg-header__cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--lg-header-burgundy);
    color: #fff;
    font-family: "Montserrat", "Raleway", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

.lg-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.35rem 0.55rem;
    font-family: "Raleway", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--lg-header-text);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}

.lg-header__phone i {
    font-size: 18px;
    color: var(--lg-header-burgundy);
}

.lg-header__phone:hover,
.lg-header__phone:focus-visible {
    color: var(--lg-header-burgundy);
    background: rgba(169, 20, 53, 0.06);
    outline: none;
}

.lg-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.6rem 1.25rem;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--lg-header-burgundy);
    border: 2px solid var(--lg-header-burgundy);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(169, 20, 53, 0.22);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lg-header__cta:hover,
.lg-header__cta:focus-visible {
    color: #fff;
    background: var(--lg-header-burgundy-dark);
    border-color: var(--lg-header-burgundy-dark);
    box-shadow: 0 6px 18px rgba(169, 20, 53, 0.28);
    transform: translateY(-1px);
    outline: none;
}

.lg-header__toggle {
    display: none;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.5rem 0.85rem;
    border: 2px solid var(--lg-header-burgundy);
    border-radius: 10px;
    background: #fff;
    color: var(--lg-header-burgundy);
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.lg-header__toggle:focus-visible {
    outline: 2px solid var(--lg-header-gold);
    outline-offset: 2px;
}

.lg-header__toggle-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}

.lg-header__toggle-line {
    display: block;
    width: 100%;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lg-header.is-menu-open .lg-header__toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.lg-header.is-menu-open .lg-header__toggle-line:nth-child(2) {
    opacity: 0;
}

.lg-header.is-menu-open .lg-header__toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1100px) {
    .lg-header__inner {
        grid-template-columns: auto auto;
        grid-template-areas:
            "logo toggle"
            "panel panel";
        gap: 0.65rem 1rem;
        padding: 0.6rem 1rem;
        min-height: auto;
    }

    .lg-header__logo {
        grid-area: logo;
    }

    .lg-header__toggle {
        display: inline-flex;
        grid-area: toggle;
        justify-self: end;
    }

    .lg-header__panel {
        display: none;
        grid-area: panel;
        flex-direction: column;
        gap: 1rem;
        padding: 0.25rem 0 0.75rem;
    }

    .lg-header.is-menu-open .lg-header__panel {
        display: flex;
    }

    .lg-header__nav,
    .lg-header__actions {
        width: 100%;
        justify-self: stretch;
    }

    .lg-header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .lg-header__item {
        width: 100%;
    }

    .lg-header__parent {
        justify-content: space-between;
    }

    .lg-header__submenu-toggle {
        display: inline-flex;
    }

    .lg-header__submenu {
        position: static;
        display: none;
        min-width: 0;
        margin-top: 0.35rem;
        padding: 0.25rem 0 0.25rem 0.75rem;
        border: 0;
        border-left: 3px solid var(--lg-header-gold);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .lg-header__item--has-children.is-open .lg-header__submenu {
        display: block;
    }

    .lg-header__item--has-children:hover .lg-header__submenu,
    .lg-header__item--has-children:focus-within .lg-header__submenu {
        display: none;
    }

    .lg-header__item--has-children.is-open:hover .lg-header__submenu,
    .lg-header__item--has-children.is-open:focus-within .lg-header__submenu {
        display: block;
    }

    .lg-header__link,
    .lg-header__sublink {
        width: 100%;
        font-size: 18px;
        padding: 0.85rem 1rem;
    }

    .lg-header__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid #ece7e2;
    }

    .lg-header__cart {
        align-self: flex-start;
        margin-left: 0.5rem;
    }

    .lg-header__phone {
        justify-content: center;
        font-size: 18px;
        padding: 0.85rem 1rem;
        background: #faf8f6;
    }

    .lg-header__cta {
        width: 100%;
        min-height: 52px;
        font-size: 16px;
    }
}

@media (max-width: 1100px) {
    body.fl-page.lg-header-mobile-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .lg-header__logo img {
        width: 52px;
        height: 52px;
    }

    .lg-header__toggle-text {
        display: none;
    }
}
