.header {
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    padding: clamp(7px, 1.25vw, 10px) var(--section-gutter);
    margin-bottom: clamp(15px, 3vw, 35px);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header__nav-left,
.header__nav-right {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    flex: 1;
    flex-wrap: wrap;
}

.header__nav-right {
    justify-content: flex-end;
}

.header__link {
    text-decoration: none;
    color: inherit;
}

.header__nav-left .header__link,
.header__nav-right .header__link {
    position: relative;
    padding-bottom: 2px;
}

.header__nav-left .header__link::after,
.header__nav-right .header__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.header__nav-left .header__link:hover::after,
.header__nav-right .header__link:hover::after {
    transform: scaleX(1);
}

.header__btn {
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    background-color: var(--color-darker);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.48px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.header__btn:hover {
    background-color: #000;
}

.header__logo {
    width: clamp(27px, 2.65vw, 34px);
    height: clamp(27px, 2.65vw, 34px);
    object-fit: contain;
    flex-shrink: 0;
}

.header__text {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 400;
    letter-spacing: -0.48px;
    color: var(--color-text);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface-2);
    flex-shrink: 0;
}

.header__burger span {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.header.is-open .header__burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header.is-open .header__burger span:nth-child(2) {
    opacity: 0;
}

.header.is-open .header__burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header__mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.header__mobile .header__link {
    padding: 14px 6px;
    font-size: 18px;
    border-bottom: 1px solid var(--color-border);
}

.header__btn--mobile {
    margin-top: 16px;
    text-align: center;
    align-self: flex-start;
    font-size: 15px;
}

@media (max-width: 1000px) {
    .header__nav-left,
    .header__nav-right {
        display: none;
    }

    .header__nav {
        justify-content: space-between;
    }

    .header__burger {
        display: flex;
    }

    .header__mobile {
        display: flex;
        margin-top: 18px;
    }

    .header.is-open .header__mobile {
        max-height: 70vh;
        opacity: 1;
        overflow-y: auto;
    }

    .header__logo {
        width: 30px;
        height: 30px;
    }
}

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