.site-header {
    position: relative;
    z-index: 100;

    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}


.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 42px;
}


.header-logo {
    flex: 0 0 auto;
}


.header-logo img {
    width: 150px;
    height: auto;
}


.main-nav {
    display: flex;
    align-self: stretch;
    align-items: center;

    gap: 32px;
}


.main-nav__link {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;

    color: #454545;

    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.2s ease;
}


.main-nav__link:hover {
    color: var(--color-accent);
}


.main-nav__link.is-active {
    color: var(--color-text);
}


.main-nav__link.is-active::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    height: 3px;

    background: var(--color-accent);
    border-radius: 3px 3px 0 0;
}


.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 14px;
}


.header-search {
    width: 235px;
    height: 40px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    border: 1px solid var(--color-border);
    border-radius: 20px;

    background: #fafafa;
}


.header-search__icon {
    margin-right: 8px;

    color: #999999;

    font-size: 20px;
    line-height: 1;
}


.header-search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--color-text);
}


.header-search input::placeholder {
    color: #999999;
}



/* Активный поиск */
.header-search {
    padding: 0 13px 0 9px;
}

.header-search:focus-within {
    border-color: #b9c0bd;
    background: #ffffff;
}

.header-search__button {
    width: 28px;
    height: 100%;

    display: grid;
    place-items: center;
    flex: 0 0 28px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.header-search__icon {
    margin-right: 0;
}

.header-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

/* Мобильная кнопка меню. На десктопе скрыта. */
.header-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.header-menu-toggle__line {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #10201c;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.header-menu-toggle.is-open .header-menu-toggle__line:nth-child(2) {
    opacity: 0;
}

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

/* Финальная настройка иконки поиска */
.header-search__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e9793;
    line-height: 0;
}

.header-search__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
