.sah-header {
    position: relative;
    z-index: 900;
    height: var(--sah-header-height);
    background: #fff;
    border-bottom: 1px solid var(--sah-border);
}

.sah-header__inner {
    width: min(100% - 48px, 1180px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.sah-header__logo {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.sah-header__logo strong {
    color: var(--sah-purple);
}

.sah-header__nav {
    display: flex;
    align-items: stretch;
    gap: 26px;
    height: 100%;
}

.sah-header__nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #171526;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.sah-header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--sah-purple);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.sah-header__nav a:hover::after,
.sah-header__nav a.is-active::after {
    transform: scaleX(1);
}

.sah-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sah-header__search {
    width: 188px;
    height: 38px;
    border: 0;
    border-radius: 20px;
    background: #faf4ff;
    color: #656074;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.sah-header__search span:first-child {
    font-size: 17px;
    line-height: 1;
}

.sah-header__icon {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #665f73;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
}

.sah-header__icon:hover {
    background: #f5eff9;
}

.sah-header__signin {
    min-width: 68px;
    height: 38px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--sah-purple);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.sah-header__signin:hover {
    background: var(--sah-purple-dark);
}

.sah-header__menu {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}

.sah-header__menu span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: #1d1930;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .sah-header__inner {
        width: min(100% - 28px, 1180px);
        gap: 12px;
    }

    .sah-header__nav {
        gap: 15px;
    }

    .sah-header__search {
        width: 160px;
    }
}

@media (max-width: 760px) {
    .sah-header {
        height: 58px;
    }

    .sah-header__inner {
        width: calc(100% - 20px);
        gap: 8px;
    }

    .sah-header__menu {
        display: block;
        flex: 0 0 40px;
    }

    .sah-header__logo {
        font-size: 18px;
    }

    .sah-header__nav {
        display: none;
    }

    .sah-header__actions {
        gap: 2px;
    }

    .sah-header__search {
        width: 40px;
        padding: 0;
        justify-content: center;
        background: transparent;
    }

    .sah-header__search span:last-child,
    .sah-header__icon {
        display: none;
    }

    .sah-header__signin {
        min-width: 62px;
        height: 36px;
        padding: 0 12px;
    }
}
