@import "./palette.css";
@import "./typography.css";
@import "./header.css";
@import "./footer.css";
@import "./cookie.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--background);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 5px;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

body {
    position: relative;
    font-family: "Hibana";
    color: var(--black);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #393939;
    z-index: 1;
}

#preloader.hide-preloader {
    animation: hidePreloader 1s;
}

#preloader.preloader-hidden {
    display: none;
}

@keyframes hidePreloader {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.container {
    max-width: 1240px;
}

section {
    padding: 0px 0 70px 0;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

.flats {
    padding-top: 25px;
}

.card {
    position: relative;
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    border-radius: 8px;
    box-shadow: 0px 0px 14px -1px rgba(57, 56, 57, 0.4);
    overflow: hidden;
    border: none !important;
}

.card:hover {
    opacity: 60%;
}

.card-stats {
    padding: 15px;
}

.fav__ico {
    position: absolute;
    right: 3%;
    top: 2%;
    z-index: 1;
}

.fav__ico._active path {
    fill: #EB6753;
}

.flats .card .btn {
    display: block;
}

.flat__description {
    padding: 0;
}

.flat__item_link {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
}

.btn:focus,
.btn.focus {
    outline: 0;
    box-shadow: none;
}

a:hover {
    text-decoration: none;
}

.fav-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.fav-row .card {
    margin-right: 30px;
}

.paginate {
    display: flex;
    padding: 0 !important;

    margin-top: 20px !important;
    margin-bottom: 40px !important;
    margin-left: auto;
    margin-right: auto;
}

.pagination__link {
    box-sizing: border-box;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.pagination__item:last-child .pagination__link {
    border: 2px solid #EB6753;

    width: unset;
    padding: 0 20px !important;
}

.pagination__item:last-child .pagination__link {
    margin-left: 20px;
}

.pagination__link {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
}

.pagination__link:hover,
.pagination__link.active {
    color: var(--white);
    background-color: #EB6753;
    border-color: #EB6753;
}

/******************** callback button **********************/
#uptocall-mini {
    cursor: pointer;
    background-color: #0c257c;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    width: 64px;
    height: 64px;
    text-align: center;
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 999;
    transition: 0.3s;
    outline: none;
}

#uptocall-mini .uptocall-mini-phone {
    display: flex;
    align-items: center;
    justify-content: center;
}

.uptocall-mini-phone svg {
    height: 32px;
    width: 32px;
}

#uptocall-mini .uptocall-mini-phone {
    -moz-border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    border-radius: 50% !important;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    background-color: rgba(12, 37, 124, 0.5);
    width: 64px;
    height: 64px;
    -webkit-animation: uptocallmini 1.5s 0s ease-out infinite;
    -moz-animation: uptocallmini 1.5s 0s ease-out infinite;
    animation: uptocallmini 1.5s 0s ease-out infinite;
}

@media (max-width: 991px) {

    #uptocall-mini,
    #uptocall-mini .uptocall-mini-phone {
        width: 56px;
        height: 56px;
    }

    .uptocall-mini-phone svg {
        height: 23px;
        width: 23px;
    }
}

@media (max-width: 768px) {

    #uptocall-mini,
    #uptocall-mini .uptocall-mini-phone {
        width: 46px;
        height: 46px;
    }

    .uptocall-mini-phone svg {
        height: 19px;
        width: 19px;
    }
}

@-webkit-keyframes uptocallphone {
    0% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    25% {
        -ms-transform: rotate(30deg);
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
    }

    50% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    75% {
        -ms-transform: rotate(-30deg);
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@-moz-keyframes uptocallphone {
    0% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    25% {
        -ms-transform: rotate(30deg);
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
    }

    50% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    75% {
        -ms-transform: rotate(-30deg);
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes uptocallphone {
    0% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    25% {
        -ms-transform: rotate(30deg);
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
    }

    50% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    75% {
        -ms-transform: rotate(-30deg);
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@-webkit-keyframes uptocallmini {
    0% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px 0px rgba(23, 167, 167, 0);
    }

    10% {
        box-shadow: 0 0 8px 6px #0c257c, 0 0 12px 10px rgba(0, 0, 0, 0),
            0 0 12px 14px #0c257c;
    }

    100% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 40px rgba(0, 0, 0, 0), 0 0 0px 40px rgba(23, 167, 167, 0);
    }
}

@-moz-keyframes uptocallmini {
    0% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px 0px rgba(23, 167, 167, 0);
    }

    10% {
        box-shadow: 0 0 8px 6px #0c257c, 0 0 12px 10px rgba(0, 0, 0, 0),
            0 0 12px 14px #0c257c;
    }

    100% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 40px rgba(0, 0, 0, 0), 0 0 0px 40px rgba(23, 167, 167, 0);
    }
}

@keyframes uptocallmini {
    0% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 0px rgba(0, 0, 0, 0), 0 0 0px 0px rgba(23, 167, 167, 0);
    }

    10% {
        box-shadow: 0 0 8px 6px #0c257c, 0 0 12px 10px rgba(0, 0, 0, 0),
            0 0 12px 14px #0c257c;
    }

    100% {
        box-shadow: 0 0 8px 6px rgba(23, 167, 167, 0),
            0 0 0px 40px rgba(0, 0, 0, 0), 0 0 0px 40px rgba(23, 167, 167, 0);
    }
}

@media (max-width: 1024px) {
    .fav-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 850px) {
    .fav-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 0 35px;
    }
}

@media (max-width: 600px) {
    .pagination__link {
        padding: 5px 15px !important;
        text-decoration: none;
        color: var(--black);
        font-weight: 500;
        font-size: 10px;
    }

    .pagination__item:last-child .pagination__link {
        margin-left: 5px;
    }

    .fav-row {
        grid-template-columns: 1fr;
    }

    .fav-row .card {
        margin-right: 0;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .fav-row .card .card-stats {
        margin: auto;
        border-left: 1px solid var(--lightGray);
        padding-right: 0;
    }

    .fav-row .flat__img {
        padding-right: 0 !important;
        padding: 15px;
    }

    .fav-row .card h4 {
        letter-spacing: unset;
        margin: 0;
    }

    .fav-row .card h3 {
        font-size: 18px;
    }

    .fav-row .card .fav__ico {
        right: 0%;
        left: 3%;
        top: 5%;
    }
}

@media (max-width: 400px) {
    section {
        padding: 0 10px;
    }
}

/* swiper */
.switches-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
}

.switches-button {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.prewbutton,
.nextbutton {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-form {
    max-width: 550px;
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.main-form .sub_two {
    font-weight: 500;
    margin-top: 20px;
}

.main-form__field {
    width: 100%;
    margin-bottom: 20px;
}

.main-form__field input {
    padding: 12px 8px;
    border: none;
    border-bottom: 1px solid var(--lightGray);
    width: 100%;
    outline: none;
    color: inherit;
}

.main-form__field input::placeholder {
    color: #808A9A;
}

.main-form__footer {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.form .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-img {
    max-width: 550px;


}

.form-img img {
    width: 100%;
    box-shadow: 0px 0px 14px -1px rgba(57, 56, 57, 0.7);
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .form .container {
        padding: 0;
    }

    .main-form {
        padding: 0 10px 40px;
    }

    .main-form__footer {
        flex-direction: column;
    }

    .main-form__footer .button {
        margin: auto;
    }

    .form-img {
        display: none;
    }
}

.box-shadow {
    box-shadow: 0px 0px 14px -1px rgba(57, 56, 57, 0.7);
}

.swiper-slide {
    box-shadow: none !important;
}

.after_form_modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 78px;
    gap: 32px;
    width: 576px;
    height: 301px;
    background: #fff;
    visibility: hidden;
    border: 1px solid #868994;
    position: fixed;
    top: 30%;
    left: calc(50% - 288px)
}

.after_modal_form_h2 {
    font-style: normal;
    font-weight: 500;
    font-size: 30px;
    line-height: 45px;
    text-align: center;
    letter-spacing: .07em;
    text-transform: uppercase
}

.after_modal_form_h4 {
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    letter-spacing: 1.5px;
    color: #202020
}

.after_modal_form_close {
    cursor: pointer;
    width: 100%;
    padding: 20px 60px;
    border: 2px var(--accent) solid;
    border-radius: 32px;
    font-style: normal;
    font-weight: 900;
    font-size: 12px;
    line-height: 14px;
    align-items: center;
    text-align: center;
    letter-spacing: .6px;
    text-transform: uppercase
}

.error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error h1 {
    font-size: 94px;
}

.bread-crumb {
    color: var(--black);
    padding-bottom: 4px;
}

.bread-crumb::after {
    display: flex;
    flex-direction: column;
    content: '';
    height: 1px;
    width: 100%;
    border: 1px solid var(--black);
}

.bread-crumb:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.parking-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.parking-card__content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.parking-card__content span {
    margin-right: 20px;
}

@media screen and (max-width: 600px) {
    .parking-card {
        flex-direction: column;
    }

    .parking-card__content span {
        margin-bottom: 20px;
    }

    .parking-row .parking-card {
        margin-bottom: 40px;
    }
}

.info__full-price {
    font-weight: 400;
    font-size: 13px;
    color: #202020;
    white-space: nowrap;
}

.info__full-payment {
    display: flex;
    flex-direction: column;
}

.info__full-payment span {
    font-weight: 700;
    font-size: 15px;
    text-align: right;
    color: #202020;
    white-space: nowrap;
}

.info__full-payment span:nth-last-child(1) {
    font-weight: 600;
    font-size: 9px;
}

.info-div_pricing {
    align-items: flex-start !important;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 1200px) {
    .info-div_pricing {
        flex-direction: column;
    }

    .info__full-payment {
        margin-top: 10px;
    }

    .info__full-payment span {
        text-align: unset;
    }
}

@media (max-width: 992px) {
    .info-div_pricing {
        flex-direction: row;
    }

    .info__full-payment {
        margin-top: 0px;
    }

    .info__full-payment span {
        text-align: right;
    }
}

@media (max-width: 440px) {
    .info-div_pricing {
        flex-direction: column;
    }

    .info__full-payment {
        margin-top: 10px;
    }

    .info__full-payment span {
        text-align: unset;
    }
}

.card__discount span {
    color: #EB6753;
}

.price-strikethrough {
    text-decoration: line-through;
    opacity: 0.6;
}