* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}
.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
}
.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.logo img {
    height: 55px;
    display: block;
}
.nav > ul {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav ul li {
    position: relative;
}
.nav ul li a {
    text-decoration: none;
    color: #58595b;
    font-size: 15px;
    font-weight: 500;
}
.nav ul li a:hover {
    color: #fa2660;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #fa2660;
    transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.submenu-toggle {
    display: none;
}
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.submenu li a {
    display: block;
    text-decoration: none;
    color: #58595b;
    font-size: 14px;
}

@media (min-width: 861px) {
    .submenu {
        position: absolute;
        top: 40px;
        left: 0;
        background: #ffffff;
        border: 1px solid #e7e7e7;
        border-top: 2px solid #fa2660;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
        padding: 8px 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .submenu li a {
        padding: 10px 18px;
        white-space: nowrap;
    }
    .submenu li a:hover {
        background: #f5f6f8;
        color: #fa2660;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: flex;
    }
    .nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav.open {
        max-height: 800px;
    }
    .nav > ul {
        flex-direction: column;
        padding: 15px 0;
        gap: 4px;
    }
    .nav ul li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        font-size: 13px;
        color: #fa2660;
    }
    .header-inner {
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    .has-submenu > a::after {
        display: none;
    }
    .submenu-toggle {
        display: block;
        position: absolute;
        top: -16px;
        right: 0;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .submenu-toggle::before {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        margin: 18px auto 0;
        border-right: 2px solid #fa2660;
        border-bottom: 2px solid #fa2660;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }
    .has-submenu.is-open .submenu-toggle::before {
        transform: rotate(-135deg);
        margin-top: 22px;
    }
    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 16px;
    }
    .has-submenu.is-open .submenu {
        max-height: 400px;
    }
    .submenu li a {
        padding: 10px 0;
        font-size: 13px;
        border-bottom: 1px solid #f0f0f0;
    }
}