.swiper {
    margin-right: auto;
    margin-left: auto;
    height: auto;
    width: 100%;
}

.swiper.academySwiper {
    aspect-ratio: 1 / 1;
}

.swiper-wrapper {
    align-items: flex-start;
}

.swiper-slide {
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    display: flex;
}

.projects__slide-image,
.shop__slide-image,
.swiper-slide__image {
    aspect-ratio: 1 / 1.5;
    /* object-fit: cover; */
}

.AcademyTeacherSwiper .shop__slide-image {
    aspect-ratio: 1 / 1;
    align-items: center;
    display: flex;
}

.AcademyTeacherSwiper .shop__slide-image img {
    height: auto;
}

@media (max-width: 768px) {
    .swiper-slide__image a,
    .shop__slide-image a {
        pointer-events: none;
    }
}

@media (max-width: 430px) {
    .ms2_product.swiper-slide .ms2_form {
        height: 100%;
        width: 100%;
    }
}

@media (min-width: 430px) and (max-width: 430px) {
    .ms2_product.swiper-slide {
        height: 690px;
    }
}

.swiper-slide img {
    object-position: center;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.article-news__gallery .swiper-wrapper,
.article-news__gallery .swiper-slide,
.article-news__gallery .swiper-slide img {
    height: auto;
}

/* @media only screen and (min-width: 1380px) {
    .projects__slide-image,
    .review .shop__slide-image {
        height: 500px;
    }
} */

/* @media only screen and (min-width: 1920px) {
    .projects__slide-image,
    .shop__slide-image {
        height: 580px;
    }
} */

.projects__slide-info,
.shop__slide-info {
    width: 100%;
}

.projects__nav-buttons {
    position: relative;
    height: 84px;
}

.swiper-button-next {
    height: auto;
    width: auto;
    right: 0;
}

.swiper-button-next:after, .swiper-button-prev:after {
    content: '';
}

.swiper-pagination-bullet {
    background-color: transparent;
    position: relative;
    border-radius: 0;
    padding: 6px;
    height: 16px;
    width: 16px;
    opacity: 1;
}

.swiper-pagination-bullet::after {
    content: '';
    background: #CED6DD;
    position: absolute;
    height: 6px;
    width: 6px;
    left: 4px;
    top: 4px;
}

.swiper-pagination-bullet-active {
    border: 1px solid var(--gray3, #CED6DD);
}

.swiper-pagination-bullet-active::after {
    background: #033260;
}



@media (max-width:1200px) {
    .projects__slide-bottom {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .projects__slide-bottom {
        margin-top: 10px;
    }
}

.shop__slider-bottom, .shop__slide-buttons {
    position: relative;
}

.swiper-pagination {
    width: max-content !important;
    bottom: 0 !important;
    top: 0 !important;
    margin: 0 auto;
    height: 18px;
    right: 0;
    left: 0;
}

@media (max-width: 768px) {
    .swiper-pagination {
        top: 0 !important;
        justify-content: space-between;
        display: flex;
    }
}

.projects__slide-bottom .swiper-button-prev {
    /* right: 4rem !important; */
    /* top: 62px; */
}

.projects__slide-bottom .swiper-button-next {
    /* top: 62px; */
}
    
.projects__button {
    order: 2;
}

@media only screen and (min-width: 1024px) {
    .projects__button {
        position: absolute;
        order: unset;
    }
}










.swiper-navigation, .projects__nav-buttons {
    align-items: center;
    position: relative;
    height: 92px;
}

.swiper-button-next {
    height: auto;
    width: auto;
    right: 0;
}

.swiper-button-prev {
    right: 3.7rem !important;
    height: auto;
    width: auto;
    left: auto;
}

.swiper-button-next:after, .swiper-button-prev:after {
    content: '';
}

.swiper-pagination {
    bottom: initial !important;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    height: 18px;
    right: 0;
    left: 0;
}

.swiper-pagination-bullet {
    background-color: transparent;
    position: relative;
    border-radius: 0;
    padding: 6px;
    height: 16px;
    width: 16px;
    opacity: 1;
}

.swiper-pagination-bullet::after {
    content: '';
    background: #CED6DD;
    position: absolute;
    height: 6px;
    width: 6px;
    left: 4px;
    top: 4px;
}

.swiper-pagination-bullet-active {
    border: 1px solid var(--gray3, #CED6DD);
}

.swiper-pagination-bullet-active::after {
    background: #033260;
}

@media(max-width: 1023px) {
    .projects__nav {
        display: none;
    }
}



.projects__slide-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: baseline;
    column-gap: 1rem;
    display: grid;
}

.projects__slide-data-with-reviews {
    justify-content: space-between;
    align-items: flex-start;
    display: flex;
    gap: 4px;
}

.projects__slide-data-with-reviews .projects__slide-badge{
    max-width: 82px;
}

.projects__slide-image a {
    height: 100%;
}

.projects__slide-image a img {
    object-fit: cover;
}

.projects__slide-title {
    width: 100%;
}

.projects__slide-title h5 {
    position: relative;
    width: fit-content;
}

.projects__slide-title h5::after {
    content: '';
    position: absolute;
    background: url('data:image/svg+xml,<svg width="24" height="11" viewBox="0 0 24 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4H22L16 10" stroke="%23CED6DD"/></svg>');
    right: -28px;
    height: 10px;
    width: 22px;
    top: 5px;
}

.projects__slide-title a {
    width: calc(100% - 28px);
    text-align: left;
}


.projects__slide-buttons {
    position: relative;
}

.shop__slider-bottom {
    height: 68px;
}

.swiper-button-next, .swiper-button-prev {
    margin-top: calc(-3px - (var(--swiper-navigation-size)/ 2));
}

/* Слайдер отзывов */
.testimonial-swiper .swiper-slide {
    aspect-ratio: auto;
}

.testimonial-swiper .swiper-slide .bottom {
    overflow: hidden;
    height: 96px;
}