/**
 * Hero-слайдер на главной (Swiper).
 */

:root {
	--hero-teal: #007979;
	--hero-teal-deep: #006060;
	--hero-red: #ff4b4b;
	--hero-soft-ash: #3d4449;
	--hero-white: #ffffff;
}

.hero-slider-section {
	width: 100%;
	max-width: none;
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
}

.hero-slider-section .swiper {
	width: 100%;
	height: auto;
}

.hero-slider-section .swiper-wrapper {
	height: auto;
	align-items: stretch;
}

.hero-slider-section .swiper-slide {
	position: relative;
	overflow: hidden;
	display: block;
	height: auto;
}

/* loop + fade: скрыть контент неактивных (и дублирующих) слайдов */
.hero-slider-section .swiper-slide:not(.swiper-slide-active) .slide-inner {
	visibility: hidden;
	pointer-events: none;
	opacity: 0;
}

.hero-slider-section .slide-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 8s ease;
	z-index: 1;
}

.hero-slider-section .swiper-slide-active .slide-bg {
	transform: scale(1.1);
}

.hero-slider-section .slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Плавное затемнение без «шва» у полосы с часами и у текста */
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.28) 14%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.22) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0) 100%);
	z-index: 2;
}

/* Режим работы — на каждом банере, полоса сверху */
.hero-slider-section .slide-hours {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	margin: 0;
	padding: 0.85rem clamp(1rem, 4vw, 2rem);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	text-align: center;
	font-family: "Manrope", sans-serif;
	font-size: clamp(0.8rem, 1.8vw, 0.95rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.96);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	/* Без жёсткой нижней границы и без backdrop — иначе на фото виден «разрез» оверлея */
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 100%);
	border-bottom: none;
	opacity: 0.96;
	transition: opacity 0.5s ease;
}

.hero-slider-section .swiper-slide-active .slide-hours {
	opacity: 1;
}

.hero-slider-section .slide-hours i {
	color: var(--hero-teal);
	font-size: 1em;
	filter: drop-shadow(0 0 6px rgba(0, 121, 121, 0.6));
}

/* Контент и ленты — как у контейнера сайта (1350px), фон слайда на всю ширину экрана */
.hero-slider-section .slide-inner {
	position: relative;
	z-index: 4;
	width: 100%;
	max-width: var(--container, min(1350px, 100% - 2rem));
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	box-sizing: border-box;
	padding-top: clamp(3rem, 6vw, 3.75rem);
	padding-bottom: clamp(2.5rem, 5vw, 5.5rem);
	padding-inline: clamp(1.25rem, 3vw, 2rem);
}

.hero-slider-section .slide-content {
	position: relative;
	z-index: 5;
	width: 100%;
	max-width: min(900px, 100%);
	color: var(--hero-white);
	font-family: "Manrope", sans-serif;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero-slider-section .slide-content h1,
.hero-slider-section .slide-content h2 {
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.1;
	margin-bottom: 20px;
	opacity: 0;
	transform: translateX(-50px);
	transition: all 0.8s ease 0.3s;
}

.hero-slider-section .swiper-slide-active .slide-content h1,
.hero-slider-section .swiper-slide-active .slide-content h2 {
	opacity: 1;
	transform: translateX(0);
}

/* Акцент: без жёсткой полосы (на фото выглядела как артефакт оверлея) */
.hero-slider-section .slide-content h1 .slide-accent,
.hero-slider-section .slide-content h2 .slide-accent {
	background: transparent;
	color: inherit;
	padding: 0;
	font-weight: inherit;
	border-bottom: none;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-color: rgba(255, 255, 255, 0.28);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.hero-slider-section .slide-content p {
	font-size: 1.2rem;
	margin-bottom: 35px;
	opacity: 0;
	transform: translateX(-50px);
	transition: all 0.8s ease 0.5s;
}

.hero-slider-section .swiper-slide-active .slide-content p {
	opacity: 1;
	transform: translateX(0);
}

.hero-slider-section .btn-order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 18px 35px;
	margin-top: 0.35rem;
	background: var(--hero-teal);
	color: white;
	text-decoration: none;
	font-weight: 700;
	font-family: inherit;
	font-size: inherit;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: 0.3s;
	border: 2px solid transparent;
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px);
}

.hero-slider-section .swiper-slide-active .btn-order {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.8s ease 0.75s;
}

.hero-slider-section .btn-order:hover {
	background: var(--hero-white);
	color: var(--hero-teal);
	transform: translateY(-3px);
}

.hero-slider-section .btn-order i {
	margin-left: 10px;
}

/* Телефон и мессенджеры в слайде */
.hero-slider-section .slide-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slider-section .slide-contact--phone {
	margin-top: 0.85rem;
	margin-bottom: 0;
	transition-delay: 0.55s;
}

.hero-slider-section .slide-contact--messengers {
	margin-top: 0.65rem;
	margin-bottom: 0;
	transition-delay: 0.9s;
}

.hero-slider-section .swiper-slide-active .slide-contact {
	opacity: 1;
	transform: translateY(0);
}

.hero-slider-section .slide-contact__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	font-size: clamp(1.05rem, 2.8vw, 1.65rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff;
	text-decoration: none;
	background: rgba(0, 121, 121, 0.62);
	border: 2px solid rgba(242, 208, 107, 0.55);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	position: relative;
	z-index: 6;
}

.hero-slider-section .slide-contact__phone:hover {
	background: rgba(0, 121, 121, 0.75);
	border-color: rgba(242, 208, 107, 0.75);
	transform: translateY(-2px);
	color: #fff;
}

.hero-slider-section .slide-contact__phone i {
	color: var(--hero-teal);
	background: rgba(255, 255, 255, 0.95);
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	flex-shrink: 0;
}

.hero-slider-section .slide-contact__messengers {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
}

.hero-slider-section .slide-contact__msg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.55rem;
	height: 2.55rem;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	font-size: 1.1rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slider-section .slide-contact__msg:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
	color: #fff;
}

.hero-slider-section .slide-contact__msg--telegram {
	background: linear-gradient(145deg, #33bdef 0%, #229ed9 100%);
}

.hero-slider-section .slide-contact__msg--viber {
	background: linear-gradient(145deg, #8b7cf8 0%, #7360f2 100%);
}

.hero-slider-section .slide-contact__msg--whatsapp {
	background: linear-gradient(145deg, #34e090 0%, #25d366 100%);
}

.hero-slider-section .slide-contact__msg--instagram {
	background: linear-gradient(145deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
}

.hero-slider-section .slide-contact__msg--max {
	background: linear-gradient(145deg, #4d7cff 0%, #5533ff 100%);
}

.hero-slider-section .slide-contact__msg-max {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.hero-slider-section .slide-ribbons {
	position: absolute;
	bottom: 40px;
	left: 0;
	z-index: 5;
	display: flex;
	gap: 0;
	opacity: 0;
	transform: translateY(30px);
}

.hero-slider-section .swiper-slide-active .slide-ribbons {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.8s ease 0.9s;
}

.hero-slider-section .s-ribbon {
	padding: 10px 25px;
	font-weight: 700;
	font-size: 0.9rem;
	color: white;
	transform: skewX(-15deg);
}

.hero-slider-section .s-ribbon span {
	display: block;
	transform: skewX(15deg);
}

.hero-slider-section .s-ribbon.teal {
	background: var(--hero-teal);
	margin-right: 15px;
}

.hero-slider-section .s-ribbon.red {
	background: var(--hero-red);
}

.hero-slider-section .swiper-button-next,
.hero-slider-section .swiper-button-prev {
	color: var(--hero-white);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
	border-radius: 50%;
	transition: 0.3s;
}

.hero-slider-section .swiper-button-next:after,
.hero-slider-section .swiper-button-prev:after {
	font-size: 20px;
	font-weight: bold;
}

.hero-slider-section .swiper-button-next:hover,
.hero-slider-section .swiper-button-prev:hover {
	background: rgba(255, 255, 255, 0.22);
	color: var(--hero-white);
}

/* Бегущая строка услуг под слайдером */
.hero-marquee {
	position: relative;
	z-index: 2;
}

.hero-marquee__viewport {
	overflow: hidden;
	background: linear-gradient(
		90deg,
		var(--hero-teal-deep) 0%,
		var(--hero-teal) 22%,
		var(--hero-teal) 78%,
		var(--hero-teal-deep) 100%
	);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-marquee__track {
	display: flex;
	width: max-content;
	animation: hero-marquee-scroll 75s linear infinite;
	will-change: transform;
}

.hero-marquee__group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 0;
	padding-block: 0.95rem;
	padding-inline-end: 0;
}

.hero-marquee__item {
	font-family: "Manrope", sans-serif;
	font-weight: 600;
	font-size: clamp(0.78rem, 1.35vw, 0.95rem);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.94);
	white-space: nowrap;
	padding-inline: 1.5rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-marquee__sep {
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.38);
	flex-shrink: 0;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@keyframes hero-marquee-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* ПК: телефон и «Рассчитать» в одну строку, больше отступа под мессенджерами */
@media (min-width: 769px) {
	.hero-slider-section .slide-content {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		align-content: flex-start;
		gap: 0.65rem 1rem;
		max-width: min(920px, 100%);
	}

	.hero-slider-section .slide-content h1,
	.hero-slider-section .slide-content h2,
	.hero-slider-section .slide-content p {
		flex: 0 0 100%;
		width: 100%;
	}

	.hero-slider-section .slide-content h1,
	.hero-slider-section .slide-content h2 {
		margin-bottom: 0.75rem;
	}

	.hero-slider-section .slide-content p {
		margin-bottom: 0.5rem;
	}

	.hero-slider-section .slide-contact--phone {
		flex: 0 0 auto;
		width: auto;
		margin: 1rem 0 0;
	}

	.hero-slider-section .btn-order {
		flex: 0 0 auto;
		width: auto;
		margin: 1rem 0 0;
		padding: 16px 28px;
		white-space: nowrap;
	}

	.hero-slider-section .slide-contact--messengers {
		flex: 0 0 100%;
		width: 100%;
		margin-top: 1.35rem;
		margin-bottom: 0.85rem;
	}

	.hero-slider-section .slide-inner {
		padding-bottom: clamp(3rem, 5.5vw, 6.25rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-marquee__track {
		animation: none;
		justify-content: center;
		flex-wrap: wrap;
		row-gap: 0.5rem;
		width: 100%;
		max-width: min(900px, 100% - 2rem);
		margin-inline: auto;
		padding-inline: 1rem;
	}

	.hero-marquee__group {
		flex-wrap: wrap;
		justify-content: center;
		padding-block: 0.75rem;
	}

	.hero-marquee__group[aria-hidden="true"] {
		display: none;
	}

	.hero-marquee__item {
		white-space: normal;
		text-align: center;
		padding-inline: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slider-section .slide-contact {
		transition: none;
	}

	.hero-slider-section .swiper-slide-active .slide-contact {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 768px) {
	.hero-slider-section .swiper-button-next,
	.hero-slider-section .swiper-button-prev {
		display: none !important;
	}

	.hero-slider-section .slide-inner {
		max-width: 100%;
		padding-inline: clamp(1.25rem, 5vw, 1.75rem);
		padding-top: clamp(3.5rem, 11vw, 4.75rem);
		padding-bottom: clamp(2.25rem, 6vw, 3rem);
		justify-content: flex-end;
	}

	.seo-service-hero-slider .slide-inner {
		padding-top: clamp(4.25rem, 12vw, 5.5rem);
	}

	.hero-slider-section .slide-ribbons {
		display: none;
	}

	.hero-slider-section .slide-content {
		display: flex;
		flex-direction: column;
	}

	.hero-slider-section .slide-content h1,
	.hero-slider-section .slide-content h2 {
		order: 1;
		font-size: 1.65rem;
		line-height: 1.15;
		margin-top: 0.35rem;
		margin-bottom: 0.65rem;
		padding-top: calc(0.35rem + 50px);
	}

	.hero-slider-section .slide-content p {
		order: 2;
		font-size: 0.95rem;
		margin-bottom: 0.35rem;
		line-height: 1.45;
	}

	.hero-slider-section .slide-contact--phone {
		order: 3;
		margin-top: 0.65rem;
		width: 100%;
	}

	.hero-slider-section .slide-contact__phone {
		width: 100%;
		max-width: 100%;
		justify-content: center;
		font-size: 1.1rem;
		padding: 0.72rem 1rem;
		box-sizing: border-box;
	}

	.hero-slider-section .btn-order {
		order: 4;
		width: 100%;
		max-width: 100%;
		margin-top: 0.85rem;
		margin-bottom: 0;
		padding: 15px 20px;
		font-size: 0.82rem;
		box-sizing: border-box;
	}

	.hero-slider-section .slide-contact--messengers {
		order: 5;
		margin-top: 0.75rem;
		margin-bottom: 0.35rem;
		width: 100%;
		justify-content: center;
	}

	.hero-slider-section .slide-contact__messengers {
		width: 100%;
		justify-content: center;
	}

	.hero-marquee__track {
		animation-duration: 95s;
	}

	.hero-marquee__item {
		padding-inline: 1rem;
	}
}
