/*
 * Imedi – charity foundation template · Abedev (abedev.com)
 *
 * Design: warm and trustworthy – soft white, deep plum and one marigold, a friendly serif for headings and an italic
 * for the voices, a clear sans for the text. Progress bars fill up when they are seen, numbers count up, a ring shows
 * where the money goes and the gift calculator says what a gift does. The language switch is a row of postage stamps
 * with the flags – the one in use carries a postmark. On phones the menu is a letter: the envelope opens and the pages
 * are its lines. All motion stops with "reduce motion".
 */
@font-face { font-family: "Imedi Head"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-serif-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Imedi Head"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-serif-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Imedi Head"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-serif-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Imedi Head"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-700-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Imedi Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Imedi Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-serif-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Imedi Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-serif-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Imedi Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-500-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Imedi Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

:root {
    --bg: #fbf8f4;
    --white: #fff;
    --lilac: #efe8f4;
    --ink: #3b2350;
    --ink-2: #5a4370;
    --accent: #f5a623;
    --accent-ink: #2a1838;
    --coral: #e0533d;
    --muted: #6e6378;
    --line: #e6dfe9;
    --r: 16px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --head: "Imedi Head", Georgia, serif;
    --text: "Imedi Text", system-ui, sans-serif;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 500; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(de) h1, :lang(ru) h1, :lang(de) h2, :lang(ru) h2 { -webkit-hyphens: auto; hyphens: auto; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.small-label, .field-label { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
:lang(ka) .small-label { letter-spacing: .02em; font-size: .86rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li + li { margin-top: .3rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
:lang(ka) .eyebrow { letter-spacing: .02em; font-size: .9rem; }
.display { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); line-height: 1.02; }
:lang(ka) .display { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.1rem); line-height: 1.25; }
:lang(ru) .display { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.3rem); }
.display--page { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.2rem); max-width: 18ch; }
:lang(ka) .display--page { font-size: clamp(1.5rem, .9rem + 2.8vw, 2.9rem); max-width: 26ch; }
.display--cta { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); }
:lang(ka) .display--cta { font-size: clamp(1.35rem, 1rem + 1.9vw, 2.3rem); }
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
:lang(ka) .h2 { font-size: clamp(1.3rem, 1rem + 1.3vw, 1.95rem); }
.h3 { font-size: 1.5rem; }
:lang(ka) .h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.section-head .lead { margin-top: .9rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .7rem 1.5rem; border: 2px solid transparent; border-radius: 999px; background: transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffb840; }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: var(--accent); color: var(--accent-ink); }
.btn-white:hover { background: #fff; }
.btn-sm { min-height: 42px; padding: .4rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 0; }
.more { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.more .icon { transition: transform .3s var(--ease); }
.more:hover .icon { transform: translateX(4px); }

/* header */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.3rem; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-width: 0; }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--ink); transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: scale(1.1); }
.logo-mark .icon { width: 24px; height: 24px; }
.logo-img { max-height: 46px; width: auto; }
.logo > span:last-child { display: flex; flex-direction: column; font: 700 1.7rem/1 var(--head); }
.logo small { margin-top: .2rem; font: 500 .7rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .logo small { letter-spacing: .02em; font-size: .78rem; }
.nav { display: flex; gap: 1.5rem; }
.nav a { position: relative; padding: .4rem 0; text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 8px; z-index: -1; border-radius: 4px; background: var(--accent); opacity: .5; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: none; }
.nav a[aria-current] { color: var(--ink); }
.header-cta[aria-current] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.panel-btn { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: none; cursor: pointer; font-weight: 500; }
.panel-btn .icon { width: 20px; height: 20px; }

/* language switch: postage stamps – the one in use carries a postmark */
.stamps { display: flex; gap: 6px; }
.stamp { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 1px; width: 40px; padding: 6px 5px 4px; text-decoration: none;
    background: radial-gradient(circle, var(--bg) 1.6px, transparent 1.9px) -3px -3px / 6px 6px, var(--white); filter: drop-shadow(0 1px 1px rgba(59, 35, 80, .3)); transition: transform .3s var(--ease); }
.stamp::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: inherit; background: var(--white); }
.stamp-pic { display: block; width: 26px; height: 18px; overflow: hidden; }
.stamp-pic .flag { width: 100%; height: 100%; }
.stamp-code { font-size: .58rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.stamp:hover { transform: rotate(-4deg) translateY(-2px); }
.stamp[aria-current] { transform: rotate(-5deg); }
.stamp[aria-current]::before { background: var(--lilac); }
.stamp[aria-current]::after { content: ""; position: absolute; inset: 3px -6px 8px 10px; border-radius: 50%; border: 1.5px solid rgba(59, 35, 80, .55); background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(59, 35, 80, .45) 3px 4px); -webkit-mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 62%); mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 62%); opacity: .8; pointer-events: none; }
.stamp[aria-current] .stamp-code { color: var(--ink); }
.stamps--panel { gap: 12px; margin: 1.8rem 0 0; }
.stamps--panel .stamp { width: 60px; padding: 8px 6px 5px; }
.stamps--panel .stamp-pic { width: 44px; height: 30px; }
.stamps--panel .stamp-code { font-size: .78rem; }

/* menu on phones: the envelope opens, the pages are the lines of the letter */
.panel { position: fixed; inset: 0; z-index: 60; background: rgba(59, 35, 80, 0); transition: background .4s; }
.panel.is-open { background: rgba(59, 35, 80, .55); }
.flap { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 70px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transform: translateY(-100%); transition: transform .45s var(--ease); pointer-events: none; }
.panel.is-open .flap { transform: rotateX(180deg) translateY(0); transform: translateY(0) scaleY(-1); transition: transform .5s var(--ease) .1s; }
.panel-inner { position: absolute; left: 0; right: 0; top: 0; max-height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 1.4rem 1.4rem 2.4rem; background: var(--white) repeating-linear-gradient(transparent 0 47px, var(--line) 47px 48px); background-position: 0 90px; border-bottom: 8px solid var(--accent); transform: translateY(-105%); transition: transform .5s var(--ease); }
.panel.is-open .panel-inner { transform: none; }
.panel-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.panel-label { font: italic 400 1.2rem/1 var(--head); color: var(--ink-2); }
.panel-close { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer; }
.panel-nav { display: grid; }
.panel-nav a { display: grid; grid-template-columns: 2rem 1fr; align-items: baseline; padding: .55rem 0; text-decoration: none;
    opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease) calc(.35s + var(--i) * 70ms), transform .4s var(--ease) calc(.35s + var(--i) * 70ms); }
.panel.is-open .panel-nav a { opacity: 1; transform: none; }
.panel-num { grid-row: span 2; font: italic 400 1rem/1.6 var(--head); color: var(--coral); }
.panel-text { font: 700 1.8rem/1.2 var(--head); }
:lang(ka) .panel-text { font-size: 1.3rem; line-height: 1.4; }
.panel-cap { font: italic 400 .95rem/1.4 var(--head); color: var(--muted); }
.panel-nav a[aria-current] .panel-text { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.panel-contact { margin-top: 1.4rem; color: var(--muted); }
.panel-contact a { text-decoration: none; }

/* hero */
.hero { position: relative; isolation: isolate; min-height: min(84vh, 760px); display: flex; align-items: flex-end; padding: 6rem 0 3rem; }
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 48%; z-index: -1; width: 52%; height: 100%; object-fit: cover; object-position: 46% 40%; border-radius: 0 0 0 var(--r); }
.hero-card { max-width: 560px; padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); border-radius: var(--r); background: var(--bg); box-shadow: 0 30px 60px -30px rgba(59, 35, 80, .5); }
.hero .lead { margin-top: 1.2rem; }

/* facts */
.facts { padding: 2.5rem 0 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fact { display: grid; gap: .3rem; padding: 1.3rem 1.2rem; border-radius: var(--r); background: var(--lilac); }
.fact b { font: 700 clamp(2rem, 1.5rem + 1.8vw, 2.9rem)/1 var(--head); color: var(--ink); white-space: nowrap; }
.fact span { color: var(--ink-2); font-size: .95rem; }

/* sections */
.section { padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0; }
.section--tight { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.section--plum { background: var(--ink); color: #fff; }
.section--plum .lead, .section--plum .note { color: rgba(255, 255, 255, .78); }
.section--plum .note .icon { color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.page-head { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 1.4rem; }
.page-head .lead { margin-top: 1.2rem; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.seeds { margin: 0; }
.seeds img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.note { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }
.note .icon { margin-top: .2em; color: var(--coral); }
.no-match { padding: 2rem; text-align: center; color: var(--muted); border-radius: var(--r); background: var(--lilac); }

/* projects */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.2rem; }
.project { display: flex; flex-direction: column; padding: 1.4rem; border-radius: var(--r); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 20px 40px -34px rgba(59, 35, 80, .5); border-top: 6px solid var(--area, var(--accent)); }
.area--education { --area: #f5a623; } .area--food { --area: #e0533d; } .area--winter { --area: #4f8fd1; } .area--health { --area: #2fa58a; } .area--mentoring { --area: #8a6fd1; }
.project-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 .7rem; font-size: .85rem; color: var(--muted); }
.project-top span { display: inline-flex; align-items: center; gap: .35rem; }
.project-area { color: var(--ink); font-weight: 500; }
.project-area .icon { color: var(--area); }
.project h3 { font-size: 1.45rem; margin-bottom: .5rem; }
:lang(ka) .project h3 { font-size: 1.15rem; }
.project-text { color: var(--muted); font-size: .97rem; }
.bar { height: 12px; margin-top: auto; border-radius: 6px; background: var(--lilac); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--area, var(--accent)); transition: width 1.4s var(--ease) .2s; }
.is-visible .bar span, .no-js .bar span { width: var(--p); }
.project-sum { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; margin: .6rem 0 .5rem; }
.project-sum b { font: 700 1.3rem/1 var(--head); }
.project-sum span { color: var(--muted); font-size: .92rem; }
.project-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; margin: 0; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .92rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: 999px; background: #e4f3ee; color: #1f6b56; font-weight: 500; }
.project.is-done .bar span { background: #2fa58a; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1.8rem; }
.areas { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.areas label, .rhythm label, .presets label, .choices label { position: relative; min-width: 0; }
.areas input, .rhythm input, .presets input, .choices input, .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.areas span { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .35rem 1rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 500; }
.areas input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.areas input:focus-visible + span, .rhythm input:focus-visible + span, .presets input:focus-visible + span, .choices input:focus-visible + span, .day input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.count { margin-left: auto; color: var(--muted); }

/* where the money goes */
.money { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.money-chart { position: relative; }
.ring { width: 100%; height: auto; }
.ring circle { transition: stroke-dasharray 1s var(--ease); }
.money-chart b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 2.6rem/1 var(--head); color: var(--accent); }
.legend { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.legend li { display: grid; grid-template-columns: 16px 1fr auto; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.legend i { width: 16px; height: 16px; border-radius: 4px; }
.legend b { font: 700 1.2rem/1 var(--head); }

/* gift calculator and volunteering */
.give-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.giver { display: grid; gap: 1rem; }
.rhythm { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--lilac); }
.rhythm span { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .3rem .6rem; border-radius: 999px; cursor: pointer; font-weight: 500; text-align: center; line-height: 1.2; transition: background .2s; }
:lang(ka) .rhythm span { font-size: .86rem; gap: .25rem; }
.rhythm .icon { flex: none; }
.rhythm input:checked + span { background: var(--white); box-shadow: 0 2px 6px rgba(59, 35, 80, .15); }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.presets span { display: grid; place-items: center; min-height: 56px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; font: 700 1.2rem/1 var(--head); }
.presets input:checked + span { background: var(--accent); box-shadow: none; }
.impact h2 small { font: italic 400 1rem/1 var(--head); color: var(--muted); }
.impact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.impact-list li { display: grid; grid-template-columns: 44px auto auto 1fr auto; gap: .6rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: var(--white); transition: opacity .3s; }
.impact-list li.is-off { opacity: .45; }
.impact-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); color: var(--ink); }
.impact-list b { font: 700 1.6rem/1 var(--head); color: var(--coral); min-width: 2ch; text-align: right; }
.impact-x { color: var(--muted); }
.impact-list small { color: var(--muted); }
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.role { padding: 1.4rem; border-radius: var(--r); background: rgba(255, 255, 255, .07); }
.role h3 { font-size: 1.35rem; color: #fff; margin-bottom: .3rem; }
:lang(ka) .role h3 { font-size: 1.1rem; }
.role-time { display: flex; align-items: center; gap: .4rem; color: var(--accent); font-size: .92rem; }
.role p { color: rgba(255, 255, 255, .8); }
.role .more { color: #fff; }

/* quotes */
.quotes { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.quote { margin: 0; padding-left: 1.2rem; border-left: 4px solid var(--accent); }
.quote blockquote { margin: 0 0 .5rem; font: italic 400 1.2rem/1.5 var(--head); }
:lang(ka) .quote blockquote { font-size: 1.02rem; line-height: 1.6; }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "“"; } .quote blockquote p::after { content: "”"; }
:lang(de) .quote blockquote p::before, :lang(ka) .quote blockquote p::before { content: "„"; }
:lang(de) .quote blockquote p::after, :lang(ka) .quote blockquote p::after { content: "“"; }
:lang(ru) .quote blockquote p::before { content: "«"; } :lang(ru) .quote blockquote p::after { content: "»"; }
.quote figcaption { font-size: .88rem; font-weight: 500; color: var(--muted); }

/* call to action */
.cta { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; background: var(--coral); color: #fff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.cta p { font-size: 1.1rem; color: rgba(255, 255, 255, .9); }

/* give and join */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.book { display: grid; gap: 1rem; }
.block { margin: 0; padding: 1.5rem; border: 0; border-radius: var(--r); background: var(--white); min-width: 0; }
.block legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; padding: 0; font: 700 1.45rem/1.2 var(--head); }
:lang(ka) .block legend { font-size: 1.15rem; }
.block legend + * { clear: both; }
.block .rhythm, .block .presets { margin-bottom: 1rem; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--head); flex: none; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choices span { display: grid; gap: .15rem; align-content: start; height: 100%; padding: .9rem 1rem; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s; }
.choices .icon { width: 24px; height: 24px; margin-bottom: .2rem; color: var(--coral); }
.choices b { font-weight: 500; line-height: 1.3; }
.choices small { color: var(--muted); font-size: .86rem; }
.choices input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); background: var(--lilac); }
.choices input:disabled + span { opacity: .45; cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin-bottom: 1rem; }
.day { position: relative; min-width: 0; }
.day span { display: grid; justify-items: center; padding: .5rem .2rem; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.day small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; color: var(--muted); }
.day b { font: 700 1.4rem/1.2 var(--head); }
.day em { font-size: .74rem; font-style: normal; color: var(--muted); }
.day input:checked + span { background: var(--ink); box-shadow: none; color: #fff; }
.day input:checked + span small, .day input:checked + span em { color: var(--accent); }
.field--time { max-width: 220px; margin-bottom: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; align-content: start; }
.field label { font-size: .95rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .65rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--ink); flex: none; }
.form-status { margin-top: 1rem; }
.form-status.is-shown { padding: .8rem 1rem; border-radius: 10px; }
.form-status.ok { background: #e4f3ee; }
.form-status.info { background: #fdf0d8; }
.form-status.error { background: #f8ddd6; color: #8a2a14; }
.book-side { display: grid; gap: 1rem; position: sticky; top: 100px; }
.card { padding: 1.4rem; border-radius: var(--r); background: var(--white); }
.card--letter { position: relative; background: var(--white) repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px); background-position: 0 60px; border-top: 8px solid var(--accent); box-shadow: 0 24px 40px -30px rgba(59, 35, 80, .5); }
.letter-kind { margin: 0; font: italic 400 1.1rem/1.4 var(--head); color: var(--coral); }
.letter-big { margin: .2rem 0; font: 700 2rem/1.15 var(--head); }
:lang(ka) .letter-big { font-size: 1.4rem; line-height: 1.35; }
.letter-what { margin: 0 0 .4rem; color: var(--ink-2); }
.letter-when { font-weight: 500; }
.addr { margin-bottom: 1rem; }
.addr a { text-decoration: none; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin: 1.8rem 0 .5rem; }
.legal p { color: var(--muted); }
.page-head h1 { font-size: clamp(1.7rem, 1rem + 3.4vw, 3.6rem); }
:lang(ka) .page-head h1 { font-size: clamp(1.15rem, .7rem + 3vw, 2.4rem); }

/* footer */
.footer { padding: 4rem 0 1.5rem; background: var(--ink); color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-name { font: 700 2.2rem/1 var(--head); color: #fff; }
.footer-h { margin: 0 0 .9rem; font: 500 .78rem/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
:lang(ka) .footer-h { letter-spacing: .02em; font-size: .86rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease) calc(var(--i, 0) * 70ms), transform .7s var(--ease) calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1160px) {
    .stamps--top { display: none; }
}
@media (max-width: 960px) {
    .nav, .header-cta { display: none; }
    .panel-btn { display: inline-flex; }
    .split, .cta-inner, .book-grid, .money, .give-grid { grid-template-columns: minmax(0, 1fr); }
    .book-side { position: static; }
    .hero { min-height: 0; padding-top: 14rem; }
    .hero-bg { left: 0; width: 100%; border-radius: 0; }
    .money-chart { max-width: 280px; }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .seeds img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 2rem); }
    .row2, .choices { grid-template-columns: minmax(0, 1fr); }
    .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .block, .card, .project { padding: 1.1rem; }
    .panel-btn span { display: none; }
    .panel-btn { width: 44px; padding: 0; justify-content: center; }
    .hero { padding-top: 10rem; }
    .hero-card { padding: 1.2rem; }
    .count { margin-left: 0; }
    .impact-list li { grid-template-columns: 40px auto auto 1fr; }
    .impact-list small { grid-column: 4; }
    .impact-ico { width: 40px; height: 40px; }
    .rhythm .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .panel-nav a { opacity: 1; transform: none; }
    .bar span { width: var(--p); }
    @view-transition { navigation: none; }
}
