/*
 * Hero головної (template-parts/sections/hero-home.php). Префікс .abh-.
 * Окремий файл, бо main.css — скомпільований Tailwind.
 */
.abh {
	--abh-navy: #0b1220;
	--abh-dark: #1E3A5F;
	--abh-primary: #2B4C7E;
	--abh-sky: #9cc0ee;
	--abh-text: rgba(226, 236, 250, .86);
	position: relative; isolation: isolate; overflow: hidden;
	margin-top: -5rem; padding-top: 5rem; /* фон заходить під фіксовану шапку */
	color: #fff; background: var(--abh-navy);
}

/* ── Фон ── */
.abh-bg { position: absolute; inset: 0; z-index: -1; }
.abh-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.04); }
.abh-bg-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(11, 18, 32, .97) 0%, rgba(11, 18, 32, .9) 38%, rgba(15, 30, 54, .72) 62%, rgba(20, 42, 74, .55) 100%),
		linear-gradient(0deg, rgba(11, 18, 32, .85) 0%, rgba(11, 18, 32, 0) 35%);
}
.abh-bg-lines { /* тонка сітка, що тане до країв */
	position: absolute; inset: 0; opacity: .5;
	background-image: linear-gradient(rgba(156, 192, 238, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(156, 192, 238, .07) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 75%);
}
.abh-bg-glow {
	position: absolute; width: 46rem; height: 46rem; right: -10rem; top: -12rem; border-radius: 50%;
	background: radial-gradient(circle, rgba(58, 95, 148, .45) 0%, rgba(58, 95, 148, 0) 65%);
}

/* ── Сітка ── */
.abh-wrap {
	max-width: 80rem; margin: 0 auto; padding: 3.5rem 1rem 4.5rem;
	display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width:640px) { .abh-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width:1024px) {
	.abh-wrap {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem;
		min-height: min(calc(100vh - 5rem), 50rem); min-height: min(calc(100svh - 5rem), 50rem);
		padding: 3rem 2rem 5rem;
	}
}

/* ── Текст ── */
.abh-kicker {
	display: flex; align-items: center; gap: 1rem; margin: 0;
	font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
	color: var(--abh-sky);
}
.abh-kicker-line { flex: none; width: 3rem; height: 1px; background: linear-gradient(90deg, rgba(156, 192, 238, 0), var(--abh-sky)); }
@media (max-width:519.98px) { .abh-kicker { font-size: .7rem; letter-spacing: .18em; gap: .75rem; } .abh-kicker-line { width: 1.75rem; } }
.abh-title {
	margin: 1.4rem 0 0; font-size: clamp(2.35rem, 6.2vw, 4.25rem); line-height: 1.04;
	font-weight: 800; letter-spacing: -.03em; color: #fff; text-wrap: balance;
}
@media (min-width:1024px) { .abh-title { font-size: clamp(2.7rem, 4.5vw, 4.25rem); } }
.abh-accent {
	background: linear-gradient(95deg, #e6efff 0%, var(--abh-sky) 45%, #6f98d6 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.abh-sub { margin: 1.25rem 0 0; max-width: 36rem; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--abh-text); }

.abh-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.abh-points li { display: flex; align-items: flex-start; gap: .7rem; font-size: 1rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.abh-check {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 1.5rem; height: 1.5rem; border-radius: 50%; margin-top: -.05rem;
	background: rgba(52, 211, 153, .14); color: #34d399; border: 1px solid rgba(52, 211, 153, .35);
}
.abh-check svg { width: .9rem; height: .9rem; }

/* ── Кнопки ── */
.abh-ctas { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.1rem; }
@media (min-width:520px) { .abh-ctas { flex-direction: row; flex-wrap: wrap; } }
.abh-btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 56px; padding: .9rem 1.6rem; border-radius: .9rem;
	font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.2; cursor: pointer;
	border: 1px solid transparent; text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.abh-btn:focus-visible { outline: 3px solid var(--abh-sky); outline-offset: 3px; }
.abh-btn--primary {
	color: var(--abh-dark); background: #fff;
	box-shadow: 0 14px 34px -12px rgba(156, 192, 238, .55), inset 0 -2px 0 rgba(43, 76, 126, .12);
}
.abh-btn--primary::after { /* відблиск, що пробігає кнопкою */
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(156, 192, 238, .45), rgba(255, 255, 255, 0));
	animation: abhSheen 5s ease-in-out 2.6s infinite;
}
.abh-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(156, 192, 238, .7); }
.abh-btn-arrow { width: 1.15rem; height: 1.15rem; transition: transform .2s ease; }
.abh-btn--primary:hover .abh-btn-arrow { transform: translateX(3px); }
.abh-btn--ghost {
	color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.abh-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }
.abh-btn-ico { width: 1.2rem; height: 1.2rem; flex: none; }
@media (min-width:1024px) and (max-width:1279.98px) {
	.abh-ctas { flex-wrap: nowrap; gap: .6rem; }
	.abh-btn { padding: .85rem 1.15rem; font-size: .98rem; }
}

.abh-phone { margin: 1rem 0 0; font-size: .95rem; color: var(--abh-text); }
.abh-phone a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .45); white-space: nowrap; }
.abh-phone a:hover { border-bottom-style: solid; }
.abh-hours { display: inline-block; margin-left: .6rem; padding-left: .6rem; border-left: 1px solid rgba(255, 255, 255, .25); color: rgba(226, 236, 250, .65); }

/* ── Де працюємо: лише до 1024, на ширших це плашки на фото ── */
/* Телефон: список рядків в одній рамці. Планшет: три картки в ряд. */
.abh-places {
	list-style: none; margin: 1.75rem 0 0; padding: 0;
	border: 1px solid rgba(156, 192, 238, .2); border-radius: 1rem; overflow: hidden;
	background: rgba(255, 255, 255, .04);
}
.abh-places li + li { border-top: 1px solid rgba(156, 192, 238, .14); }
.abh-places a {
	display: flex; align-items: center; gap: .85rem; min-height: 60px;
	padding: .7rem 1rem; text-decoration: none; color: #fff;
}
.abh-places a::after { /* стрілка праворуч */
	content: ""; flex: none; margin-left: auto; width: .5rem; height: .5rem;
	border-top: 2px solid rgba(156, 192, 238, .7); border-right: 2px solid rgba(156, 192, 238, .7); transform: rotate(45deg);
}
.abh-places a:active, .abh-places a:hover { background: rgba(255, 255, 255, .06); }
.abh-places-svg {
	flex: none; width: 2.25rem; height: 2.25rem; padding: .5rem; border-radius: .65rem;
	color: var(--abh-sky); background: rgba(156, 192, 238, .12);
}
.abh-places span { min-width: 0; }
.abh-places b { display: block; font-size: .95rem; line-height: 1.25; }
.abh-places small { display: block; margin-top: .1rem; font-size: .8rem; line-height: 1.35; color: rgba(226, 236, 250, .7); }
@media (min-width:640px) {
	.abh-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; border-radius: 0; background: none; gap: .6rem; overflow: visible; }
	.abh-places li + li { border-top: 0; }
	.abh-places a { height: 100%; align-items: flex-start; border-radius: .9rem; border: 1px solid rgba(156, 192, 238, .2); background: rgba(255, 255, 255, .05); }
	.abh-places a::after { display: none; }
}
@media (min-width:1024px) { .abh-places { display: none; } }
@media (max-width:519.98px) {
	.abh-hours { display: block; margin: .3rem 0 0; padding: 0; border: 0; }
}

/* ── Цифри ── */
.abh-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
	margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(156, 192, 238, .18); max-width: 36rem;
}
.abh-stat { display: flex; flex-direction: column-reverse; gap: .35rem; padding-right: 1rem; }
.abh-stat + .abh-stat { padding-left: 1rem; border-left: 1px solid rgba(156, 192, 238, .18); }
.abh-stat dd { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.abh-stat dt { font-size: .8rem; line-height: 1.35; color: rgba(226, 236, 250, .7); }

/* ── Фото-композиція (лише ≥1024) ── */
.abh-visual { display: none; }
@media (min-width:1024px) {
	.abh-visual { display: block; position: relative; height: 34rem; }
	.abh-photo { position: absolute; margin: 0; overflow: hidden; border-radius: 1.5rem; background: #13233b; }
	.abh-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.abh-photo--main {
		right: 0; top: 0; width: 76%; height: 92%;
		box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(156, 192, 238, .18);
	}
	.abh-photo--main::after { /* легка тонування під палітру сайту */
		content: ""; position: absolute; inset: 0;
		background: linear-gradient(200deg, rgba(43, 76, 126, 0) 40%, rgba(11, 18, 32, .45) 100%);
	}
	.abh-photo--second {
		left: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 3;
		border: 6px solid rgba(11, 18, 32, .9);
		box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
	}
	.abh-chip {
		position: absolute; display: flex; align-items: center; gap: .75rem;
		padding: .8rem 1.1rem .8rem .8rem; border-radius: 1rem;
		background: rgba(255, 255, 255, .94); color: #0f172a;
		box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55);
	}
	.abh-chip b { display: block; font-size: .92rem; line-height: 1.2; }
	.abh-chip small { display: block; margin-top: .15rem; font-size: .78rem; color: #64748b; }
	.abh-chip-ico {
		flex: none; display: inline-flex; align-items: center; justify-content: center;
		width: 2.4rem; height: 2.4rem; border-radius: .7rem; color: #fff;
		background: linear-gradient(135deg, var(--abh-primary), var(--abh-dark));
	}
	.abh-chip-svg { width: 1.25rem; height: 1.25rem; }
	a.abh-chip { text-decoration: none; transition: box-shadow .2s ease, background-color .2s ease; }
	a.abh-chip:hover { background: #fff; box-shadow: 0 24px 44px -14px rgba(0, 0, 0, .6); }
	.abh-chip-ico--green { background: linear-gradient(135deg, #10b981, #047857); }
	.abh-chip--dnipro { left: 6%; top: 8%; }
	.abh-chip--samar { left: 9%; bottom: -1.1rem; }
	.abh-chip--ua { right: -1rem; bottom: 14%; }
}
@media (min-width:1280px) { .abh-visual { height: 37rem; } }

/* ── Підказка прокрутки ── */
.abh-scroll { display: none; }
@media (min-width:1024px) and (min-height:760px) {
	.abh-scroll {
		display: block; position: absolute; left: 50%; bottom: 1.4rem; width: 26px; height: 42px; margin-left: -13px;
		border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px;
	}
	.abh-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: abhScroll 1.8s ease-in-out infinite; }
	.abh-scroll:hover { border-color: #fff; }
}

/* ── Анімації ── */
.abh-anim { opacity: 0; animation: abhUp .85s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@media (min-width:1024px) {
	.abh-photo--main { animation: abhReveal 1.1s cubic-bezier(.7, 0, .2, 1) .25s both; }
	.abh-photo--main img { animation: abhZoom 2.2s cubic-bezier(.2, .8, .2, 1) .25s both; }
	.abh-photo--second { animation: abhUp .9s cubic-bezier(.2, .8, .2, 1) .75s both; }
	.abh-chip--dnipro { animation: abhPop .7s cubic-bezier(.2, .9, .3, 1.2) 1.05s both, abhFloat 7s ease-in-out 2s infinite; }
	.abh-chip--samar { animation: abhPop .7s cubic-bezier(.2, .9, .3, 1.2) 1.2s both, abhFloat 8s ease-in-out 2.6s infinite; }
	.abh-chip--ua { animation: abhPop .7s cubic-bezier(.2, .9, .3, 1.2) 1.35s both, abhFloat 7s ease-in-out 3.2s infinite; }
}
.abh-bg-img { animation: abhBg 14s ease-out both; }
/* Поки показується заставка з логотипом — нічого не програємо, щоб людина побачила появу. */
html.abp-intro .abh *, html.abp-intro .abh *::after { animation-play-state: paused !important; }

@keyframes abhUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes abhReveal { from { clip-path: inset(0 0 0 100% round 1.5rem); } to { clip-path: inset(0 0 0 0 round 1.5rem); } }
@keyframes abhZoom { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes abhPop { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes abhFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes abhBg { from { transform: scale(1.12); } to { transform: scale(1.04); } }
@keyframes abhSheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes abhScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
	.abh *, .abh *::after { animation: none !important; }
	.abh-anim { opacity: 1; }
	.abh-bg-img { transform: none; }
}
