/* Audrius Petrošius – Naujas Klaipėdos amžius */
:root {
  --green: #4e8275;
  --green-d: #2f5a50;
  --ink: #14201d;
  --mint: #dcebd0;
  --paper: #f7f8f3;
  --white: #ffffff;
  --line: #dde4d8;
  --muted: #5b6b66;
  --display: "Archivo", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1480px;
  --gutter: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(17px, 11px + .42vw, 20px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); }
a:hover { color: var(--green); }
p { margin: 0 0 1em; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); }
h3 { font-size: 1.15rem; line-height: 1.2; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--mint { background: var(--mint); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--mint); }
.section--dark h2 { color: var(--mint); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); }
.section--dark .section-head p { color: #b9cdb9; }
.section--dark .section-head a { color: var(--mint); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #9fc4a8; }

.zig { display: block; width: 140px; height: auto; color: var(--green); margin: 22px 0 0; }

.btn {
  display: inline-block;
  padding: 15px 26px;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-d); border-color: var(--green-d); color: var(--white); }
.btn--ghost { background: transparent; color: var(--green-d); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.btn--light { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: var(--mint); color: var(--mint); }
.btn--outline-light:hover { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 243, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green-d); }
.nav a.nav-cta { background: var(--green); color: var(--white); padding: 10px 16px; border: 0; }
.nav a.nav-cta:hover { background: var(--green-d); color: var(--white); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 1100px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; cursor: pointer; padding: 8px;
  }
  .nav-burger span { height: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav a.nav-cta { margin-top: 14px; text-align: center; padding: 14px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--mint); overflow: hidden; }
/* Full-bleed: text lines up with the page column, photo runs to the right edge */
.hero .wrap {
  width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 44%;
  align-items: center; min-height: clamp(520px, 76vh, 900px);
}
.hero-text {
  padding: clamp(48px, 7vw, 120px) clamp(24px, 5vw, 90px) clamp(48px, 7vw, 120px)
           max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.hero h1 img { width: min(46rem, 100%); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.35rem); max-width: 34em; margin-top: 28px; color: #c9dcc6; }
.hero-photo { align-self: stretch; min-height: 420px; position: relative; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px var(--gutter) 40px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 4.2; }
  .hero-photo img { object-position: 50% 12%; }
}

.page-hero { background: var(--ink); color: var(--mint); padding: clamp(48px, 7vw, 96px) 0; }
.page-hero h1 { color: var(--mint); max-width: 16em; }
.page-hero p { max-width: 44em; margin: 22px 0 0; font-size: 1.15rem; color: #c9dcc6; }
.page-hero .zig { color: var(--green); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.principle { padding: 28px 28px 8px 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle .num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.4rem; color: var(--green); line-height: 1; }
.principle h3 { margin: 14px 0 10px; }
.principle p { color: var(--muted); font-size: .98rem; }
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
}

/* ---------- Programme cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  padding: 28px; text-decoration: none; color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 14px 30px rgba(20, 32, 29, .08); color: var(--ink); }
.card .num { font-family: var(--display); font-stretch: 125%; font-weight: 800; color: var(--green); font-size: 1rem; letter-spacing: .08em; }
.card h3 { margin: 14px 0 12px; font-size: 1.2rem; }
.card p {
  color: var(--muted); font-size: .95rem; margin: 0 0 20px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card .more { margin-top: auto; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- 10 darbų ---------- */
.ten { list-style: none; margin: 0; padding: 0; counter-reset: ten; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.ten li {
  counter-increment: ten; display: grid; grid-template-columns: 76px 1fr; align-items: start; gap: 8px;
  padding: 22px 0; border-top: 2px solid var(--ink); font-size: 1.08rem; font-weight: 500; line-height: 1.45;
}
.ten li::before {
  content: counter(ten, decimal-leading-zero);
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--green);
}
@media (max-width: 820px) { .ten { grid-template-columns: 1fr; } .ten li { grid-template-columns: 62px 1fr; } .ten li::before { font-size: 1.9rem; } }

/* ---------- Split / works ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split--flip .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media--portrait img { aspect-ratio: 4 / 5; object-position: 50% 10%; }
.split-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin-bottom: 18px; }
.split-body h2 { margin-bottom: 22px; }
.split-body p { color: #2c3a36; }
.work-num { font-family: var(--display); font-stretch: 125%; font-weight: 800; color: var(--green); letter-spacing: .08em; font-size: .95rem; display: block; margin-bottom: 10px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--flip .split-media { order: 0; } }

/* ---------- Team banner ---------- */
.banner { position: relative; color: var(--white); background: var(--ink); }
.banner img { width: 100%; height: clamp(380px, 56vw, 640px); object-fit: cover; object-position: 50% 30%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,29,0) 35%, rgba(20,32,29,.88) 100%); }
.banner-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(28px, 5vw, 56px); }
.banner-text h2 { color: var(--white); }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.person img, .person-noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; }
.person-noimg {
  display: grid; place-items: center; background: var(--mint); color: var(--green);
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: .04em;
}
.person-body { padding: 22px; min-width: 0; }
.person-body .num { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; color: var(--green); font-size: .95rem; letter-spacing: .08em; margin-bottom: 8px; }
.person-body h3 { margin-bottom: 12px; font-size: 1.08rem; overflow-wrap: anywhere; }
.person-body h3:last-child { margin-bottom: 0; }
.person-body p { font-size: .96rem; color: #2c3a36; }
.person-body p:last-child { margin-bottom: 0; }
@media (max-width: 1240px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) {
  /* Phones: compact rows, photo on the left */
  .people { grid-template-columns: 1fr; gap: 12px; }
  .person { flex-direction: row; align-items: flex-start; }
  .person img, .person-noimg { width: 108px; flex: none; }
  .person-noimg { font-size: 1.6rem; }
  .person-body { padding: 14px 16px; }
}

/* ---------- Quotes ---------- */
.quotes { columns: 3 300px; column-gap: 20px; }
.quote { break-inside: avoid; margin: 0 0 20px; padding: 26px; background: #1d2c28; border-left: 4px solid var(--green); }
.quote blockquote { margin: 0 0 20px; font-size: .98rem; line-height: 1.6; color: #e4eedd; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote img, .quote .avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; object-position: 50% 20%; }
.quote .avatar { display: grid; place-items: center; background: var(--green); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1rem; }
.quote strong { display: block; color: var(--white); font-size: 1rem; line-height: 1.25; }
.quote span.role { display: block; font-size: .82rem; color: #9fc4a8; line-height: 1.3; margin-top: 3px; }

/* ---------- Programme page ---------- */
.prog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.toc strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 2px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent;
  text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 600; line-height: 1.3;
}
.toc a::before { content: counter(toc, decimal-leading-zero) " "; color: var(--green); font-weight: 800; margin-right: 6px; }
.toc a:hover { border-left-color: var(--green); color: var(--green-d); }
.toc li.toc-ten a::before { content: "★ "; }

.prog-body { max-width: 54em; }
.prog-section { padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.prog-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.prog-section .num { font-family: var(--display); font-stretch: 125%; font-weight: 800; color: var(--green); font-size: 1rem; letter-spacing: .1em; display: block; margin-bottom: 12px; }
.prog-section h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.prog-section .lead { font-size: 1.15rem; line-height: 1.6; margin: 22px 0 0; color: #2c3a36; }
.prog-section h3 { margin: 38px 0 14px; padding-top: 18px; border-top: 2px solid var(--ink); font-size: 1.05rem; font-stretch: 112%; }
.prog-section ul { list-style: none; margin: 0; padding: 0; }
.prog-section ul li { position: relative; padding: 0 0 0 30px; margin: 0 0 14px; }
.prog-section ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 4px; background: var(--green); }
.prog-section .ten { grid-template-columns: 1fr; margin-top: 28px; }
@media (max-width: 900px) {
  .prog-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; background: var(--white); border: 1px solid var(--line); padding: 20px; }
}

/* ---------- Parama ---------- */
.draft-bar { background: #ffe066; color: #3a2f00; text-align: center; font-weight: 700; font-size: .9rem; padding: 10px var(--gutter); }
.fill { background: #ffe066; color: #3a2f00; padding: 1px 6px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.donate { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.donate-lead { margin-top: 20px; font-size: 1.08rem; color: #2c3a36; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amount {
  display: grid; place-items: center; min-height: 76px; padding: 12px;
  background: var(--white); border: 2px solid var(--ink); color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.35rem;
  transition: background .2s, color .2s, transform .2s;
}
.amount:hover, .amount:focus-visible { background: var(--ink); color: var(--mint); transform: translateY(-2px); }
.amount--other { grid-column: 1 / -1; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.amounts-note { margin: 18px 0 0; font-size: .95rem; font-weight: 600; color: var(--green-d); }
@media (max-width: 480px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.bank { margin: 0; background: var(--white); border: 2px solid var(--ink); }
.bank > div { display: grid; grid-template-columns: 15em 1fr; gap: 6px 20px; padding: 18px 24px; border-top: 1px solid var(--line); }
.bank > div:first-child { border-top: 0; }
.bank dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); padding-top: 4px; }
.bank dd { margin: 0; font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 26px; }
.rule h3 { margin-bottom: 16px; }
.rule ul { list-style: none; margin: 0; padding: 0; }
.rule li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: .97rem; color: #2c3a36; }
.rule li:last-child { margin-bottom: 0; }
.rule li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 4px; background: var(--green); }
.note { margin: 28px 0 0; font-size: .92rem; color: var(--muted); max-width: 54em; }
@media (max-width: 980px) { .rules { grid-template-columns: repeat(2, 1fr); } .donate { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .rules { grid-template-columns: 1fr; } .bank > div { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose p { font-size: 1.08rem; color: #2c3a36; }
.prose p:first-of-type { font-size: 1.25rem; color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9dcc6; padding: clamp(48px, 7vw, 84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 230px; }
.site-footer h3 { color: var(--mint); font-size: .85rem; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-contact a { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #2c3d38; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: #8fa79c; }
.footer-bottom a { color: #c9dcc6; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
