/* Papírové Království — design systém podle plakátu: modrá jako hlavní, bílá a červená, papírové figurky. */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url(../fonts/baloo-2-700.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url(../fonts/baloo-2-800.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }

:root {
  --paper: #F3F6FB;
  --white: #FFFFFF;
  --ink: #1D2230;
  --ink-soft: #343B4D;
  --grey: #556074;
  --grey-text: #434C5E;
  --line: #DCE3EF;
  --dash: #8E9AB3;
  --blue: #2F5DB0;         /* hlavní barva z plakátu */
  --blue-dark: #1E3F7D;
  --blue-mid: #4C7FD0;
  --sky: #A9C7F0;
  --sky-light: #E3EDFA;
  --red: #C23A26;          /* datum a zvýraznění z plakátu */
  --red-light: #E06A52;
  --red-dark: #A02D1C;
  --gold: #E9B949;
  --gold-dark: #7A5A12;
  --on-dark: #D5E1F5;
  --placeholder: #E3EAF5;
  --font-head: "Baloo 2", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-mono: "Poppins", system-ui, sans-serif;   /* bez monospace: kódy a časy jen s tabulkovými číslicemi */
  --wrap: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.55; font-variant-numeric: tabular-nums; min-height: 100vh; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; }
.site-footer :focus-visible, .dark-card :focus-visible { outline-color: var(--gold); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
mark.todo { background: var(--gold); color: var(--ink); padding: 0 3px; border-radius: 2px; }

/* typografie */
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.eyebrow.accent { color: var(--red); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
.section > h1, h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -.01em; line-height: 1.1; margin: 8px 0; }
h3 { font-weight: 700; font-size: 22px; }
.lead-soft { margin: 0 0 28px; color: var(--grey); font-size: 15px; max-width: 760px; }
.mono { font-family: var(--font-mono); }

/* tlačítka */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 6px; border: 1.5px solid transparent; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-green { background: var(--blue); color: var(--white); }
.btn-green:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--paper); color: var(--ink); }

/* hlavička */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--blue); }
.brand-sub { font-size: 12px; color: var(--grey); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 420px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--red); }
.site-header .btn { padding: 12px 20px; font-size: 15px; }

/* hero podle plakátu: modrá „bublina“ s bílým nadpisem, papírový král a královna, červené datum */
.hero { background: linear-gradient(180deg, var(--sky-light) 0%, var(--paper) 70%); }
.hero .wrap { padding-top: 32px; padding-bottom: 56px; }
.blob {
  position: relative; border-radius: 56px 48px 150px 64px; padding: 48px 48px 56px;
  background: linear-gradient(172deg, var(--blue) 0%, var(--blue-mid) 58%, var(--sky) 100%);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; min-height: 400px;
  box-shadow: 0 18px 40px rgba(30, 63, 125, .22);
}
.blob-text { color: var(--white); align-self: center; }
.blob .eyebrow { color: var(--white); opacity: .95; }
.blob h1 { font-weight: 800; font-size: clamp(54px, 8.4vw, 112px); line-height: .92; letter-spacing: -.01em; margin-top: 34px; transform: rotate(-4deg); transform-origin: 0 100%; text-shadow: 0 3px 0 rgba(30, 63, 125, .35); }
.figs { position: relative; align-self: end; }
.figs svg { display: block; width: 100%; max-width: 460px; margin: 0 0 -140px auto; overflow: visible; }
.hero-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; margin-top: 40px; }
.hero-main { min-width: 0; padding-right: 8px; }
.when { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; color: var(--red); margin: 0; }
.when-sub { margin: 10px 0 0; font-weight: 600; font-size: 20px; }
.when-sub span { display: block; font-weight: 400; font-size: 15px; color: var(--grey); }
.hero-lead { margin: 22px 0 0; font-weight: 600; font-size: 18px; line-height: 1.45; color: var(--red); max-width: 520px; }
.hero-side-info { min-width: 0; padding-top: 72px; }
.hero-side-info .fact { margin-bottom: 12px; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--grey); max-width: 520px; }
.facts { margin: 0; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact dt { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.fact dd { margin: 0; }
.fact .big { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.2; }
.fact .small { display: block; font-size: 14px; color: var(--grey); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.stats li { border-top: 3px solid var(--gold); padding-top: 10px; }
.stats strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1.1; color: var(--blue); }
.stats span { font-size: 14px; line-height: 1.35; color: var(--grey-text); }

/* sekce a karty */
.section { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 24px; }
.section:last-of-type { padding-bottom: 72px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.day-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.day-head h3 { font-weight: 800; font-size: 28px; }
.day-head span { font-family: var(--font-mono); font-size: 14px; color: var(--grey); }
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 16px; }
.timeline time { font-family: var(--font-mono); font-weight: 500; width: 108px; flex-shrink: 0; }
.timeline .hl { color: var(--red); }

/* kroky přihlášky s chlopní */
.reg { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.reg-main { flex: 999 1 560px; min-width: 0; }
.reg-main h2 { margin-bottom: 28px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; counter-reset: step; }
.step { display: flex; align-items: stretch; counter-increment: step; }
.step-body { flex: 1 1 auto; background: var(--white); border: 1.5px dashed var(--dash); border-radius: 4px; padding: 20px 24px; display: flex; gap: 20px; align-items: flex-start; }
.step-body::before { content: counter(step); font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--red); width: 36px; flex-shrink: 0; }
.step-title { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.step-text { color: var(--grey-text); font-size: 15px; }
.flap { width: 16px; flex-shrink: 0; background: var(--gold); margin: 10px 0; clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%); }
.reg-main .btn { margin-top: 24px; }
.dark-card { flex: 1 1 300px; min-width: 0; background: var(--blue-dark); color: var(--white); border-radius: 6px; padding: 28px; }
.dark-card h3 { margin-bottom: 16px; }
.price-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; }
.dark-card .price-list li { border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 10px; }
.price-list .price { font-family: var(--font-mono); text-align: right; }
.dark-card p { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--on-dark); }

/* kategorie */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.cat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-code { font-family: var(--font-mono); font-weight: 500; font-size: 20px; color: var(--blue); }
.tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid; border-radius: 3px; padding: 2px 6px; color: var(--blue); }
.tag.extra { color: var(--gold-dark); }
.tag.special { color: var(--red); }
.cat-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cat-note { font-size: 13px; color: var(--grey); line-height: 1.35; }
.ages { margin-top: 28px; }
.ages-head { font-weight: 600; margin-bottom: 14px; }
.ages-head span { font-weight: 400; color: var(--grey); font-size: 14px; }
.age-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.age { border-left: 3px solid var(--blue); padding: 4px 0 4px 12px; }
.age b { font-family: var(--font-mono); font-weight: 500; display: block; }
.age small { display: block; font-size: 13px; color: var(--grey); }
.doc-links { margin: 18px 0 0; font-size: 15px; }

/* výsledky a archiv */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 0; }
.section-head a { font-weight: 600; font-size: 16px; padding: 10px 0; }
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.winner { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.photo-ph { height: 200px; background: var(--placeholder); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.winner-body { padding: 20px 22px 22px; }
.winner-cat { font-family: var(--font-mono); font-size: 13px; color: var(--red); margin-bottom: 6px; }
.winner-model { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.15; }
.winner-who { margin-top: 8px; font-size: 15px; color: var(--grey-text); }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.year-link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.year-link:hover { color: var(--ink); }
.poster { aspect-ratio: 3 / 4; background: var(--white); border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; box-shadow: 3px 3px 0 var(--line); }
.year-link:hover .poster { box-shadow: 3px 3px 0 var(--gold); }
.poster small { font-family: var(--font-mono); font-size: 11px; color: var(--grey); }
.poster b { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--blue); }
.year-ord { font-size: 14px; font-weight: 600; }
.year-note { font-size: 13px; color: var(--grey); margin-top: -4px; }

/* návštěvníci */
.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.visit .card { padding: 24px; }
.visit h3 { margin-bottom: 14px; }
.visit .price-list li { gap: 8px; }
.visit .small { margin: 14px 0 0; font-size: 14px; color: var(--grey); }
.visit ul.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.visit p { margin: 0; font-size: 15px; }
.map-ph { margin-top: 14px; height: 120px; background: var(--placeholder); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--grey); }

/* patička */
.site-footer { background: var(--blue-dark); color: var(--on-dark); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.site-footer a { color: var(--gold); }
.foot-main { flex: 2 1 320px; }
.foot-main b { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--white); }
.foot-main p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--on-dark); }
.foot-col { flex: 1 1 220px; font-size: 15px; line-height: 1.7; }
.foot-col b { display: block; font-weight: 600; color: var(--white); }
.foot-col a { display: block; }

@media (max-width: 600px) {
  .blob { grid-template-columns: 1fr; padding: 32px 24px 24px; border-radius: 40px 32px 90px 40px; min-height: 0; }
  .blob h1 { transform: rotate(-3deg); }
  .figs svg { margin: 0 auto -48px; max-width: 320px; }
  .hero-info { grid-template-columns: 1fr; margin-top: 64px; }
  .hero-side-info { padding-top: 0; }
  .timeline li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.lead-soft.top { margin-top: 16px; }
.section > .mb { margin-bottom: 28px; }
.notfound { text-align: center; padding-top: 96px; padding-bottom: 96px; }
.notfound .code { font-family: var(--font-mono); color: var(--red); font-size: 14px; letter-spacing: .08em; }
.notfound p { margin: 12px auto 28px; max-width: 480px; color: var(--grey); }

/* výsledky */
.section .top { margin-top: 16px; }
.eyebrow a { color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chips a { font-family: var(--font-mono); font-size: 14px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; color: var(--blue); }
.chips a:hover { border-color: var(--blue); }
.res-cat { margin-top: 40px; scroll-margin-top: 16px; }
.res-cat h2 { font-size: 30px; margin: 0 0 12px; }
.cat-sub { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--grey); letter-spacing: 0; margin-left: 6px; }
.table-wrap { overflow-x: auto; margin-bottom: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
table.res { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
table.res caption { text-align: left; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); padding: 12px 14px 4px; }
table.res th { text-align: left; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); padding: 8px 14px; border-bottom: 1px solid var(--line); font-weight: 400; }
table.res td { padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.res tr:last-child td { border-bottom: 0; }
table.res .num { text-align: right; }

/* rozcestník podle návštěvníka */
.audience { padding-top: 40px; padding-bottom: 8px; }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.aud-card { display: flex; flex-direction: column; gap: 8px; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(30, 63, 125, .08); }
.aud-card:hover { border-color: var(--blue); color: var(--ink); box-shadow: 0 10px 24px rgba(30, 63, 125, .16); }
.aud-ico { font-size: 32px; line-height: 1; }
.aud-t { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.15; color: var(--blue); }
.aud-d { color: var(--grey-text); font-size: 15px; }
.aud-go { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--red); }
.chips li { display: contents; }
.chips a[aria-current=page] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.chips.top { margin-top: 16px; margin-bottom: 8px; }

/* výstavní modely */
.exhibit-band { padding-top: 40px; padding-bottom: 8px; }
.band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--white); border: 2px dashed var(--red); border-radius: 20px; padding: 32px 36px; }
.band h2 { margin: 8px 0 12px; }
.band-lead { margin: 0 0 20px; font-size: 17px; color: var(--grey-text); }
.band-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.band-points li { padding-left: 28px; position: relative; font-size: 15px; }
.band-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 600; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 24px; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
