@import "../parts/cz-sc-map.css";
@import "../parts/cz-rent-form.css";
@import "../parts/cz-error-message.css";
@import "../parts/cz-success-message.css";
@import "../parts/cz-market-catalog.css";

.cz-market__catalog-section {
    padding-bottom: 60px;
}

.cz-market__swiper-container {
    padding-bottom: 30px;
}

.cz-contacts__popup-underlay--active {
    opacity: .3 !important;
    z-index: 99 !important;
}

.cz-contacts__popup-underlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: -1;
    opacity: 0;
    transition: .3s ease-in-out;
    overflow: hidden;
}

.cz-market__icon {
    width: 180px;
    height: 193px;
}

/*.cz-market__card-image {*/
/*    width: 100%;*/
/*    height: auto;*/
/*}*/

.cz-market__img-item {
    font-family: "Vollkorn";
    font-style: normal;
    font-weight: 700;
    color: var(--secondary-fc);
    text-transform: uppercase;
    text-align: center;
}

.cz-market__img-block-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.cz-market__img-text-container {
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 20%;
    left: 50%;

    transform: translateX(-50%);
}

.cz-market__img-block {
    display: flex;
    justify-content: center;
}

.cz-market__img-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.cz-market__img-title {
    font-size: 16px;
    padding-top: 20px;
}

.cz-market__img-value {
    font-size: 50px;
}

.cz-market__img-subscription, .cz-market__img-text {
    font-size: 16px;
}

.cz-market__paragraph {
    margin-bottom: 40px;
}

.cz-market__link {
    white-space: nowrap;
    color: var(--secondary-fc);
}

.cz-market__img-block {
    margin-bottom: 60px;
}

.cz-market__slide-image {
    width: 100%;
    height: 365px;
    object-fit: cover;
    border-radius: 10px;
}

.cz-market__swiper-wrapper {
    height: auto !important;
    overflow: visible;
    padding: 30px 0;
}

.cz-market__swiper-button-next, .cz-market__swiper-button-prev {
    color: var(--primary-fc);
    background: var(--secondary-fc);
}

.cz-market__section .swiper-pagination-bullet {
    /*background: rgba(225, 159, 148, 0.4);*/
}

.cz-market__block-title {
    margin-bottom: 30px;
}

.cz-market__section .swiper-pagination-bullet-active {
    background: var(--secondary-fc);
}

.cz-contacts__section {
    padding: 60px 0;
}

@media only screen and (max-width: 1150px) {
    .cz-market__img-block-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 30px;
    }

    .cz-market__img-item:nth-child(5) {
        grid-column: 1 / 3;
    }

    .cz-market__card-catalog {
        grid-template-columns: repeat(2, 1fr);
    }

    .cz-market__header-wrapper {
        flex-direction: column-reverse;
        row-gap: 30px;
        text-align: center;
    }

    .cz-market__card-image {
        height: 340px;
    }
}

@media only screen and (max-width: 920px) {
    .cz-sc-map__header {
        padding: 30px 0;
    }

    .cz-sc-map__image {
        width: 100%;
        height: auto;
    }

    .cz-market__filter-block {
        padding: 30px 0;
    }

    .cz-market__card-image {
        height: 250px;
    }

    .cz-sc-map__section-underlay {
        position: absolute;
        bottom: 10px;
        right: 0;
        top: unset;
        transform: unset;
    }

    .cz-contacts__form-body {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
    }

    .cz-contacts__form-group {
        display: flex;
        flex-direction: column-reverse;
        row-gap: 20px;
    }

    .cz-contacts__form-btn {
        width: 100%;
    }

    .cz-market__icon {
        width: 160px;
        height: auto;
    }
}

@media only screen and (max-width: 600px) {
    .cz-market__card-catalog {
        grid-template-columns: 1fr;
    }

    .cz-market__card-image {
        height: auto;
    }
}

@media only screen and (max-width: 450px) {
    .cz-market__img-block-wrapper {
        gap: 15px;
    }
}


