/* =====================================================
   MŠ Na Paloučku, Tišnov – veřejný web
   Vzhled dle návrhu „Palouček": zemitá lesní paleta,
   fonty Baloo 2 + Nunito, oblé karty, pilulková tlačítka
   ===================================================== */

:root {
    /* pozadí a plochy */
    --c-bg:        #E9E5DC;   /* stránka */
    --c-cream:     #FDFBF2;   /* hlavní obsahová plocha */
    --c-surface:   #ffffff;   /* karty */
    --c-mint:      #EAF3E4;   /* světle zelené sekce / chip */
    --c-mint-2:    #E3F0DC;

    /* zelené */
    --c-green:        #4C9A46; /* primární */
    --c-green-dark:   #3E7C3A; /* brand / odkazy */
    --c-green-darker: #2E5F2B; /* hover */

    /* text */
    --c-ink:     #33402C;  /* nadpisy / tmavá zelená */
    --c-body:    #5C5847;
    --c-muted:   #6B6754;
    --c-muted-2: #8A8574;

    /* žlutá (sluníčko / CTA) */
    --c-yellow:        #F5C542;
    --c-yellow-shadow: #DBA92B;
    --c-yellow-ink:    #5B4A0E;

    /* doplňky */
    --c-line:   #E5E0D0;
    --c-blue:   #E1EEF7;
    --c-pink:   #FDEDEA;
    --c-peach:  #FDEAC0;

    --radius:    20px;
    --radius-lg: 24px;
    --radius-sm: 14px;
    --shadow:    0 3px 12px rgba(60,90,50,.08);
    --shadow-md: 0 6px 18px rgba(60,90,50,.14);
    --shadow-lift: 0 14px 30px rgba(60,90,50,.18);
    --maxw:      1200px;

    --font-head: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-body);
    background: var(--c-cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green-dark); text-decoration: none; }
a:hover { color: var(--c-green-darker); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; color: var(--c-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

.eyebrow { color: var(--c-green-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(253,251,242,.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 50%; background: var(--c-yellow);
    display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0;
    box-shadow: 0 3px 0 var(--c-yellow-shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; color: var(--c-green-dark); }
.brand-sub { font-size: .72rem; color: var(--c-muted-2); font-weight: 700; letter-spacing: .12em; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav-link { color: #4A4636; font-weight: 700; font-size: .98rem; padding: .4rem 0; border-bottom: 3px solid transparent; transition: color .15s; }
.nav-link:hover { color: var(--c-green-dark); text-decoration: none; }
.nav-link.active { color: var(--c-green-dark); border-bottom-color: var(--c-yellow); }
/* Kontakt jako zelená pilulka */
.nav-link[href$="/kontakt"] {
    background: var(--c-green); color: #fff; border-radius: 999px; padding: .55rem 1.4rem; border-bottom: 0;
}
.nav-link[href$="/kontakt"]:hover { color: #fff; filter: brightness(1.07); }
.nav-link[href$="/kontakt"].active { border-bottom: 0; background: var(--c-green-dark); box-shadow: inset 0 0 0 3px var(--c-yellow); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 26px; height: 3px; background: var(--c-ink); border-radius: 3px; }

/* Rozbalovací podmenu */
.nav-item { position: relative; }
.nav-sub-toggle { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer; font: inherit; }
.nav-sub-toggle .caret { font-size: .68em; transition: transform .15s; }
.submenu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); display: none; z-index: 60; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
.has-sub:hover .caret { transform: rotate(180deg); }
.submenu li { margin: 0; }
.sub-link { display: block; padding: .55rem .85rem; border-radius: 8px; color: var(--c-ink); font-weight: 700; font-size: .95rem; }
.sub-link:hover { background: var(--c-mint); text-decoration: none; color: var(--c-green-dark); }
.sub-link.active { color: var(--c-green-dark); background: var(--c-mint); }

/* ── Buttons (pilulky) ──────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
    padding: .8rem 1.7rem; border-radius: 999px; cursor: pointer; border: 2.5px solid transparent;
    transition: transform .15s, filter .15s, box-shadow .15s; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--c-yellow); color: var(--c-yellow-ink); box-shadow: 0 6px 0 var(--c-yellow-shadow); }
.btn-primary:hover { color: var(--c-yellow-ink); filter: brightness(1.05); }
.btn-secondary { background: var(--c-green); color: #fff; }
.btn-secondary:hover { color: #fff; filter: brightness(1.07); }
.btn-outline { background: transparent; color: var(--c-green-dark); border-color: var(--c-green); }
.btn-outline:hover { color: var(--c-green-dark); background: var(--c-mint); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; box-shadow: none; }

/* ── Hero ───────────────────────────────────────────── */
.hero { background-color: var(--c-cream); background-image: url('../img/design/8cc0ded3-270e-4896-8029-dcb114c57d86.svg'); background-size: 420px; padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-eyebrow {
    display: inline-block; background: var(--c-mint); color: var(--c-green-dark);
    font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
    padding: .5rem 1.1rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: .3em; }
.hero h1 .hl { color: var(--c-green); }
.hero .lead { font-size: 1.15rem; color: var(--c-body); max-width: 46ch; margin: 0 0 1.6rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero-badges { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2rem; color: var(--c-muted); font-weight: 700; font-size: .92rem; }
.hero-photo {
    border-radius: 46% 54% 52% 48% / 44% 46% 54% 56%;
    overflow: hidden; aspect-ratio: 1.15; box-shadow: 0 16px 44px rgba(76,154,70,.25);
    background: var(--c-mint);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.placeholder { display: grid; place-items: center; font-size: 5rem; }

/* zvlněný předěl */
.wave { display: block; width: 100%; margin-top: 1.5rem; }

/* ── Rychlé odkazy (quick cards) ────────────────────── */
.quick-band { background-color: var(--c-mint); background-image: url('../img/design/8cc0ded3-270e-4896-8029-dcb114c57d86.svg'); background-size: 420px; padding: 1.4rem 0 2rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-card {
    background: #fff; border-radius: var(--radius-sm); padding: .9rem 1.1rem; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: .75rem; transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); text-decoration: none; }
.quick-card .qc-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; background: var(--c-peach); }
.quick-card:nth-child(2) .qc-ico { background: var(--c-mint-2); }
.quick-card:nth-child(3) .qc-ico { background: var(--c-blue); }
.quick-card .qc-label { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--c-ink); flex: 1; }
.quick-card .qc-arrow { color: var(--c-green-dark); font-weight: 800; }
.quick-card.is-green { background: var(--c-green); color: #fff; }
.quick-card.is-green .qc-label { color: #fff; }
.quick-card.is-green .qc-ico { background: rgba(255,255,255,.2); }

/* ── Sekce nadpisy ──────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-head p { color: var(--c-muted); max-width: 58ch; margin-inline: auto; }

/* ── Feature tiles ──────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.tile {
    background: var(--c-surface); border-radius: var(--radius-lg); padding: 2rem 1.6rem;
    box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.tile .tile-emoji { font-size: 2rem; width: 66px; height: 66px; margin: 0 auto .9rem; display: grid; place-items: center; border-radius: 20px; background: var(--c-peach); }
.tile:nth-child(2) .tile-emoji { background: var(--c-mint-2); }
.tile:nth-child(3) .tile-emoji { background: var(--c-blue); }
.tile:nth-child(4) .tile-emoji { background: var(--c-pink); }
.tile h3 { margin-bottom: .3em; }
.tile p { color: var(--c-muted); margin: 0; }

/* ── News grid ──────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.news-card {
    background: transparent; border: 1.5px solid var(--c-line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
    color: inherit;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); text-decoration: none; color: inherit; }
.news-card .thumb { aspect-ratio: 16/10; background: var(--c-mint); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb.placeholder { display: grid; place-items: center; font-size: 2.6rem; }
.news-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card .date { display: inline-block; align-self: flex-start; background: var(--c-yellow); color: var(--c-yellow-ink); font-weight: 800; font-size: .78rem; padding: .25rem .8rem; border-radius: 999px; margin-bottom: .7rem; }
.news-card .date.d0 { background: var(--c-yellow); color: var(--c-yellow-ink); }
.news-card .date.d1 { background: var(--c-mint); color: var(--c-green-dark); }
.news-card .date.d2 { background: var(--c-blue); color: #2E6E9E; }
.news-card h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.news-card p { color: var(--c-muted); margin: 0 0 1rem; }
.news-card .more { margin-top: auto; font-weight: 800; color: var(--c-green-dark); }

/* ── Gallery ────────────────────────────────────────── */
.gal-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.gal-chip { border: 2px solid var(--c-line); color: var(--c-muted); font-weight: 800; font-size: .9rem; padding: .5rem 1.15rem; border-radius: 999px; transition: all .15s; }
.gal-chip:hover { border-color: var(--c-green); color: var(--c-green-dark); text-decoration: none; }
.gal-chip.is-active { background: var(--c-green); color: #fff; border-color: var(--c-green); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.album-card { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-surface); transition: transform .2s, box-shadow .2s; }
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); text-decoration: none; }
.album-card .cover { aspect-ratio: 4/3; background: var(--c-mint); display: grid; place-items: center; font-size: 2.6rem; overflow: hidden; }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card .caption { padding: 1rem 1.2rem; }
.album-card .caption h3 { margin: 0; font-size: 1.1rem; }
.album-card .caption small { color: var(--c-muted); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.photo-grid a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.photo-grid a:hover img { transform: scale(1.05); }

/* ── Lightbox ───────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(30,36,26,.94); display: none; align-items: center; justify-content: center; z-index: 200; }
.lightbox.open { display: flex; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; max-width: 92vw; }
.lb-stage img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 12px 45px rgba(0,0,0,.5); }
.lb-stage figcaption { color: #fff; font-size: .95rem; text-align: center; }
.lb-close { position: absolute; top: .8rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .85; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 2.2rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 1.2rem; } .lb-next { right: 1.2rem; }
.lb-counter { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 560px) { .lb-nav { width: 44px; height: 44px; font-size: 1.7rem; } .lb-prev { left: .3rem; } .lb-next { right: .3rem; } }

/* ── Documents ──────────────────────────────────────── */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.doc-item .doc-ico { font-size: 1.6rem; }
.doc-item .doc-info { flex: 1; }
.doc-item .doc-info strong { display: block; color: var(--c-ink); font-family: var(--font-head); }
.doc-item .doc-info small { color: var(--c-muted); }
.doc-cat-title { margin-top: 1.8rem; color: var(--c-green-dark); }

/* ── Jídelníček ─────────────────────────────────────── */
.menu-days { display: grid; gap: 1rem; max-width: 820px; margin-inline: auto; }
.menu-day { background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.menu-day-head { display: flex; align-items: baseline; gap: .7rem; padding: .8rem 1.3rem; background: var(--c-mint); border-bottom: 1px solid var(--c-line); }
.menu-dow { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--c-ink); }
.menu-date { color: var(--c-muted); font-size: .9rem; }
.menu-meals { list-style: none; margin: 0; padding: .6rem 1.3rem 1rem; display: grid; gap: .55rem; }
.menu-meals li { display: grid; grid-template-columns: 1.6rem 6.5rem 1fr; align-items: baseline; gap: .5rem; }
.meal-ico { font-size: 1.1rem; }
.meal-label { font-weight: 800; color: var(--c-green-dark); }
.meal-text { color: var(--c-body); }
.menu-note { text-align: center; color: var(--c-muted); font-style: italic; margin: 1.4rem auto 0; max-width: 820px; }
.allergen-box { max-width: 820px; margin: 1.2rem auto 0; background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); padding: .4rem 1.2rem; }
.allergen-box summary { cursor: pointer; font-weight: 800; color: var(--c-ink); padding: .6rem 0; }
.allergen-list { list-style: none; padding: 0 0 .8rem; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: .3rem .9rem; }
.allergen-list li { color: var(--c-muted); font-size: .9rem; }
@media (max-width: 560px) { .menu-meals li { grid-template-columns: 1.6rem 1fr; } .meal-label, .meal-text { grid-column: 2; } }

/* ── Article / page content ─────────────────────────── */
.article { max-width: 780px; margin-inline: auto; background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.article .hero-img { border-radius: var(--radius); margin-bottom: 1.5rem; width: 100%; }
.prose { font-size: 1.06rem; color: var(--c-body); }
.prose h2, .prose h3 { margin-top: 1.5em; color: var(--c-ink); }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; max-width: 100%; height: auto; }
.prose img.img-25 { width: 25%; } .prose img.img-50 { width: 50%; } .prose img.img-75 { width: 75%; } .prose img.img-100 { width: 100%; }
.prose img.img-left { float: left; margin: .3em 1.4em .8em 0; }
.prose img.img-right { float: right; margin: .3em 0 .8em 1.4em; }
.prose img.img-center { display: block; margin-left: auto; margin-right: auto; }
.prose::after { content: ""; display: block; clear: both; }
.article-meta { display: inline-block; background: var(--c-yellow); color: var(--c-yellow-ink); font-weight: 800; padding: .3rem .9rem; border-radius: 999px; margin-bottom: .8rem; font-size: .85rem; }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 800; color: var(--c-green-dark); }

/* ── Contact ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-card { background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--radius-lg); padding: 2rem; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-card li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-card .ci { font-size: 1.4rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; background: var(--c-mint); }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ── Flash & empty ──────────────────────────────────── */
.flash { padding: .9rem 1.2rem; border-radius: var(--radius-sm); margin: 1.5rem 0; font-weight: 700; }
.flash--success { background: #e6f6e6; color: #256b23; }
.flash--error   { background: #fdecec; color: #b3261e; }
.flash--info    { background: var(--c-mint); color: var(--c-green-darker); }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-emoji { font-size: 3.5rem; margin-bottom: .5rem; }

/* ── Cookie lišta ───────────────────────────────────── */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 760px; margin-inline: auto; background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 1.1rem 1.3rem; z-index: 300; display: flex; gap: .8rem 1.4rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .92rem; color: var(--c-body); flex: 1 1 320px; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--c-ink); color: #d8dcc9; }
.footer-grass { margin-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.8rem; padding: 2rem 0 1.3rem; }
.footer-col h3 { color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-head); margin: 0 0 .6rem; }
.footer-col p { margin: .2rem 0; }
.footer-col a { color: #cfe0bf; }
.footer-col a:hover { color: #fff; }
.footer-links { margin-top: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: .8rem 0; font-size: .85rem; color: #a9b29a; }

/* Kompaktní patička (podstránky) */
.footer-compact { padding: 1.5rem 0; }
.footer-compact .container { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; font-size: .92rem; color: #d8dcc9; }
.footer-compact .fc-name { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.08rem; margin-bottom: .1rem; }
.footer-compact .fc-contact { text-align: right; }
.footer-compact .fc-contact a { color: #cfe0bf; }
.footer-compact .fc-contact a:hover { color: #fff; }
@media (max-width: 520px) { .footer-compact .fc-contact { text-align: left; } }

/* ── Hero dekorace (dle návrhu) ─────────────────────── */
.hero { position: relative; }
.hero .container { position: relative; z-index: 2; }
.hero-deco { position: absolute; pointer-events: none; z-index: 1; user-select: none; }
.hero-deco.sun { top: -180px; right: -140px; width: 480px; opacity: .9; }
.hero-deco.leaf2 { bottom: 30px; left: 42%; width: 60px; opacity: .8; }
@media (max-width: 820px) { .hero-deco.leaf2 { display: none; } }
.hero-photo-wrap { position: relative; }
.hero-photo-wrap .deco-lady { position: absolute; bottom: -18px; left: -22px; width: 108px; transform: rotate(-6deg); }
.hero-photo-wrap .deco-bug  { position: absolute; top: -10px; right: 0; width: 54px; transform: rotate(14deg); }
@keyframes floaty { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-7px) rotate(3deg); } }
.fl { animation: floaty 3.2s ease-in-out infinite alternate; }
@keyframes crawl { from { transform: rotate(-6deg) translateX(0); } to { transform: rotate(-6deg) translateX(9px); } }
.crawl { animation: crawl 5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .fl, .crawl { animation: none; } }

/* ── Sekce: nadpis + odkaz vpravo ───────────────────── */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.sec-head h2 { margin: 0; }
.sec-head .more-link { color: var(--c-green-dark); font-weight: 800; white-space: nowrap; }

/* ── Klíčová sdělení (foto karty) ───────────────────── */
.feature-lead { text-align: center; margin-bottom: 2rem; }
.feature-lead .eyebrow { display: block; margin-bottom: .3rem; }
.feature-lead h2 { margin: 0; }
.feature-lead h2 .hl { color: var(--c-green); }
.h-ico { width: 42px; height: auto; vertical-align: -8px; margin: 0 8px; display: inline-block; }
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: .88; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card .fc-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(51,64,44,0) 30%, rgba(51,64,44,.85) 100%); }
.feature-card.is-green { background: var(--c-green); }
.feature-card .fc-text { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; z-index: 2; }
.feature-card .fc-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.15; display: block; margin-bottom: .2rem; }
.feature-card .fc-text span { font-size: .8rem; line-height: 1.4; opacity: .92; }

/* ── Naše třídy ─────────────────────────────────────── */
.class-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.class-card { background: #fff; border-radius: 22px; padding: 1.5rem 1.1rem; box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s; }
.class-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); text-decoration: none; }
.class-card .cc-ico { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto .7rem; display: grid; place-items: center; }
.class-card .cc-ico img { width: 36px; }
.class-card .cc-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--c-ink); }
.class-card .cc-sub { font-size: .8rem; color: var(--c-muted-2); font-weight: 700; }

/* ── O nás (split + koláž) ──────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; align-items: center; }
.about-split .prose-lead p { font-size: 1.05rem; line-height: 1.7; color: var(--c-body); margin: 0 0 .9rem; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.about-photos img { width: 100%; object-fit: cover; border-radius: 18px; }
.about-photos img.wide { grid-column: 1/3; aspect-ratio: 1.3; }
.about-photos .gal-tile { background: var(--c-yellow); border-radius: 18px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--c-yellow-ink); text-align: center; padding: 1rem; }
.about-photos .gal-tile:hover { filter: brightness(1.03); text-decoration: none; }

/* ── Patička – tráva ────────────────────────────────── */
.footer-grass { display: block; width: 100%; margin-bottom: -5px; }

/* ── Třídy – karty dle návrhu (2b) ──────────────────── */
.tridy-list { display: flex; flex-direction: column; gap: 1.4rem; }
.tridy-card { background: #fff; border-radius: 24px; padding: 2rem; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr auto; gap: 1.8rem; align-items: center; transition: transform .2s, box-shadow .2s; }
.tridy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tridy-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.tridy-ico img { width: 54px; }
.tridy-name { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--c-ink); }
.tridy-name span { font-size: 1rem; color: var(--c-muted-2); font-weight: 600; }
.tridy-card .desc { margin: .5rem 0 0; color: var(--c-muted); line-height: 1.6; }
.tridy-card .teachers { margin-top: .5rem; font-size: .92rem; color: var(--c-muted-2); font-weight: 700; }
@media (max-width: 720px) {
    .tridy-card { grid-template-columns: auto 1fr; }
    .tridy-card .tridy-plan { grid-column: 1 / -1; justify-self: start; }
}

/* ── Breadcrumb pruh podstránky ─────────────────────── */
.page-hero { background-color: var(--c-mint); background-image: url('../img/design/8cc0ded3-270e-4896-8029-dcb114c57d86.svg'); background-size: 420px; padding: clamp(1.8rem, 4vw, 2.8rem) 0; }
.page-hero .crumb { font-size: .82rem; font-weight: 800; color: var(--c-green-dark); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.page-hero h1 { margin: 0; }
.page-hero .ph-deco { width: 44px; vertical-align: -8px; margin-left: 8px; display: inline-block; }

/* ── Aktuality – rozvržení dle návrhu (2a) ──────────── */
.aktuality-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.75rem; align-items: start; }
.news-list { display: flex; flex-direction: column; gap: 1.1rem; }
.news-row { background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem 1.8rem; display: flex; gap: 1.4rem; align-items: flex-start; transition: transform .2s, box-shadow .2s; }
.news-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.nr-date { border-radius: 14px; padding: .55rem .8rem; text-align: center; font-family: var(--font-head); font-weight: 800; line-height: 1.1; flex-shrink: 0; min-width: 58px; }
.nr-date .d { display: block; font-size: 1.35rem; }
.nr-date .m { display: block; font-size: .8rem; }
.nr-date.c0 { background: var(--c-yellow); color: var(--c-yellow-ink); }
.nr-date.c1 { background: var(--c-mint); color: var(--c-green-dark); }
.nr-date.c2 { background: var(--c-blue); color: #2E6E9E; }
.nr-date.c3 { background: var(--c-pink); color: #C23A25; }
.nr-body h3 { margin: 0 0 .3em; font-size: 1.35rem; }
.nr-body p { margin: 0 0 .6rem; color: var(--c-muted); }
.nr-body .more { font-weight: 800; color: var(--c-green-dark); }
.nr-thumb { width: 120px; height: 90px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }

.side-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.side-card h3 { font-size: 1.15rem; margin: 0 0 .8rem; }
.side-archive { display: flex; flex-direction: column; gap: .5rem; }
.side-archive a { font-weight: 700; color: var(--c-green-dark); }
.side-archive a:hover { text-decoration: underline; }
.side-archive a.is-active { color: var(--c-ink); background: var(--c-mint); border-radius: 8px; padding: .15rem .5rem; margin: 0 -.5rem; }
.side-card.is-green { background: var(--c-green); color: #fff; }
.side-card.is-green h3 { color: #fff; }

/* ── Jídelníček – tabulka dle návrhu (2c) ───────────── */
.jd-topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.jd-week { background: var(--c-green); color: #fff; font-weight: 800; padding: .55rem 1.2rem; border-radius: 999px; }
.jd-nav { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; margin: -.3rem 0 1.6rem; }
.jd-navbtn { border: 2.5px solid var(--c-green); color: var(--c-green-dark); font-weight: 800; font-size: .9rem; padding: .5rem 1.1rem; border-radius: 999px; }
.jd-navbtn:hover { background: var(--c-mint); text-decoration: none; }
.jd-navbtn.is-off { border-color: var(--c-line); color: var(--c-muted-2); opacity: .55; }
.jd-days { display: flex; flex-direction: column; gap: 1rem; }
.jd-day { background: #fff; border-radius: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 150px 1fr 1fr 1fr; overflow: hidden; }
.jd-label { background: var(--c-green); color: #fff; padding: 1.3rem; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; display: grid; place-items: center; text-align: center; line-height: 1.25; }
.jd-label.alt { background: #5FA054; }
.jd-cell { padding: 1.2rem 1.3rem; border-right: 1.5px solid #F0EBDD; }
.jd-cell:last-child { border-right: 0; }
.jd-cell .lbl { font-size: .74rem; font-weight: 800; letter-spacing: .05em; }
.jd-cell.snack .lbl { color: #B0731A; }
.jd-cell.lunch .lbl { color: var(--c-green-dark); }
.jd-cell .txt { font-size: .95rem; color: #4A4636; margin-top: .25rem; line-height: 1.5; }
.jd-cell .alg { color: var(--c-muted-2); }
.jd-foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.6rem; }
.jd-foot .note { font-size: .9rem; color: var(--c-muted-2); line-height: 1.6; max-width: 760px; }
@media (max-width: 820px) {
    .jd-day { grid-template-columns: 1fr; }
    .jd-label { padding: .7rem; }
    .jd-cell { border-right: 0; border-bottom: 1.5px solid #F0EBDD; }
    .jd-cell:last-child { border-bottom: 0; }
}

/* ── Kontakt – rozvržení dle návrhu (2e) ────────────── */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; align-items: start; }
.k-col { display: flex; flex-direction: column; gap: 1.1rem; }
.k-card { background: #fff; border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); }
.k-card h3 { font-size: 1.25rem; margin: 0 0 .7rem; }
.k-card .lines { font-size: .98rem; color: #4A4636; line-height: 1.9; }
.k-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.k-tile { border-radius: 20px; padding: 1.5rem; }
.k-tile .t-lbl { font-size: .78rem; font-weight: 800; letter-spacing: .05em; opacity: .85; }
.k-tile .t-num { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-top: .2rem; }
.k-tile.green { background: var(--c-green); color: #fff; }
.k-tile.yellow { background: var(--c-yellow); color: var(--c-yellow-ink); }
.k-tel { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; font-size: .95rem; color: #4A4636; font-weight: 700; }
.k-map { border-radius: 20px; overflow: hidden; min-height: 380px; background: #DCE8D2; display: grid; place-items: center; position: relative; }
.k-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.k-map .map-ph { text-align: center; color: var(--c-ink); }
.k-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.k-form input, .k-form textarea { border: 2px solid var(--c-line); border-radius: 12px; padding: .8rem 1rem; font-family: inherit; font-size: 1rem; width: 100%; }
.k-form textarea { grid-column: 1/3; min-height: 110px; resize: vertical; }
.k-form input:focus, .k-form textarea:focus { outline: 2px solid var(--c-green); border-color: transparent; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .aktuality-layout { grid-template-columns: 1fr; }
    .kontakt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
    .feature-cards { grid-template-columns: repeat(2, 1fr); }
    .class-cards { grid-template-columns: repeat(3, 1fr); }
    .about-split { grid-template-columns: 1fr; gap: 2rem; }
    .hero-deco.sun { width: 300px; top: -120px; right: -100px; }
}
@media (max-width: 900px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--c-cream); padding: 1rem 1.25rem 1.3rem; gap: .5rem; box-shadow: var(--shadow-lift);
        display: none; border-bottom: 1px solid var(--c-line);
    }
    .main-nav.open { display: flex; }
    .nav-item { display: block; }
    .nav-sub-toggle { width: 100%; text-align: left; justify-content: space-between; }
    .submenu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: .1rem 0 .4rem 1rem; min-width: 0; }
    .sub-link { padding: .45rem .6rem; }
    .nav-link[href$="/kontakt"] { text-align: center; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-photo { order: -1; max-width: 420px; margin-inline: auto; }
    .hero-cta, .hero-badges { justify-content: center; }
    .hero .lead { margin-inline: auto; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .quick-grid { grid-template-columns: 1fr; }
}
