/* Rada rodičů při ZŠ a MŠ Janovice – styly webu */

/* Písma jsou uložená přímo na webu (žádné načítání z Google Fonts). */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1b1f24;
  --ink-2: #3d444c;
  --muted: #5a626c;
  --line: #e3e8ef;
  --line-2: #cfd6df;
  --tint: #f1f5fa;
  --link: #1f5ea8;
  --link-hover: #163f73;
  --lime: #d6ee3e;
  --lime-dark: #8fb000;
  --night: #172235;
  --night-line: #34466a;
  --night-muted: #b9c3d1;
  --night-text: #dbe2ea;
  --accent: #c42a7d;
  --income: #2a6fc4;
  --blue-soft: #e6effa;
  --pink: #b0246f;
  --pink-soft: #fbe8f2;
  --olive: #4b5a00;
  --olive-soft: #f1f8c9;

  --display: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --section: 96px;
  --header-h: 84px;
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 64px; --header-h: 72px; }
}

/* Základ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.tint { background: var(--tint); }
.disp { font-family: var(--display); }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: #ffffff; color: var(--ink); font-weight: 800;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--ink);
}
.skip:focus { left: 16px; }

.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.lead { font-size: 18px; color: var(--ink-2); }
.head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; }

.num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 18px;
}

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(8px); }
}
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: 21px; font-weight: 800; }
.brand-sub { font-size: 14px; font-weight: 600; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 999px; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 2px solid var(--ink); background: #ffffff; color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  }
  .js .nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 10px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 14px; font-size: 17px; }
}
@media (max-width: 760px) {
  .brand img { height: 46px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 13px; }
}

/* Úvod */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 64px 80px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--display); font-size: clamp(42px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; }
.mark { background: linear-gradient(transparent 62%, var(--lime) 62%); }
.hero-intro { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.hero-note { font-size: 15px; font-weight: 700; color: var(--muted); }
.hero-media { flex: 1 1 440px; min-width: 0; position: relative; padding-bottom: 24px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.sticker {
  position: absolute; left: 20px; bottom: -6px;
  width: 156px; height: 156px; border-radius: 50%;
  background: var(--lime); color: var(--ink); box-shadow: 0 6px 0 var(--ink);
  transform: rotate(-8deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14px;
}
.sticker strong { font-family: var(--display); font-size: 23px; font-weight: 800; line-height: 1; }
.sticker span { font-size: 13px; font-weight: 800; line-height: 1.25; margin-top: 6px; }
@media (max-width: 560px) {
  .hero { gap: 36px; padding-block: 40px 56px; }
  .hero-intro { font-size: 18px; }
  .sticker { width: 124px; height: 124px; left: 12px; padding: 10px; }
  .sticker strong { font-size: 19px; }
  .sticker span { font-size: 12px; }
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 800; text-decoration: none;
}
.btn-primary { background: var(--link); color: #ffffff; }
.btn-primary:hover { background: var(--link-hover); color: #ffffff; }
.btn-ghost { background: #ffffff; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }

/* Čísla roku */
.stats-in { padding-block: 44px; display: flex; flex-direction: column; gap: 20px; }
.stats h2 { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .stat-num { font-size: 26px; }
}

/* Na co přispíváme */
.section-in { display: flex; flex-direction: column; gap: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-family: var(--display); font-size: 21px; font-weight: 800; }
.card p { font-size: 15.5px; color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.icon-pink { background: var(--pink-soft); color: var(--pink); }
.icon-blue { background: var(--blue-soft); color: var(--link); }
.icon-lime { background: var(--olive-soft); color: var(--olive); }

/* O nás */
.about-in { display: flex; flex-direction: column; gap: 48px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-media { flex: 1 1 400px; min-width: 0; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: #ffffff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-family: var(--display); font-size: 20px; font-weight: 800; }
.step p { font-size: 15.5px; color: var(--muted); }
.step-join { background: var(--lime); }
.step-join p { color: var(--ink); }
.step-join .num { color: var(--lime); font-size: 20px; }
.step-join a { color: var(--ink); font-weight: 800; }

/* Příspěvek */
.pay { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.price-card { flex: 1 1 400px; min-width: 0; border: 2px solid var(--ink); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price strong { font-family: var(--display); font-size: clamp(64px, 9vw, 92px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price span { font-size: 18px; font-weight: 700; color: var(--muted); }
.price-card > p:last-child { font-size: 15px; color: var(--muted); }
.pay-how { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.howto { display: flex; flex-direction: column; gap: 20px; }
.howto li { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; }
.howto .num { background: var(--link); }
.howto li > span:last-child { padding-top: 6px; }
.qr { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.qr-code { flex: none; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qr-code img { width: 156px; height: 156px; }
.qr-code figcaption { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }
.qr-note { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15.5px; color: var(--ink-2); }
.qr-note strong { color: var(--ink); }
.acc { user-select: all; font-variant-numeric: tabular-nums; }
.qr-info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.qr-info h3 { font-family: var(--display); font-size: 19px; font-weight: 800; }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.kv > :first-child { color: var(--muted); }
.kv > :last-child { text-align: right; }
.info { background: var(--tint); border-radius: 20px; padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.info svg { flex: none; margin-top: 2px; }
.info p { font-size: 16px; color: var(--ink-2); }
@media (max-width: 560px) {
  .price-card { padding: 26px; }
  .howto li { font-size: 17px; }
}

/* Hospodaření */
.money { border-top: 1px solid var(--line); }
.money-in { display: flex; flex-direction: column; gap: 36px; }
.years { display: flex; flex-wrap: wrap; gap: 8px; }
.year {
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
  background: #ffffff; color: var(--ink); border: 2px solid var(--line-2);
}
.year:hover { border-color: var(--ink); }
.year[aria-pressed="true"] { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.money-summary { font-size: 18px; color: var(--ink-2); }
.lists { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.list[hidden] { display: none; }
.list h3 { font-family: var(--display); font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-head { display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; }
.bar-head strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { height: 10px; min-width: 3px; border-radius: 0 4px 4px 0; }
.list-inc .bar, .list-inc .swatch { background: var(--income); }
.list-exp .bar, .list-exp .swatch { background: var(--accent); }
.note { background: var(--tint); border-radius: 16px; padding: 18px 22px; font-size: 16px; color: var(--ink-2); }
.source { font-size: 15px; color: var(--muted); }

/* Dětský den */
.dd { background: var(--night); color: #ffffff; }
.dd-in { display: flex; flex-direction: column; gap: 48px; }
.dd-top { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.dd-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dd .eyebrow { color: var(--lime); }
.dd h2 { font-family: var(--display); font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.dd-intro { font-size: 19px; color: var(--night-text); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; color: var(--night-text); }
.facts strong { color: #ffffff; }
.dd-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 160px; border: 1px solid var(--night-line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.tile strong { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-size: 15px; color: var(--night-muted); }
.help { background: var(--lime); color: var(--ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.help h3 { font-family: var(--display); font-size: 22px; font-weight: 800; }
.help p { font-size: 16px; }
.help a { color: var(--ink); font-weight: 800; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .mosaic img { border-radius: 14px; }
  .dd-intro { font-size: 18px; }
}

/* Časté otázky */
.faq-in { display: flex; flex-direction: column; gap: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: #ffffff; border-radius: 18px; }
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-size: 18px; font-weight: 800;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.faq-list details p { padding: 0 24px 22px; font-size: 16px; color: var(--ink-2); }
.chev { flex: none; transition: transform 0.2s; }
details[open] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* Zástupci tříd */
.reps-section { padding-top: var(--section); }
.reps-in { display: flex; flex-direction: column; gap: 36px; }
.reps-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.reps-head > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.reps-aside { flex: 0 1 340px; font-size: 15.5px; color: var(--muted); }
.grade { display: flex; flex-direction: column; gap: 14px; }
.grade h3 { font-family: var(--display); font-size: 20px; font-weight: 800; }
.reps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rep { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.rep-class {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  background: var(--blue-soft); color: var(--link);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 20px; font-weight: 800;
}
.grade-2 .rep-class { background: var(--pink-soft); color: var(--pink); }
.rep-name { display: flex; flex-direction: column; min-width: 0; font-size: 17px; font-weight: 800; }
.rep.empty { border: 2px dashed var(--line-2); padding: 17px 19px; }
.rep.empty .rep-class { background: var(--tint); color: var(--muted); }
.rep.empty .rep-name { color: var(--muted); }
.rep.empty a { font-size: 15px; font-weight: 800; }

/* Dokumenty a kontakt */
.contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.docs { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.docs .h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.doc-list { border-top: 1px solid var(--line); }
.doc {
  display: flex; align-items: center; gap: 14px; min-height: 60px;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.doc:hover { background: var(--tint); color: var(--ink); }
.doc svg { flex: none; }
.doc-name { flex: 1; min-width: 0; font-weight: 700; }
.doc-type { font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.contact-card {
  flex: 1 1 400px; min-width: 0;
  background: var(--night); color: #ffffff; border-radius: 28px; padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact-card .eyebrow { color: var(--lime); }
.contact-card h2 { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.2; }
.contact-card address { font-style: normal; font-size: 16px; color: var(--night-text); margin-top: 4px; }
.contact-card a { color: var(--lime); font-weight: 800; }
.contact-card a:hover { color: #ffffff; }
.contact-rows { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row svg { flex: none; }
.committee { border-top: 1px solid var(--night-line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.committee h3 { font-size: 14px; font-weight: 800; color: var(--night-muted); }
.committee dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.committee .kv > dt { color: var(--night-muted); }
.committee dd { margin: 0; }
@media (max-width: 560px) {
  .contact-card { padding: 26px; }
}

/* Patička */
.site-footer { border-top: 1px solid var(--line); }
.footer-in { padding-block: 28px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 40px; width: auto; }
.footer-in a { font-weight: 800; }
