﻿:root {
    --main-detail-height-lg: auto;/*516px;*/
    --main-detail-height-xs: 555px;
    --detail-page-slider-lg-height: 485px;
    --detail-page-slider-lg-outside-height: 563px;
        --detail-page-slider-xs-height: 222px;
    --detail-page-slider-xs-outside-height: 222px;
}

.detail-main-info {
    display: grid;
    grid-template-columns: 52% 1fr;
    gap: 2vw;
    /*max-height: var(--main-detail-height-lg);*/
}

/*.service-images-v3 {
    height: var(--main-detail-height-lg);
}*/

.service-image-v3 img {
    /*object-fit: cover;
    height: var(--main-detail-height-lg);*/
    /*max-height: var(--main-detail-height-lg);*/
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--primary-shadow);
}

.detail-title-v3 {
    font-weight: 600;
    font-size: calc(22px + 6 * ((100vw - 320px) / 1600));
    line-height: 1;
    margin: .3rem 0px;
}

/*.detail-container-v3.parking .detail-title-v3 {
    font-size: calc(22px + 8 * (100vw / 1920));
}*/

.detail-subtitle-v3 {
    font-size: calc(16px + 4 * ((100vw - 320px) / 1600));
    font-weight: 500;
    line-height: 1;
    margin-top: .5em;
}

#detail-service-slider {
    /*height: var(--detail-page-slider-lg-height);*/
    max-height: var(--detail-page-slider-lg-height);
}

#detail-service-slider .swiper-pagination {
    --swiper-pagination-bottom: 0px;
}

#detail-service-slider .swiper-slide img {
    width: 100%;
    /*height: calc(var(--detail-page-slider-lg-height) - 30px);*/ /* высота слайда минус высота для точек пагинации*/
    /*object-fit: cover;*/
    border-radius: var(--border-radius);
    object-position: left top;
}

#detail-service-slider.outside {
    height: var(--detail-page-slider-lg-outside-height);
    /*max-height: var(--detail-page-slider-lg-outside-height);*/
}

#detail-service-slider.outside .swiper-pagination {
    --swiper-pagination-bottom: 0px;
}

#detail-service-slider.outside .swiper-slide img {
    height: var(--detail-page-slider-lg-outside-height); /*calc(var(--detail-page-slider-lg-height) - 55px);*/
    /*max-height: var(--detail-page-slider-lg-outside-height);*/
}

.autoplay-progress {
    right: 6px;
    bottom: 35px;
    width: 40px;
    height: 40px;
    font-weight: 500;
    color: #FFFFFF;
    font-size: 12px;
}

.price-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 1em 0px;
    background-color: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--primary-shadow);
}

.detail-container-v3.parking .price-wrapper {
    margin: 0px 0px 1em 0px;
}

.price-prefix {
    font-weight: 500;
    font-size: 80%;
    padding-right: .5rem;
}

.price-v3 {
    border-radius: 40px;
    background-color: #F0F3F7;
    border: 1px solid #A3AFC0;
    padding: .15em 1em;
    color: var(--primary-font-color);
    font-size: calc(16px + 9 * ((100vw - 320px) / 1600));
    font-weight: 600;
    width: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
}

.detail-actions-wrapper {
    /*flex-shrink: 0;
    margin: 1em 0px 0px 0px;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    right: 0;*/
    width: 48%;
    height: 3rem;
}

/*.detail-container-v3.parking .detail-actions-wrapper {
    height: 2.3rem;
}*/

.detail-actions-wrapper .add-to-basket {
    width: 100%;
    margin: 0px;
    height: 100%;
    font-size: 20px;
    font-weight: 600;
}

.buy-now {
    width: 50%;
    height: 47px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .5em;
}
/*
.detail-actions-wrapper .add-to-basket {
    width: 50%;
    height: 47px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: .5em;
}
*/

.detail-actions-wrapper .add-to-basket i {
    padding-right: .5em;
}

.service-content-v3 {
    display: flex;
    flex-direction: column;
    height: var(--main-detail-height-lg);
    /*min-height: var(--main-detail-height-lg);*/
    position: relative; 
}

.service-content-v3.grid {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.service-content-v3-center {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.service-content-v3-center .price-wrapper detail-pic {
    margin: 0px;
}

    .detail-actions-wrapper .in-basket-v3-text-wrapper {
        width: 100%;
        height: 100%;
    }

.detail-actions-wrapper .in-basket-v3-text-wrapper i {
    font-size: 25px;
    padding-right: .5rem;
}


a.in-basket-v3-text {
    color: inherit;
}

a.in-basket-v3-text:hover {
    text-decoration: none;
}

service-content-v3 > div {
    flex: 1;
    position: relative;
}

.detail-description-wrapper {
    margin: 1em 0px;
}

.detail-description {
    font-size: calc(16px + 4 * ((100vw - 320px) / 1600));
    font-weight: 500;
    line-height: 1;
}

.service-features-wrapper-v3 {
    margin: 1em 0px 0px 0px;
    max-height: 11.8rem;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
}

.service-features-wrapper-v3 ul {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}


.detail-description-wrapper-v3 {
    max-height: 8rem;
    overflow-y: auto;
}

li.feature-item {
    font-size: calc(15px + 2 * ((100vw - 320px) / 1600));
    font-weight: 500;
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0px 0px .5em 0px;
    width: 100%
}

.feature-item img {
    width: 35px;
}

.feature-item span {
    padding-left: 20px;
    font-weight: 500;
}

.service-titles .type-description {
    color: #9DA1A6;
    font-family: Montserrat;
    font-size: calc(14px + 4 * ((100vw - 320px) / 1600));
    font-weight: 500;
    line-height: normal;
}

.detail-other-info {
    border-radius: 20px;
    margin: 2em 0px;
    background: var(--promoblock-background-color);
    padding: 1.5em 1.5em 1em 1.5em;
    max-height: 21.5rem;
    overflow-y: hidden;
    position: relative;
    box-shadow: var(--primary-shadow);
}

.detail-other-info.parking {
    margin: 0px;
    max-height: 21.5rem;
}

.detail-other-info.all-content {
    max-height: unset;
}

.detail-other-info ul,
.detail-other-info ol {
    padding-left: 1em;
}

.service-rules-wrapper-v3 {
    border-radius: 20px;
    margin: 1em 0px;
    background: white;
    padding: 1.5em 1.5em 1em 1.5em;
    box-shadow: var(--primary-shadow);
}

.show-more {
    font-weight: 500;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--promoblock-background-color);
    /*height: 3em;*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5em 0px;
    cursor: pointer;
}

.show-more span{
    opacity: .5;
}

.show-more i {
    padding-left: .5em;
    opacity: .5;
}

.show-more.all-content {
    position: unset;
    padding: 1em 0px 0px 0px;
}

.recommended-services-wrapper.from-detail .swiper-button-next, .recommended-services-wrapper.from-detail .swiper-button-prev {
    display: none;
}

.recommended-title {
    text-transform: uppercase;
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-blue-color);
    margin-top: 2rem;
}


/***** PARKING *****/
.ym-route-container {
    display: none;
    text-align: center;
}

.ym-route-title {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    color: #1979FF;
    padding: .5rem 0px .2rem 0px;
}

.ym-route-link {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    color: #405A7F;
    padding: 0px 0px .5rem 0px;
}

@media only screen and (min-width: 768px) and (max-width:1024px) {
    /*.ym-route-container {
        display: block;
    }*/
}

@media only screen and (min-width: 568px) and (max-width:768px) {
    .ym-route-container {
        display: block;
    }
}

@media only screen and (min-width: 320px) and (max-width:568px) {
    .ym-route-container {
        display: block;
    }
}
/***** PARKING *****/
@media (max-width: 1920px) {
    .detail-other-info.parking {
        margin: 0px;
        max-height: 23.8rem;
    }
}

@media (max-width: 1366px) {
    .service-features-wrapper-v3 {
        max-height: 11.5rem;
    }
    .detail-other-info.parking {
        margin: 0px;
        max-height: 22.8rem;
    }
}
@media (max-width: 1300px) {
    .service-features-wrapper-v3 {
        max-height: 11vw;
    }
    .detail-other-info.parking {
        max-height: 21.5rem;
    }
}

@media (max-width: 1250px) {
    .detail-other-info.parking {
        max-height: 19.6rem;
    }
}
@media (max-width: 1180px) {
/*    .detail-title-v3 {
        font-weight: 600;
        font-size: 1.5rem;
        line-height: 1.1;
    }*/
    /*.detail-subtitle-v3 {
        font-size: 1rem;
    }*/
    /*.detail-main-info {
        --main-detail-height-lg: 420px;
    }*/
    /*#detail-service-slider {
        --detail-page-slider-lg-height: 420px;
    }*/
    .service-features-wrapper-v3 {
        max-height: 8vw;
    }
    .detail-other-info.parking {
        max-height: 19rem;
    }
}

@media (max-width: 1130px) {
    .detail-other-info.parking {
        max-height: 18rem;
    }
}

@media (max-width: 1110px) {
    .detail-other-info.parking {
        max-height: 17rem;
    }
}

@media (max-width: 1024px) {
    .detail-main-info {
        display: block;
        max-height: unset;
    }

    #detail-service-slider {
        --detail-page-slider-lg-height: auto;
    }

    .service-images-v3 {
        height: unset;
        margin-bottom: 1.5rem;
    }

    .service-features-wrapper-v3 {
        max-height: unset;
    }

    .service-content-v3 {
        height: unset;
    }

    .detail-other-info {
        max-height: 20.5rem;
    }

    .price-wrapper {
        justify-content: space-between;
        position: fixed;
        bottom: 0px;
        left: 0;
        right: 0;
        z-index: 1000;
        box-sizing: border-box;
        margin: 0px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        padding: 1em;
    }

    footer {
        margin-bottom: 9%;
    }
}

/*@media (max-width: 932px) {
    #detail-service-slider {
        --detail-page-slider-lg-height: 600px;
    }
}*/

@media (max-width: 896px) {
    /*#detail-service-slider {
        --detail-page-slider-lg-height: 576px;
    }*/
    footer {
        margin-bottom: 10.5%;
    }
}

@media (max-width: 844px) {
    #detail-service-slider {
        --detail-page-slider-lg-height: 541px;
    }
    footer {
        margin-bottom: 11%;
    }
}

@media (max-width: 820px) {
    /*#detail-service-slider {
        --detail-page-slider-lg-height: 525px;
    }*/

    .swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
        --swiper-pagination-bottom: 0px;
    }

    /*.swiper-pagination-bullet {
        background-color: transparent;
        border: 1px solid var(--primary-blue-color);
        opacity: 1;
    }*/

    /*.swiper-pagination-bullet.swiper-pagination-bullet-active {
        background-color: var(--primary-blue-color);
    }*/

    .recommended-services-wrapper.from-detail .swiper-wrapper {
        padding-bottom: 2rem;
    }

    .service-rules-wrapper-v3 {
        margin: 1em 0px;
    }
    footer {
        margin-bottom: 13vw;
    }
}
@media (max-width: 650px) {
    footer {
        margin-bottom: 15vw;
    }
}

@media (max-width: 550px) {
    footer {
        margin-bottom: 17vw;
    }
    .footer-item:nth-child(odd):not(:last-child) {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {

    .detail-main-info {
        display: block;
        max-height: unset;
    }

    .detail-actions-wrapper {
        position: relative;
        margin: 0px;
        height: 2.3rem;
        width: 150px;
    }

    .service-content-v3 {
        height: unset;
    }

    .service-images-v3 {
        margin-bottom: .5rem;
    }

    .service-image-v3 {
        height: 100%;
    }

    .service-image-v3 img {
        height: 100%;
        border-radius: 15px;
        object-fit: contain;
    }

    .swiper-button-next, .swiper-button-prev {
        display: unset;
    }

    #detail-service-slider {
        height: var(--detail-page-slider-xs-outside-height);
        box-sizing: content-box;
    }

    #detail-service-slider .swiper-pagination {
        --swiper-pagination-bottom: 0px;
    }

    #detail-service-slider .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        /*max-height: 200px;
        object-fit: cover;*/
        border-radius: var(--border-radius);
    }

    .autoplay-progress {
        right: 5px;
        bottom: 25px;
        width: 35px;
        height: 35px;
        font-weight: 500;
        color: #FFFFFF;
        font-size: 11px;
    }

    .recommended-title {
        text-transform: uppercase;
        font-size: 20px;
        font-weight: 600;
        color: var(--primary-font-color);
        margin-top: 1rem;
    }

/*    .detail-title-v3 {
        font-weight: 600;
        font-size: 20px;
    }*/

/*    .detail-subtitle-v3 {
        font-size: 12px;
        font-weight: 600;
        margin-top: .6rem;
    }*/

    .price-v3 {
        border-radius: 2em;
        border: 1px solid #A3AFC0;
        padding: .25em 1.9em;
        color: var(--primary-font-color);
        font-size: 16px;
        font-weight: 600;
        background: var(--main-background-color);
        width: 150px;
        height: 2.3rem;
    }

    .detail-description-wrapper-v3, .service-features-wrapper-v3 {
        font-size: 12px;
        font-weight: 500;
        max-height: unset;
        position: relative;
        margin: 1em 0px 0px 0px;
    }

    .service-rules-wrapper-v3 {
        font-size: 12px;
        font-weight: 500;
        max-height: unset;
        position: relative;
        margin: 1em 0px;
    }

 /*   .detail-description, li.feature-item {
        font-size: 12px;
    }*/

    .feature-item img {
        width: 30px;
    }
    
    .price-wrapper, 
    .detail-container-v3.parking .price-wrapper {
        justify-content: space-between;
        position: fixed;
        bottom: 0px;
        left: 0;
        right: 0;
        z-index: 1000;
        box-sizing: border-box;
        margin: 0px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        padding: 1em;
    }

    .detail-other-info {
        border-radius: 20px;
        margin: 2em 0 1em 0;
        background: var(--promoblock-background-color);
        padding: 1.5em 1.5em 1em 1.5em;
        max-height: 9.8rem;
        overflow-y: hidden;
        font-size: 12px;
        font-weight: 500;
    }

    .show-more {
        font-size: 12px;
        font-weight: 500;
        padding: .5em 0px;
    }

    .swiper-pagination {
        --swiper-pagination-bottom: -5px;
    }

    .service-card.recommend {
        margin: .5em 0px 1em 0px;
    }

    .detail-actions-wrapper .in-basket-v3-text-wrapper {
        width: 138px;
        height: 38px;
        font-size: 13px;
    }

    .detail-actions-wrapper .add-to-basket {
        font-size: 13px;
    }

    .detail-actions-wrapper .add-to-basket .btn-v3 {
        width: 138px;
        height: 38px;
        font-size: 12px;
        font-weight: 700;
    }

    .detail-actions-wrapper .add-to-basket i {
        padding-right: .7em;
        font-size: 15px;
    }

    .recommended-services-title {
        font-size: 20px;
        margin: 1em 0px;
    }
    /*footer {
        margin-bottom: 15vw;
    }*/
}

@media (max-width: 375px) {
    .price-v3, .detail-actions-wrapper {
        width: 48%;
        height: 2.3rem;
    }

}

main.main-page:has(div.detail-other-info.parking) ~ footer {
    margin-bottom: 0;
}   