.market-header {
    --market-header-width: 1640px;
    --market-header-text: #ffffff;
    position: relative;
    z-index: 80;
    width: 100%;
    color: var(--market-header-text);
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.market-header--home {
    position: absolute;
    inset: 0 0 auto;
    background: linear-gradient(180deg, rgba(7, 12, 18, .48), rgba(7, 12, 18, 0));
}

.market-header--catalog {
    position: sticky;
    top: 0;
    background: #111315;
    box-shadow: 0 10px 34px rgba(10, 15, 20, .18);
}

.market-header__top {
    width: min(var(--market-header-width), calc(100% - 36px));
    min-height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(520px, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 1.6vw, 28px);
}

.market-header--home .market-header__top {
    grid-template-columns: auto 1fr;
    min-height: 94px;
}

.market-header__brand {
    color: inherit;
    font-size: clamp(23px, 1.8vw, 29px);
    font-weight: 800;
    letter-spacing: -.055em;
    text-decoration: none;
    white-space: nowrap;
}

.market-header--home .market-header__brand {
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

.market-header__actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.market-action {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: inherit;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.market-action:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .15);
}

.market-action svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-action--business {
    border-color: #ffffff;
    color: #111315;
    background: #ffffff;
}

.market-action--business:hover {
    border-color: #ffffff;
    background: #f2f5f6;
}

.market-header .language-trigger {
    width: 42px;
    min-width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-color: rgba(255, 255, 255, .30);
    box-shadow: none;
}

.market-search {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(200px, 1.35fr) minmax(140px, .82fr) minmax(142px, .76fr) auto;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 9px 30px rgba(0, 0, 0, .16);
}

.market-search__field {
    min-width: 0;
    min-height: 54px;
    padding: 7px 12px 7px 40px;
    position: relative;
    display: grid;
    align-content: center;
    gap: 1px;
    color: #20252d;
    background: #ffffff;
}

.market-search__field + .market-search__field {
    border-left: 1px solid #e3e7ea;
}

.market-search__field > svg {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    fill: none;
    stroke: #687384;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-search__label {
    overflow: hidden;
    color: #566172;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-search input {
    width: 100%;
    min-width: 0;
    min-height: 24px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #151a21;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
}

.market-search input::placeholder {
    color: #7a8492;
    opacity: 1;
}

.market-search__field:focus-within {
    z-index: 1;
    box-shadow: inset 0 0 0 2px #087f78;
}

.market-search__submit {
    min-width: 58px;
    padding: 0 17px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff;
    background: #087f78;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.market-search__submit:hover {
    background: #066f69;
}

.market-search__submit svg {
    width: 19px;
    height: 19px;
    display: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-header__categories {
    width: min(var(--market-header-width), calc(100% - 36px));
    min-height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 52px);
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, .10);
    scrollbar-width: none;
}

.market-header__categories::-webkit-scrollbar {
    display: none;
}

.market-header__categories a {
    padding: 14px 0 13px;
    position: relative;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.market-header__categories a::after {
    content: "";
    height: 2px;
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    border-radius: 999px;
    background: #ffffff;
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .16s ease, transform .16s ease;
}

.market-header__categories a:hover {
    color: #ffffff;
}

.market-header__categories a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

@media (max-width: 1320px) {
    .market-header__top {
        grid-template-columns: auto minmax(480px, 1fr) auto;
        gap: 12px;
    }

    .market-action {
        padding-inline: 11px;
    }

    .market-action--account span {
        display: none;
    }
}

@media (max-width: 1120px) {
    .market-header--catalog .market-header__top {
        padding: 14px 0;
        grid-template-columns: auto 1fr;
    }

    .market-header--catalog .market-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .market-header--catalog .market-header__actions {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 760px) {
    .market-header__top,
    .market-header__categories {
        width: min(100% - 24px, var(--market-header-width));
    }

    .market-header--home .market-header__top {
        min-height: 74px;
        gap: 10px;
    }

    .market-header__brand {
        font-size: 22px;
    }

    .market-header--home .market-action--business {
        display: inline-flex;
    }

    .market-header--home .market-action--panel {
        display: none;
    }

    .market-action {
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .market-header .language-trigger {
        width: 38px;
        min-width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .market-header--catalog .market-header__top {
        padding: 10px 0;
    }

    .market-header--catalog .market-action--business {
        display: inline-flex;
    }

    .market-search {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .market-search__field--city,
    .market-search__field--date {
        display: none;
    }

    .market-search__submit {
        min-width: 52px;
        padding: 0;
    }

    .market-search__submit span {
        display: none;
    }

    .market-search__submit svg {
        display: block;
    }

    .market-header__categories {
        justify-content: flex-start;
        gap: 26px;
    }
}

@media (max-width: 520px) {
    .market-header--home .market-action:not(.market-action--account):not(.market-action--business) {
        display: none;
    }

    .market-header--home .market-action--business {
        display: inline-flex;
        min-height: 36px;
        padding-inline: 11px;
        font-size: 11px;
    }

    .market-header--home .market-action--account span {
        display: none;
    }

    .market-header--home .market-action--account {
        width: 36px;
        min-width: 36px;
        padding: 0;
        justify-content: center;
    }

    .market-header--catalog .market-action:not(.market-action--account) {
        display: none;
    }

    .market-header--catalog .market-action--business {
        min-height: 36px;
        padding-inline: 10px;
        display: inline-flex;
        font-size: 11px;
    }

    .market-header--catalog .market-header__top {
        grid-template-columns: auto 1fr;
    }
}
