/**
 * Головна: нові блоки (DSA 29.10.2026, етап 1 плану, погоджено власником).
 * Перший екран – рядок, «Подзвонити», месенджери (класи шапки послуг, entry-hero.css);
 * смуга фактів; «Що сталося?»; кейси й статті; «Поширені запитання».
 */

/* Перший екран */
.home-hero .entry-hero__note {
	margin-inline: auto;
}

.home-hero__extra {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.4rem;
	margin-top: 1.4rem;
}

.home-hero .entry-hero__call {
	background: transparent;
	border: 2px solid var(--primary);
	color: var(--text-title);
}

.home-hero .entry-hero__call i {
	color: var(--primary);
}

.home-hero .entry-hero__contacts {
	justify-content: center;
	margin: 0;
}

/* Поза робочим часом (клас ставить шапка сайту, header-canvas) – без «Подзвонити». */
.dsa-offhours .home-hero [data-dsa-workhours] {
	display: none;
}

/* Смуга фактів */
.home-facts {
	padding-top: 3rem;
}

/* Що сталося? */
.home-situations__lead {
	max-width: 60ch;
	margin: -1rem auto 2.4rem;
	color: var(--text-body);
	text-align: center;
}

.home-situations__urgent {
	max-width: 100rem;
	margin: 0 auto 2.4rem;
	padding: 1.4rem 2rem;
	border: 1px solid var(--primary);
	border-radius: var(--radius-m);
	background: color-mix(in srgb, var(--primary) 12%, transparent);
	color: var(--text-title);
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	text-wrap: balance;
}

.home-situations__urgent a {
	color: var(--text-title);
	white-space: nowrap;
	text-decoration: underline;
	text-decoration-color: var(--primary);
	text-underline-offset: 3px;
}

.home-situations__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-situations__item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	height: 100%;
	min-height: 11rem;
	padding: 1.8rem 2rem;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-m);
	background: var(--bg-surface);
	color: var(--text-title);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.home-situations__item:hover,
.home-situations__item:focus-visible {
	border-color: var(--primary);
	color: var(--text-title);
}

.home-situations__item::after {
	content: "→";
	position: absolute;
	right: 1.8rem;
	bottom: 1.6rem;
	color: var(--primary);
	font-size: 2rem;
	line-height: 1;
}

.home-situations__group {
	color: var(--text-body);
	font-size: 1.3rem;
	letter-spacing: 0.04em;
}

.home-situations__name {
	padding-right: 2.4rem;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.3;
}

.home-situations__badge {
	display: inline-block;
	margin-left: 0.6rem;
	padding: 0.1rem 0.7rem;
	border-radius: 99px;
	background: var(--primary);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	vertical-align: middle;
}

/* Поширені запитання */
.home-faq__list {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	max-width: 90rem;
	margin: 0 auto;
}

.home-faq__item {
	padding: 1.6rem 2rem;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-m);
	background: var(--bg-surface);
}

.home-faq__q {
	position: relative;
	padding-right: 3rem;
	color: var(--text-title);
	font-size: 1.7rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.home-faq__q::-webkit-details-marker {
	display: none;
}

.home-faq__q::after {
	content: "+";
	position: absolute;
	top: -0.2rem;
	right: 0;
	color: var(--primary);
	font-size: 2.4rem;
	line-height: 1;
}

.home-faq__item[open] .home-faq__q::after {
	content: "−";
}

.home-faq__a {
	margin: 1.2rem 0 0;
	color: var(--text-body);
	line-height: 1.6;
}

@media (max-width: 990px) {
	.home-situations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.home-facts .service-key-facts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.home-facts .service-key-facts__card {
		padding: 1.4rem;
	}
}

@media (max-width: 480px) {
	.home-situations__grid {
		gap: 1rem;
	}

	.home-situations__item {
		min-height: 9.6rem;
		padding: 1.4rem;
	}

	.home-situations__name {
		font-size: 1.5rem;
	}
}
