.adns_block_patients_story {
	padding: 40px 0 60px;
	/* overflow: hidden; */
}

.adns_patients_story__container {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.adns_patients_story__title {
	font-weight: 500;
	font-size: 48px;
	line-height: 54px;
}

.adns_patients_story__slider {
	position: relative;
	min-height: 650px;
}

.adns_patients_story__track {
	/* position: relative; */
	/* width: 100%; */
	/* height: 100%; */
}

.adns_patients_story__slide {
	position: absolute;
	top: 24px;
	left: 50%;
	width: 316px;
	max-width: 346px;
	/* min-width: 346px; */
	opacity: 0;
	pointer-events: none;
	transition: transform 0.45s ease, top 0.45s ease, opacity 0.35s ease;
	z-index: 1;
}

.adns_patients_story__slide.is-left {
	transform: translateX(calc(-150% - 16px));
	opacity: 1;
	pointer-events: auto;
}

.adns_patients_story__slide.is-center {
	transform: translateX(-50%);
	top: 0;
	opacity: 1;
	pointer-events: auto;
	z-index: 3;
}

.adns_patients_story__slide.is-right {
	transform: translateX(calc(50% + 16px));
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.adns_patients_story__ghost-slot {
	position: absolute;
	top: 24px;
	left: 50%;
	width: 346px;
	height: 586px;
	border-radius: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.adns_patients_story__ghost-slot.is-left {
	transform: translateX(calc(-150% - 16px));
}

.adns_patients_story__ghost-slot.is-right {
	transform: translateX(calc(50% + 16px));
}

.adns_patients_story__ghost-slot.is-active {
	opacity: 1;
}

.adns_patients_story__card {
	border-radius: 16px;
	overflow: hidden;
	background: #ebedf6;
}

.adns_patients_story__media {
	position: relative;
	height: 442px;
}

.adns_patients_story__media::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -36px;
	transform: translateX(-50%);
	width: 115px;
	height: 105px;
	border-radius: 50%;
	background: #ebedf6;
	z-index: 6;
	pointer-events: none;
}

.adns_patients_story__media::after {
	content: '';
	position: absolute;
	left: 31%;
	bottom: -1px;
	transform: translateX(-50%) rotate(180deg);
	width: 24px;
	height: 25px;
	background-image: url('/wp-content/uploads/media/border-white-block.png');
	background-size: 30px;
	background-repeat: no-repeat;
	background-position: left center;
	z-index: 7;
	pointer-events: none;
}

.adns_patients_story__media-corner-right {
	position: absolute;
	right: 31%;
	bottom: -4px;
	width: 22px;
	height: 31px;
	background-image: url('/wp-content/uploads/media/border-white-block.png');
	background-size: 30px;
	background-repeat: no-repeat;
	background-position: left center;
	z-index: 7;
	pointer-events: none;
	transform: translateX(50%) rotate(182deg) scaleX(-1);
}

.adns_patients_story__slide.is-center .adns_patients_story__media {
	height: 528px;
}

.adns_patients_story__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	object-position: top;
	border-radius: 16px;
	position: relative;
	z-index: 1;
}

.adns_patients_story__video-btn-wrap {
	width: 100%;
	height: 100%;
	z-index: 10;
	position: absolute;
	top: 0;
	left: 0;
	cursor: pointer;
}

.adns_patients_story__video-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(4px);
}

.adns_patients_story__video-btn::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 14px solid #fff;
	margin-left: 24px;
	margin-top: 20px;
}

.adns_patients_story__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 20;
	display: none;
}

.adns_patients_story__video.is-active {
	display: block;
}

.adns_patients_story__video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.adns_patients_story__content {
	padding: 40px 18px 20px;
}

.adns_patients_story__peptide {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.adns_patients_story__peptide-img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.adns_patients_story__peptide-img--overlay {
	position: absolute;
	left: 50%;
	bottom: -20px;
	transform: translateX(-50%);
	width: 128px;
	height: 168px;
	border-radius: 14px;
	z-index: 25;
	padding: 4px;
	box-sizing: border-box;
}

.adns_patients_story__card.is-video-active .adns_patients_story__peptide-img--overlay {
	display: none;
}

.adns_patients_story__peptide-name {
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	color: #032279;
	text-align: center;
}

.adns_patients_story__description {
	min-height: 66px;
	font-size: 16px;
	line-height: 22px;
	color: #5A5C70;
	margin-bottom: 15px;
	text-align: center;
}

.adns_patients_story__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.adns_patients_story__stars {
	display: flex;
	align-items: center;
	gap: 4px;
}

.adns_patients_story__star {
	width: 18px;
	height: 18px;
	display: block;
}

.adns_patients_story__name {
	font-weight: 700;
	font-size: 16px;
	line-height: 22px;
	color: #032279;
	text-align: right;
}

.adns_patients_story__arrow {
	position: absolute;
	top: 44%;
	transform: translateY(-50%);
	width: 45px;
	height: 45px;
	border: 1px solid #032279;
	border-radius: 50%;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
	z-index: 5;
	padding: 0;
}

.adns_patients_story__arrow:hover {
	background: #e6ebff;
}

.adns_patients_story__arrow.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.adns_patients_story__arrow img {
	width: 14px;
	height: 14px;
	display: block;
}

.adns_patients_story__arrow--prev {
	left: 5%;
}

.adns_patients_story__arrow--prev img {
	transform: rotate(180deg);
}

.adns_patients_story__arrow--next {
	right: 5%;
}

.adns_patients_story__arrow {
	display: flex;
}

@media (max-width: 1322px) {
	.adns_patients_story__arrow {
		display: flex;
	}
}

.adns_patients_story__slider-bottom {
	display: flex;
	align-items: center;
}

.adns_patients_story__slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.adns_patients_story__slider-dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: #D6DAF1;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.adns_patients_story__slider-dot.is-active {
	background: #032279;
	width: 14px;
	height: 14px;
}

.adns_patients_story__consultation-wrap {
	margin: 80px 0 40px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

.adns_patients_story__consultation-wrap:has(.adns_patients_story__slider-bottom) {
	justify-content: space-between;
}


.adns_patients_story__consultation-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 46px;
	border: none;
	border-radius: 999px;
	background: #032279;
	color: #fff;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.adns_patients_story__consultation-wrap .btn3{
	width: fit-content;
}

@media (max-width: 991px) {
	.adns_patients_story__consultation-wrap {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin: 0 0 40px;
	}

	.adns_patients_story__consultation-wrap .btn3 {
		width: 100%;
	}
	.adns_block_patients_story {
		padding: 20px 0;
		overflow: visible;
	}

	.adns_patients_story__title {
		font-size: 34px;
		line-height: 40px;
		text-align: center;
	}

	/* На мобилке не фиксируем высоты карточки/медиа: только горизонтальный скролл */

	.adns_patients_story__media::before {
		width: 94px;
		height: 116px;
		bottom: -40px;
	}

	.adns_patients_story__consultation-btn {
		width: 100%;
	}

	.adns_patients_story__peptide-name {
		font-size: 16px;
		line-height: 20px;
	}

	.adns_patients_story__slider-bottom {
		display: none;
	}

	.adns_patients_story__track {
		display: flex;
		align-items: flex-start;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-inline: var(--theme-page-width-padding, 16px);
		scroll-padding-inline: var(--theme-page-width-padding, 16px);
	}

	.adns_patients_story__track::-webkit-scrollbar {
		display: none;
	}

	.adns_patients_story__slide {
		position: relative;
		top: 0;
		left: 0;
		transform: none !important;
		flex: 0 0 calc(100% - 36px);
		max-width: 294px;
		min-width: 180px;
		opacity: 1;
		pointer-events: auto;
		scroll-snap-align: center;
		margin-top: 24px;
		transition: none;
	}

	.adns_patients_story__slide.is-mobile-active {
		margin-top: 24px;
	}

	.adns_patients_story__ghost-slot {
		display: none;
	}

	.adns_patients_story__slider-bottom {
		justify-content: center;
	}
}

/* Стрелки скрываем только на очень узких экранах; до 991px блок ещё в режиме горизонтального скролла */
@media (max-width:1345px) {
	.adns_patients_story__arrow {
		display: none;
	}
}
