/*
 * Homepage promo slider — cards in the visual language of /spetspredlozhenija/
 * (promotions.css): white card, line icon, big blue price, saving chip.
 * Photo on the right, the card on a light gradient on the left; on phones the
 * photo goes on top and the card below it. Loaded only on front-page.php.
 */

.hero-promos {
	--hero-blue: #0a6fd8;
	--hero-blue-soft: #eaf3fe;
	--hero-ink: #1f2a37;
	--hero-muted: #6b7a8c;
	--hero-line: #e3ebf5;
	--hero-red: #ed1c24;
	--hero-green: #1e9e4a;
	--hero-green-soft: #e7f6ec;
	position: relative;
	overflow: hidden;
	background: #f2f7fd;
	color: var(--hero-ink);
}

.hero-promo {
	position: relative;
	display: flex;
	align-items: center;
	height: 520px;
}

.hero-promo__photo {
	position: absolute;
	inset: 0;
	background: right center / cover no-repeat;
}

/* Light veil on the left so the card never sits on a busy part of the photo. */
.hero-promo__photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(242, 247, 253, 0.96) 0%, rgba(242, 247, 253, 0.88) 32%, rgba(242, 247, 253, 0) 62%);
}

.hero-promo__inner {
	position: relative;
	flex: 0 1 auto;
	margin: 0 auto;
	padding-left: 45px;
}

.hero-promo__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 540px;
	max-width: 100%;
	padding: 26px 30px 28px;
	border: 1px solid var(--hero-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(22, 52, 99, 0.14);
}

.hero-promo__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.hero-promo__icon {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 7px;
	border-radius: 12px;
	background: var(--hero-blue-soft);
	color: var(--hero-blue);
}

.hero-promo__label {
	margin-right: auto;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hero-muted);
}

.hero-promo__badge {
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--hero-red);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.hero-promo__badge--until {
	background: #fff;
	color: var(--hero-red);
	box-shadow: inset 0 0 0 1px var(--hero-red);
}

.hero-promo__title {
	font-family: 'Raleway', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--hero-ink);
}

.hero-promo__includes,
.hero-promo__facts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-promo__includes {
	display: grid;
	gap: 7px;
}

.hero-promo__includes li {
	position: relative;
	padding-left: 28px;
	font-size: 15px;
	line-height: 1.4;
}

.hero-promo__includes li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--hero-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-promo__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hero-promo__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--hero-blue-soft);
	font-size: 14px;
	font-weight: 600;
}

.hero-promo__facts svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--hero-blue);
}

.hero-promo__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding-top: 14px;
	border-top: 1px dashed var(--hero-line);
}

.hero-promo__new {
	font-family: 'Raleway', sans-serif;
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--hero-blue);
	white-space: nowrap;
}

.hero-promo__old {
	font-size: 18px;
	color: var(--hero-muted);
	white-space: nowrap;
}

.hero-promo__saving {
	align-self: center;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--hero-green-soft);
	color: var(--hero-green);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.hero-promo__note {
	flex-basis: 100%;
	font-size: 14px;
	color: var(--hero-muted);
}

.hero-promo__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
}

.hero-promo__cta.btn {
	padding: 13px 26px;
	font-size: 15px;
}

.hero-promo__all {
	font-size: 15px;
	font-weight: 600;
	color: var(--hero-blue);
}

.hero-promo__all::after {
	content: ' →';
}

.hero-promo__all:hover,
.hero-promo__all:focus {
	color: #0857aa;
	text-decoration: none;
}

/* --- Carousel controls (override the old Bitrix arrows / dots) ---------- */

.hero-promos .owl-theme .owl-nav [class*='owl-'],
.hero-promos .owl-nav [class*='owl-'] {
	width: 48px;
	height: 48px;
	margin-top: -24px;
	line-height: 48px;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%230a6fd8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 6px 18px rgba(22, 52, 99, 0.18);
	opacity: 0.9;
	transition: opacity 0.15s, transform 0.15s;
}

.hero-promos .owl-nav [class*='owl-']:hover {
	opacity: 1;
	transform: scale(1.06);
}

.hero-promos .owl-nav .owl-prev {
	left: 24px;
	transform: rotate(180deg);
}

.hero-promos .owl-nav .owl-prev:hover {
	transform: rotate(180deg) scale(1.06);
}

.hero-promos .owl-nav .owl-next {
	right: 24px;
}

.hero-promos .owl-prev::before,
.hero-promos .owl-next::after {
	content: '';
}

.hero-promos .owl-dots {
	bottom: 22px;
	line-height: 0;
}

.hero-promos .owl-dots .owl-dot span {
	width: 8px;
	height: 8px;
	margin: 0 4px;
	border: 0;
	background: rgba(10, 111, 216, 0.25);
	transition: width 0.25s, background-color 0.25s;
}

.hero-promos .owl-dots .owl-dot.active span,
.hero-promos .owl-dots .owl-dot:hover span {
	border: 0;
	background: var(--hero-blue);
}

.hero-promos .owl-dots .owl-dot.active span {
	width: 26px;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1199px) {
	.hero-promo__inner {
		padding-left: 60px;
	}

	.hero-promos .owl-nav .owl-prev {
		left: 12px;
	}

	.hero-promos .owl-nav .owl-next {
		right: 12px;
	}
}

/* Tablets and phones: photo strip on top, the card overlaps it from below.
   All slides get the height of the tallest one, so the page below doesn't
   jump on every slide change. */
@media (max-width: 991px) {
	.hero-promos .owl-stage {
		display: flex;
	}

	.hero-promos .owl-item {
		display: flex;
		float: none;
	}

	.hero-promos .owl-item > .item {
		display: flex;
		width: 100%;
	}

	.hero-promo {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		height: auto;
		padding-top: 190px;
	}

	.hero-promo__photo {
		bottom: auto;
		height: 250px;
	}

	.hero-promo__photo::after {
		background: linear-gradient(180deg, rgba(242, 247, 253, 0) 60%, #f2f7fd 100%);
	}

	.hero-promo__inner {
		display: flex;
		flex: 1 1 auto;
		width: 100%;
		max-width: 620px;
		padding: 0 15px 50px;
	}

	.hero-promo__card {
		flex: 1 1 auto;
		width: auto;
	}

	.hero-promo__price {
		margin-top: auto;
	}

	.hero-promos .owl-nav {
		display: none;
	}
}

@media (max-width: 767px) {
	.hero-promo {
		padding-top: 140px;
	}

	.hero-promo__photo {
		height: 190px;
	}

	.hero-promo__inner {
		padding: 0 12px 44px;
	}

	.hero-promo__card {
		gap: 13px;
		width: auto;
		padding: 18px 18px 20px;
		border-radius: 16px;
	}

	.hero-promo__icon {
		width: 38px;
		height: 38px;
		padding: 6px;
	}

	.hero-promo__label {
		font-size: 12px;
	}

	.hero-promo__badge {
		padding: 6px 10px;
		font-size: 12px;
	}

	.hero-promo__title {
		font-size: 21px;
	}

	.hero-promo__includes li {
		font-size: 14px;
	}

	.hero-promo__new {
		font-size: 32px;
	}

	.hero-promo__old {
		font-size: 16px;
	}

	.hero-promo__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.hero-promo__cta.btn {
		width: 100%;
	}

	.hero-promos .owl-dots {
		bottom: 18px;
	}
}

/* --- "О клинике" intro + four advantage cards (front-page.php) ----------- */

.home-about {
	--about-blue: #0a6fd8;
	--about-blue-soft: #eaf3fe;
	--about-ink: #1f2a37;
	--about-muted: #5f6f82;
	--about-line: #e3ebf5;
	position: relative;
	padding: 72px 0 80px;
	background:
		radial-gradient(900px 360px at 50% 0%, #eaf3fe 0%, rgba(234, 243, 254, 0) 70%),
		#f7fafe;
	color: var(--about-ink);
}

.home-about__intro {
	max-width: 820px;
	margin: 0 auto 44px;
	text-align: center;
}

.home-about__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--about-line);
	color: var(--about-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.home-about__title {
	margin: 0 0 16px;
	font-family: 'Raleway', sans-serif;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--about-ink);
}

.home-about__lead {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--about-muted);
}

.home-about__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.home-about__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px 24px;
	border: 1px solid var(--about-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(22, 52, 99, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-about__card::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 24px;
	right: 24px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--about-blue);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.home-about__card:hover {
	transform: translateY(-4px);
	border-color: #cfe0f5;
	box-shadow: 0 18px 40px rgba(22, 52, 99, 0.12);
}

.home-about__card:hover::before {
	opacity: 1;
}

.home-about__icon {
	flex: none;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	padding: 12px;
	border-radius: 14px;
	background: var(--about-blue-soft);
	color: var(--about-blue);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.home-about__card:hover .home-about__icon {
	background: var(--about-blue);
	color: #fff;
}

.home-about__card-title {
	margin: 0 0 10px;
	font-family: 'Raleway', sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--about-ink);
}

.home-about__card-text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--about-muted);
}

.home-about__link {
	margin-top: auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--about-blue);
}

.home-about__link::after {
	content: '→';
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.2s ease;
}

.home-about__link:hover,
.home-about__link:focus {
	color: #0857aa;
	text-decoration: none;
}

.home-about__link:hover::after {
	transform: translateX(3px);
}

@media (max-width: 1199px) {
	.home-about__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.home-about {
		padding: 48px 0 52px;
	}

	.home-about > .container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.home-about__intro {
		margin-bottom: 28px;
	}

	.home-about__title {
		font-size: 26px;
	}

	.home-about__lead {
		font-size: 15px;
	}

	.home-about__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.home-about__card {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 14px;
		padding: 20px 18px;
	}

	.home-about__icon {
		grid-row: 1 / span 3;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 10px;
		border-radius: 12px;
	}

	.home-about__card-title {
		font-size: 17px;
	}

	.home-about__card-text {
		margin-bottom: 12px;
		font-size: 14px;
	}
}
