/**
 * Финальный CTA #call-front (2026-10-30): тёмно-синяя карточка, слева текст и кнопки, справа панель контактов.
 * Разметка: template-parts/blocks/call-front.php. Макет: reports/new-design-tasks/Call front task (CallContacts.dc.html).
 * Декор: контур атома (inline SVG, вращение 60s) и точечная текстура с маской слева направо.
 */

.wa-call {
	--wa-call-green: #7dc91b;
	--wa-call-head: Montserrat, Arial, sans-serif;
	padding: 64px 0;
	background: #fff;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wa-call *,
.wa-call *::before,
.wa-call *::after { box-sizing: border-box; }

.wa-call__wrap {
	width: 1400px;
	max-width: 100%;
	margin: 0 auto;
}
.wa-call__card {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 500px;
	gap: 64px;
	align-items: center;
	padding: 60px 64px;
	border-radius: 28px;
	background: linear-gradient(130deg, #14233a 0%, #173e63 55%, #1a6ea3 100%);
	color: #fff;
}

/* ---------- декор ---------- */
.wa-call__atom {
	position: absolute;
	left: calc(50% - 300px); /* центр чуть правее середины карточки */
	top: 50%;
	width: 620px;
	height: 620px;
	margin-top: -310px;
	opacity: .1;
	pointer-events: none;
	animation: wa-call-orb 60s linear infinite;
}
@keyframes wa-call-orb { to { transform: rotate(360deg); } }
.wa-call__dots {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.6px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
	mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.wa-call__main,
.wa-call__panel { position: relative; min-width: 0; }

/* ---------- текст и кнопки ---------- */
.wa-call__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(125, 201, 27, .16);
	color: #b7ec6e;
	font-size: 13px;
	font-weight: 600;
}
.wa-call__eyebrow i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--wa-call-green); }
.wa-call .wa-call__title {
	max-width: 560px;
	margin: 18px 0 0;
	padding: 0;
	font: 700 42px/1.14 var(--wa-call-head);
	letter-spacing: -.01em;
	color: #fff;
	text-align: left;
	text-transform: none;
}
.wa-call .wa-call__lead {
	max-width: 560px;
	margin: 16px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .8);
}
.wa-call__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}
.wa-call .wa-call__cta,
.wa-call .wa-call__ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	margin: 0;
	border-radius: 14px;
	font: 700 16px/1 var(--wa-call-head);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.wa-call .wa-call__cta {
	padding: 0 26px;
	border: 0;
	background: var(--wa-call-green);
	color: #0e2a06;
	box-shadow: 0 12px 28px rgba(125, 201, 27, .3);
	transition: background .2s, transform .2s;
}
.wa-call .wa-call__cta:hover { background: #8bd626; color: #0e2a06; transform: translateY(-1px); }
.wa-call .wa-call__ghost {
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, .3);
	background: transparent;
	color: #fff;
	font-weight: 600;
	transition: background .2s, border-color .2s;
}
.wa-call .wa-call__ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ---------- панель контактов ---------- */
.wa-call__panel {
	padding: 30px 30px 26px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 22px;
	background: rgba(255, 255, 255, .07);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.wa-call__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}
.wa-call .wa-call__phone {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	font: 700 30px/1.2 var(--wa-call-head);
	letter-spacing: .01em;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
.wa-call .wa-call__phone:hover { color: #fff; }
.wa-call__phone-ic {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wa-call-green);
	color: #0e2a06;
	transition: transform .2s;
}
.wa-call__phone:hover .wa-call__phone-ic { transform: scale(1.05); }
.wa-call__hours {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, .7);
}
.wa-call__msg {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 22px;
}
.wa-call .wa-call__mb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	height: 46px;
	padding: 0 8px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	transition: transform .2s, filter .2s;
}
.wa-call .wa-call__mb:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.07); }
.wa-call__mb .wa-icon { flex: none; }
.wa-call__mb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-call__mb--tg { background: #229ed9; }
.wa-call__mb--vb { background: #6f4ec1; }
.wa-call__mb--mail { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.wa-call__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .7);
}
.wa-call__note .wa-icon { flex: none; color: var(--wa-call-green); }

.wa-call .wa-call__cta:focus-visible,
.wa-call a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- ширина: 1400 + поля 20px ниже 1440 ---------- */
@media (max-width: 1439px) {
	.wa-call__wrap { width: calc(100% - 40px); }
}
@media (max-width: 1279px) {
	.wa-call__card { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; padding: 52px 48px; }
	.wa-call .wa-call__title { font-size: 36px; }
	.wa-call .wa-call__phone { font-size: 26px; }
}

/* ---------- планшет 768–1023: одна колонка, панель ниже ---------- */
@media (max-width: 1023px) {
	.wa-call { padding: 56px 0; }
	.wa-call__wrap { width: calc(100% - 32px); }
	.wa-call__card { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 40px; }
	.wa-call__panel { max-width: 560px; }
	.wa-call__atom { left: 50%; margin-left: -310px; opacity: .08; }
	.wa-call .wa-call__title { font-size: 34px; }
}

/* ---------- мобилка ≤767 ---------- */
@media (max-width: 767px) {
	.wa-call { padding: 40px 0; }
	.wa-call__card { gap: 28px; padding: 32px 22px; border-radius: 22px; }
	.wa-call__atom { left: auto; right: -170px; top: auto; bottom: -150px; width: 420px; height: 420px; margin: 0; }
	.wa-call .wa-call__title { font-size: 28px; line-height: 1.18; }
	.wa-call .wa-call__lead { font-size: 15px; }
	.wa-call__actions { flex-direction: column; margin-top: 26px; }
	.wa-call .wa-call__cta,
	.wa-call .wa-call__ghost { width: 100%; }
	.wa-call__panel { padding: 22px 18px 20px; border-radius: 18px; }
	.wa-call .wa-call__phone { gap: 12px; font-size: min(24px, 5.2vw); } /* номер в одну строку: на 390 ≈ 20px */
	.wa-call__phone-ic { width: 44px; height: 44px; }
	.wa-call__phone-ic .wa-icon { width: 19px; height: 19px; }
	.wa-call__msg { gap: 6px; margin-top: 18px; }
	.wa-call .wa-call__mb { gap: 6px; height: 44px; padding: 0 6px; font-size: 13px; }
}
/* узкие (≤ 380): номер мельче, в кнопках мессенджеров — иконка над короткой подписью */
@media (max-width: 380px) {
	.wa-call__card { padding: 28px 18px; }
	.wa-call__panel { padding: 20px 14px 18px; }
	.wa-call .wa-call__phone { gap: 10px; }
	.wa-call__phone-ic { width: 40px; height: 40px; }
	.wa-call .wa-call__mb { flex-direction: column; gap: 3px; height: 54px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.wa-call__atom { animation: none; }
	.wa-call .wa-call__cta,
	.wa-call .wa-call__mb,
	.wa-call__phone-ic { transition: none; }
	.wa-call .wa-call__cta:hover,
	.wa-call .wa-call__mb:hover { transform: none; }
}
