/* Mateřská škola Sokolov, Vrchlického 80 — návrh nového webu
   Barvy: šafránová fasáda budovy + modrá zeměkoule z loga + černý strom. */

:root {
  --paper: #faf7f0;
  --surface: #ffffff;
  --ink: #1c2826;
  --ink-2: #4a5653;
  --ink-3: #6b7572;
  --line: #e7e1d3;
  --line-2: #d6cdb9;

  --sun: #f2b12e;
  --sun-soft: #fdf1cf;
  --sun-ink: #6f4b00;
  --sky: #1d5c88;
  --sky-soft: #e5eef5;

  --kapicky: #2e7ec0;
  --hvezdicky: #5a57a6;
  --slunicka: #e09612;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 9.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.92rem; color: var(--ink-2);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sun); flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #e9ede9; font-size: 0.88rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .i { width: 1rem; height: 1rem; opacity: 0.8; }
.topbar .topbar-cta { color: var(--sun); font-weight: 700; display: inline-flex; gap: 0.4rem; align-items: center; }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-name span { font-size: 0.85rem; color: var(--ink-2); }

.nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 0.55rem 0.65rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--sun-soft); color: var(--ink); }
.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 0.55rem 0.95rem; font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle .i-close { display: none; }

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 0.5rem var(--gutter) 1.25rem;
    max-height: calc(100vh - 7rem); overflow-y: auto;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { border-radius: 10px; padding: 0.85rem 0.75rem; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav-open .nav { display: block; }
  .nav-open .nav-toggle .i-menu { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn .i { width: 1.1rem; height: 1.1rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--sky); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #e7a21a; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.link-arrow .i { width: 1.05rem; height: 1.05rem; transition: transform 0.2s; }
.link-arrow:hover { color: var(--sky); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head h2 { margin-bottom: 0.3rem; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > *, .grid > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-rev > :first-child { order: 2; }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45rem; }
a.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
a.card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
a.card p { color: var(--ink-2); }
a.card .link-arrow { margin-top: auto; }
.card-icon {
  width: 2.9rem; height: 2.9rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--sun-soft); color: var(--sun-ink); margin-bottom: 1.1rem;
}
.card-icon .i { width: 1.45rem; height: 1.45rem; }

.photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-11 { aspect-ratio: 1 / 1; }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.6rem; }

/* ---------- Page head (podstránky) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { max-width: 20ch; margin-bottom: 0.9rem; }
.page-head .lead { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: 0.9rem; color: var(--ink-3); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }

.subnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 4.6rem; z-index: 40; }
.subnav ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0.6rem 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { margin: 0; flex: none; }
.subnav a { display: block; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 700; background: var(--paper); }
.subnav a:hover { border-color: var(--ink-3); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); background: var(--surface); }
.hero .split { align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-bottom: 2rem; }
.hero-photo { position: relative; }
.hero-photo .photo { aspect-ratio: 4 / 3.3; }
.hero-photo figcaption { display: flex; align-items: center; gap: 0.45rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.5rem 2.25rem; margin: 2.5rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.facts div { margin: 0; }
.facts dt { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.1; }
.facts dd { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

.anniversary { background: var(--sun); color: var(--ink); }
.anniversary .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.1rem; }
.anniversary p { margin: 0; font-size: 1.05rem; }
.anniversary strong { font-family: var(--font-head); font-size: 1.2rem; margin-right: 0.5rem; }
.anniversary a { color: var(--ink); font-weight: 700; }

/* Dnes se vaří */
.today-lunch { display: none; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--line-2); font-size: 0.95rem; color: var(--ink); }
.today-lunch.on { display: block; }
.today-lunch b { display: block; font-size: 0.8rem; color: var(--ink-3); font-weight: 700; margin-bottom: 0.15rem; }

/* ---------- Events ---------- */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1.25rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.event-date { text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0.55rem 0.25rem 0.5rem; align-self: start; }
.event-date b { display: block; font-family: var(--font-head); font-size: 1.65rem; line-height: 1; letter-spacing: -0.02em; }
.event-date span { display: block; font-size: 0.8rem; color: var(--ink-2); margin-top: 0.2rem; }
.event-date small { display: block; font-size: 0.72rem; color: var(--ink-3); }
.event h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.event p { margin: 0.35rem 0 0; color: var(--ink-2); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; font-size: 0.92rem; color: var(--ink-2); }
.event-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.event-meta .i { width: 1rem; height: 1rem; }
.event-extra { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.event-bring { margin-top: 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.95rem; }
.event.is-past { opacity: 0.55; }
.event.is-past .event-date { background: transparent; }
.event .past-label { display: none; font-size: 0.8rem; font-weight: 700; color: var(--ink-3); }
.event.is-past .past-label { display: inline; }
.event.is-today .event-date, .event.is-next .event-date { background: var(--sun); border-color: var(--sun); }
.event .today-label { display: none; font-size: 0.8rem; font-weight: 700; background: var(--ink); color: #fff; padding: 0.1rem 0.5rem; border-radius: 999px; }
.event.is-today .today-label { display: inline-block; }
.events-home .event.is-past { display: none; }
.events-home .event.over-limit { display: none; }

.tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 700; padding: 0.15rem 0.6rem 0.15rem 0.5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.tag::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ink-3); }
.tag-kapicky::before { background: var(--kapicky); }
.tag-hvezdicky::before { background: var(--hvezdicky); }
.tag-slunicka::before { background: var(--slunicka); }
.tag-rodice::before { background: #d4543c; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }

.month { display: grid; gap: 1.5rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.month:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .month { grid-template-columns: 220px 1fr; gap: 3rem; } }
.month-side h2 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.month-side .poster-link { margin-top: 0.6rem; }
@media (min-width: 960px) { .month-side { position: sticky; top: 9rem; align-self: start; } }
.month .events { border-top: 0; }
.month .event:first-child { padding-top: 0; }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Classes ---------- */
.class-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.class-card .class-badge { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 1.1rem; }
.class-card .class-badge .i { width: 1.5rem; height: 1.5rem; }
.class-card.kapicky .class-badge { background: var(--kapicky); }
.class-card.hvezdicky .class-badge { background: var(--hvezdicky); }
.class-card.slunicka .class-badge { background: var(--slunicka); color: var(--ink); }
.class-card .age { font-size: 0.92rem; color: var(--ink-2); font-weight: 700; margin-bottom: 0.75rem; }
.class-card blockquote { margin: 0 0 0.9rem; font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.class-card .class-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; font-size: 0.93rem; color: var(--ink-2); }
.class-card .class-foot a { color: var(--ink); font-weight: 700; text-decoration: none; }
.class-card .class-foot a:hover { color: var(--sky); text-decoration: underline; }
.class-card .class-foot span { display: inline-flex; gap: 0.45rem; align-items: center; }
.class-card .class-foot .i { width: 1rem; height: 1rem; }

/* ---------- Tým ---------- */
.staff { border-top: 4px solid var(--line-2); }
.staff.kapicky { border-top-color: var(--kapicky); }
.staff.hvezdicky { border-top-color: var(--hvezdicky); }
.staff.slunicka { border-top-color: var(--slunicka); }
.staff h3 { margin-bottom: 0.9rem; }
.staff h3 .tag { font-size: 0.95rem; padding: 0.25rem 0.75rem 0.25rem 0.6rem; }
.staff-list { margin: 0; }
.staff-list dt { font-size: 0.82rem; font-weight: 700; color: var(--ink-3); margin-top: 0.8rem; }
.staff-list dt:first-child { margin-top: 0; }
.staff-list dd { margin: 0.15rem 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.staff-grid { display: grid; gap: 1rem 2rem; margin: 0; }
@media (min-width: 640px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
.staff-grid dt { font-size: 0.82rem; font-weight: 700; color: var(--ink-3); }
.staff-grid dd { margin: 0.15rem 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }

/* ---------- Mosaic / gallery ---------- */
.mosaic { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.mosaic a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.mosaic a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mosaic a:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .mosaic a { aspect-ratio: auto; }
  .mosaic a:first-child { grid-column: auto; grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
}

.gallery { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.album { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.album:first-of-type { border-top: 0; padding-top: 0; }
.album-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.album-head h2 { font-size: 1.6rem; margin: 0; }
.album-head p { margin: 0.35rem 0 0; color: var(--ink-2); max-width: 65ch; }
.album-count { font-size: 0.9rem; color: var(--ink-3); white-space: nowrap; }
details.more summary { cursor: pointer; font-weight: 700; margin-top: 1rem; display: inline-flex; gap: 0.4rem; align-items: center; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
details.more[open] summary::after { content: "–"; }
details.more[open] summary { margin-bottom: 1rem; }

.projects { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .projects { grid-template-columns: repeat(5, 1fr); } }
.project { display: flex; flex-direction: column; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.project-img { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.project-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.project:hover .project-img img { transform: scale(1.03); }
.project-title { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.project-title .i { width: 1rem; height: 1rem; color: var(--ink-3); flex: none; }

/* ---------- Aktuality ---------- */
.news-list { display: grid; gap: 1rem; max-width: 820px; }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem); scroll-margin-top: 9rem; }
.news-item time { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink-3); margin-bottom: 0.35rem; }
.news-item h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.news-item p { color: var(--ink-2); }
.news-item > :last-child { margin-bottom: 0; }
.news-file { margin-top: 0.75rem; }
.pinned { background: #fbe4df; border-block: 1px solid #f1c3b7; }
.pinned .container { display: grid; gap: 0.25rem; padding-block: 0.85rem; }
.pinned-item { display: flex; align-items: baseline; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.pinned-item:hover b { text-decoration: underline; }
.pinned-label { flex: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: #b3361f; color: #fff; padding: 0.15rem 0.55rem; border-radius: 999px; }
.pinned-date { display: inline-block; margin-left: 0.6rem; font-size: 0.88rem; color: var(--ink-2); }

/* ---------- Dobroty z kuchyně ---------- */
.food-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .food-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .food-grid { grid-template-columns: repeat(4, 1fr); } }
.food { margin: 0; }
.food a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.food img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.food a:hover img { transform: scale(1.04); }
.food figcaption { font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); margin-top: 0.5rem; }

/* ---------- Notice / callouts ---------- */
.notice { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--sky-soft); border: 1px solid #cfe0ec; border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.notice .i { color: var(--sky); margin-top: 0.15rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-sun { background: var(--sun-soft); border-color: #f3dfa6; }
.notice-sun .i { color: var(--sun-ink); }

.quote-block { border-left: 4px solid var(--sun); padding: 0.25rem 0 0.25rem 1.5rem; margin: 0 0 1.5rem; }
.quote-block p { font-family: var(--font-head); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.quote-block cite { font-style: normal; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Timeline (den, historie) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; padding: 0 0 1.4rem; margin: 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(7.5rem + 0.6rem - 1px); top: 0.55rem; bottom: -0.4rem; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline time, .timeline .t { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.timeline .tl-body { position: relative; padding-left: 1.5rem; }
.timeline .tl-body::before { content: ""; position: absolute; left: -0.0rem; top: 0.45rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--sun); margin-left: -0.05rem; }
.timeline .tl-body > :last-child { margin-bottom: 0; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.timeline p { color: var(--ink-2); margin: 0; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.15rem; padding-left: 1.5rem; }
  .timeline li::before { left: 0.35rem; top: 0.6rem; }
  .timeline .tl-body { padding-left: 0; }
  .timeline .tl-body::before { left: -1.5rem; top: -1.25rem; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--ink-2); background: var(--paper); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; background: var(--paper); }

.price { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; }
.price small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }

.welcome { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; text-align: center; color: var(--sky); }
.plain-list { padding-left: 1.1rem; font-size: 0.95rem; }
.plain-list li { margin-bottom: 0.45rem; }
.dl-grid.pay-grid { margin-top: 1rem; grid-template-columns: minmax(9rem, max-content) 1fr; }
.pay-grid dd { font-weight: 700; }
@media (max-width: 560px) { .dl-grid.pay-grid { grid-template-columns: 1fr; gap: 0.1rem; } .pay-grid dd { margin-bottom: 0.6rem; } }
table.criteria th[scope="row"] { font-weight: 700; background: var(--paper); vertical-align: middle; width: 46%; border-right: 1px solid var(--line); }
table.criteria th[colspan] { text-align: left; }
.footnotes { padding-left: 1.1rem; }
@media (max-width: 640px) {
  table.criteria { font-size: 0.86rem; }
  table.criteria th, table.criteria td { padding: 0.6rem 0.55rem; }
  table.criteria th[scope="row"] { width: 44%; }
  table.criteria thead th { font-size: 0.75rem; }
}
.footnotes li { margin-bottom: 0.35rem; }

/* ---------- Menu (jídelníček) ---------- */
.menu-days { display: grid; gap: 1rem; }
@media (min-width: 1020px) { .menu-days { grid-template-columns: repeat(5, 1fr); gap: 0.75rem; } }
.menu-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.25rem; }
.menu-day header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.menu-day h3 { font-size: 1.15rem; margin: 0; }
.menu-day header span { font-size: 0.85rem; color: var(--ink-3); }
.menu-day dl { margin: 0; display: grid; gap: 0.75rem; }
.menu-day dt { font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.menu-day dd { margin: 0.1rem 0 0; font-size: 0.95rem; line-height: 1.45; }
.menu-day dd.lunch { font-weight: 700; }
.allergens { display: block; font-size: 0.78rem; color: var(--ink-3); font-weight: 400; margin-top: 0.15rem; }
.menu-day.is-today { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--sun); }
.menu-day .today-pill { display: none; font-size: 0.75rem; font-weight: 700; background: var(--sun); color: var(--ink); padding: 0.1rem 0.5rem; border-radius: 999px; }
.menu-day.is-today .today-pill { display: inline-block; }
.week-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.25rem; }
.week-tabs button { font: inherit; font-weight: 700; font-size: 0.95rem; border: 0; background: transparent; color: var(--ink); padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer; }
.week-tabs button span { font-weight: 400; color: var(--ink-3); margin-left: 0.25rem; }
.week-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.week-tabs button[aria-selected="true"] span { color: #cfd6d3; }
.menu-day.is-closed { background: var(--paper); }
.menu-closed { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.menu-files { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.docs-empty { padding: 1rem 1.15rem; color: var(--ink-3); }
.allergen-list { columns: 2; column-gap: 2rem; list-style: none; padding: 0; font-size: 0.92rem; }
@media (min-width: 760px) { .allergen-list { columns: 3; } }
.allergen-list li { break-inside: avoid; }
.allergen-list b { display: inline-block; min-width: 1.6rem; }

/* ---------- Documents ---------- */
.docs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.docs li { margin: 0; border-bottom: 1px solid var(--line); }
.docs li:last-child { border-bottom: 0; }
.docs a { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.15rem; color: var(--ink); text-decoration: none; }
.docs a:hover { background: var(--paper); }
.docs .doc-ico { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.docs .doc-ico .i { width: 1.2rem; height: 1.2rem; }
.docs .doc-title { font-weight: 700; line-height: 1.3; display: block; }
.docs .doc-meta { display: block; font-size: 0.86rem; color: var(--ink-3); margin-top: 0.15rem; }
.docs .doc-dl { color: var(--ink-3); }
.docs a:hover .doc-dl { color: var(--sky); }
.doc-group { display: grid; gap: 1.25rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.doc-group:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .doc-group { grid-template-columns: 280px 1fr; gap: 3rem; } }
.doc-group h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.doc-group .doc-side p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; }
.contact-list .i { margin-top: 0.2rem; color: var(--ink-3); }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--sky); text-decoration: underline; }
.person { display: grid; gap: 0.2rem; }
.person .role { font-size: 0.88rem; color: var(--ink-3); font-weight: 700; }
.person .name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.map { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.map img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; }
.map .map-label { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; gap: 0.45rem; align-items: center; background: #fff; color: var(--ink); font-weight: 700; padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.93rem; }
.map:hover .map-label { border-color: var(--ink); }
.map-credit { font-size: 0.78rem; color: var(--ink-3); margin-top: 0.5rem; }
.map-credit a { color: inherit; }

.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.5rem; margin: 0; }
.dl-grid dt { color: var(--ink-3); font-size: 0.93rem; }
.dl-grid dd { margin: 0; font-weight: 700; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky-soft); border-color: var(--sky); }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.choice-row legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; padding: 0; }
.choice-row label { cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span { display: inline-block; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 0.93rem; }
.choice-row input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice-row input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.paths-mini { list-style: none; counter-reset: pm; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.paths-mini li { counter-increment: pm; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 1rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--line); margin: 0; }
.paths-mini li:last-child { border-bottom: 0; }
.paths-mini li::before { content: counter(pm); grid-row: span 2; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.paths-mini b { font-family: var(--font-head); font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.25; }
.paths-mini span { color: var(--ink-2); font-size: 0.93rem; }

/* ---------- Acrostic (VLASTNÍ KROK) ---------- */
.acrostic { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .acrostic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); grid-auto-flow: column; column-gap: 2.5rem; } }
.acrostic li { display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.acrostic b { font-family: var(--font-head); font-size: 1.9rem; line-height: 1; color: var(--sky); text-align: center; }
.acrostic span { font-size: 1.02rem; }
.acrostic span strong { font-weight: 700; }

.path-list { counter-reset: path; display: grid; gap: 1rem; }
.path-list .card { position: relative; padding-left: 4.25rem; }
.path-list .card::before {
  counter-increment: path; content: counter(path);
  position: absolute; left: 1.3rem; top: 1.45rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
}

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55rem; width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
.no-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .no-list { grid-template-columns: 1fr 1fr; } }
.no-list li { display: flex; gap: 0.6rem; align-items: center; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.65rem 0.85rem; font-weight: 700; font-size: 0.97rem; }
.no-list li::before { content: "×"; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fbe4df; color: #b3361f; display: grid; place-items: center; font-size: 1.05rem; line-height: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.93rem; }

.poster-thumb { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); max-width: 260px; }
.poster-thumb img { width: 100%; }

.partners { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.partners li { margin: 0; }
.partners a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.partners a:hover { border-color: var(--ink); }
.partners .i { width: 0.95rem; height: 0.95rem; color: var(--ink-3); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row div { background: var(--surface); padding: 1.25rem 1.35rem; }
.stat-row b { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.stat-row span { color: var(--ink-2); font-size: 0.93rem; }

.app-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.app-shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd6d3; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: 0.96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1.1rem; }
.footer-brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 4px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.15rem; line-height: 1.2; display: block; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.04em; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer li { margin: 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; color: #a9b3b0; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(18, 24, 23, 0.94); display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem 4.5rem; }
.lb.open { display: flex; }
.lb figure { max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; background: #222; }
.lb figcaption { color: #e9ede9; text-align: center; margin-top: 0.75rem; font-size: 0.95rem; }
.lb button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, 0.24); }
.lb .lb-close { top: 1rem; right: 1rem; }
.lb .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 1rem; transform: none; } .lb .lb-prev { left: calc(50% - 3.5rem); } .lb .lb-next { right: calc(50% - 3.5rem); } }
.lb .lb-count { position: absolute; top: 1.6rem; left: 1.25rem; color: #cfd6d3; font-size: 0.9rem; }
body.lb-lock { overflow: hidden; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.stack > * + * { margin-top: 1.25rem; }

@media print {
  .topbar, .site-header, .subnav, .site-footer, .lb, .btn { display: none !important; }
  body { background: #fff; }
}

/* H1 s názvem školky (SEO) – vizuálně jako dřívější eyebrow */
.hero h1 .eyebrow { display: flex; font-family: var(--font-body); font-size: 0.92rem; letter-spacing: 0; line-height: 1.4; margin-bottom: 1rem; text-wrap: wrap; }
.hero h1 { max-width: none; }
.hero h1 .h1-main { display: block; max-width: 13ch; }

/* Časté otázky */
.faq { display: grid; gap: 0.75rem; }
.faq-item { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1.05rem 3rem 1.05rem 1.25rem; list-style: none; position: relative; font-family: var(--font-head); font-size: 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 1.25rem 1.1rem; color: var(--ink-2); max-width: 68ch; }
.faq-a p { margin: 0; }
.footer-bottom a { color: #fff; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--sun); }
