/* =====================================================
   MŠ Sluníčko, Tišnov – veřejný web
   Vzhled dle návrhu z Claude Design: teplá pískově-oranžová
   paleta, fonty Baloo 2 + Source Sans 3, oblé karty,
   tmavé hero pruhy s fotkou na pozadí.
   ===================================================== */

:root {
    /* plochy */
    --bg:        #FFFBF4;   /* stránka */
    --surface:   #ffffff;   /* karty */
    --band:      #FFF3DF;   /* zvýrazněný pruh / sekce */
    --band-2:    #FFF8EC;   /* jemnější pruh (řádky) */
    --soft:      #FFEFD2;   /* aktivní pilulka, zvýraznění */

    /* text a tmavé plochy */
    --ink:       #2E241B;   /* nadpisy, tmavé sekce, patička */
    --body:      #4A3B2D;
    --muted:     #6B5A48;
    --muted-2:   #8A7660;
    --line:      #F0E0C8;   /* linky a rámečky */

    /* na tmavém pozadí */
    --on-dark:       #E8DCCB;
    --on-dark-muted: #C9BBA6;
    --on-dark-dim:   #B9A992;
    --on-dark-faint: #8E7F6C;
    --topbar-text:   #FFE9C7;

    /* akcenty */
    --orange:       #E0562F;
    --orange-dark:  #B33C1B;
    --orange-press: #C4441F;
    --yellow:       #FFC53D;
    --green:        #7CC47F;
    --green-ink:    #1F3A22;
    --green-dark:   #4B8F55;
    --salmon:       #F58E6F;
    --salmon-ink:   #43180C;
    --blue:         #8FBDE8;
    --blue-ink:     #14304A;
    --purple:       #C9A7E0;
    --purple-ink:   #33194A;

    --r-lg: 26px;
    --r:    24px;
    --r-sm: 20px;
    --r-xs: 14px;
    --shadow:      0 20px 34px -24px rgba(46, 36, 27, .42);
    --shadow-lift: 0 26px 44px -24px rgba(46, 36, 27, .40);
    --shadow-menu: 0 18px 40px -18px rgba(46, 36, 27, .35);
    --maxw: 1180px;

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -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(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 700; }

.container { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 5.5vw, 5.4rem) 0; }
.section--band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

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

.eyebrow { display: inline-block; font-size: .84rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 1rem; }

/* ── Horní kontaktní pruh ───────────────────────────── */
.topbar { background: var(--ink); color: var(--topbar-text); font-size: .88rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: .6rem 0; }
.topbar-group { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; }
.topbar b { color: var(--yellow); font-weight: 700; margin-right: .35rem; }
.topbar a { color: var(--topbar-text); }
.topbar a:hover { color: var(--yellow); }
.topbar-sep { opacity: .4; }

/* ── Hlavička ───────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 251, 244, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { height: 52px; width: auto; object-fit: contain; }

.main-nav {
    margin-left: auto; display: flex; align-items: center; flex-wrap: wrap;
    justify-content: flex-end; row-gap: .25rem; column-gap: .12rem;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.nav-link {
    padding: .62rem .7rem; border-radius: 999px; color: var(--ink);
    white-space: nowrap; background: none; border: 0; font: inherit; cursor: pointer;
    transition: background .15s;
}
.nav-link:hover { background: var(--soft); color: var(--ink); }
.nav-link.active { background: var(--soft); }
.nav-cta { margin-left: .4rem; padding: .68rem 1.25rem; background: var(--orange); color: #fff; }
.nav-cta:hover, .nav-cta.active { background: var(--orange-press); color: #fff; }

.nav-item { position: relative; }
/* Odsazení panelu je součástí plochy pro hover (padding + záporný margin, aby
   se nezměnilo rozvržení). Bez toho myš mezi odkazem a panelem „propadne",
   :hover zmizí a podmenu se zavře, než na něj člověk dojede. */
.has-sub { padding-bottom: 10px; margin-bottom: -10px; }
.nav-sub-toggle { display: inline-flex; align-items: center; gap: .35rem; }
.nav-sub-toggle .caret { font-size: .7em; opacity: .55; transition: transform .15s; }
.submenu {
    list-style: none; margin: 0; padding: .6rem; position: absolute; top: 100%; left: 0;
    min-width: 268px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow-menu);
    font-family: var(--font-body); font-weight: 400; font-size: .97rem;
    /* visibility (ne pointer-events) – panel zůstane během zhasínání aktivní,
       takže když se myš vrátí, podmenu se zase otevře */
    visibility: hidden; opacity: 0;
    /* prodleva 280 ms platí jen při odjezdu myši, otevírá se okamžitě */
    transition: opacity .16s ease .28s, visibility 0s linear .44s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
    visibility: visible; opacity: 1;
    transition: opacity .16s ease 0s, visibility 0s linear 0s;
}
.has-sub:hover .caret { transform: rotate(180deg); }
.submenu li { margin: 0; }
.sub-link { display: block; padding: .56rem .75rem; border-radius: 11px; color: var(--ink); }
.sub-link:hover { background: var(--band); color: var(--ink); }
.sub-link.active { background: var(--soft); font-weight: 600; color: var(--ink); }

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

/* ── Tlačítka ───────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
    padding: .9rem 1.85rem; border-radius: 999px; cursor: pointer;
    border: 1.5px solid transparent; line-height: 1;
    transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-secondary { background: var(--orange); color: #fff; }
.btn-secondary:hover { background: var(--orange-press); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--band); color: var(--ink); }
.btn-sm { padding: .55rem 1.2rem; font-size: .92rem; }
/* varianta na tmavém pozadí */
.on-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.on-dark .btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ── Úvodní stránka: otočný panel ───────────────────── */
.hero-slider { position: relative; height: min(640px, 78vh); background: var(--ink); overflow: hidden; }
.hs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hs-slide.is-on { opacity: 1; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(46,36,27,.82) 0%, rgba(46,36,27,.55) 46%, rgba(46,36,27,.12) 100%); }
.hs-body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hs-inner { max-width: 720px; }
.hs-eyebrow { display: inline-block; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: 1.1rem; }
.hs-title { font-size: clamp(2.4rem, 7vw, 5.75rem); line-height: .96; color: #fff; margin: 0 0 1.3rem; white-space: pre-line; }
.hs-text { font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.55; color: rgba(255,255,255,.9); margin: 0 0 2.1rem; max-width: 560px; }
.hs-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hs-dots { position: absolute; bottom: 2.4rem; display: flex; gap: .6rem; }
.hs-dot { width: 38px; height: 6px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.35); transition: background .25s; }
.hs-dot.is-on { background: var(--yellow); }

/* ── Tři kartičky pod hero ──────────────────────────── */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.feature-card {
    display: block; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); overflow: hidden; color: var(--ink);
    transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--ink); }
.feature-card img { width: 100%; height: 232px; object-fit: cover; }
.fc-text { padding: 1.6rem 1.75rem 1.9rem; }
.fc-text h3 { font-size: 1.65rem; margin: 0 0 .6rem; }
.fc-text p { margin: 0 0 1.1rem; font-size: 1.03rem; line-height: 1.6; color: var(--muted); }
.more-link { font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: 1rem; }

/* ── Blok „Vítejte" ─────────────────────────────────── */
.about-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.25rem); align-items: start; }
.prose-lead h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; margin: 0 0 1.25rem; }
.prose-lead p { font-size: 1.16rem; line-height: 1.68; color: var(--muted); margin: 0 0 1.6rem; }
.points-title { display: inline-flex; gap: .75rem; align-items: center; background: var(--soft); border-radius: 18px; padding: 1rem 1.4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; }
.points { display: grid; gap: 1rem; }
.point { display: flex; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.65rem; }
.point p { margin: 0; font-size: 1.06rem; line-height: 1.62; color: var(--body); }
.p-num { flex: 0 0 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.point:nth-child(1) .p-num { background: var(--yellow); color: var(--ink); }
.point:nth-child(2) .p-num { background: var(--green);  color: var(--green-ink); }
.point:nth-child(3) .p-num { background: var(--salmon); color: var(--salmon-ink); }
.point:nth-child(4) .p-num { background: var(--blue);   color: var(--blue-ink); }

/* ── Hlavička sekce ─────────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.1rem; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }

/* ── Aktuality: kartičky na úvodní stránce ──────────── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.news-card {
    display: flex; gap: 1.5rem; align-items: center; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem;
    color: var(--ink); transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.news-card h3 { margin: 0; font-size: 1.38rem; line-height: 1.28; font-weight: 700; }
.date-badge {
    flex: 0 0 78px; text-align: center; border-radius: 18px; padding: .85rem .5rem;
    background: var(--ink); color: var(--yellow);
}
.date-badge .db-day { font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.date-badge .db-mon { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.date-badge--yellow { background: var(--yellow); color: var(--ink); }

/* ── Hero podstránky ────────────────────────────────── */
.page-hero { position: relative; background: var(--ink); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero .container { position: relative; padding-top: clamp(2.6rem, 5vw, 4.5rem); padding-bottom: clamp(2.4rem, 4.5vw, 4.15rem); }
.ph-crumb { font-size: .9rem; color: var(--yellow); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: .9rem; }
.page-hero h1 { color: #fff; margin: 0; text-wrap: balance; }
.ph-lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255,255,255,.86); margin: .9rem 0 0; max-width: 650px; }

/* ── Rozvržení podstránky: boční navigace + obsah ───── */
.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 4vw, 3.25rem); align-items: start; }
.side-nav { position: sticky; top: 104px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
.side-nav h2 { font-size: 1.06rem; font-weight: 700; margin: 0 0 .75rem; padding: 0 .6rem; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sn-link { display: block; padding: .62rem .75rem; border-radius: 12px; color: var(--body); font-size: 1rem; }
.sn-link:hover { background: var(--band); color: var(--ink); }
.sn-link[aria-current] { background: var(--soft); font-weight: 700; color: var(--ink); }
.page-photo { width: 100%; height: clamp(200px, 26vw, 340px); object-fit: cover; border-radius: var(--r-lg); margin-bottom: 2.5rem; }

/* ── Obsah stránky ──────────────────────────────────── */
.prose { font-size: 1.08rem; line-height: 1.72; color: var(--body); max-width: 820px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 1.8em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3, .prose h4 { margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1.2em; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--yellow); color: var(--muted-2); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--r-xs); margin: 1.3em 0; }
.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; }
/* Tabulky v obsahu (povinně zveřejňované informace apod.) – na mobilu se posouvají vodorovně */
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .96rem; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: .6rem .85rem; text-align: left; vertical-align: top; }
.prose table th { background: var(--soft); color: var(--ink); font-weight: 700; }
.prose table tr:nth-child(even) td { background: var(--band-2); }
.prose table p { margin: 0; }
.prose table caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: .5rem; }

/* ── Aktuality: výpis a detail ──────────────────────── */
.news-list { display: grid; gap: 1.1rem; }
.news-row {
    display: grid; grid-template-columns: 96px 1fr auto; gap: 1.75rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 1.6rem 1.9rem; color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-row:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.news-row .date-badge { flex: none; }
.nr-body h2 { font-size: 1.55rem; font-weight: 700; margin: 0 0 .35rem; line-height: 1.25; }
.nr-body p { margin: 0; font-size: .98rem; color: var(--muted-2); }
.nr-more { font-family: var(--font-head); font-weight: 700; color: var(--orange); white-space: nowrap; }
.news-note { margin-top: 2.75rem; display: flex; gap: 1.25rem; align-items: center; background: var(--band); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.9rem; }
.news-note p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--body); }
.news-note .nn-ico { font-size: 1.9rem; }

.article { max-width: 820px; }
.article-meta { display: inline-block; background: var(--yellow); color: var(--ink); font-family: var(--font-head); font-weight: 700; padding: .3rem .95rem; border-radius: 999px; margin-bottom: 1rem; font-size: .9rem; }
.article .hero-img { border-radius: var(--r-lg); margin-bottom: 2rem; width: 100%; }
.back-link { display: inline-block; margin-top: 2.5rem; font-family: var(--font-head); font-weight: 700; }

/* ── Fotogalerie ────────────────────────────────────── */
.gal-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.gal-filters a { padding: .55rem 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.gal-filters a:hover { background: var(--band); color: var(--ink); }
.gal-filters a.active { background: var(--soft); border-color: var(--orange); color: var(--ink); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.6rem; }
.album-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: transform .22s ease, box-shadow .22s ease; }
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--ink); }
.album-card .cover { position: relative; }
.album-card .cover img { width: 100%; height: 198px; object-fit: cover; }
.album-card .cover .count { position: absolute; bottom: .75rem; right: .75rem; background: rgba(46,36,27,.86); color: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: .88rem; padding: .3rem .75rem; border-radius: 999px; }
.album-card .body { padding: 1.25rem 1.35rem 1.5rem; }
.album-card h3 { font-size: 1.3rem; margin: 0 0 .35rem; line-height: 1.25; }
.album-card .desc { margin: 0; font-size: .95rem; color: var(--orange); font-weight: 600; }
.album-card .cover-empty { height: 198px; background: var(--band); display: grid; place-items: center; font-size: 2.5rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.photo-grid a { display: block; border-radius: var(--r-xs); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo-grid img { width: 100%; height: 175px; object-fit: cover; transition: transform .3s ease; }
.photo-grid a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(46,36,27,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-stage img { max-width: 92vw; max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--r-xs); }
.lb-stage figcaption { color: var(--on-dark); margin-top: .9rem; font-size: .98rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; }
.lb-close { top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.2rem; } .lb-next { right: 1.2rem; }
.lb-close:hover, .lb-nav:hover { background: var(--orange); }
.lb-counter { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: var(--on-dark-muted); font-size: .92rem; }

/* ── Dokumenty ──────────────────────────────────────── */
.doc-cat-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.75rem 0 1.25rem; }
.doc-cat-title:first-of-type { margin-top: 0; }
.doc-list { display: grid; gap: .75rem; }
.doc-item {
    display: flex; gap: 1.25rem; align-items: center; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.25rem 1.6rem;
    color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.doc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.doc-list--soft .doc-item { background: var(--band); }
.doc-ico { flex: 0 0 46px; height: 46px; border-radius: var(--r-xs); background: var(--soft); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .82rem; color: var(--orange-dark); text-transform: uppercase; }
.doc-list--soft .doc-ico { background: var(--surface); }
.doc-info { flex: 1; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; line-height: 1.3; }
.doc-info small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .88rem; color: var(--muted-2); }
.doc-open { font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: .98rem; white-space: nowrap; }

/* ── Jídelníček ─────────────────────────────────────── */
.jd-days { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.9rem; }
.jd-navbtn { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--body); }
.jd-navbtn:hover { background: var(--band); }
.jd-navbtn.is-on { background: var(--orange); color: #fff; border-color: var(--orange); }
.jd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.jd-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.jd-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.jd-head span { font-size: 1.05rem; color: var(--muted-2); }
.jd-rows { display: grid; gap: .85rem; }
.jd-row { display: grid; grid-template-columns: 30px 156px 1fr; gap: 1.25rem; align-items: center; background: var(--band-2); border-radius: var(--r-sm); padding: 1.2rem 1.5rem; }
.jd-row img { width: 18px; height: 18px; object-fit: contain; }
.jd-lbl { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; }
.jd-val { font-size: 1.08rem; line-height: 1.55; color: var(--body); }
.jd-row--main { background: var(--soft); }
.jd-row--main .jd-val { font-size: 1.16rem; font-weight: 600; color: var(--ink); }
.jd-week { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.jd-week strong { font-family: var(--font-head); font-size: 1.2rem; }
.jd-nav { display: flex; gap: .5rem; }

.allergen-box { margin-top: 2.75rem; background: var(--band); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.allergen-box h2 { font-size: clamp(1.4rem, 2.4vw, 1.65rem); margin: 0 0 .6rem; }
.allergen-box > p { margin: 0 0 1.4rem; font-size: 1.03rem; line-height: 1.6; color: var(--muted); max-width: 780px; }
.allergen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .2rem 1.6rem; }
.alg { display: flex; gap: .75rem; align-items: baseline; font-size: 1rem; color: var(--body); padding: .4rem 0; border-bottom: 1px solid var(--line); }
.alg b { font-family: var(--font-head); font-weight: 800; color: var(--orange); min-width: 24px; }

/* ── Kontakt ────────────────────────────────────────── */
.k-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 1.25rem; }
.k-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.75rem; }
.k-lbl { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-bottom: .6rem; }
.k-val { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.3; word-break: break-word; }
.k-val a { color: var(--orange); }

.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.k-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.k-card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.k-card--soft { background: var(--band); }
.k-card h2 { font-size: 1.65rem; margin: 0 0 1.4rem; }
.k-card--dark h2 { color: #fff; }
.k-person { display: grid; gap: .3rem; }
.k-role { font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.k-card--dark .k-role { color: var(--yellow); }
.k-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.k-card--dark .k-name { color: #fff; }
.k-card--dark a { color: var(--yellow); }
.k-card--dark a:hover { color: #fff; }
.k-sep { height: 1px; background: var(--line); margin: 1.25rem 0; }
.k-card--dark .k-sep { background: rgba(255,255,255,.12); }
.k-meta { display: grid; gap: .4rem; font-size: 1.04rem; }
.k-card--dark .k-meta { color: var(--on-dark-muted); }

.k-map { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.k-map iframe { width: 100%; height: 420px; border: 0; display: block; }

.k-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.k-form .fields { display: grid; gap: .9rem; }
.k-form input, .k-form textarea {
    width: 100%; font: inherit; font-size: 1.02rem; padding: .85rem 1.1rem;
    border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--bg); color: var(--ink);
}
.k-form textarea { min-height: 140px; resize: vertical; }
.k-form input:focus, .k-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }

/* ── Třídy ──────────────────────────────────────────── */
.class-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.class-card { border-radius: var(--r-sm); padding: 1.4rem 1rem; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.class-card:hover { color: var(--ink); filter: brightness(.97); }
.cc-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: .92rem; opacity: .8; margin-top: .2rem; }

.tridy-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.tridy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem 1.9rem; }
.tridy-ico { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1rem; }
.tridy-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; margin: 0 0 .3rem; }
.teachers { font-size: .98rem; color: var(--muted-2); margin: 0 0 .9rem; }
.tridy-plan { font-family: var(--font-head); font-weight: 700; }

/* ── Patička ────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-dark); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); padding: clamp(2.75rem, 5vw, 4.6rem) 0 1.9rem; }
.footer-col img { height: 58px; width: auto; margin-bottom: 1.4rem; }
.footer-col p { margin: 0 0 1.1rem; font-size: 1.04rem; line-height: 1.6; color: var(--on-dark-dim); }
.footer-col h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; color: #fff; }
.footer-links { display: grid; gap: .62rem; font-size: 1rem; }
.footer-links a { color: var(--on-dark-muted); }
.footer-links a:hover { color: var(--yellow); }
.footer-contact { display: grid; gap: .5rem; font-size: 1.04rem; }
.footer-contact a { color: var(--yellow); }
.footer-contact a:hover { color: #fff; }
.footer-hours { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; font-size: .88rem; color: var(--on-dark-faint); }
.footer-bottom a { color: var(--on-dark-faint); text-decoration: underline; }
.footer-bottom a:hover { color: var(--yellow); }

/* ── Drobnosti ──────────────────────────────────────── */
.flash { margin: 1.25rem 0; padding: 1rem 1.35rem; border-radius: var(--r-xs); font-weight: 600; }
.flash--success { background: #E8F5E4; color: #23561F; border: 1px solid #BFE0B6; }
.flash--error   { background: #FDECE7; color: #8A2B12; border: 1px solid #F5C4B5; }

.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty-emoji { font-size: 2.75rem; display: block; margin-bottom: .75rem; }

.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--ink); color: var(--on-dark); padding: 1.1rem 1.5rem; display: flex; gap: 1.25rem; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .98rem; }
/* `display: flex` výše by přebilo atribut hidden – bez tohohle by se lišta nikdy neskryla */
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: var(--yellow); }
.cookie-bar p { margin: 0; max-width: 70ch; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
/* lišta je tmavá, takže světlé obtažené tlačítko musí mít bílý text */
.cookie-bar .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cookie-bar .btn-outline:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* ── Responzivita ───────────────────────────────────── */
@media (max-width: 1080px) {
    .feature-cards { grid-template-columns: 1fr; }
    .feature-card img { height: 210px; }
}
@media (max-width: 980px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        /* nowrap je nutný – se zděděným wrap by se položky při přetečení výšky
           zalomily do druhého sloupce */
        flex-wrap: nowrap;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: .75rem 1.5rem 1.25rem; box-shadow: var(--shadow-menu); max-height: 78vh; overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .site-header { position: relative; }
    .nav-link { border-radius: var(--r-xs); text-align: left; width: 100%; }
    .nav-cta { margin: .4rem 0 0; text-align: center; justify-content: center; }
    .nav-item { position: static; }
    /* na mobilu se nehoveruje, takže žádná záchytná mezera není potřeba */
    .has-sub { padding-bottom: 0; margin-bottom: 0; }
    /* na mobilu jsou podmenu rozbalená, ne na hover */
    .submenu, .has-sub:hover .submenu, .has-sub:focus-within .submenu {
        position: static; visibility: visible; opacity: 1; transition: none;
        box-shadow: none; border: 0; background: none; padding: 0 0 .4rem .8rem; min-width: 0;
    }
    .nav-sub-toggle .caret { display: none; }

    .about-split, .kontakt-grid, .news-grid { grid-template-columns: 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .side-nav { position: static; }
    .side-nav ul { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { width: min(100% - 2rem, var(--maxw)); }
    .topbar-inner { justify-content: flex-start; }
    .hero-slider { height: min(560px, 82vh); }
    .hs-dots { bottom: 1.4rem; }
    .news-row { grid-template-columns: 76px 1fr; gap: 1.1rem; padding: 1.25rem 1.35rem; }
    .nr-more { display: none; }
    .news-card { flex-wrap: wrap; }
    .jd-row { grid-template-columns: 24px 1fr; row-gap: .3rem; }
    .jd-row .jd-val { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; }
    .points-title { width: 100%; justify-content: center; }
    .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}
