@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&family=Open+Sans:wght@400;600;700&display=swap');

/* ============================================================================
   VEVERKY — DESIGN CONFIG   (custom.css se načítá poslední → přebíjí Quark/Spectre)
   ────────────────────────────────────────────────────────────────────────────
   Tohle je "config" webu, obdoba tailwind.config: VŠECHNA designová rozhodnutí
   (barvy, fonty, tvary, stíny, barvy odkazů) žijí jako CSS proměnné ZDE nahoře.
   Komponenty níž už jen čtou var(--token) → změníš token na jednom místě a
   propíše se to všude. Quark/Spectre default je modrá — tu remapujeme v sekci
   VENDOR RESETS hned pod tímhle (taky přes tokeny), takže není potřeba honit
   specificitu rozházenou po celém souboru.
   Fonty: nadpisy Amatic SC, text Open Sans. Fotky ../images/photos.
   ============================================================================ */
:root {
    /* — PALETA — */
    --green:        #3f5d3a;   /* lesní zelená (primární) */
    --green-dark:   #233019;   /* tmavá zelená — nadpisy, footer, overlay menu */
    --green-light:  #6f8f5f;
    --cream:        #f6efe1;   /* krémové pozadí webu */
    --cream-2:      #ece2cf;
    --bark:         #6b4f3a;   /* kůra/hnědá — sekundární text */
    --accent:       #46734a;   /* akční zelená (CTA), laděná s lesní zelenou + bílou */
    --accent-dark:  #355a39;
    --warm:         #e0791f;   /* veverčí oranžová — jen drobné akcenty (logo, hover odkazů) */
    --ink:          #2f2c25;   /* základní barva textu */

    /* — SÉMANTICKÉ (přemapování na účel; mění chování napříč webem) — */
    --link:         var(--green);   /* barva odkazů v textu */
    --link-hover:   var(--warm);    /* hover/active/focus odkazů (sladěno s logem) */

    /* — TYPOGRAFIE — */
    --display:      'Amatic SC', 'Segoe UI', sans-serif;   /* nadpisy (hravý font ze starého webu) */
    --sans:         'Open Sans', 'Segoe UI', sans-serif;   /* běžný text */

    /* — TVARY & HLOUBKA — */
    --radius:       22px;
    --rcard:        2.2rem 0.7rem 2.2rem 0.7rem;   /* organický (asymetrický) tvar karet */
    --shadow:       0 8px 28px rgba(35, 48, 25, 0.16);
    --shadow-sm:    0 3px 12px rgba(35, 48, 25, 0.10);
}

/* ============================================================================
   VENDOR RESETS — přepis Quark/Spectre defaultů na naši paletu (vše přes tokeny)
   Jediné místo, kde neutralizujeme modré defaulty frameworku. Komponentní
   odchylky (menu, nástěnka, footer…) jsou ve svých sekcích níž, ale čtou stejné
   tokeny → změna --link / --link-hover výš se propíše i tam, kde to dává smysl.
   ============================================================================ */
/* odkazy v textu — Spectre default je a:visited #5fa1f2 / a:hover #126bd9 (modrá) */
a, a:link, a:visited { color: var(--link); }
a:hover, a:active, a:focus { color: var(--link-hover); }
#body-wrapper a, #body-wrapper a:visited { color: var(--link); }
#body-wrapper a:hover, #body-wrapper a:active, #body-wrapper a:focus { color: var(--link-hover); }

/* ---- Base ---- */
body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
}
/* anchor skoky (#cenik, #zapis, #zazemi…) ať je fixed header (#header = 4rem) nepřekrývá */
html { scroll-padding-top: 5rem; }
#body-wrapper { background: var(--cream); }
p { font-size: 1.05rem; }

/* Nadpisy — Amatic SC (hravý font ze starého webu); malé funkční nadpisy zůstávají v sans */
h1, h2, h3, h4, .page-title, .band__title, .hero h1, .team-member h2, .value h3 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.05;
    color: var(--green-dark);
}
.news-card h3, .news-card h3 a,
.entity-cards .card h3,
.card--contact h3,
.nastenska-links a,
.dropmenu a, #header .navbar a {
    font-family: var(--sans);
    letter-spacing: 0;
}

.page-title { font-size: 3.4rem; margin: 0 0 .4rem; }

/* full-bleed helper (hero + foto pruh jsou už mimo .container v block body) */

/* ============================ HEADER / NAV ============================ */
#header.section {
    background: rgba(246, 239, 225, 0.97) !important;
    box-shadow: var(--shadow-sm);
    backdrop-filter: saturate(1.1) blur(2px);
}
#header .container { max-width: 1280px !important; }
/* logo vlevo + menu vpravo na jednom řádku, vertikálně vystředěné (jinak se 10 položek zalomí pod logo) */
#header .navbar {
    padding: .3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
}
.navbar-section.logo { flex: 0 0 auto; }
.navbar-section.logo img { height: 54px; width: auto; transition: height .2s ease; }
.navbar-section.desktop-menu { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; }
.dropmenu a, #header .navbar a {
    color: var(--green-dark) !important;
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
}
.dropmenu > ul > li > a { padding-left: .5rem; padding-right: .5rem; }
.dropmenu a:hover, .dropmenu a:focus, .dropmenu a.active { color: var(--accent) !important; }
.dropmenu > ul > li > a.active { border-bottom: 3px solid var(--accent); }

/* mobilní menu overlay — laděné do lesní zelené (místo defaultní černé + modrých odkazů) */
#overlay, .mobile-container .overlay { background: var(--green-dark) !important; }
.overlay-menu ul { list-style: none; padding: 0; margin: 0; }
.overlay-menu li { margin: 0; }
.overlay-menu a {
    font-family: var(--display) !important;
    font-size: 2.2rem !important;
    line-height: 1.25;
    color: #eef2e8 !important;
    padding: .35rem .25rem !important;
    letter-spacing: .5px;
}
/* Tři jasně odlišené stavy: klid = lomená bílá · hover/focus = bílá + podtržení ·
   aktuální stránka (.active) = veverčí oranžová (jako logo) → "tady jsi" je nepřehlédnutelné.
   Quark theme.css má `.treemenu li a:hover/:focus/.active { color:#3e8def !important }` (0,2,2),
   takže VŠECHNY stavy musí jet přes vyšší specificitu `.overlay-menu .treemenu li a…` (0,3,2),
   jinak modrá vyhraje a stavy splynou. `.active` je v pořadí poslední → na aktuální stránce
   přebije i :link/:hover (oranžová zůstane = "you are here"). */
.overlay-menu a:link, .overlay-menu a:visited,
.overlay-menu .treemenu li a:link, .overlay-menu .treemenu li a:visited {
    color: #eef2e8 !important;
    text-decoration: none !important;
}
.overlay-menu a:hover, .overlay-menu a:focus, .overlay-menu a:active,
.overlay-menu .treemenu li a:hover, .overlay-menu .treemenu li a:focus, .overlay-menu .treemenu li a:active {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}
.overlay-menu a.active,
.overlay-menu .treemenu li a.active {
    color: var(--warm) !important;
    text-decoration: none !important;
}
/* hamburger pruhy: zavřený zelený (na krémové hlavičce), otevřený X bílý (na zeleném overlayi) */
.button_container span { background-color: var(--green-dark) !important; }
.button_container.active span { background-color: #fff !important; }
/* mobilní menu musí překrýt VŠE (i cert-badge, který je flex-item v heru → respektuje z-index i při static) */
.mobile-container { z-index: 1000 !important; }
.mobile-menu { z-index: 1001 !important; }

/* ============================== BANDS ============================== */
.band { padding: 4.5rem 0; }
.band--cream { background: var(--cream); }
.band--green { background: var(--green-dark); color: #eaf0e2; }
.band--green a { color: #fff; }

.band__title {
    text-align: center;
    font-size: 3rem;
    margin: 0 0 1.6rem;
    position: relative;
}
.band__title--light { color: #fff; }
/* listový akcent vlevo i vpravo od nadpisu sekce */
.band__title::before, .band__title::after {
    content: "";
    display: inline-block;
    width: 30px; height: 30px;
    margin: 0 .55rem;
    vertical-align: middle;
    background-color: var(--green);
    -webkit-mask: url('../images/icons/leaf.svg') center/contain no-repeat;
            mask: url('../images/icons/leaf.svg') center/contain no-repeat;
}
.band__title::after { transform: scaleX(-1); }
.band__title--light::before, .band__title--light::after { background-color: #dbe8cb; }
.band__lead {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    text-align: center;
    font-size: 1.25rem;
}

/* ================================ HERO ================================ */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem;
    color: #fff;
    /* fallback pro prohlížeče bez image-set() */
    background:
        linear-gradient(180deg, rgba(25,36,20,.50) 0%, rgba(25,36,20,.64) 55%, rgba(20,30,16,.80) 100%),
        url('../images/photos/hero.webp') center 38% / cover no-repeat;
    /* AVIF pro moderní prohlížeče, jinak WebP (Safari <17 ignoruje type() → vezme fallback výše) */
    background:
        linear-gradient(180deg, rgba(25,36,20,.50) 0%, rgba(25,36,20,.64) 55%, rgba(20,30,16,.80) 100%),
        image-set(
            url('../images/photos/hero.avif') type('image/avif'),
            url('../images/photos/hero.webp') type('image/webp')
        ) center 38% / cover no-repeat;
}
.hero__inner { max-width: 820px; }
.hero h1 {
    color: #fff;
    font-size: clamp(3rem, 8vw, 6rem);
    margin: 0 0 .8rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero p {
    color: #f3f0e6;
    font-family: var(--sans);
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    margin: 0 auto 1.8rem;
    text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.cert-badge {
    position: absolute;
    top: 92px; right: 4vw;
    width: 176px; height: 176px;
    background: rgba(255,255,255,.93);
    border-radius: 50%;
    padding: 0;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
    z-index: 3;
}
.cert-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cert-badge:hover { transform: rotate(-4deg) scale(1.05); }

/* hero CTA — víc „pop" na fotce (bílý okraj + větší) */
.hero .btn-cta { font-size: 1.15rem; padding: 1rem 2.3rem; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.hero .btn-cta:hover { border-color: #fff; }

/* =============================== TLAČÍTKA =============================== */
.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.05rem;
    padding: .85rem 1.9rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(35,48,25,.28);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-cta:hover {
    background: var(--accent-dark); color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(35,48,25,.38);
}
.btn-cta--ghost {
    background: transparent;
    color: var(--green-dark) !important;
    border: 2px solid var(--green);
    box-shadow: none;
    padding: .65rem 1.5rem;
}
.btn-cta--ghost:hover { background: var(--green); color: #fff !important; box-shadow: none; }

/* ============================ ENTITY KARTY ============================ */
.entity-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.entity-cards .card {
    position: relative;
    min-height: 380px;
    border-radius: var(--rcard);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.entity-cards .card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,30,18,.12) 0%, rgba(20,30,18,.18) 30%, rgba(18,26,16,.60) 60%, rgba(12,18,10,.92) 100%);
}
.entity-cards .card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(35,48,25,.28); }
.entity-cards .card__body { position: relative; padding: 1.4rem 1.5rem 1.6rem; z-index: 1; }
.entity-cards .card h3 { color: #fff; margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 12px rgba(0,0,0,.7); }
.entity-cards .card p  { color: #f3f0e6; margin: 0 0 1rem; font-size: .98rem; line-height: 1.45; text-shadow: 0 1px 7px rgba(0,0,0,.8); }
.entity-cards .card .btn-cta--ghost { color: #fff !important; border-color: rgba(255,255,255,.85); }
.entity-cards .card .btn-cta--ghost:hover { background: #fff; color: var(--green-dark) !important; }

.card--skolka { background-image: url('../images/photos/card-skolka.webp'); }
.card--klubik { background-image: url('../images/photos/card-klubik.webp'); }
.card--tabory { background-image: url('../images/photos/card-tabory.webp'); }

/* celá dlaždice je odkaz (bez tlačítka) */
.entity-cards a.card { text-decoration: none; cursor: pointer; }
.entity-cards a.card h3::after { content: " →"; color: var(--accent); opacity: 0; transition: opacity .2s ease; }
.entity-cards a.card:hover h3::after { opacity: 1; }

/* ======================= VÝCHOVNÉ INSPIRACE (values) ======================= */
.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}
.value { text-align: center; padding: 0 .4rem; }
.value__icon { font-size: 2.6rem; display: block; margin-bottom: .6rem; }
.value h3 { color: #fff; font-size: 1.9rem; margin: 0 0 .4rem; }
.value p { color: #d7e0cc; font-size: 1rem; line-height: 1.5; margin: 0; }

/* =============================== NÁSTĚNKA =============================== */
.nastenska__lead { text-align: center; margin: 0 0 1.4rem; color: var(--bark); font-size: 1.15rem; }
.nastenska-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.nastenska-links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--cream-2);
    border-radius: 999px;
    padding: .6rem 1.3rem;
    text-decoration: none;
    color: var(--green-dark) !important;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.nastenska-links a:hover { transform: translateY(-2px); background: var(--green); color: #fff !important; }
.nastenska-links .ic { width: 1.15em; height: 1.15em; background-color: var(--green); }
.nastenska-links a:hover .ic { background-color: #fff; }

/* ============================== FOTO PRUH ============================== */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 155px; gap: 8px; }
.photo-strip__item { display: block; background-size: cover; background-position: center; filter: saturate(1.05); transition: transform .3s ease; }
.photo-strip__item.is-tall { grid-row: span 2; }
.photo-strip__item:hover { transform: scale(1.03); position: relative; z-index: 1; }

/* =============================== NOVINKY =============================== */
.news-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-feed--all { grid-template-columns: repeat(3, 1fr); }
.news-card {
    background: #fff;
    border-radius: var(--rcard);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__date {
    display: inline-block; align-self: flex-start;
    background: var(--cream-2); color: var(--bark);
    font-size: .82rem; font-weight: 700;
    padding: .2rem .6rem; border-radius: 6px; margin: 0 0 .6rem;
}
.news-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.news-card h3 a { color: var(--green-dark); text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: .98rem; color: #4a4a40; line-height: 1.5; margin: 0 0 1rem; }
.news-card__link { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--accent) !important; text-decoration: none; }
.news-card__link:hover { color: var(--accent-dark) !important; }
/* homepage: jen poslední novinka — vzdušně, bez boxu, s tělem příspěvku */
.news-latest { max-width: 720px; margin: 0 auto; text-align: center; }
.news-latest .news-card__date { display: inline-block; background: var(--cream-2); color: var(--bark); font-size: .82rem; font-weight: 700; padding: .2rem .7rem; border-radius: 6px; margin: 0 0 .8rem; }
.news-latest h3 { font-family: var(--display); font-size: 2.3rem; line-height: 1.05; margin: 0 0 1rem; }
.news-latest h3 a { color: var(--green-dark); text-decoration: none; }
.news-latest h3 a:hover { color: var(--accent); }
.news-latest__body { text-align: left; font-size: 1.05rem; line-height: 1.6; color: #3a3a32; }
.news-latest__body p { margin: 0 0 1rem; }
.news-latest__body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0; box-shadow: var(--shadow-sm); }
.news-latest__body a, .news-latest__body a:visited { color: var(--link); font-weight: 600; }
.news-latest__body a:hover, .news-latest__body a:active { color: var(--link-hover); }
.home-news__all { text-align: center; margin-top: 1.8rem; }

.novinky-page { margin-bottom: 2rem; }
.novinky-page h1 { font-family: var(--display); font-size: 3.4rem; margin-bottom: .4rem; }

/* ================================ TÝM ================================ */
.tym-page { max-width: 1100px; margin: 0 auto; }
.tym-intro { text-align: center; font-size: 1.2rem; max-width: 720px; margin: 0 auto 2.5rem; }
/* row-major grid: ř1 kubíčková·hornychová·čecháková / ř2 fišerová·šafář·žemličková,
   na mobilu 1 sloupec v přirozeném pořadí. grid-auto-rows:1fr → všechny karty stejně
   vysoké jako nejvyšší (na mobilu vypnuto, ať jednosloupec nemá zbytečné mezery). */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; grid-auto-rows: 1fr; }
.team-card {
    display: flex; flex-direction: column;
    margin: 0;
    background: #fff; border-radius: var(--rcard);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.team-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__photo { flex: 0 0 auto; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
/* body roste do zbytku výšky karty, aby „Víc o mně →" sedělo vždy úplně dole */
.team-card__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 1.1rem 1.3rem 1.3rem; }
.team-card__body h2 { font-size: 1.9rem; margin: 0 0 .25rem; color: var(--green-dark); }
.team-card__role {
    display: block; color: var(--bark);
    font-size: .92rem; font-style: italic; line-height: 1.3;
    margin: 0 0 .6rem;
}
.team-card__bio { display: none; }
.team-card__more { display: block; margin-top: auto; color: var(--accent); font-weight: 700; font-size: .9rem; }
.team-card:hover .team-card__more { color: var(--accent-dark); }

/* team — modal s bio (po kliknutí na kartu) */
.team-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.team-modal[hidden] { display: none; }
.team-modal__backdrop { position: absolute; inset: 0; background: rgba(20,30,18,.6); }
.team-modal__dialog { position: relative; background: #fff; border-radius: var(--radius); max-width: 620px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 2rem; box-shadow: var(--shadow); }
.team-modal__close { position: absolute; top: .5rem; right: .9rem; background: none; border: none; font-size: 2.2rem; line-height: 1; color: var(--bark); cursor: pointer; }
.team-modal__close:hover { color: var(--accent); }
.team-modal__head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.2rem; padding-right: 1.5rem; }
.team-modal__photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: center top; flex: 0 0 auto; }
.team-modal__name { font-family: var(--display); font-size: 2.3rem; color: var(--green-dark); margin: 0; line-height: 1; }
.team-modal__role { display: block; color: var(--bark); font-size: 1rem; font-style: italic; margin: .35rem 0 0; }
.team-modal__bio { font-size: 1rem; line-height: 1.6; color: #3a3a32; }
.team-modal__bio p { margin: 0 0 .8rem; }
.team-modal__bio p:last-child { margin-bottom: 0; }

/* =============================== KONTAKTY =============================== */
.kontakty-page { max-width: 1100px; margin: 0 auto; }
.kontakty-page h1 { margin-bottom: .4rem; }
.kontakty-intro { font-size: 1.15rem; margin-bottom: 2rem; }
.kontakty-cards { grid-template-columns: repeat(3, 1fr); }
/* kontaktní karty = čisté bílé info karty, BEZ foto-overlay varianty a stínu písma */
.entity-cards.kontakty-cards .card--contact {
    display: block;
    min-height: auto;
    color: var(--ink);
    background: #fff;
    padding: 1.6rem 1.7rem;
    box-shadow: var(--shadow-sm);
}
.entity-cards.kontakty-cards .card--contact:hover { transform: none; }
.entity-cards.kontakty-cards .card--contact::before { display: none; }
.entity-cards.kontakty-cards .card--contact h3 { color: var(--green-dark); margin: 0 0 1rem; font-size: 1.3rem; font-weight: 700; text-shadow: none; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .4rem 0; border-bottom: 1px solid var(--cream-2); }
.contact-list li:last-child { border-bottom: none; }
.contact-list a { color: var(--green) !important; text-decoration: none; }
.contact-list a:hover { color: var(--accent) !important; }
/* sociální ikony (FA/line-awesome) – jako na starém webu */
/* kontaktní ikony = stejný Lucide/mask systém; kontakty zelené, footer bílé */
.contact-list .ic, #footer .ic, .mapa-link__cta .ic { width: 1.15em; height: 1.15em; vertical-align: -.12em; }
.contact-list .ic { background-color: var(--green); }
.contact-list a:hover .ic { background-color: var(--accent); }
#footer .ic { background-color: #fff; }
#footer a:hover .ic { background-color: var(--accent); }
.mapa-link__cta .ic { background-color: #fff; }
.card--contact h3 .ic { width: 1.3em; height: 1.3em; vertical-align: -.18em; margin-right: .35rem; background-color: var(--green); }

/* mapa — statický obrázek + proklik */
.kontakt-mapa { margin-top: 3rem; text-align: center; }
.mapa-link { display: inline-block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 640px; }
.mapa-link img { display: block; width: 100%; height: auto; }
.mapa-link__cta {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-weight: 700;
    padding: .5rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.mapa-adresa { margin-top: 1rem; color: var(--bark); }

/* ============================= ANCHOR PILLS ============================= */
.anchor-pills { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 2rem; }
.anchor-pills a {
    background: var(--cream-2);
    border-radius: 999px;
    padding: .45rem 1.2rem;
    text-decoration: none;
    color: var(--green-dark) !important;
    font-weight: 700;
    transition: background .15s ease, color .15s ease;
}
.anchor-pills a:hover { background: var(--accent); color: #fff !important; }

/* akční řádek (přihláška / domluvit návštěvu) + kalendář */
.cta-row { text-align: center; margin: 1.6rem 0 2rem; }

/* branded kalendář akcí (data z Google Calendar API, render vlastní) */
.vv-cal { display: grid; gap: .7rem; margin: 1.5rem auto .8rem; max-width: 720px; }
.vv-cal__loading, .vv-cal__empty { color: var(--bark); text-align: center; padding: 1rem; }
.vv-cal__more { text-align: center; margin: 0; }
.vv-cal__more a { color: var(--green) !important; font-weight: 700; text-decoration: none; }
.vv-cal__more a:hover { color: var(--accent) !important; }
.vv-event {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: .7rem 1.1rem;
    text-decoration: none; border-left: 5px solid var(--accent);
    transition: transform .15s ease, box-shadow .15s ease;
}
.vv-event:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.vv-event__date {
    flex: 0 0 auto; width: 62px; text-align: center; line-height: 1;
    background: var(--green-dark); color: #fff; border-radius: 12px; padding: .45rem 0;
}
.vv-event__day { display: block; font-family: var(--display); font-size: 2rem; font-weight: 700; }
.vv-event__mon { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #cfe0c4; }
.vv-event__info { display: flex; flex-direction: column; }
.vv-event__title { font-weight: 700; color: var(--green-dark); font-size: 1.12rem; line-height: 1.25; }
.vv-event__time { color: var(--bark); font-size: .9rem; }

/* content pages — nadpisy + obrázky */
#body-wrapper h1 { font-family: var(--display); font-size: 3.4rem; }
#body-wrapper h2:not(.band__title):not(.team-name):not(.team-modal__name) {
    font-family: var(--display); font-size: 2.9rem;
    margin: 2.8rem 0 1.1rem; color: var(--green-dark);
    position: relative; padding-left: 2.6rem; line-height: 1;
}
#body-wrapper h2:not(.band__title):not(.team-name):not(.team-modal__name)::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px;
    background-color: var(--green);
    -webkit-mask: url('../images/icons/leaf.svg') center/contain no-repeat;
            mask: url('../images/icons/leaf.svg') center/contain no-repeat;
}
#body-wrapper h3 { font-family: var(--display); font-size: 1.8rem; color: var(--green); margin-top: 1.8rem; }
#body-wrapper img { border-radius: var(--radius); max-width: 100%; height: auto; }
#body-wrapper hr { border: none; border-top: 1px dashed var(--green-light); margin: 2rem 0; }

/* icon-cards = vzdušné (jako „Naše výchovné inspirace"), BEZ boxů/dlaždic;
   flex-wrap + centrování → lichý počet (5) se srovná balancovaně, ne osamocený roh */
.icon-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 1.6rem; margin: 1.8rem 0; }
.icon-card { flex: 1 1 150px; max-width: 220px; background: none; box-shadow: none; border: none; padding: 0; text-align: center; }

/* line ikony (Lucide) obarvené přes CSS mask — jednoduchý přírodní styl napříč webem */
.ic {
    display: inline-block; width: 2.8rem; height: 2.8rem;
    background-color: var(--green);
    -webkit-mask: var(--icon) center / contain no-repeat;
            mask: var(--icon) center / contain no-repeat;
}
.icon-card .ic, .value .ic { display: block; margin: 0 auto .6rem; }
.band--green .ic { background-color: #dbe8cb; }
.ic--cloud-sun { --icon: url('../images/icons/cloud-sun.svg'); }
.ic--heart-handshake { --icon: url('../images/icons/heart-handshake.svg'); }
.ic--sprout { --icon: url('../images/icons/sprout.svg'); }
.ic--users { --icon: url('../images/icons/users.svg'); }
.ic--sunrise { --icon: url('../images/icons/sunrise.svg'); }
.ic--trees { --icon: url('../images/icons/trees.svg'); }
.ic--apple { --icon: url('../images/icons/apple.svg'); }
.ic--palette { --icon: url('../images/icons/palette.svg'); }
.ic--cloud-rain { --icon: url('../images/icons/cloud-rain.svg'); }
.ic--baby { --icon: url('../images/icons/baby.svg'); }
.ic--scale { --icon: url('../images/icons/scale.svg'); }
.ic--clipboard-list { --icon: url('../images/icons/clipboard-list.svg'); }
.ic--wallet { --icon: url('../images/icons/wallet.svg'); }
.ic--newspaper { --icon: url('../images/icons/newspaper.svg'); }
.ic--mail { --icon: url('../images/icons/mail.svg'); }
.ic--leaf { --icon: url('../images/icons/leaf.svg'); }
.ic--home { --icon: url('../images/icons/home.svg'); }
.ic--phone { --icon: url('../images/icons/phone.svg'); }
.ic--map-pin { --icon: url('../images/icons/map-pin.svg'); }
.ic--facebook { --icon: url('../images/icons/facebook.svg'); }
.ic--instagram { --icon: url('../images/icons/instagram.svg'); }
.ic--book-open { --icon: url('../images/icons/book-open.svg'); }
.icon-card h3 { font-family: var(--display); font-size: 1.7rem; color: var(--green-dark); margin: 0 0 .35rem; }
.icon-card p { font-size: .95rem; line-height: 1.45; color: #4a4a40; margin: 0; }

/* zázemí — foto napřed (kulaté foto + popisek pod, BEZ bílého boxu) */
.zazemi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin: 1.8rem 0; }
.zazemi-card { background: none; }
.zazemi-card__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rcard); box-shadow: var(--shadow-sm); background: var(--cream-2); }
/* prefix #body-wrapper nutný: out-specifikuje `#body-wrapper img { height:auto }` (řádek pro prosové obrázky), jinak by height:auto vyhrál a cover by dlaždici nevyplnil */
#body-wrapper .zazemi-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.zazemi-card:hover .zazemi-card__photo img { transform: scale(1.05); }
.zazemi-card__body { padding: .9rem .2rem 0; }
.zazemi-card__body h3 { font-family: var(--display); font-size: 1.7rem; color: var(--green-dark); margin: 0 0 .3rem; }
.zazemi-card__body p { font-size: .95rem; line-height: 1.5; margin: 0; color: #4a4a40; }
@media (max-width: 840px) { .zazemi-cards { grid-template-columns: 1fr; } }

/* ================================ FOOTER ================================ */
#footer.section { background: var(--green-dark); color: #e2e9d9; padding: 0 0 1.5rem; margin-top: 0; position: relative; }
.footer-logo { text-align: center; padding-top: 1.8rem; margin-bottom: .5rem; }
.footer-logo img { height: 74px; width: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1rem; }
#footer h4 { color: #fff; font-family: var(--display); font-size: 1.6rem; margin: 0 0 .6rem; }
#footer ul { list-style: none; margin: 0; padding: 0; }
#footer li { padding: .25rem 0; font-size: .98rem; }
#footer a { color: #cfe0c4 !important; text-decoration: none; }
#footer a:hover { color: var(--accent) !important; }
.footer-cert { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; background: rgba(255,255,255,.95); border-radius: 999px; padding: .4rem .9rem .4rem .4rem; }
.footer-cert img { width: 44px; height: 44px; }
.footer-cert span { color: var(--green-dark) !important; font-weight: 700; font-size: .9rem; }
.footer-bottom { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; opacity: .85; text-align: center; }
.footer-bottom p { margin: 0; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 900px) {
    .values { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
}
@media (max-width: 840px) {
    .entity-cards, .kontakty-cards, .news-feed, .news-feed--all { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.4rem; }
    .photo-strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .photo-strip__item.is-tall { grid-row: auto; }
    .hero { min-height: 66vh; padding: 4.5rem 1.2rem; }
    .cert-badge { position: static; display: block; width: 140px; height: 140px; margin: 0 auto 1.2rem; z-index: auto; }
    .band { padding: 3.2rem 0; }
    .band__title { font-size: 2.5rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .values { grid-template-columns: 1fr; }
    .photo-strip { grid-template-columns: repeat(2, 1fr); }
    .navbar-section.logo img { height: 46px; }
    .band__title { font-size: 2.2rem; }
    .team-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}


/* ---- NADPISY NA TELEFONU: vycentrovat (na desktopu zůstávají vlevo) ----
   Majitelka: nezarovnané nadpisy nevypadají hezky, hlavně na mobilu.
   U H2 přesouváme listový akcent z absolutního umístění vlevo na inline
   PŘED text, aby se vycentroval spolu s nadpisem (ne aby visel u kraje). */
@media (max-width: 640px) {
    .page-title,
    #body-wrapper h2:not(.band__title):not(.team-name):not(.team-modal__name),
    #body-wrapper h3 { text-align: center; }
    #body-wrapper h2:not(.band__title):not(.team-name):not(.team-modal__name) { padding-left: 0; }
    #body-wrapper h2:not(.band__title):not(.team-name):not(.team-modal__name)::before {
        position: static; display: inline-block; transform: none;
        margin-right: .45rem; vertical-align: middle;
    }
    /* karty zázemí drží popisek vlevo → jejich nadpis necháme taky vlevo */
    .zazemi-card__body h3 { text-align: left; }
}
