/**
 * Секция «Вартість і терміни» #cena-sayta (2026-11-03).
 * Разметка: template-parts/service/price.php, JS: assets/js/wa-price.js. Макет: reports/new-design-tasks/Price task (PricePlan.dc.html).
 * --site + --has-option: тариф 1.6fr + тёмная опция 1fr, ниже «Щорічні витрати»; --service: тариф на всю ширину, список в 2 колонки (≥8 пунктов).
 */

.wa-price {
	--wa-pr-ink: #14233a;
	--wa-pr-text: #36404f;
	--wa-pr-mut: #5b6472;
	--wa-pr-blue: #1a72a8;
	--wa-pr-sky: #8cc7ec;
	--wa-pr-head: Montserrat, Arial, sans-serif;
	margin-top: var(--wa-page-gap, 24px);
	padding: 80px 0;
	background: #f5f8fb;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1d2433;
	clear: both;
}
.wa-price *,
.wa-price *::before,
.wa-price *::after { box-sizing: border-box; }
.wa-price p { margin: 0; padding: 0; }

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

/* ---------- шапка ---------- */
.wa-price__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: 64px;
	align-items: end;
}
.wa-price__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-price .wa-price__title {
	margin: 14px 0 0;
	padding: 0;
	font-family: var(--wa-pr-head);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-transform: none;
	text-align: left;
	color: var(--wa-pr-ink);
	background: none;
}
.wa-price .wa-price__lead {
	font-size: 16px;
	line-height: 1.6;
	color: #4b5563;
}

/* ---------- верхний ряд ---------- */
.wa-price__top {
	margin-top: 36px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
}
.wa-price--has-option .wa-price__top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* ---------- тариф ---------- */
.wa-price__plan {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 36px;
	padding: 32px 34px;
	background: #fff;
	border: 1px solid #e3e9ef;
	border-radius: 24px;
}
.wa-price__plan-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}
.wa-price__badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eef8e2;
	color: #2f6a08;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
.wa-price .wa-price__from { margin-top: 22px; font-size: 13px; color: var(--wa-pr-mut); }
.wa-price__badge + .wa-price__from { margin-top: 22px; }
.wa-price__plan-main > .wa-price__from:first-child { margin-top: 0; }
.wa-price .wa-price__value {
	margin-top: 6px;
	font-family: var(--wa-pr-head);
	font-weight: 800;
	font-size: 52px;
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--wa-pr-ink);
	white-space: nowrap;
}
.wa-price__cur { font-size: 30px; }
.wa-price__per {
	margin-left: 4px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--wa-pr-mut);
}
.wa-price .wa-price__time {
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--wa-pr-ink);
}
.wa-price__time svg { flex: none; color: var(--wa-pr-blue); }
.wa-price .wa-price__btn {
	margin-top: auto;
	width: 100%;
	min-height: 52px;
	padding: 10px 22px;
	border: 0;
	border-radius: 14px;
	background: #7dc91b;
	color: #0e2a06;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--wa-pr-head);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.25;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	transition: background-color .25s;
}
.wa-price__btn svg { flex: none; transition: transform .25s; }
/* кнопка прижата к низу колонки (margin-top: auto), но не ближе 24px к цене/сроку: элемент перед кнопкой */
.wa-price .wa-price__plan-main > :nth-last-child(3) { margin-bottom: 24px; }
.wa-price .wa-price__note {
	margin-top: 10px;
	align-self: stretch;
	text-align: center;
	font-size: 13px;
	color: var(--wa-pr-mut);
}

/* список «Що входить у ціну» */
.wa-price__includes {
	min-width: 0;
	padding-left: 36px;
	border-left: 1px solid #edf1f5;
}
.wa-price .wa-price__caption {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wa-pr-mut);
}
.wa-price .wa-price__list {
	display: grid;
	gap: 11px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.wa-price .wa-price__list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.wa-price .wa-price__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wa-pr-text);
}
.wa-price .wa-price__list li::before,
.wa-price .wa-price__list li::marker { content: none; }
.wa-price__list a { color: var(--wa-pr-blue); }
.wa-price__check {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 7px;
	background: #eef8e2;
	color: #3f7a0a;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* свёрнутый список: высота как у левой колонки (--wa-pr-clamp ставит JS), затухание, кнопка «Показати все» */
.wa-price__inc-body { position: relative; }
.wa-price__includes.is-clamped .wa-price__inc-body {
	max-height: var(--wa-pr-clamp, 300px);
	overflow: hidden;
}
.wa-price__includes.is-clamped .wa-price__inc-body::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 72px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}
.wa-price .wa-price__more {
	margin: 12px 0 0;
	padding: 4px 0;
	border: 0;
	background: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wa-pr-head);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	color: var(--wa-pr-blue);
	text-transform: none;
	cursor: pointer;
}
.wa-price .wa-price__more[hidden] { display: none; }
.wa-price__more svg { transition: transform .25s; }
.wa-price__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* примечание после списка (SEO, контекст, GEO) */
.wa-price__remark {
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #f5f8fb;
	font-size: 14px;
	line-height: 1.6;
	color: var(--wa-pr-mut);
}
.wa-price .wa-price__remark p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--wa-pr-mut); }
.wa-price .wa-price__remark > :last-child { margin-bottom: 0; }
.wa-price .wa-price__remark strong,
.wa-price .wa-price__remark b { font-weight: 400; } /* в старых текстах весь абзац был жирным */
.wa-price__remark a { color: var(--wa-pr-blue); }

/* ---------- опция (тёмная) ---------- */
.wa-price__option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 30px 30px 28px;
	background: var(--wa-pr-ink);
	border-radius: 24px;
	overflow: hidden;
	color: #fff;
}
.wa-price__opt-deco {
	position: absolute;
	right: -90px;
	top: -110px;
	width: 280px;
	height: 280px;
	pointer-events: none;
}
.wa-price__opt-deco::before,
.wa-price__opt-deco::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1.5px solid rgba(255, 255, 255, .08);
	border-radius: 50%;
	transform: scaleY(.4);
}
.wa-price__opt-deco::after { transform: rotate(60deg) scaleY(.4); }
.wa-price__opt-ico {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .1);
	color: var(--wa-pr-sky);
	display: flex;
	align-items: center;
	justify-content: center;
}
.wa-price .wa-price__opt-label {
	position: relative;
	margin-top: 22px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wa-pr-sky);
}
.wa-price .wa-price__opt-title {
	position: relative;
	margin: 6px 0 0;
	padding: 0;
	font-family: var(--wa-pr-head);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	text-transform: none;
	text-align: left;
	color: #fff;
	background: none;
}
.wa-price .wa-price__opt-price {
	position: relative;
	margin-top: 10px;
	font-family: var(--wa-pr-head);
	font-weight: 800;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: #fff;
	white-space: nowrap;
}
.wa-price .wa-price__opt-text {
	position: relative;
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .72);
}
.wa-price .wa-price__opt-link {
	position: relative;
	margin-top: auto;
	padding: 22px 0 0;
	border: 0;
	background: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wa-pr-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--wa-pr-sky);
	text-transform: none;
	cursor: pointer;
}
.wa-price__opt-link svg { transition: transform .25s; }

/* ---------- щорічні витрати ---------- */
.wa-price__yearly {
	margin-top: 20px;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.wa-price .wa-price__yearly-title {
	font-family: var(--wa-pr-head);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: var(--wa-pr-ink);
}
.wa-price .wa-price__yearly-sub {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wa-pr-mut);
}
.wa-price__yr {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid #e3e9ef;
	border-radius: 20px;
}
.wa-price__yr-ico {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: #eaf4fa;
	color: var(--wa-pr-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}
.wa-price__yr-body { flex: 1; min-width: 0; }
.wa-price__yr-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	padding-top: 2px;
}
.wa-price .wa-price__yr-title {
	margin: 0;
	padding: 0;
	font-family: var(--wa-pr-head);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	text-transform: none;
	text-align: left;
	color: var(--wa-pr-ink);
	background: none;
}
.wa-price__yr-price {
	font-family: var(--wa-pr-head);
	font-weight: 800;
	font-size: 18px;
	color: var(--wa-pr-ink);
	white-space: nowrap;
}
.wa-price__yr-price span { font-size: 13px; font-weight: 500; color: var(--wa-pr-mut); }
.wa-price .wa-price__yr-more {
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wa-pr-head);
	font-weight: 600;
	font-size: 13px;
	color: var(--wa-pr-blue);
	text-transform: none;
	cursor: pointer;
}
.wa-price__yr-more svg { transition: transform .25s; }
.wa-price__yr-more.is-open svg { transform: rotate(180deg); }
.wa-price__yr-text {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--wa-pr-mut);
}

/* ---------- hover / focus ---------- */
.wa-price__btn:focus-visible,
.wa-price__opt-link:focus-visible,
.wa-price__yr-more:focus-visible,
.wa-price__more:focus-visible { outline: 2px solid var(--wa-pr-blue); outline-offset: 3px; }
.wa-price__opt-link:focus-visible { outline-color: var(--wa-pr-sky); }
@media (hover: hover) {
	.wa-price .wa-price__btn:hover { background: #8bd626; }
	.wa-price__btn:hover svg,
	.wa-price__opt-link:hover svg { transform: translateX(3px); }
	.wa-price .wa-price__opt-link:hover { color: #fff; }
	.wa-price .wa-price__more:hover span { text-decoration: underline; text-underline-offset: 3px; }
	.wa-price .wa-price__yr-more:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- ширина: 1400 + поля 20px ниже 1440 ---------- */
@media (max-width: 1439px) {
	.wa-price__wrap { width: calc(100% - 40px); }
}
@media (max-width: 1279px) {
	.wa-price .wa-price__title { font-size: 34px; }
	.wa-price__head { gap: 48px; }
	.wa-price__plan { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 28px; }
	.wa-price__includes { padding-left: 28px; }
	.wa-price .wa-price__value { font-size: 46px; }
	.wa-price .wa-price__list--2col { grid-template-columns: minmax(0, 1fr); }
	.wa-price--service .wa-price__list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- планшет 768–1023 ---------- */
@media (max-width: 1023px) {
	.wa-price { padding: 56px 0; }
	.wa-price__wrap { width: calc(100% - 32px); }
	.wa-price__head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.wa-price .wa-price__title { font-size: 30px; line-height: 1.2; }
	.wa-price--has-option .wa-price__top { grid-template-columns: minmax(0, 1fr); }
	.wa-price .wa-price__list--2col,
	.wa-price--service .wa-price__list--2col { grid-template-columns: minmax(0, 1fr); }
	.wa-price__yearly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wa-price__yearly-head { grid-column: 1 / -1; }
}

/* ---------- мобилка ≤767 ---------- */
@media (max-width: 767px) {
	.wa-price { padding: 48px 0; }
	.wa-price .wa-price__title { font-size: 27px; }
	.wa-price .wa-price__lead { font-size: 15px; }
	.wa-price__top { margin-top: 24px; gap: 14px; }
	.wa-price__plan { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; border-radius: 20px; }
	.wa-price .wa-price__value { font-size: 42px; }
	.wa-price__cur { font-size: 26px; }
	.wa-price__includes { padding: 22px 0 0; border-left: 0; border-top: 1px solid #edf1f5; }
	.wa-price__option { padding: 24px 20px; border-radius: 20px; }
	.wa-price .wa-price__opt-price { font-size: 28px; }
	.wa-price__yearly { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
	.wa-price__yearly-head { padding-top: 10px; }
	.wa-price__yr { padding: 18px; }
}
@media (max-width: 380px) {
	.wa-price .wa-price__value { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.wa-price__btn,
	.wa-price__btn svg,
	.wa-price__opt-link svg,
	.wa-price__yr-more svg,
	.wa-price__more svg { transition: none; }
}
