/*Reviews section*/
.reviews .swiper-wrapper {
    align-items: stretch;
}
.reviews .swiper-slide {
    height: auto;
    user-select: none;
    transition: var(--transition);
}
.reviews {
    max-width:100vw;
}
.reviews__wrapper .reviews-item {
    border-radius: var(--border-radius-default);
    background: #F8F8F8;
    display: grid ;
    grid-template-columns: 224px 1fr;
    gap: var(--gap-size-s);
    padding: 24px;
    position: relative;
    border: 1px solid transparent;
}
.reviews__wrapper .reviews-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 248, 248, 0.3);
    border-radius: var(--border-radius-default);
    z-index: 2;
    pointer-events: none;
}
.reviews__wrapper .reviews-item:hover{
    border: 1px solid rgba(45, 119, 244, 1);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    background: white;
}
.reviews__wrapper .reviews-item:hover:before{
    display:none;
}
.reviews__wrapper .reviews-item img {
    filter: grayscale(100%) brightness(100%);
    opacity: 0.6;
    transition: var(--transition);
}
.reviews__wrapper .reviews-item:hover img {
    filter: none;
    opacity: 1;
}
.reviews-item__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--gap-size-s);
}
.reviews-item__text p {
    color: rgba(89, 102, 125, 1);
    display: -webkit-box;
    -webkit-line-clamp: 8; /* Ограничиваем 8 строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Добавляем троеточие */
    line-height: 1.5; /* Важно задать line-height для корректного подсчета строк */
    max-height: calc(1.5em * 8);
    margin-top: 0;
}
.reviews-item__text button {
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.2px;
    color: var(--color-BrandeisBlue,#2971F6);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    padding: 0 0 12px 0;
    outline:none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.reviews__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}
.reviews-item__logo-text {
    color: rgba(89, 102, 125, 1);
    font-size: 14px;
}
.reviews-item__logo {
    width: 224px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reviews .swiper-pagination {
    position: initial;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.reviews .swiper-pagination-bullet.swiper-pagination-bullet-active {
    height: 12px;
    width: 12px;
    background: #0067B0;
    opacity: 1;
}
.reviews .swiper-pagination-bullet {
    background: #0067B0;
    opacity: 0.5;
}

.dialog--default.dialog--review .reviews-item {
    padding-right: 5px;
    display: flex;
    gap: 24px;
    font-weight: 500;
}
.dialog--default.dialog--review .reviews-item__text p {
    max-height: 100%;
    -webkit-line-clamp: none;
}
.dialog--default button:focus {
    outline: none;
}
@media (min-width: 1025px) {
    .reviews .swiper-pagination{
        display:none;
    }
}
@media(max-width:1200px){
    .reviews-item__text p{
        font-size:14px;
    }
    .reviews .swiper-pagination{
        padding-top: 30px;
        padding-bottom: 10px;
    }
}
@media (max-width: 650px) {
    .reviews__wrapper .reviews-item{
        display: flex;
        flex-direction: column;
        margin-right: 16px;
        gap:var(--gap-size-m) var(--gap-size-s);
        border: 1px solid rgba(45, 119, 244, 1);
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
        background: white;
    }
    .reviews__wrapper .reviews-item img{
        filter: none;
        opacity: 1;
    }
    .reviews__wrapper .reviews-item__text{
        flex: 1;
    }
    .review-modal .reviews-item {
        flex-direction: column;
    }
    .dialog--default.dialog--review .reviews-item {
        flex-direction:column;
    }
}
/* end Reviews section*/

/*Почему клиенты выбирают нас*/
.why-choose-us {
    margin: 0 auto;
}
.why-choose-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 336px);
    gap: 24px 16px;
}
.why-choose-us__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--color-SeaSalt);
    border-radius: 5px;
    padding: 24px;
    text-decoration: none;
    color: inherit !important;
    transition: var(--transition);
    will-change: transform;
    contain: layout;
    font-weight: 500;
    height:100%;
    cursor:pointer;
}
.why-choose-us__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.why-choose-us__card-wrapper {
    min-height: 200px;
}
.why-choose-us__card-wrapper[data-js-modal-open] .why-choose-us__card{
    pointer-events: none;
}
.why-choose-us__card-wrapper:hover .why-choose-us__card {
    box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(0, 103, 176, 1);
    transform: scale(1.02);
    color: inherit;
}
.why-choose-us__content {
    font-size: var(--font-size-l);
    color: var(--color-RichBlack,#101828);
    line-height: 1.5;
    margin: 0;
}
.why-choose-us__icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
}
.why-choose-us__img {
    width: 100%;
    height: auto;
    display: block;
}
@media(max-width:1200px){
    .why-choose-us__content{
        font-size:14px;
    }
    .why-choose-us__grid{
        gap:16px;
    }
}
@media(max-width:650px){
    .why-choose-us__heading{
        max-width:300px;
    }
    .why-choose-us__grid{
        grid-template-columns: repeat(auto-fit, 100%);
    }
}
/* end Почему клиенты выбирают нас*/


.postavki__detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 16px;
}
.postavki__detail .postavki__detail_text {
    flex-direction: column;
}
.postavki__detail>div {
    width: 100%;
    border-radius: 5px;
}
.postavki-swiper {
    flex-shrink: 0;
    width: 100%;
}
.postavki-swiper .swiper-slide {
    height: 325px;
}
.postavki-swiper .swiper-slide {
    background-size: cover;
    background-repeat: no-repeat;
}
.postavki__content {
    display: flex;
    flex-direction:column;
    width: 100%;
    gap: 24px;
}
.postavki__gallery {

    display: flex;
    width: 100%;
    gap: 16px;
}
.postavki__detail_text-upper {
    font-weight: 500;
    font-size: 14px;
    color: rgba(89, 102, 125, 1);
}
.postavki__detail_text-num {
    text-decoration: none;
    font-size: 96px;
    line-height: 140%;
    font-weight: 500;
    transition: var(--transition);
    background: rgba(16, 24, 40, 1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: table-cell;
}
.postavki__detail_text-num:after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #0067B0 0%, #2D77F4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: var(--transition);
}
.postavki__detail_text-num:hover:after {
    opacity: 1;
}
.postavki__detail_text-description {
    font-size: 14px;
    color: rgba(89, 102, 125, 1);
    line-height: 20px;
    padding-top: 20px;
}
.postavki__detail_text {
    padding-left: 16px;
}
.postavki__detail_text-sub {
    color: rgba(89, 102, 125, 1);
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    max-width: 72%;
}
.postavki__detail_image{
    position: relative;
    border-radius: var(--border-radius-default);
}
.postavki__detail_image .main-image {
    width: 100%;
    height: 100%;
}
.postavki__detail_image .main-image,
.postavki__gallery-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius:var(--border-radius-default)
}
.postavki__detail_image svg {
    cursor:pointer;
    position:absolute;
    top:0;
    right:0;
    z-index: 1;
}
.postavki__gallery-item{
    border-radius: 8px;
    height: 108px;
    cursor: pointer;
    transition: var(--transition);
    position:relative;
    border: 3px solid transparent;
}
.postavki__gallery-item:hover{
    border-color:#0067B0;
}
.postavki {
    display:block;
    max-width:100%;
}
.postavki__gallery-item {
    flex:0 1 calc(100% / 6 - 16px);
}
.swiper-pagination_postavki{
    display:none;
    position: initial;
    padding-top: 20px;;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
@media(max-width:1200px){
    .postavki__detail_text-num{
        font-size:72px;
    }
    .postavki__detail_text{
        padding-left:0
    }
    .postavki__gallery{
        display:none;
    }
    .postavki__detail_text-sub{
        font-size:20px;
        line-height: 120%;
    }
}

@media(max-width:768px) and (min-width:651px){
    .postavki__detail_text-num {
        font-size:82px;
    }
}
@media (max-width: 650px) {
    .postavki {
        padding-top: 40px;
    }
    .postavki__detail{

        grid-template-columns:minmax(0, 1fr)
    }
    .postavki__detail_image {
        position: relative;
        padding-bottom: 0; /* Место для пагинации */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    .postavki__detail_text-sub{
        max-width:95%
    }
    .swiper-pagination_postavki{
        display: flex;
        padding-top: 30px;
        padding-bottom: 10px;
    }
}


.about-us__map {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.about-us__map_mobile-text{
    display:none;
    border: 1px solid #DFEBFF;
    backdrop-filter: blur(10px);
    padding: 24px 10px;
    background: #DFEBFF4D;
    border-radius: var(--border-radius-default);
    font-size: 16px;
    line-height: 120%;
    margin-top: 20px;
}
.about-us__map-subtext{
    color:#59667D;
}
.about-us__map-heading_wrapper {
    margin-bottom: -50px;
    z-index: 1;
}
.about-us__map-heading h2 {
    margin-bottom: 15px;
}
.about-us__map_bottom-text span {
    color: #2D77F4;
    text-decoration: none;
}
.about-us__map_bottom-text-wrapper {
    width: 100%;
}
.about-us__map_bottom-text {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    color: #59667D;
    max-width: 525px;
    margin-left: 13%;
    margin-top: -160px;
}
#about-us__map{
    margin:0 auto;
    max-width:100%;
}
@media(max-width:1200px){
    .about-us__map_bottom-text-wrapper{
        margin-left: 0;
    }
    .about-us__map-heading_wrapper>span{
        display:none;
    }
    .about-us__map-heading h2 br{
        display:none;
    }
    .about-us__map-subtext{
        display:none;
    }
    .about-us__map-heading h2{
        margin-bottom: 0;
    }
    .about-us__map_bottom-text{
        margin-left: 0;
        font-size: 14px;
        max-width: 350px;
        line-height: 20px;
        margin-top: -110px;

    }
}
@media(max-width: 650px){
    .about-us__map{
        background: url('/wp-content/themes/zadelrf/assets/img/about-us/map_mobile-bg.png') center / cover no-repeat;
    }
    .about-us__map_mobile-text{
        display:block;
    }
    #about-us__map{
        display:none;
    }
    .about-us__map-heading_wrapper{
        margin-bottom: 0;
    }
    .about-us__map_bottom-text {
        color: #000000;
        margin-top: 25px;
        font-size: 16px;
    }
}


.about-us-numbers__content {
    display: grid;
    grid-template-columns: 336px 1fr;
    gap: 16px;
}
.about-us-numbers__data {
    display: grid;
    grid-template-columns: repeat(auto-fit, 336px);
}
.about-us-numbers__data-item {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-us-numbers__data-item_top-text {
    color: var(--dark-grey, #59667D);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 16.8px */
}
.about-us-numbers__data-item_int:after{
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #0067B0 0%, #2D77F4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: var(--transition);
}
.about-us-numbers__data-item_int:hover:after {
    opacity:1
}
.about-us-numbers__data-item_int{
    text-decoration: none;
    transition: var(--transition);
    background: rgba(16, 24, 40, 1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.about-us-numbers__data-item_int {
    color: var(--color-RichBlack, #101828);
    font-size: 72px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 100.8px */
}
.about-us-numbers__data-item_bot-text {
    color: var(--dark-grey, #59667D);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 21.6px */
}
.about-us-numbers__img {
    background-repeat:no-repeat;
    background-position:center;
    border-radius: 5px;
    height:448px;
    background-size: cover;
    width: 100%;
}
.about-us-numbers__img img {
    border-radius: 5px;
}
@media(max-width:1200px) and (min-width:651px){
    .about-us-numbers__img {
        height:409px;
        width:100%;
        background-size: cover;
    }
}
@media(max-width:1200px){
    .about-us-numbers__content{
        grid-template-columns:1fr;
    }
    .about-us-numbers__data-item_bot-text{
        font-size:14px;
    }
}
@media(max-width:650px){
    .about-us-numbers__data{
        grid-template-columns:1fr;
    }
    .about-us-numbers__img {
        height: 424px;
        width: 100%;
    }
}

.about-us__video-logo {
    background-position: center;
    height: 242px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    cursor:pointer
}
.about-us__video .swiper-button-disabled{
    display:none;
}
.about-us__video {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.about-us__video .c-container{
    width:100%
}
.about-us__video-wrapper {
    display: flex;
    gap: 16px;
}
.about-us__video-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about-us__video-text {
    color: var(--dark-grey, #59667D);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}
.about-us__video .c-container>div:last-child {
    margin-bottom: 0;
}

.about-us__video .c-container>div {
    margin-bottom: 30px;
}
@media (max-width:650px) {
    .about-us__video .c-container>div {
        margin-bottom: 24px;
    }
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
#dynamicVideoDialog .modal-content{
    background:black;
}
.about-us__our-clients {
    height: 1371px;
}
.about-us__our-clients .item:hover {
    transform: scale(1.02);
}
.about-us__our-clients .item:hover img {
    filter: drop-shadow(1px 3px 23px rgba(0, 59, 146, 0.4));
}
.about-us__our-clients .items-container {
    position: relative;height: 100%;
}
.about-us__our-clients .items-container .item {
    position: absolute;
    transition: var(--transition);
}
.about-us__our-clients .items-container--mobile{
    display:none;
}
.about-us__our-clients .item-1 {
    right: 18%;
    top: 4%;
}
.about-us__our-clients .item.item-2 {
    top: 15.5%;
    right: 48%;
}
.about-us__our-clients .item.item-3 {
    top: 24.5%;
    left: 22.5%;
}
.about-us__our-clients .item.item-4 {
    left: 0%;
    top: 36.5%;
}
.about-us__our-clients .item.item-5 {
    right: 6%;
    top: 23%;
}
.about-us__our-clients .item.item-6 {
    top: 34%;
    right: 27%;
}
.about-us__our-clients .item.item-7 {
    top: 54%;
    left: 20%;
}
.about-us__our-clients .item.item-9 {
    top: 66%;
    left: 40.5%;
}
.about-us__our-clients .item.item-10 {
    bottom: 9%;
    left: 12%;
}
.about-us__our-clients .item.item-8 {
    top: 54%;
    left: 56%;
}
.about-us__our-clients .item.item-12 {
    bottom: 7%;
    right: 16%;
}
.about-us__our-clients .item.item-11 {
    right: 2%;
    bottom: 31%;
}
.about-us__our-clients .item-1 .our-clients__title {
    position: relative;
    left: 70px;
}
.about-us__our-clients .our-clients__title:before {
    content:'';
    display:block;
    background: #0067B0;
    width:14px;
    height:8px;
    border-radius:50%;
    flex-shrink: 0;
}
.about-us__our-clients .our-clients__title {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    gap: 10px;
    max-width: 250px;
    line-height: 120%;
    position: absolute;
    align-items: baseline;
}
.about-us__our-clients .item.item-2 .our-clients__title {left: 88%;bottom: -32px;}
.about-us__our-clients .item.item-5 .our-clients__title {
    bottom: -65px;
    left: 10px;
}
.about-us__our-clients .item.item-6 .our-clients__title {
    left: -95px;
    bottom: -20px;
}
.about-us__our-clients .item.item-3 .our-clients__title {
    left: 17px;
    bottom: -47px;
}
.about-us__our-clients .item.item-4 .our-clients__title {
    bottom: -45px;
}
.about-us__our-clients .item.item-7 .our-clients__title {
    bottom: -24px;
    left: -10px;
}
.about-us__our-clients .item.item-10 .our-clients__title {
    top: -10px;
    left: -119px;
    max-width: 185px;
}
.about-us__our-clients .item.item-9 .our-clients__title {
    width: 100px;
    bottom: -23px;
}
.about-us__our-clients .item.item-8 .our-clients__title {
    top: 20px;
    right: -141px;
    width: 150px;
}
.about-us__our-clients .item.item-11 .our-clients__title {
    left: -47%;
}
.about-us__our-clients .item.item-12 .our-clients__title {
    max-width: 150px;
    left: -75px;
    bottom: -5px;
}
.about-us__our-client_heading {
    max-width: 508px;
    left: 24%;
    position: absolute;
    top: 3%;
    z-index: 1;
}
.about-us__our-clients_subtext {
    font-size: var(--font-size-m);
    color: var(--color-dark-grey);
}
.about-us__our-clients_subtext span{
    color: #2971F6;
}
.about-us__our-clients_subtext a:hover {
    color: #2971F6;
}
.about-us__our-client_heading h2 {
    text-align: right;
    padding-right: 96px;
}
#about-us__our-clients {
    position: relative;
}
@media(max-width:1200px){
    .about-us__our-client_heading{
        max-width: 450px;
        top: 2%;
        left: auto;
    }
    .about-us__our-client_heading h2{
        text-align: left;
        padding-right: 0;
    }
    .about-us__our-clients .item.item-11 {right: 3%;bottom: 34.5%;}
    .about-us__our-clients {
        background-position: 86% 13px;
    }
    .about-us__our-clients .item.item-1 {
        right: 5.4%;
        top: 9px;
    }
    .about-us__our-clients .item-1 .our-clients__title {
        left: 67px;
        top: 6px;
    }
    .about-us__our-clients_subtext {line-height: 20px;}
    .about-us__our-clients .item.item-2 {
        top: 11.5%;
        right: 42%;
    }
    .about-us__our-clients .item.item-3 {
        top: 17%;
        left: 22.5%;
    }
    .about-us__our-clients .item.item-4 {
        top: 29%;
    }
    .about-us__our-clients .item.item-5 {
        right: 8%;
        top: 20%;
    }
    .about-us__our-clients .item.item-6 {
        top: 31%;
        right: 27.5%;
    }
    .about-us__our-clients .item.item-6 .our-clients__title {
        left: -116px;
        bottom: -22px;
    }
    .about-us__our-clients .item.item-7 {
        top: 49%;
        left: 13%;
    }
    .about-us__our-clients .item.item-8 {
        top: 47%;
        left: 41%;
    }
    .about-us__our-clients .item.item-9 {
        top: 64%;
        left: 41.5%;
    }
    .about-us__our-clients .item.item-10 {
        bottom: 10.5%;
        left: 15%;
    }
    .about-us__our-clients .item.item-10 .our-clients__title {
        top: -19px;
        left: -134px;
    }
    .about-us__our-clients .item.item-11 .our-clients__title {
        left: -59%;
    }
    .about-us__our-clients .item.item-12 {
        bottom: 8%;
        right: 9%;
    }
    .about-us__our-clients .item.item-9 .our-clients__title {
        bottom: -19px;
        left: -25px;
    }
    .about-us__our-clients .item.item-7 .our-clients__title {
        bottom: -30px;
        left: -28px;
    }
    .about-us__our-clients .item.item-8 .our-clients__title {
        top: 13px;
        right: -148px;
    }
}
@media(min-width: 651px){
    .about-us__our-clients {
        background: url(/wp-content/themes/zadelrf/assets/img/about-us/lines.png) center no-repeat !important;
    }
}
@media (max-width: 650px) {
    .about-us__our-clients {
        padding-bottom: 100px;
    }
    .about-us__our-clients .items-container{
        display:none;
    }
    .about-us__our-clients .items-container--mobile{
        display:block;
    }
    .about-us__our-client_heading{
        position:initial;
    }
    .about-us__our-clients{
        height: auto;
    }
    .about-us__our-clients .items-container--mobile {
        backdrop-filter: blur(4px);
        background: #F6F8FBCC;
        padding: 30px 10px;
        margin-top: 40px;
        font-weight: 500;
        font-size: 16px;
        line-height: 120%;
    }
    .about-us__our-clients .items-container--mobile ul {
        list-style-type: disc;
        margin-left: 20px;
    }
    .about-us__our-clients .items-container--mobile ul li::marker {
        font-size: 17px;
    }
    .about-us__our-clients .items-container--mobile ul li {
        padding-bottom: 12px;
    }
    .about-us__our-clients .items-container--mobile ul li:last-child {
        padding-bottom: 0;
    }
}

#about-us__map .city-label  {
    display:none;
}