/* ══════════════════════════════════════════════════════════
   Сторінки послуг (page-service.php)
   Брейкпоінти як в Elementor: laptop ≤1366, tablet ≤1024, mobile ≤767
   ══════════════════════════════════════════════════════════ */

.svc-page {
	--svc-navy: #233A70;
	--svc-blue: #4D82C2;
	--svc-icon-bg: #90BDF5;
	--svc-cta-bg: #37569F;
	--svc-btn: #C94422;
	font-family: 'Montserrat', sans-serif;
	color: var(--svc-navy);
}
.svc-page *,
.svc-page *::before,
.svc-page *::after { box-sizing: border-box; }

.svc-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 10px;
}

/* ─── HERO ─────────────────────────────────────────────── */
.svc-hero {
	position: relative;
	overflow: hidden;
	min-height: 600px;
	display: flex;
	justify-content: center;
}
.svc-hero__bg {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}
.svc-hero__inner {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: 1600px;
	padding: 70px 0 60px;
	display: flex;
	flex-direction: column;
}
.svc-hero--right .svc-hero__inner {
	align-items: flex-end;
	text-align: right;
}
.svc-page .svc-hero__title {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 80px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--hero-color, #fff);
}
.svc-page .svc-hero__subtitle {
	margin: 0;
	max-width: 820px;
	font-size: 36px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--hero-color, #fff);
}
.svc-hero__img {
	position: absolute;
	z-index: 1;
	width: var(--img-w, 45%) !important;
	height: auto !important;
	max-width: none !important;
	pointer-events: none;
}
.svc-hero__img--right  { right: 0; }
.svc-hero__img--left   { left: 0; }
.svc-hero__img--center { top: 50%; transform: translateY(-40%); }
.svc-hero__img--bottom { bottom: 0; }

/* ─── BREADCRUMBS ──────────────────────────────────────── */
.svc-breadcrumbs {
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 14px;
	color: #6B7280;
}
.svc-breadcrumbs a { color: inherit; text-decoration: none; }
.svc-breadcrumbs a:hover { color: var(--svc-navy); }
.svc-breadcrumbs__sep { margin: 0 6px; }
.svc-breadcrumbs [aria-current] { color: var(--svc-navy); }

/* ─── SECTION ──────────────────────────────────────────── */
.svc-section { padding: 30px 0 178px; }

.svc-page .svc-section__title {
	margin: 0 0 30px;
	font-family: 'Montserrat', sans-serif;
	font-size: 45px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--svc-navy);
}
.svc-divider {
	width: 130px;
	height: 7px;
	margin: 0 0 14px;
	background: var(--svc-blue);
}
.svc-intro {
	margin-bottom: 40px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--svc-navy);
}
.svc-intro p { margin: 0; }

/* ─── ГАЛЕРЕЇ ──────────────────────────────────────────── */
.svc-gallery {
	display: flex;
	justify-content: space-between;
	margin-bottom: 40px;
}
.svc-gallery__col { width: 48%; min-width: 0; }

/* Обидві галереї — одна пропорція, тож висоти збігаються без JS */
.svc-photo-swiper .swiper-slide { aspect-ratio: 3 / 4; }
.svc-photo-swiper img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
}
.svc-gallery .vg-swiper .swiper-slide {
	aspect-ratio: 3 / 4;
	height: auto !important; /* перебиваємо inline-висоту від syncHeight шорткоду */
}

.svc-photo-swiper .swiper-button-prev,
.svc-photo-swiper .swiper-button-next {
	color: #fff;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}
.svc-photo-swiper .swiper-button-prev::after,
.svc-photo-swiper .swiper-button-next::after { font-size: 26px; }

/* ─── ПЕРЕВАГИ ─────────────────────────────────────────── */
/* Десктоп: заповнення по колонках → 1-3 зліва, 4-6 справа */
.svc-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(var(--rows, 3), auto);
	grid-auto-flow: column;
	column-gap: 4%;
	row-gap: 40px;
}
.svc-feature {
	display: flex;
	align-items: center;
	gap: 20px;
}
.svc-feature__icon {
	flex: 0 0 90px;
	width: 90px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--svc-icon-bg);
}
.svc-feature__icon img {
	width: 82px !important;
	height: 82px !important;
	object-fit: contain;
}
.svc-feature__text { max-width: 400px; }
.svc-page .svc-feature__title {
	margin: 0 0 4px;
	font-family: 'Montserrat', sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--svc-navy);
}
.svc-feature__desc {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--svc-navy);
}

/* ─── CTA ──────────────────────────────────────────────── */
.svc-cta {
	position: relative;
	margin-top: 85px;
	padding: 27px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: var(--svc-cta-bg);
	color: #fff;
}
.svc-cta__text { width: 65%; }
.svc-page .svc-cta__title {
	margin: 0 0 6px;
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.svc-cta__sub {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
}
.svc-page .svc-cta a.svc-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 22px;
	border: 0;
	border-radius: 14px;
	background: var(--svc-btn);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity .2s;
}
.svc-page .svc-cta a.svc-cta__btn:hover { opacity: .9; color: #fff; }
.svc-cta__btn svg { width: 1em; height: 1em; flex-shrink: 0; }

/* ═══ LAPTOP ≤1366 ═══ */
@media (max-width: 1366px) {
	.svc-hero { min-height: 720px; }
	.svc-hero__inner { padding-top: 50px; }
	.svc-page .svc-hero__title { font-size: 70px; }
	.svc-page .svc-hero__subtitle { font-size: 30px; max-width: 60%; }
	.svc-hero--right .svc-hero__subtitle { max-width: 532px; }
	.svc-section { padding: 75px 0 120px; }
	.svc-page .svc-cta__title { font-size: 20px; }
	.svc-page .svc-cta a.svc-cta__btn { font-size: 18px; }
}

/* ═══ TABLET ≤1024 ═══ */
@media (max-width: 1024px) {
	.svc-hero { min-height: 500px; }
	.svc-hero__inner { padding-top: 60px; }
	.svc-page .svc-hero__title { font-size: 56px; }
	.svc-page .svc-hero__subtitle { font-size: 26px; max-width: 80%; }
	.svc-page .svc-section__title { font-size: 30px; }
	.svc-intro { font-size: 18px; }
	.svc-feature__icon { flex-basis: 80px; width: 80px; height: 60px; }
	.svc-feature__icon img { width: 50px !important; height: 50px !important; }
	.svc-page .svc-feature__title { font-size: 18px; }
	.svc-feature__desc { font-size: 12px; }
	.svc-page .svc-cta__title { font-size: 18px; }
	.svc-page .svc-cta a.svc-cta__btn { font-size: 16px; padding: 18px; }
}

/* ═══ MOBILE ≤767 ═══ */
@media (max-width: 767px) {
	.svc-hero { min-height: 400px; }
	.svc-hero__bg { object-position: var(--bg-pos-m, center); }
	.svc-hero__inner { width: 96%; padding: 50px 0 40px; }
	.svc-page .svc-hero__title { font-size: min(28px, 7vw); }
	.svc-page .svc-hero__subtitle { font-size: 15px; max-width: 100%; }
	.svc-hero__img {
		width: 85% !important;
		top: auto;
		bottom: 20px;
		transform: none;
	}

	.svc-section { padding: 40px 0 80px; }
	.svc-page .svc-section__title { font-size: 18px; margin-bottom: 6px; }
	.svc-divider { height: 2px; margin-bottom: 6px; }
	.svc-intro { font-size: 12px; line-height: 1.35; margin-bottom: 24px; }

	.svc-gallery { margin-bottom: 25px; }

	.svc-features {
		display: flex;
		flex-direction: column;
		gap: 25px;
	}
	.svc-feature { gap: 13px; }
	.svc-feature:nth-child(even) {
		flex-direction: row-reverse;
		text-align: right;
	}
	.svc-feature__icon { flex-basis: 50px; width: 50px; height: 50px; }
	.svc-feature__icon img { width: 42px !important; height: 42px !important; }
	.svc-page .svc-feature__title { font-size: 15px; }
	.svc-feature__desc { font-size: 12px; line-height: 1.3; }

	.svc-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 40px 28px 17px;
	}
	.svc-cta__text { width: 100%; }
	.svc-page .svc-cta__title { font-size: 15px; line-height: 1.5; }
	.svc-cta__sub { font-size: 12px; }
	.svc-cta__btn-wrap {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.svc-page .svc-cta a.svc-cta__btn {
		font-size: 12px;
		padding: 10px 16px;
	}
}
