.home-hero {
    max-width: 1104px;
}

.home-search {
    width: 100%;
    margin: 0;
}

.home-hero__text {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.35;
}

.home-hero__text p {
    margin: 0 0 6px;
}

.home-search__tabs {
    display: flex;
    gap: 6px;
}

.home-search__tab {
    margin: 0;
    cursor: pointer;
}

.home-search__tab input {
    position: absolute;
    opacity: 0;
}

.home-search__tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 187px;
    height: 39px;
    padding: 0 16px;
    border-radius: 9px 9px 0 0;
    background: #E6E6E6;
    color: #000000;
    font-size: 14px;
}

.home-search__tab input:checked + span {
    background: #FFFFFF;
}

.home-search__tab input:focus-visible + span,
.home-search__cell select:focus-visible,
.home-search__button:focus-visible,
.home-search__submit:focus-visible {
    outline: 2px solid #FEAC00;
    outline-offset: -2px;
}

.home-search__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: center;
    min-height: 60px;
    border-radius: 0 9px 9px 9px;
    background: #FFFFFF;
}

.home-search__cell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 60px;
    margin: 0;
    padding: 0 20px;
}

.home-search__cell + .home-search__cell::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    border-left: 1px solid #E6E6E6;
}

.home-search__cell.is-enhanced {
    padding: 0;
}

.home-search__cell select {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #808080;
    font-size: 14px;
    text-overflow: ellipsis;
}

.home-search__button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 0 24px;
    border: 0;
    background: transparent;
    color: #808080;
    font-size: 14px;
    text-align: left;
}

.home-search__button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-search__button.is-chosen {
    color: #000000;
}

.home-search__menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: none;
    width: 100%;
    min-width: 220px;
    max-height: 300px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border-top: 1px solid #CCCCCC;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
}

.home-search__cell.is-open .home-search__menu {
    display: block;
}

.home-search__menu li + li {
    border-top: 1px solid #CCCCCC;
}

.home-search__menu button {
    width: 100%;
    padding: 15px 24px;
    border: 0;
    background: #FFFFFF;
    color: #000000;
    font-size: 14px;
    text-align: left;
}

.home-search__menu button:hover,
.home-search__menu button:focus-visible,
.home-search__menu button[aria-selected="true"] {
    background: #F2F2F2;
    outline: none;
}

.home-search__action {
    padding: 0 17px;
}

.home-search__submit {
    width: 170px;
    height: 35px;
    border: 0;
    border-radius: 57px;
    background: #000000;
    color: #FFFFFF;
    font-size: 14px;
}

@media (max-width: 768px) {
    .home-hero {
        padding: 0 20px;
    }

    .home-search__tab {
        flex: 1;
    }

    .home-search__tab span {
        min-width: 0;
        padding: 0 8px;
        font-size: 13px;
    }

    .home-search__row {
        grid-template-columns: 1fr;
        border-radius: 0 0 9px 9px;
    }

    .home-search__cell {
        height: 52px;
        border-bottom: 1px solid #E6E6E6;
    }

    .home-search__cell + .home-search__cell::before {
        display: none;
    }

    .home-search__menu {
        position: static;
        box-shadow: none;
    }

    .home-search__cell.is-open {
        height: auto;
        flex-wrap: wrap;
    }

    .home-search__cell.is-open .home-search__button {
        height: 52px;
    }

    .home-search__action {
        padding: 12px 20px;
    }

    .home-search__submit {
        width: 100%;
        height: 44px;
    }
}
