/* style.css – verze 2026-10-31c (ikony dlaždic, mobilní menu, seznam alergenů) */
:root {
  --background: hsl(43 37% 96%);
  --card: #ffffff;
  --ink: hsl(137 14% 19%);
  --primary: hsl(107 23% 33%);
  --primary-soft: hsl(100 23% 91%);
  --action: hsl(15 52% 44%);
  --accent: hsl(15 63% 60%);
  --sun: hsl(43 67% 91%);
  --sun-ink: hsl(37 62% 34%);
  --rose: hsl(15 54% 92%);
  --muted: hsl(129 7% 43%);
  --border: hsl(43 17% 86%);
  --radius: 14px;
  --shadow: 0 12px 40px -18px hsl(132 17% 13% / .25);
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; color: var(--primary); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 99; border-radius: 8px; }

/* ---------- hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }

.topbar { background: var(--background); border-bottom: 1px solid hsl(43 17% 86% / .55); color: var(--primary); font-size: .72rem; font-weight: 500; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; }
.topbar-claim { display: inline-flex; align-items: center; gap: 8px; }
.topbar-claim::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.topbar-phone { display: none; }
.topbar-phone:hover { color: var(--action); }

.header-main {
  background: hsl(43 37% 99% / .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(43 17% 86% / .45);
}
.header-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 54px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.brand-fallback { font-family: var(--font-heading); color: var(--primary); font-size: 1.05rem; max-width: 220px; line-height: 1.25; }

.nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 15px; margin: 0; padding: 0; }
.nav > ul > li { position: relative; display: flex; align-items: center; gap: 2px; }
.nav > ul > li > a { font-size: .84rem; font-weight: 500; color: hsl(137 14% 19% / .8); padding: 6px 0; white-space: nowrap; }
.nav > ul > li > a:hover, .nav a.is-active { color: var(--primary); }

.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 3px; border-radius: 6px; cursor: pointer;
  color: hsl(137 14% 19% / .6); transition: background .2s, color .2s;
}
.nav-caret:hover, .has-children.is-open > .nav-caret { background: var(--primary-soft); color: var(--primary); }
.nav-caret svg { width: 13px; height: 13px; display: block; transition: transform .2s; }
.has-children.is-open > .nav-caret svg { transform: rotate(180deg); }

.subnav {
  position: absolute; top: calc(100% + 14px); left: -10px; z-index: 60; min-width: 250px;
  list-style: none; margin: 0; padding: 8px; display: none; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.subnav a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .875rem; color: var(--ink); }
.subnav a:hover { background: var(--primary-soft); color: var(--primary); }
/* Podnabídka se otevírá pouze po kliknutí na šipku (ne na najetí myší). */
.has-children.is-open > .subnav { display: flex; }

.nav-cta { background: var(--primary); color: #fff; border-radius: 9px; padding: 10px 16px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.nav-cta:hover { background: hsl(107 23% 28%); }

.nav-toggle-label { display: none; margin-left: auto; cursor: pointer; padding: 10px; }
.nav-toggle-label span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, hsl(132 17% 13% / .9) 0%, hsl(132 17% 13% / .62) 45%, hsl(132 17% 13% / .18) 100%); }
.hero-inner { position: relative; padding: 72px 24px; }
.eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: hsl(43 37% 96% / .85); margin-bottom: 22px; }
.eyebrow.dark { color: var(--action); }
.eyebrow.muted { color: var(--muted); font-size: .68rem; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { color: hsl(43 67% 74%); }
.hero .lead { max-width: 460px; font-size: 1rem; color: hsl(43 37% 96% / .88); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.hero-card {
  display: none; position: absolute; right: 0; bottom: 0; align-items: center; gap: 14px;
  background: hsl(43 37% 96% / .96); color: var(--primary); border: 1px solid hsl(43 37% 96% / .3);
  border-radius: 16px; padding: 16px 20px; font-size: .88rem; font-weight: 500; line-height: 1.35;
}
.hero-card em { display: block; font-style: normal; font-size: .74rem; color: var(--muted); }
.hero-card-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.hero-card-icon svg { width: 22px; height: 22px; }
@media (min-width: 1080px) {
  .hero-card { display: flex; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: hsl(107 23% 28%); }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: hsl(15 52% 38%); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline { border-color: hsl(43 37% 96% / .5); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--primary); border-bottom: 1px solid hsl(107 23% 33% / .35); padding-bottom: 2px; }
.link-arrow::after { content: '→'; }
.link-arrow:hover { color: var(--action); border-color: var(--action); }
/* Odkaz v úvodu leží na fotografii – potřebuje světlou barvu a rámeček, aby byl dobře čitelný. */
.hero-actions .link-arrow {
  color: #fff;
  padding: 13px 22px;
  font-size: .95rem;
  border: 1px solid hsl(43 37% 96% / .55);
  border-radius: 10px;
  background: hsl(132 17% 13% / .18);
  transition: background .2s, border-color .2s, color .2s;
}
.hero-actions .link-arrow:hover {
  color: #fff;
  border-color: hsl(43 37% 96% / .95);
  background: hsl(43 37% 96% / .18);
}

/* ---------- rychlé odkazy ---------- */
.quick { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: -28px; position: relative; z-index: 5; box-shadow: var(--shadow); }
.quick-item { display: flex; gap: 16px; align-items: center; background: var(--card); padding: 22px 24px; transition: background .2s; }
.quick-item:hover { background: var(--background); }
.quick-item strong { display: block; font-size: .98rem; }
.quick-item em { font-style: normal; font-size: .78rem; color: var(--muted); }
.quick-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-family: var(--font-heading); font-size: 1.2rem; }
.quick-icon svg { width: 23px; height: 23px; display: block; }

/* ---------- sekce ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 0 0 64px; }
.section.soft { background: hsl(100 23% 95%); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-title.small { font-size: 1.35rem; margin: 32px 0 16px; }
.split { display: grid; gap: 48px; align-items: center; }
.prose p { color: hsl(137 14% 24%); max-width: 74ch; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* ---------- karty ---------- */
.grid-2, .grid-3 { display: grid; gap: 22px; }
.card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: hsl(107 23% 33% / .45); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.class-age { display: inline-block; background: var(--sun); color: var(--sun-ink); border-radius: 999px; padding: 4px 12px; font-size: .74rem; font-weight: 700; margin-bottom: 14px; }
.person a { display: block; font-size: .85rem; color: var(--primary); }
.teachers ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.teachers li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.teachers li:last-child { border: 0; }
.class-block { border-top: 1px solid var(--border); padding-top: 48px; }

/* ---------- dokumenty ---------- */
.docs { display: grid; gap: 12px; }
.doc { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.doc:hover { border-color: var(--primary); }
.doc-format { min-width: 54px; text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; background: var(--rose); color: var(--action); border-radius: 8px; padding: 8px 6px; }
.doc-body strong { display: block; font-weight: 600; font-size: .95rem; }
.doc-body em { font-style: normal; font-size: .78rem; color: var(--muted); }

/* ---------- akce ---------- */
.events { display: grid; gap: 18px; }
.event { display: flex; gap: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.event.is-cancelled { opacity: .7; }
.event-date { flex: 0 0 68px; text-align: center; background: var(--primary-soft); border-radius: 12px; padding: 10px 6px; color: var(--primary); }
.event-date strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; line-height: 1; }
.event-date span { font-size: .7rem; letter-spacing: .08em; }
.event h2 { font-size: 1.15rem; margin-bottom: 4px; }
.event-when { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.badge { display: inline-block; background: var(--rose); color: var(--action); font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.badge-important { background: var(--action); color: #fff; }

/* ---------- oznámení ---------- */
.news-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.news-item.is-important { border-color: hsl(15 52% 44% / .45); background: var(--rose); }
.news-meta { display: flex; gap: 14px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- galerie ---------- */
.album-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.album-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .85rem; }
.album-chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.gallery-item img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 10px 14px; font-size: .8rem; color: var(--muted); }

/* ---------- jídelníček ---------- */
.menu-week { margin-bottom: 40px; }
.menu-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.menu-day { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.menu-day h3 { font-size: 1rem; margin-bottom: 10px; }
.menu-day h3 span { font-size: .76rem; color: var(--muted); font-family: var(--font-body); }
.menu-day dl { margin: 0; font-size: .86rem; }
.menu-day dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 8px; }
.menu-day dd { margin: 2px 0 0; }
.menu-note { margin-top: 10px; font-size: .8rem; color: var(--action); }

/* ---------- alergeny pod jídelníčkem ---------- */
.allergens { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.allergens .lead-small { margin-bottom: 16px; }
.allergen-list { margin: 0; padding-left: 22px; font-size: .9rem; line-height: 1.6; }
.allergen-list li { margin-bottom: 6px; }
@media (min-width: 900px) {
  .allergen-list { columns: 2; column-gap: 40px; }
  .allergen-list li { break-inside: avoid; }
}

/* ---------- kontakt ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact-card h2 { font-size: 1.3rem; }
.contact-list { list-style: none; padding: 0; margin: 16px 0; font-size: .92rem; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.contact-list span { color: var(--muted); font-size: .82rem; }
.lead-small { color: var(--muted); font-size: .92rem; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; }
.field label { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); font: inherit; font-size: .95rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid hsl(107 23% 33% / .35); border-color: var(--primary); }
.honeypot { position: absolute; left: -9999px; }
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }
.alert { background: var(--sun); border: 1px solid hsl(37 62% 34% / .2); color: var(--sun-ink); border-radius: 10px; padding: 14px 18px; font-size: .9rem; }
.alert-error { background: var(--rose); color: var(--action); border-color: hsl(15 52% 44% / .3); }
.alert-ok { background: var(--primary-soft); color: var(--primary); }
section .container > .alert:first-child { margin: 20px 0 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- hry ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.game-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-height: 320px; }
.game-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: .9rem; }
.game-board { display: grid; gap: 10px; justify-content: center; }
.memo-card { width: 72px; height: 88px; border-radius: 12px; border: 1px solid var(--border); background: var(--primary-soft); color: transparent; font-family: var(--font-heading); font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.memo-card.is-open { background: var(--card); color: var(--primary); }
.memo-card.is-done { background: var(--sun); color: var(--sun-ink); }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { min-width: 84px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--background); font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.choice.is-ok { background: var(--primary-soft); border-color: var(--primary); }
.choice.is-bad { background: var(--rose); border-color: var(--action); }
.shape-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
canvas.game-canvas { display: block; margin: 0 auto; background: hsl(137 14% 15%); border-radius: 12px; max-width: 100%; }

/* ---------- pás + drobečky ---------- */
.band { background: hsl(100 23% 93%); border-bottom: 1px solid var(--border); padding: 48px 0; }
.band h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 10px; }
.band-sub { color: var(--muted); max-width: 620px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .76rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- CTA ---------- */
.cta-band { background: var(--primary); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { margin: 0; color: hsl(43 37% 96% / .8); font-size: .92rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- patička ---------- */
.footer { background: hsl(137 15% 14%); color: hsl(43 37% 96% / .75); padding: 64px 0 0; font-size: .88rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-title { color: #fff; font-size: 1.5rem; }
.footer-text { max-width: 320px; }
.footer h3 { color: #fff; font-family: var(--font-body); font-size: .82rem; font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid hsl(43 37% 96% / .15); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: .74rem; color: hsl(43 37% 96% / .55); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-link:hover { color: #fff; }

/* ---------- cookies ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: hsl(43 37% 99% / .98); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 34px -20px hsl(132 17% 13% / .45);
  padding: 16px 0;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cookie-bar-text { flex: 1 1 420px; min-width: 0; }
.cookie-bar h2 { font-size: .95rem; margin: 0 0 3px; }
.cookie-bar p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; max-width: 760px; }
.cookie-bar a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 0 0 auto; padding: 10px 18px; font-size: .82rem; }
.cookie-bar .cookie-actions { margin: 0; }
.btn-neutral { background: var(--card); border-color: var(--primary); color: var(--primary); }
.btn-neutral:hover { background: var(--primary-soft); }
.cookie-pill {
  position: fixed; left: 20px; bottom: 20px; z-index: 9998; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--primary); box-shadow: var(--shadow);
}
.cookie-pill[hidden] { display: none; }
.cookie-pill svg { width: 22px; height: 22px; }

/* ---------- zásady ochrany osobních údajů ---------- */
.policy { max-width: 820px; }
.policy h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.policy p, .policy li { color: hsl(137 14% 24%); }
.policy ul { margin: 0 0 16px; padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.inline-link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }

.split-media { position: relative; padding: 0 0 56px 0; }
.split-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 90px 22px 22px 22px; }
.split-photo-small { position: absolute; right: 0; bottom: 0; width: 58%; max-width: 260px; border: 6px solid var(--background); border-radius: 16px; object-fit: cover; }
.split-badge { position: absolute; left: -8px; bottom: 66px; background: var(--sun); color: var(--sun-ink); border-radius: 14px; padding: 12px 18px; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.1; box-shadow: var(--shadow); }
.split-badge em { display: block; font-family: var(--font-body); font-style: normal; font-size: .7rem; margin-top: 2px; }

@media (min-width: 640px) {
  .topbar-phone { display: inline-flex; align-items: center; gap: 6px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
}
@media (min-width: 1080px) {
  .quick { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1079px) {
  /* Hlavička se na mobilu zalamuje, aby se menu vešlo pod logo a nevysunulo se mimo obrazovku. */
  .header-wrap { flex-wrap: wrap; row-gap: 4px; }
  .nav-toggle-label { display: block; }
  .nav { display: none; flex-direction: column; align-items: stretch; gap: 6px; flex-basis: 100%; width: 100%; margin-left: 0; }
  .nav-toggle:checked ~ .nav { display: flex; padding-bottom: 18px; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li {
    justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav > ul > li > a { font-size: .95rem; padding: 0; white-space: normal; }
  .has-children:hover > .subnav { display: none; }
  .subnav {
    position: static; min-width: 0; box-shadow: none; border: 0; border-radius: 0;
    background: transparent; padding: 4px 0 4px 14px; top: auto; left: auto;
  }
  .has-children.is-open > .subnav { display: flex; }
  .nav-cta { align-self: flex-start; margin-top: 14px; }
}
@media (max-width: 640px) {
  .cookie-bar { padding: 14px 0; }
  .cookie-bar-inner { gap: 12px; }
  .cookie-bar h2 { font-size: .9rem; }
  .cookie-bar .cookie-actions { width: 100%; flex-wrap: nowrap; }
  .cookie-bar .cookie-actions .btn { flex: 1 1 0; }
  .cookie-pill { left: 12px; bottom: 12px; }
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { min-height: 480px; }
  .hero-inner { padding: 64px 24px; }
  .split-media { display: none; }
}
