:root {
	--p7ah-navy: #10233f;
	--p7ah-navy-dark: #071a33;
	--p7ah-red: #e21a2c;
	--p7ah-red-dark: #c41424;
	--p7ah-text: #10233f;
	--p7ah-muted: #66758a;
	--p7ah-border: #dfe6ef;
	--p7ah-soft: #f5f8fc;
}

.p7ah-services {
	width: 100%;
	box-sizing: border-box;
	padding: 28px;
	border: 1px solid var(--p7ah-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 15px 38px rgba(16, 35, 63, .08);
	color: var(--p7ah-text);
	font-family: "Segoe UI", Arial, sans-serif;
}

.p7ah-services *, .p7ah-services *::before, .p7ah-services *::after { box-sizing: border-box; }
.p7ah-services a { text-decoration: none; }

.p7ah-services__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.p7ah-services__title {
	position: relative;
	margin: 0 0 7px;
	padding-left: 16px;
	color: var(--p7ah-navy);
	font-size: clamp(25px, 2.4vw, 34px);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -.4px;
}

.p7ah-services__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	border-radius: 3px;
	background: var(--p7ah-red);
}

.p7ah-services__subtitle { margin: 0; padding-left: 16px; color: var(--p7ah-muted); font-size: 15px; line-height: 1.5; }
.p7ah-services__header-link { margin-top: 8px; color: var(--p7ah-navy); font-size: 13px; font-weight: 700; white-space: nowrap; }
.p7ah-services__header-link:hover { color: var(--p7ah-red); }

.p7ah-services__filters {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 22px;
}

.p7ah-filter {
	min-width: 0;
	min-height: 78px;
	padding: 11px 8px;
	border: 1px solid var(--p7ah-border);
	border-radius: 10px;
	background: #fff;
	color: var(--p7ah-navy);
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.p7ah-filter:hover, .p7ah-filter:focus-visible {
	border-color: rgba(226, 26, 44, .55);
	box-shadow: 0 8px 20px rgba(16, 35, 63, .09);
	transform: translateY(-1px);
	outline: none;
}

.p7ah-filter.is-active {
	border-color: var(--p7ah-red);
	background: linear-gradient(135deg, var(--p7ah-red), var(--p7ah-red-dark));
	color: #fff;
	box-shadow: 0 10px 23px rgba(226, 26, 44, .2);
}

.p7ah-filter__icon { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; }
.p7ah-filter__icon svg { width: 100%; height: 100%; fill: currentColor; }

.p7ah-services__status { min-height: 0; margin: -5px 0 10px; color: var(--p7ah-muted); font-size: 13px; }
.p7ah-services.is-loading .p7ah-services__list { opacity: .48; pointer-events: none; }
.p7ah-services__list { display: grid; gap: 12px; transition: opacity .18s ease; }

.p7ah-alert-card {
	position: relative;
	padding: 16px 18px;
	border: 1px solid var(--p7ah-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 5px 16px rgba(16, 35, 63, .055);
	overflow: hidden;
}

.p7ah-alert-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #9ba9bb;
}
.p7ah-alert-card--important::before, .p7ah-alert-card--urgent::before { background: var(--p7ah-red); }

.p7ah-alert-card__topline { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; color: var(--p7ah-muted); font-size: 12px; }
.p7ah-alert-card__type { color: var(--p7ah-red); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.p7ah-alert-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; }
.p7ah-alert-card__content h3 { margin: 0 0 5px; color: var(--p7ah-navy); font-size: 18px; font-weight: 800; line-height: 1.3; }
.p7ah-alert-card__content h3 a { color: inherit; }
.p7ah-alert-card__content h3 a:hover { color: var(--p7ah-red); }
.p7ah-alert-card__content p { margin: 0 0 9px; color: #394b63; font-size: 14px; line-height: 1.5; }
.p7ah-alert-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.p7ah-alert-card__meta span { padding: 4px 8px; border-radius: 999px; background: var(--p7ah-soft); color: var(--p7ah-navy); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.p7ah-alert-card__button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 7px; background: var(--p7ah-navy); color: #fff !important; font-size: 12px; font-weight: 750; white-space: nowrap; }
.p7ah-alert-card__button:hover { background: var(--p7ah-red); }

.p7ah-services__footer-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
	padding: 13px 18px;
	border-radius: 8px;
	background: var(--p7ah-navy);
	color: #fff !important;
	font-size: 13px;
	font-weight: 750;
}
.p7ah-services__footer-link:hover { background: var(--p7ah-red); }

.p7ah-services__empty { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 24px; border: 1px dashed #cbd5e2; border-radius: 12px; background: var(--p7ah-soft); text-align: center; }
.p7ah-services__empty strong { color: var(--p7ah-navy); font-size: 16px; }
.p7ah-services__empty span { color: var(--p7ah-muted); font-size: 13px; }

@media (max-width: 900px) {
	.p7ah-services__filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.p7ah-services { padding: 20px 16px; border-radius: 14px; }
	.p7ah-services__header { display: block; margin-bottom: 17px; }
	.p7ah-services__header-link { display: none; }
	.p7ah-services__title { font-size: 26px; }
	.p7ah-services__filters {
		display: flex;
		overflow-x: auto;
		gap: 9px;
		padding: 2px 1px 10px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}
	.p7ah-filter { flex: 0 0 104px; min-height: 74px; scroll-snap-align: start; }
	.p7ah-alert-card { padding: 14px 14px 15px; }
	.p7ah-alert-card__body { grid-template-columns: 1fr; gap: 13px; }
	.p7ah-alert-card__content h3 { font-size: 16px; }
	.p7ah-alert-card__button { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.p7ah-filter, .p7ah-services__list { transition: none; }
}
