/* Vizuální systém E-Bezpečí (podle návrhu v design/) */
:root {
  --navy: #0f2747;
  --navy-2: #0a1c34;
  --ink: #0d1b2a;
  --muted: #4b5870;
  --muted-2: #3b4860;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --line: #d9e0ea;
  --line-2: #e7ebf2;
  --help: #c73e14;
  --help-dark: #a3330f;
  --sun: #ffc940;
  --t-blue: #e4ecf8;
  --t-blue-ink: #1f4e8c;
  --t-mint: #e3f3ee;
  --t-mint-ink: #1c6b57;
  --t-sun: #fff1cc;
  --t-sun-ink: #7a5600;
  --t-coral: #fdebe4;
  --t-coral-ink: #a3330f;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--help); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 6px;
}
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { container-type: inline-size; container-name: eb; min-height: 100vh; }
.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding-inline: clamp(20px, 4.5cqi, 72px); }
.narrow { max-width: 1240px; }

.h1 { font-size: clamp(56px, 7.4cqi, 150px); font-weight: 800; line-height: .92; letter-spacing: -0.045em; margin: 0;  white-space: nowrap; }
.h1-sub { font-size: clamp(44px, 6cqi, 104px); font-weight: 800; line-height: .98; letter-spacing: -0.04em; margin: 0; }
.h2 { font-size: clamp(30px, 3.2cqi, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.h3 { font-size: clamp(22px, 2cqi, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lead { font-size: clamp(18px, 1.4cqi, 22px); color: var(--muted-2); }
.muted { color: var(--muted); }
.section { padding-top: clamp(64px, 6cqi, 112px); }
.band { margin-top: clamp(64px, 6cqi, 112px); padding-block: clamp(56px, 5.5cqi, 104px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.more { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 700; border: 0; cursor: pointer; text-align: center; }
.btn-help { background: var(--help); color: #fff; }
.btn-help:hover { color: #fff; background: var(--help-dark); }
/* Jediné tlačítko pomoci na webu: výrazné, v záhlaví na každé stránce */
.help-cta { min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 16px; }
@keyframes help-pulse { 0% { box-shadow: 0 0 0 0 rgba(199,62,20,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(199,62,20,0); } }
@media (prefers-reduced-motion: reduce) { .help-cta { animation: none; } }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: var(--navy-2); }
.btn-sun { background: var(--sun); color: var(--navy-2); }
.btn-sun:hover { color: var(--navy-2); filter: brightness(.97); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--navy); }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.08); }

.card { background: var(--surface); border-radius: 24px; }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15,39,71,.12); }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 15px; }
.tag { display: inline-block; padding: 5px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.ph { display: flex; align-items: end; padding: 16px; font-size: 13px; border-radius: 16px; }

/* Hlavička */
.topbar { background: var(--navy-2); color: rgba(255,255,255,.82); font-size: 14px; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar .in { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 44px; flex-wrap: wrap; }
.topbar .links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.order-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--navy-2) !important; font-weight: 800; padding: 7px 14px; border-radius: 10px; }
.order-cta:hover { background: #ffd666; }
.quick-exit { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--navy-2) !important; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 56; border-bottom: 1px solid rgba(255,255,255,.08); }
.header .in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { color: #fff; }
.logo span { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.8cqi, 32px); font-weight: 600; font-size: 16px; }
.nav a { color: #fff; }
.nav a[aria-current="page"] { color: var(--sun); }
.icon-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.show-sm { display: none; }
.page { overflow-x: clip; }
.mobile-nav { display: none; }
.mobile-nav[data-open="true"] { display: flex; flex-direction: column; gap: 22px; position: fixed; left: 0; right: 0; top: var(--menu-top, 72px); bottom: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain; background: var(--navy-2); padding: 20px clamp(20px, 5vw, 40px) 40px; animation: mnav-in .18s ease-out; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mobile-nav[data-open="true"] { animation: none; } }
.mnav-search { display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; }
.mnav-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 17px; padding: 10px 12px; outline: none; background: transparent; }
.mnav-search button { width: 46px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mnav-main { display: flex; flex-direction: column; }
.mnav-main a { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; border-bottom: 1px solid rgba(255,255,255,.1); }
.mnav-main a[aria-current="page"] { color: var(--sun); }
.mnav-more { display: flex; flex-direction: column; gap: 2px; }
.mnav-more a { padding: 10px 2px; color: rgba(255,255,255,.85); font-size: 17px; font-weight: 600; }
.mnav-social { display: flex; gap: 10px; }
.mnav-social a { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.mnav-order { order: -1; justify-content: center; min-height: 52px; font-size: 17px; border-radius: 14px; }

/* Hero */
.hero { background: #071a3d; color: #fff; position: relative; overflow: hidden; }

.hero-grid-unused:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.hero-grid-unused:has(> :only-child) > * { max-width: 960px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(32px,4cqi,80px); align-items: center; position: relative; padding-block: clamp(56px,7cqi,120px); }
.hero-search { margin-top: 36px; display: flex; gap: 10px; max-width: 720px; background: #fff; border-radius: 16px; padding: 8px; flex-wrap: wrap; }
.hero-search input { flex: 1 1 260px; min-width: 0; border: 0; font: inherit; font-size: 18px; padding: 12px 14px; color: var(--ink); background: transparent; outline: none; }
.pill-light { color: #fff; border: 1px solid rgba(255,255,255,.28); padding: 6px 14px; border-radius: 999px; }
.pill-light:hover { color: #fff; background: rgba(255,255,255,.08); }
.hero-popular { margin-top: 22px; max-width: 720px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hero-popular-label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero-popular .pill-light { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; }
.hero-popular .pill-light:hover { background: rgba(255,255,255,.14); color: #fff; }
/* Úvod: ilustrace rodiny na pozadí + animace (souřadnice v % obrázku) */
/* Obrázek je ukotvený k obsahu (ne k okraji okna): lidé zůstávají u nadpisu i na velmi širokých obrazovkách */
.hero-bg { position: absolute; top: 0; height: 100%; aspect-ratio: 1672 / 941; right: max(0px, calc(50% - min(100%, 1680px) / 2 - 160px)); pointer-events: none; -webkit-mask: linear-gradient(90deg, transparent, #000 22%); mask: linear-gradient(90deg, transparent, #000 22%); }
@media (min-width: 2100px) { .hero-bg { -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 85%, transparent); } }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 72% 55%; animation: hkb 30s ease-in-out infinite alternate; }
@keyframes hkb { from { transform: scale(1); } to { transform: scale(1.07) translate(-1.2%, -0.6%); } }
.haurora { position: absolute; inset: -10%; background: radial-gradient(40% 30% at 70% 20%, rgba(90,170,255,.28), transparent 70%), radial-gradient(30% 25% at 88% 70%, rgba(255,201,64,.16), transparent 70%); mix-blend-mode: screen; animation: haur 18s ease-in-out infinite alternate; }
@keyframes haur { from { transform: translate(0, 0) scale(1); opacity: .7; } to { transform: translate(-4%, 3%) scale(1.1); opacity: 1; } }
.hrise { position: absolute; bottom: -2%; width: 4px; height: 4px; border-radius: 50%; background: #d6ecff; box-shadow: 0 0 10px 3px rgba(130,195,255,.75); opacity: 0; animation: hrise 13s linear infinite; }
@keyframes hrise { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .9; } 70% { opacity: .6; } 100% { opacity: 0; transform: translate(-30px, -75vh); } }
.hero-fx { position: absolute; inset: 0; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #071a3d 0%, rgba(7,26,61,.9) 26%, rgba(7,26,61,.3) 46%, rgba(7,26,61,0) 60%), linear-gradient(0deg, rgba(7,26,61,.5), rgba(7,26,61,0) 20%); }
.hglow { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; animation: hglow 4.5s ease-in-out infinite; }
.g-phone { left: 68.5%; top: 62%; width: 12%; aspect-ratio: 1; background: radial-gradient(circle, rgba(140,200,255,.55), rgba(90,160,255,0) 65%); }
.g-laptop { left: 87%; top: 73%; width: 22%; aspect-ratio: 1; background: radial-gradient(circle, rgba(150,205,255,.45), rgba(90,160,255,0) 65%); animation-delay: -2.2s; }
@keyframes hglow { 0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }
.hsweep { position: absolute; left: 40%; top: 62%; width: 60%; height: 38%; background: linear-gradient(100deg, transparent 42%, rgba(140,200,255,.28) 50%, transparent 58%); background-size: 280% 100%; animation: hsweep 7s ease-in-out infinite; mix-blend-mode: screen; -webkit-mask: linear-gradient(180deg, transparent, #000 40%); mask: linear-gradient(180deg, transparent, #000 40%); }
@keyframes hsweep { 0%, 30% { background-position: 140% 0; } 80%, 100% { background-position: -40% 0; } }
.hn { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #bfe2ff; box-shadow: 0 0 12px 3px rgba(110,180,255,.8); animation: hn 3.6s ease-in-out infinite; }
@keyframes hn { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
.hpop { position: absolute; width: 54px; height: 38px; margin: -19px -27px; border-radius: 12px 12px 12px 3px; background: rgba(140,200,255,.22); border: 1px solid rgba(170,215,255,.6); box-shadow: 0 0 20px rgba(110,180,255,.45); opacity: 0; animation: hpop 9s ease-out infinite; }
.hpop::after { content: "• • •"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #e4f2ff; font-size: 12px; letter-spacing: 1px; }
@keyframes hpop { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 8%, 30% { opacity: 1; transform: translateY(0) scale(1); } 42%, 100% { opacity: 0; transform: translateY(-16px) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .hglow, .hsweep, .hn, .hpop, .hero-bg img, .haurora, .hrise { animation: none; } .hpop, .hrise { display: none; } }
.help-card { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px,2.4cqi,40px); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.help-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg); font-weight: 600; }

/* Animace banneru */
.anim { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,201,64,.22); animation: pulse 9s ease-in-out infinite; aspect-ratio: 1; }
.orbit { position: absolute; border-radius: 50%; animation: spin 48s linear infinite; aspect-ratio: 1; }
.orbit.rev { animation-duration: 70s; animation-direction: reverse; }
.dot { position: absolute; border-radius: 50%; background: var(--sun); box-shadow: 0 0 24px rgba(255,201,64,.7); }
.bub { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); animation: float 7s ease-in-out infinite; }
.bub.b2 { animation-delay: -2.3s; animation-duration: 8.5s; }
.bub.b3 { animation-delay: -4.6s; animation-duration: 9.5s; }
.scan { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,201,64,.07) 50%, transparent 60%); background-size: 250% 100%; animation: sweep 11s linear infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .55 } 50% { transform: scale(1.06); opacity: 1 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes sweep { from { background-position: 150% 0 } to { background-position: -100% 0 } }
@media (prefers-reduced-motion: reduce) { .ring, .orbit, .bub, .scan { animation: none } }

/* Mřížky */
.aud-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4cqi, 72px); align-items: center; }
.aud-hero:has(> :only-child) { grid-template-columns: 1fr; }
.grid-auto { display: grid; gap: clamp(16px,1.6cqi,24px); }
.g-260 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g-230 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mag { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: clamp(20px,2cqi,32px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(20px,2cqi,32px); }
.kuch { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(16px,1.6cqi,24px); }
.foot-grid { display: grid; grid-template-columns: minmax(0,2fr) repeat(4, minmax(0,1fr)); gap: 40px; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-rows: clamp(120px,11cqi,220px); gap: clamp(10px,1cqi,16px); }
.mosaic > * { border-radius: 22px; overflow: hidden; display: flex; align-items: end; padding: 18px; color: #fff; font-weight: 700; position: relative; }
.pa { grid-column: span 6; grid-row: span 2; } .pb { grid-column: span 3; } .pc { grid-column: span 3; grid-row: span 2; } .pd { grid-column: span 3; }
.pe, .pf, .pg { grid-column: span 4; grid-row: span 2; }

.topic-tile { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 18px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 18px; }
.topic-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }

.list-row { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); }

/* Článek */
.art { display: grid; grid-template-columns: minmax(0, 800px) 320px; justify-content: center; gap: clamp(32px,5cqi,96px); align-items: start; }
.art-side { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.5; }
.prose { font-size: 20px; line-height: 1.75; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.6em; line-height: 1.2; letter-spacing: -0.02em; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.28em; line-height: 1.3; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1.2em; padding: 6px 0 6px 22px; border-left: 4px solid var(--sun); font-size: 1.1em; font-weight: 600; }
.prose .perex { font-size: 1.18em; line-height: 1.6; font-weight: 600; color: #1f2a3d; }
.prose a { text-decoration: underline; }
.callout { border-radius: 18px; padding: 22px 26px; margin: 0 0 1.2em; }
.callout p { margin: 0; }
.author-chip { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.avatar { border-radius: 50%; background: var(--t-blue); color: var(--t-blue-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex: none; }

/* Téma */
.topic-top { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,1fr); gap: clamp(32px,4cqi,80px); align-items: center; }
.topic-title { margin-top: 20px; font-size: clamp(44px, 5.4cqi, 104px); overflow-wrap: anywhere; hyphens: auto; }
.topic-body { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: clamp(32px,4cqi,72px); align-items: start; }
.toc { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 16px; }
.toc a { padding: 10px 14px; border-radius: 10px; }
.toc a:hover { background: #fff; }
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: #e7ebf2; flex-wrap: wrap; }
.tabs button { border: 0; font: inherit; font-weight: 700; min-height: 48px; padding: 0 20px; border-radius: 12px; cursor: pointer; background: transparent; color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.step { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 18px; align-items: start; }
.step-n { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--sun); font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }

/* Materiály */
.lib { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: clamp(24px,3cqi,48px); align-items: start; }
.filters { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 24px; }
.filter-btn { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 600; }
.filter-btn[aria-current="true"] { background: var(--navy); color: #fff; font-weight: 700; }

/* Pomoc */
.help-cols { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(320px,1fr); gap: clamp(28px,3.4cqi,64px); align-items: start; }

/* Patička */
.footer { background: var(--navy-2); color: rgba(255,255,255,.78); padding-block: 64px 40px; font-size: 15px; }
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: #fff; }
.footer strong { color: #fff; }
.footer .col { display: flex; flex-direction: column; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff !important; font-weight: 600; }

/* Cookies + chat */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 16px; }
.cookie-in { max-width: 1280px; margin: 0 auto; background: #fff; border-radius: 22px; padding: clamp(20px,2.4vw,32px); display: flex; align-items: center; gap: 28px; box-shadow: 0 -10px 50px rgba(0,0,0,.25); }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-btns .btn { flex: 1 1 150px; border: 2px solid var(--navy); white-space: nowrap; font-size: 16px; }
.cookie-modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(10,28,52,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 24px; padding: clamp(22px,3vw,36px); }
.switch { flex: none; width: 56px; height: 32px; border: 0; border-radius: 999px; background: #c9d2df; position: relative; cursor: pointer; }
.switch span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--navy); }
.switch[aria-checked="true"] span { left: 28px; background: var(--sun); }
.chat-fab { position: fixed; right: clamp(16px,2vw,32px); bottom: clamp(16px,2vw,32px); z-index: 50; display: inline-flex; align-items: center; gap: 10px; background: var(--sun); color: var(--navy-2); font-weight: 800; min-height: 60px; padding: 0 22px 0 16px; border-radius: 999px; box-shadow: 0 16px 40px rgba(10,28,52,.35); }
.chat-fab:hover { color: var(--navy-2); }
.chat-fab { padding-left: 10px; cursor: pointer; transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab-av { width: 40px; height: 40px; border-radius: 50%; display: block; }
.chatw-on .chat-fab { transform: scale(.9); }
/* plovoucí okno chatu */
.as-box.chatw { position: fixed; right: clamp(16px,2vw,32px); bottom: calc(clamp(16px,2vw,32px) + 72px); z-index: 60; width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100vh - 120px)); margin: 0; border-radius: 24px; box-shadow: 0 24px 70px rgba(10,28,52,.35); border: 1px solid var(--line-2); animation: chatw-in .22s ease-out; }
.as-box.chatw[hidden] { display: none; }
@keyframes chatw-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chatw { animation: none; } }
.chatw-head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; background: var(--navy); color: #fff; flex: none; }
.chatw-av { width: 44px; height: 44px; border-radius: 50%; flex: none; background: #fff; }
.chatw-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chatw-who strong { font-size: 17px; }
.chatw-who span { font-size: 13px; opacity: .8; display: inline-flex; align-items: center; gap: 6px; }
.chatw-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chatw-ic { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; flex: none; }
.chatw-ic:hover { background: rgba(255,255,255,.14); color: #fff; }
.chatw-ic[hidden] { display: none; }
.chatw .as-log { flex: 1; min-height: 0; max-height: none; padding: 16px 14px; gap: 10px; background: #f7f9fc; }
.chatw .as-msg { font-size: 15.5px; line-height: 1.5; padding: 10px 14px; max-width: 86%; border-radius: 18px; }
.chatw .as-bot { background: #fff; border: 1px solid var(--line-2); }
.chatw .as-idea { font-size: 14px; padding: 8px 12px; }
.chatw .as-wait { font-size: 14px; }
.chatw .as-form { padding: 10px; }
.chatw .as-form textarea { font-size: 16px; padding: 10px 14px; max-height: 140px; }
.chatw .as-form .btn { min-height: 44px; padding-inline: 14px; }
.chatw .as-send-l { display: none; }
.chatw .as-foot { padding: 0 12px 10px; font-size: 12px; line-height: 1.4; }
.chatw .as-foot a { color: inherit; font-weight: 700; }
/* obrázek asistenta u jeho zpráv */
.as-box .as-bot:not(.as-wait) { position: relative; margin-left: 40px; }
.as-box .as-bot:not(.as-wait)::before { content: ""; position: absolute; left: -40px; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--as-av) center/cover no-repeat; }
.as-box .as-wait { margin-left: 40px; }
.as-title { display: flex; align-items: center; gap: .3em; }
.as-title-av { width: 1.1em; height: 1.1em; border-radius: 50%; flex: none; }
@media (max-width: 640px) {
  .as-box.chatw { inset: 0; width: auto; height: auto; height: 100dvh; border-radius: 0; border: 0; }
  .chatw-on .chat-fab { display: none; }
  .chatw-on body { overflow: hidden; }
}

.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.ad-slot { width: 100%; border-radius: 12px; border: 1px dashed #b7c2d3; background: #ebeef4; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }

@container eb (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .mag, .split, .art, .topic-top, .topic-body, .lib, .help-cols { grid-template-columns: minmax(0,1fr); }
  .art-side, .toc, .filters { position: static; }
  .foot-grid, .kuch { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@container eb (max-width: 900px) {
  .topbar { display: none; }
  .aud-hero { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 180px; }
  .pa { grid-column: span 2; }
  .pb, .pc, .pd, .pe, .pf, .pg { grid-column: span 1; grid-row: span 1; }
  .cookie-in { flex-direction: column; align-items: stretch; }
}
@container eb (max-width: 640px) {
  .hide-sm, .bub, .hero-art { display: none !important; }
  .hero-bg { opacity: .2; -webkit-mask: none; mask: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,26,61,.55), rgba(7,26,61,.85)); }
  .hsweep, .hpop { display: none; }
  .hero-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show-sm { display: inline; }
  .hdr-search { display: none !important; }
  .hdr-actions { gap: 8px; }
  .logo { gap: 8px; }
  .logo span { font-size: 22px; }
  .logo svg { width: 30px; height: 30px; }
  .hdr-actions .help-cta { padding: 0 14px; font-size: 16px; }
  .cookie-btns { flex: 1 1 auto; width: 100%; }
  .foot-grid, .kuch { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 640px) { .cookie-in { flex-direction: column; align-items: stretch; } .cookie-btns { width: 100%; } }

/* Velké monitory: rozvržení se plynule zvětší, aby obsah nepůsobil jako úzký sloupec uprostřed.
   Text i ikony jsou vektorové, takže zůstávají ostré. */
/* Na běžných monitorech je web o něco menší (jako zoom prohlížeče 80 %), aby se hlavní část nevešla přes celou obrazovku. */
@media (min-width: 1280px) { .page, .cookie-bar, .cookie-modal-bg { zoom: .8; } }
@media (min-width: 2200px) { .page, .cookie-bar, .cookie-modal-bg { zoom: .95; } }
@media (min-width: 2500px) { .page, .cookie-bar, .cookie-modal-bg { zoom: 1.05; } }
@media (min-width: 3000px) { .page, .cookie-bar, .cookie-modal-bg { zoom: 1.25; } }
@media (min-width: 3600px) { .page, .cookie-bar, .cookie-modal-bg { zoom: 1.5; } }
@media (min-width: 4800px) { .page, .cookie-bar, .cookie-modal-bg { zoom: 2; } }

.art-main { min-width: 0; }

/* Zvětšování obrázků (lightbox) */
img.zoomable { cursor: zoom-in; transition: filter .2s ease; }
img.zoomable:hover { filter: brightness(1.04); }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6,16,32,.92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 64px); animation: lb-in .2s ease-out; cursor: zoom-out; }
@keyframes lb-in { from { opacity: 0; } }
.lb-fig { margin: 0; max-width: min(1600px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: default; animation: lb-zoom .25s cubic-bezier(.2,.7,.3,1); }
@keyframes lb-zoom { from { transform: scale(.94); opacity: .4; } }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lb-fig figcaption { color: rgba(255,255,255,.85); font-size: 15px; text-align: center; max-width: 900px; display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.lb-count { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 18px; right: 18px; font-size: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); font-size: 34px; }
@media (prefers-reduced-motion: reduce) { .lb, .lb-fig { animation: none; } }

/* Odběr novinek */
.nl { border-radius: 24px; background: var(--sun); color: var(--navy-2); }
.nl-title { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.nl-sub { margin: 8px 0 0; color: #3a3000; }
.nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 220px; min-width: 0; border: 0; border-radius: 14px; padding: 0 18px; min-height: 54px; font: inherit; font-size: 17px; color: var(--ink); }
.nl-row input:focus { outline: 3px solid var(--navy); }
.nl-row button { min-height: 54px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--navy-2); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.nl-row button:hover { background: var(--navy); }
.nl-row button:disabled { opacity: .7; cursor: wait; }
.nl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-consent { margin: 10px 0 0; font-size: 13px; color: #4a3d00; line-height: 1.5; }
.nl-consent a { color: var(--navy-2); text-decoration: underline; font-weight: 600; }
.nl-err { margin: 8px 0 0; font-weight: 700; color: var(--help-dark); }
.nl-done { margin: 0; font-weight: 800; font-size: 19px; padding: 14px 18px; background: rgba(255,255,255,.55); border-radius: 14px; }
.nl-band { padding: clamp(28px, 3.4cqi, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3cqi, 56px); align-items: center; }
.nl-band .nl-title { font-size: clamp(30px, 2.8cqi, 48px); }
.nl-card { padding: 22px; }
.nl-card .nl-title { font-size: 21px; }
.nl-card .nl-row input, .nl-card .nl-row button { min-height: 48px; flex-basis: 100%; }
.nl-footer { background: rgba(255,255,255,.06); color: #fff; padding: 22px; border-radius: 18px; }
.nl-footer .nl-title { font-size: 20px; color: #fff; }
.nl-footer .nl-sub, .nl-footer .nl-consent { color: rgba(255,255,255,.72); }
.nl-footer .nl-consent a { color: #fff; }
.nl-footer .nl-row button { background: var(--sun); color: var(--navy-2); }
.nl-footer .nl-done { background: rgba(255,255,255,.1); }
.nl-footer .nl-form { margin-top: 14px; }
@container eb (max-width: 900px) { .nl-band { grid-template-columns: minmax(0, 1fr); } }

/* Naše projekty */
.proj-grid { display: grid; gap: clamp(14px, 1.4cqi, 20px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proj { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px; color: var(--ink); min-height: 230px; overflow: hidden; }
.proj-img { display: block; margin: -24px -24px 0; width: calc(100% + 48px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.proj-img + .proj-ico { margin-top: -38px; position: relative; box-shadow: 0 6px 18px rgba(15,39,71,.18); }
.proj:hover { color: var(--ink); }
.proj strong { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 10px; }
.proj .muted-2 { color: var(--muted-2); font-size: 15px; }
.proj-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.proj-go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.mnav-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 6px 2px 2px; }
@container eb (max-width: 1180px) { .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container eb (max-width: 640px) { .proj-grid { grid-template-columns: minmax(0, 1fr); } .proj { min-height: 0; } }

.places-map { width: 100%; height: min(72vh, 760px); min-height: 420px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #e9edf4; z-index: 0; }
.places-map .leaflet-popup-content { font-family: var(--font); font-size: 15px; }

.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.chart-table { margin-top: 14px; }
.chart-table summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.chart-table table { margin-top: 10px; border-collapse: collapse; font-size: 15px; }
.chart-table th, .chart-table td { padding: 6px 14px 6px 0; text-align: left; border-bottom: 1px solid var(--line-2); }

/* Počítadlo návštěv v patičce */
.visits { color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.visits b { color: #fff; font-weight: 700; }

/* Loga partnerů – jednotné dlaždice, loga v jednom optickém měřítku, šedá → barevná po najetí */
.ptier { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(16px, 3cqi, 40px); align-items: start; }
.ptier-l { margin: 0; padding-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.plogo { height: 132px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 14px; font-weight: 700; color: var(--muted-2); transition: border-color .2s, box-shadow .2s; }
.plogo { --lh: 70px; }
.plogo img { width: 86%; height: var(--lh); max-height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .25s, opacity .25s; }
.plogo:hover img, .plogo:focus-visible img { filter: none; opacity: 1; }
.plogo.big { width: min(440px, 100%); height: 170px; }
.plogo.big { --lh: 104px; }
.plogo.empty { border-style: dashed; border-color: #c9d2df; }
a.plogo:hover { border-color: var(--navy); box-shadow: 0 10px 24px rgba(15,39,71,.08); }
@media (hover: none) { .plogo img { filter: none; opacity: 1; } }
@container eb (max-width: 760px) { .ptier { grid-template-columns: minmax(0, 1fr); gap: 10px; } .ptier-l { padding-top: 0; } .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plogo { height: 110px; --lh: 56px; } }

/* Hodnocení a sdílení pod článkem */
.art-actions { margin-top: 40px; padding: 20px 22px; border-radius: 22px; background: var(--bg); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.art-vote, .art-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.art-actions-label { font-size: 14px; font-weight: 700; color: var(--muted-2); margin-right: 4px; }
.vote-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.vote-btn b { background: var(--t-mint); color: var(--t-mint-ink); border-radius: 999px; padding: 1px 9px; font-size: 14px; }
.vote-btn:hover { border-color: var(--navy); }
.vote-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.vote-btn.on b { background: rgba(255,255,255,.18); color: #fff; }
.vote-btn.down.on { background: #4b5870; border-color: #4b5870; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.share-btn:hover { border-color: var(--navy); color: var(--navy); }

/* Kdo jste: obrázky modře monochromatické, po najetí barevné */
.aud-img { position: relative; display: block; margin: -32px -32px 22px; aspect-ratio: 16 / 10; overflow: hidden; background: #1d4f91; }
.aud-img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.08); mix-blend-mode: luminosity; transition: filter .45s ease, transform .6s ease; }
.aud-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(42,110,201,.55), rgba(10,28,52,.35)); mix-blend-mode: multiply; transition: opacity .45s ease; pointer-events: none; }
.aud-card:hover .aud-img img, .aud-card:focus-visible .aud-img img { filter: saturate(.8); mix-blend-mode: normal; transform: scale(1.03); }
.aud-card:hover .aud-img::after, .aud-card:focus-visible .aud-img::after { opacity: 0; }
@media (hover: none) { .aud-img img { filter: none; mix-blend-mode: normal; } .aud-img::after { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .aud-img img, .aud-img::after { transition: none; } }

/* Hlavička v jednom řádku: „Více“ a objednávka akce */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: #fff; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more[open] summary svg { transform: rotate(180deg); }
.nav-pop { position: absolute; top: calc(100% + 18px); right: -16px; min-width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(10,28,52,.25); padding: 10px; display: flex; flex-direction: column; z-index: 60; }
.nav-pop a { color: var(--ink) !important; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav-pop a:hover { background: var(--bg); }
.nav-pop-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.hdr-order { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.hdr-order:hover { color: var(--navy-2); background: var(--sun); border-color: var(--sun); }
@container eb (max-width: 900px) { .hdr-order { display: none; } }

/* Výzkum */
.rs-hero { background: var(--navy); color: #fff; padding-block: clamp(48px, 5cqi, 96px); }
.rs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; }
.rs-stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column-reverse; gap: 4px; }
.rs-stats dd { margin: 0; font-size: clamp(32px, 3cqi, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--sun); line-height: 1; }
.rs-stats dt { font-size: 14px; color: rgba(255,255,255,.75); font-weight: 600; }
.rs-tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; margin-bottom: 24px; }
.rs-tabs button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px; cursor: pointer; color: var(--navy); }
.rs-tabs button b { margin-left: 6px; font-size: 13px; color: var(--muted); }
.rs-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.rs-tabs button[aria-selected="true"] b { color: var(--sun); }
.rs-filter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 40px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); }
.rs-chips button span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.rs-chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rs-chips button.on span { color: var(--sun); }
.rs-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 44px; flex: 0 1 340px; color: var(--muted); }
.rs-search input { border: 0; outline: none; font: inherit; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.rs-list { display: flex; flex-direction: column; gap: 12px; }
.rs-study { display: grid; grid-template-columns: 90px minmax(0, 1fr) 170px; gap: 24px; align-items: start; background: #fff; border-radius: 22px; padding: 24px 28px; }
.rs-year { font-size: 26px; font-weight: 800; color: var(--help); letter-spacing: -0.02em; }
.rs-body h3 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.rs-body h3 small { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.rs-body p { margin: 10px 0 0; }
.rs-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.rs-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rs-dl a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: 14px; color: var(--navy); }
.rs-dl a:hover { background: var(--t-blue); }
.rs-sample { text-align: right; }
.rs-sample b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.rs-sample span { font-size: 13px; color: var(--muted); }
.rs-pubs ol { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rs-pubs li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; background: #fff; border-radius: 16px; padding: 16px 20px; line-height: 1.55; }
.rs-pyear { font-weight: 800; color: var(--help); }
.rs-q { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: 1px; }
.rs-q span { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--t-blue); color: var(--t-blue-ink); }
.rs-q span.q1 { background: var(--sun); color: var(--navy-2); }
.rs-doi { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; word-break: break-all; }
.rs-contract { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; background: var(--t-sun); border-radius: 28px; padding: clamp(24px, 3cqi, 48px); }
@container eb (max-width: 900px) {
  .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-study { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rs-sample { text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .rs-sample b { font-size: 22px; }
}

/* Plovoucí objednávka vzdělávací akce (protějšek „Zeptejte se“ vpravo) */
.order-fab { position: fixed; left: clamp(16px,2vw,32px); bottom: clamp(16px,2vw,32px); z-index: 50; display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; font-weight: 800; min-height: 60px; padding: 0 22px 0 12px; border-radius: 999px; box-shadow: 0 16px 40px rgba(10,28,52,.35); border: 1px solid rgba(255,255,255,.12); }
.order-fab:hover { color: #fff; background: var(--navy-2); }
.order-fab-ico { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
@container eb (max-width: 900px) { .order-fab { display: none; } }

/* Katalog materiálů */
.cat-search { margin-top: 26px; display: flex; align-items: center; gap: 10px; max-width: 820px; background: var(--bg); border-radius: 16px; padding: 8px 8px 8px 16px; color: var(--muted); }
.cat-search input { flex: 1 1 auto; min-width: 0; border: 0; font: inherit; font-size: 17px; padding: 12px 4px; background: transparent; outline: none; color: var(--ink); }
.cat-facet { border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.cat-facet summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); padding: 6px 0 10px; }
.cat-facet summary::-webkit-details-marker { display: none; }
.cat-facet summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.cat-facet[open] summary::after { content: "–"; }
.cat-facet > div { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.cat-facet .filter-btn { min-height: 38px; font-size: 15px; gap: 10px; }
.cat-facet .filter-btn:hover { background: #fff; }
.cat-facet .filter-btn[aria-current="true"]:hover { background: var(--navy); }
.cat-n { font-size: 13px; opacity: .65; font-variant-numeric: tabular-nums; }
.filters { gap: 14px; }
.cat-mob { display: none; }
.cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-sort { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; }
.cat-sort a { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cat-sort a[aria-current="true"] { background: var(--navy); color: #fff; }
.cat-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.cat-active a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; }
.cat-active a.cat-clear { background: transparent; color: var(--help); padding-inline: 6px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 18px 12px 12px; color: var(--ink); border: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.cat-item:hover { color: var(--ink); border-color: var(--line); box-shadow: 0 8px 22px rgba(15,39,71,.08); }
.cat-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-thumb b { font-size: 13px; background: #fff; color: var(--navy); padding: 3px 7px; border-radius: 6px; }
.cat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-body strong { font-size: 17px; line-height: 1.3; }
.cat-meta { font-size: 13px; font-weight: 700; color: var(--muted); }
.cat-desc { font-size: 14px; color: var(--muted-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.cat-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--help); }
.cat-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.cat-pages a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); font-weight: 700; color: var(--navy); padding: 0 10px; }
.cat-pages a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-pages .gap { align-self: center; color: var(--muted); padding: 0 4px; }
@container eb (max-width: 1180px) {
  .cat-desk { display: none; }
  .cat-mob { display: block; background: #fff; border-radius: 16px; padding: 4px 16px; }
  .cat-mob > summary { cursor: pointer; font-weight: 700; padding: 12px 0; display: flex; align-items: center; gap: 8px; }
  .cat-mob > summary b { background: var(--navy); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
  .cat-mob .filters { padding-bottom: 12px; }
}
@container eb (max-width: 640px) {
  .cat-item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .cat-thumb { width: 56px; height: 56px; }
  .cat-go { display: none; }
}
.cat-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cat-folder { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 14px 16px; color: var(--navy); border: 1px solid transparent; }
.cat-folder:hover { border-color: var(--line); color: var(--navy); box-shadow: 0 8px 22px rgba(15,39,71,.08); }
.cat-folder svg { flex: none; color: var(--sun); fill: var(--t-sun); }
.cat-folder > span { display: flex; flex-direction: column; min-width: 0; }
.cat-folder strong { font-size: 15px; line-height: 1.3; color: var(--ink); }
.cat-folder-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--t-sun); border-radius: 22px; padding: 22px 26px; }
.cat-folder-head > svg { flex: none; color: var(--navy); }
@container eb (max-width: 640px) { .cat-sort a { padding: 6px 8px; font-size: 13px; } .cat-sort { width: 100%; justify-content: space-between; } }
.topic-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 60px rgba(15,39,71,.16); }
.topic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.topic-card { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; color: var(--ink); }
.topic-card:hover { color: var(--ink); }
.topic-card img, .topic-card-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--t-blue); }
.topic-card-name { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.topic-card-name .topic-ico { width: 40px; height: 40px; flex: none; }
.cat-facet .filter-btn { height: auto; padding-block: 8px; line-height: 1.3; }

/* Čitelnost: na monitorech je web zmenšený (zoom .8), text článků proto o to větší – výsledně cca 19–20 px */
@media (min-width: 1280px) {
  body { font-size: 20px; }
  .lead { font-size: 25px; }
  .prose { font-size: 24px; }
  .art-side { font-size: 19px; }
}
@container eb (max-width: 640px) { .prose { font-size: 19px; line-height: 1.7; } }

/* Podstránky s ilustrací v záhlaví */
.sub-hero { background: var(--navy); color: #fff; overflow: hidden; }
.sub-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4cqi, 72px); align-items: center; padding-block: clamp(40px, 4.5cqi, 80px); }
.sub-hero-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
@container eb (max-width: 900px) { .sub-hero-in { grid-template-columns: minmax(0, 1fr); } }
.year-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.year-jump a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 700; font-size: 15px; }
.year-jump a:hover { background: var(--sun); color: var(--navy-2); border-color: var(--sun); }
.ment-year { margin-bottom: clamp(36px, 3.5cqi, 56px); scroll-margin-top: 100px; }
.ment-year .h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.ment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ment { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; border-radius: 16px; padding: 14px 18px; color: var(--ink); border: 1px solid transparent; }
.ment:hover { color: var(--ink); border-color: var(--line); box-shadow: 0 8px 22px rgba(15,39,71,.08); }
.ment-date { font-weight: 700; color: var(--muted); font-size: .9em; }
.ment-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ment-outlet { font-size: .8em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--help); }
.ment svg { color: var(--muted); }
@container eb (max-width: 640px) { .ment { grid-template-columns: minmax(0, 1fr) auto; } .ment-date { grid-column: 1 / -1; } }
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.year-chips a { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 15px; }
.year-chips a span { font-size: 12px; color: var(--muted); font-weight: 600; }
.year-chips a[aria-current="true"] { background: var(--navy); color: #fff; }
.year-chips a[aria-current="true"] span { color: var(--sun); }

/* Postupné zobrazování při posouvání (třídy přidává components/Reveal.tsx) */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv-on .rv.rv-in { opacity: 1; transform: none; }
@media print { .rv-on .rv { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .rv-on .rv { opacity: 1; transform: none; transition: none; } }

/* PHP verze: skryté prvky (lišty, menu) */
[hidden] { display: none !important; }

/* Řádek výpisu s malou čtvercovou miniaturou */
.list-row.has-thumb { flex-direction: row; align-items: flex-start; gap: 16px; }
.lr-thumb { flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.lr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.list-row:hover .lr-thumb img { transform: scale(1.05); }
.lr-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 560px) { .lr-thumb { width: 64px; height: 64px; border-radius: 12px; } }

/* Přehled vybraných materiálů (nástupce materialy.html) */
.mo-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.mo-jump a { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 15px; }
.mo-jump a:hover { background: rgba(255,255,255,.2); }
.mo-jump a.mo-all { background: var(--sun); color: var(--navy-2); }
.mo-sec { padding-block: clamp(48px, 5cqi, 88px); border-bottom: 1px solid var(--line); }
.mo-sec:nth-of-type(even) { background: #fff; }
.mo-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 3cqi, 40px); align-items: center; margin-bottom: clamp(24px, 2.6cqi, 40px); }
.mo-ill { width: 200px; height: 140px; object-fit: cover; border-radius: 24px; background: var(--mo-tint); }
.mo-intro { margin: 10px 0 0; max-width: 820px; font-size: 18px; }
.mo-sub { font-size: 22px; font-weight: 800; margin: clamp(28px, 3cqi, 44px) 0 16px; letter-spacing: -.01em; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mo-grid.mo-leaf { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mo-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 14px 14px 18px; color: var(--ink); }
.mo-sec:nth-of-type(even) .mo-card { background: var(--bg); border-color: transparent; }
.mo-thumb { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--mo-tint); margin-bottom: 6px; }
.mo-leaf .mo-thumb { aspect-ratio: 1 / 1.1; }
.mo-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s ease; }
.mo-card:hover .mo-thumb img { transform: scale(1.03); }
.mo-card strong { font-size: 17px; line-height: 1.3; }
.mo-desc { font-size: 15px; color: var(--muted-2); line-height: 1.45; }
.mo-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 28px; border-top: 2px solid var(--navy); }
.mo-links a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mo-links a svg { flex: none; margin-top: 3px; color: var(--help); }
.mo-links.mo-web { border-top: 0; gap: 12px; }
.mo-links.mo-web a { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; background: #fff; }
.mo-social { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .mo-head { grid-template-columns: 1fr; } .mo-ill { width: 110px; height: 110px; } .mo-grid, .mo-grid.mo-leaf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Kontakt */
.ct-mails { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ct-mail { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 18px; color: var(--ink); }
.ct-mail small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.ct-mail strong { font-size: 17px; overflow-wrap: anywhere; }
.ct-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.ct-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.ct-person { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 22px; }
.ct-role { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--help); }
.ct-name { display: block; margin-top: 4px; font-weight: 800; font-size: 19px; color: var(--ink); }
.ct-lines { margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.ct-lines a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.ct-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .ct-people { grid-template-columns: 1fr; } .ct-person { align-items: flex-start; } }

/* Hlavička článku zarovnaná se sloupci textu a postranního panelu */
.art-head { grid-column: 1 / -1; min-width: 0; }
/* Odkazy v textu článků výraznou barvou */
.prose a, .prose .perex a { color: var(--t-blue-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(31, 78, 140, .45); overflow-wrap: anywhere; }
.prose a:hover { color: var(--help); text-decoration-color: currentColor; }

/* Asistent E-Bezpečí */
.as-wrap { padding-block: clamp(36px,4cqi,72px) clamp(56px,5cqi,96px); }
.as-box { margin-top: 28px; background: #fff; border: 1px solid var(--line-2); border-radius: 28px; box-shadow: 0 18px 50px rgba(15,39,71,.08); display: flex; flex-direction: column; overflow: hidden; }
.as-log { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px,2.4cqi,32px); min-height: 320px; max-height: min(64vh, 760px); overflow-y: auto; }
.as-msg { max-width: min(760px, 92%); padding: 14px 18px; border-radius: 20px; font-size: 18px; line-height: 1.6; }
.as-msg p { margin: 0 0 .6em; } .as-msg p:last-child, .as-msg ul:last-child, .as-msg ol:last-child { margin-bottom: 0; }
.as-msg ul, .as-msg ol { margin: 0 0 .6em; padding-left: 1.25em; } .as-msg li { margin-bottom: .25em; }
.as-bot { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; }
.as-bot a { color: var(--t-blue-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; overflow-wrap: anywhere; }
.as-me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.as-err { background: var(--t-coral); color: var(--t-coral-ink); }
.as-wait { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; }
.as-dots { display: inline-flex; gap: 5px; } .as-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); opacity: .3; animation: as-b 1.2s infinite; }
.as-dots i:nth-child(2) { animation-delay: .2s; } .as-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes as-b { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .as-dots i { animation: none; opacity: .6; } }
.as-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.as-idea { font: inherit; font-size: 15px; font-weight: 600; text-align: left; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.as-idea:hover { border-color: var(--navy); background: var(--t-blue); }
.as-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px; border-top: 1px solid var(--line-2); background: #fff; }
.as-form textarea { flex: 1; min-width: 0; resize: none; font: inherit; font-size: 18px; line-height: 1.45; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); outline: none; max-height: 220px; }
.as-form textarea:focus { border-color: var(--navy); background: #fff; }
.as-form .btn { min-height: 50px; }
.as-form .btn:disabled { opacity: .5; cursor: wait; }
.as-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 0 18px 14px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.as-caret { display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: currentColor; opacity: .55; border-radius: 2px; animation: as-caret .9s steps(2) infinite; }
@keyframes as-caret { 50% { opacity: 0; } }
.as-reset { font: inherit; font-weight: 700; color: var(--navy); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.as-help { margin-top: 18px; padding: 16px 20px; border-radius: 20px; background: var(--t-coral); color: var(--t-coral-ink); display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.as-help a { color: inherit; font-weight: 800; text-decoration: underline; }
@container eb (max-width: 640px) { .as-send-l { display: none; } .as-msg { font-size: 17px; max-width: 100%; } .as-log { max-height: 60vh; } }

/* Tabulky v článcích */
.prose .art-table { margin: 0 0 1.4em; }
.prose .art-table figcaption { font-size: .82em; font-weight: 700; color: var(--muted-2); margin-bottom: 8px; }
.art-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.art-table-scroll:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.prose .art-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 600px; table-layout: fixed; }
.prose .art-table td, .prose .art-table th { overflow-wrap: break-word; hyphens: auto; }
.prose .art-table th, .prose .art-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.prose .art-table tr > * + * { border-left: 1px solid var(--line-2); }
.prose .art-table tbody tr:last-child > * { border-bottom: 0; }
.prose .art-table th { background: var(--navy); color: #fff; font-weight: 800; }
.prose .art-table tbody tr:nth-child(even) td { background: var(--bg); }
.prose .art-table td:first-child { font-weight: 700; }

/* Rodiče: odkaz na web Digitální rodiče */
.prorodice { display: grid; grid-template-columns: 220px minmax(0,1fr) auto; gap: clamp(16px,2.4cqi,32px); align-items: center; background: #fff; border: 2px solid var(--sun); border-radius: 26px; padding: 16px clamp(16px,2cqi,28px) 16px 16px; color: var(--ink); }
.prorodice img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px; }
.prorodice-t { display: flex; flex-direction: column; gap: 6px; }
.prorodice-t .eyebrow { margin: 0; }
.prorodice-t strong { font-size: clamp(24px,2.2cqi,34px); letter-spacing: -0.02em; line-height: 1.1; }
.prorodice-t > span:last-child { color: var(--muted-2); font-size: 17px; line-height: 1.5; }
@container eb (max-width: 760px) { .prorodice { grid-template-columns: minmax(0,1fr); } .prorodice img { aspect-ratio: 16/8; } }
.cat-dl { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mo-dl { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* Děti a dospívající: online hry */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.game-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; color: var(--ink); border: 1px solid var(--line-2); }
.game-card:hover { color: var(--ink); }
.game-img { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.game-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.game-t { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.game-t strong { font-size: 21px; line-height: 1.25; }
.game-play { align-self: flex-start; margin-top: auto; }
.game-badge { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--t-sun); color: var(--t-sun-ink); padding: 4px 10px; border-radius: 999px; }
.game-card.soon { opacity: .85; }
.game-card.soon .game-img { filter: grayscale(.4); }


/* Přehled materiálů – vycentrovaně jako původní materialy.html: velký obrázek sekce, nadpis na střed, karty po třech */
.mo-wrap { max-width: 1120px; }
.mo-head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; }
.mo-ill { width: min(720px, 100%); height: auto; max-height: 400px; object-fit: contain; border-radius: 28px; background: transparent; }
.mo-title { text-align: center; }
.mo-intro { margin: 12px auto 0; max-width: 780px; }
.mo-sub { text-align: center; font-size: 24px; }
.mo-grid, .mo-grid.mo-leaf { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 22px; }
.mo-card { text-align: center; align-items: center; border: 2px dashed #c9d2df; padding: 18px 18px 20px; }
.mo-sec:nth-of-type(even) .mo-card { border: 2px dashed #c9d2df; }
.mo-card:hover { border-style: solid; border-color: var(--navy); }
.mo-card strong { font-size: 18px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.mo-thumb, .mo-leaf .mo-thumb { width: 100%; aspect-ratio: 1 / 1; margin: 2px 0 4px; background: transparent; }
.mo-dl { margin-top: 4px; }
.mo-links { max-width: 900px; margin: 0 auto; }
.mo-links.mo-web { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mo-social { justify-content: center; }
.mo-wrap > p { text-align: center; }
@media (max-width: 640px) { .mo-ill { width: 100%; height: auto; } .mo-grid, .mo-grid.mo-leaf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mo-card strong { font-size: 15px; } }
.game-img img[src*="sam"] { object-fit: cover; padding: 0; }

/* Kvízy a ankety v článcích */
.prose .quiz, .prose .poll { margin: 0 0 1.6em; padding: clamp(20px, 3cqi, 32px); border-radius: 24px; background: var(--t-blue); font-size: 18px; line-height: 1.5; }
.prose .poll { background: var(--t-sun); }
.quiz-label { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t-blue-ink); }
.poll .quiz-label { color: var(--t-sun-ink); }
.prose .quiz-title, .prose .poll-q { margin: 0 0 14px; font-size: 1.25em; line-height: 1.3; font-weight: 800; outline: none; }
.poll fieldset { border: 0; margin: 0; padding: 0; }
.poll-q { padding: 0; }
.quiz-intro { margin: 0 0 16px; }
.quiz-img { display: block; max-width: 100%; max-height: 320px; margin: 0 auto 14px; border-radius: 16px; object-fit: contain; }
.quiz-bar { height: 8px; border-radius: 99px; background: rgba(15, 39, 71, .12); overflow: hidden; margin: 4px 0 14px; }
.quiz-bar span { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .4s; }
.quiz-ans { display: grid; gap: 10px; }
.quiz-a { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; font-size: 17px; font-weight: 600; padding: 12px 14px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--ink); cursor: pointer; }
.quiz-a:hover:not(:disabled) { border-color: var(--navy); }
.quiz-a.sel { border-color: var(--navy); background: var(--sun); color: var(--navy-2); box-shadow: 0 6px 16px rgba(15, 39, 71, .14); }
.quiz-a.sel .quiz-a-l { background: var(--navy); color: #fff; }
.quiz-a-l { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); font-weight: 800; }
.quiz-a.ok { border-color: #1c7a4d; background: #e3f3ea; } .quiz-a.ok .quiz-a-l { background: #1c7a4d; color: #fff; }
.quiz-a.bad { border-color: var(--help); background: var(--t-coral); } .quiz-a.bad .quiz-a-l { background: var(--help); color: #fff; }
.quiz-a:disabled { cursor: default; }
.quiz-fb p { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff; }
.quiz-fb p.ok strong { color: #1c7a4d; } .quiz-fb p.bad strong { color: var(--help); }
.quiz-nav { margin-top: 16px; }
.quiz-score { margin: 0 0 8px; font-size: 1.4em; } .quiz-score b { font-size: 1.5em; }
.quiz-review { margin: 6px 0 16px; } .quiz-review summary { cursor: pointer; font-weight: 700; }
.quiz-review ol { padding-left: 1.2em; } .quiz-review li { margin: 8px 0; padding-left: 4px; } .quiz-review li.bad { color: var(--help-dark); } .quiz-review li.ok::marker { color: #1c7a4d; }
.poll-opt { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin: 0 0 8px; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; }
.poll-opt input { width: 20px; height: 20px; accent-color: var(--navy); }
.poll-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.poll-show { font: inherit; font-weight: 700; background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 0; }
.poll-res { margin-top: 12px; }
.poll-row { margin-bottom: 8px; } .poll-row-t { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.poll-row .quiz-bar { margin: 4px 0 0; background: rgba(122, 86, 0, .15); } .poll-row .quiz-bar span { background: var(--t-sun-ink); }
.poll-row.mine .poll-row-t span::after { content: " ✓"; color: #1c7a4d; }

/* Test Pravda, nebo lež? */
.hx-wrap { padding-block: clamp(28px, 4cqi, 64px) clamp(56px, 5cqi, 96px); background: linear-gradient(180deg, var(--t-sun) 0, var(--bg) 420px); }
.hx { background: #fff; border-radius: 28px; padding: clamp(20px, 3.4cqi, 44px); box-shadow: 0 18px 50px rgba(15, 39, 71, .08); scroll-margin-top: 90px; }
.hx-logo { display: block; width: min(560px, 100%); height: auto; margin: 0 auto 18px; }
.hx-start-in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(16px, 3cqi, 40px); align-items: center; }
.hx-man { width: 100%; height: auto; }
.hx-h1 { font-size: clamp(30px, 3.4cqi, 48px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.hx-go { margin-top: 10px; font-size: 19px; min-height: 54px; padding-inline: 28px; }
.hx-more { margin: 18px 0 0; text-align: center; }
.hx-bar { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted-2); }
.hx-bar b { color: var(--navy); }
.hx-prog { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 8px 0 18px; }
.hx-prog span { display: block; height: 100%; background: var(--sun); transition: width .4s; }
.hx-card { border: 2px solid var(--line-2); border-radius: 22px; padding: clamp(16px, 2.4cqi, 28px); }
.hx-title { margin: 0 0 14px; font-size: clamp(22px, 2.2cqi, 30px); line-height: 1.2; outline: none; }
.hx-img { display: block; max-width: 100%; max-height: 420px; margin: 0 auto 14px; border-radius: 14px; object-fit: contain; }
.hx-body { font-size: 18px; line-height: 1.6; } .hx-body p { margin: 0 0 .7em; }
.hx-ask { text-align: center; font-weight: 800; font-size: 19px; margin: 22px 0 12px; }
.hx-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 0 auto; }
.hx-b { font: inherit; font-size: 22px; font-weight: 800; letter-spacing: .04em; min-height: 64px; border-radius: 18px; border: 0; color: #fff; cursor: pointer; transition: transform .15s, opacity .2s; }
.hx-b:hover:not(:disabled) { transform: translateY(-2px); }
.hx-lie { background: var(--help); } .hx-true { background: #1c7a4d; }
.hx-b:disabled { opacity: .35; cursor: default; } .hx-b.right { opacity: 1; box-shadow: 0 0 0 4px var(--sun); }
.hx-verdict { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 22px; padding: 18px; border-radius: 20px; }
.hx-verdict.ok { background: #e3f3ea; } .hx-verdict.bad { background: var(--t-coral); }
.hx-verdict-man { width: 100%; height: auto; }
.hx-verdict-t { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.hx-verdict.ok .hx-verdict-t { color: #1c7a4d; } .hx-verdict.bad .hx-verdict-t { color: var(--help-dark); }
.hx-expl { font-size: 17px; line-height: 1.55; } .hx-expl p { margin: 0 0 .6em; } .hx-expl a { color: var(--t-blue-ink); text-decoration: underline; overflow-wrap: anywhere; }
.hx-others { margin: 4px 0 0; font-size: 14px; }
.hx-next { margin-top: 16px; }
.hx-final { text-align: center; }
.hx-pct { font-size: clamp(44px, 5cqi, 72px); font-weight: 800; color: var(--navy); margin: 0; line-height: 1; }
.hx-stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin: 12px auto 24px; max-width: 520px; font-size: 26px; color: #d4dae4; } .hx-star.on { color: var(--sun); }
.hx-list { text-align: left; max-width: 720px; margin: 0 auto 24px; padding-left: 1.4em; }
.hx-list li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.hx-list li span:first-child { display: block; font-weight: 600; }
.hx-list-r { font-size: 14px; color: var(--muted); } .hx-list li.ok .hx-list-r { color: #1c7a4d; } .hx-list li.bad .hx-list-r { color: var(--help); }
@container eb (max-width: 640px) { .hx-start-in { grid-template-columns: 1fr; } .hx-man { width: 140px; margin: 0 auto; } .hx-verdict { grid-template-columns: 70px minmax(0, 1fr); } .hx-b { font-size: 19px; } }

/* Jít či nejít? – interaktivní film */
.jit-wrap { background: #0f1a2b; color: #fff; padding-block: clamp(32px, 4cqi, 72px) clamp(48px, 5cqi, 96px); }
.jit-wrap .lead { color: rgba(255,255,255,.8); max-width: 820px; margin-top: 14px; }
.jit-head { max-width: 1180px; margin-inline: auto; margin-bottom: clamp(20px, 2.4cqi, 36px); }
.jit-head .h1-sub { color: #fff; font-size: clamp(38px, 5cqi, 84px); }
.jit { max-width: 1180px; margin: 0 auto; }
.jit-player { position: relative; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.jit-player:fullscreen { border-radius: 0; display: flex; align-items: center; justify-content: center; }
.jit-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; outline: none; }
.jit-player:fullscreen .jit-stage { width: min(100vw, calc(100vh * 16 / 9)); }
.jit-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--sun); }
.jit-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: #000; }
.jit-hot { position: absolute; inset: 0; }
.jit-btn { position: absolute; padding: 0; border: 2px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.jit-btn:hover, .jit-btn.sel { border-color: var(--sun); background: rgba(255,204,51,.14); box-shadow: 0 0 18px rgba(255,204,51,.45); }
.jit-spin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--sun); animation: jit-r 1s linear infinite; }
@keyframes jit-r { to { transform: rotate(360deg); } }
.jit-err { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; width: max-content; max-width: 86%; font-size: 15px; background: rgba(0,0,0,.8); padding: 12px 18px; border-radius: 12px; text-align: center; }
.jit-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 24px; background: linear-gradient(transparent 35%, rgba(0,0,0,.82)); text-align: center; }
.jit-start p { margin: 0; color: rgba(255,255,255,.85); font-size: 15px; max-width: 560px; }
.jit-play { font: inherit; font-size: clamp(17px, 2cqi, 22px); font-weight: 800; color: #111; background: var(--sun); border: 0; border-radius: 999px; padding: 14px 32px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.jit-play:hover { transform: translateY(-1px); }
.jit-play[disabled] { opacity: .6; cursor: progress; }
.jit-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-top: 14px; }
.jit-choices { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 420px; min-height: 42px; }
.jit-choice, .jit-ctl button { font: inherit; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 42px; }
.jit-choice { background: var(--sun); color: #111; border: 0; }
.jit-choice:hover { background: #ffe07a; }
.jit-choice.back { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.jit-hint { margin: 0; color: rgba(255,255,255,.6); font-size: 14px; align-self: center; }
.jit-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.jit-ctl button { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.jit-ctl button:hover { border-color: var(--sun); color: var(--sun); }
.jit:not(.is-on) .jit-bar { display: none; }
.jit-info { max-width: 1180px; margin: clamp(32px, 4cqi, 56px) auto 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; }
.jit-info > div:first-child { max-width: 720px; }
.jit-info h2 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.jit-info p { margin: 0; color: rgba(255,255,255,.78); }
.jit-links { display: flex; gap: 10px; flex-wrap: wrap; }
.jit-wrap .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 640px) { .jit-player { border-radius: 12px; margin-inline: -4px; } .jit-ctl button, .jit-choice { font-size: 14px; padding: 8px 13px; } }
.mat-src { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--t-blue); color: var(--t-blue-ink); line-height: 1.5; }
.mat-src .btn { display: inline-flex; }
/* výsledky hledání */
.sr-list { display: flex; flex-direction: column; }
.sr-item { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.sr-thumb { flex: none; width: 220px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sr-item:hover .sr-thumb img { transform: scale(1.04); }
.sr-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sr-meta { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sr-title { font-size: clamp(20px, 1.6cqi, 24px); line-height: 1.3; font-weight: 750; }
.sr-item:hover .sr-title { color: var(--help); }
.sr-perex { color: var(--muted); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .sr-item { gap: 14px; } .sr-thumb { width: 110px; border-radius: 12px; } .sr-perex { -webkit-line-clamp: 2; font-size: 15px; } }
/* kvíz: srovnání s ostatními */
.quiz-cmp { margin: 14px 0 6px; }
.quiz-bars { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.quiz-bars > div { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.quiz-bars i { display: block; height: 12px; border-radius: 99px; background: rgba(15,39,71,.1); overflow: hidden; }
.quiz-bars b { display: block; height: 100%; border-radius: 99px; background: var(--navy); }
.quiz-bars .oth b { background: var(--sun); }
.quiz-bars strong { text-align: right; }
.quiz-cmp p { margin: 8px 0 0; }
@media (max-width: 480px) { .quiz-bars > div { grid-template-columns: 96px 1fr 46px; font-size: 14px; } }

/* Školy: dokumenty MŠMT k prevenci rizikového chování */
.msmt-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.msmt-doc { background: #fff; border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(15,39,71,.05); }
.msmt-doc h3 { margin: 0; font-size: 19px; line-height: 1.35; color: var(--navy); }
.msmt-doc p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.msmt-doc .msmt-cj { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.msmt-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--t-blue); display: inline-flex; align-items: center; justify-content: center; }
.msmt-link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--t-blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.msmt-att { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 18px 22px; border-radius: 22px; background: var(--t-blue); }
.msmt-att strong { flex: 1 1 100%; color: var(--navy); }
.msmt-chip { display: inline-flex; gap: 6px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; border: 1px solid var(--line); }
.msmt-chip:hover { border-color: var(--navy); color: var(--navy); }
.msmt-chip span:first-child { color: var(--help-dark); }
.msmt-more { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
/* Ocenění */
.aw-badge { justify-self: center; width: clamp(180px, 18cqi, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); color: var(--navy-2); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.aw-badge span { font-size: clamp(40px, 4cqi, 64px); line-height: 1; }
.aw-badge strong { font-size: clamp(44px, 4.4cqi, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.aw-badge small { font-weight: 700; font-size: 16px; }
.aw-list { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--navy); }
.aw-year { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.aw-y { font-size: clamp(28px, 2.6cqi, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.aw-items { display: flex; flex-direction: column; gap: 10px; }
.aw-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); }
.aw-item.gold { background: var(--t-sun); border-color: transparent; }
.aw-ico { font-size: 26px; line-height: 1.1; }
.aw-item strong { display: block; font-size: 18px; line-height: 1.35; }
.aw-item span:not(.aw-ico) { display: block; color: var(--muted-2); font-size: 15px; margin-top: 2px; }
@container eb (max-width: 640px) { .aw-year { grid-template-columns: 1fr; gap: 8px; } .aw-badge { display: none; } }

/* Téma: skutečné příběhy obětí */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.story { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid var(--line-2); overflow: hidden; color: var(--ink); }
.story img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.story > span { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.story strong { font-size: 18px; line-height: 1.3; }
.story small { color: var(--muted-2); font-size: 14.5px; line-height: 1.5; }
.story em { font-style: normal; font-weight: 700; color: var(--help-dark); font-size: 14.5px; margin-top: auto; }

/* zvýraznění v textu (citace případů, klíčové pasáže) – jednotná barva */
mark.hl { background: none; color: var(--t-blue-ink, #1d4f91); font-weight: 600; }

/* widget newsletteru (embed.js systému newsletterů) – přizpůsobení webu */
.nl-embed .ebnl-form { max-width: none; font-family: inherit; border-radius: 22px; }
.nl-embed-card .ebnl-form { padding: 20px; }
.nl-embed-band .ebnl-form { max-width: 720px; }
.nl-embed .ebnl-submit { font-family: inherit; }

/* Téma: dlaždice (typy podvodů) – klik rozbalí popis */
.ftiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.ftile { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; transition: box-shadow .15s; }
.ftile[open] { grid-column: 1 / -1; box-shadow: 0 12px 30px rgba(15,39,71,.08); border-color: var(--line); }
.ftile summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; min-height: 72px; }
.ftile summary::-webkit-details-marker { display: none; }
.ftile summary:hover { background: var(--t-sun); }
.ftile-ico { font-size: 28px; line-height: 1; flex: none; }
.ftile summary strong { font-size: 17px; line-height: 1.3; flex: 1; }
.ftile-more { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); }
.ftile[open] .ftile-more { transform: rotate(45deg); }
.ftile-body { padding: 0 20px 20px 58px; font-size: 16.5px; line-height: 1.6; }
.ftile-body p { margin: 0; }
.ftile-h { margin-top: 12px !important; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--help-dark); }
.ftile-body ul { margin: 6px 0 0; padding-left: 1.2em; } .ftile-body li { margin: 4px 0; }
@container eb (max-width: 640px) { .ftile-body { padding-left: 20px; } }

.ftile summary strong small { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted-2); }
.ftile-body p + p { margin-top: 10px; }
.ftile-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ftile-imgs img { height: 140px; width: auto; max-width: 220px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
.ftile-video { margin-top: 14px; max-width: 560px; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.ftile-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ftile-case { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--t-coral); }
.ftile-case p { margin-top: 4px !important; font-size: 15.5px; }

.ftile-mp4 { width: min(320px, 100%); aspect-ratio: 470/380; border-radius: 12px; background: #000; }
.ftile-reveal { margin-top: 8px; } .ftile-reveal summary { cursor: pointer; font-weight: 700; color: var(--navy); }

/* videa (YouTube) */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px 18px; }
.vcard { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vthumb, .vframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px; overflow: hidden; background: #000; position: relative; padding: 0; cursor: pointer; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .3s; }
.vthumb:hover img, .vthumb:focus-visible img { transform: scale(1.03); opacity: .85; }
.vplay { position: absolute; left: 50%; top: 50%; width: 62px; height: 44px; margin: -22px 0 0 -31px; border-radius: 12px; background: rgba(15,39,71,.82); }
.vplay::after { content: ''; position: absolute; left: 25px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.vthumb:hover .vplay { background: #e62117; }
.vdur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.vcard figcaption strong { display: block; font-size: 16px; line-height: 1.35; }
.vcard figcaption small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.vfilters { display: flex; flex-wrap: wrap; gap: 8px; }
.vfilters .chip[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.vmore summary { cursor: pointer; font-weight: 700; color: var(--navy); margin-top: 18px; }
.vfilters .filter-btn { gap: 6px; }

/* dlaždice jen s textem: rozbalí se najetím myši (na dotyku klepnutím), přes sousední dlaždice, bez posunu stránky */
.ftile-hov { position: relative; overflow: visible; outline: none; }
.ftile-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; min-height: 72px; cursor: default; border-radius: 17px; }
.ftile-head strong { font-size: 17px; line-height: 1.3; flex: 1; }
.ftile-head strong small { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted-2); }
.ftile-pop { position: absolute; left: -1px; right: -1px; top: calc(100% - 14px); z-index: 20; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; padding: 14px 18px 18px; font-size: 16px; line-height: 1.55; box-shadow: 0 18px 34px rgba(15,39,71,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.ftile-pop p { margin: 0; } .ftile-pop p + p { margin-top: 8px; }
.ftile-hov:hover, .ftile-hov:focus-within { z-index: 21; border-radius: 18px 18px 0 0; box-shadow: 0 18px 34px rgba(15,39,71,.14); }
.ftile-hov:hover .ftile-head, .ftile-hov:focus-within .ftile-head { background: var(--t-sun); border-radius: 17px 17px 0 0; }
.ftile-hov:hover .ftile-pop, .ftile-hov:focus-within .ftile-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.ftile-hov:hover .ftile-pop, .ftile-hov:focus-within .ftile-pop { top: 100%; }
.ftiles-hov { padding-bottom: 8px; }
.ftile-hov:hover, .ftile-hov:focus-within { border-bottom-color: transparent; }

/* Naše publikace k tématu (v záložkách Jsem dítě / rodič / ze školy) */
.tab-pubs { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.tab-pubs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.tab-pub { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); }
.tab-pub-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.tab-pub strong { display: block; font-size: 16px; line-height: 1.3; } .tab-pub small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.ftile-pop-wide { right: auto; width: min(680px, calc(100vw - 32px)); max-height: min(72vh, 760px); overflow: auto; border-top: 1px solid var(--line); border-radius: 0 18px 18px 18px; }
.ftile-pop .ftile-h { margin-top: 12px !important; } .ftile-pop ul { margin: 6px 0 0; padding-left: 1.2em; } .ftile-pop li { margin: 4px 0; }

/* Související články pod článkem */
.related { margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--navy); }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.related li a:hover strong { color: var(--help); }
.related strong { display: block; font-size: 18px; line-height: 1.35; }
.related small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
