/**
 * elochki_modern visual contract.
 * Tokens and class names are portable to a future Laravel/custom shell.
 * Module positions remain Joomla's search, menu, breadcrumbs, innertop,
 * top-b, sidebar-a/b, footer, and debug. Schedule article 18 is scoped below:
 * stored data URI images are not edited, cropped, or recompressed.
 */

:root {
	--bg: #f3f6f3;
	--surface: #ffffff;
	--surface-soft: #e8efea;
	--ink: #18231d;
	--ink-muted: #56645b;
	--line: #d8e2da;
	--accent: #2e6548;
	--accent-deep: #1e4a34;
	--accent-wash: #e3efe7;
	--focus: #1e4a34;
	--shadow: 0 10px 28px rgba(22, 43, 31, 0.08);
	--font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-display: Georgia, "Times New Roman", serif;
	--body-size: 17px;
	--container: 1120px;
	--gutter: clamp(0.75rem, 2vw, 1.5rem);
	--radius: 8px;
	--radius-lg: 14px;
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2.25rem;
	--space-5: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	padding-block: 7px;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--body-size);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.7rem 1rem;
	background: var(--surface);
	color: var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }
.page-shell { min-height: calc(100vh - 14px); display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Header: a single card matching the width of every other block on the site. */
.site-header { position: relative; z-index: 300; overflow: visible; background: transparent; padding-block: 0; }
.site-header .container { padding-inline: 0; border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); box-shadow: var(--shadow); }
.site-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 150px;
	padding: 1rem clamp(1rem, 3vw, 2.75rem) 0.85rem;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	background-image: linear-gradient(90deg, var(--surface) 0%, var(--surface) 38%, rgba(255, 255, 255, 0.55) 68%, rgba(255, 255, 255, 0.15) 100%), url("/images/fon.png");
	background-repeat: no-repeat, no-repeat;
	background-position: left center, right center;
	background-size: 100% 100%, contain;
}
.site-hero__eyebrow { margin: 0 0 0.35rem; color: var(--accent); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.site-hero__title { max-width: 32ch; margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -0.025em; }
.site-hero__place { margin: 0.45rem 0 0; color: var(--ink-muted); font-size: 0.92rem; }

/* Navigation: one desktop line, search embedded at the end of the same bar. */
.site-nav { position: sticky; top: 0; z-index: 500; isolation: isolate; overflow: visible; }
.site-nav__inner { position: relative; overflow: visible; border: 1px solid var(--line); border-top: 0; border-bottom-width: 2px; border-radius: 0; background: #f4f6f3; box-shadow: var(--shadow); }
body.drawer-open { overflow: hidden; }
.site-nav__toggle { display: none; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; padding: 0.65rem var(--gutter); border: 0; background: #f4f6f3; color: var(--ink); font-weight: 750; text-align: left; }
.site-nav__toggle-icon { width: 1.15rem; height: 0.13rem; background: currentColor; box-shadow: 0 -0.35rem currentColor, 0 0.35rem currentColor; transition: transform 180ms ease; }
.site-nav.is-open .site-nav__toggle-icon { transform: rotate(90deg); }
.site-nav__panel { position: relative; z-index: 501; overflow: visible; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-inline: var(--gutter); }
.site-nav__panel[hidden] { display: none !important; }
.site-nav__close, .site-nav__backdrop { display: none; }
.site-nav__panel > .menu { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 0.15rem; min-height: 48px; margin: 0; padding: 0; list-style: none; }
.site-nav__search { position: relative; flex: 0 0 auto; }
.site-nav__search-toggle { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-muted); cursor: pointer; transition: border-color 150ms ease, color 150ms ease, background 150ms ease; }
.site-nav__search-toggle:hover, .site-nav__search-toggle:focus-visible,
.site-nav__search.is-open .site-nav__search-toggle { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-wash); }
.site-nav__search-icon { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.site-nav__search-box { position: absolute; z-index: 600; top: calc(100% + 0.5rem); right: 0; width: 250px; max-width: 80vw; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease; }
.site-nav__search.is-open .site-nav__search-box { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav__search-box form { display: flex; align-items: stretch; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: border-color 150ms ease, box-shadow 150ms ease; }
.site-nav__search-box form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.site-nav__search-box label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav__search-box input { order: 1; width: 100%; min-width: 0; padding: 0.32rem 0.85rem; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 0.82rem; }
.site-nav__search-box input:focus-visible { outline: none; }
.site-nav__search-box .btn { order: 2; flex: 0 0 auto; min-height: auto; padding: 0.32rem 0.9rem; border: 0; border-radius: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.78rem; white-space: nowrap; }
.site-nav__search-box .btn:hover, .site-nav__search-box .btn:focus-visible { background: var(--accent-deep); }
.site-nav li { position: relative; list-style: none; }
.site-nav__panel > .menu > li > a,
.site-nav__panel > .menu > li > .nav-submenu-toggle { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -2px; padding: 0.55rem 0.15rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-size: 0.9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav__panel > .menu > li:not(:last-child) > a,
.site-nav__panel > .menu > li:not(:last-child) > .nav-submenu-toggle { margin-right: 1.5rem; }
.site-nav__panel > .menu > li > a:hover,
.site-nav__panel > .menu > li > a:focus-visible,
.site-nav__panel > .menu > li > .nav-submenu-toggle:hover,
.site-nav__panel > .menu > li > .nav-submenu-toggle:focus-visible,
.site-nav__panel > .menu > li.active > a { border-bottom-color: var(--accent); color: var(--accent-deep); }
.site-nav .nav-submenu-toggle::after { content: ""; width: 0.45rem; height: 0.45rem; margin-left: 0.5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.site-nav li.has-submenu > .nav-submenu,
.site-nav li.has-submenu > .nav-dropdown { position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0; display: block; min-width: 15rem; margin: 0; padding: 0.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; }
.site-nav li.has-submenu:hover > .nav-submenu,
.site-nav li.has-submenu:hover > .nav-dropdown,
.site-nav li.has-submenu:focus-within > .nav-submenu,
.site-nav li.has-submenu:focus-within > .nav-dropdown,
.site-nav li.has-submenu.is-open > .nav-submenu,
.site-nav li.has-submenu.is-open > .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.site-nav .nav-submenu a { display: flex; align-items: center; min-height: 44px; padding: 0.6rem 0.7rem; border-radius: 6px; color: var(--ink); font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.site-nav .nav-submenu a:hover, .site-nav .nav-submenu a:focus-visible { background: var(--accent-wash); color: var(--accent-deep); }
.site-nav .nav-submenu[hidden] { display: none; }

/* Main content is editorial rather than a slab of cards. */
.site-main { flex: 1 1 auto; padding-block: 0; }
.site-breadcrumbs { margin: 0 0 1.15rem; color: var(--ink-muted); font-size: 0.82rem; }
.site-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; margin: 0; padding: 0; list-style: none; }
.module-region { margin-bottom: var(--space-3); }
/* The banners module publishes with no banners assigned, so Joomla still
   renders an empty .bannergroup wrapper — hide the whole region rather than
   leave a blank gap under the nav. */
.module-region--banners:not(:has(.banneritem)) { display: none; }
.module-region:empty { display: none; }
.layout { min-width: 0; }
/* The header/nav borders sit on the .container box itself (full 1120px), while
   .layout__content is a padded child of .container — bleed it out by the
   container's own gutter so its border lines up with the header and nav above it. */
.layout:not(.layout--with-sidebar) > .layout__content { margin-inline: calc(var(--gutter) * -1); }
.layout--with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.layout__content { min-width: 0; padding: clamp(1.25rem, 4vw, 2.5rem); padding-top: clamp(0.5rem, 1.6vw, 1rem); border: 1px solid var(--line); border-top: 0; border-radius: 0; background: var(--surface); box-shadow: var(--shadow); }
.layout__sidebar { min-width: 0; color: var(--ink-muted); font-size: 0.92rem; }
.module { margin-bottom: var(--space-3); }
.module h3, .module-title { margin: 0 0 0.55rem; color: var(--accent-deep); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }

.layout__content h1, .layout__content h2, .layout__content h3, .layout__content h4 { color: var(--ink); font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
.layout__content h1 a, .layout__content h2 a, .layout__content h3 a, .layout__content h4 a { color: inherit; text-decoration: none; }
.layout__content h1 { max-width: none; margin: 0 0 0.55rem; font-size: clamp(1.4rem, 3vw, 2.15rem); }
.layout__content h2 { margin: 0 0 0.55rem; font-size: clamp(1.4rem, 3vw, 2.15rem); }
.layout__content h3 { font-size: 1.35rem; }
.layout__content li { max-width: 70ch; }
.layout__content p { margin-block: 0 1.1rem; }
.layout__content a { overflow-wrap: anywhere; }
.layout__content .page-header { margin-bottom: 0.6rem; }
.layout__content .page-header h1, .layout__content .page-header h2 { margin-bottom: 0; }
.layout__content .page-header .page-title { margin-bottom: 1.6rem; }
.article-info { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0 0 1rem; color: var(--ink-muted); font-size: 0.82rem; }
.article-info dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.article-info dd { margin: 0; }
.article-info dd.published { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--accent-wash); color: var(--accent-deep); font-weight: 700; font-size: 0.7rem; }
.article-info dd.category-name { display: none; }

/* Home feed: one hero lead card, then a 2-up (1-up mobile) grid of photo cards. */
.blog .items-leading, .blog .items-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.blog .leading-0 { min-width: 0; width: 100%; padding-block: 1.45rem; border-top: 1px solid var(--line); }
.blog .leading-0:first-child { padding-top: 0; border-top: 0; }
.blog .leading-0 + .leading-0 { border-top: 1px solid var(--line); }
.items-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: var(--space-2); }
.items-archive .archive-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
.items-archive .archive-row:last-child:nth-child(odd) .archive-card__media { aspect-ratio: 21 / 6; }
.blog .archive-row { min-width: 0; width: 100%; }
.blog .lead-story { display: grid; grid-template-columns: minmax(280px, 42%) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.blog .lead-story--no-media { grid-template-columns: minmax(0, 1fr); }
.lead-story__media { align-self: start; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-soft); }
.blog .lead-story .lead-story__media img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; }
.lead-story__copy { min-width: 0; display: flex; flex-direction: column; }
.blog .lead-story .readmore { margin-top: auto; align-self: stretch; }
.blog .lead-story .readmore a { display: flex; width: 100%; justify-content: center; }
.lead-story__copy .page-header h1 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.lead-story__copy .article-info dd.published { background: var(--surface); }
.lead-story__copy .lead-story__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; max-width: 65ch; }
.lead-story__excerpt, .lead-story__excerpt * { font-size: 1rem !important; line-height: 1.6 !important; }
.lead-story__excerpt img, .lead-story__excerpt a:has(img) { display: none !important; }
.blog .archive-row:empty { display: none; }
.blog .archive-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease; }
.blog .archive-row:hover .archive-card, .blog .archive-row:focus-within .archive-card { box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-2px); }
.archive-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-soft); }
.archive-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.archive-card__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 1rem 1.1rem 1.15rem; }
.blog .archive-card .page-header { margin: 0 0 0.4rem; }
.blog .archive-card .page-header h1 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.blog .archive-card .article-info { margin: 0 0 0.5rem; }
.archive-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 0.7rem; color: var(--ink-muted); font-size: 0.9rem; }
.archive-card__excerpt, .archive-card__excerpt * { font-size: 0.9rem !important; line-height: 1.5 !important; }
.archive-card__excerpt img, .archive-card__excerpt a:has(img) { display: none !important; }
.blog .archive-card .readmore { margin: auto 0 0; }
.blog .archive-card .readmore a { display: flex; width: 100%; justify-content: center; }
.blog .readmore { margin: 1rem 0 0; }
/* Joomla's core bootstrap.js turns hasTooltip links (pagination Вперёд/В конец)
   into JS-positioned tooltips, but this template doesn't load Bootstrap's CSS,
   so the tooltip renders unpositioned, full-width, pinned to the page's left
   edge. The tooltip only ever repeats the link's own visible label, so hide it. */
.tooltip { display: none !important; }
.pagination { margin-top: var(--space-3); text-align: center; }
.pagination .counter { display: none; }
.pagination > ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.pagination > ul > li { margin: 0; padding: 0; list-style: none; }
.pagination .pagenav { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0.3rem 0.6rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-muted); font-size: 0.85rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; }
.pagination a.pagenav:hover, .pagination a.pagenav:focus-visible { background: var(--accent-wash); color: var(--accent-deep); }
.pagination li:not(.pagination-start):not(.pagination-prev):not(.pagination-next):not(.pagination-end) .pagenav { min-width: 34px; padding-inline: 0; }
.pagination li:not(.pagination-start):not(.pagination-prev):not(.pagination-next):not(.pagination-end) span.pagenav { background: var(--accent); color: #fff; }
.pagination-start .pagenav, .pagination-prev .pagenav, .pagination-next .pagenav, .pagination-end .pagenav { border-color: var(--line); background: var(--surface); color: var(--ink); padding-inline: 0.75rem; font-size: 0.8rem; }
.pagination-start span.pagenav, .pagination-prev span.pagenav, .pagination-next span.pagenav, .pagination-end span.pagenav { opacity: 0.4; }
@media (max-width: 767px) {
	.pagination-start, .pagination-end { display: none; }
	.pagination .pagenav { min-width: 32px; min-height: 32px; font-size: 0.82rem; }
	.pagination-prev .pagenav, .pagination-next .pagenav { padding-inline: 0.6rem; }
}
.readmore .btn, .blog .readmore a { display: inline-flex; align-items: center; min-height: 42px; max-width: 100%; padding: 0.55rem 0.85rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font-size: 0.88rem; font-weight: 750; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.readmore .btn:hover, .blog .readmore a:hover { background: var(--accent-deep); color: #fff; }
.item-page { min-width: 0; }

/* Single-article inline photos: float left at a fixed, sharp display size so
   text wraps beside them instead of stretching a small thumbnail edge to edge. */
.item-page [itemprop="articleBody"] img { float: left; width: 420px; max-width: 55%; height: auto; margin: 0.3rem 1.5rem 1rem 0; border-radius: var(--radius); }
.item-page [itemprop="articleBody"]::after { content: ""; display: block; clear: both; }
/* Old editor imports may carry tiny inline sizes; prose uses one scale in every article. */
.item-page [itemprop="articleBody"] p,
.item-page [itemprop="articleBody"] li,
.item-page [itemprop="articleBody"] blockquote { font-size: var(--body-size) !important; line-height: 1.62 !important; }
.item-page [itemprop="articleBody"] p [style*="font-size"],
.item-page [itemprop="articleBody"] li [style*="font-size"],
.item-page [itemprop="articleBody"] blockquote [style*="font-size"] { font-size: inherit !important; line-height: inherit !important; }

/* Schedule article 18 only: reset the legacy inline indent locally and center its heading. */
body.article-18 .item-page [itemprop="articleBody"],
body.itemid-104 .item-page [itemprop="articleBody"] { min-width: 0; padding-inline: 0; }
body.article-18 .item-page [itemprop="articleBody"] > p,
body.itemid-104 .item-page [itemprop="articleBody"] > p { padding-left: 0 !important; text-align: center !important; }
body.article-18 .item-page [itemprop="articleBody"] img,
body.itemid-104 .item-page [itemprop="articleBody"] img { display: block; float: none; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius); }
body.article-18 .layout__content .page-header h1,
body.itemid-104 .layout__content .page-header h1,
body.article-18 .layout__content .page-header h2,
body.itemid-104 .layout__content .page-header h2 { max-width: none; text-align: center; }

/* Schedule figures: keep the original PNGs byte-for-byte; only layout is added. */
.schedule-figure { max-width: 640px; margin: 1.35rem auto; text-align: center; }
.schedule-figure__scroll { display: flex; justify-content: center; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 767px) {
	.item-page [itemprop="articleBody"] img { float: none; width: auto; max-width: 100%; margin: 0 auto 1rem; }
	.schedule-figure { max-width: 100%; }
	body.article-18 .schedule-figure__scroll img,
	body.itemid-104 .schedule-figure__scroll img { min-width: 324px; width: 324px; }
	.schedule-figure__scroll { border-radius: var(--radius); background: linear-gradient(to right, var(--surface) 0%, var(--surface) calc(100% - 22px), var(--accent-wash) 100%) left/100% 100% no-repeat; }
}

/* Contacts cluster (articles 5/6/7): structured blocks built from the same, unaltered text. */
.contact-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-section { min-width: 0; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.contact-section__title { margin: 0 0 0.6rem; color: var(--accent-deep); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.contact-section__body p { margin: 0 0 0.6rem; }
.contact-section__body p:last-child { margin-bottom: 0; }
.contact-section__body a { overflow-wrap: anywhere; }
.contact-section__body p:has(> .contact-social) { display: inline-flex; gap: 0.5rem; margin: 0 0.55rem 0.55rem 0; }
.contact-social { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent-deep); font-weight: 700; text-decoration: none; transition: border-color 150ms ease, background 150ms ease; }
.contact-social:hover, .contact-social:focus-visible { border-color: var(--accent); background: var(--accent-wash); }
.contact-social__icon { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; color: var(--accent); }
.contact-map { position: relative; overflow: hidden; margin-top: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--surface); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Gallery and native Joomla media stay fluid. */
.joomgallery, .jg-gallery, .jg_gal_wrap, .jg-thumbnails { max-width: 100%; }
.joomgallery img, .jg-gallery img, .jg_gal_wrap img, .jg-thumbnails img { max-width: 100%; height: auto; }
.jg-thumbnails, .jg_gal_wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; }

/* JoomGallery category/album tiles read as cards, matching the rest of the site.
   JoomGallery lays these out with float + fixed percentage widths, which leaves
   no room for a real gutter; switching the row to a grid gives every tile an
   even gap and shrinks each tile to fit, without touching the float widths
   JoomGallery's own JS/CSS still reads elsewhere. */
.gallery .jg_row, .item-page .jg_row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin: 0; }
.gallery .jg_row .jg_element_gal, .gallery .jg_row .jg_element_cat,
.item-page .jg_row .jg_element_gal, .item-page .jg_row .jg_element_cat { float: none !important; width: auto !important; min-width: 0; margin: 0; }
.gallery .jg_element_gal, .gallery .jg_element_cat,
.item-page .jg_element_gal, .item-page .jg_element_cat { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease; }
.gallery .jg_element_gal:hover, .gallery .jg_element_cat:hover,
.item-page .jg_element_gal:hover, .item-page .jg_element_cat:hover { box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-2px); }
/* JoomGallery's own CSS sizes these tiles with a fixed 133px box and an
   absolutely-positioned photo layer sized to match the small native thumb
   exactly (so plain width:100% never had to crop anything). Taking over
   that box (fixed, taller height; photo layer back in normal flow at
   100%/100%) is what lets a bigger, uniform, object-fit:cover tile work
   without fighting their positioning. */
.gallery .jg_imgalign_gal, .item-page .jg_imgalign_gal,
.gallery .jg_imgalign_catimgs, .item-page .jg_imgalign_catimgs { position: relative; height: 185px; overflow: hidden; border-radius: 0; background: var(--surface-soft); }
.gallery .jg_photo_container, .item-page .jg_photo_container,
.gallery .jg_catelem_photo, .item-page .jg_catelem_photo,
.gallery .jg_catelem_photo_align, .item-page .jg_catelem_photo_align { position: static !important; bottom: auto !important; display: block; width: 100%; height: 100%; text-align: left !important; }
.gallery .jg_photo_container img, .gallery .jg_row .jg_photo,
.item-page .jg_photo_container img, .item-page .jg_row .jg_photo,
.gallery .jg_catelem_photo img, .item-page .jg_catelem_photo img { display: block !important; float: none !important; width: 100% !important; max-width: none !important; height: 100% !important; object-fit: cover; border: 0 !important; padding: 0 !important; margin: 0 !important; transition: transform 200ms ease; }
.gallery .jg_element_gal:hover .jg_photo_container img,
.item-page .jg_element_gal:hover .jg_photo_container img { transform: scale(1.04); }
.gallery .jg_element_txt, .item-page .jg_element_txt { margin: 0.55rem 0.65rem 0.7rem; text-align: center; font-size: 0.92rem; }
.gallery .jg_element_txt ul, .item-page .jg_element_txt ul { margin: 0; padding: 0; list-style: none; }
.gallery .jg_element_txt a, .item-page .jg_element_txt a { text-decoration: none; color: var(--ink); }
.gallery .jg_element_txt a:hover, .item-page .jg_element_txt a:hover { color: var(--accent-deep); }
.gallery .jg_element_txt b, .item-page .jg_element_txt b { font-weight: 700; }
/* JoomGallery: hide the RSS icon and the untranslated technical count labels. */
.jg_feed_icon, .jg_catcountsubcats, .jg_catcountimages, .jg_catcountcats { display: none; }
.gallery .jg-header, .item-page .jg-header { margin: 0 0 1.1rem; text-align: left; }
.jg-header__title { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
.jg-header__date { margin-top: 0.3rem; color: var(--ink-muted); font-size: 0.92rem; }
.jg-header__back { display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.5rem; color: var(--accent); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.jg-header__back:hover { color: var(--accent-deep); text-decoration: underline; }

/* Subcategory cards (e.g. event albums inside a year folder): cover photo
   with a view-count badge in the corner, a title and a formatted date. */
.subcat-card__link { display: block; color: inherit; text-decoration: none; }
.subcat-card__views { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.55rem; border-radius: 999px; background: rgba(20, 26, 20, 0.6); backdrop-filter: blur(2px); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1; }
.subcat-card__views svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.subcat-card__lock { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: rgba(20, 26, 20, 0.6); }
.subcat-card__title { font-weight: 700; color: var(--ink); }
.subcat-card__date { margin-top: 0.2rem; color: var(--ink-muted); font-size: 0.8rem; }

.bannergroup, .banneritem { margin-bottom: var(--space-2); }
.module-region--innertop { overflow: hidden; }
.module-region--innertop .flexslider img { display: block; width: 100%; height: auto; }

.site-footer { margin-top: auto; color: var(--ink-muted); font-size: 0.86rem; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 2rem; row-gap: 0; align-items: center; padding-top: 1.75rem; padding-bottom: 0.5rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.site-footer__eyebrow, .site-footer__name, .site-footer__place, .site-footer__note, .site-footer__credit { margin: 0; }
.site-footer__eyebrow { margin-bottom: 0.3rem; color: var(--accent); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__name { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.site-footer__place { margin-top: 0.15rem; }
.site-footer__modules { min-width: 0; padding-left: 2rem; border-left: 1px solid var(--line); }
.site-footer__note { grid-column: 1 / -1; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); line-height: 1.4; text-align: center; }
.site-footer__credit { grid-column: 1 / -1; margin-top: 0.5rem !important; color: var(--ink-muted); font-size: 0.78rem; line-height: 1.4; text-align: center; }
.footer-contact p { margin: 0 0 0.4rem; }
.footer-contact p:last-child { margin-bottom: 0; }
.footer-contact a { color: var(--accent-deep); font-weight: 700; }
.footer-contact__note { font-weight: 400; color: var(--ink-muted); }
.footer-contact__social { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 767px) {
	body { padding-block: 0; }
	.page-shell { min-height: 100vh; }
	.site-header .container { border-radius: 0; }
	.site-hero__copy { min-height: 118px; padding: 1rem var(--gutter); border-radius: 0; background-image: linear-gradient(90deg, var(--surface) 0%, var(--surface) 55%, rgba(255, 255, 255, 0.5) 85%, rgba(255, 255, 255, 0.15) 100%), url("/images/fon.png"); background-size: 100% 100%, cover; background-position: left center, right center; }
	.site-footer__inner { border-radius: 0; }
	.site-nav__toggle { display: flex; }
	.site-nav__panel { position: fixed; z-index: 120; inset: 0 0 0 auto; display: block; width: min(88vw, 360px); max-width: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0 1rem; background: var(--surface); box-shadow: -14px 0 34px rgba(22, 43, 31, 0.18); transform: translateX(100%); transition: transform 180ms ease; }
	.site-nav__panel.is-open { transform: translateX(0); }
	.site-nav__close { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0.6rem var(--gutter); border: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
	.site-nav__close-label { color: var(--ink); font-size: 1rem; font-weight: 750; }
	.site-nav__close-icon { position: relative; width: 34px; height: 34px; border-radius: 999px; background: var(--accent-wash); }
	.site-nav__close-icon::before, .site-nav__close-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--accent-deep); }
	.site-nav__close-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
	.site-nav__close-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }
	.site-nav__close:hover .site-nav__close-icon, .site-nav__close:focus-visible .site-nav__close-icon { background: var(--accent); }
	.site-nav__close:hover .site-nav__close-icon::before, .site-nav__close:hover .site-nav__close-icon::after,
	.site-nav__close:focus-visible .site-nav__close-icon::before, .site-nav__close:focus-visible .site-nav__close-icon::after { background: #fff; }
	.site-nav__backdrop { position: fixed; z-index: 110; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(24, 35, 29, 0.42); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
	.site-nav.is-open .site-nav__backdrop { opacity: 1; pointer-events: auto; }
	.site-nav__backdrop[hidden] { display: none; }
	.site-nav__panel > .menu { display: block; min-height: 0; padding-block: 0.35rem; }
	.site-nav__panel > .menu > li:not(:first-child) { border-top: 1px solid var(--line); }
	.site-nav__panel > .menu > li > a, .site-nav__panel > .menu > li > .nav-submenu-toggle { display: flex; justify-content: space-between; width: 100%; min-height: 48px; margin-bottom: 0; border-radius: 0; padding-inline: var(--gutter); margin-right: 0; }
	.site-nav__panel > .menu > li > a:hover,
	.site-nav__panel > .menu > li > a:focus-visible,
	.site-nav__panel > .menu > li > .nav-submenu-toggle:hover,
	.site-nav__panel > .menu > li > .nav-submenu-toggle:focus-visible,
	.site-nav__panel > .menu > li.active > a { background: var(--accent-wash); border-bottom-color: transparent; }
	.site-nav li.has-submenu > .nav-submenu { position: static; min-width: 0; padding: 0 0 0.35rem 0.85rem; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.site-nav li.has-submenu > .nav-dropdown { position: static; min-width: 0; padding: 0 0 0.35rem 0.85rem; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.site-nav li.has-submenu > .nav-submenu[hidden] { display: none; }
	.site-nav .nav-submenu a { min-height: 44px; padding-inline: var(--gutter); }
	.site-nav__search { width: 100%; padding: 0.6rem var(--gutter) 0; margin-top: 0.35rem; border-top: 1px solid var(--line); }
	.site-nav__search-toggle { display: none; }
	.site-nav__search-box { position: static; width: 100%; max-width: none; opacity: 1; visibility: visible; transform: none; }
	.item-page .jg_row, .gallery .jg_row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 0; }
	.item-page .jg_row .jg_element_cat, .gallery .jg_row .jg_element_cat,
	.item-page .jg_row .jg_element_gal, .gallery .jg_row .jg_element_gal { float: none !important; width: auto !important; min-width: 0; margin: 0; }
	.item-page .jg_row .jg_imgalign_catimgs, .item-page .jg_row .jg_catelem_photo,
	.gallery .jg_row .jg_imgalign_catimgs, .gallery .jg_row .jg_catelem_photo { display: block; width: 100% !important; }
	.item-page .jg_row .jg_photo, .gallery .jg_row .jg_photo { display: block; width: 100% !important; max-width: none; height: auto; margin: 0; }
	.blog .lead-story { display: block; padding: 0.8rem; }
	.lead-story__media { margin-bottom: 1rem; }
	.lead-story__copy .page-header h1 { font-size: clamp(1.3rem, 6vw, 1.85rem); }
	.items-archive { grid-template-columns: 1fr; }
	.layout--with-sidebar { display: block; }
	.layout__sidebar { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
	.readmore .btn, .blog .readmore a { width: auto; }
	.site-footer__inner { display: block; }
	.site-footer__modules { margin-top: 1.2rem; padding-left: 0; border-left: 0; }
	.footer-contact__social { justify-content: center; }
	.site-footer__note { margin-top: 1.2rem; }
}

@media (max-width: 340px) {
	.item-page .jg_row, .gallery .jg_row { gap: 0.55rem; margin-inline: -0.25rem; }
}

@media (min-width: 768px) and (max-width: 1100px) {
	.site-nav__panel > .menu > li > a, .site-nav__panel > .menu > li > .nav-submenu-toggle { padding-inline: 0.4rem; font-size: 0.83rem; }
	.site-nav__panel > .menu > li:not(:last-child) > a,
	.site-nav__panel > .menu > li:not(:last-child) > .nav-submenu-toggle { margin-right: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
	.site-nav, .module-region, .skip-link { display: none !important; }
	body { background: #fff; color: #000; }
	.item-page { overflow: visible; }
}

/* Portable gallery viewer. Existing JoomGallery links remain the data source. */
.gallery-viewer[hidden] { display: none; }
.gallery-viewer { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; color: #fff; }
.gallery-viewer:focus { outline: 0; }
.gallery-viewer__backdrop { position: absolute; inset: 0; background: rgba(8, 13, 11, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gallery-viewer__stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 24px 84px; }
/* The figure box follows the image only, so the caption cannot shift its visual centre. */
.gallery-viewer__figure { position: relative; display: block; width: fit-content; height: fit-content; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; }
.gallery-viewer__media { position: relative; display: block; width: fit-content; height: fit-content; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; }
.gallery-viewer__image { display: block; width: auto; height: auto; max-width: calc(100vw - 168px); max-height: calc(100vh - 126px); object-fit: contain; opacity: 0; }
.gallery-viewer__image.is-ready { opacity: 1; }
.gallery-viewer__loader { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px; border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff; border-radius: 50%; animation: gallery-viewer-spin 700ms linear infinite; }
.gallery-viewer:not(.is-loading) .gallery-viewer__loader { display: none; }
.gallery-viewer__button { position: absolute; z-index: 2; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid rgba(255,255,255,0.32); border-radius: 50%; background: rgba(255,255,255,0.14); box-shadow: 0 8px 28px rgba(0,0,0,0.24); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); color: #fff; cursor: pointer; transition: background-color 140ms ease, transform 140ms ease, opacity 140ms ease; }
.gallery-viewer__button:hover { background: rgba(255,255,255,0.26); transform: scale(1.06); }
.gallery-viewer__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gallery-viewer__button:disabled { opacity: 0.2; cursor: default; transform: none; }
.gallery-viewer__button--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gallery-viewer__button--prev:hover { transform: translateY(-50%) scale(1.06); }
.gallery-viewer__button--next { right: 20px; top: 50%; transform: translateY(-50%); }
.gallery-viewer__button--next:hover { transform: translateY(-50%) scale(1.06); }
.gallery-viewer__button--close { top: 18px; right: 20px; width: 46px; height: 46px; }
.gallery-viewer__button--prev span, .gallery-viewer__button--next span { width: 14px; height: 14px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.gallery-viewer__button--prev span { transform: translateX(3px) rotate(-45deg); }
.gallery-viewer__button--next span { transform: translateX(-3px) rotate(135deg); }
.gallery-viewer__button--close span::before, .gallery-viewer__button--close span::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 2px; background: currentColor; }
.gallery-viewer__button--close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.gallery-viewer__button--close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.gallery-viewer__footer { position: absolute; z-index: 2; top: 100%; left: 50%; display: grid; justify-items: center; gap: 3px; width: 100%; min-width: 0; margin-top: 10px; color: rgba(255,255,255,0.9); font-size: 14px; line-height: 1.35; text-align: center; transform: translateX(-50%); }
.gallery-viewer__counter { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 750; }
.gallery-viewer__caption { display: block; max-width: min(760px, 80vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,0.72); }
.gallery-viewer__error { color: #fff; font-weight: 700; }
.gallery-viewer__error:empty { display: none; }
.gallery-viewer-open { overflow: hidden; }
@keyframes gallery-viewer-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	.gallery-viewer__backdrop { background: rgba(5, 9, 7, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.gallery-viewer__stage { padding: 58px 10px 70px; touch-action: pan-y pinch-zoom; }
	.gallery-viewer__image { max-width: calc(100vw - 20px); max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
	.gallery-viewer__button--prev, .gallery-viewer__button--next { display: none; }
	.gallery-viewer__button--close { top: 10px; right: 10px; width: 46px; height: 46px; }
	.gallery-viewer__footer { position: absolute; top: auto; right: 0; bottom: 0; left: 0; display: grid; gap: 2px; width: 100%; margin: 0; padding: 34px 12px 12px; background: linear-gradient(to top, rgba(5,9,7,0.78), rgba(5,9,7,0)); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease; }
	.gallery-viewer.show-mobile-meta .gallery-viewer__footer { opacity: 1; visibility: visible; transform: translateY(0); }
	.gallery-viewer__caption { display: -webkit-box; max-width: calc(100vw - 44px); overflow: hidden; white-space: normal; font-size: 12px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,0.8); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	.gallery-viewer__counter { text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
}

@media (prefers-reduced-motion: reduce) {
	.gallery-viewer__loader { animation-duration: 1.2s !important; }
}

/* Smart Search (com_finder) — restyled to match the rest of the site. */
.finder-search { padding-top: 0.25rem; }
.finder-search__heading-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 1.25rem; }
.finder-search__heading { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); }
.finder-search__count { margin: 0; color: var(--ink-muted); font-size: 0.85rem; white-space: nowrap; }
.finder-form { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.finder-form__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.finder-form__label { flex: 0 0 auto; color: var(--ink-muted); font-size: 0.85rem; font-weight: 700; }
.finder-form__input { flex: 1 1 220px; min-width: 0; padding: 0.6rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 0.95rem; transition: border-color 150ms ease, box-shadow 150ms ease; }
.finder-form__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.finder-form__submit { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.1rem; border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem; white-space: nowrap; transition: background 150ms ease; }
.finder-form__submit:hover, .finder-form__submit:focus-visible { background: var(--accent-deep); }
.finder-form__submit[disabled] { opacity: 0.55; cursor: not-allowed; }
.finder-form__submit-icon { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; }
.autocomplete-suggestions { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: auto; cursor: default; }
.autocomplete-suggestion { padding: 0.45rem 0.7rem; color: var(--ink); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.autocomplete-no-suggestion { padding: 0.45rem 0.7rem; color: var(--ink-muted); font-size: 0.9rem; }
.autocomplete-selected, .autocomplete-suggestion:hover { background: var(--accent-wash); }
.autocomplete-suggestions strong { color: var(--accent-deep); font-weight: 700; }
.autocomplete-group { padding: 0.4rem 0.7rem; }
.autocomplete-group strong { display: block; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.85rem; font-weight: 700; }
.finder-results__explained { margin-bottom: 1rem; color: var(--ink-muted); font-size: 0.9rem; }
.finder-results__explained a { color: var(--accent-deep); }
.finder-results__empty { padding: 2rem 0; text-align: center; }
.finder-results__empty-heading { margin: 0 0 0.5rem; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.finder-results__empty p { margin: 0; color: var(--ink-muted); }
.finder-results { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.finder-results .finder-result { max-width: none; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.finder-result__title { margin: 0 0 0.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.finder-result__title a { color: var(--ink); text-decoration: none; }
.finder-result__title a:hover { color: var(--accent-deep); text-decoration: underline; }
.finder-result__text { margin: 0; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.5; }
.finder-results__pagination { margin-top: 1.5rem; }
.finder-results__pagination ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.finder-results__pagination a, .finder-results__pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 2.1rem; padding-inline: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 0.85rem; text-decoration: none; }
.finder-results__pagination a:hover { border-color: var(--accent); color: var(--accent-deep); }
.finder-results__pagination .active span, .finder-results__pagination span.active { border-color: var(--accent); background: var(--accent); color: #fff; }
