/* ==========================================================================
   Архівний відділ Бучанської міської ради — стилі за макетом (Canva)
   Шрифти макета: Orchidea Pro (заголовки) та Proba Pro (текст) — комерційні.
   Якщо покласти їх .woff2 у assets/fonts/, тема підхопить їх автоматично;
   до того використовуються близькі за характером Literata та Mulish.
   ========================================================================== */

:root {
	--green: #1c9d4a;
	--green-700: #168a3f;
	--green-800: #0f6e31;
	--green-50: #eef8f1;
	--ink: #111;
	--ink-2: #2b2b2b;
	--muted: #6f7573;
	--line: #d8dcda;
	--line-2: #e7eae8;
	--bg: #ffffff;
	--chip-yellow: #fdf7d8;
	--chip-blue: #d9f0fb;
	--err: #c62828;

	--font: "Proba Pro", "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Orchidea Pro", "Literata", Georgia, "Times New Roman", serif;

	--shell: 1440px;
	--gutter: clamp(8px, 4.3vw, 62px);
	--radius: 20px;
	--radius-md: 12px;
	--radius-sm: 10px;
	--shadow-chip: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 10px rgba(0, 0, 0, .04);
	--pad: 28px;

	--g-hero: radial-gradient(46% 60% at 100% 0%, #93cfa0 0%, rgba(147, 207, 160, 0) 70%), radial-gradient(38% 46% at 0% 22%, #b4ddbd 0%, rgba(180, 221, 189, 0) 72%), radial-gradient(42% 42% at 0% 78%, #fdf3bd 0%, rgba(253, 243, 189, 0) 70%), radial-gradient(34% 44% at 100% 58%, #d8eefa 0%, rgba(216, 238, 250, 0) 72%), #f3f9f3;
	--g1: radial-gradient(55% 130% at 100% 40%, #a7d6b2 0%, rgba(167, 214, 178, 0) 72%), radial-gradient(38% 95% at 0% 100%, #fdf2bf 0%, rgba(253, 242, 191, 0) 72%), #eef7ef;
	--g2: linear-gradient(100deg, #fcf8df 0%, #f5fbf4 45%, #d4eef9 100%);
	--g3: radial-gradient(60% 150% at 0% 100%, #9edbbf 0%, rgba(158, 219, 191, 0) 72%), radial-gradient(50% 110% at 100% 0%, #fdf5cc 0%, rgba(253, 245, 204, 0) 72%), #f4faf5;
	--g4: radial-gradient(48% 130% at 0% 0%, #fdf1bd 0%, rgba(253, 241, 189, 0) 72%), radial-gradient(60% 150% at 100% 100%, #a1dbbd 0%, rgba(161, 219, 189, 0) 72%), #f7fbf3;
	--g5: radial-gradient(80% 60% at 0% 0%, #bfe5f6 0%, rgba(191, 229, 246, 0) 75%), radial-gradient(80% 70% at 10% 100%, #9cdab5 0%, rgba(156, 218, 181, 0) 75%), #eef8f3;
	--g6: radial-gradient(60% 70% at 100% 0%, #fdf4c9 0%, rgba(253, 244, 201, 0) 72%), radial-gradient(50% 60% at 0% 100%, #e1f2fb 0%, rgba(225, 242, 251, 0) 72%), #fbfdfb;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.5; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.ba-icon { flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); font-size: .92em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }

.site-shell { position: relative; max-width: var(--shell); margin: 0 auto; padding: 8px var(--gutter) 0; }
.site-main { display: block; }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 22px; border-radius: var(--radius-sm); border: 0; font: 400 20px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn .ba-icon { width: 30px; height: 30px; stroke-width: 1.5; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; color: var(--green); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn .ba-icon { width: 42px; height: 42px; stroke-width: 1.4; }
.icon-btn:hover { color: var(--green-800); }

.chip { display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; font-size: 19px; line-height: 1.3; box-shadow: var(--shadow-chip); border: 1px solid rgba(0, 0, 0, .04); }
.chip .ba-icon { color: var(--green); width: 24px; height: 24px; }
a.chip:hover { color: var(--green-800); box-shadow: 0 0 0 2px var(--green) inset; }
.chip--yellow { background: var(--chip-yellow); }
.chip--blue { background: var(--chip-blue); }

.ba-chips { list-style: none; margin: 0; padding: 4px 0 0 7%; display: flex; flex-wrap: wrap; gap: 18px 26px; }
.ba-chips li { padding: 13px 18px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-chip); font-size: 19px; line-height: 1.3; }

/* Core buttons → mockup styles */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.wp-block-button { margin: 0; }
.wp-block-button__link, .wp-element-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 22px; border-radius: var(--radius-sm); border: 0; background: var(--green); color: #fff; font: 400 20px/1.2 var(--font); text-decoration: none; transition: background .15s, box-shadow .15s; }
.wp-block-button__link:hover { background: var(--green-700); color: #fff; }
.wp-block-button.is-style-ba-arrow .wp-block-button__link::after { content: ""; width: 30px; height: 30px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12h9M13 8.5l3.5 3.5-3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-button.is-style-ba-chip-yellow .wp-block-button__link, .wp-block-button.is-style-ba-chip-blue .wp-block-button__link { background: var(--chip-yellow); color: var(--ink); font-size: 20px; font-weight: 400; padding: 16px 22px 16px 28px; box-shadow: var(--shadow-chip); }
.wp-block-button.is-style-ba-chip-blue .wp-block-button__link { background: var(--chip-blue); }
.wp-block-button.is-style-ba-chip-yellow .wp-block-button__link::after, .wp-block-button.is-style-ba-chip-blue .wp-block-button__link::after { content: ""; width: 24px; height: 24px; margin-left: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c9d4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M19 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-button.is-style-ba-chip-yellow .wp-block-button__link:hover, .wp-block-button.is-style-ba-chip-blue .wp-block-button__link:hover { box-shadow: 0 0 0 2px var(--green) inset; color: var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--green-700); box-shadow: 0 0 0 2px var(--green) inset; }
.wp-block-button.is-style-ba-light .wp-block-button__link { background: #fff; color: var(--green-800); }

/* ---------- Header (white bar floating over the gradient) ---------- */
.site-header { position: absolute; left: var(--gutter); right: var(--gutter); top: 8px; z-index: 60; padding: 66px 26px 0; pointer-events: none; }
.site-header__bar { pointer-events: auto; display: flex; align-items: center; gap: 30px; background: #fff; border-radius: 14px; min-height: 68px; padding: 8px 28px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand__logo { height: 58px; width: auto; }
.brand--second .brand__logo { height: 50px; }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 0; font-size: 21px; color: var(--ink-2); }
.site-header__tools > * { padding: 0 22px; border-left: 1px solid var(--line); line-height: 1.2; }
.site-header__tools > *:first-child { border-left: 0; padding-left: 0; }
.site-header__tools > *:last-child { padding-right: 0; }
.site-header__phones { display: flex; gap: 22px; }
.site-header__phones a, .lang a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.site-header__phones a:hover { color: var(--green); }
.site-header__social { display: inline-flex; }
.site-header__social .ba-icon { width: 30px; height: 30px; }
.lang { display: flex; gap: 6px; }
.lang .is-active { color: var(--green); }
.nav-toggle { display: inline-flex; align-items: center; gap: 16px; background: none; border: 0; font: 400 22px var(--font); color: var(--ink); cursor: pointer; }
.nav-toggle__icon { display: grid; gap: 6px; width: 40px; }
.nav-toggle__icon i { display: block; height: 2px; background: var(--green); border-radius: 2px; }
.nav-toggle:hover { color: var(--green); }

/* Menu panel */
.site-nav { position: fixed; inset: 0; z-index: 100; }
.site-nav[hidden] { display: none; }
.site-nav__backdrop { position: absolute; inset: 0; background: rgba(10, 30, 15, .28); opacity: 0; transition: opacity .2s; }
.site-nav__panel { position: absolute; top: 16px; left: 16px; bottom: 16px; width: min(500px, calc(100% - 32px)); background: #fff; border: 1.5px solid #111; border-radius: 18px; padding: 64px 46px 32px 56px; overflow-y: auto; transform: translateX(-30px); opacity: 0; transition: transform .2s, opacity .2s; display: flex; flex-direction: column; }
.site-nav.is-open .site-nav__backdrop { opacity: 1; }
.site-nav.is-open .site-nav__panel { transform: none; opacity: 1; }
.site-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.site-nav__title { font-size: 46px; margin: 0; font-weight: 400; }
.site-nav__close { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
.site-nav__close .ba-icon { width: 28px; height: 28px; }
.site-nav__search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; margin-bottom: 18px; color: var(--green); }
.site-nav__search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 11px 0; min-width: 0; background: none; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.site-nav .menu > li > a { display: block; padding: 16px 24px; border-radius: 16px; color: var(--ink); text-decoration: none; font-size: 26px; line-height: 1.25; background: linear-gradient(100deg, #fdf6c9 0%, #f4faf3 45%, #d6eff9 100%); transition: box-shadow .15s, transform .15s; }
.site-nav .menu > li:nth-child(3n+2) > a { background: radial-gradient(60% 120% at 0% 100%, #fdf3c4 0%, rgba(253, 243, 196, 0) 70%), radial-gradient(50% 120% at 100% 50%, #b9dfc4 0%, rgba(185, 223, 196, 0) 75%), radial-gradient(40% 80% at 20% 0%, #cfe8d4 0%, rgba(207, 232, 212, 0) 75%), #f7fbf6; }
.site-nav .menu > li:nth-child(3n) > a { background: radial-gradient(55% 130% at 0% 100%, #fdf3c4 0%, rgba(253, 243, 196, 0) 72%), radial-gradient(60% 120% at 30% 0%, #d4ecd9 0%, rgba(212, 236, 217, 0) 75%), linear-gradient(100deg, #f6fbf4 40%, #e3f3f6 100%); }
.site-nav .sub-menu { display: none; }
.site-nav .menu > li > a:hover { box-shadow: inset 0 0 0 2px var(--green); transform: translateX(4px); }
.site-nav .menu > li > a, .site-nav .menu .current-menu-item > a { box-shadow: inset 0 0 0 2px var(--green); }
.site-nav .sub-menu { list-style: none; margin: -4px 0 6px; padding: 0 0 0 16px; border-left: 2px solid var(--green-50); }
.site-nav .sub-menu a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 16px; line-height: 1.35; }
.site-nav .sub-menu a:hover { color: var(--green); }
.site-nav__cta { margin-top: 24px; align-self: flex-start; font-size: 18px; }
.site-nav__cta .ba-icon { width: 26px; height: 26px; }
.site-nav__contacts { margin-top: auto; padding-top: 24px; display: grid; gap: 4px; font-size: 16px; }
.site-nav__contacts a { color: var(--ink-2); text-decoration: none; }
body.nav-open { overflow: hidden; }

/* ---------- Panels ---------- */
.wp-block-group__inner-container { display: contents; }
.ba-panel { border-radius: var(--radius); padding: 26px var(--pad) 32px; margin: 0 0 24px; }
.ba-panel--g1 { background: var(--g1); }
.ba-panel--g2 { background: var(--g2); }
.ba-panel--g3 { background: var(--g3); }
.ba-panel--g4 { background: var(--g4); }
.ba-panel--g5 { background: var(--g5); }
.ba-panel--g6 { background: var(--g6); }
.ba-plain { padding: 0 var(--pad); margin: 0 0 32px; }
.ba-plain--tight { padding: 0 6px; }
.section__title { font-size: 40px; margin: 0 0 22px; }
.ba-home > * { margin-left: 0; margin-right: 0; }
.ba-home > .wp-block-group:last-child { margin-bottom: 70px; }

/* Hero */
.ba-hero { background: var(--g-hero); border-radius: var(--radius); padding: 232px 50px 40px 120px; margin: 0 0 22px; position: relative; }
.hero__title { font-size: clamp(38px, 5.6vw, 80px); line-height: 1.17; margin: 0 0 54px; color: #000; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 0 0 60px; }
.hero__actions .search-field { width: 390px; }

.search-field { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius-md); padding: 0 20px; height: 56px; color: var(--green); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.search-field .ba-icon { width: 26px; height: 26px; stroke-width: 2.2; }
.search-field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 20px; color: var(--ink); min-width: 0; background: transparent; }
.search-field input::placeholder { color: #8a8a8a; }
.search-field .btn { display: none; }
.search-field--light { box-shadow: none; border: 2px solid #cfd2d1; height: 52px; max-width: 746px; margin: 0 0 60px; padding-left: 12px; }
.search-field--light input { font-size: 22px; }

/* News (photo cards inside hero) */
.ba-news { margin-left: -55px; }
.ba-news__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.ba-news__head .section__title { margin: 0; }
.slider-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-more { display: none; }
.news-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.news-track::-webkit-scrollbar { display: none; }
.ba-empty { padding: 20px 24px; background: rgba(255, 255, 255, .7); border-radius: var(--radius-md); color: var(--muted); margin: 0; }

.photo-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 422 / 222; background: #3a3a33; color: #fff; text-decoration: none; scroll-snap-align: start; }
.photo-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .78) 100%); }
.photo-card:hover .photo-card__img { transform: scale(1.04); }
.photo-card__body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.photo-card time { display: none; }
.news-grid .photo-card time { display: block; font-size: 13px; opacity: .85; }
.photo-card__title { font-size: 24px; line-height: 1.2; color: #fff; }
.news-card { aspect-ratio: auto; display: flex; flex-direction: column; background: #fff; color: var(--ink); box-shadow: var(--shadow-chip); }
.news-card::after { display: none; }
.news-card .photo-card__img { position: static; height: auto; aspect-ratio: 1729 / 910; flex: none; }
.news-card .photo-card__body { position: static; padding: 12px 16px 14px; }
.news-card .photo-card__title { color: var(--ink); font-size: 18px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card time { color: var(--muted); }
.photo-card--story { aspect-ratio: 418 / 308; }
.photo-card--story .photo-card__body { left: 24px; bottom: 30px; }
.photo-card--story .photo-card__title { font-family: var(--font-head); font-size: 34px; font-weight: 700; display: inline-flex; align-items: center; gap: 14px; }
.photo-card--story .ba-icon { width: 26px; height: 26px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Info bar */
.ba-infobar { margin: 0 0 30px; }
.ba-infobar a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px 22px 34px; background: #f7fbfd; border: 1.5px solid #d6dadd; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 22px; line-height: 1.3; }
.ba-infobar a::after { content: ""; flex: none; width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c9d4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M19 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.ba-infobar a:hover { border-color: var(--green); }

/* Panel contents */
.ba-panel--g2 .ba-chips { justify-content: flex-start; padding-left: 16%; }
.ba-panel--g2 .ba-chips li { padding-left: 38px; padding-right: 38px; }
.ba-panel--g3 .wp-block-buttons { padding-left: 18%; margin-bottom: 40px; }
.ba-note-i { position: relative; display: block; max-width: 890px; margin: 0 0 0 18%; padding: 14px 20px 14px 78px; background: #fff; border-radius: var(--radius-md); font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.ba-note-i::before { content: ""; position: absolute; left: 12px; top: 50%; width: 42px; height: 42px; margin-top: -21px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c9d4a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 11v6M12 7.2v.1'/%3E%3C/svg%3E") center / contain no-repeat; }
.ba-note-i--sm { margin: 4px 0 18px; padding: 6px 12px 6px 64px; font-size: 13px; background: none; }
.ba-note-i--sm::before { width: 36px; height: 36px; margin-top: -18px; left: 2px; }
.ba-note-i--sm::after { content: ""; position: absolute; left: 50px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }

/* Reference apparatus */
.ba-plain .section__title { font-size: 46px; padding-left: 0; margin-bottom: 14px; }
.ba-plain .search-field--light { margin-left: 0; }
.ba-plain--links .section__title { padding-left: 0; font-size: 42px; }
.wp-block-columns.ba-split { display: grid; grid-template-columns: 506px minmax(0, 1fr); gap: 34px; margin: 0; padding-left: 0; }
.wp-block-columns.ba-split > .wp-block-column { flex-basis: auto !important; margin: 0; min-width: 0; }
.page-links { list-style: none; margin: 0; padding: 0; }
.page-links--cards { display: flex; flex-wrap: wrap; gap: 14px 14px; }
.page-links--cards li { flex: 0 1 auto; max-width: 100%; }
.page-links--cards a { display: inline-flex; align-items: flex-end; gap: 12px; padding: 12px 16px 12px 18px; border: 2px solid #d5d8d7; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 18px; line-height: 1.45; }
.page-links--cards a:hover { border-color: var(--green); }
.page-links .ba-icon { color: var(--green); width: 26px; height: 26px; margin-top: 2px; }
.page-links--chips { display: flex; flex-wrap: wrap; gap: 18px; padding-left: 24%; }
.page-links--chips a { display: inline-flex; align-items: center; gap: 18px; padding: 12px 18px; background: #fff; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 18px; box-shadow: var(--shadow-chip); }
.page-links--chips a:hover { box-shadow: 0 0 0 2px var(--green) inset; }
.page-links--list a { display: flex; gap: 10px; padding: 8px 0; text-decoration: none; }

.fund-preview { position: relative; max-width: 536px; }
.fund-preview__scroll { max-height: 464px; overflow: auto; border: 1px solid #b9c7d4; scrollbar-color: var(--green) #ddd; }
.fund-preview table, .entry__content .wp-block-table table { width: 100%; border-collapse: collapse; font: 13px/1.25 Arial, Helvetica, sans-serif; background: #fff8f2; }
.fund-preview th, .fund-preview td { border: 1px solid #8a8a8a; padding: 4px 6px; vertical-align: middle; }
.fund-preview th { background: #dbeaf8; font-weight: 700; text-align: center; position: sticky; top: 0; }
.fund-preview td:first-child { text-align: center; }
.fund-preview figure { margin: 0; }
.fund-preview__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; text-decoration: none; }
.fund-preview__more .ba-icon { width: 18px; height: 18px; }

/* Contacts */
.ba-contacts { margin: 0 0 24px; }
.ba-contacts .ba-panel--g4 { padding-bottom: 22px; margin-bottom: 20px; }
.contacts-cols { display: grid; grid-template-columns: 340px 418px 1fr; gap: 0; padding-left: 70px; font-size: 19px; line-height: 1.5; margin-bottom: 26px; }
.contacts-cols p { margin: 0; }
.contacts-cols > div:first-child p { max-width: 210px; }
.contacts-cols a { color: var(--ink); text-decoration: none; }
.contacts-cols a:hover { color: var(--green); }
.messengers { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 4px; }
.messengers .m { transition: transform .15s; }
.messengers .m:hover { transform: scale(1.15); }
.messengers .m { width: 20px; height: 20px; border-radius: 50%; display: inline-block; vertical-align: middle; background-repeat: no-repeat; background-position: center; background-size: 12px 12px; }
.m--wa { background-color: #25d366; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7.6 3.5c.5 0 .9.3 1.1.7l1.3 3c.2.5.1 1-.3 1.4L8.4 9.9a11 11 0 0 0 5.7 5.7l1.3-1.3c.4-.4.9-.5 1.4-.3l3 1.3c.4.2.7.6.7 1.1v2.8c0 .9-.7 1.6-1.6 1.6A16.9 16.9 0 0 1 2.4 4.9c0-.8.7-1.4 1.5-1.4z'/%3E%3C/svg%3E"); }
.m--tg { background-color: #2aabee; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3.2 11.3 19.6 4.6c.8-.3 1.6.4 1.4 1.2l-2.8 13.1c-.2.8-1.1 1.1-1.7.6l-4.2-3.1-2.1 2c-.4.4-1 .2-1.1-.3l-.7-4.1-4.9-1.6c-.9-.3-.9-1.5-.3-1.7zm6.8 2.3.4 2.6 1-1.1 6.1-7.4z'/%3E%3C/svg%3E"); background-size: 13px 13px; background-position: 45% 55%; }
.m--vb { background-color: #7360f2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7.6 3.5c.5 0 .9.3 1.1.7l1.3 3c.2.5.1 1-.3 1.4L8.4 9.9a11 11 0 0 0 5.7 5.7l1.3-1.3c.4-.4.9-.5 1.4-.3l3 1.3c.4.2.7.6.7 1.1v2.8c0 .9-.7 1.6-1.6 1.6A16.9 16.9 0 0 1 2.4 4.9c0-.8.7-1.4 1.5-1.4z'/%3E%3C/svg%3E"); }
.contacts-forms { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 12px 12px; padding-left: 70px; }
.contacts-forms__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 800px; }
.contacts-forms__label { padding-top: 12px; }
.contacts-forms__label { font-size: 19px; margin-right: 18px; }
.contacts-forms .chip { font-size: 21px; padding: 10px 18px 10px 22px; border: 2px solid rgba(0, 0, 0, .08); gap: 30px; }

.schedules { display: grid; grid-template-columns: 442px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.schedule-main { grid-row: span 2; }
.schedule-alert { grid-column: 1 / -1; padding: 16px 20px; background: linear-gradient(100deg, #d9f0fb 0%, #f5fbf4 45%, #fdf3c8 100%); }
.schedule-alert .ba-note-i { display: inline-block; margin: 0; max-width: 100%; padding: 12px 22px 12px 64px; font-size: 18px; }
.schedules .ba-panel { margin: 0; }
.schedule-main .section__title, .schedule-side .section__title { font-size: 47px; margin-bottom: 18px; }
.schedule-table { background: #fff; border-radius: 14px; padding: 14px 16px 12px; font-size: 19px; }
.schedule-table table { border-collapse: collapse; margin-bottom: 12px; }
.schedule-table th { text-align: left; font-weight: 400; padding: 3px 34px 3px 0; }
.schedule-table td { padding: 3px 0; font-variant-numeric: tabular-nums; }
.schedule-table p { margin: 0; }
.schedule-side { display: flex; flex-direction: column; padding-bottom: 20px; }
.schedule-side .day-boxes { margin-bottom: 0; }
.schedule-side .day-box { flex: 0 0 auto; }
.schedule-side .day-box span { white-space: nowrap; }
.day-boxes { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.day-box { display: flex; align-items: center; gap: 14px; background: #fff; padding: 10px 18px 10px 14px; font-size: 17px; line-height: 1.3; }
.day-box .ba-icon { color: var(--green); width: 42px; height: 42px; stroke-width: 1.5; }
.day-box strong { display: block; font-weight: 400; }

.map { margin-top: 20px; border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Useful links */
.ext-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 44px; }
.ext-links a { display: inline-flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; font-size: 17px; }
.ext-links a:hover { color: var(--green-800); text-decoration: underline; }
.ext-links .ba-icon { width: 22px; height: 22px; }
.ext-links__na { color: var(--muted); font-size: 17px; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--g-hero); border-radius: var(--radius); padding: 190px 50px 40px 120px; margin: 0 0 44px; position: relative; }
.back-link { position: absolute; left: 48px; top: 184px; display: inline-flex; color: var(--green); border-radius: 50%; transition: color .15s, transform .15s; }
.back-link:hover { color: var(--green-800); transform: translateX(-3px); }
.back-link .ba-icon { width: 46px; height: 46px; stroke-width: 1.4; }
.page-head > .container { max-width: none; padding: 0; }
.page-head__title { font-size: clamp(32px, 4.4vw, 56px); margin: 0; color: #000; }
.page-head__meta { display: block; margin-top: 10px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.page-layout { padding-bottom: 70px; }
.page-layout--side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.side-nav { position: sticky; top: 24px; background: var(--g2); border-radius: var(--radius); padding: 22px; }
.side-nav__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin: 0 0 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-nav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff; text-decoration: none; color: var(--ink); line-height: 1.35; font-size: 16px; box-shadow: var(--shadow-chip); }
.side-nav a:hover, .side-nav a[aria-current] { color: var(--green-800); box-shadow: 0 0 0 2px var(--green) inset; }
.entry { padding-bottom: 32px; }
.entry__cover { margin: 0 0 28px; border-radius: var(--radius-md); overflow: hidden; }
.entry__content { max-width: 80ch; font-size: 19px; }
.entry__content h2 { font-size: 34px; margin-top: 1.3em; }
.entry__content h3 { font-size: 26px; margin-top: 1.2em; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .4em; }
.entry__content .wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.entry__content .wp-block-table th, .entry__content .wp-block-table td { border: 1px solid #8a8a8a; padding: 6px 8px; vertical-align: top; }
.entry__content .wp-block-table th { background: #dbeaf8; }
.entry__content blockquote { margin: 1.5em 0; padding: 16px 22px 16px 78px; background: var(--g2); border-radius: var(--radius-md); position: relative; }
.entry__content blockquote::before { content: ""; position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c9d4a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 11v6M12 7.2v.1'/%3E%3C/svg%3E") center / contain no-repeat; }
.entry__content blockquote p { margin: 0; }
.entry__content .wp-block-file { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 2px solid #d5d8d7; border-radius: var(--radius-md); }
.entry__content .wp-block-file__button { background: var(--green) !important; border-radius: var(--radius-sm) !important; }
.entry__content .ba-form, .entry__content .ba-tabs { max-width: none; margin-top: 1.5em; }
.entry__content .ba-panel, .entry__content .ba-contacts { max-width: none; }
.ba-todo { padding: 16px 20px; border: 2px dashed #e1c86a; background: #fffbe8; border-radius: var(--radius-md); color: #7a6413; font-size: 16px; }
.child-cards { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.tile { display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; border: 2px solid #d5d8d7; border-radius: var(--radius-md); text-decoration: none; color: var(--ink); font-size: 19px; }
.tile:hover { border-color: var(--green); color: var(--ink); }
.tile__icon { color: var(--green); display: inline-flex; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; }
.news-grid { margin-bottom: 40px; }
.result-list { display: grid; gap: 4px; margin-bottom: 40px; }
.result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result__type { margin: 0 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.result h2 { font-family: var(--font); font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.result h2 a { text-decoration: none; }
.result p { margin: 0; color: var(--ink-2); }
.empty { padding: 32px 0 64px; font-size: 19px; color: var(--ink-2); }
.pagination { padding-bottom: 64px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--green); border-color: var(--green); color: #fff; }
.search-page { margin: 0 0 32px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); }
.search-form input[type="submit"] { font: 500 17px var(--font); padding: 12px 20px; border: 0; border-radius: var(--radius-sm); background: var(--green); color: #fff; cursor: pointer; }

/* ---------- Forms (as in the mockup) ---------- */
.ba-tabs__list { display: inline-flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.ba-tabs__tab { border: 0; border-radius: var(--radius-sm); padding: 14px 22px; font: 400 19px var(--font); color: var(--ink); cursor: pointer; background: var(--chip-yellow); box-shadow: var(--shadow-chip); }
.ba-tabs__tab[data-tab="legal"] { background: var(--chip-blue); }
.ba-tabs__tab.is-active { box-shadow: 0 0 0 2px var(--green) inset; }
.ba-form { background: #fff; border: 1.5px solid #111; border-radius: 18px; padding: 30px 40px 26px; max-width: 900px; }
.ba-form .ba-form__title, .entry-content .ba-form__title { font-size: 40px; margin: 0 0 26px; }
.ba-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; max-width: 770px; }
.ba-field { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.ba-field--select { grid-column: 1 / -1; max-width: 540px; }
.ba-field--wide { grid-column: 1 / -1; max-width: 770px; }
.ba-field > label { font-size: 19px; color: var(--ink); }
.ba-field .req { color: inherit; }
.ba-field input[type="text"], .ba-field input[type="tel"], .ba-field input[type="email"], .ba-field input[type="date"], .ba-field select, .ba-compose { width: 100%; font: inherit; font-size: 18px; padding: 10px 14px; border: 1.5px solid #d6d6d6; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.ba-field input:focus, .ba-field select:focus, .ba-compose:focus-within { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(28, 157, 74, .15); }
.ba-select { position: relative; display: block; }
.ba-select select { appearance: none; -webkit-appearance: none; padding-right: 56px; cursor: pointer; }
.ba-select::after { content: ""; position: absolute; right: 16px; top: 50%; margin-top: -8px; border: 11px solid transparent; border-top: 16px solid var(--green); border-bottom: 0; pointer-events: none; }
.ba-compose { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ba-compose textarea { border: 0; outline: 0; resize: vertical; min-height: 110px; padding: 12px 14px; font: inherit; font-size: 18px; }
.ba-compose__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ba-compose__attach { display: inline-block; background: #e4e4e4; color: #333; padding: 7px 12px; font-size: 18px; cursor: pointer; margin: 0 0 3px 3px; }
.ba-compose__attach:hover { background: #d8d8d8; }
.ba-compose__send { background: var(--green); color: #fff; border: 0; font: 400 21px var(--font); padding: 6px 14px; cursor: pointer; }
.ba-compose__send:hover { background: var(--green-700); }
.ba-compose__send[disabled] { opacity: .7; }
.ba-file { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ba-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ba-file input[type="file"]:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.ba-file__names { font-size: 13px; color: var(--muted); }
.ba-field.has-error input, .ba-field.has-error select, .ba-field.has-error .ba-compose { border-color: var(--err); }
.ba-error { color: var(--err); font-size: 14px; margin: 0; }
.ba-field--check { margin: 18px 0 10px; }
.ba-field--check label { display: flex; gap: 14px; align-items: center; font-size: 19px; }
.ba-field--check input { width: 30px; height: 30px; accent-color: var(--green); flex: none; margin: 0; }
.ba-alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.ba-alert--ok { background: #e3f4e9; color: var(--green-800); }
.ba-alert--err { background: #fdecec; color: var(--err); }
.ba-hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { padding: 34px 26px 0; font-size: 14px; color: var(--ink); }
.site-footer__logos { display: flex; align-items: center; gap: 28px; margin-bottom: 30px; }
.site-footer__logos img { height: 50px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 30px; }
.footer-title { font-family: var(--font); font-weight: 400; font-size: 14px; margin: 0 0 18px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col--links .footer-list { gap: 16px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-bottom { margin-top: 30px; display: grid; gap: 4px; }
.footer-bottom p { margin: 0; }
.legal-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.legal-nav li + li::before { content: "·"; margin: 0 5px; }
.footer-skyline { margin-top: 26px; padding: 0 0 6px; }
.footer-skyline img { width: 100%; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.contacts-cols { grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; }
	.site-header__phones a:first-child { display: none; }
	.ba-hero { padding-left: 70px; }
	.ba-news { margin-left: -20px; }
	.wp-block-columns.ba-split { grid-template-columns: 1fr 1fr; padding-left: 0; }
	.ba-plain .section__title, .ba-plain .search-field--light { padding-left: 0; margin-left: 0; }
	.schedules { grid-template-columns: 420px minmax(0, 1fr); }
	.schedule-side .day-box { font-size: 16px; gap: 10px; padding: 10px 14px 10px 12px; }
	.schedule-side .day-box .ba-icon { width: 36px; height: 36px; }
	.day-box { min-width: 0; }
}
@media (max-width: 1024px) {
	:root { --pad: 22px; }
	.site-header { padding-top: 22px; }
	.ba-hero { padding-top: 150px !important; }
	.page-head { padding-top: 130px !important; }
	.site-header__phones, .lang, .site-header__social { display: none !important; }
	.site-header__tools > .nav-toggle { border-left: 0; padding-left: 0; }
	.ba-hero { padding: 150px 30px 34px; }
	.ba-news { margin-left: 0; }
	.news-track { grid-auto-columns: calc((100% - 20px) / 2); }
	.ba-chips, .ba-panel--g2 .ba-chips, .ba-panel--g3 .wp-block-buttons, .page-links--chips, .contacts-cols, .contacts-forms { padding-left: 0; }
	.ba-note-i { margin-left: 0; }
	.contacts-forms { justify-content: flex-start; }
	.wp-block-columns.ba-split { grid-template-columns: 1fr; padding-left: 0; }
	.ba-plain .section__title, .ba-plain .search-field--light { margin-left: 0; }
	.schedules { grid-template-columns: 1fr; }
	.schedule-main { grid-row: auto; }
	.photo-grid { grid-template-columns: 1fr 1fr; }
	.page-head { padding: 130px 30px 34px; }
	.back-link { position: static; margin-bottom: 8px; }
	.page-head { display: block; }
	.page-layout--side { grid-template-columns: 1fr; gap: 32px; }
	.side-nav { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contacts-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	:root { --pad: 16px; --radius: 16px; }
	body { font-size: 16px; }
	:root { --gutter: 6px; }
	.site-shell { padding: 6px 6px 0; }
	.site-header { left: 6px; right: 6px; top: 6px; padding: 12px 12px 0; }
	.site-header__bar { padding: 6px 14px; min-height: 58px; gap: 12px; border-radius: 12px; }
	.brand__logo { height: 40px; }
	.brand--second { display: none; }
	.nav-toggle { font-size: 18px; gap: 10px; }
	.nav-toggle__icon { width: 30px; }
	.ba-hero { padding: 100px 16px 26px !important; margin-bottom: 30px; }
	.hero__title { margin-bottom: 28px; }
	.hero__actions { flex-direction: column; align-items: stretch; margin-bottom: 34px; }
	.hero__actions .search-field { width: 100%; }
	.hero__actions .wp-block-button, .hero__actions .wp-block-button__link { width: 100%; font-size: 18px; }
	.news-track { grid-auto-columns: 86%; }
	.photo-card__title { font-size: 19px; }
	.section__title, .ba-plain .section__title, .schedule-main .section__title, .schedule-side .section__title { font-size: 28px; }
	.ba-panel { padding: 20px 16px 22px; margin-bottom: 26px; }
	.ba-chips { gap: 10px; }
	.ba-chips li, .chip, .page-links--chips a { font-size: 16px; padding: 11px 14px; }
	.wp-block-button.is-style-ba-chip-yellow .wp-block-button__link, .wp-block-button.is-style-ba-chip-blue .wp-block-button__link { font-size: 17px; padding: 12px 16px; }
	.ba-infobar a { font-size: 17px; padding: 16px 18px; }
	.search-field--light { margin-bottom: 30px; }
	.page-links--cards a { font-size: 17px; }
	.photo-grid { grid-template-columns: 1fr; }
	.photo-card--story .photo-card__title { font-size: 26px; }
	.contacts-cols { grid-template-columns: 1fr; font-size: 18px; gap: 16px; }
	.contacts-forms__label { font-size: 18px; width: 100%; padding-top: 0; }
	.contacts-forms__chips { justify-content: flex-start; }
	.contacts-forms .chip { font-size: 17px; gap: 14px; }
	.schedule-table { font-size: 17px; }
	.day-box { font-size: 17px; width: 100%; }
	.page-head { padding: 96px 16px 26px !important; }
	.back-link { position: static; margin-bottom: 8px; }
	.back-link .ba-icon { width: 38px; height: 38px; }
	.ba-form { padding: 22px 16px; border-radius: 14px; }
	.ba-form .ba-form__title, .entry-content .ba-form__title { font-size: 28px; }
	.ba-form__grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.site-footer { padding: 26px 16px 0; }
	.site-nav__panel { padding: 28px 24px 24px; }
	.site-nav .menu > li > a { font-size: 21px; padding: 13px 18px; }
	.site-nav .menu { gap: 10px; }
	.site-nav__title { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.site-nav__search, .site-nav__cta, .site-nav__contacts { display: none; }
.site-nav__head { margin-bottom: 34px; }
.ba-todo { display: none; }

/* ---------- Client edits (Nov 2026) ---------- */
[id] { scroll-margin-top: 110px; }
.site-header.is-stuck { position: fixed; top: 8px; padding-top: 0; animation: ba-drop .25s ease-out; }
.site-header.is-stuck .site-header__bar { box-shadow: 0 6px 24px rgba(0, 0, 0, .1); }
.admin-bar .site-header.is-stuck { top: 40px; }
@keyframes ba-drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.news-track.is-marquee { scroll-snap-type: none; }
.page-links--cards .is-off, .page-links--chips .is-off { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px 12px 18px; border: 2px dashed #d5d8d7; border-radius: var(--radius-md); color: var(--muted); font-size: 18px; line-height: 1.45; cursor: default; }
.page-links .is-off .ba-icon { opacity: .4; }
.fund-preview--sheet { max-width: none; }
.fund-preview--sheet iframe { display: block; width: 100%; height: 520px; border: 1px solid #b9c7d4; border-radius: 6px; background: #fff; }
.footer-credit { margin: 14px 0 0; font-size: 15px; line-height: 1.3; color: #8a8f99; letter-spacing: .01em; }
.site-footer .footer-credit a { display: inline-flex; align-items: center; gap: 10px; margin-left: 5px; color: var(--ink); font-weight: 700; text-decoration: none; transition: color .15s; }
.site-footer .footer-credit a::after { content: ""; width: 12px; height: 12px; background: currentColor; opacity: .55; transition: transform .15s, opacity .15s; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 11 3M4.5 3H11v6.5'/%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 14 14' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 11 3M4.5 3H11v6.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.site-footer .footer-credit a:hover { color: var(--green); }
.site-footer .footer-credit a:hover::after { opacity: 1; transform: translate(2px, -2px); }
.ba-notice { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 30, 15, .35); }
.ba-notice.is-open { display: flex; }
.ba-notice__box { max-width: 520px; background: #fff; border-radius: 18px; padding: 28px 28px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); border-top: 6px solid #f2c94c; }
.ba-notice__title { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin: 0 0 10px; }
.ba-notice__text { font-size: 18px; line-height: 1.5; margin: 0 0 20px; }
@media (max-width: 640px) {
	.site-header.is-stuck { top: 6px; }
	.fund-preview--sheet iframe { height: 420px; }
	.ba-notice__text { font-size: 16px; }
}

/* QA fixes (Nov 2026) */
.page-head { padding-left: 62px; }
.back-link { position: static; display: inline-flex; margin: 0 0 6px -4px; }
.back-link .ba-icon { width: 40px; height: 40px; }
.search-form input.search-field { flex: 1; min-width: 0; height: auto; box-shadow: none; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); }
@media (max-width: 1024px) {
	.page-layout--side { grid-template-columns: minmax(0, 1fr); }
	.page-head { padding-left: 30px; }
}
@media (max-width: 640px) {
	.grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
	.legal-nav { flex-direction: column; gap: 2px; }
	.legal-nav li + li::before { content: none; }
	.page-head { padding-left: 16px; }
	.back-link .ba-icon { width: 36px; height: 36px; }
	.search-form { flex-wrap: wrap; }
	.search-form input[type="submit"] { flex: 1 1 100%; }
}
.tile.is-off { border-style: dashed; color: var(--muted); cursor: default; }
.tile.is-off .tile__icon { opacity: .45; }
.side-nav .is-off { display: block; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px dashed #cfd2d1; color: var(--muted); line-height: 1.35; font-size: 16px; }

/* Fund list from Google Sheet */
.fund-table { max-width: 640px; }
.fund-table__bar { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.fund-table__search { flex: 1; position: relative; display: flex; align-items: center; }
.fund-table__search .ba-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.fund-table__search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 2px solid #d5d8d7; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.fund-table__search input:focus { outline: none; border-color: var(--green); }
.fund-table__count { flex: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.fund-table__scroll { max-height: 460px; overflow: auto; border: 1px solid #dfe3e1; border-radius: 14px; background: #fff; scrollbar-color: var(--green) #eef1f0; scrollbar-width: thin; }
.fund-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.4; }
.fund-table th { position: sticky; top: 0; z-index: 1; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; text-align: left; padding: 11px 12px; white-space: nowrap; }
.fund-table td { padding: 10px 12px; border-top: 1px solid #edf0ef; vertical-align: top; color: var(--ink); }
.fund-table tbody tr:nth-child(even) td { background: #f6faf7; }
.fund-table tbody tr:hover td { background: #eaf5ee; }
.fund-table__n { width: 1%; white-space: nowrap; font-weight: 700; color: var(--green) !important; }
.fund-table__d { width: 1%; white-space: nowrap; color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.fund-table__empty { margin: 0; padding: 18px 14px; color: var(--muted); }
.fund-table__src { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; text-decoration: none; }
.fund-table__src .ba-icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
	.fund-table__bar { flex-wrap: wrap; }
	.fund-table__count { width: 100%; }
	.fund-table table { font-size: 14px; }
	.fund-table td, .fund-table th { padding: 9px 8px; }
	.fund-table__scroll { max-height: 420px; }
}

/* Reference cards: one column, equal width, icon on the right */
.page-links--cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.page-links--cards li { max-width: none; }
.page-links--cards a, .page-links--cards .is-off { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.page-links--cards a .ba-icon, .page-links--cards .is-off .ba-icon { flex: none; }

/* E-mail chips (33 days page) */
.entry__content ul.ba-mails { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.entry__content ul.ba-mails li { margin: 0; padding: 0; }
.entry__content ul.ba-mails li::before { content: none; }
.entry__content ul.ba-mails a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 2px solid var(--green); border-radius: var(--radius-sm); color: var(--green); font-size: 19px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.entry__content ul.ba-mails a::before { content: ""; width: 20px; height: 20px; flex: none; 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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.entry__content ul.ba-mails a:hover { background: var(--green); color: #fff; }
@media (max-width: 640px) { .entry__content ul.ba-mails a { font-size: 16px; padding: 10px 14px; word-break: break-all; } }

/* Fund list v2: denser rows, notes column */
.fund-table__scroll { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.fund-table table { font-size: 15px; line-height: 1.38; }
.fund-table th { padding: 12px 14px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.fund-table td { padding: 9px 14px; }
.fund-table__n { min-width: 2.6em; font-size: 14px; }
.fund-table__d { font-size: 14px; text-align: right; padding-right: 16px !important; }
.fund-table th:last-child { text-align: right; padding-right: 16px; }
.fund-table tbody tr:nth-child(even) td { background: #f7faf8; }
.fund-table tbody tr:hover td { background: #e8f4ec; }
@media (max-width: 640px) {
	.fund-table td { padding: 8px 8px; }
	.fund-table th { padding: 10px 8px; }
	.fund-table__d { white-space: normal; min-width: 5.2em; font-size: 13px; }
}

/* Menu items that open Google documents */
.site-nav .sub-menu .menu-item--ext > a::after { content: "↗"; display: inline-block; margin-left: 6px; font-size: .85em; opacity: .6; }

/* English version */
.fund-table__note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Language switcher stays visible on phones and tablets */
@media (max-width: 1024px) {
	.site-header .site-header__tools .lang { display: flex !important; align-items: center; gap: 6px; font-size: 15px; margin-right: 6px; }
}

/* «Людям із порушенням зору» button + low-vision mode */
.site-header__a11y { display: flex; justify-content: flex-end; margin-top: 12px; }
.lv-toggle { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.lv-toggle:hover { color: var(--green); }
.lv-toggle .ba-icon { width: 20px; height: 20px; }
.site-header.is-stuck .site-header__a11y { display: none; }
@media (max-width: 640px) {
	.site-header__a11y { margin-top: 8px; }
	.lv-toggle { font-size: 13px; padding: 6px 12px; gap: 6px; }
}
html.ba-lv .site-main, html.ba-lv .site-footer { zoom: 1.15; }
html.ba-lv .site-header__bar { border: 2px solid #000; }
html.ba-lv body, html.ba-lv .site-shell, html.ba-lv .ba-panel, html.ba-lv .ba-hero, html.ba-lv .page-head, html.ba-lv .section--tint, html.ba-lv .schedule-table, html.ba-lv .day-box, html.ba-lv .ba-infobar, html.ba-lv .chip, html.ba-lv .tile, html.ba-lv .site-nav .menu > li > a { background: #fff !important; background-image: none !important; color: #000 !important; }
html.ba-lv .ba-panel, html.ba-lv .ba-hero, html.ba-lv .page-head, html.ba-lv .chip, html.ba-lv .tile, html.ba-lv .ba-infobar { border: 2px solid #000 !important; box-shadow: none !important; }
html.ba-lv a { color: #004d1c !important; text-decoration: underline !important; }
html.ba-lv .btn, html.ba-lv .wp-block-button__link, html.ba-lv .ba-compose__send { background: #000 !important; color: #fff !important; }
html.ba-lv img { filter: grayscale(1) contrast(1.1); }
html.ba-lv .muted, html.ba-lv .fund-table__d, html.ba-lv .footer-credit { color: #222 !important; }
html.ba-lv :focus-visible { outline: 3px solid #000 !important; outline-offset: 2px; }
html.ba-lv .lv-toggle { background: #000; color: #fff; }
/* room for the low-vision button under the header bar */
@media (max-width: 1024px) {
	.ba-hero { padding-top: 186px !important; }
	.page-head { padding-top: 166px !important; }
}
@media (max-width: 640px) {
	.ba-hero { padding-top: 136px !important; }
	.page-head { padding-top: 124px !important; }
}

/* ---------- Funds on the site ---------- */
.fund-table__link { color: var(--ink); text-decoration: none; }
.fund-table__link:hover, .fund-table__n a:hover { color: var(--green); text-decoration: underline; }
.fund-table__n a { color: inherit; text-decoration: none; }
.fund-table tbody tr { cursor: default; }
.fund-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e3f3e8; color: var(--green); font-size: 12px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.fund-table--full { max-width: none; scroll-margin-top: 120px; }
.fund-table--full .fund-table__scroll { max-height: none; overflow: visible; }
.fund-table--full th { top: 84px; }
.fund-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.fund-groups__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid #d5d8d7; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.fund-groups__btn span { color: var(--muted); font-size: 13px; }
.fund-groups__btn.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.fund-groups__btn.is-active span { color: #e3f3e8; }

.fund-view { max-width: 980px; margin-bottom: 40px; }
.fund-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--green); text-decoration: none; font-size: 16px; }
.fund-back .ba-icon { width: 18px; height: 18px; }
.fund-view__name { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; margin: 0 0 18px; }
.fund-view__h { font-size: 24px; margin: 34px 0 14px; }
.fund-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 0 0 8px; }
.fund-meta > div { background: #fff; border: 1px solid #dfe3e1; border-radius: 14px; padding: 12px 16px; }
.fund-meta dt { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.fund-meta dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.fund-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fund-docs a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid #d5d8d7; border-radius: var(--radius-md); background: #fff; color: var(--ink); text-decoration: none; }
.fund-docs a:hover { border-color: var(--green); }
.fund-docs__t { font-weight: 700; font-size: 18px; white-space: nowrap; }
.fund-docs__m { flex: 1; color: var(--muted); font-size: 15px; }
.fund-docs .ba-icon { color: var(--green); flex: none; }
.fund-none { padding: 16px 18px; border-radius: 14px; background: #f6faf7; border: 1px dashed #cfd8d3; color: var(--ink); }
.fund-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid #e3e7e5; }
.fund-pager a { color: var(--green); text-decoration: none; font-weight: 600; }

.doc-view__sub { margin: -8px 0 18px; color: var(--muted); }
.doc-viewer { margin-top: 18px; border: 1px solid #dfe3e1; border-radius: 16px; background: #fff; overflow: hidden; }
.doc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: #f6faf7; border-bottom: 1px solid #e3e7e5; }
.doc-toolbar--bottom { border-bottom: 0; border-top: 1px solid #e3e7e5; }
.doc-zoom { display: inline-flex; align-items: center; gap: 6px; }
.doc-zoom button { width: 34px; height: 34px; border: 1px solid #cfd8d3; border-radius: 8px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.doc-zoom span { min-width: 48px; text-align: center; font-size: 14px; color: var(--muted); }
.doc-pager { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.doc-pager a, .doc-pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--ink); }
.doc-pager a { border: 1px solid #cfd8d3; background: #fff; }
.doc-pager a:hover { border-color: var(--green); color: var(--green); }
.doc-pager .is-cur { background: var(--green); color: #fff; font-weight: 700; }
.doc-pager .is-dis { color: #c3c8c6; }
.doc-pos { font-size: 14px; color: var(--muted); }
.doc-table { overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 100%; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
.doc-table--small { border: 1px solid #dfe3e1; border-radius: 14px; background: #fff; }
.doc-table th { background: var(--green); color: #fff; font-weight: 600; font-size: .87em; text-align: left; padding: 10px 12px; white-space: nowrap; }
.doc-table td { padding: 8px 12px; border-top: 1px solid #edf0ef; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-table tbody tr:nth-child(even) td { background: #f7faf8; }
.doc-view__note { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
	.fund-docs a { flex-wrap: wrap; gap: 4px 10px; }
	.fund-docs__m { flex-basis: 100%; order: 3; }
	.doc-toolbar { padding: 8px 10px; }
	.doc-table table { font-size: 14px; }
	.fund-table--full th { top: 70px; }
}
@media print {
	.doc-viewer, .fund-docs { display: none !important; }
	.doc-view::after { content: "Друк документа недоступний. / Printing is not available."; display: block; padding: 20px 0; }
}
html.ba-lv .fund-meta > div, html.ba-lv .fund-docs a, html.ba-lv .doc-viewer, html.ba-lv .fund-groups__btn { border: 2px solid #000 !important; }
html.ba-lv .doc-table th { background: #000 !important; }

/* ---------- Scanned documents ---------- */
.scan-nav { display: inline-flex; align-items: center; gap: 6px; }
.scan-nav a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfd8d3; border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: 18px; }
.scan-nav a:hover { border-color: var(--green); color: var(--green); }
.scan-nav a[aria-disabled="true"] { color: #c3c8c6; pointer-events: none; }
.scan-nav__pos { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.scan-nav__pos input { width: 64px; height: 38px; padding: 0 8px; border: 1px solid #cfd8d3; border-radius: 8px; font: inherit; font-size: 15px; text-align: center; color: var(--ink); }
.scan-stage { overflow: auto; max-height: 82vh; background: #e9ecea; padding: 16px; text-align: center; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.scan-stage img { display: inline-block; width: 100%; max-width: 900px; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; vertical-align: top; }
@media (max-width: 640px) {
	.scan-stage { padding: 6px; max-height: 75vh; }
	.scan-nav a { min-width: 42px; height: 42px; }
}
@media print {
	.scan-viewer { display: none !important; }
}
html.ba-lv .scan-nav a, html.ba-lv .scan-nav__pos input { border: 2px solid #000 !important; }

/* Fund list on phones: two columns, notes (years) under the name — nothing is cut off */
@media (max-width: 640px) {
	.fund-table table, .fund-table thead, .fund-table tbody { display: block; width: 100%; }
	.fund-table tr { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); }
	.fund-table th:last-child { display: none; }
	.fund-table td, .fund-table th { min-width: 0; width: auto !important; }
	.fund-table td:nth-child(2) { overflow-wrap: anywhere; }
	.fund-table__n { white-space: nowrap; }
	.fund-table__d { grid-column: 2; border-top: 0 !important; padding: 0 8px 9px !important; text-align: left; white-space: normal; min-width: 0; font-size: 13px; }
	.fund-table__d:empty { display: none; }
	.fund-table tbody tr:nth-child(even) { background: #f7faf8; }
	.fund-table tbody tr:hover { background: #e8f4ec; }
	.fund-table tbody tr td { background: transparent !important; }
	.fund-table tbody tr + tr { border-top: 1px solid #edf0ef; }
	.fund-table tbody td { border-top: 0; }
}
