/* Kafar Bara — public site
   Palette: olive-night #183D27, council green #3F7A3D, sage mist #EEF3EC, sun citrus #F2A33A, ink #16241B */
:root {
  --night: #183d27;
  --green: #3f7a3d;
  --green-2: #2e6131;
  --leaf: #8cb369;
  --mist: #eef3ec;
  --mist-2: #e1eadd;
  --citrus: #f2a33a;
  --ink: #16241b;
  --muted: #56675b;
  --line: #d7e1d3;
  --paper: #ffffff;
  --bg: #f7f9f6;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgb(22 36 27 / .06), 0 8px 24px -12px rgb(22 36 27 / .18);
  --fs-scale: 1;
  --font: 'Rubik Variable', 'Rubik', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--fs-scale)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--citrus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--citrus); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
[data-lucide], .lucide { width: 1.1em; height: 1.1em; stroke-width: 2; flex: none; }
bdi { unicode-bidi: isolate; direction: ltr; }

/* ---------- utility bar ---------- */
.utility { background: var(--night); color: #d9e7d6; font-size: .84rem; }
.utility__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.utility__info, .utility__tools { display: flex; align-items: center; gap: 18px; }
.utility a, .utility span, .utility button { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.utility a:hover { color: #fff; }
.langs { display: flex; gap: 2px; background: rgb(255 255 255 / .08); border-radius: 99px; padding: 2px; }
.langs a { padding: 2px 10px; border-radius: 99px; }
.langs a[aria-current] { background: #fff; color: var(--night); font-weight: 600; }
.a11y-toggle { background: none; border: 0; padding: 4px 0; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 50px; width: auto; max-width: 150px; object-fit: contain; }
.brand__name { font-weight: 700; font-size: 1.08rem; line-height: 1.2; max-width: 11em; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 10px; border-radius: var(--r-sm); background: none; border: 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--mist); color: var(--green-2); }
.nav__link [data-lucide], .nav__link svg { width: 16px; transition: transform .25s var(--ease); }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__item { position: relative; }
.mega { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); min-width: 300px; width: max-content; max-width: min(760px, 92vw); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 48px -20px rgb(22 36 27 / .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); z-index: 50; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__in { padding: 14px; max-height: 70vh; overflow: auto; }
.mega__all { display: block; font-weight: 700; padding: 6px 10px 10px; text-decoration: none; color: var(--green-2); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mega__grid { list-style: none; margin: 0; padding: 0; column-gap: 8px; }
.mega__grid:has(> li:nth-child(8)) { columns: 2 230px; width: min(560px, 90vw); }
.mega__grid > li { break-inside: avoid; }
.mega__grid a { display: block; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .93rem; }
.mega__grid a:hover { background: var(--mist); color: var(--green-2); }
.mega__grid ul { list-style: none; padding-inline-start: 12px; margin: 0 0 6px; border-inline-start: 2px solid var(--mist-2); }
.mega__grid ul a { font-size: .86rem; color: var(--muted); padding: 4px 10px; }
.header__actions { display: flex; gap: 6px; margin-inline-start: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.icon-btn:hover { background: var(--mist); }
.burger { display: none; }

/* search dialog */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgb(14 30 20 / .55); backdrop-filter: blur(4px); }
.search-dlg { width: min(680px, 94vw); margin-top: 12vh; border-radius: var(--r-lg); background: var(--paper); }
.search-dlg[open] { animation: pop .25s var(--ease); }
.search-dlg__form { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; padding-inline: 22px 10px; }
.search-dlg__form input { flex: 1; border: 0; font: inherit; font-size: 1.25rem; padding: 14px 0; background: none; outline: none; color: inherit; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--night); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 9s linear; }
.hero__img.is-on { opacity: 1; transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgb(24 61 39 / .35) 0%, rgb(24 61 39 / .55) 45%, rgb(17 44 28 / .94) 100%),
  radial-gradient(80% 60% at 50% 110%, rgb(242 163 58 / .25), transparent 70%); }
.hero__in { padding: clamp(64px, 11vw, 140px) 0 clamp(48px, 7vw, 84px); display: grid; justify-items: center; text-align: center; }
.hero__title { font-size: clamp(2.3rem, 6.4vw, 5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .25em; max-width: 14ch; text-wrap: balance; }
.hero__title span { display: inline-block; animation: rise .9s var(--ease) both; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #dbe9d6; margin: 0 0 32px; max-width: 46ch; animation: rise .9s .12s var(--ease) both; }
.hero__search { display: flex; align-items: center; gap: 10px; width: min(640px, 100%); background: #fff; color: var(--ink); border-radius: 99px; padding: 6px; padding-inline-start: 20px; box-shadow: 0 20px 50px -18px rgb(0 0 0 / .55); animation: rise .9s .22s var(--ease) both; }
.hero__search > svg { color: var(--muted); }
.hero__search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 12px 0; outline: none; background: none; color: inherit; }
.hero__search button { border: 0; background: var(--green); color: #fff; border-radius: 99px; padding: 12px 26px; font-weight: 600; }
.hero__search button:hover { background: var(--green-2); }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 22px 0 0; animation: rise .9s .32s var(--ease) both; }
.hero__chips a { display: inline-block; padding: 7px 16px; border-radius: 99px; color: #fff; text-decoration: none; font-size: .9rem; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .28); backdrop-filter: blur(6px); }
.hero__chips a:hover { background: #fff; color: var(--night); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- tenders board ticker ---------- */
.board { background: var(--citrus); color: var(--ink); }
.board__in { display: flex; align-items: stretch; gap: 0; min-height: 52px; }
.board__label { display: flex; align-items: center; gap: 8px; flex: none; font-weight: 700; padding-inline-end: 18px; margin-inline-end: 6px; border-inline-end: 2px solid rgb(22 36 27 / .18); color: inherit; text-decoration: none; }
.board__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.board__track ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; height: 100%; align-items: center; width: max-content; animation: marquee var(--dur, 80s) linear infinite; }
[dir=rtl] .board__track ul { animation-name: marquee-rtl; }
.board__track:hover ul, .board.is-paused ul, .board__track:focus-within ul { animation-play-state: paused; }
.board__track a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.board__track a:hover { text-decoration: underline; }
.ext { font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: #fff; color: var(--c); letter-spacing: .02em; }
.board__pause { flex: none; background: none; border: 0; padding: 0 12px; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- sections common ---------- */
.sec-head { margin: 0 0 22px; }
.sec-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.sec-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link-more { font-weight: 600; color: var(--green-2); text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; border: 0; border-radius: 99px; padding: 12px 24px; font-weight: 600; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--green-2); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--mist); }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgb(255 255 255 / .5); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .1); }
.empty, .empty-state { color: var(--muted); }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 60px 16px; text-align: center; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); }
.empty-state svg { width: 40px; height: 40px; color: var(--leaf); }
.count { display: inline-grid; place-items: center; min-width: 1.7em; padding: 0 6px; height: 1.7em; border-radius: 99px; background: var(--mist); color: var(--green-2); font-size: .8rem; font-weight: 600; vertical-align: middle; }

/* ---------- services ---------- */
.services { padding: 64px 0 24px; }
.services__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.svc { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; height: 100%; padding: 20px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.svc:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--green-2); font-size: 1.5rem; }
.svc__icon img { width: 34px; height: 34px; object-fit: contain; }
.svc__icon svg { width: 26px; height: 26px; }
.svc__t { font-weight: 600; line-height: 1.35; }
.svc__ext { position: absolute; top: 14px; inset-inline-end: 14px; color: var(--muted); width: 16px; }
[dir=rtl] .svc__ext { transform: scaleX(-1); }
.svc--accent { background: var(--night); color: #fff; border-color: var(--night); }
.svc--accent .svc__icon { background: rgb(255 255 255 / .1); color: var(--citrus); }

/* ---------- home columns ---------- */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 48px 0 64px; }
.news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.ncard { background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s var(--ease); }
.ncard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ncard a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ncard__img { position: relative; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ncard:hover .ncard__img img { transform: scale(1.04); }
.ncard__img.is-empty { display: grid; place-items: center; }
.ncard__img .ncard__logo { width: 34%; height: auto; object-fit: contain; opacity: .35; filter: grayscale(1); }
.ncard__body { padding: 14px 16px 18px; }
.ncard__body time { font-size: .8rem; color: var(--muted); }
.ncard__body h3 { font-size: 1rem; font-weight: 600; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__body p { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }
.ncard--lead { grid-column: 1 / -1; }
.ncard--lead a { flex-direction: row; }
.ncard--lead .ncard__img { flex: 1.25; aspect-ratio: auto; min-height: 280px; }
.ncard--lead .ncard__body { flex: 1; padding: 26px; align-self: center; }
.ncard--lead h3 { font-size: 1.45rem; font-weight: 700; -webkit-line-clamp: 4; }
.badge { position: absolute; bottom: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgb(0 0 0 / .6); color: #fff; padding: 3px 9px; border-radius: 99px; font-size: .78rem; }

.side { display: grid; gap: 22px; align-content: start; }
.mayor { position: relative; display: block; padding: 28px 26px 24px; border-radius: var(--r-lg); background: var(--night); color: #e6f0e3; text-decoration: none; overflow: hidden; }
.mayor__q { position: absolute; top: -34px; inset-inline-end: 14px; font-size: 9rem; line-height: 1; color: var(--citrus); opacity: .9; font-weight: 800; }
.mayor h2 { color: #fff; font-size: 1.35rem; position: relative; }
.mayor p { color: #c4d7c0; margin: 0 0 14px; position: relative; }
.mayor .link-more { color: var(--citrus); }
.tenders { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.tenders .sec-head h2 { font-size: 1.2rem; }
.tenders__list { list-style: none; margin: 0; padding: 0; }
.tenders__list a { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--mist-2); color: var(--ink); text-decoration: none; font-size: .94rem; }
.tenders__list a:hover { color: var(--green-2); }
.tenders__list svg { color: var(--green); margin-top: 3px; }

.band { background: linear-gradient(120deg, var(--green-2), var(--green)); color: #fff; }
.band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 0; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.band p { margin: 4px 0 0; color: #dcebd6; }
.band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 72px 0; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.about p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.about__img { min-height: 340px; border-radius: var(--r-lg); background-size: cover; background-position: center; }

/* ---------- inner pages ---------- */
.phead { background: var(--night); color: #fff; padding: 34px 0 40px; position: relative; overflow: hidden; }
.phead::after { content: ""; position: absolute; inset-inline-end: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgb(140 179 105 / .12); }
.phead__title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 750; margin: 6px 0 0; max-width: 32ch; }
.phead__sub { margin: 6px 0 0; color: #bcd3b7; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: #a9c3a4; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { color: #d6e6d2; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page { display: grid; gap: 36px; padding: 36px 0 72px; }
.page--side { grid-template-columns: 280px minmax(0, 1fr); }
.page__main { min-width: 0; }
.cats { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; max-height: calc(100vh - 120px); overflow: auto; }
.cats__h { font-weight: 700; padding: 8px 10px; margin: 0; color: var(--green-2); }
.cats ul { list-style: none; margin: 0; padding: 0; }
.cats li { position: relative; }
.cats a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; padding-inline-end: 34px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: .93rem; line-height: 1.4; }
.cats a:hover { background: var(--mist); }
.cats li.is-on > a { background: var(--green); color: #fff; }
.cats em { font-style: normal; font-size: .75rem; color: var(--muted); align-self: center; }
.cats li.is-on > a em { color: #d8ead3; }
.cats details { margin: 0; }
.cats summary { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; list-style: none; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.cats summary::-webkit-details-marker { display: none; }
.cats summary::after { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.cats details[open] > summary::after { transform: rotate(-135deg); }
.cats details ul { padding-inline-start: 12px; border-inline-start: 2px solid var(--mist-2); margin-inline-start: 10px; }

.subcats { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.subcats a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; }
.subcats a:hover { border-color: var(--green); }
.subcats svg { color: var(--citrus); }
.subcats em { margin-inline-start: auto; font-style: normal; color: var(--muted); font-size: .8rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rows li + li { border-top: 1px solid var(--mist-2); }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; color: var(--ink); transition: background .15s; }
.row:hover { background: var(--mist); }
.row__ico { width: 40px; height: 40px; border-radius: 10px; background: var(--mist); color: var(--green-2); display: grid; place-items: center; flex: none; }
.row__t { flex: 1; font-weight: 550; min-width: 0; }
.row__t small { display: block; color: var(--muted); font-weight: 400; font-size: .87rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__m { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; flex: none; }
.tag { background: var(--mist); color: var(--green-2); padding: 2px 10px; border-radius: 99px; font-size: .78rem; }
.single-title { font-size: 1.5rem; }
.notice { background: #fff6e5; border: 1px solid #f3d29a; padding: 10px 14px; border-radius: var(--r-sm); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.pager a[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }
.pager a:hover:not([aria-current]) { border-color: var(--green); }

/* section filter */
.sfilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; position: sticky; top: 88px; z-index: 5; box-shadow: var(--shadow); }
.sfilter__q { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 0 16px; }
.sfilter__q:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgb(63 122 61 / .15); background: var(--paper); }
.sfilter__q input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: 11px 0; outline: none; color: var(--ink); }
.sfilter__sel select { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--ink); cursor: pointer; }
.sfilter__go { padding: 10px 20px; }
.sfilter__clear { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.sfilter__clear:hover { color: #b42318; }
.sfilter__count { margin: -6px 0 14px; color: var(--muted); }
.sfilter__count b { color: var(--ink); }
.sfilter.is-loading + * , .sfilter.is-loading ~ .rows, .sfilter.is-loading ~ .cards { opacity: .5; transition: opacity .2s; }
mark { background: color-mix(in srgb, var(--citrus) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 640px) { .sfilter { position: static; } .sfilter__sel, .sfilter__sel select { flex: 1; width: 100%; } .sfilter__go { display: none; } }

/* article */
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 40px); }
.article__meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.article__hero { margin: 0 0 24px; border-radius: var(--r); overflow: hidden; }
.article__hero img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.prose { font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; max-width: 78ch; }
.prose img { border-radius: var(--r-sm); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 1em 0; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose a { color: var(--green-2); font-weight: 500; }
.prose iframe { border: 0; border-radius: var(--r-sm); }
.media-frame { position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; border-radius: var(--r); overflow: hidden; background: #000; }
.media-frame iframe, .media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio { display: flex; align-items: center; gap: 12px; background: var(--mist); padding: 12px 16px; border-radius: var(--r); margin: 0 0 20px; }
.audio audio { flex: 1; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 24px 0; }
.fields > div { background: var(--mist); border-radius: var(--r-sm); padding: 10px 14px; }
.fields dt { font-size: .8rem; color: var(--muted); }
.fields dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.files { margin: 32px 0 0; }
.files__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.files__head h2 { font-size: 1.2rem; margin: 0; }
.files__filter { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font: inherit; min-width: 220px; }
.files__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.file:hover { border-color: var(--c, var(--green)); background: var(--mist); }
.file__ico { position: relative; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); display: grid; place-items: center; flex: none; }
.file__ico b { position: absolute; bottom: -6px; inset-inline-end: -6px; background: var(--c); color: #fff; font-size: .6rem; padding: 1px 4px; border-radius: 4px; }
.file__t { flex: 1; font-weight: 500; overflow-wrap: anywhere; }
.file__d { color: var(--muted); font-size: .82rem; flex: none; }
.file--main { margin-top: 20px; --c: var(--green); }

.gallery { columns: 3 220px; column-gap: 10px; margin-top: 28px; }
.gallery a { display: block; margin-bottom: 10px; border-radius: var(--r-sm); overflow: hidden; break-inside: avoid; }
.gallery img { display: block; width: 100%; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.map { margin-top: 28px; }
.map iframe, .contact__map { width: 100%; height: 320px; border: 0; border-radius: var(--r); }
.share { display: flex; align-items: center; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--mist-2); color: var(--muted); }
.share a, .share button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--green-2); border: 0; }
.share a:hover, .share button:hover { background: var(--green); color: #fff; }
.related { margin-top: 28px; }
.related h2 { font-size: 1.2rem; }
.comments { margin-top: 32px; }
.comment { background: var(--mist); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 8px; }
.comment p { margin: 0; }
.comment__by time { color: var(--muted); font-size: .8rem; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .93rem; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(63 122 61 / .15); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__hint { color: var(--muted); font-size: .85rem; margin: 0; }
.form__msg { margin: 0; font-weight: 500; }
.form__msg.ok { color: var(--green-2); background: var(--mist); padding: 12px 14px; border-radius: var(--r-sm); }
.form__msg.bad { color: #b42318; }
.err { color: #b42318; font-weight: 400; min-height: 0; }
.form button[disabled] { opacity: .6; }

.contact { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; padding: 36px 0 72px; }
.contact__info, .contact__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.contact__info ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.contact__info li { display: flex; gap: 14px; }
.contact__info li > svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--mist); color: var(--green-2); }
.contact__info b { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }
.contact__info a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* phone book */
.pb-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pb-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 0 18px; }
.pb-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgb(63 122 61 / .15); }
.pb-search input { flex: 1; border: 0; font: inherit; padding: 13px 0; outline: none; background: none; }
.pb-count { color: var(--muted); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.person__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.person__av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--green-2); font-weight: 700; font-size: 1.1rem; flex: none; }
.person__n { font-size: 1.1rem; margin: 0; }
.person__r { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.person__c { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-top: 1px solid var(--mist-2); padding-top: 10px; }
.person__c li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.person__k { color: var(--muted); }
.person__c a { color: var(--green-2); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

.sitemap { columns: 3 280px; column-gap: 28px; }
.sitemap section { break-inside: avoid; margin-bottom: 28px; }
.sitemap h2 { font-size: 1.1rem; }
.sitemap ul { padding-inline-start: 18px; margin: 0; }
.sitemap a { color: var(--ink); }
.notfound { text-align: center; padding: 80px 0; display: grid; justify-items: center; gap: 12px; }
.notfound__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--mist-2); line-height: 1; margin: 0; }
.notfound .hero__search { animation: none; box-shadow: none; border: 1px solid var(--line); margin: 12px 0; }

/* footer */
.footer { background: var(--night); color: #c5d8c1; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
.footer__title { color: #fff; font-weight: 700; font-size: 1.15rem; margin: 10px 0 4px; }
.footer__desc { margin: 0; font-size: .92rem; }
.footer__h { color: #fff; font-weight: 600; margin: 0 0 14px; }
.footer__list, .footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer__list li { display: flex; gap: 10px; align-items: flex-start; }
.footer__list svg { margin-top: 4px; color: var(--leaf); }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__social { display: flex; gap: 8px; margin-bottom: 16px; }
.footer__social a { font-size: 1.15rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .08); }
.footer__oref { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgb(255 255 255 / .1); padding: 18px 0 26px; font-size: .82rem; color: #93ad8f; }
.footer__bottom p { margin: 0; }

/* floating dock */
.dock { position: fixed; inset-inline-start: 14px; bottom: 18px; z-index: 30; display: flex; flex-direction: column; gap: 6px; padding: 7px; background: var(--night); border: 1px solid rgb(255 255 255 / .12); border-radius: 99px; box-shadow: var(--shadow); }
.dock a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.dock a:hover { background: rgb(255 255 255 / .14); }
.dock img { width: 26px; height: 26px; object-fit: contain; }

/* accessibility: floating button + panel */
.a11y-fab { position: fixed; inset-inline-end: 16px; bottom: 18px; z-index: 35; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: #0b5cd6; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgb(11 92 214 / .6), 0 0 0 1px rgb(0 0 0 / .08); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.a11y-fab svg { width: 32px; height: 32px; }
.a11y-fab:hover { transform: scale(1.07); }
.a11y-fab:focus-visible { outline: 4px solid var(--citrus); outline-offset: 3px; }
.a11y-fab.is-active::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--citrus); border: 2px solid #fff; }
.a11y-panel { position: fixed; margin: 0; inset-block: 0; inset-inline-end: 0; inset-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(400px, 100vw); border-radius: 0; background: var(--paper); color: var(--ink); padding: 0; display: none; flex-direction: column; box-shadow: -20px 0 60px -20px rgb(0 0 0 / .4); font-size: 16px; }
.a11y-panel[open] { display: flex; animation: a11yIn .3s var(--ease); }
[dir=rtl] .a11y-panel[open] { animation-name: a11yInRtl; }
@keyframes a11yIn { from { transform: translateX(100%); } }
@keyframes a11yInRtl { from { transform: translateX(-100%); } }
.a11y-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #0b5cd6; color: #fff; }
.a11y-panel__head h2 { flex: 1; font-size: 1.15rem; margin: 0; }
.a11y-panel__head .icon-btn { background: rgb(255 255 255 / .15); border-color: transparent; color: #fff; }
.a11y-panel__ico { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #0b5cd6; display: grid; place-items: center; }
.a11y-panel__ico svg { width: 24px; height: 24px; }
.a11y-panel__body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.a11y-panel__h { font-weight: 700; font-size: .9rem; margin: 18px 0 8px; color: var(--muted); }
.a11y-size { display: flex; align-items: center; gap: 8px; background: var(--mist); border-radius: var(--r); padding: 8px 10px; }
.a11y-size__l { flex: 1; font-weight: 600; }
.a11y-size button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--paper); color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.a11y-size button:hover { background: #0b5cd6; color: #fff; }
.a11y-size output { min-width: 56px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.a11y-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a11y-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border-radius: var(--r); background: var(--mist); border: 2px solid transparent; color: var(--ink); font-size: .82rem; line-height: 1.25; text-align: center; transition: border-color .15s, background .15s; }
.a11y-grid button svg { width: 24px; height: 24px; }
.a11y-grid button:hover { border-color: #9cbcf0; }
.a11y-grid button[aria-pressed=true] { background: #0b5cd6; color: #fff; border-color: #0b5cd6; }
.a11y-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.a11y-panel__foot a { color: #0b5cd6; font-weight: 600; }
.btn--ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--line); padding: 10px 16px; }
.btn--ghost-dark:hover { background: var(--mist); }
.a11y-guide { position: fixed; inset-inline: 0; top: -6px; height: 12px; z-index: 99; pointer-events: none; display: none; background: rgb(242 163 58 / .35); border-block: 2px solid #b4560a; }
html.a11y-guide .a11y-guide { display: block; }
.a11y-toggle { background: none; border: 0; padding: 4px 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(8 18 12 / .92); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-sm); animation: pop .3s var(--ease); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; }
.lightbox__x { top: 18px; inset-inline-end: 18px; }
.lightbox__prev { inset-inline-start: 18px; top: 50%; }
.lightbox__next { inset-inline-end: 18px; top: 50%; }
[dir=ltr] .lightbox__prev svg, [dir=ltr] .lightbox__next svg { transform: scaleX(-1); }

.toast { visibility: hidden; position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); background: var(--night); color: #fff; padding: 12px 20px; border-radius: 99px; z-index: 95; transition: transform .35s var(--ease); }
.toast.is-on { visibility: visible; transform: translate(-50%, 0); }

/* ---------- a11y modes ---------- */
html.a11y-contrast { --bg: #fff; --paper: #fff; --ink: #000; --muted: #1a1a1a; --line: #000; --mist: #fff; --mist-2: #000; --green: #004d00; --green-2: #003300; --night: #000; }
html.a11y-contrast .hero__media::after { background: rgb(0 0 0 / .85); }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-dark { --bg: #000; --paper: #0a0a0a; --ink: #fff; --muted: #e6e6e6; --line: #fff; --mist: #1c1c1c; --mist-2: #444; --green: #ffeb3b; --green-2: #ffeb3b; --night: #000; color-scheme: dark; }
html.a11y-dark a, html.a11y-dark .link-more, html.a11y-dark .prose a { color: #ffeb3b !important; }
html.a11y-dark .btn { background: #ffeb3b; color: #000; }
html.a11y-dark .header { background: #000; }
html.a11y-light { --bg: #fff; --paper: #fff; --mist: #fafafa; --night: #1b3a26; }
html.a11y-light .hero__media, html.a11y-light .phead::after { opacity: .25; }
html.a11y-gray :is(.utility, .header, main, .footer, .dock) { filter: grayscale(1); }
html.a11y-noimg main img, html.a11y-noimg .hero__img, html.a11y-noimg .about__img { visibility: hidden; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html.a11y-links main a { background: rgb(242 163 58 / .18); }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input { font-family: Arial, Tahoma, 'Segoe UI', sans-serif !important; letter-spacing: .02em; }
html.a11y-spacing main :is(p, li, dd, .prose, .row__t, h1, h2, h3) { line-height: 2 !important; letter-spacing: .06em !important; word-spacing: .16em !important; }
html.a11y-headings main :is(h1, h2, h3) { outline: 3px dashed #0b5cd6; outline-offset: 4px; background: rgb(11 92 214 / .06); }
html.a11y-align main :is(p, li, .prose, .prose *) { text-align: start !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9.5-6.6 1.3 4 7.6-3 1.6-4-7.7L4 19z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-focus :focus, html.a11y-focus :focus-visible { outline: 4px solid #0b5cd6 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgb(242 163 58 / .6) !important; }
html.a11y-keyboard a:focus, html.a11y-keyboard button:focus, html.a11y-keyboard input:focus, html.a11y-keyboard select:focus { outline: 4px solid #f2a33a !important; outline-offset: 2px !important; }
html.a11y-keyboard .skip { top: 12px; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .board__track ul { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .board__track ul { animation: none !important; flex-wrap: wrap; }
}

/* ---------- responsive ---------- */
@media (max-width: 1400px) and (min-width: 981px) { .brand__name { display: none; } .nav__link { font-size: .92rem; padding: 10px 8px; } }
.cats > summary { position: static; width: auto; height: auto; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; }
.cats > summary::after { display: none; }
.person__c li { flex-wrap: wrap; }
@media (max-width: 1100px) {
  .home-cols { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .burger { display: inline-grid; }
  .nav { position: fixed; inset: 0; top: 0; z-index: 60; background: var(--paper); transform: translateX(100%); transition: transform .35s var(--ease); overflow: auto; padding: 80px 16px 40px; visibility: hidden; }
  [dir=ltr] .nav { transform: translateX(-100%); }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 14px 12px; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; min-width: 0; }
  .nav__item.is-open .mega { display: block; }
  .mega__grid { columns: 1; }
  .header__actions { position: relative; z-index: 61; }
  .page--side { grid-template-columns: 1fr; }
  .cats { position: static; max-height: none; }
  .cats > summary::after { display: block; }
  .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .news__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .brand__name { font-size: .95rem; }
  .brand img { width: 44px; height: 44px; }
  .header__in { min-height: 64px; gap: 10px; }
  .news__grid { grid-template-columns: 1fr; gap: 10px; }
  .ncard:not(.ncard--lead) a { flex-direction: row; }
  .ncard:not(.ncard--lead) .ncard__img { width: 116px; aspect-ratio: auto; flex: none; }
  .ncard:not(.ncard--lead) .ncard__body { padding: 10px 14px; }
  .brand img { height: 40px; }
  .ncard--lead a { flex-direction: column; }
  .ncard--lead .ncard__img { min-height: 200px; }
  .side { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__search button { padding: 12px 18px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .dock { flex-direction: row; inset-inline-start: 50%; transform: translateX(-50%); bottom: 12px; }
  [dir=rtl] .dock { transform: translateX(50%); }
  .board__label span, .board__label { font-size: .85rem; }
  .a11y-toggle span { display: none; }
  .a11y-fab { width: 50px; height: 50px; bottom: 76px; }
  .a11y-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row__m time { display: none; }
}
@media print {
  .utility, .header, .footer, .dock, .a11y-fab, .share, .cats, .board, .comments form { display: none !important; }
  .phead { background: none; color: #000; padding: 0; }
  .article { border: 0; padding: 0; }
}

img.is-broken { visibility: hidden; }
