/* sklozam.cz — Michal Zahradník, sklář v osmé generaci
   Světlý papír + tmavá vitrína pro sklo, akcent = plamen kahanu. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

:root {
  --paper: #F6F4EF;
  --paper-2: #EDE9E0;
  --card: #FFFEFB;
  --ink: #15181D;
  --muted: #5E636B;
  --line: rgba(21, 24, 29, .12);
  --night: #0E1824;
  --night-2: #152336;
  --night-line: rgba(200, 222, 240, .14);
  --night-text: #E8EEF4;
  --night-muted: #93A3B5;
  --glass: #9CC7E2;
  --flame: #E8792B;
  --flame-ink: #B0531A;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --wrap: min(1200px, 100% - 3rem);
  --sec: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --r: 6px;
}

body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: rgba(21,24,29,.35); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--flame-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 2px; }
::selection { background: #F6C9A4; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--flame-ink); }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--flame-ink); margin: 0 0 1rem; }
.lead { font-size: clamp(1.12rem, 1.4vw, 1.28rem); line-height: 1.55; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 100px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.2; transition: background .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--flame-ink); color: #fff; transform: translateY(-1px); }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--flame); color: #fff; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-arrow::after { content: ' →'; transition: margin .25s var(--ease); }
.link-arrow:hover::after { margin-left: .25rem; }

/* ---------- hlavička ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 26px; height: 26px; fill: none; stroke: var(--flame); stroke-width: 1.6; }
.logo-t { font-family: var(--serif); font-size: 1.3rem; line-height: 1; letter-spacing: -.01em; }
.logo-t small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.nav-list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a, .more-btn { display: block; padding: .5rem .75rem; font-size: .93rem; text-decoration: none; color: var(--ink); border-radius: 100px; transition: background .2s; }
.nav-list a:hover, .more-btn:hover { background: var(--paper-2); color: var(--ink); }
.nav-list a[aria-current="page"], .more.is-on > .more-btn { background: var(--paper-2); }
.nav-list .btn { color: var(--paper); margin-left: .5rem; padding: .55rem 1.1rem; }
.nav-list .btn:hover { background: var(--flame-ink); color: #fff; }
.more { position: relative; }
.more-btn::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.more-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; list-style: none; margin: 0; padding: .4rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(14,24,36,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.more.open .more-list, .more:focus-within .more-list { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.more-list a { border-radius: 6px; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- úvod ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.6rem); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
.hero h1 em { font-weight: 400; }
.hero-sub { font-size: clamp(1.08rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 40ch; margin: 1.6rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero-frame { border-radius: 10px; overflow: hidden; background: var(--night); aspect-ratio: 5 / 4; box-shadow: 0 2px 4px rgba(14,24,36,.08), 0 40px 80px -40px rgba(14,24,36,.6); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; transform: scale(1.02); }
.hero-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: .9rem; }
.hero-fig figcaption strong { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 1.5rem 1rem 1.4rem 0; }
.stats > div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.stats dd { font-size: .88rem; color: var(--muted); margin-top: .45rem; line-height: 1.35; }

.sec { padding: var(--sec) 0; }
.sec h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 300; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split-body p { margin: 0 0 1rem; max-width: 58ch; }
.split-body p:not(.lead) { color: var(--muted); }

/* generace */
.gens { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.6rem, 1.4vw, 1.2rem); }
.gen-card { position: relative; }
.gen-img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: #d8d2c4; }
.gen-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) contrast(1.05); transition: filter .5s var(--ease), transform .8s var(--ease); }
.gen-card:last-child .gen-img img { filter: none; }
.gen-card:hover .gen-img img { filter: none; transform: scale(1.03); }
.gen-card figcaption { padding-top: .8rem; font-size: .88rem; line-height: 1.35; color: var(--muted); border-top: 1px solid var(--line); margin-top: .9rem; }
.gen-y { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--ink); line-height: 1; letter-spacing: -.02em; margin-bottom: .45rem; }
.gen-card strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.gen-card:last-child .gen-y { color: var(--flame-ink); }

/* tmavá vitrína */
.sec--dark { background: radial-gradient(90% 60% at 80% 0%, #1B3150 0%, var(--night) 60%) var(--night); color: var(--night-text); }
.sec--dark .eyebrow { color: var(--flame); }
.sec--dark h2 em, .sec--dark h3 em { color: var(--glass); }
.sec-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head > p { color: var(--night-muted); margin: 0; max-width: 46ch; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.mcard { display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--night-text); transition: border-color .3s, transform .4s var(--ease), background .3s; }
.mcard:hover { color: #fff; border-color: rgba(156,199,226,.45); transform: translateY(-3px); background: #1a2b42; }
.mcard-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0b1420; }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mcard:hover .mcard-img img { transform: scale(1.05); }
.mcard-txt { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; padding: .95rem 1.05rem 1.1rem; }
.mcard-no { grid-row: 1 / 3; font-family: var(--serif); font-style: italic; color: var(--flame); font-size: .95rem; padding-top: .15rem; }
.mcard-t { font-family: var(--serif); font-size: 1.22rem; line-height: 1.2; }
.mcard-d { font-size: .86rem; line-height: 1.45; color: var(--night-muted); margin-top: .35rem; }
.big-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.big-b { grid-column: 3 / 5; grid-row: 3 / 5; }
.big-a .mcard-img, .big-b .mcard-img { flex: 1; aspect-ratio: auto; min-height: 0; }
.big-a .mcard-t, .big-b .mcard-t { font-size: 1.6rem; }

.film { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(4rem, 8vw, 7rem); }
.film h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 300; margin-bottom: 1rem; }
.film-text p:not(.eyebrow) { color: var(--night-muted); }
.film .video { margin: 0; }
.film .video-cap { color: var(--night-muted); }
.film .video-cap a { color: var(--glass); }

/* školy */
.school { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.school-pics { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.school-pics img { width: 100%; border-radius: var(--r); object-fit: cover; aspect-ratio: 4 / 3; }
.sp-1 { grid-column: 1 / 3; }
.school-text h2 { margin-bottom: 1.2rem; }
.school-text .lead { margin: 0 0 1.4rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.ticks li { position: relative; padding: .7rem 0 .7rem 1.8rem; border-top: 1px solid var(--line); font-size: .98rem; color: var(--muted); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 1.2rem; width: 9px; height: 9px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 4px #F8DCC6; }
.ticks strong { color: var(--ink); font-weight: 600; }
.aside-quote { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.45; color: var(--muted); margin: 0 0 1.8rem; padding-left: 1.1rem; border-left: 2px solid var(--flame); }
.ticker { margin-top: clamp(3.5rem, 7vw, 6rem); overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 160s linear infinite; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); white-space: nowrap; padding: 0 1.4rem; position: relative; }
.ticker-track span::after { content: ''; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--flame); opacity: .6; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.tcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); transition: transform .6s var(--ease); }
.tcard:hover img { transform: translateY(-3px); }
.tcard-t { font-family: var(--serif); font-size: 1.5rem; margin: 1rem 0 .35rem; }
.tcard-t::after { content: ' →'; color: var(--flame-ink); opacity: 0; transition: opacity .25s; }
.tcard:hover .tcard-t::after { opacity: 1; }
.tcard-d { color: var(--muted); font-size: .95rem; }
.tcard:hover { color: var(--ink); }

/* rekordy */
.sec--paper { background: var(--paper-2); }
.records { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.records-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.records-docs a { display: block; background: #fff; padding: 6px; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 20px 40px -20px rgba(14,24,36,.35); transition: transform .5s var(--ease); }
.records-docs a:nth-child(1) { transform: rotate(-2.5deg) translateY(10px); }
.records-docs a:nth-child(3) { transform: rotate(2deg) translateY(16px); }
.records-docs a:hover { transform: rotate(0) translateY(-6px); }
.records-docs img { aspect-ratio: 3 / 5; object-fit: cover; object-position: top; }
.records-text h2 { margin-bottom: 1.4rem; }
.rec-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.rec-list li { display: grid; grid-template-columns: 4rem 1fr; padding: .65rem 0; border-top: 1px solid var(--line); }
.rec-list li:last-child { border-bottom: 1px solid var(--line); }
.rec-list span { font-family: var(--serif); color: var(--flame-ink); font-size: 1.1rem; }
.media-h { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.media { list-style: none; padding: 0; margin: 0; }
.media li { padding: .3rem 0; }
.media span { color: var(--muted); font-size: .88rem; margin-left: .4rem; }

/* pás pro školy na podstránkách */
.band { background: var(--night); color: var(--night-text); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding: 2.6rem 0; }
.band .eyebrow { color: var(--flame); margin-bottom: .5rem; }
.band-t { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.25; margin: 0; max-width: 34ch; }

/* patička */
.foot { background: var(--night); color: var(--night-text); padding: clamp(4rem, 8vw, 6.5rem) 0 2rem; border-top: 1px solid var(--night-line); }
.foot a { color: var(--night-text); text-decoration-color: rgba(232,238,244,.3); }
.foot a:hover { color: var(--flame); }
.foot .eyebrow { color: var(--flame); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.foot-h { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.1; margin: 0 0 1.4rem; }
.foot-big { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.5; margin: 0 0 2rem; }
.foot-quote { font-family: var(--serif); font-style: italic; color: var(--night-muted); max-width: 44ch; margin: 0; }
.foot-col p { margin: 0 0 1rem; font-size: .95rem; color: #C7D2DE; }
.foot-label { font-size: .72rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--night-muted) !important; margin-bottom: .35rem !important; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 1; font-size: .95rem; }
.foot-links li { padding: .18rem 0; }
.foot-links a { text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--night-line); font-size: .85rem; color: var(--night-muted); }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--night-muted); }

/* ---------- podstránky ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.2rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--flame-ink); }
.crumbs i { font-style: normal; margin: 0 .55rem; opacity: .45; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 300; letter-spacing: -.03em; max-width: 18ch; }
.page-body { padding-bottom: var(--sec); }
.prose { max-width: 720px; }
.prose > p, .prose li { color: #2B2F36; }
.prose p { margin: 0 0 1.15rem; }
.prose > .lead { color: var(--ink); margin-bottom: 1.6rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 3rem 0 1rem; clear: both; }
.prose h3 { font-size: 1.4rem; margin: 2rem 0 .7rem; }
.prose a:not(.btn):not(.lb):not(.link-arrow):not(.mcard):not(.pg) { color: var(--flame-ink); text-decoration-color: rgba(176,83,26,.4); }
.prose a:not(.btn):not(.lb):not(.link-arrow):not(.mcard):not(.pg):hover { text-decoration-color: currentColor; }
.kicker { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--flame-ink) !important; margin-bottom: .8rem !important; }
.note { font-size: .95rem; color: var(--muted) !important; }
.quote { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 2px solid var(--flame); background: var(--card); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; border-radius: 0 var(--r) var(--r) 0; }

/* galerie a obrázky — mohou přesáhnout textový sloupec */
.gal { display: grid; gap: 12px; margin: 2rem 0 2.2rem; }
.prose > .gal:not(.docs), .prose > .fig--wide, .prose > .video, .prose > .mgrid { width: min(1000px, calc(100vw - 3rem)); }
.gal--2 { grid-template-columns: repeat(2, 1fr); }
.gal--3 { grid-template-columns: repeat(3, 1fr); }
.gal--4 { grid-template-columns: repeat(4, 1fr); }
.gal a { display: block; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.gal a:hover img { transform: scale(1.04); }
.gal figcaption { font-size: .84rem; line-height: 1.35; color: var(--muted); margin-top: .5rem; }
.gal--docs img, .docs img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.gal--docs a, .docs a { background: #fff; border: 1px solid var(--line); padding: 4px; }
.fig { margin: 2rem 0; }
.fig a { display: block; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.fig figcaption { font-size: .86rem; color: var(--muted); margin-top: .55rem; }
.fig--wide img { width: 100%; max-height: 640px; object-fit: cover; }
.fig--right { float: right; width: 44%; margin: .3rem 0 1.2rem 1.8rem; }
.award { display: grid; grid-template-columns: 130px 1fr; gap: 1.4rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; margin: 2.6rem 0; clear: both; }
.award .fig { margin: 0; }
.award figcaption { display: none; }
.award p { margin: 0; font-size: 1.05rem; }

/* video */
.video { margin: 2rem 0 2.4rem; clear: both; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1420; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .8s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(246,244,239,.92); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease), background .3s; }
.yt-play::after { content: ''; position: absolute; left: 31px; top: 25px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--ink); }
.yt:hover .yt-play { transform: scale(1.08); background: var(--flame); }
.yt:hover .yt-play::after { border-left-color: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-size: .88rem; color: var(--muted); margin: .6rem 0 0 !important; }
.video-cap a { margin-left: .4rem; white-space: nowrap; }

/* bloky */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem 1.7rem .8rem; margin: 2.4rem 0; }
.box h2 { margin-top: 0; font-size: 1.6rem; }
.box--order { border-top: 3px solid var(--flame); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2rem 0; }
.facts > div { padding: 1rem 1rem 1rem 0; }
.facts > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; margin-top: .3rem; }
.facts--plain { grid-template-columns: repeat(2, 1fr); border: 0; margin: .4rem 0 1rem; gap: 0 1.4rem; }
.facts--plain > div, .facts--plain > div + div { padding: .8rem 0; border-left: 0; border-top: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.cols h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.dash, .check { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.dash li, .check li { margin-bottom: .35rem; }
.dash li::marker { color: var(--flame); }
.check li::marker { color: var(--flame-ink); font-family: var(--serif); }
.dash--2 { columns: 2; column-gap: 1.6rem; }
.dash--2 li { break-inside: avoid; }
.btns { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1rem !important; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }

/* přehled modelů na podstránce */
.prose > .mgrid { margin: 2.6rem 0; padding: 14px; background: var(--night); border-radius: 14px; }

/* rodokmen */
.prose > .gens { width: min(1000px, calc(100vw - 3rem)); margin: 2.4rem 0 3rem; }
.tree { list-style: none; margin: 2rem 0; padding: 0; position: relative; }
.tree::before { content: ''; position: absolute; left: 35px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.gen { display: grid; grid-template-columns: 72px 1fr; gap: 1.4rem; padding-bottom: 2.6rem; position: relative; }
.gen-no { width: 72px; height: 72px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1; position: relative; z-index: 1; }
.gen-no span { font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0; color: var(--ink); margin-bottom: 3px; }
.gen:nth-child(8) .gen-no { background: var(--ink); border-color: var(--ink); color: #cfd6de; }
.gen:nth-child(8) .gen-no span { color: #fff; }
.gen-body { padding-top: .7rem; }
.gen-body h2 { margin: 0; font-size: 1.8rem; }
.gen-when { font-size: .92rem; color: var(--flame-ink) !important; margin: .25rem 0 .9rem !important; }
.gen .gal { margin: 1rem 0 0; }

/* seznamy */
.schools { columns: 3; column-gap: 2rem; padding-left: 2rem; font-size: .95rem; margin: 2rem 0; width: min(1000px, calc(100vw - 3rem)); }
.schools li { break-inside: avoid; padding: .15rem 0; }
.schools li::marker { color: var(--muted); font-size: .8em; }
.friends { padding-left: 1.2rem; }
.friends li { margin-bottom: 1rem; }
.sitemap { list-style: none; padding: 0; }
.sitemap li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sitemap li.sub { padding-left: 1.4rem; font-size: .96rem; }
.sitemap a { text-decoration: none; }

/* předchozí / další model */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4rem; max-width: 1000px; clear: both; }
.pg { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; transition: border-color .25s, transform .3s var(--ease); }
.pg img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.pg span { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.pg small { display: block; font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.pg.next { grid-template-columns: 1fr 96px; text-align: right; }
.pg.next img { order: 2; }
.pg:hover { border-color: rgba(176,83,26,.45); transform: translateY(-2px); color: var(--ink); }

/* lightbox */
.lb-box { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.lb-box[open] { display: flex; align-items: center; justify-content: center; }
.lb-box::backdrop { background: rgba(10, 16, 24, .94); }
.lb-box figure { max-width: min(92vw, 1000px); text-align: center; }
.lb-box img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-box figcaption { color: #DDE4EC; margin-top: .9rem; font-family: var(--serif); font-size: 1.1rem; }
.lb-x { position: fixed; top: .8rem; right: 1rem; width: 48px; height: 48px; color: #fff; font-size: 2.2rem; line-height: 1; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.8rem; line-height: 1; }
.lb-nav:hover { background: var(--flame); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-box.single .lb-nav { display: none; }

/* jemné odhalení při scrollu (jen s JS) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responzivita ---------- */
@media (max-width: 1080px) {
  .nav-list a, .more-btn { padding: .5rem .55rem; font-size: .9rem; }
  .mgrid { grid-template-columns: repeat(3, 1fr); }
  .big-a { grid-column: 1 / 3; grid-row: span 2; }
  .big-b { grid-column: 2 / 4; grid-row: span 2; }
}

@media (max-width: 920px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 72px 0 0; background: var(--paper); padding: 1rem 1.5rem 2rem; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .nav.open { opacity: 1; visibility: visible; transition: opacity .25s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .more-btn { font-family: var(--serif); font-size: 1.7rem; padding: .7rem 0; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: none !important; }
  .more-btn::after { display: none; }
  .more-list { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: .3rem 0 .6rem; min-width: 0; }
  .more-list a { font-size: 1.05rem; padding: .45rem 0; }
  .nav-contact { margin-top: 1.4rem; }
  .nav-list .btn { margin: 0; justify-content: center; font-size: 1rem; padding: .9rem; }
  .hero-grid, .split, .sec-head, .film, .school, .records { grid-template-columns: 1fr; }
  .hero-fig { order: -1; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .gens { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .gen-card { scroll-snap-align: start; }
  .trio { grid-template-columns: 1fr; gap: 2.4rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-main { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --wrap: min(1200px, 100% - 2rem); }
  body { font-size: 1.02rem; }
  .top-in { height: 64px; }
  .nav { inset: 64px 0 0; }
  .logo-t { font-size: 1.15rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div, .stats > div + div { padding: 1.1rem 0; border-left: 0; }
  .stats > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .mgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .big-a, .big-b { grid-column: 1 / -1; grid-row: auto; }
  .big-a .mcard-img, .big-b .mcard-img { aspect-ratio: 4 / 3; }
  .mcard-txt { padding: .7rem .75rem .85rem; grid-template-columns: 1fr; }
  .mcard-no { grid-row: auto; font-size: .8rem; }
  .mcard-t { font-size: 1.05rem; }
  .mcard-d { display: none; }
  .big-a .mcard-d, .big-b .mcard-d { display: block; }
  .gal--3, .gal--4 { grid-template-columns: repeat(2, 1fr); }
  .prose > .gal:not(.docs), .prose > .fig--wide, .prose > .video, .prose > .mgrid, .prose > .gens, .schools { width: 100%; }
  .fig--right { float: none; width: 100%; margin: 1.5rem 0; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .schools { columns: 2; padding-left: 1.5rem; font-size: .92rem; }
  .pager { grid-template-columns: 1fr; }
  .tree::before { left: 25px; }
  .gen { grid-template-columns: 52px 1fr; gap: 1rem; }
  .gen-no { width: 52px; height: 52px; font-size: 0; }
  .gen-no span { font-size: 1.35rem; margin: 0; }
  .gen-body { padding-top: .35rem; }
  .gen-body h2 { font-size: 1.5rem; }
  .award { grid-template-columns: 90px 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .records-docs { gap: 8px; }
  .lb-nav { top: auto; bottom: 1.2rem; transform: none; }
}

@media (max-width: 400px) {
  .facts, .facts--plain { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .dash--2 { columns: 1; }
  .schools { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .top, .band, .foot, .pager, .lb-box, .yt, .ticker, .burger { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .sec--dark { background: #fff; color: #000; }
  .prose > .gal:not(.docs), .prose > .fig--wide { width: 100%; }
}
.sec--school { padding-bottom: 0; }
