/**
 * Секция «Що ми можемо дати вашому бізнесу?» #for (2026-10-30, ТЗ v2): текст слева, коллаж работ справа.
 * Разметка: template-parts/blocks/for-results.php. Макет: reports/new-design-tasks/for (ForCollage.dc.html).
 * Фон #f5f8fb: соседи «Останні роботи» и #call-front — белые (чередование).
 * Коллаж: блок с aspect-ratio 728/540 (ширина визуала на 1440), все элементы — в процентах от него, поэтому ужимается целиком.
 */

.wa-for {
	--wa-for-ink: #14233a;
	--wa-for-text: #4b5563;
	--wa-for-muted: #5b6472;
	--wa-for-blue: #1a72a8;
	--wa-for-head: Montserrat, Arial, sans-serif;
	padding: 80px 0;
	background: #f5f8fb;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1d2433;
}
.wa-for *,
.wa-for *::before,
.wa-for *::after { box-sizing: border-box; }

.wa-for__wrap {
	width: 1400px;
	max-width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
	gap: 72px;
	align-items: center;
}

/* ---------- текст ---------- */
.wa-for__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;
}
.wa-for .wa-for__title {
	margin: 14px 0 0;
	padding: 0;
	font: 700 40px/1.15 var(--wa-for-head);
	letter-spacing: -.01em;
	color: var(--wa-for-ink);
	text-align: left;
	text-transform: none;
}
.wa-for__lead { margin-top: 16px; }
.wa-for__lead,
.wa-for .wa-for__lead p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--wa-for-text);
}
.wa-for .wa-for__lead p { margin: 0; }
.wa-for .wa-for__lead p + p { margin-top: 10px; }

.wa-for .wa-for__list {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.wa-for .wa-for__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wa-for .wa-for__list li::before { content: none; }
.wa-for__check {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef8e2;
	color: #3f7a0a;
}
.wa-for__point { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.wa-for__point b { font: 700 16px/1.35 var(--wa-for-head); color: var(--wa-for-ink); }
.wa-for__point span { font-size: 14px; line-height: 1.5; color: var(--wa-for-muted); }

.wa-for__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}
.wa-for .wa-for__cta,
.wa-for .wa-for__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 54px;
	margin: 0;
	border-radius: 14px;
	font: 700 16px/1 var(--wa-for-head);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.wa-for .wa-for__cta {
	padding: 0 24px;
	border: 0;
	background: #7dc91b;
	color: #0e2a06;
	box-shadow: 0 10px 24px rgba(125, 201, 27, .3);
	transition: background .2s, transform .2s;
}
.wa-for .wa-for__cta:hover { background: #6fb915; color: #0e2a06; transform: translateY(-1px); }
.wa-for .wa-for__btn {
	padding: 0 22px;
	border: 1px solid #b9cfdf;
	background: #fff;
	color: #1d2433;
	font-weight: 600;
	transition: border-color .2s;
}
.wa-for .wa-for__btn:hover { border-color: var(--wa-for-blue); color: #1d2433; }
.wa-for__cta:focus-visible,
.wa-for__btn:focus-visible { outline: 3px solid var(--wa-for-blue); outline-offset: 3px; }

/* ---------- коллаж ---------- */
.wa-for__visual {
	position: relative;
	aspect-ratio: 728 / 540;
}
.wa-for__bg {
	position: absolute;
	inset: 3.7% 1.4% 1.85% 5.5%;
	border-radius: 32px;
	background:
		radial-gradient(rgba(26, 114, 168, .16) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
		linear-gradient(135deg, #eaf6fc 0%, #d3ecf7 55%, #c1e3f3 100%);
}
.wa-for .wa-for__browser,
.wa-for .wa-for__phone {
	position: absolute;
	margin: 0;
	overflow: hidden;
	animation: wa-for-float 6s ease-in-out infinite;
}
.wa-for .wa-for__browser {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 26px 60px rgba(15, 23, 42, .18);
}
.wa-for__browser--back { right: 5.5%; top: 10.4%; width: 64.6%; height: 55.6%; }
.wa-for__browser--front { left: 0; top: 42.6%; width: 57.7%; height: 50%; }
.wa-for .wa-for__browser--front { animation-delay: -2s; }
.wa-for__bar {
	flex: none;
	height: 24px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	gap: 5px;
	background: #eef3f7;
}
.wa-for__bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #c9d4dd; }
.wa-for__bar em {
	margin-left: 8px;
	height: 14px;
	padding: 0 8px;
	border-radius: 7px;
	background: #fff;
	display: flex;
	align-items: center;
	font: normal 9px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--wa-for-muted);
	white-space: nowrap;
}
.wa-for__page {
	position: relative;
	display: block;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background: #eef3f7;
}
.wa-for__page picture { display: block; width: 100%; height: 100%; }
.wa-for .wa-for__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center;
}
.wa-for .wa-for__phone {
	right: 9.6%;
	bottom: 5.6%;
	width: 18.7%;
	height: 50%;
	padding: 7px;
	border-radius: 26px;
	background: #14233a;
	box-shadow: 0 26px 60px rgba(15, 23, 42, .25);
	animation-delay: -4s;
}
.wa-for__phone .wa-for__page { height: 100%; border-radius: 20px; }

.wa-for__stat {
	position: absolute;
	left: 8.2%;
	top: 13%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px 12px 12px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
	animation: wa-for-float 6s ease-in-out -2s infinite;
}
.wa-for__stat-ic {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wa-for-blue);
	color: #fff;
}
.wa-for__stat-txt { display: flex; flex-direction: column; }
.wa-for__stat-txt b { font: 700 18px/1.25 var(--wa-for-head); color: var(--wa-for-ink); }
.wa-for__stat-txt span { font-size: 12px; line-height: 1.35; color: var(--wa-for-muted); white-space: nowrap; }

@keyframes wa-for-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* ---------- ширина: 1400 + поля 20px ниже 1440 ---------- */
@media (max-width: 1439px) {
	.wa-for__wrap { width: calc(100% - 40px); }
}
@media (max-width: 1279px) {
	.wa-for__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
	.wa-for .wa-for__title { font-size: 34px; }
	.wa-for__lead,
	.wa-for .wa-for__lead p { font-size: 16px; }
}

/* ---------- планшет 768–1023: одна колонка, коллаж под текстом ---------- */
@media (max-width: 1023px) {
	.wa-for { padding: 56px 0; }
	.wa-for__wrap { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.wa-for .wa-for__title { font-size: 30px; line-height: 1.2; }
	.wa-for__visual { width: 100%; max-width: 594px; margin: 0 auto; } /* 594 × 540/728 ≈ 440px */
}

/* ---------- мобилка ≤767: кнопки столбиком, коллаж 320px — один браузер, телефон, плашка ---------- */
@media (max-width: 767px) {
	.wa-for { padding: 48px 0; }
	.wa-for__wrap { gap: 32px; }
	.wa-for .wa-for__title { font-size: 27px; }
	.wa-for__lead,
	.wa-for .wa-for__lead p { font-size: 15px; }
	.wa-for__actions { flex-direction: column; }
	.wa-for .wa-for__cta,
	.wa-for .wa-for__btn { width: 100%; }

	.wa-for__visual { aspect-ratio: auto; height: 320px; max-width: 420px; }
	.wa-for__bg { inset: 6% 0 3% 6%; border-radius: 24px; }
	.wa-for .wa-for__browser--back { display: none; }
	.wa-for__browser--front { left: 0; top: 30%; width: 74%; height: 56%; border-radius: 12px; }
	.wa-for .wa-for__phone { right: 5%; bottom: 4%; width: 27%; height: 70%; max-width: 116px; padding: 6px; border-radius: 22px; }
	.wa-for__phone .wa-for__page { border-radius: 17px; }
	.wa-for__stat { left: 10%; top: 9%; padding: 9px 12px 9px 9px; border-radius: 14px; }
	.wa-for__stat-ic { width: 32px; height: 32px; border-radius: 9px; }
	.wa-for__stat-txt b { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.wa-for .wa-for__browser,
	.wa-for .wa-for__phone,
	.wa-for__stat { animation: none; }
	.wa-for .wa-for__cta { transition: none; }
	.wa-for .wa-for__cta:hover { transform: none; }
}
