/* Шаблон cnaphp — ЦНАП Горішньоплавнівської громади. GPL-2.0-or-later */

:root {
	--c-primary: #0F3B82;
	--c-accent: #FFD43B;
	--c-dark: #0B2547;
	--c-text: #1C2433;
	--c-muted: #4A5568;
	--c-line: #DDE3EC;
	--c-line-soft: #EDF1F6;
	--c-bg: #F4F6FA;
	--c-tint: #E6EDF8;
	--c-link: #0F3B82;
	--radius: 14px;
	--font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
}

img, svg, video { max-width: 100%; height: auto; }
svg { height: auto; }

a { color: var(--c-link); text-underline-offset: 2px; }
a:hover { color: var(--c-dark); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.visually-hidden, .element-invisible {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-accent); color: #1A1A1A; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Кнопки */
.btn, .button, button.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 0;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	background: var(--c-primary); color: #FFFFFF;
}
.btn:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn.btn--accent { background: var(--c-accent); color: #1A1A1A; }
.btn.btn--accent:hover { color: #1A1A1A; }
.btn.btn--primary { background: var(--c-primary); color: #FFFFFF; }
.btn--block { display: flex; width: 100%; }

/* Верхня смуга */
.topbar { background: var(--c-dark); color: #FFFFFF; font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.a11y-toggle { font: inherit; font-size: 14px; color: var(--c-dark); background: #FFFFFF; border: 0; border-radius: 6px; padding: 6px 12px; min-height: 32px; cursor: pointer; }

/* Шапка */
.header { background: #FFFFFF; border-bottom: 1px solid var(--c-line); position: relative; z-index: 20; }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); }
.brand:hover { color: var(--c-text); }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--c-primary); color: #FFFFFF; font-weight: 700; letter-spacing: .5px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__title { font-weight: 700; font-size: 19px; }
.brand__sub { font-size: 15px; color: var(--c-muted); }

.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--c-text); background: var(--c-tint); border: 0; border-radius: 10px; cursor: pointer; }

.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mainnav__queue { margin-left: 8px; }
.nav-menu, .nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-menu > .nav-item > a, .nav-menu > .nav-item > .nav-heading {
	display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--c-text); font-weight: 500;
}
.nav-menu > .nav-item > a:hover { background: var(--c-bg); }
.nav-menu > .nav-item.active > a, .nav-menu > .nav-item.current > a { color: var(--c-primary); background: var(--c-tint); font-weight: 600; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 40px; margin-left: -6px; padding: 0; border: 0; background: none; color: var(--c-text); cursor: pointer; border-radius: 8px; }
.sub-toggle svg { transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub {
	display: none; position: absolute; top: 100%; left: 0; min-width: 320px; max-width: 420px;
	padding: 8px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px;
	box-shadow: 0 12px 32px rgba(11, 37, 71, .14);
}
.nav-item.is-open > .nav-sub { display: block; }
@media (hover: hover) and (min-width: 1101px) {
	.nav-item.has-children:hover > .nav-sub { display: block; }
}
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--c-text); line-height: 1.35; }
.nav-sub a:hover, .nav-sub .current > a { background: var(--c-tint); color: var(--c-primary); }

/* Перший екран */
.hero { background: var(--c-primary); color: #FFFFFF; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.hero__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero__title { margin: 0; font-size: 46px; line-height: 1.12; max-width: 680px; }
.hero__text { margin: 0; font-size: 19px; color: #DCE6F7; max-width: 600px; }
.hero__search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; margin-top: 8px; }
.hero__search input[type="search"] { flex: 1 1 320px; min-width: 0; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 10px; font: inherit; color: var(--c-text); }
.hero__search .btn { min-height: 52px; padding: 14px 24px; }
.hero__card { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 16px; background: #FFFFFF; color: var(--c-text); }
.hero__card h2 { margin: 0; font-size: 24px; }
.hero__card .btn { margin-top: auto; }
.hero__card-foot { margin: 0; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 15px; color: var(--c-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; }
.steps span { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--c-tint); color: var(--c-primary); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Основна частина */
.main { padding: 32px 0 64px; }
.is-home .main { padding-top: 24px; }

.home-section { padding-top: 40px; }
.home-section__title { font-size: 32px; margin: 0 0 24px; }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding: 28px 32px; background: var(--c-tint); border-radius: var(--radius); }
.band__text { flex: 1 1 420px; min-width: 0; }
.band h2 { margin: 0 0 4px; font-size: 24px; }
.band p { margin: 0; color: #2D3748; }

/* Сітка сфер */
.spheres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.spheres__item { display: flex; align-items: center; gap: 16px; height: 100%; min-height: 88px; padding: 20px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-text); }
.spheres__item:hover { border-color: var(--c-primary); color: var(--c-text); box-shadow: 0 6px 18px rgba(11, 37, 71, .08); }
.spheres__icon { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--c-tint); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; }
.spheres__icon svg, .spheres__icon img { width: 28px; height: 28px; }
.spheres__label { font-weight: 600; line-height: 1.3; }
.spheres__item--all { background: var(--c-tint); border-color: var(--c-tint); }
.spheres__item--all .spheres__icon { background: #FFFFFF; }

/* Контакти */
.contacts { display: flex; flex-wrap: wrap; gap: 16px; }
.contacts__card { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); }
.contacts__card .label { display: block; font-size: 14px; color: var(--c-muted); }
.contacts__card a { color: var(--c-text); }
.contacts__list { margin: 4px 0 0; padding-left: 20px; }
.contacts__map { flex: 999 1 560px; min-width: 0; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); background: #E3E9F1; }
.contacts__map iframe, .contacts__map > div, .contacts__map .leaflet-container { width: 100%; min-height: 420px; border: 0; display: block; }

/* Модулі на головній: статті, галерея, посилання */
.home-section__body ul.mod-articles-items,
.home-section__body ul.mod-articlesnews,
.home-section__body .newsflash,
.home-section__body ul.mod-list {
	list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.home-section__body .mod-articles-items > li,
.home-section__body .mod-articlesnews > li,
.home-section__body .newsflash > *,
.home-section__body .mod-list > li {
	padding: 24px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius);
}
.home-section__body .mod-list > li a { font-weight: 600; text-decoration: none; }
.home-section__body img { border-radius: 10px; }

/* Сторінки з бічною колонкою */
.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.layout__left { flex: 1 1 260px; min-width: 0; }
.layout__right { flex: 1 1 300px; min-width: 0; }
.layout__content { flex: 999 1 600px; min-width: 0; }
.layout--left .layout__left { order: 0; }

.side-card { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 16px; padding: 12px; margin-bottom: 16px; }
.side-card__title { font-size: 14px; font-weight: 600; color: var(--c-muted); margin: 0; padding: 8px 12px; }
.side-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--c-text); font-size: 16px; line-height: 1.35; }
.side-menu a:hover { background: var(--c-bg); }
.side-menu a.current { background: var(--c-tint); color: var(--c-primary); font-weight: 600; }

/* Хлібні крихти */
.mod-breadcrumbs, ol.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; font-size: 15px; color: var(--c-muted); }
.mod-breadcrumbs li + li::before, ol.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #8A97AB; }
.mod-breadcrumbs .float-start, .mod-breadcrumbs__here { display: none; }

/* Вміст статей */
.layout__content > .item-page,
.layout__content > .com-content-article,
.layout__content > .com-content-category,
.layout__content > .com-content-category-blog,
.layout__content > .blog,
.layout__content > .category-list,
.layout__content > .com-contact,
.layout__content > .contact {
	background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 16px; padding: 40px;
}
.page-header h1, .page-header h2, .com-content-article h1 { font-size: 2.1rem; margin-bottom: 20px; }
.article-info, .com-content-article__info { font-size: 14px; color: var(--c-muted); }
.com-content-article__body ul, .com-content-article__body ol { padding-left: 24px; }
.com-content-article__body li { margin-bottom: 6px; }
.com-content-article__body img { border-radius: 10px; }
.com-content-article__body iframe { max-width: 100%; }

/* Посилання на файли */
a[href$=".pdf" i], a[href$=".doc" i], a[href$=".docx" i], a[href$=".xls" i], a[href$=".xlsx" i], a[href$=".odt" i], a[href$=".rtf" i] {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
	border: 1px solid var(--c-line); border-radius: 10px; background: #FFFFFF; font-weight: 600; text-decoration: none;
}
a[href$=".pdf" i]::before, a[href$=".doc" i]::before, a[href$=".docx" i]::before, a[href$=".xls" i]::before, a[href$=".xlsx" i]::before, a[href$=".odt" i]::before, a[href$=".rtf" i]::before {
	content: ""; width: 18px; height: 18px; flex: 0 0 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zM14 3v5h5M12 11v6M9 14l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zM14 3v5h5M12 11v6M9 14l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
a[href$=".pdf" i]:hover, a[href$=".doc" i]:hover, a[href$=".docx" i]:hover { border-color: var(--c-primary); }

/* Таблиці */
.table-scroll { width: 100%; overflow-x: auto; margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line-soft); }
th { font-weight: 600; }

/* Таблиця послуг (розпізнається скриптом) */
.svc-search { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 0 24px; }
.svc-search__box { position: relative; }
.svc-search__box svg { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; color: var(--c-muted); pointer-events: none; }
.svc-search input { width: 100%; min-height: 52px; padding: 14px 16px 14px 48px; font: inherit; color: var(--c-text); background: #FFFFFF; border: 1px solid #B8C3D3; border-radius: 10px; }
.svc-search input:focus { border-color: var(--c-primary); }
.svc-search__count { font-size: 15px; color: var(--c-muted); }
.svc-empty { padding: 24px; color: var(--c-muted); background: var(--c-bg); border-radius: 12px; margin-bottom: 16px; }

table.cnap-services { border: 1px solid var(--c-line); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #FFFFFF; }
table.cnap-services td, table.cnap-services th { border-bottom: 1px solid var(--c-line-soft); padding: 14px 20px; }
table.cnap-services tr.svc-head td, table.cnap-services tr.svc-head th { font-size: 14px; color: var(--c-muted); background: #F8FAFC; }
table.cnap-services tr.svc-group td, table.cnap-services tr.svc-group th { background: #F8FAFC; font-weight: 700; font-size: 18px; text-align: left !important; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--c-line); }
table.cnap-services tr.svc-row td:first-child { width: 96px; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
table.cnap-services tr.svc-row a { font-weight: 500; text-decoration: none; }
table.cnap-services tr.svc-row:hover td { background: #FAFBFD; }
table.cnap-services tr.svc-row a:hover { text-decoration: underline; }
table.cnap-services tr[hidden] { display: none; }

/* Системні повідомлення, пагінація, форми */
#system-message-container joomla-alert, .alert { display: block; padding: 16px 20px; margin-bottom: 20px; border-radius: 12px; background: var(--c-tint); border: 1px solid var(--c-line); }
.pagination { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 0; }
.pagination .page-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 10px; background: #FFFFFF; text-decoration: none; }
.pagination .active .page-link { background: var(--c-primary); border-color: var(--c-primary); color: #FFFFFF; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
	font: inherit; min-height: 44px; padding: 10px 12px; border: 1px solid #B8C3D3; border-radius: 10px; background: #FFFFFF; color: var(--c-text); max-width: 100%;
}
.float-end { float: right; } .float-start { float: left; }

/* Підвал */
.footer { background: var(--c-dark); color: #DCE6F7; font-size: 15px; }
.footer a { color: #DCE6F7; }
.footer a:hover { color: #FFFFFF; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__name { color: #FFFFFF; font-size: 17px; }
.footer__title { color: #FFFFFF; }
.footer__bottom { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid #23406B; font-size: 14px; }

/* Сторінка помилки */
.error-box { max-width: 640px; padding-top: 64px; padding-bottom: 64px; text-align: center; }
.error-box__code { font-size: 72px; font-weight: 700; color: var(--c-primary); margin: 0; }

/* Друк */
@media print {
	.topbar, .header, .footer, .layout__left, .layout__right, .svc-search, .hero__search { display: none !important; }
	body { background: #FFFFFF; }
}

/* Планшет і телефон */
@media (max-width: 1100px) {
	.nav-toggle { display: inline-flex; }
	.mainnav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; border-top: 1px solid var(--c-line); }
	.mainnav.is-open { display: flex; }
	.nav-menu { flex-direction: column; align-items: stretch; }
	.nav-item { flex-wrap: wrap; }
	.nav-menu > .nav-item > a, .nav-menu > .nav-item > .nav-heading { flex: 1 1 auto; padding: 12px; }
	.sub-toggle { width: 48px; height: 48px; margin: 0; }
	.nav-sub { position: static; flex-basis: 100%; min-width: 0; max-width: none; box-shadow: none; border: 0; border-left: 3px solid var(--c-tint); border-radius: 0; margin: 0 0 8px 12px; padding: 0 0 0 8px; }
	.mainnav__queue { margin-left: 0; }
}
@media (max-width: 700px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.brand__title { font-size: 16px; }
	.brand__sub { font-size: 14px; }
	.brand__mark { height: 44px; padding: 0 12px; font-size: 15px; }
	.hero__inner { padding-top: 36px; padding-bottom: 40px; gap: 24px; }
	.hero__title { font-size: 30px; }
	.hero__text { font-size: 17px; }
	.home-section__title { font-size: 26px; }
	.layout__content > .item-page, .layout__content > .com-content-article, .layout__content > .com-content-category,
	.layout__content > .com-content-category-blog, .layout__content > .blog, .layout__content > .category-list { padding: 20px; }
	h1, .page-header h1, .page-header h2 { font-size: 1.6rem; }
	.layout__left { order: -1; }
	table.cnap-services, table.cnap-services tbody, table.cnap-services tr, table.cnap-services td, table.cnap-services th { display: block; width: 100%; }
	table.cnap-services tr.svc-head { display: none; }
	table.cnap-services tr.svc-row { padding: 12px 16px; border-bottom: 1px solid var(--c-line-soft); }
	table.cnap-services tr.svc-row td { padding: 0; border: 0; }
	table.cnap-services tr.svc-row td:first-child { width: auto; font-size: 14px; }
	table.cnap-services tr.svc-group td, table.cnap-services tr.svc-group th { font-size: 16px; padding: 16px; }
}

/* Режим для людей з порушенням зору */
html.a11y-on body { font-size: 21px; }
html.a11y-on { --c-text: #000000; --c-muted: #1A1A1A; --c-line: #000000; --c-line-soft: #555555; --c-bg: #FFFFFF; --c-tint: #FFF3B0; --c-link: #00267A; }
html.a11y-on a { text-decoration: underline; }
html.a11y-on img { filter: grayscale(1); }
html.a11y-on .hero, html.a11y-on .topbar, html.a11y-on .footer { background: #000000; }
html.a11y-on .brand__mark, html.a11y-on .btn--primary { background: #000000; }

/* ===== 1.1.0: послуги ===== */
.posluha { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.posluha__main { flex: 999 1 600px; min-width: 0; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 16px; padding: 40px; }
.posluha__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.posluha__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-block; font-size: 14px; font-weight: 600; color: var(--c-primary); background: var(--c-tint); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.chip--plain { color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-line); }
.posluha__title { font-size: 2rem; line-height: 1.22; margin: 0 0 12px; }
.posluha__provider { color: var(--c-muted); margin: 0 0 28px; }
.posluha__body h2 { font-size: 1.3rem; margin-top: 1.4em; }
.posluha__cta { background: var(--c-primary); color: #FFFFFF; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.posluha__cta h2 { margin: 0; font-size: 22px; }
.posluha__cta p { margin: 0; color: #DCE6F7; }
.posluha__others ul { list-style: none; margin: 0; padding: 0 12px; }
.posluha__others li { padding: 8px 0; border-bottom: 1px solid var(--c-line-soft); font-size: 15px; line-height: 1.4; }
.posluha__others li a { text-decoration: none; }
.posluha__all { display: block; padding: 10px 12px 4px; font-weight: 600; text-decoration: none; }
.posluha__help p { margin: 0; padding: 0 12px 8px; font-size: 15px; }

/* Документи послуги (розмітку створює скрипт завантаження) */
.svc-docs { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 24px; }
.svc-docs a.svc-doc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-height: 0; border: 1px solid var(--c-line); border-radius: 14px; background: #FFFFFF; color: var(--c-text); text-decoration: none; font-weight: 600; }
.svc-docs a.svc-doc::before { width: 26px; height: 26px; flex: 0 0 26px; color: var(--c-primary); }
.svc-docs a.svc-doc:hover { border-color: var(--c-primary); }
.svc-doc__title { flex: 1 1 auto; }
.svc-doc__meta { font-size: 13px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; }
.svc-docs a.svc-doc--card { background: var(--c-tint); border-color: var(--c-tint); }
.svc-blanks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-blanks a { width: 100%; justify-content: flex-start; }
.svc-note { font-size: 15px; color: var(--c-muted); }

/* Списки послуг і надавачів */
.posluhy-list .page-title, .nadavachi-list .page-title { margin-bottom: 20px; }
table.cnap-services thead th { text-align: left; }
table.cnap-services tr.svc-group th { font-weight: 700; }
.providers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.providers li { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); }
.providers a { font-weight: 600; text-decoration: none; flex: 1 1 420px; }
.providers__count { color: var(--c-muted); font-size: 15px; white-space: nowrap; }

@media (max-width: 700px) {
	.posluha__main { padding: 20px; }
	.posluha__title { font-size: 1.5rem; }
	table.cnap-services thead { display: none; }
}
html .a11y-toggle[aria-pressed="true"] { background: var(--c-accent); color: #000000; font-weight: 700; }
.cnap-map { height: 100%; min-height: 420px; z-index: 0; }
.cnap-pin { background: var(--c-primary); border: 3px solid #FFFFFF; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.45); }
.cnap-pin--main { background: var(--c-accent); border-color: var(--c-primary); }
.cnap-popup { font: inherit; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; }
.cnap-popup strong { font-size: 15px; }
.cnap-popup a { margin-top: 6px; font-weight: 600; }
