/* =========================================================
   Визија ЕМ — главен стил
   ========================================================= */
:root {
  --navy: #0b3a75;
  --navy-d: #082a55;
  --navy-dd: #061f40;
  --blue: #1565c0;
  --yellow: #f5b800;
  --yellow-d: #dda500;
  --red: #e02424;
  --ink: #1b2536;
  --text: #4a5568;
  --muted: #718096;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 58, 117, .08);
  --shadow-h: 0 14px 34px rgba(11, 58, 117, .16);
  --font-h: 'Montserrat', system-ui, sans-serif;
  --font-b: 'Open Sans', system-ui, sans-serif;
  --fs: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-b); color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.ico { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy-dd); padding: 10px 16px; z-index: 999; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.6em; border-radius: 6px;
  font-family: var(--font-h); font-weight: 700; font-size: .9rem; border: 2px solid transparent;
  transition: .2s ease; line-height: 1.2; text-align: center;
}
.btn-donate { white-space: nowrap; }
.btn-sm { padding: .6em 1.15em; font-size: .82rem; }
.btn-yellow { background: var(--yellow); color: var(--navy-dd); }
.btn-yellow:hover { background: var(--yellow-d); color: var(--navy-dd); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245,184,0,.35); }
.btn-blue { background: var(--navy); color: #fff; }
.btn-blue:hover { background: var(--navy-d); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-blue { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-blue:hover { background: var(--navy); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dd); color: #c9d6ea; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar-info li { display: flex; align-items: center; gap: 6px; }
.topbar-info .ico { color: var(--yellow); }
.topbar a { color: #c9d6ea; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.social { display: flex; gap: 12px; align-items: center; }
.top-search { display: flex; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.top-search input { background: transparent; border: 0; color: #fff; padding: 5px 10px; width: 150px; font-size: .8rem; }
.top-search input::placeholder { color: #9fb2cf; }
.top-search button { background: transparent; border: 0; color: #c9d6ea; padding: 0 9px; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo { height: 66px; width: auto; transition: height .25s; }
.site-header.scrolled .logo { height: 56px; }
.f-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 12px 16px; }
.f-logo img { height: 84px; width: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-h); }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; color: var(--navy); }
.brand-text em { font-style: normal; font-size: 1.05rem; font-weight: 600; letter-spacing: .1em; color: var(--blue); }
.brand-text small { font-family: var(--font-b); font-size: .66rem; color: var(--muted); margin-top: 3px; }
.brand-light strong, .brand-light em { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 12px; font-family: var(--font-h); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink); position: relative; white-space: nowrap;
}
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--yellow);
  transform: scaleX(0); transition: transform .25s; border-radius: 2px;
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav > ul > li > a.active { color: var(--navy); }
.has-sub > a { padding-right: 22px !important; }
.sub-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%) rotate(90deg); background: none; border: 0; padding: 2px; color: var(--muted); pointer-events: none; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; list-style: none; margin: 0; padding: 8px 0;
  border-radius: 8px; box-shadow: var(--shadow-h); border-top: 3px solid var(--yellow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 18px; color: var(--ink); font-size: .88rem; }
.sub a:hover { background: var(--bg-alt); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 6px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(460px, 62vh, 620px); overflow: hidden; background: var(--navy-dd); }
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
  background-color: var(--navy-dd); background-position: center 30%; background-size: cover; background-repeat: no-repeat;
}
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,31,64,.92) 0%, rgba(6,31,64,.7) 38%, rgba(6,31,64,.05) 70%); }
.hero-slide > .container, .page-hero > .container, .cta-band > .container { position: relative; z-index: 1; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide.is-active .hero-content > * { animation: up .8s both; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-content { max-width: 560px; color: #fff; padding-left: 40px; }
.kicker { display: inline-block; color: var(--yellow); font-family: var(--font-h); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: .45em; }
.hero-title span { color: var(--yellow); }
.hero-content p { font-size: 1.08rem; color: #dfe7f3; max-width: 470px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6); background: rgba(6,31,64,.35); color: #fff; display: grid; place-items: center; z-index: 3; transition: .2s;
}
.hero-arrow:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-dd); }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border-radius: 6px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: .3s; }
.hero-dots button.is-active { width: 34px; background: var(--yellow); }

/* ---------- Features strip ---------- */
.features { background: #fff; position: relative; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.feature { display: flex; align-items: center; gap: 16px; padding: 28px 22px; color: var(--text); border-right: 1px solid var(--line); transition: background .2s; }
.feature:last-child { border-right: 0; }
.feature:hover { background: var(--bg-alt); color: var(--text); }
.feature .f-ico { color: var(--navy); transition: transform .25s; }
.feature:hover .f-ico { transform: scale(1.12); color: var(--blue); }
.feature strong { display: block; font-family: var(--font-h); color: var(--ink); font-size: .95rem; }
.feature small { font-size: .82rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-family: var(--font-h); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 30px; height: 3px; background: var(--yellow); border-radius: 2px; }
.h-title { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; color: var(--navy); }
.lead { font-size: 1.08rem; color: var(--text); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .h-title { margin: 0; }

.about-split { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: center; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card { color: var(--text); display: block; }
.mini-card img { aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; transition: .35s; }
.mini-card:hover img { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.mini-card h3 { font-size: 1rem; margin-bottom: .35em; }
.mini-card p { font-size: .88rem; margin-bottom: .6em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 700; font-size: .82rem; color: var(--blue); }
.more .ico { transition: transform .2s; }
a:hover .more .ico, .more:hover .ico { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats-band { background: var(--navy); background-image: linear-gradient(120deg, var(--navy-d), var(--navy) 60%, var(--blue)); padding: 46px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-h); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--yellow); line-height: 1.1; }
.stat span { color: #d5e0f0; font-size: .92rem; }
.stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 20px; margin-top: 50px; }
.stats-card .stat strong { color: var(--navy); }
.stats-card .stat span { color: var(--muted); }
.stats-card .stat + .stat { border-left: 1px solid var(--line); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.card-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.tag { position: absolute; left: 14px; top: 14px; background: var(--yellow); color: var(--navy-dd); font-family: var(--font-h); font-weight: 700; font-size: .7rem; padding: 4px 10px; border-radius: 4px; }
.tag-static { position: static; display: inline-block; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body time { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: .45em; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { font-size: .9rem; flex: 1; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; min-height: 270px; display: flex; align-items: center; color: #fff;
  background-color: var(--navy-d); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,31,64,.93) 0%, rgba(8,42,85,.75) 45%, rgba(8,42,85,.2) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: .3em; }
.page-hero h1::after { content: ''; display: block; width: 60px; height: 4px; background: var(--yellow); border-radius: 2px; margin-top: 14px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: #cfdaea; flex-wrap: wrap; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- About ---------- */
.values { margin-top: 44px; }
.value-card, .access-card, .support-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; text-align: center; transition: .3s;
}
.value-card:hover, .access-card:hover, .support-card:hover { border-color: transparent; box-shadow: var(--shadow-h); transform: translateY(-5px); }
.v-ico { display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: #eaf1fb; color: var(--navy); margin-bottom: 18px; }
.value-card h3, .access-card h3, .support-card h3 { font-size: 1.1rem; }
.value-card p { font-size: .92rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split-img img { border-radius: 14px; box-shadow: var(--shadow-h); aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
.member .avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 5px solid #fff; box-shadow: var(--shadow); }
.avatar-init { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-family: var(--font-h); font-size: 2.6rem; font-weight: 800; letter-spacing: .03em; }
.member h3 { font-size: 1.02rem; margin-bottom: .2em; }
.member > span { color: var(--muted); font-size: .88rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0 34px; }
.filters button { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 20px; border-radius: 6px; font-family: var(--font-h); font-weight: 600; font-size: .84rem; transition: .2s; }
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-grid > .is-hidden { display: none !important; }
.empty-filter, .empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty .ico { color: #c3cfe0; margin: 0 auto 10px; }

.idea-box { margin-top: 60px; text-align: center; background: linear-gradient(135deg, #eef4fc, #e3edf9); border-radius: 14px; padding: 44px 28px; border: 1px solid #d6e3f4; }
.idea-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--navy); margin-bottom: 14px; box-shadow: var(--shadow); }
.idea-box h2 { color: var(--navy); font-size: 1.5rem; }
.idea-box p { max-width: 560px; margin: 0 auto 22px; }

/* ---------- Accessibility page ---------- */
.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; max-width: 1000px; }
.access-card { display: flex; gap: 22px; text-align: left; align-items: flex-start; }
.access-card .v-ico { margin: 0; width: 70px; height: 70px; flex-shrink: 0; }
.access-card p { margin: 0; font-size: .93rem; }
.res-list { display: grid; gap: 14px; margin-top: 24px; }
.res-item { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: .25s; }
.res-item:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--text); }
.res-item > .ico:last-child { margin-left: auto; color: var(--muted); transition: .2s; }
.res-item:hover > .ico:last-child { color: var(--navy); transform: translateX(4px); }
.r-ico { color: var(--navy); }
.r-txt strong { display: block; color: var(--ink); font-family: var(--font-h); font-size: .98rem; }
.r-txt small { font-size: .87rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16/11; background: #dde5f0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.08); }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(6,31,64,.85)); color: #fff; font-size: .84rem; font-weight: 600; opacity: 0; transform: translateY(10px); transition: .3s; }
.g-item:hover .g-cap, .g-item:focus .g-cap { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; background: rgba(4,15,32,.94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 6px; margin: 0 auto; }
.lightbox figcaption { color: #dfe7f3; margin-top: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 50%; width: 50px; height: 50px; display: grid; place-items: center; }
.lightbox button:hover { background: var(--yellow); color: var(--navy-dd); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.c-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 20px; }
.c-list li { display: flex; gap: 16px; align-items: flex-start; }
.c-ico { width: 48px; height: 48px; border-radius: 10px; background: #eaf1fb; color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.c-list strong { display: block; color: var(--ink); font-family: var(--font-h); font-size: .92rem; }
.social-sq a { width: 42px; height: 42px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: .2s; }
.social-sq a:hover { background: var(--yellow); color: var(--navy-dd); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px; box-shadow: var(--shadow); }
.form .f-row { margin-bottom: 18px; }
.form .f-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--red); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd9e7; border-radius: 6px; font: inherit; font-size: .95rem; color: var(--ink); background: #fbfcfe; transition: .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.form [aria-invalid="true"] { border-color: var(--red); background: #fff6f6; }
.form textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: #e7f7ee; border: 1px solid #a7e0bf; color: #145c34; }
.alert-err { background: #fdecec; border: 1px solid #f5b5b5; color: #8a1c1c; }
.map { margin-top: 60px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Support ---------- */
.support { margin-top: 44px; }
.support-card p { font-size: .92rem; min-height: 3em; }
.s-ico { display: inline-grid; place-items: center; color: var(--navy); margin-bottom: 14px; height: 60px; }
.s-red { color: var(--red); }
.bank-box { max-width: 720px; margin: 40px auto 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 30px 34px; animation: up .4s both; }
.bank-box h3 { color: var(--navy); }
.bank-box dl { margin: 0 0 14px; display: grid; gap: 10px; }
.bank-box dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.bank-box dt { font-weight: 600; color: var(--ink); }
.bank-box dd { margin: 0; }
.copy { border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 4px; font-size: .75rem; padding: 2px 8px; margin-left: 8px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; padding: 70px 0; background-color: var(--navy-d); background-position: center 60%; background-size: cover; background-repeat: no-repeat; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,31,64,.95), rgba(8,42,85,.75) 55%, rgba(8,42,85,.15)); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 14px; }
.cta-band h2 .ico { color: var(--yellow); }
.cta-band p { color: #dbe4f1; max-width: 560px; margin: 0; }
.cta-photo { padding: 90px 0; }

/* ---------- Detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.detail-img { width: 100%; border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 22px; }
.detail-meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 10px; flex-wrap: wrap; }
.detail-meta > span { display: flex; align-items: center; gap: 6px; }
.detail h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.prose { font-size: 1.02rem; margin-bottom: 30px; }
.sidebar { position: sticky; top: 110px; background: var(--bg-alt); border-radius: 14px; padding: 26px; }
.sidebar h3 { font-size: 1.05rem; color: var(--navy); }
.side-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.side-item img { width: 76px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.side-item strong { display: block; font-size: .86rem; line-height: 1.35; }
.side-item small { color: var(--muted); font-size: .76rem; }
.side-item:hover strong { color: var(--blue); }
.side-cta { text-align: center; background: var(--navy); color: #d5e0f0; border-radius: 10px; padding: 24px 20px; margin-top: 22px; }
.side-cta .ico { color: var(--yellow); margin: 0 auto 8px; }
.side-cta h4 { color: #fff; font-size: 1rem; }
.side-cta p { font-size: .86rem; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.pager span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager a:hover { border-color: var(--navy); color: var(--navy); }
.search-big { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 30px; }
.search-big input { flex: 1; padding: 13px 16px; border: 1px solid #cfd9e7; border-radius: 6px; font: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dd); color: #b8c7dd; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 44px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--yellow); border-radius: 2px; }
.f-about p { margin: 18px 0; }
.f-links, .f-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-links a, .f-contact a { color: #b8c7dd; }
.f-links a:hover, .f-contact a:hover { color: var(--yellow); }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ico { color: var(--yellow); margin-top: 3px; }
.social-lg a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: .2s; }
.social-lg a:hover { background: var(--yellow); color: var(--navy-dd); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .82rem; text-align: center; }

/* ---------- Floating tools ---------- */
.a11y { position: fixed; left: 0; bottom: 90px; z-index: 60; display: flex; flex-direction: column; background: var(--navy); border-radius: 0 8px 8px 0; overflow: hidden; box-shadow: var(--shadow-h); }
.a11y button { width: 44px; height: 42px; border: 0; background: transparent; color: #fff; font-family: var(--font-h); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.a11y button + button { border-top: 1px solid rgba(255,255,255,.12); }
.a11y button:hover, .a11y button[aria-pressed="true"] { background: var(--yellow); color: var(--navy-dd); }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--navy-dd); display: grid; place-items: center; box-shadow: var(--shadow-h); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 60; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- High contrast mode ---------- */
body.hc { --text: #000; --ink: #000; --muted: #222; --bg-alt: #fff; --line: #000; --navy: #001a4d; --blue: #0033a0; }
body.hc .card, body.hc .value-card, body.hc .access-card, body.hc .support-card, body.hc .res-item, body.hc .form-card { border: 2px solid #000; box-shadow: none; }
body.hc a:not(.btn) { text-decoration: underline; }
body.hc .hero-slide::before, body.hc .page-hero::before, body.hc .cta-band::before { background: rgba(0,0,0,.85); }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .main-nav > ul > li > a { padding: 10px 9px; font-size: .74rem; }
  .main-nav { gap: 14px; }
  .brand-text small { display: none; }
}
@media (max-width: 1180px) {
  .main-nav > ul > li > a { padding: 10px 7px; font-size: .7rem; }
  .btn-donate { padding: .7em 1em; }
  .has-sub > a { padding-right: 18px !important; }
  .main-nav { gap: 12px; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(340px, 86vw); background: #fff; flex-direction: column; align-items: stretch;
    padding: 80px 22px 30px; gap: 20px; box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .35s ease; overflow-y: auto; z-index: 80;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { font-size: .9rem; padding: 14px 4px; }
  .main-nav > ul > li > a::after { display: none; }
  .sub-toggle { pointer-events: auto; top: 26px; right: 0; padding: 8px; transition: transform .25s; }
  .has-sub.open .sub-toggle { transform: translateY(-50%) rotate(-90deg); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 10px; display: none; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .btn-donate { justify-content: center; }
  .nav-toggle[aria-expanded="true"] { position: fixed; right: 18px; top: 18px; z-index: 90; }
  body.nav-open .site-header { z-index: 100; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(6,31,64,.5); z-index: 70; }
  .about-split, .split, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-info .hide-sm, .top-search { display: none; }
  .topbar-in { min-height: 36px; }
  .topbar-info { gap: 14px; }
  .section { padding: 56px 0; }
  .hero-content { padding-left: 0; }
  .hero-arrow { display: none; }
  .hero-slide { background-position: 65% center; }
  .hero-slide::before { background: linear-gradient(rgba(6,31,64,.55), rgba(6,31,64,.88)); }
  .grid-3, .about-cards, .access-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stats-card .stat + .stat { border-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form .f-2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .bank-box dl > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 10px; }
  .a11y button { width: 38px; height: 38px; }
  .logo { height: 54px; }
}
@media (max-width: 480px) {
  .topbar-info .addr { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .team { grid-template-columns: 1fr 1fr; gap: 18px; }
  .member .avatar { width: 110px; height: 110px; font-size: 2rem; }
  .search-big { flex-direction: column; }
}

/* ---------- Јазик (МК / EN) ---------- */
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.1); border-radius: 4px; padding: 2px; }
.lang-switch a { color: #c9d6ea; font-family: var(--font-h); font-weight: 700; font-size: .72rem; padding: 3px 8px; border-radius: 3px; letter-spacing: .04em; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on { background: var(--yellow); color: var(--navy-dd); }
.lang-mobile { display: none; }
@media (max-width: 1024px) {
  .lang-mobile { display: flex; background: var(--bg-alt); padding: 4px; }
  .lang-mobile a { flex: 1; text-align: center; color: var(--ink); font-size: .85rem; padding: 9px; }
  .lang-mobile a.on { background: var(--navy); color: #fff; }
}
@media (max-width: 760px) { .topbar-right .lang-switch:not(.lang-mobile) { display: flex; } }

/* ---------- Донации ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin-left: auto; margin-right: auto; }
.donate-box { max-width: 900px; margin: 44px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); text-align: center; }
.donate-head { display: flex; gap: 18px; align-items: center; text-align: left; margin-bottom: 26px; }
.donate-head .s-ico { margin: 0; height: auto; }
.donate-head h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: .2em; }
.donate-head p { margin: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.pkg { position: relative; border: 2px solid var(--line); background: #fbfcfe; border-radius: 12px; padding: 24px 10px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: .2s; color: var(--ink); }
.pkg strong { font-family: var(--font-h); font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.lang-mk .pkg strong { font-size: 1.35rem; }
.pkg small { color: var(--muted); font-size: .78rem; }
.pkg:hover { border-color: var(--blue); transform: translateY(-3px); }
.pkg.is-selected { border-color: var(--yellow); background: #fff9e6; box-shadow: 0 8px 22px rgba(245,184,0,.25); }
.pkg.is-selected strong { color: var(--navy-dd); }
.pkg-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .66rem; font-weight: 700; font-family: var(--font-h); padding: 3px 10px; border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }
.btn-lg { padding: 1em 2.4em; font-size: 1rem; }
.small-note { margin: 14px 0 0; display: flex; gap: 6px; justify-content: center; align-items: center; }
.bank-box[hidden] { display: block; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(4,15,32,.7); display: grid; place-items: center; padding: 20px; animation: fadeIn .25s both; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: #fff; border-radius: 18px; padding: 44px 36px 34px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.modal-box h2 { color: var(--navy); font-size: 1.8rem; margin-bottom: .3em; }
.modal-heart { width: 92px; height: 92px; border-radius: 50%; background: #fdecec; color: var(--red); display: grid; place-items: center; margin: 0 auto 18px; animation: beat 1.4s ease-in-out infinite; }
.modal-amount { font-family: var(--font-h); font-weight: 700; color: var(--ink); }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 50%; }
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.1); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }

@media (max-width: 760px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .donate-box { padding: 26px 18px; }
  .donate-head { flex-direction: column; text-align: center; }
}
.bank-box { max-width: 900px; }

/* ---------- Донација: слободен износ ---------- */
.amount-display { display: flex; width: fit-content; align-items: baseline; justify-content: center; gap: 6px; margin: 4px auto 18px; padding: 6px 18px 10px; border-bottom: 3px solid var(--yellow); }
.amount-display input { border: 0; background: transparent; font-family: var(--font-h); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--navy); text-align: center; width: 4ch; min-width: 2ch; max-width: 11ch; padding: 0; outline: none; }
.amount-display input.invalid { color: var(--red); }
.amount-display .cur { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.3rem, 3.5vw, 2rem); color: var(--navy); }
.amount-display .cur-pre { order: -1; }
.amount-display:focus-within { border-bottom-color: var(--blue); }
.range-wrap { max-width: 640px; margin: 0 auto 18px; }
#donateRange { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow) var(--fill, 0%), #dfe6f1 var(--fill, 0%)); outline: none; cursor: pointer; margin: 14px 0 8px; }
#donateRange::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); box-shadow: 0 4px 12px rgba(11,58,117,.3); transition: transform .15s; }
#donateRange::-webkit-slider-thumb:hover { transform: scale(1.12); }
#donateRange::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); box-shadow: 0 4px 12px rgba(11,58,117,.3); }
#donateRange::-moz-range-track { background: transparent; }
#donateRange:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--yellow); outline-offset: 2px; }
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.qa { border: 2px solid var(--line); background: #fbfcfe; border-radius: 30px; padding: 7px 16px; font-family: var(--font-h); font-weight: 700; font-size: .86rem; color: var(--navy); transition: .2s; }
.qa:hover { border-color: var(--blue); }
.qa.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.amount-error { color: var(--red); font-weight: 600; font-size: .9rem; margin: -10px 0 16px; }
#donateBtn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
#donateBtn.loading { opacity: .7; pointer-events: none; }
