@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;700;900&display=swap");

header {
    height: 310px;
    gap: 48px;
    padding: 0 20px
}

.header-wrapper {
    height: -moz-fit-content;
    height: fit-content;
    padding: 0
}

.header-wrapper-select {
    position: static;
    transform: none
}

main {
    all: initial;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box
}

.main-wrapper {
    all: initial;
    display: flex;
    max-width: 80rem;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 150px;
    gap: 30px
}

.main-wrapper .breadcrumbs {
    align-self: flex-start;
    gap: 10px;
    font-family: "Jost", sans-serif;
    font-size: 18px
}

.main-wrapper .breadcrumbs a {
    transition: .5s all;
    text-decoration: none;
    color: #282639
}

.main-wrapper .breadcrumbs a:hover {
    color: #47C134
}

.main-wrapper .breadcrumbs span {
    color: #329423
}

.main-wrapper .breadcrumbs span a {
    color: #329423
}

.main-wrapper .variants {
    width: 100%;
    height: 80px;
    padding: 26px 30px;
    border-radius: 20px;
    background-color: #F8F8F8
}

.main-wrapper .variants h2 {
    font-family: "Jost", sans-serif;
    font-size: 28px;
    line-height: 100%;
    color: #282639;
    font-weight: 700px
}

.main-wrapper .select-filters {
    gap: 20px;
    width: 100%
}

.main-wrapper .select-filters h3 {
    font-family: "Jost", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 100%;
    color: #282639
}

.main-wrapper .select-filters-wrapper {
    width: 100%
}

.main-wrapper .select-filters-wrapper-left {
    gap: 20px;
    max-width: 85%
}

.main-wrapper .catalog {
    width: 100%;
    margin-top: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px
}

.main-wrapper .catalog .filters {
    max-width: 270px;
    width: 100%;
    padding: 25px 20px;
    border-radius: 20px;
    background-color: #F8F8F8;
    height: -moz-fit-content;
    height: fit-content;
    position: relative
}

.main-wrapper .catalog .filters .wrapper {
    height: -moz-fit-content;
    height: fit-content;
    width: 100%;
    gap: 40px
}

.main-wrapper .catalog .filters .sort-parametr {
    height: 24px
}

.main-wrapper .catalog .filters-h3 {
    font-family: "Jost", sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    color: #282639;
    font-weight: 500
}

.main-wrapper .catalog .filters-price {
    gap: 16px;
    font-family: "Jost", sans-serif;
    font-size: 18px;
    color: #282639
}

.main-wrapper .catalog .filters-price-wrapper {
    width: 100%
}

.main-wrapper .catalog .filters-days {
    gap: 10px
}

.main-wrapper .catalog .filters-type {
    gap: 16px
}

.main-wrapper .catalog .filters-type-wrapper {
    gap: 10px
}

.main-wrapper .catalog .filters-type-wrapper span {
    font-family: "Jost", sans-serif;
    font-size: 16px;
    color: #CECBCB;
    font-style: italic;
    line-height: 100%
}

.main-wrapper .catalog .filters-type-wrapper label {
    width: -moz-max-content;
    width: max-content
}

.main-wrapper .catalog .filters-people {
    width: 100%;
    gap: 16px
}

.main-wrapper .catalog .filters-people-wrapper {
    width: 100%
}

.main-wrapper .catalog .filters-people-wrapper img {
    position: absolute;
    right: 10px
}

.main-wrapper .catalog .filters-rooles {
    width: 100%;
    gap: 16px
}

.main-wrapper .catalog .filters-rooles-title {
    width: 100%
}

.main-wrapper .catalog .filters-rooles .help-red {
    width: 16px;
    height: 16px
}

.main-wrapper .catalog .filters-rooles-wrapper {
    gap: 10px
}

.main-wrapper .catalog .filters-rooles-wrapper .rool {
    width: 100%;
    font-family: "Jost", sans-serif;
    font-size: 17px;
    color: #282639;
    line-height: 100%
}

.main-wrapper .catalog .filters-cross {
    position: absolute;
    width: 21px;
    height: 21px;
    top: -40px;
    right: -20px;
    background-image: url(../images/filters-close.svg);
    background-size: cover;
    background-repeat: no-repeat
}

.main-wrapper .catalog .filters-cross.open {
    display: block
}

.main-wrapper .catalog .filters button {
    align-self: center
}

.main-wrapper .catalog .filters.open {
    display: flex;
    position: fixed;
    z-index: 4;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.main-wrapper .catalog .cards {
    width: 100%;
    gap: 30px;
    align-items: end
}

.main-wrapper .catalog .cards .found {
    max-width: 970px;
    width: 100%;
    height: 53px;
    border-radius: 6px;
    background-color: #F8F8F8;
    padding: 0 20px
}

.main-wrapper .catalog .cards .found h3 {
    font-family: "Jost", sans-serif;
    font-size: 18px;
    line-height: 100%;
    color: #282639;
    font-weight: 400
}

.main-wrapper .catalog .cards .found .sort {
    width: 260px;
    gap: 30px
}

.main-wrapper .catalog .cards-wrapper {
    max-width: 970px;
    width: 100%;
    display: grid;
    grid-template-columns: auto;
    gap: 30px
}

.main-wrapper .catalog .cards .pagination {
    margin-top: 10px;
    gap: 20px
}

.main-wrapper .catalog .cards .pagination .number-box.dots {
    background-color: transparent;
    color: #329423
}

.main-wrapper .catalog .cards .pagination .number-box.dots:hover {
    background-color: transparent;
    color: #329423
}

.main-wrapper .catalog .cards .pagination .number-box.active {
    background-color: #329423
}

.filters-rooles-help {
    position: absolute;
    width: 370px;
    height: 292px;
    background-color: #FFFFFF;
    right: -140%;
    top: 67%;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 3px 3px 16px rgba(0, 0, 0, .1);
    font-family: "Jost", sans-serif;
    font-size: 16px;
    line-height: 130%;
    color: #282639;
    z-index: 1;
    display: none
}

.filters-rooles-help::after {
    content: " ";
    display: block;
    width: 22px;
    height: 19px;
    background-color: #FFFFFF;
    position: absolute;
    left: -20px;
    top: 30px;
    -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    rotate: -90deg;
    box-shadow: inherit
}

.filters-rooles-help:hover {
    display: block
}

.catalog .filters-rooles .title .help-red:hover ~ .filters-rooles-help {
    display: block
}

.backdrop-wrapper-white {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .9);
    position: fixed;
    z-index: 111
}

.backdrop-wrapper-white.hidden {
    display: none
}
.btn-booking-show{
    width: 100%;
    padding: 6px 10px;
    border-radius: 16px;
    background-color: #FBDC03;
    cursor: pointer;
    transition: .5s all;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #282639;
    border: none;
    text-align: center;
}
.btn-booking-show:hover{
    background-color: #e4c503;
}
.btn-booking-show:active{
    background-color: #dbbc03;
}
.btns-booking button{
    width: 100%;
    margin: 8px 0;
}
.btns-booking a{
    display: inline-block;
    width: 100%;
    margin: 8px 0;
    text-decoration: none;
    line-height: 42px;
    text-align: center;
}

@media (max-width: 1023px) {
    header {
        height: 415px
    }

    .main-wrapper .variants {
        height: 170px;
        padding: 26px 15px;
        gap: 20px;
        text-align: center
    }

    .main-wrapper .select-filters-wrapper {
        gap: 20px
    }

    .main-wrapper .select-filters-wrapper-left {
        max-width: none
    }

    .main-wrapper .select-filters-wrapper .remove-all {
        flex-direction: row-reverse
    }

    .main-wrapper .select-filters .title {
        width: 100%;
        position: relative
    }

    .main-wrapper .select-filters .title .config {
        position: absolute;
        right: 0
    }

    .main-wrapper .catalog {
        grid-template-columns: auto
    }

    .main-wrapper .catalog .filters {
        /*display: none*/
        max-width: none;
    }

    .main-wrapper .catalog .filters .wrapper {
        height: 100%;
        overflow-y: scroll
    }

    .main-wrapper .catalog .filters .wrapper::-webkit-scrollbar {
        display: none
    }

    .main-wrapper .catalog .cards {
        align-items: center
    }

    .main-wrapper .catalog .cards .found {
        justify-content: center;
        flex-direction: column;
        height: -moz-fit-content;
        height: fit-content;
        align-items: start;
        gap: 20px;
        padding: 18px 20px
    }

    .main-wrapper .catalog .cards .found .sort {
        width: 100%;
        max-width: 260px;
        gap: 0
    }

    .main-wrapper .catalog .cards .pagination {
        gap: 10px
    }

    .main-wrapper .catalog .cards .pagination .number-box {
        width: 28px;
        height: 28px;
        font-size: 16px
    }
}

@media (max-width: 350px) {
    .main-wrapper .catalog .cards .found .sort {
        max-width: none;
        flex-wrap: wrap
    }

    .main-wrapper .catalog .cards .pagination {
        gap: 5px
    }

    .main-wrapper .catalog .cards-wrapper .card-apartment {
        grid-template-rows: 270px 240px 182px
    }
}

@media (max-width: 475px) {
    .main-wrapper-select {
        max-width: 100% !important
    }
}
