/**
 * Сторінки послуг (2026-11-20), дані inc/wa-xs.php:
 *  - «Разом із сайтом замовляють» / «SEO для різних типів сайтів» #xs — template-parts/service/cross-sell.php (сітка карток, фон #f5f8fb);
 *  - «Приклади …» #examples — template-parts/service/examples.php (карусель wa-carousel з 3 кейсів, фон білий).
 * Стиль — як у «Вас може зацікавити» / «Останні роботи» (шрифти, радіуси, мітки).
 */

.wa-xs,
.wa-ex {
	--wa-xs-ink: #14233a;
	--wa-xs-muted: #4b5563;
	--wa-xs-blue: #1a72a8;
	--wa-xs-head: Montserrat, Arial, sans-serif;
	margin-top: var(--wa-page-gap, 24px);
	padding: 80px 0;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1d2433;
	clear: both;
}
.wa-xs { background: #f5f8fb; }
.wa-ex { background: #fff; }
.wa-xs *, .wa-xs *::before, .wa-xs *::after,
.wa-ex *, .wa-ex *::before, .wa-ex *::after { box-sizing: border-box; }

.wa-xs__wrap,
.wa-ex__wrap { width: 1400px; max-width: 100%; margin: 0 auto; }

/* ---------- шапка (спільне) ---------- */
.wa-xs__eyebrow,
.wa-ex__eyebrow {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: #eaf4fa;
	color: #1a5f8c;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}
.wa-xs .wa-xs__title,
.wa-ex .wa-ex__title {
	margin: 14px 0 0;
	padding: 0;
	font-family: var(--wa-xs-head);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-transform: none;
	text-align: left;
	color: var(--wa-xs-ink);
	background: none;
}
.wa-xs .wa-xs__lead,
.wa-ex .wa-ex__lead {
	max-width: 860px;
	margin: 12px 0 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wa-xs-muted);
}

/* ---------- #xs: сітка карток ---------- */
.wa-xs .wa-xs__grid {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
}
.wa-xs .wa-xs__item {
	grid-column: span 2;
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
}
.wa-xs .wa-xs__item::before,
.wa-xs .wa-xs__item::marker { content: none; }
/* неповний останній ряд: 2 картки → по 3 колонки, 1 картка → на всю ширину */
.wa-xs__grid--2 .wa-xs__item,
.wa-xs__grid--5 .wa-xs__item:nth-child(n+4),
.wa-xs__grid--8 .wa-xs__item:nth-child(n+7) { grid-column: span 3; }
.wa-xs__grid--1 .wa-xs__item,
.wa-xs__grid--4 .wa-xs__item:nth-child(4),
.wa-xs__grid--7 .wa-xs__item:nth-child(7) { grid-column: 1 / -1; }

.wa-xs__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 28px;
	background: #fff;
	border: 1px solid #e3e9ef;
	border-radius: 22px;
	transition: box-shadow .3s, border-color .3s;
}
.wa-xs__top { display: flex; align-items: center; gap: 12px; }
.wa-xs__icon {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eaf4fa;
	color: #1a72a8;
}
.wa-xs__icon--promo,
.wa-xs__icon--ads     { background: #eef8e2; color: #3f7a0a; }
.wa-xs__icon--design  { background: #f1edfb; color: #5b3fb5; }
.wa-xs__icon--support { background: #e9edf2; color: #14233a; }
.wa-xs__tag {
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid #e3e9ef;
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #5b6472;
}
.wa-xs .wa-xs__name {
	margin: 18px 0 0;
	padding: 0;
	font-family: var(--wa-xs-head);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	text-transform: none;
	text-align: left;
	color: var(--wa-xs-ink);
	background: none;
}
.wa-xs .wa-xs__text {
	margin: 10px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wa-xs-muted);
}
.wa-xs .wa-xs__more {
	margin-top: auto;
	padding-top: 18px;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wa-xs-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--wa-xs-blue);
	text-decoration: none;
}
.wa-xs__more .wa-icon { transition: transform .25s; }
.wa-xs .wa-xs__more:hover { color: #135a86; }
.wa-xs__more:hover .wa-icon { transform: translateX(4px); }
.wa-xs__more:focus-visible { outline: 2px solid var(--wa-xs-blue); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) {
	.wa-xs__card:hover { border-color: #cfe1ee; box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }
}
.wa-xs .wa-xs__note {
	margin: 20px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #5b6472;
}

/* ---------- #examples: шапка + карусель ---------- */
.wa-ex { --wa-car-show: 3; }
.wa-ex__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
}
.wa-ex__side { flex: none; display: flex; align-items: center; gap: 16px; }
.wa-ex .wa-ex__all {
	height: 48px;
	padding: 0 20px;
	border: 1px solid #b9cfdf;
	border-radius: 14px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wa-xs-head);
	font-weight: 600;
	font-size: 15px;
	color: var(--wa-xs-ink);
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .2s, border-color .2s;
}
.wa-ex__all .wa-icon { color: var(--wa-xs-blue); transition: transform .25s; }
.wa-ex .wa-ex__all:hover { background: #f5f8fb; border-color: #9fbdd3; color: var(--wa-xs-ink); }
.wa-ex__all:hover .wa-icon { transform: translateX(3px); }
.wa-ex__all:focus-visible { outline: 2px solid var(--wa-xs-blue); outline-offset: 2px; }
/* до 3 карток на десктопі вміщаються — стрілки й прогрес не потрібні; більше (SEO, Google Ads) — карусель зі стрілками */
@media (min-width: 1024px) {
	.wa-ex--few .wa-carousel__controls,
	.wa-ex--few .wa-carousel__progress { display: none; }
}

.wa-ex .wa-ex__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1px solid #e3e9ef;
	border-radius: 22px;
	overflow: hidden;
	color: #1d2433;
	text-decoration: none;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}
.wa-ex .wa-ex__card:focus-visible { outline: 2px solid var(--wa-xs-blue); outline-offset: 2px; }
.wa-ex__shot {
	position: relative;
	display: block;
	margin: 14px 14px 0;
	aspect-ratio: 16 / 10;
	border-radius: 14px;
	overflow: hidden;
	background: #eef3f7;
}
.wa-ex__bar {
	position: relative;
	z-index: 1;
	height: 26px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	gap: 5px;
	background: #e7edf2;
}
.wa-ex__bar i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #c9d4dd; }
.wa-ex__bar em {
	margin-left: 8px;
	height: 15px;
	padding: 0 9px;
	border-radius: 8px;
	background: #fff;
	display: flex;
	align-items: center;
	min-width: 0;
	font-style: normal;
	font-size: 10px;
	line-height: 1;
	color: #5b6472;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wa-ex__page {
	position: absolute;
	left: 0;
	right: 0;
	top: 26px;
	bottom: 0;
	display: block;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.wa-ex__page picture { display: block; width: 100%; height: 100%; }
.wa-ex .wa-ex__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center;
}
.wa-ex__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 20px 22px 22px;
}
.wa-ex__name {
	font-family: var(--wa-xs-head);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.3;
	color: var(--wa-xs-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wa-ex__desc {
	font-size: 14px;
	line-height: 1.5;
	color: #5b6472;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wa-ex__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-ex__tags span {
	height: 26px;
	padding: 0 10px;
	border-radius: 8px;
	background: #f5f8fb;
	border: 1px solid #e8eef3;
	font-size: 12px;
	line-height: 1;
	color: #36404f;
	display: flex;
	align-items: center;
	white-space: nowrap;
}
.wa-ex__go {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wa-xs-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--wa-xs-blue);
}
.wa-ex__go .wa-icon { transition: transform .25s; }
@media (hover: hover) {
	.wa-ex .wa-ex__card:hover {
		color: #1d2433;
		transform: translateY(-4px);
		box-shadow: 0 22px 48px rgba(15, 23, 42, .12);
		border-color: #cfe1ee;
	}
	.wa-ex__card:hover .wa-ex__page { transform: scale(1.035); }
	.wa-ex__card:hover .wa-ex__go .wa-icon { transform: translateX(4px); }
}
.wa-ex__progress { margin-top: 16px; }

/* ---------- ширина: 1400 + поля 20px ниже 1440 ---------- */
@media (max-width: 1439px) {
	.wa-xs__wrap,
	.wa-ex__wrap { width: calc(100% - 40px); }
}
@media (max-width: 1199px) {
	.wa-xs .wa-xs__title,
	.wa-ex .wa-ex__title { font-size: 34px; }
	.wa-xs__card { padding: 24px; }
}

/* ---------- планшет: картки по 2 ---------- */
@media (max-width: 1023px) {
	.wa-xs,
	.wa-ex { padding: 56px 0; }
	.wa-xs__wrap,
	.wa-ex__wrap { width: calc(100% - 32px); }
	.wa-xs .wa-xs__title,
	.wa-ex .wa-ex__title { font-size: 30px; line-height: 1.2; }
	.wa-xs .wa-xs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; gap: 16px; }
	.wa-xs .wa-xs__grid .wa-xs__item { grid-column: auto; }
	.wa-xs .wa-xs__grid .wa-xs__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.wa-ex__head { flex-wrap: wrap; gap: 20px; }
}

/* ---------- мобілка ≤767 ---------- */
@media (max-width: 767px) {
	.wa-xs,
	.wa-ex { padding: 48px 0; }
	.wa-xs .wa-xs__title,
	.wa-ex .wa-ex__title { font-size: 28px; }
	.wa-xs .wa-xs__lead,
	.wa-ex .wa-ex__lead { font-size: 15px; }
	.wa-xs .wa-xs__grid { grid-template-columns: minmax(0, 1fr); margin-top: 20px; gap: 12px; }
	.wa-xs__card { padding: 22px 20px; border-radius: 20px; }
	.wa-xs .wa-xs__name { margin-top: 14px; font-size: 18px; }
	.wa-xs .wa-xs__text { font-size: 14px; }
	.wa-ex__side { width: 100%; }
	.wa-ex .wa-ex__all { width: 100%; justify-content: center; }
	.wa-ex .wa-ex__card { border-radius: 20px; }
	.wa-ex__shot { margin: 12px 12px 0; border-radius: 12px; }
	.wa-ex__info { padding: 18px; }
}

/* ---------- кнопки-переходи під ціною .wa-pjump (template-parts/service/price-jump.php) ---------- */
.wa-pjump {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0 0;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wa-pjump .wa-pjump__btn {
	height: 48px;
	padding: 0 20px 0 14px;
	border: 1px solid #b9cfdf;
	border-radius: 14px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	color: #14233a;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, border-color .2s;
}
.wa-pjump__ico {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eaf4fa;
	color: #1a72a8;
}
.wa-pjump .wa-pjump__btn:hover { background: #f5f8fb; border-color: #9fbdd3; color: #14233a; }
.wa-pjump__btn:focus-visible { outline: 2px solid #1a72a8; outline-offset: 2px; }

/* ---------- мобілка ≤767: картки #xs листаються вбок (scroll-snap, без JS), край наступної видно ---------- */
@media (max-width: 767px) {
	.wa-xs .wa-xs__grid {
		display: flex;
		gap: 12px;
		margin: 20px -16px 0;
		padding: 4px 16px 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.wa-xs .wa-xs__grid::-webkit-scrollbar { display: none; }
	.wa-xs .wa-xs__grid .wa-xs__item,
	.wa-xs .wa-xs__grid .wa-xs__item:last-child:nth-child(odd) { flex: 0 0 min(85%, 340px); grid-column: auto; scroll-snap-align: start; }
	.wa-xs__grid--1 .wa-xs__item { flex-basis: 100%; }
	.wa-pjump { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.wa-pjump .wa-pjump__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.wa-xs__card,
	.wa-xs__more .wa-icon,
	.wa-ex .wa-ex__card,
	.wa-ex__page,
	.wa-ex__go .wa-icon,
	.wa-ex__all .wa-icon { transition: none; }
}
