header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    width: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    color: #222;
    background: #F2F2F2;
    box-shadow: 0 0 4px rgba(0,0,0,0.08);
    border-radius: 0 0 10px 10px;
    transition: background .2s ease, color .2s ease, top .2s ease, border-radius .2s ease;
}

@media(max-width:1460px) {
    .hidden1460 {
        display: none;
    }
}

@media(max-width:1390px) {
    .hidden1390 {
        display: none;
    }
}

@media(max-width:1290px) {
    .hidden1290 {
        display: none;
    }
}

@media(max-width:1140px) {
    .hidden1140 {
        display: none;
    }
}

@media(max-width:1050px) {
    .hidden1050 {
        display: none !important;
    }
}

@media (min-width: 768px) {
    header {
        padding: 10px 40px;
        max-width: 1480px;
        border-radius: 10px;
        top: 10px;
    }
}

.logo {
    position: absolute;
    left: 50%;
    max-width: 220px;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .logo {
        position: static;
        transform: translateY(-5px);
    }
}

.phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.phone svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.phone-icon-desktop {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 2;
    fill: currentColor;
}

.desktop-phone {
    display: none;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

@media (min-width: 768px) {
    .desktop-phone {
        display: inline-flex;
        margin-right: 20px;
    }
}

.burger {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: all .3s;
}

.burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.desktop-nav, .cta {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 90;
    background: rgba(255, 255, 255, .99);
    color: #000;
    padding: 90px 22px 22px;
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease, visibility 0s .4s;
}

.mobile-menu.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease, visibility 0s;
}

.mobile-menu__list {
    list-style: none;
    max-width: 440px;
    margin: 0 auto;
}

.mobile-item { border-bottom: 1px solid rgba(0, 0, 0, .08); }

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    text-decoration: none;
    color: #000;
    font-size: 1.15rem;
    font-weight: 600;
}

.mobile-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    transition: transform .25s;
}

.mobile-accordion.open .mobile-arrow { transform: rotate(-135deg); }

.mobile-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.mobile-panel a {
    display: block;
    padding: 12px 0 12px 12px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

/* Desktop Styles */
@media (min-width:992px) {
    .burger, .mobile-menu, .phone { display: none; }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 28px;
        margin-inline: auto;
    }

    .desktop-nav ul {
        list-style: none;
        display: flex;
        gap: 28px;
        align-items: center;
    }

    .desktop-nav a, .dropdown-toggle {
        color: inherit;
        text-decoration: none;
        font-weight: 500;
        font-size: .95rem;
        cursor: pointer;
    }

    .desktop-nav a:hover { opacity: .75; }

    .dropdown { position: relative; }

    .dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 26px;
    }

    .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .arrow-down {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s ease;
    }

    .dropdown.open .arrow-down { transform: rotate(-135deg); }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 26px);
        left: 50%;
        transform: translateX(-50%);
        background: #F2F2F2;
        border-radius: 10px;
        opacity: 0;
        min-width: 200px;
        max-width: 270px;
        pointer-events: none;
        transition: opacity .15s ease, transform .15s ease;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    }

    .dropdown.open .dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%);
    }

    .dropdown-menu.mega {
        padding: 22px 28px;
    }


    .mega-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .brands-list  {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mega-list a {
        padding: 6px 0;
        font-size: 0.88rem;
        color: #333;
        transition: color 0.2s;
    }

    .mega-list a:hover { color: #000; font-weight: 500; }

    .cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 15px 24px;
        color: #fff;
        border: none;
        font-size: 16px;
        border-radius: 10px;
        font-weight: 700;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        background: var(--accent);
        box-shadow: 0 4px 14px rgba(28, 91, 150, 0.3);
        transition: transform 0.3s ease;
    }


    .cta:hover {transform: scale(1.05);}
}

@keyframes flare-auto {
    0% { transform: translateX(-140%) rotate(8deg); opacity: 0; }
    30% { opacity: 1; }
    90% { transform: translateX(140%) rotate(8deg); opacity: 1; }
    100% { transform: translateX(140%) rotate(8deg); opacity: 0; }
}