.header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-block: 18px;
    background: rgba(248, 230, 255, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid rgba(0,0,0,0.06);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    height: 34px;
    width: auto;
}

.nav {
    display: none;
    align-items: center;
    gap: 32px;
    font-weight: 700;
    font-size: 15px;
}

.nav a {
    position: relative;
    padding-block: 4px;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-pink);
    transition: width 0.25s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header .btn {
    padding: 12px 24px;
    font-size: 14px;
}

.sound-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 18px;
}

.sound-toggle .icon-off {
    display: none;
}

.sound-toggle.is-playing .icon-on {
    display: none;
}

.sound-toggle.is-playing .icon-off {
    display: block;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--color-black);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 900px) {
    .nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}

@media (max-width: 899px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        background: var(--color-lila);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        font-size: 22px;
        overflow-y: auto;
        z-index: 60;
    }

    .nav.is-open {
        display: flex;
        transform: translateX(0);
    }
}
