/* =============================================
   FRONT PAGE — главная /
   ============================================= */

/* HERO — фото-фон с overlay (как в оригинальном Elementor) */
.ts-home-hero {
	font-family: var(--ts-font);
	max-width: var(--ts-max-width);
	margin: 0 auto;
	padding: 20px 40px 40px;
}

.ts-home-hero__inner {
	position: relative;
	overflow: hidden;
	border-radius: 25px;
	background-color: #22353e;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: 640px;
	display: flex;
	align-items: center;
}

.ts-home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .35) 50%, rgba(255, 255, 255, 0) 100%);
	z-index: 1;
}

.ts-home-hero__content {
	position: relative;
	z-index: 2;
	padding: 80px 70px;
	width: 60%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ts-home-hero__title {
	font-size: 52px;
	font-weight: 600;
	color: #fff;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.4px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.ts-home-hero__subtitle {
	font-size: 20px;
	font-weight: 500;
	color: #fff;
	line-height: 1.5;
	margin: 0;
	max-width: 560px;
	opacity: .95;
}

.ts-home-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 36px;
	background: #fff;
	color: var(--ts-cyan);
	border-radius: 70px;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	width: fit-content;
	margin-top: 12px;
	letter-spacing: -0.1px;
	transition: transform .15s, box-shadow .2s, background .2s;
}

.ts-home-hero__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
	background: #f5fafc;
}

.ts-home-hero__award {
	position: absolute;
	bottom: 28px;
	right: 28px;
	width: 130px;
	height: auto;
	z-index: 2;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25));
}

/* ABOUT / WELCOME */
.ts-home-about {
	font-family: var(--ts-font);
	max-width: var(--ts-max-width);
	margin: 0 auto;
	padding: 40px 40px;
}

.ts-home-about__inner {
	display: grid;
	grid-template-columns: 460px 1fr;
	gap: 50px;
	align-items: center;
}

.ts-home-about__photo {
	border-radius: 25px;
	overflow: hidden;
	background: #f5fafc;
}

.ts-home-about__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.ts-home-about__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ts-home-about__title {
	font-size: 34px;
	font-weight: 700;
	color: var(--ts-dark);
	line-height: 1.18;
	letter-spacing: -0.4px;
	margin: 0;
}

.ts-home-about__lead {
	font-size: 17px;
	color: var(--ts-dark);
	line-height: 1.55;
	margin: 0;
}

.ts-home-about__lead strong {
	font-weight: 600;
}

.ts-home-about__lead a {
	color: var(--ts-cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ts-home-about__body {
	font-size: 16px;
	color: #344956;
	line-height: 1.65;
	margin: 0;
}

.ts-home-about__buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.ts-home-about__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 70px;
	background: #a1c861;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .2s, transform .15s;
}

.ts-home-about__btn:hover {
	opacity: .92;
	transform: translateY(-1px);
}

/* На главной добавляем верхний padding для .ts-doctors (по умолчанию padding-top:0) */
body.home .ts-doctors {
	padding-top: 60px;
}

/* Services grid на главной — 4 в ряд (на /services/ остаётся 3) */
.ts-home-section.ts-directions .ts-directions__grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.ts-home-section.ts-directions .ts-dircard__photo {
	height: 180px;
}

.ts-home-section.ts-directions .ts-dircard__name {
	font-size: 17px;
}

@media (max-width: 1280px) {
	.ts-home-section.ts-directions .ts-directions__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Mobile slider — горизонтальный скролл с snap (как .ts-home-gallery) */
@media (max-width: 720px) {
	.ts-home-section.ts-directions .ts-directions__inner {
		gap: 18px;
	}

	.ts-home-section.ts-directions .ts-directions__grid {
		display: flex;
		grid-template-columns: none;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding: 4px 0 12px;
	}

	.ts-home-section.ts-directions .ts-directions__grid::-webkit-scrollbar {
		display: none;
	}

	.ts-home-section.ts-directions .ts-dircard {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}

	.ts-home-section.ts-directions .ts-dircard__photo {
		height: 200px;
	}

	.ts-home-section.ts-directions .ts-dircard__name {
		font-size: 17px;
	}
}

/* SECTION HEAD (used for Services) */
.ts-home-section {
	margin-top: 20px;
}

.ts-home-section__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	margin-bottom: 28px;
}

.ts-home-section__title {
	font-size: 34px;
	font-weight: 600;
	color: var(--ts-dark);
	margin: 0;
	letter-spacing: -0.34px;
}

.ts-home-section__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.ts-home-section__arrow {
	width: 52px;
	height: 52px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	transition: transform .15s;
}

@media (max-width: 720px) {
	.ts-home-section__arrow {
		display: inline-flex;
	}
}

.ts-home-section__arrow:hover {
	transform: translateY(-1px);
}

.ts-home-section__arrow:active,
.ts-home-section__arrow:focus {
	outline: none;
}

.ts-home-section__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 30px;
	background: #a1c861;
	border: 2px solid #a1c861;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	font-family: var(--ts-font);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: 10px;
	transition: opacity .2s;
}

.ts-home-section__view-all:hover {
	opacity: .85;
	color: #fff;
}

/* GALLERY slider */
.ts-home-gallery {
	font-family: var(--ts-font);
	max-width: var(--ts-max-width);
	margin: 0 auto;
	padding: 30px 40px 50px;
}

.ts-home-gallery__inner {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.ts-home-gallery__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
}

.ts-home-gallery__info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 720px;
}

.ts-home-gallery__title {
	font-size: 34px;
	font-weight: 600;
	color: var(--ts-dark);
	margin: 0;
	letter-spacing: -0.34px;
}

.ts-home-gallery__desc {
	font-size: 16px;
	font-weight: 500;
	color: #6c7d86;
	margin: 0;
	line-height: 1.55;
}

.ts-home-gallery__controls {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.ts-home-gallery__arrow {
	width: 52px;
	height: 52px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ts-home-gallery__track-wrap {
	overflow: hidden;
	margin: 0 -40px;
	padding: 0 40px;
}

.ts-home-gallery__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ts-home-gallery__track::-webkit-scrollbar {
	display: none;
}

.ts-home-gallery__item {
	flex: 0 0 calc((100% - 40px) / 3);
	scroll-snap-align: start;
	border-radius: 20px;
	overflow: hidden;
	background: #f5fafc;
	transition: transform .3s ease;
}

.ts-home-gallery__item:hover {
	transform: translateY(-3px);
}

.ts-home-gallery__item img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
	.ts-home-hero {
		padding: 0 20px 30px;
	}

	.ts-home-hero__inner {
		min-height: 480px;
	}

	.ts-home-hero__content {
		width: 100%;
		padding: 50px 36px;
	}

	.ts-home-hero__title {
		font-size: 36px;
	}

	.ts-home-hero__subtitle {
		font-size: 17px;
	}

	.ts-home-hero__award {
		bottom: 18px;
		right: 18px;
		width: 100px;
	}

	.ts-home-about {
		padding: 30px 20px;
	}

	.ts-home-about__inner {
		grid-template-columns: 1fr;
		gap: 26px;
	}

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

	.ts-home-section__head,
	.ts-home-gallery__head {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
	}

	.ts-home-section__title,
	.ts-home-gallery__title {
		font-size: 26px;
		flex: 1 1 100%;
	}

	.ts-home-section__controls {
		flex-wrap: wrap;
		gap: 8px;
	}

	.ts-home-section__arrow {
		width: 44px;
		height: 44px;
	}

	.ts-home-section__arrow svg {
		width: 44px;
		height: 44px;
	}

	.ts-home-section__view-all {
		padding: 10px 18px;
		font-size: 14px;
		margin-left: auto;
	}

	.ts-home-gallery {
		padding: 20px 20px 40px;
	}

	.ts-home-gallery__track-wrap {
		margin: 0 -20px;
		padding: 0 20px;
	}

	.ts-home-gallery__item {
		flex: 0 0 calc((100% - 20px) / 2);
	}

	.ts-home-gallery__item img {
		height: 280px;
	}
}

@media (max-width: 640px) {
	.ts-home-hero__inner {
		min-height: 420px;
	}

	.ts-home-hero__title {
		font-size: 28px;
	}

	.ts-home-hero__subtitle {
		font-size: 16px;
	}

	.ts-home-hero__content {
		padding: 36px 26px;
		width: 100%;
	}

	.ts-home-hero__btn {
		padding: 13px 26px;
		font-size: 15px;
	}

	.ts-home-hero__award {
		width: 72px;
		bottom: 14px;
		right: 14px;
	}

	.ts-home-about__title {
		font-size: 22px;
	}

	.ts-home-gallery__item {
		flex: 0 0 85%;
	}

	.ts-home-gallery__item img {
		height: 240px;
	}
}
