/* =========================================================
   Potravinová banka Pro Prahu a Středočeský kraj
   Vizuál: zelená a bílá, klidné plochy, bílé karty se slabým rámečkem,
   zaoblené fotky bez ozdob
   ========================================================= */

:root {
    --green: #2e9e4f;
    --green-dark: #1b7a3d;
    --green-deep: #0f5a2c;
    --green-tint: #eaf6ee;
    --green-tint-2: #f3faf5;
    --ink: #14261b;
    --ink-soft: #5d6b62;
    --line: #e3eae5;
    --grey: #f5f7f6;
    --white: #ffffff;

    --ff: "Inter", "Segoe UI", system-ui, sans-serif;
    --ff-display: "Poppins", "Inter", "Segoe UI", sans-serif;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 26px;
    --r-xl: 38px;
    --pill: 999px;

    --shadow-sm: 0 4px 16px rgba(15, 90, 44, .06);
    --shadow: 0 16px 44px rgba(15, 90, 44, .1);
    --shadow-lg: 0 30px 70px rgba(15, 90, 44, .16);

    --container: 1200px;
    --gutter: 24px;
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
/* atribut hidden musí vyhrát i nad display: flex (lightbox, hlášky) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--ff);
    font-size: 16px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
::selection { background: var(--green); color: #fff; }

h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 760px); }

/* ---------- drobná typografie ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .7; }
.kicker--light { color: #fff; }
.sec-index { font-weight: 700; opacity: .65; }

.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 58ch; }

.mark { color: var(--green); }
.mark__swash { display: none; }
.section--deep .mark { color: #b7ecc7; }

.prose { max-width: 68ch; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
    margin: 1.7em 0;
    padding: 24px 28px;
    background: var(--green-tint);
    border-radius: var(--r);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--green-deep);
}

/* ---------- tlačítka ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    font-family: var(--ff-display);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
/* ovládání klávesnicí potřebuje viditelný prstenec */
a:focus-visible, .btn:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}
.section--deep a:focus-visible, .section--deep .btn:focus-visible { outline-color: #fff; }
.btn--solid { background: var(--green-dark); color: #fff; }
.btn--solid:hover { background: var(--green); color: #fff; }
.btn--accent { background: var(--green); color: #fff; }
.btn--accent:hover { background: var(--green-dark); color: #fff; }
.btn--outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn--onDark { background: var(--green); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--onDark:hover { background: var(--green-deep); border-color: #fff; color: #fff; }
/* na kliknutí se barvy prohodí – tmavě zelená a bílá si vymění místo */
.btn--solid:active { background: #fff; color: var(--green-dark); border-color: var(--green-dark); box-shadow: none; transform: none; }
.btn--accent:active { background: #fff; color: var(--green); border-color: var(--green); box-shadow: none; transform: none; }
.btn--onDark:active { background: #fff; color: var(--green-deep); border-color: #fff; box-shadow: none; transform: none; }
.btn--outline:active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); transform: none; }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-display);
    font-size: .9rem;
    font-weight: 600;
    color: var(--green-dark);
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover { color: var(--green); }
.arrow-link:hover::after { transform: translateX(5px); }

/* ---------- hlavička ---------- */
.utility { background: var(--green-deep); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.utility__inner { display: flex; flex-wrap: wrap; gap: 5px 26px; justify-content: space-between; padding: 9px 0; }
.utility a { color: rgba(255, 255, 255, .82); }
.utility a:hover { color: #fff; }
.utility__group { display: flex; flex-wrap: wrap; gap: 5px 24px; }

.masthead {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* Jakmile horní lišta odscrolluje pryč a hlavička se přichytí, prohodí se barvy:
   panel zezelená, obsah zbělá. Třídu .is-stuck přepíná site.js. */
.masthead.is-stuck {
    background: var(--green-dark);
    border-bottom-color: transparent;
    box-shadow: 0 10px 30px rgba(15, 90, 44, .18);
}
/* značka v logu je bílá – na zeleném panelu potřebuje průsvitný podklad, ne zelený čtverec */
.masthead.is-stuck .wordmark__glyph { background: rgba(255, 255, 255, .18); }
.masthead.is-stuck .wordmark__name { color: #fff; }
.masthead.is-stuck .wordmark__sub { color: rgba(255, 255, 255, .88); }  /* .78 dávalo jen 3,96:1 */
.masthead.is-stuck .burger { background: transparent; border-color: rgba(255, 255, 255, .45); }
.masthead.is-stuck .burger span,
.masthead.is-stuck .burger span::before,
.masthead.is-stuck .burger span::after { background: #fff; }
.masthead.is-stuck a:focus-visible,
.masthead.is-stuck .btn:focus-visible { outline-color: #fff; }

/* Odkazy prohazujeme jen na širokých displejích – pod 1240 px je .mainnav
   samostatný bílý panel, kde by bílý text zmizel. */
@media (min-width: 1241px) {
    .masthead.is-stuck .mainnav a { color: #fff; }
    /* pilulka ztmavením, ne zesvětlením – bílý text pak drží 7:1 místo 3,97:1 */
    .masthead.is-stuck .mainnav a:hover,
    .masthead.is-stuck .mainnav a.is-active { background: rgba(0, 0, 0, .16); color: #fff; }
    .masthead.is-stuck .mainnav a.btn--solid { background: #fff; color: var(--green-dark); box-shadow: none; }
    .masthead.is-stuck .mainnav a.btn--solid:hover { background: var(--green-tint); color: var(--green-deep); }
    .masthead.is-stuck .mainnav a.btn--solid:active { background: var(--green-deep); color: #fff; border-color: #fff; }
}
.masthead__inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
/* hlavička smí být širší než obsah – deset položek menu se do 1200 px nevejde */
.masthead .container { width: min(100% - 2 * var(--gutter), 1320px); }

.wordmark { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.wordmark__glyph {
    width: 44px; height: 44px;
    background: var(--green);
    color: #fff;
    border-radius: 14px;
    display: grid; place-items: center;
    font-family: var(--ff-display);
    font-size: .98rem;
    font-weight: 700;
    flex: 0 0 auto;
}
.wordmark__glyph img { width: 32px; height: 32px; object-fit: contain; }

/* Značku loga používáme jako masku: tvar bere z průhlednosti PNG a barvu z CSS,
   takže se dá přebarvit podle toho, jakou barvu má zrovna hlavička.
   Prohlížeč bez podpory masek si nechá původní zelený čtverec s bílou značkou. */
@supports (mask-image: url("/img/logo-mark.png")) or (-webkit-mask-image: url("/img/logo-mark.png")) {
    .wordmark__glyph {
        background: var(--green-dark);
        border-radius: 0;
        -webkit-mask: url("/img/logo-mark.png") center / contain no-repeat;
        mask: url("/img/logo-mark.png") center / contain no-repeat;
        transition: background-color .28s ease;
    }
    /* obrázek uvnitř by maska stejně ořízla, jen by mátl čtečky */
    .wordmark__glyph img { display: none; }

    /* na zelené hlavičce se značka obrátí do bílé */
    .masthead.is-stuck .wordmark__glyph { background: #fff; }
}
.wordmark__name { display: block; font-family: var(--ff-display); font-size: 1.05rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.wordmark__sub {
    display: block;
    font-size: .76rem;
    line-height: 1.2;
    color: var(--ink-soft);
    margin-top: 3px;
    white-space: nowrap;   /* delší podtitulek se nesmí zalomit pod logo */
}

/* Mezi 1241 a 1400 px je vodorovné menu ještě rozbalené a delší podtitulek by ho tlačil.
   Nechme svítit jen název, znak i tak organizaci identifikuje. */
@media (min-width: 1241px) and (max-width: 1400px) {
    .wordmark__sub { display: none; }
    .wordmark__name { line-height: 1.1; }
}

.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a {
    padding: 9px 13px;
    border-radius: var(--pill);
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}
.mainnav a:hover { background: var(--green-tint); color: var(--green-dark); }
.mainnav a.is-active { background: var(--green-tint); color: var(--green-dark); font-weight: 600; }
.mainnav .btn { margin-left: 10px; }
.mainnav .btn.is-active { background: var(--green-dark); color: #fff; }
/* .mainnav a (0-1-1) přebíjelo .btn--solid (0-1-0) a dělalo tmavý text na tmavě zeleném pozadí */
.mainnav a.btn--solid { background: var(--green-dark); color: #fff; }
.mainnav a.btn--solid:hover { background: var(--green); color: #fff; }
.mainnav a.btn--solid:active { background: #fff; color: var(--green-dark); border-color: var(--green-dark); }

.burger {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    align-items: center; justify-content: center;
}
.burger span { display: block; position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .22s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sekce ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--white { background: var(--white); }
.section--paper { background: var(--grey); }
.section--mint { background: var(--green-tint-2); }
.section--deep { background: var(--green-dark); color: rgba(255, 255, 255, .86); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .lead { color: rgba(255, 255, 255, .82); }
.section--deep a { color: #fff; }
.section--deep .kicker { color: #fff; }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 14px 48px;
    align-items: end;
    margin-bottom: clamp(32px, 4vw, 54px);
}
.section-head h2 { margin: 0; }
.section-head .lead { grid-column: 2; margin: 0; }
.section-head--center { text-align: center; grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
.section-head__action { grid-column: 2; justify-self: end; align-self: end; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(30px, 4vw, 56px); background: var(--green-tint-2); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    align-items: center;
}
.hero__body {
    position: relative;
    z-index: 2;
    background: var(--green-dark);
    color: #fff;
    border-radius: var(--r-lg);
    padding: clamp(32px, 3.6vw, 52px);
    margin-right: clamp(-90px, -6vw, -40px);
    box-shadow: var(--shadow);
}
.hero__body .kicker { color: #fff; }
.hero h1 { color: #fff; }
.hero h1 .mark { color: #b7ecc7; }
.hero__lead { color: rgba(255, 255, 255, .86); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__body .btn--solid { background: var(--green); color: #fff; box-shadow: none; border-color: rgba(255, 255, 255, .7); }
.hero__body .btn--solid:hover { background: var(--green-deep); border-color: #fff; color: #fff; }
.hero__body .btn--outline { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero__body .btn--outline:hover { background: #fff; border-color: #fff; color: var(--green-deep); }

.hero__figure { position: relative; margin: 0; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--r-lg); }
.hero__figure figcaption {
    position: absolute; right: 24px; bottom: 20px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--pill);
    backdrop-filter: blur(6px);
}

/* pás s údaji */
.ticker { background: var(--green-tint); color: var(--green-deep); margin-top: clamp(30px, 4vw, 56px); }
.ticker__track { display: flex; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
.ticker__item {
    display: flex; align-items: center; gap: 18px;
    padding: 11px 18px;
    font-family: var(--ff-display);
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
}
.ticker__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ticker__item:last-child::after { display: none; }

/* ---------- záhlaví podstránky ---------- */
.pagehead { padding: clamp(40px, 5vw, 76px) 0 clamp(32px, 4vw, 56px); background: var(--green-tint-2); }
.pagehead h1 { max-width: 20ch; }
.crumbs { font-size: .87rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--green-dark); }

/* ---------- text + obrázek ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(30px, 5vw, 70px); align-items: start; }
.duo--reverse .duo__media { order: -1; }
.duo__media { position: relative; }
.duo__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.duo__caption {
    position: absolute; right: 18px; bottom: 18px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    padding: 9px 18px;
    border-radius: var(--pill);
    font-size: .84rem;
    font-weight: 600;
}

.ticklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticklist li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; }
.ticklist li::before {
    content: "";
    flex: 0 0 auto;
    width: 8px; height: 8px;
    margin-top: 11px;
    border-radius: 50%;
    background: var(--green-dark);
}
.section--deep .ticklist li::before { background: #fff; }

/* ---------- čísla ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.figure { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r); padding: 26px 24px; }
.figure__value { font-family: var(--ff-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 700; line-height: 1; color: #fff; }
.figure__label { margin-top: 12px; font-size: .92rem; color: rgba(255, 255, 255, .78); }

/* ---------- kroky ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.step__num {
    position: absolute;
    right: 22px; top: 22px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-dark);
    font-family: var(--ff-display);
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
}
.section--deep .step { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.step h3 { margin: 0 0 10px; max-width: 82%; }
.step p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 14px; }

/* ---------- dlaždice ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.tile-photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--green-deep); }
.tile-photo img { width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; transition: transform .5s ease; }
.tile-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 90, 44, 0) 42%, rgba(15, 90, 44, .85) 100%);
}
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo figcaption {
    position: absolute; left: 22px; right: 22px; bottom: 20px;
    z-index: 2;
    color: #fff;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 1.08rem;
}

/* ---------- karty ---------- */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 26px; }
.entry {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
/* .section--deep barví text i nadpisy na bílo; uvnitř světlé karty je musíme vrátit zpět */
.section--deep .entry { color: var(--ink-soft); border-color: transparent; box-shadow: var(--shadow-sm); }
.section--deep .entry h3 { color: var(--ink); }
.section--deep .entry a { color: var(--green-dark); }
.entry__media { overflow: hidden; border-radius: var(--r); margin-bottom: 4px; }
.entry__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.entry:hover .entry__media img { transform: scale(1.04); }
.entry__meta { font-size: .82rem; font-weight: 600; color: var(--green); }
.entry h3 { margin: 0; font-size: 1.18rem; }
.entry h3 a { color: var(--ink); }
.entry h3 a:hover { color: var(--green-dark); }
.entry p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.entry .arrow-link { margin-top: auto; align-self: flex-start; padding-top: 6px; }
.entry--rule { background: var(--green-tint-2); border-color: transparent; }

/* ---------- pruh s ikonami ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 30px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.section--deep .feature { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.section--deep .feature__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.section--deep .feature p { color: rgba(255, 255, 255, .85); }
.feature__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-dark);
    font-size: 1.5rem;
    line-height: 1;
}
.feature__icon .icon { width: 27px; height: 27px; display: block; }
.feature__title { font-family: var(--ff-display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.feature p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- reference ---------- */
.testimonials { position: relative; }
.testimonial-avatars {
    position: relative;
    height: 190px;
    max-width: 660px;
    margin: 0 auto 0;
}
.testimonial-avatars img,
.testimonial-avatars .avatar-initials {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-sm);
}
.testimonial-avatars .avatar-initials {
    display: grid;
    place-items: center;
    background: var(--green-deep);
    color: #fff;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .9rem;
}
.testimonial-avatars > .is-main { width: 88px; height: 88px; left: 50%; bottom: 0; transform: translateX(-50%); border-width: 4px; font-size: 1.4rem; }
.testimonial-avatars > *:nth-child(2) { width: 46px; height: 46px; left: 6%; top: 58%; }
.testimonial-avatars > *:nth-child(3) { width: 42px; height: 42px; left: 22%; top: 22%; }
.testimonial-avatars > *:nth-child(4) { width: 48px; height: 48px; right: 8%; top: 26%; }
.testimonial-avatars > *:nth-child(5) { width: 40px; height: 40px; right: 24%; top: 62%; }
.testimonial-avatars > *:nth-child(6) { width: 38px; height: 38px; left: 40%; top: 8%; }

.testimonial-card {
    background: var(--white);
    border-radius: var(--r);
    padding: 30px 34px 26px;
    max-width: 620px;
    margin: -22px auto 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}
.testimonial-card blockquote { margin: 0 0 18px; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); background: none; padding: 0; }
.testimonial-card__name { font-family: var(--ff-display); font-weight: 600; color: var(--green-dark); }
.testimonial-card__role { font-size: .86rem; color: var(--ink-soft); }
.testimonial-card__stars { margin-top: 10px; color: #f0a02c; letter-spacing: 3px; }

.testimonial-dots { display: flex; justify-content: center; gap: 9px; margin-top: 24px; }
.testimonial-dots button {
    width: 9px; height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.testimonial-dots button.is-active { background: #fff; transform: scale(1.3); }

/* ---------- sbírky ---------- */
.campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }
.campaign {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.campaign:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.campaign--featured { border-color: var(--green); box-shadow: var(--shadow-sm); }
.campaign__media { position: relative; overflow: hidden; }
.campaign__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.campaign:hover .campaign__media img { transform: scale(1.04); }
.campaign__flag {
    position: absolute; left: 16px; top: 16px;
    background: var(--green);
    color: #fff;
    border-radius: var(--pill);
    padding: 6px 14px;
    font-size: .76rem;
    font-weight: 600;
}
.campaign__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.campaign__body h3 { margin: 0; font-size: 1.2rem; }
.campaign__body h3 a { color: var(--ink); }
.campaign__body h3 a:hover { color: var(--green-dark); }
.campaign__body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.campaign__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.campaign__deadline { font-size: .84rem; color: var(--ink-soft); }

.progress { margin-top: 4px; }
.progress__bar { height: 10px; border-radius: var(--pill); background: var(--green-tint); overflow: hidden; }
.progress__fill { height: 100%; border-radius: var(--pill); background: var(--green); }
.progress__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .88rem; }
.progress__meta strong { font-family: var(--ff-display); color: var(--green-dark); }
.section--deep .progress__bar { background: rgba(255, 255, 255, .22); }
.section--deep .progress__fill { background: #fff; }
.section--deep .progress__meta strong { color: #fff; }

.campaign-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.campaign-hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
.campaign-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 16px;
}
.campaign-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .93rem; }
.campaign-panel dt { color: var(--ink-soft); }
.campaign-panel dd { margin: 0; font-weight: 600; }

/* ---------- štítky ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 10px 20px;
    font-size: .92rem;
    font-weight: 500;
    transition: border-color .18s ease, color .18s ease;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- výdejní místa ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.place {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    display: grid;
    gap: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.place:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.place h3 { margin: 0 0 4px; font-size: 1.16rem; }
.place__addr { color: var(--ink-soft); font-size: .94rem; }
.place__hours {
    justify-self: start;
    background: var(--green-tint);
    color: var(--green-deep);
    border-radius: var(--pill);
    padding: 5px 14px;
    font-size: .85rem;
    font-weight: 600;
    margin-top: 6px;
}
.place__note { color: var(--ink-soft); font-size: .9rem; margin: 8px 0 0; }

/* ---------- lidé ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.person {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.person__role {
    display: inline-block;
    background: var(--green-tint);
    color: var(--green-dark);
    border-radius: var(--pill);
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
}
.person h3 { margin: 16px 0 4px; font-size: 1.3rem; }
.person__desc { color: var(--ink-soft); font-size: .93rem; margin-bottom: 16px; }
.person a { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); padding: 6px 0; }
.person a:hover { color: var(--green-dark); }

/* ---------- formulář ---------- */
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 52px); align-items: start; }
.formgrid > div:last-child { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
    font: inherit;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(46, 158, 79, .13);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 18px; }
.field-validation-error, .validation-summary-errors { color: #b3261e; font-size: .85rem; font-weight: 500; }
.validation-summary-errors ul { margin: 0 0 16px; padding-left: 18px; }
.input-validation-error { border-color: #b3261e !important; }
.form-note { font-size: .84rem; color: var(--ink-soft); margin-bottom: 20px; }

.notice {
    padding: 16px 22px;
    background: var(--green-tint);
    border-radius: var(--r);
    margin-bottom: 24px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--green-deep);
}

/* ---------- partneři ---------- */
.logo-band + .logo-band { margin-top: 38px; }
.logo-band h3 { font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logos > * {
    display: grid; place-items: center;
    height: 104px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform .2s ease, box-shadow .2s ease;
}
.logos > *:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.logos img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; transition: transform .25s ease; }
.logos > *:hover img { transform: scale(1.04); }

/* ---------- výzva ---------- */
.cta {
    background: var(--green-dark);
    color: #fff;
    border-radius: var(--r-lg);
    padding: clamp(34px, 4.5vw, 62px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 32px;
    align-items: center;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta__side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.account { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); padding: 18px 24px; width: 100%; }
.account span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .74); font-weight: 600; }
.account strong { display: block; font-family: var(--ff-display); font-size: 1.7rem; font-weight: 700; margin-top: 5px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- článek ---------- */
.article-hero { padding: clamp(36px, 5vw, 64px) 0 0; background: var(--green-tint-2); padding-bottom: 40px; }
.article-hero h1 { max-width: 22ch; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; font-weight: 600; color: var(--green-dark); margin-bottom: 14px; }
.article-figure { margin: clamp(24px, 3.5vw, 40px) 0 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body > p:first-of-type { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
/* mezititulky v textu článku – menší než nadpisy sekcí, ať text nepůsobí rozsekaně */
.article-body h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 1.6em 0 .5em; }
.article-body h3 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); margin: 1.4em 0 .4em; }

/* ---------- projekty ---------- */
.status {
    display: inline-block;
    padding: 3px 11px;
    border-radius: var(--pill);
    font-size: .76rem;
    font-weight: 600;
    background: var(--green-tint);
    color: var(--green-deep);
    vertical-align: middle;
}
.status--finished { background: #f0f2f0; color: var(--ink-soft); }
.status--planned { background: #fdefe3; color: #a75a12; }
.entry__meta .status { margin-right: 8px; }

.project-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 22px;
    margin: 0 0 30px;
    padding: 20px 24px;
    background: var(--green-tint-2);
    border-radius: var(--r);
    font-size: .95rem;
}
.project-facts dt { color: var(--ink-soft); }
.project-facts dd { margin: 0; font-weight: 600; }

.docs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.doc {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.doc__type {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--green-tint);
    color: var(--green-deep);
    font-family: var(--ff-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.doc__body { flex: 1 1 180px; min-width: 0; }
.doc__title { font-weight: 600; }
.doc__meta { font-size: .84rem; color: var(--ink-soft); overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .project-facts { grid-template-columns: 1fr; gap: 2px 0; }
    .project-facts dt { margin-top: 10px; }
    .doc { flex-wrap: wrap; }
}

/* ---------- galerie článku a lightbox ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 36px; }
.gallery__item { margin: 0; }
.gallery__item a { display: block; border-radius: var(--r); overflow: hidden; background: var(--green-tint); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item a:hover img { transform: scale(1.04); }
.gallery__item figcaption { font-size: .84rem; color: var(--ink-soft); margin-top: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 24, 16, .92); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(96vw, 1400px); max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 6px; background: #000; }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: .92rem; text-align: center; padding: 0 16px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 1.6rem; line-height: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
body.lightbox-open { overflow: hidden; }

/* ---------- náhled pro správce ---------- */
.preview-bar { background: #fdefe3; color: #8a4a0f; border-bottom: 1px solid #f3d9bf; padding: 10px var(--gutter); text-align: center; font-size: .92rem; }
.preview-mark { background: #fdefe3; color: #8a4a0f; font-size: .82rem; font-weight: 600; padding: 6px var(--gutter); border-top: 2px dashed #e9b88a; }

/* ---------- hledání ---------- */
.utility__search { display: inline-flex; align-items: center; gap: 6px; }
.utility__search svg { width: 15px; height: 15px; }
.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 22px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.search-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(46, 158, 79, .13); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.search-hit { padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.search-hit__section { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); }
.search-hit h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.search-hit p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 720px) { .utility__search span { display: none; } .search-form { flex-direction: column; } }

/* ---------- odběr novinek v patičce ---------- */
.newsletter { margin-top: 18px; }
.newsletter__title { display: block; font-family: var(--ff-display); font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter__row input { flex: 1; min-width: 0; font: inherit; font-size: .92rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.newsletter__row input:focus { outline: none; border-color: var(--green); }
.newsletter__note { font-size: .8rem; color: var(--ink-soft); margin: 8px 0 0; max-width: 34ch; }

/* ---------- patička ---------- */
.site-footer { background: var(--grey); color: var(--ink-soft); padding: clamp(50px, 6vw, 78px) 0 0; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--green-dark); }
.site-footer strong { color: var(--ink); }
.site-footer h4 { font-family: var(--ff-display); font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer-mark { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 14px; }
.footer-note { font-size: .93rem; max-width: 34ch; }
.footer-bottom {
    margin-top: 46px; padding: 20px 0;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
    font-size: .87rem;
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.social svg { width: 17px; height: 17px; }

/* ---------- odhalování ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responzivita ---------- */
@media (max-width: 1400px) {
    .mainnav { gap: 0; }
    .mainnav a { padding: 8px 9px; font-size: .85rem; }
    .mainnav .btn { margin-left: 6px; }
    .masthead__inner { gap: 14px; }
}

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 18px; }
    .hero__body { margin: 0; }
    .section-head { grid-template-columns: 1fr; align-items: start; }
    .section-head .lead { grid-column: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1240px) {
    .burger { display: flex; }
    .mainnav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 16px 22px 24px;
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        opacity: 0; transform: translateY(-10px); pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    body.nav-open .mainnav { opacity: 1; transform: none; pointer-events: auto; }
    .mainnav a { padding: 13px 14px; font-size: 1rem; }
    .mainnav .btn { margin: 12px 0 0; justify-content: center; }
    .duo--reverse .duo__media { order: 0; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .cta { border-radius: var(--r); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .utility, .masthead, .site-footer, .ticker { display: none; }
}

/* ---------- lišta se souhlasem s cookies ---------- */
.cookie-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--white);
    border-top: 2px solid var(--green-tint);
    box-shadow: 0 -14px 40px rgba(15, 90, 44, .14);
    transition: transform .22s ease, opacity .22s ease;
}
.cookie-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cookie-bar__inner {
    max-width: var(--container); margin: 0 auto;
    padding: 20px var(--gutter);
    display: flex; align-items: flex-start; gap: 26px;
}
.cookie-bar__text { flex: 1 1 auto; }
.cookie-bar__text strong { display: block; font-family: var(--ff-display); margin-bottom: 4px; }
.cookie-bar__text p { margin: 0; font-size: .9rem; color: var(--ink-soft); max-width: 76ch; }
.cookie-bar__more {
    margin-top: 8px; padding: 0; border: 0; background: none;
    color: var(--green-dark); font: inherit; font-size: .86rem; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cookie-bar__actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }

.cookie-details { margin-top: 14px; }
.cookie-details table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.cookie-details th, .cookie-details td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.cookie-details th { color: var(--ink); font-weight: 600; }
.cookie-details td { color: var(--ink-soft); }
.cookie-details code { font-size: .82rem; color: var(--green-deep); }
.cookie-details__note { margin: 10px 0 0; font-size: .82rem; color: var(--ink-soft); }

/* tlačítko, které má vypadat jako odkaz (patička) */
.linklike {
    padding: 0; border: 0; background: none; color: inherit;
    font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

@media (max-width: 720px) {
    /* pás s údaji se na mobilu nezalamuje pod sebe, jde posouvat do strany */
    .ticker__track { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .ticker__track::-webkit-scrollbar { display: none; }
    .cookie-bar { max-height: 82dvh; overflow-y: auto; }
    .cookie-bar__inner { flex-direction: column; gap: 16px; }
    .cookie-bar__actions { width: 100%; }
    .cookie-bar__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* past na roboty – mimo obrazovku, ne display:none (to část botů pozná a přeskočí) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.notice--warn { background: #fdefe3; border-color: #f0cdc9; color: #8a4a10; }

/* ---------- přepínač jazyků ---------- */
.langswitch { display: inline-flex; align-items: center; gap: 4px; }
.langswitch__item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px;
    border-radius: var(--pill);
    font-size: .8rem;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}
.langswitch a.langswitch__item:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.langswitch__item.is-current { background: rgba(255, 255, 255, .2); color: #fff; font-weight: 600; }
.flag {
    width: 21px; height: 14px;
    border-radius: 2px;
    flex: 0 0 auto;
    /* bílý pruh české vlajky by na světlém podkladu splynul */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}

@media (max-width: 720px) {
    /* na úzkém displeji stačí vlajka, název jazyka zabírá místo */
    .langswitch__item > span[lang] { display: none; }
    .langswitch__item { padding: 4px 6px; }
}

/* informace pro návštěvníka, který nečte česky */
.foreign-note { max-width: 72ch; }
.foreign-note h2 { font-size: 1.3rem; margin: 0 0 8px; }
.foreign-note p { margin: 0 0 14px; color: var(--ink-soft); }
.foreign-note__links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }

/* ---------- platba QR kódem ---------- */
.donate { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.donate__code { margin: 0; text-align: center; }
.donate__code img {
    width: 240px; height: 240px;
    background: #fff;
    padding: 12px;
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
}
.donate__code figcaption { margin-top: 12px; font-size: .86rem; color: var(--ink-soft); max-width: 240px; }
.donate__amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.donate__amounts .btn.is-active { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.donate__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 18px; }
.donate__facts dt { font-size: .84rem; color: var(--ink-soft); }
.donate__facts dd { margin: 0; }
.donate__facts code { font-size: .92rem; letter-spacing: .02em; }
.donate__note { font-size: .86rem; color: var(--ink-soft); margin: 0; max-width: 56ch; }

.section--deep .donate__code figcaption,
.section--deep .donate__facts dt,
.section--deep .donate__note { color: rgba(255, 255, 255, .82); }

@media (max-width: 720px) {
    .donate { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
    .donate__body { width: 100%; }
}

/* stav otevření výdejního místa */
.place__state {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: var(--pill);
    font-size: .76rem;
    font-weight: 700;
}
.place__state.is-open { background: var(--green-tint); color: var(--green-deep); }
.place__state.is-closed { background: #f1f0ee; color: var(--ink-soft); }
.place__next { display: block; margin-top: 4px; font-size: .8rem; color: var(--ink-soft); }
.section--deep .place__next { color: rgba(255, 255, 255, .8); }

/* mapa výdejních míst */
.placemap {
    height: 420px;
    margin-top: 30px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--grey);
}
@media (max-width: 720px) { .placemap { height: 320px; } }

/* ---------- co teď potřebujeme ---------- */
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.need {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.need__icon {
    width: 40px; height: 40px; flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-dark);
}
.need__icon .icon { width: 21px; height: 21px; display: block; }
.need__body { display: flex; flex-direction: column; gap: 3px; }
.need__note { font-size: .87rem; color: var(--ink-soft); }
.section--deep .need { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.section--deep .need__note { color: rgba(255, 255, 255, .82); }
.section--deep .need__icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- kalendář sbírek a akcí ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event {
    display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.event__when {
    display: grid; place-items: center; gap: 1px;
    padding: 12px 6px;
    background: var(--green-tint);
    border-radius: var(--r-sm);
    color: var(--green-deep);
    line-height: 1.05;
}
.event__day { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; }
.event__month { font-size: .82rem; font-weight: 600; }
.event__year { font-size: .74rem; opacity: .75; }
.event__body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.event__meta { font-size: .86rem; color: var(--ink-soft); margin-bottom: 8px; }
.event__body p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-soft); }
.section--deep .event { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.section--deep .event__meta, .section--deep .event__body p { color: rgba(255, 255, 255, .82); }
@media (max-width: 560px) { .event { grid-template-columns: 1fr; gap: 12px; } .event__when { justify-self: start; padding: 8px 16px; } }

/* Poznámka o zpracování údajů pod odesílacím tlačítkem. */
.form__privacy {
  margin: .75rem 0 0;
  font-size: .85rem;
  color: var(--muted, #6b6b6b);
}
.form__privacy a { color: inherit; }

/* Odkaz na přeskočení menu. Je vidět, až když na něj někdo doskáče tabulátorem. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  background: var(--brand, #1f6f43);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease-in-out;
}
.skip-link:focus { top: 0; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
