.medcenter-item {
    padding: 20px 102px 100px 20px;
    overflow: hidden;
    border-radius: 16px;
}
.medcenter-item__image {
	position: absolute;
	bottom: -40px;
	right: -25px;
	width: 174px;
	height: 174px;
	border-radius: 50%;
    overflow: hidden;
}
.medcenter-point {
    background: linear-gradient(92.08deg, rgba(0, 154, 166, 0.2) 35.56%, rgba(255, 255, 255, 0.2) 134.44%);
}
.medcenter-point__data {
    font-size: 90px;
    line-height: 1;
    letter-spacing: -0.06em;
}
.medcenter-tab-button {
    border-radius: 36px;
}
.medcenter-tab-button:hover {
    color: #009AA6;
}
.medcenter-tab-button.is-active {
    background-color: #E7FAFB;
    color: #009AA6;
}
.medcenter-search {
    min-width: 268px;
}
.medcenter-doctors-slider .swiper-slide {
    width: 279px;
}
.medcenter-doctor__image {
    transition: 0.3s;
    max-height: 264px;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 0;
}
.medcenter-doctor:hover .medcenter-doctor__image {
    transform: scale(1.1);
}
.medcenter-letter {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.medcenter-reviews-slider .swiper-slide {
    width: 381.3px;
    padding: 1px 0;
}
.medcenter-videos-slider .swiper-slide {
    width: 381.3px;
}
.medcenter-video__button {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transition: 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.medcenter-video:hover .medcenter-video__button {
    opacity: 1;
}
.medcenter-video__image {
    aspect-ratio: 3 / 2;
}
.medcenter-popup-close {
    top: 16px;
    right: 16px;
    z-index: 10;
}
.medcenter-popup-video {
    height: 100vh;
}
.js-popup-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw; /* Ограничение по ширине - 90% от ширины viewport */
    max-height: 90vh; /* Ограничение по высоте - 90% от высоты viewport */
    margin: 0 auto;
}

.js-popup-video-container video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Сохраняет пропорции видео */
}

.js-popup-video-container iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}
.medcenter-price-item:nth-child(odd) {
    background-color: #EBFEFFCC;
}
.medcenter-certificates__slider {
    width: 300px;
}
.medcenter-certificates__thumbs-slider .swiper-slide {
    width: 88px;
    cursor: pointer;
}
.subscribe-to {
    max-width: 682px;
}
.subscribe-to__field {
    margin-right: -16px;
}
.subscribe-to__field .form-field {
    border-radius: 24px 0 0 24px;
    padding-right: 32px;
}
.medcenter-dropdown__button {
    transition: color 0.3s;
    cursor: pointer;
}
.medcenter-dropdown__icon {
    transition: 0.3s;
}
.medcenter-dropdown__button:hover {
    color: #009AA6;
}
.medcenter-dropdown__button.is-active {
    color: #009AA6;
}
.medcenter-dropdown__button.is-active .medcenter-dropdown__icon {
    transform: rotate(180deg);
}
.medcenter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.btn.medcenter-nav-link {
    border: 2px solid #009AA6;
    height: 60px;
}
.medcenter-doctor__wrapper {
    aspect-ratio: 1 / 1;
}
.medcenter-nav-button.btn  {
    height: 60px;
    border: 2px solid transparent;
}
.medcenter-nav-button.btn.is-active  {
    color: #009AA6;
    border-color: #009AA6;
}
.medcenter-card__info-image {
    aspect-ratio: 1 / 1;
    width: 160px;
}
.medcenter-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 16px;
}
.medcenter-card__info {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.medcenter-card__dates {
    grid-column: 2 / 3;
}
.medcenter-card__actions {
    grid-column: 2 / 3;
    align-self: end; 
}
.medcenter-img-wrapper {
    aspect-ratio: 1 / 1;
}
.medcenter-img-wrapper-3-2 {
    aspect-ratio: 3 / 2;
}
.medcenter-steps__data {
    font-size: 64px;
}
.medcenter-steps__point {
    position: relative;
}
.medcenter-steps__point-number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 2;
}
.medcenter-steps__point::after {
    content: '';
    background-color: #E7FAFB;
    height: 4px;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 0;
    right: -24px;
    transform: translateY(-50%);
}
.medcenter-steps__item:last-child .medcenter-steps__point::after {
    display: none;
}
.medcenter-service-link__img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.medcenter-share-block {
    bottom: 100%;
    margin-bottom: 8px;
    right: -8px;
    box-shadow: 0px 8px 24px 0px #00000033;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
}
.medcenter-share-block.is-show {
    opacity: 1;
    visibility: visible;
}


@media (max-width: 1200px) {
    .medcenter-point__data {
        font-size: 80px;
    }
}
@media (max-width: 992px) {
    .medcenter-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 28px;
    }

    .medcenter-card__dates,
    .medcenter-card__info,
    .medcenter-card__actions {
        grid-column: 1;
        grid-row: auto;
        align-self: auto;
    }
}
@media (max-width: 768px) {
    .medcenter-item {
        padding: 16px 64px 16px 16px;
    }
    .medcenter-item__image {
        bottom: -8px;
        right: -8px;
        width: 80px;
        height: 80px;
    }
    .medcenter-search.form-field {
        min-width: 0;
    }
    .medcenter-doctors-slider .swiper-slide {
        width: 140px;
    }
    .medcenter-reviews-slider .swiper-slide {
        width: 240px;
    }
    .medcenter-videos-slider .swiper-slide {
        width: 264px;
    }
    .medcenter-links .grid-col {
        width: 50%;
        flex-shrink: 0;
    }
    .medcenter-links .grid-col:nth-last-child(1):nth-child(odd) {
        width: 100%;
    }
    .medcenter-link-image {
        width: 60px;
        flex-shrink: 0;
    }
    .medcenter-link {
        justify-content: flex-start;
        text-align: left;
    }
    .medcenter-md-color-tertiary {
        color: #009AA6;
    }
    .medcenter-review__text  {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
    .medcenter-certificates__slider {
        width: 100%;
    }
    .medcenter-steps__item {
        display: flex;
    }
    .medcenter-steps__point {
        margin-right: 16px;
    }
    .medcenter-steps__point::after {
        width: 4px;
        height: auto;
        top: 0;
        bottom: -16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .medcenter-nav-button.btn  {
        height: 54px;
    }
    .medcenter-service-link {
        position: relative;
        padding: 12px 16px;
    }
    .medcenter-service-link__img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 8px;
        aspect-ratio: auto;
    }
    .medcenter-service-link__text {
        position: relative;
        z-index: 2;
    }
}
@media (max-width: 576px) {
    .medcenter-point__data {
        font-size: 64px;
    }
    .subscribe-to__field {
        margin-right: 0;
    }
    .subscribe-to__field .form-field {
        border-radius: 24px;
        padding-right: 16px;
    }
    .medcenter-card__info-image {
        width: 110px;
    }
    .medcenter-steps__point-number {
        width: 34px;
        height: 34px;
    }
    .medcenter-steps__point::after {
        width: 2px;
    }
}

.support-center {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    cursor: pointer;
}
.support-center__list {
    display: none;
}
.support-center.is-active {
    background-color: #ffffff;
    box-shadow: 0px 8px 24px 0px #00000033;
    padding: 16px 32px;
    width: 284px;
}
.support-center.is-active .support-center__list {
    display: block;
}
.medcenter-bottom-nav {
    display: none;
}

@media (max-width: 1000px) {
    .support-center {
        display: none;
    }
    .medcenter-bottom-nav {
        display: block;
    }
}