/* =========================================================
   CF Kosova — Shoqata për Personat me Fibrozë Cistike
   ========================================================= */
:root {
  --ink: #0b1f3a;
  --navy: #0b3b73;
  --navy-2: #0e2a52;
  --blue: #1d64b3;
  --sky: #38a6e5;
  --sun: #f5d914;
  --sun-2: #ffe75a;
  --sun-deep: #d9b400;
  --bg: #f7f5f0;
  --paper: #fffdf8;
  --surface: #ffffff;
  --muted: #56667c;
  --line: #e4e0d5;
  --line-2: #d4dbe6;
  --ok: #178a5b;
  --err: #c2344d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
  --shadow: 0 12px 34px -12px rgba(11, 31, 58, .22);
  --shadow-lg: 0 30px 70px -24px rgba(11, 31, 58, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ico { flex: none; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 1000; background: var(--sun); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--sun)); }
.eyebrow.center { display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--bh); padding: 0 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { --bh: 58px; padding: 0 1.9rem; font-size: 1.05rem; }
.btn-sm { --bh: 38px; padding: 0 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 100, 179, .7); }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-donate { background: var(--sun); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(217, 180, 0, .9); }
.btn-donate:hover { background: var(--sun-2); color: var(--ink); box-shadow: 0 16px 30px -12px rgba(217, 180, 0, .95); }
.btn-donate .ico { color: #d23a52; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--navy); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: #eaf2fb; color: var(--blue); font-size: .85rem; font-weight: 700; }
.pill-warn { background: #fff4c2; color: #7a5d00; }
.btn-fb { background: #1877f2; color: #fff; box-shadow: 0 10px 22px -10px rgba(24, 119, 242, .8); }
.btn-fb:hover { background: #0f5fcb; color: #fff; }
.head-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.fb-card { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, #eef4ff, #fff); border: 1px solid #d6e4fb; }
.fb-card h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.fb-card p { margin: 0; color: var(--muted); }
.fb-card .btn { margin-left: auto; }
.fb-card-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #1877f2; color: #fff; flex: none; }
@media (max-width: 640px) { .fb-card { flex-wrap: wrap; } .fb-card .btn { margin-left: 0; } }
.info-card-link { text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.info-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.info-card-link p { color: #1877f2 !important; font-weight: 700; }
.info-ico-fb { background: #1877f2 !important; color: #fff !important; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
[data-parallax] { will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.site-header .container { max-width: 1400px; }
.brand { position: relative; display: block; width: 310px; height: 62px; flex: none; transition: width .35s, height .35s; }
.site-header.compact .brand { width: 265px; height: 53px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.brand-dark { opacity: 0; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: .55rem .85rem; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: color .25s, background .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; border-radius: 2px;
  background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }
.header-cta { --bh: 44px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); flex: none; }
.lang-switch a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 .5rem; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; transition: background .2s, color .2s; }
.lang-switch a:hover { background: rgba(255, 255, 255, .18); }
.lang-switch a[aria-current] { background: #fff; color: var(--navy); }
.site-header.scrolled .lang-switch { background: #eef2f8; border-color: var(--line-2); }
.site-header.scrolled .lang-switch a { color: var(--ink); }
.site-header.scrolled .lang-switch a:hover { background: #dfe7f2; }
.site-header.scrolled .lang-switch a[aria-current] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; }

.site-header.scrolled { background: rgba(255, 253, 248, .95); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(11, 31, 58, .3); }
.site-header.compact { height: 70px; }
.site-header.scrolled .brand-light { opacity: 0; }
.site-header.scrolled .brand-dark { opacity: 1; }
.site-header.scrolled .main-nav a { color: var(--ink); }
.site-header.scrolled .main-nav a[aria-current="page"] { color: var(--blue); }

@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s, background .3s; }
  .scrolled .nav-toggle { background: #eef2f8; }
  .scrolled .nav-toggle span { background: var(--ink); }
  .main-nav {
    position: fixed; inset: 0; margin: 0; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    background: radial-gradient(120% 80% at 100% 0%, #1d64b3 0%, var(--navy-2) 55%, #081a33 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .main-nav ul { flex-direction: column; gap: .2rem; }
  .main-nav a { font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.4rem); color: #fff !important; padding: .35rem 0; border-radius: 0; }
  .main-nav a::after { left: 0; right: auto; width: 60px; bottom: 0; }
  .nav-mobile-extra { display: grid; gap: .8rem; }
  .nav-mobile-extra a { display: flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-size: 1rem; color: rgba(255, 255, 255, .85) !important; }
  .nav-open .main-nav { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
  .nav-open .site-header { background: #fffdf8; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .lang-switch { margin-left: auto; position: relative; z-index: 2; }
  .header-cta { position: relative; z-index: 2; }
  .header-inner { gap: .6rem; }

  .brand { z-index: 2; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 1360px) { .brand { width: 250px; height: 50px; } .site-header.compact .brand { width: 235px; height: 47px; } }
@media (max-width: 1200px) { .brand, .site-header.compact .brand { width: 260px; height: 52px; } }
@media (max-width: 520px) {
  .brand, .site-header.compact .brand { width: 175px; height: 35px; }
  .header-inner { gap: .45rem; }
  .header-cta, .nav-toggle { width: 40px; height: 40px; --bh: 40px; }
  .lang-switch a { min-width: 30px; height: 28px; padding: 0 .35rem; font-size: .74rem; }
  .header-cta span { display: none; }
  .header-cta { width: 44px; padding: 0; }
}

/* ---------- Hero (ballina) ---------- */
.hero {
  position: relative; min-height: min(80svh, 45vw); display: flex; align-items: center; overflow: hidden; isolation: isolate;
  color: #fff; padding: calc(var(--header-h) + 3rem) 0 7rem;
}
.hero-bg, .page-hero-bg, .quote-bg, .single-bg {
  position: absolute; inset: -22% 0; background-size: cover; background-position: center; z-index: -3;
}
.hero .hero-bg { inset: -6% 0; background-position: center 55%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 26, 51, .86) 0%, rgba(8, 26, 51, .68) 38%, rgba(8, 26, 51, .2) 60%, transparent 76%),
    linear-gradient(180deg, rgba(8, 26, 51, .45) 0%, transparent 18%);
}
@media (max-width: 760px) {
  .hero { min-height: 80svh; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 26, 51, .55) 0%, rgba(8, 26, 51, .72) 55%, rgba(8, 26, 51, .85) 100%); }
}
.hero-swoosh { position: absolute; right: -6%; bottom: -22%; width: min(46vw, 620px); height: auto; z-index: -1; overflow: visible; opacity: .85; }
.hero-swoosh .sw { fill: none; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease) .3s forwards; }
.sw-blue { stroke: var(--sky); stroke-width: 22; opacity: .9; }
.sw-sun { stroke: var(--sun); stroke-width: 30; animation-delay: .6s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bubbles span {
  position: absolute; bottom: -40px; left: calc(var(--i) * 7.3% + 2%);
  width: calc(8px + var(--i) * 1.6px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  animation: rise calc(9s + var(--i) * .9s) linear infinite; animation-delay: calc(var(--i) * -1.3s);
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(18px, -50vh); }
  100% { transform: translate(-10px, -105vh); opacity: 0; }
}
.hero-content { max-width: 1240px; }
.hero .eyebrow { color: var(--sun); }
.hero .eyebrow::before { background: var(--sun); }
.hero-title { color: #fff; max-width: 13ch; text-shadow: 0 2px 24px rgba(8, 26, 51, .45); font-size: clamp(2.8rem, 7.4vw, 6.2rem); line-height: 1.02; margin-bottom: 1.4rem; }
.hero-text { max-width: 52ch; text-shadow: 0 1px 12px rgba(8, 26, 51, .6); font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .88); margin-bottom: 2.2rem; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.cta-actions { justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 2.2rem; width: 28px; height: 46px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .bubbles, .scroll-cue span { animation: none; display: none; } .hero-swoosh .sw { animation: none; stroke-dashoffset: 0; } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -4.5rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 2rem 1.6rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; color: var(--navy); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat:nth-child(2) .stat-num { color: var(--blue); }
.stat:nth-child(3) .stat-num { color: #c2344d; }
.stat span { color: var(--muted); font-size: .95rem; font-weight: 600; line-height: 1.4; display: block; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .stat { padding: 1.4rem 1.1rem; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-media { position: relative; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); background: #dfe6ef; }
.about-img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.about-media::before {
  content: ""; position: absolute; inset: auto -26px -26px auto; width: 70%; height: 70%; z-index: -1;
  border-radius: var(--radius-lg); border: 3px solid var(--sun);
}
.about-badge {
  position: absolute; left: -22px; bottom: 12%; display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.3rem; border-radius: 20px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
}
.about-badge strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--sun); }
.about-badge span { font-size: .82rem; line-height: 1.25; opacity: .85; font-weight: 600; }
.pillars { display: grid; gap: 1rem; margin: 1.8rem 0 2rem; }
.pillar { display: flex; gap: 1.1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; }
.pillar-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; flex: none; }
.pillar:nth-child(2) .pillar-ico { background: linear-gradient(135deg, #e0b800, var(--sun)); color: var(--ink); }
.pillar:nth-child(3) .pillar-ico { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.note.note-lang { margin-bottom: 1.6rem; background: #eaf2fb; color: var(--navy); }
.note { display: flex; gap: .7rem; align-items: center; padding: 1rem 1.2rem; border-radius: 14px; background: #fff8cf; color: #5b4800; font-weight: 700; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .about-badge { left: 12px; }
  .about-media::before { inset: auto -12px -12px auto; }
}

/* ---------- Quote band (parallax) ---------- */
.quote-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4.5rem, 10vw, 7.5rem) 0; color: #fff; }
.quote-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, rgba(8, 26, 51, .93), rgba(29, 100, 179, .78)); }
.quote-inner { max-width: 980px; text-align: center; }
.quote-mark { width: 64px; margin: 0 auto 1.6rem; color: var(--sun); }
.quote-band blockquote { margin: 0 0 1.4rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.28; letter-spacing: -.01em; }
.quote-cite { color: rgba(255, 255, 255, .75); font-weight: 600; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(1.5rem, 3.5vw, 2.4rem); }
.section-cta { margin-top: 2rem; }
.section-head.center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { color: var(--muted); font-size: 1.1rem; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head.split h2 { margin: 0; max-width: 20ch; }

/* ---------- Impact ---------- */
.impact { background: linear-gradient(180deg, var(--bg), #eef3f9); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; perspective: 1000px; }
.impact-card {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d;
  transition: box-shadow .4s var(--ease), transform .15s linear;
}
.impact-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  border: 14px solid var(--sun); opacity: .18; transition: transform .6s var(--ease);
}
.impact-card:hover { box-shadow: var(--shadow-lg); }
.impact-card:hover::after { transform: scale(1.25); }
.impact-card h3 { font-size: 1.22rem; }
.impact-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.impact-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 1.4rem; background: #eaf2fb; color: var(--blue); }
.impact-card:nth-child(2) .impact-ico { background: #fff6c7; color: #8a6c00; }
.impact-card:nth-child(3) .impact-ico { background: #fde8ec; color: #c2344d; }
.impact-card:nth-child(4) .impact-ico { background: #e3f4fc; color: #137bb5; }
@media (max-width: 1000px) { .impact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .impact-grid { grid-template-columns: 1fr; } }

/* ---------- Documents / flip covers ---------- */
.resources { overflow: hidden; }
.resources-deco { position: absolute; right: -180px; top: 10%; width: 520px; height: 520px; border-radius: 50%; border: 40px solid rgba(56, 166, 229, .1); pointer-events: none; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.doc-card { text-decoration: none; color: var(--ink); }
.doc-card h3 { font-size: 1.08rem; margin: 1.1rem 0 0; transition: color .25s; }
.doc-card:hover h3 { color: var(--blue); }
.doc-cover {
  position: relative; display: block; aspect-ratio: 1 / 1.414; border-radius: 6px 14px 14px 6px; overflow: hidden;
  background: linear-gradient(135deg, #1d64b3, #0b3b73); box-shadow: -6px 0 0 -2px #d9dfe8 inset, var(--shadow);
  transform: perspective(1200px) rotateY(0); transform-origin: left center; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.doc-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; z-index: 2; background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .15) 60%, transparent); }
.doc-cover img, .doc-cover canvas { width: 100%; height: 100%; object-fit: cover; }
.doc-cover[data-pdf-cover] { background: linear-gradient(135deg, #f4f7fc, #e3ebf6); }
.doc-cover[data-pdf-cover]::after {
  content: ""; position: absolute; inset: 0; background:
    url("../img/icon-192.png") center 40% / 42% no-repeat;
  opacity: .9;
}
.doc-cover.has-canvas::after { display: none; }
.doc-open {
  position: absolute; left: 50%; bottom: 1rem; z-index: 3; transform: translate(-50%, 12px); opacity: 0;
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-weight: 800; font-size: .88rem; white-space: nowrap;
  transition: opacity .35s, transform .35s var(--ease);
}
a:hover > .doc-cover, .doc-cover:hover { transform: perspective(1200px) rotateY(-14deg); box-shadow: -6px 0 0 -2px #d9dfe8 inset, 18px 24px 40px -16px rgba(11, 31, 58, .45); }
a:hover > .doc-cover .doc-open, .doc-cover:hover .doc-open, .doc-cover:focus-visible .doc-open { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .doc-open { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 900px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }

.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.6rem; }
.lib-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.3rem; padding: 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .35s, transform .35s var(--ease); }
.lib-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.lib-cover .doc-open { display: none; }
.lib-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.lib-body h3 a { color: var(--ink); text-decoration: none; }
.lib-body h3 a:hover { color: var(--blue); }
.lib-body p { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; }
.lib-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 420px) { .library { grid-template-columns: 1fr; } .lib-item { grid-template-columns: 96px 1fr; gap: 1rem; padding: 1rem; } }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-grid.few { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.post-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eef6; }
.post-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-thumb > img { transform: scale(1.07); }
.post-thumb-empty { display: grid; place-items: center; height: 100%; }
.post-thumb-empty img { width: 34%; opacity: .85; }
.post-thumb time { position: absolute; left: 1rem; top: 1rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: .8rem; font-weight: 800; color: var(--navy); }
.post-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.28rem; }
.post-body h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 92% / 0 30% no-repeat; transition: background-size .45s var(--ease); }
.post-card:hover .post-body h3 a { background-size: 100% 30%; }
.post-body p { color: var(--muted); font-size: .96rem; flex: 1; }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 2.4rem; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.pf-media { position: relative; display: block; min-height: 340px; overflow: hidden; background: #e8eef6; }
.pf-media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.pf-body { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.pf-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-top: 1rem; }
.pf-body h2 a { color: var(--ink); text-decoration: none; }
.pf-body p { color: var(--muted); }
@media (max-width: 820px) { .post-featured { grid-template-columns: 1fr; } .pf-media { min-height: 240px; } }

.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pager a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.pager a[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Gallery ---------- */
.gallery-strip { background: var(--paper); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.strip-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #e3e9f1; }
.strip-item:nth-child(3n+1) { transform: translateY(1.6rem); }
.js .strip-item.reveal.in:nth-child(3n+1) { transform: translateY(1.6rem); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.strip-item:hover img { transform: scale(1.08); }
@media (max-width: 600px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip-item:nth-child(3n+1), .js .strip-item.reveal.in:nth-child(3n+1) { transform: none; } }

.masonry { columns: 3 300px; column-gap: 1.1rem; }
.masonry-item { position: relative; display: block; margin-bottom: 1.1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: #e3e9f1; }
.masonry-item img { width: 100%; transition: transform .8s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-cap {
  position: absolute; inset: auto 0 0; padding: 2.4rem 1.1rem 1rem; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(8, 26, 51, .85)); transform: translateY(100%); transition: transform .4s var(--ease);
}
.masonry-item:hover .masonry-cap, .masonry-item:focus-visible .masonry-cap { transform: none; }
@media (hover: none) { .masonry-cap { transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 4rem 1rem; background: rgba(6, 18, 36, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); margin-top: 1rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .25s; }
.lb-btn:hover { background: var(--sun); color: var(--ink); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -26px; }
.lb-next { right: 1rem; top: 50%; margin-top: -26px; }

/* ---------- Partners marquee ---------- */
.partners { padding: 2.8rem 0 3.4rem; background: var(--paper); border-top: 1px solid var(--line); }
.marquee { overflow: hidden; margin-top: 1.4rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner { display: grid; place-items: center; width: 230px; height: 120px; padding: 1rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); flex: none; transition: box-shadow .3s, transform .3s var(--ease); }
.partner:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partner img { max-height: 84px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - .6rem)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .partner[aria-hidden] { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3.8rem, 8vw, 6rem) 0; color: #fff; text-align: center; }
.cta-bg { position: absolute; inset: -30% 0; z-index: -2; background: radial-gradient(60% 80% at 20% 30%, #2677c9 0%, transparent 60%), radial-gradient(50% 60% at 90% 80%, #1a5aa0 0%, transparent 60%), var(--navy-2); }
.cta-arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.cta-inner { max-width: 820px; }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-band p { font-size: 1.15rem; color: rgba(255, 255, 255, .85); margin-bottom: 2.2rem; }

/* ---------- Page hero ---------- */
.page-hero, .single-hero, .donate-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(5.5rem, 10vw, 8rem);
}
.page-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(105deg, rgba(8, 26, 51, .95) 10%, rgba(11, 59, 115, .8) 60%, rgba(29, 100, 179, .55)); }
.single-hero:not(:has(.single-bg)) .page-hero-shade { background: linear-gradient(120deg, var(--navy-2), var(--blue)); }
.hero-arcs { position: absolute; right: -80px; bottom: -40px; width: min(62vw, 760px); z-index: -1; opacity: .85; }
.page-hero-content > * { max-width: 860px; }
.page-hero .eyebrow, .single-hero .eyebrow, .donate-hero .eyebrow { color: var(--sun); }
.page-hero .eyebrow::before, .donate-hero .eyebrow::before { background: var(--sun); }
.page-hero h1, .single-hero h1, .donate-hero h1 { color: #fff; }
.page-hero .lead, .donate-hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .88); max-width: 62ch; margin: 0; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: clamp(40px, 6vw, 80px); }

/* ---------- Prose ---------- */
.prose { font-size: 1.06rem; }
.prose-lg { font-size: 1.12rem; line-height: 1.8; }
.prose h2, .prose h3 { margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.6rem; position: relative; padding-left: 1rem; }
.prose h3::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 4px; background: linear-gradient(var(--blue), var(--sun)); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--sun); background: #fffbe3; border-radius: 0 14px 14px 0; font-family: var(--font-display); font-size: 1.25rem; }
.prose img { border-radius: 14px; margin: 1.5rem 0; }
.prose a { word-break: break-word; }
.figure { margin: 2.5rem 0 0; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.figure img { margin: 0 auto; border-radius: 12px; }
.figure figcaption { font-size: .92rem; color: var(--muted); text-align: center; margin-top: .8rem; }

/* ---------- FC page ---------- */
.facts { padding-bottom: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: -8rem; position: relative; z-index: 2; }
.fact { padding: 1.7rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.fact h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.fact p { color: var(--muted); font-size: .95rem; margin: 0; }
.fact-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; margin-bottom: 1rem; background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; }
.fact:nth-child(even) .fact-ico { background: linear-gradient(135deg, #e0b800, var(--sun)); color: var(--ink); }
@media (max-width: 1000px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; margin-top: -5rem; } }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(2rem, 6vw, 5rem); justify-content: center; }
.toc-inner { position: sticky; top: 100px; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc-title { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0 0 1.2rem; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc ol a { display: flex; gap: .6rem; padding: .45rem 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px dashed var(--line); transition: color .2s; }
.toc ol a::before { content: counter(toc, decimal-leading-zero); color: var(--blue); font-weight: 800; font-size: .8rem; padding-top: .15rem; }
.toc ol a:hover, .toc ol a.active { color: var(--blue); }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- Për ne ---------- */
.mv { padding-top: 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.mv-card { position: relative; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--navy); color: #fff; overflow: hidden; }
.mv-card::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 22px solid var(--sky); opacity: .25; }
.mv-card-alt { background: var(--sun); color: var(--ink); }
.mv-card-alt::after { border-color: #fff; opacity: .5; }
.mv-card h3 { color: inherit; font-size: 2rem; }
.mv-card p { font-size: 1.12rem; margin: 0; max-width: 44ch; position: relative; z-index: 1; }
.mv-num { display: block; font-family: var(--font-display); font-size: 1rem; opacity: .6; margin-bottom: 1rem; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }
.activities { background: var(--paper); }
.activities-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.activities-grid > div:first-child p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.8rem; }
.check-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding: 1rem 1.2rem 1rem 3.2rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.check-list li::before { content: ""; position: absolute; left: 1.1rem; top: 1.15rem; width: 20px; height: 20px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) { .activities-grid { grid-template-columns: 1fr; } }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.member { margin: 0; text-align: center; }
.member-photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; max-width: 220px; background: #dfe6ef; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--line); transition: box-shadow .4s; }
.member:hover .member-photo { box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--sun); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .6s var(--ease), filter .4s; }
.member:hover .member-photo img { transform: scale(1.06); filter: none; }
.member figcaption strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.member figcaption span { color: var(--muted); font-size: .92rem; font-weight: 600; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Single post ---------- */
.single-head > * { max-width: 900px; }
.single-head .back { display: inline-flex; align-items: center; gap: .3rem; color: var(--sun); font-weight: 700; text-decoration: none; margin-bottom: 1.2rem; }
.single-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; }
.meta span { display: inline-flex; align-items: center; gap: .4rem; }
.single-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: clamp(2rem, 5vw, 4.5rem); justify-content: center; padding-top: 2rem; padding-bottom: 3rem; }
.single-aside { display: grid; gap: 1.2rem; align-content: start; position: sticky; top: 100px; }
.aside-card { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.aside-card h3 { font-size: 1.15rem; }
.donate-card { background: var(--navy); color: #fff; border: 0; }
.donate-card h3 { color: #fff; margin-top: .8rem; }
.donate-card p { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.donate-card > .ico { color: var(--sun); }
.share { display: flex; gap: .6rem; }
.share a, .share button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--blue); cursor: pointer; transition: background .25s, color .25s; }
.share a:hover, .share button:hover { background: var(--blue); color: #fff; }
@media (max-width: 960px) { .single-layout { grid-template-columns: 1fr; } .single-aside { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: -9rem; position: relative; z-index: 2; }
.contact-info { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.info-card p { margin: 0; color: var(--muted); }
.info-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info-card a:hover { color: var(--blue); }
.info-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eaf2fb; color: var(--blue); flex: none; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: #dfe6ef; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form-card { padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 2rem; margin-bottom: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fbfcfe;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29, 100, 179, .14); }
.field small { display: block; margin-top: .35rem; color: var(--err); font-weight: 600; }
.has-err input, .has-err textarea { border-color: var(--err); }
.alert { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; }
.chips { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.chips legend { padding: 0; font-weight: 700; font-size: .9rem; margin-bottom: .55rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: #fbfcfe; color: var(--ink); font-weight: 600; font-size: .92rem;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.chip span .ico { color: var(--blue); transition: color .2s; }
.chip:hover span { border-color: var(--blue); background: #fff; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(29, 100, 179, .7); }
.chip input:checked + span .ico { color: var(--sun); }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.chip:active span { transform: scale(.97); }
.cf-turnstile { margin: .2rem 0 1.2rem; min-height: 65px; }
.alert-err { background: #fdecef; color: var(--err); }
.alert-ok { background: #e6f6ee; color: var(--ok); }
.success { text-align: center; padding: 2rem 0; }
.success-ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #e6f6ee; color: var(--ok); margin-bottom: 1rem; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; margin-top: -6rem; } .form-card { order: -1; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Donate page ---------- */
.donate-shade { background: linear-gradient(110deg, rgba(8, 26, 51, .96) 20%, rgba(11, 59, 115, .85) 70%, rgba(29, 100, 179, .6)); }
.donate-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.donate-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.donate-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .7rem; }
.donate-points li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.donate-points .ico { color: var(--ink); background: var(--sun); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.donate-card-big { padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); position: relative; }
.donate-card-big::before { content: ""; position: absolute; inset: -10px; border-radius: calc(var(--radius-lg) + 10px); border: 2px solid rgba(245, 217, 20, .6); z-index: -1; }
.dcb-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.dcb-head > .ico { color: #d23a52; }
.dcb-head h2 { font-size: 1.6rem; margin: 0; }
.dcb-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.bank-list { margin: 0 0 1.2rem; }
.bank-row { display: grid; gap: .15rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.bank-row dt { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bank-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.copy-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: #f5f8fc; color: var(--blue); cursor: pointer; flex: none; transition: background .2s, color .2s; }
.copy-btn:hover { background: var(--blue); color: #fff; }
.copy-btn.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.bank-empty p { color: var(--muted); }
.bank-empty a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
@media (max-width: 900px) { .donate-hero-grid { grid-template-columns: 1fr; } }
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.way { padding: 2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.way p { color: var(--muted); }
.way-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--sun); font-family: var(--font-display); font-weight: 700; margin-bottom: 1.2rem; }
@media (max-width: 860px) { .ways-grid { grid-template-columns: 1fr; } }
.faq { padding-top: 0; }
.faq-inner { max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: .8rem; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 3.4rem 1.2rem 1.4rem; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eaf2fb; color: var(--blue); font-size: 1.3rem; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--sun); color: var(--ink); }
.faq details p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-2), var(--blue)); color: #fff; padding: calc(var(--header-h) + 5rem) 0 7rem; min-height: 80vh; display: flex; align-items: center; }
.notfound h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.notfound .muted { color: rgba(255, 255, 255, .8); margin-bottom: 2rem; }
.nf-code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); line-height: 1; margin: 0; color: var(--sun); }
.nf-arcs { position: absolute; right: -40px; bottom: -20px; width: 420px; opacity: .5; }
.notfound .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .75); padding: 4.5rem 0 0; }
.footer-arcs { position: absolute; top: 0; left: 0; width: 100%; height: 220px; opacity: .16; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 2.5rem; padding-bottom: 2.8rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-logo-plate { display: inline-block; padding: .8rem 1rem; margin-bottom: 1.2rem; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.footer-about img { display: block; width: 240px; max-width: 100%; height: auto; }
.footer-about p { font-size: .95rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--sun); }
.site-footer .btn-donate, .site-footer .btn-donate:hover { color: var(--ink); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.footer-contact .ico { color: var(--sun); margin-top: .2rem; }
.footer-donate p { font-size: .95rem; }
.socials { display: flex; gap: .6rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--sun); color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; transition: background .25s, color .25s, border-color .25s; }
.site-footer .to-top:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.to-top .ico { transition: transform .25s var(--ease); }
.to-top:hover .ico { transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; padding-bottom: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.credit { display: inline-flex; align-items: center; gap: .3rem; }
.credit a { color: var(--sun) !important; font-weight: 700; }
.credit a:hover { text-decoration: underline; }
.credit-heart { color: #e5566d; display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .credit-heart { animation: none; } }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 701px) { .footer-bottom { padding-right: calc(var(--gutter) + 72px); } }
@media (max-width: 700px) { .footer-bottom { flex-direction: column; text-align: center; padding-bottom: 5.5rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.float-donate {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--sun); color: #d23a52; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transform: scale(0); transition: transform .4s var(--ease);
}
.float-donate::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sun); animation: ping 2.2s infinite; }
.float-donate.show { transform: scale(1); }
.page-donate .float-donate { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .float-donate::before { animation: none; } }

/* =========================================================
   Lexuesi (flipbook)
   ========================================================= */
.reader-body { background: radial-gradient(120% 90% at 50% 0%, #17406f 0%, #0b1f3a 60%, #07152a 100%); color: #fff; min-height: 100svh; overflow: hidden; }
.reader { display: grid; grid-template-rows: auto 1fr auto; height: 100svh; }
.reader-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem var(--gutter); border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(7, 21, 42, .5); backdrop-filter: blur(10px); }
.reader-back { display: inline-flex; align-items: center; gap: .3rem; color: var(--sun); font-weight: 700; text-decoration: none; flex: none; }
.reader-title { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 1; }
.reader-title h1 { font-size: 1.1rem; margin: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-tools { display: flex; gap: .5rem; align-items: center; }
.reader-select select { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .88rem; max-width: 220px; }
.reader-select option { color: var(--ink); }
.rbtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.rbtn:hover { background: var(--sun); color: var(--ink); }
.reader-stage { position: relative; display: grid; place-items: center; padding: 1.2rem 4.5rem; min-height: 0; }
.flip-wrap { position: absolute; inset: 1.2rem 5rem; }
#flipbook { width: 100%; height: 100%; margin: 0 auto; }
#flipbook .page { background: #fff; overflow: hidden; }
#flipbook .page canvas { width: 100%; height: 100%; display: block; }
#flipbook .page.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 3px solid #d7dfea; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flip-nav { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.flip-nav:hover { background: var(--sun); color: var(--ink); transform: scale(1.06); }
.flip-nav.prev { left: 1rem; }
.flip-nav.next { right: 1rem; }
.reader-foot { display: flex; align-items: center; gap: 1.2rem; padding: .8rem var(--gutter); border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(7, 21, 42, .5); }
.page-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-count b { color: var(--sun); }
#pg-range { flex: 1; accent-color: var(--sun); }
.reader-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; z-index: 5; transition: opacity .4s; }
.reader-loading.hide { opacity: 0; pointer-events: none; }
.reader-loading b { color: var(--sun); }
.book-loader { display: flex; gap: 6px; perspective: 400px; }
.book-loader span { width: 34px; height: 46px; border-radius: 3px 6px 6px 3px; background: linear-gradient(135deg, var(--sky), var(--blue)); transform-origin: left center; animation: pageflip 1.4s var(--ease) infinite; }
.book-loader span:nth-child(2) { animation-delay: .15s; background: linear-gradient(135deg, var(--sun-2), var(--sun)); }
.book-loader span:nth-child(3) { animation-delay: .3s; }
@keyframes pageflip { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(-70deg); } }
.reader-error { text-align: center; max-width: 420px; }
@media (max-width: 700px) {
  .reader-stage { padding: .6rem; }
  .flip-wrap { inset: .6rem; }
  .flip-nav { display: none; }
  .reader-back span, .reader-select, .reader-title img { display: none; }
  .reader-title h1 { font-size: .98rem; }
}
@media (max-width: 370px) { .brand, .site-header.compact .brand { width: 150px; height: 30px; } }
@media (min-width: 1201px) and (max-width: 1320px) {
  .header-inner { gap: 1rem; }
  .main-nav a { padding: .55rem .6rem; font-size: .9rem; }
  .main-nav a::after { left: .6rem; right: .6rem; }
}
