/* styl.css: varianta C · Ponor (design-lab, web Drahoš Menčík). Sdílí ho všechny tři obrazovky.
   Části 2 až 4 jsou z kostry beze změny. Část 1 a 5 patří variantě.
   Velký nápad: lehkost je vstup, hloubka je důvod zůstat. Nahoře světlo a řez 300,
   čím hlouběji, tím tmavší zelená a pevnější písmo. Každá sekce má pevný podklad (kontrast platí v každém bodě),
   švy mezi sekcemi jsou gradientní. */

/* Písmo: Albert Sans, variabilní osa wght 100 až 900 (OFL, Fontsource). Sada latin-ext nese č, ď, ě, ň, ř, š, ť, ů, ž.
   Bez preloadu (DESIGN.md značky, README kostry „Předem načíst“). */
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("fonts/albert-sans-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("fonts/albert-sans-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* font-display: optional (4. 11. 2026): na telefonu při 381–396 px zalomí záložní písmo H1 o řádek víc a výměna dala CLS 0,129 (měřeno).
   S preloadem latin přijde písmo včas na běžném spojení. Na pomalém zůstane záložní písmo a stránka neskočí. */
/* Albert Sans 400 proti Arialu, spočítáno 29. 10. 2026 fontTools 4.60.2 (manuál B). */
@font-face {
  font-family: "Albert Sans Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 100 599;
  size-adjust: 102.2%;
  ascent-override: 92.9%;
  descent-override: 24.5%;
  line-gap-override: 0%;
}
/* Albert Sans 800 proti Arial Bold, spočítáno 4. 11. 2026 fontTools (instancer wght 800). Bez něj prohlížeč
   ztuční Arial uměle, pevné slovo H1 je širší a na telefonu přibude řádek (CLS 0,129 při 390 px, měřeno). */
@font-face {
  font-family: "Albert Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 900;
  size-adjust: 98.7%;
  ascent-override: 96.2%;
  descent-override: 25.3%;
  line-gap-override: 0%;
}

/* Hloubka čtení 0 až 1. JS ji píše na <html> podle scrollu, nadpisy z ní berou řez. */
@property --hloubka {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* =========================================================================
   1. TOKENY
   ========================================================================= */
:root {
  /* Barva značky (DESIGN.md, manuál B). Kontrasty: tabulka v DESIGN.md a výpočet varianty níž. */
  --bg: #F2F5F1;          /* šalvějová bílá, podklad */
  --surface: #CFDDD3;     /* šalvěj; zelená na ní 7,13 : 1 */
  --fg: #17201D;          /* inkoust, text 15,15 : 1 */
  --muted: #4E5D57;       /* šedá, popisky 6,31 : 1 na bg, 4,93 : 1 na surface */
  --green: #1C4A3D;       /* lahvová zelená 9,11 : 1 */
  --accent: #EE9B52;      /* meruňková, jediné světlo, do 3 % plochy */
  --accent-fg: #17201D;   /* inkoust na meruňkové 7,49 : 1 */
  --white: #FFFFFF;
  --deep: #12332A;
  --night: #0E2620;
  --sage-2: #A9BFB2;      /* popisky na tmavé: 5,14 : 1 na L3, 8,19 : 1 na L8 */
  --line: color-mix(in srgb, var(--green) 24%, transparent);
  --line-dark: color-mix(in srgb, var(--white) 22%, transparent);
  --focus: #1C4A3D;       /* fokus na světlé 9,11 : 1 */
  --focus-dark: #EE9B52;  /* fokus na zelené 4,51 : 1, na noci 7,17 : 1 */

  /* Hloubka: 10 pevných podkladů sekcí, od hladiny ke dnu. Text na nich (výpočet WCAG 3. 11. 2026):
     L0 inkoust 15,15 · L1 zelená 8,24, šedá 5,71 · L2 zelená 7,13, šedá 4,93 ·
     L3 bílá 10,02, sage-2 5,14 · L4 bílá 11,22 · L5 12,34 · L6 13,70 · L7 14,75 · L8 15,95 · L9 17,47. */
  --l0: #F2F5F1;
  --l1: #E3EBE5;
  --l2: #CFDDD3;
  --l3: #1C4A3D;
  --l4: #184236;
  --l5: #153B31;
  --l6: #12332A;
  --l7: #102D25;
  --l8: #0E2620;
  --l9: #0A1D18;
  --mez-hladina: #6E8F80;  /* mezitón šalvěj a zelená, jen plocha bez textu (záloha WebGL) */
  --mez-svetla: #DCE6DF;   /* mezi L1 a L2, plocha textové karty; zelená na ní 7,84 : 1 */
  --mez-tma: #2E5C4E;      /* světlejší zelená nad L3, plocha bez textu */
  --ram-svetly: #D9DEDA;   /* šedý rámeček chybějící fotky; šedá na něm 5,09 : 1 */
  --ram-tmavy: #2A4A41;    /* rámeček na tmavé; šalvěj na něm 6,93 : 1 */

  /* Sklo nad obrazem: šalvějová bílá 72 %. Zelený text na nejtmavším pixelu pod sklem 5,13 : 1 (výpočet). */
  --sklo: rgb(242 245 241 / .72);
  --sklo-hrana: rgb(255 255 255 / .55);
  --sklo-blur: 14px;      /* strop vyraz.md §4.2: 24 px */
  --zare: rgb(238 155 82 / .5);
  --stin: 0 24px 48px -16px color-mix(in srgb, var(--night) 45%, transparent); /* tónovaný stín D17 */

  /* Zrno 4 % (Hejzlar), SVG v data URI. */
  --zrno: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Písmo: jedna rodina, dvě váhy nadpisu. */
  --font-display: "Albert Sans", "Albert Sans Fallback", Arial, system-ui, sans-serif;
  --font-body: "Albert Sans", "Albert Sans Fallback", Arial, system-ui, sans-serif;
  --weight-display: 300;
  --w-light: 300;
  --w-text: 400;
  --w-label: 500;
  --w-hover: 700;
  --w-heavy: 800;
  --leading: 1.6;
  --leading-tight: 1.05;
  --measure: 36em;

  /* Škála mezi 360 a 1440 px. */
  --step--1: clamp(0.8125rem, 0.7917rem + 0.0926vw, 0.875rem);  /* popisek 13 na 14 */
  --step-0: clamp(1.0625rem, 1.0208rem + 0.1852vw, 1.1875rem);   /* text 17 na 19 */
  --step-1: clamp(1.25rem, 1.125rem + 0.5556vw, 1.625rem);       /* H3 20 na 26 */
  --step-2: clamp(1.625rem, 1.375rem + 1.1111vw, 2.375rem);      /* teze 26 na 38 */
  --step-3: clamp(2rem, 1.4167rem + 2.5926vw, 3.75rem);          /* H2 32 na 60 */
  --step-4: clamp(2.25rem, 1.4167rem + 3.7037vw, 4.75rem);       /* H1 36 na 76 */
  --step-5: clamp(2.25rem, 1.4167rem + 3.7037vw, 4.75rem);
  --lead: clamp(1.25rem, 1.125rem + 0.5556vw, 1.625rem);         /* perex 20 na 26 */

  /* Prostor */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section: clamp(72px, 10vw, 160px);
  --sev: clamp(48px, 7vw, 120px);  /* výška gradientního švu */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);

  /* Tvar: zakulacený, soustředné rádiusy (karta 16 = plocha 12 + 4). */
  --radius: 16px;
  --r-panel: 24px;
  --r-card: 16px;
  --r-inner: 12px;
  --r-btn: 6px;
  --r-pill: 999px;
  --tenka: 1px;
  --tlusta: 8px;

  /* Pohyb: jedna křivka marketingu, jedna pro ovládání. */
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 600ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --reveal-shift: 12px;
}

/* =========================================================================
   2. ZÁKLAD
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); max-width: var(--measure); text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: var(--space-2); top: var(--space-2); z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--accent); color: var(--accent-fg);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* =========================================================================
   3. ODHALENÍ — obsah je vidět i bez JS
   ========================================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  animation: dl-pojistka 0s 2.5s forwards;
}
.js-ok [data-reveal] { animation: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes dl-pojistka { to { opacity: 1; transform: none; } }

/* =========================================================================
   4. OMEZENÝ POHYB — tvrdé pravidlo, nemazat
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; animation: none; }
}

/* =========================================================================
   5. VARIANTA C · PONOR
   ========================================================================= */
html { scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-kerning: normal; overflow-x: clip; }
::selection { background: var(--surface); color: var(--fg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { border-radius: var(--r-btn); font-weight: var(--w-label); }
html.staticky *, html.staticky *::before, html.staticky *::after { transition: none !important; animation: none !important; }

/* --- Hloubka: sekce s pevným podkladem a gradientním švem ------------------ */
.hl {
  --sek: var(--l0); --pred: var(--sek);
  position: relative; isolation: isolate;
  background: var(--sek); color: var(--fg);
  padding-block: var(--section);
}
.hl.sev::before {                      /* šev: přechod z barvy předchozí sekce, roste se scrollem (prechod-sekci) */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; z-index: -1;
  height: calc(var(--sev) + 1px);
  background: linear-gradient(180deg, var(--pred), var(--sek));
  transform-origin: 50% 0; transform: scaleY(var(--sev-k, 1));
  pointer-events: none;
}
.hl.tma { color: var(--white); }
.hl.tma::after {                       /* zrno 4 % na tmavých plochách, pod textem */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--zrno); background-size: 200px 200px; opacity: .04;
}
.tma :focus-visible { outline-color: var(--focus-dark); }
.tma h2, .tma h3 { color: var(--white); }
.tma .popisek, .tma .tlumene { color: var(--sage-2); }
.l0 { --sek: var(--l0); } .l1 { --sek: var(--l1); } .l2 { --sek: var(--l2); } .l3 { --sek: var(--l3); } .l4 { --sek: var(--l4); }
.l5 { --sek: var(--l5); } .l6 { --sek: var(--l6); } .l7 { --sek: var(--l7); } .l8 { --sek: var(--l8); } .l9 { --sek: var(--l9); }
.z0 { --pred: var(--l0); } .z1 { --pred: var(--l1); } .z2 { --pred: var(--l2); } .z3 { --pred: var(--l3); } .z4 { --pred: var(--l4); }
.z5 { --pred: var(--l5); } .z6 { --pred: var(--l6); } .z7 { --pred: var(--l7); } .z8 { --pred: var(--l8); }
@media (forced-colors: active), (prefers-contrast: more) { .hl.sev::before, .hl.tma::after { display: none; } }

/* --- Typografie: řez roste s hloubkou -------------------------------------- */
h1, h2 { color: var(--green); }
h2 { line-height: 1.06; letter-spacing: -0.02em; max-width: 16em; }
h3 { font-weight: var(--w-heavy); color: var(--green); line-height: 1.22; letter-spacing: -0.01em; }
strong { font-weight: var(--w-heavy); }
.popisek { font-size: var(--step--1); font-weight: var(--w-label); line-height: 1.45; letter-spacing: 0.01em; color: var(--muted); }
.lead { font-size: var(--lead); line-height: 1.38; letter-spacing: -0.01em; max-width: 26em; }
.tlumene { color: var(--muted); }
.zastupny { color: inherit; opacity: 1; font-style: normal; }

/* Nadpis sekce: každé slovo má neviditelnou kopii v řezu 800 (grid stack), takže změna řezu nic neposune (CLS).
   Bez JS a při omezeném pohybu platí pevný řez sekce z --hloubka-s. S JS ho řídí --hloubka z polohy čtení. */
.vh .sl { display: inline-grid; justify-items: center; }
.vh .sl > span, .vh .sl::after { grid-area: 1 / 1; }
.vh .sl::after { content: attr(data-w); visibility: hidden; font-weight: var(--w-heavy); user-select: none; pointer-events: none; }
.vh .sl > span { font-weight: calc(300 + 500 * var(--hloubka-s, 0)); }
html.hloubka-ziva .vh .sl > span { font-weight: calc(300 + 500 * var(--hloubka)); }
.vh .tez .sl > span, .tez { font-weight: var(--w-heavy) !important; }

/* Podpis značky v H1: lehká část najede o 12 px, pevné slovo ztěžkne 300 na 800 za 900 ms. */
.h-h { display: inline-grid; font-weight: var(--w-heavy); }
.h-h > span, .h-h::after { grid-area: 1 / 1; }
.h-h::after { content: attr(data-w); visibility: hidden; font-weight: var(--w-heavy); }
@media (prefers-reduced-motion: no-preference) {
  .h-l { display: inline-block; transition: transform 900ms var(--ease); }
  .h-h > span { transition: font-weight 900ms var(--ease) 75ms; }
  html.js:not(.is-nacteno) .h-l { transform: translateY(12px); }
  html.js:not(.is-nacteno) .h-h > span { font-weight: var(--w-light); }
}

/* Rezerva šířky pro tlačítka 500 na 700 bez posunu. */
.wt { display: inline-grid; justify-items: center; }
.wt > span, .wt::after { grid-area: 1 / 1; }
.wt::after { content: attr(data-w); visibility: hidden; font-weight: var(--w-hover); user-select: none; }

/* --- Ovládání -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-btn);
  background: var(--green); color: var(--white);
  font: inherit; font-weight: var(--w-label); line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: scale var(--dur-fast) var(--ease-ui), font-weight var(--dur-fast) var(--ease-ui), background-color var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui);
}
.btn:hover { font-weight: var(--w-hover); }
.btn:active:not([aria-disabled="true"]) { scale: .96; }
.btn:focus-visible { transition-duration: 0ms; }
.btn--obrys { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--ram, currentColor); }
.btn--obrys:hover { --ram: var(--fg); }
.tma .btn { background: var(--white); color: var(--green); }
.tma .btn--obrys { background: transparent; color: var(--white); }
.btn--akcent { background: var(--accent); color: var(--accent-fg); }
.tma .btn--akcent { background: var(--accent); color: var(--accent-fg); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn:active:not([aria-disabled="true"]) { scale: none; filter: brightness(.92); } }
.tlacitka { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }

.odkaz {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: var(--w-label); color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  transition: text-decoration-thickness var(--dur-fast) var(--ease-ui);
}
.odkaz:hover { text-decoration-thickness: 3px; }
.odkaz[aria-disabled="true"] { text-decoration: none; cursor: default; opacity: .9; }
.odkaz[aria-disabled="true"]:hover { text-decoration: none; }
.odkaz__pozn { font-size: var(--step--1); font-weight: var(--w-text); }

.cip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 14px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--green) 9%, transparent); color: var(--green);
  font-size: var(--step--1); font-weight: var(--w-label); line-height: 1.3;
}
.cip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tma .cip { background: rgb(255 255 255 / .09); color: var(--white); }

/* Pauza: průhledné tlačítko přes scénu nebo pás. Ikona (tenká a tlustá čára) se ukáže jen při najetí a fokusu. */
.pauza {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px; margin: 0; border: 0; border-radius: inherit;
  background: transparent; color: var(--white); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pauza[hidden] { display: none; }
.scena > .pauza { inset: 9% 0 0 0; border-radius: var(--r-panel); }
.pauza__ikona {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--night); color: var(--white);
  opacity: 0; transform: scale(.85);
  transition: opacity var(--dur-fast) var(--ease-ui), transform var(--dur-fast) var(--ease-ui);
}
.pauza__ikona i { display: block; width: 2px; height: 14px; background: currentColor; }
.pauza__ikona i + i { width: 5px; }
.pauza:hover .pauza__ikona, .pauza:focus-visible .pauza__ikona { opacity: 1; transform: none; }
.pauza:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.pauza[aria-pressed="true"] .pauza__ikona i { width: 0; height: 0; background: none;
  border-style: solid; border-color: transparent transparent transparent currentColor; border-width: 7px 0 7px 11px; }
.pauza[aria-pressed="true"] .pauza__ikona i + i { display: none; }
@media (prefers-reduced-motion: reduce) { .pauza { display: none; } }

/* --- Hlavička a mobilní menu ----------------------------------------------- */
.hlavicka { position: relative; z-index: 40; background: var(--l0); }
.hlavicka__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2) var(--space-5); padding-block: var(--space-4);
}
.znacka { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: none; }
.znacka .lg { width: calc(20px * 7.803); height: calc(20px * .741); }
.nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--fg); text-decoration: none; font-weight: var(--w-text);
  transition: font-weight var(--dur-fast) var(--ease-ui);
}
.nav a:hover { font-weight: var(--w-hover); }
.nav a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: var(--tenka);
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 300ms var(--ease-ui);
}
.nav a:hover::before { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: var(--w-heavy); color: var(--green); }
.nav a[aria-current="page"]::before { height: 3px; transform: none; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; right: -10px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.nav .wt::after { font-weight: var(--w-heavy); }
.menu-tl {
  display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 8px 14px;
  border: 0; border-radius: var(--r-btn); background: transparent; color: var(--green);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-weight: var(--w-label); cursor: pointer; touch-action: manipulation;
}
.menu-tl__ikona { display: grid; gap: 4px; width: 20px; }
.menu-tl__ikona i { display: block; height: 1px; background: currentColor; transition: transform var(--dur-base) var(--ease-ui); }
.menu-tl__ikona i + i { height: 4px; }
.menu-tl[aria-expanded="true"] .menu-tl__ikona i:first-child { transform: translateY(5px) rotate(45deg); }
.menu-tl[aria-expanded="true"] .menu-tl__ikona i + i { transform: translateY(-1.5px) rotate(-45deg) scaleY(.5); }

@media (max-width: 980px) {
  html.js .menu-tl { display: inline-flex; }
  .hlavicka__in { flex-wrap: wrap; }
  html.js .hlavni-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--gutter) 24px;
    background: var(--l0); border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: var(--stin);
    display: none;
  }
  html.js .hlavni-menu.is-open { display: block; }
  html.js .nav { flex-direction: column; gap: 0; }
  html.js .nav a { min-height: 52px; font-size: var(--step-1); width: 100%; border-bottom: 1px solid var(--line); }
  html.js .nav a::before { display: none; }
  html.js .nav a[aria-current="page"]::after { position: static; margin-left: 10px; }
}

/* --- Úvod (hero): scéna ve 3 vrstvách ---------------------------------------- */
.uvod { padding-block: clamp(16px, 3vw, 48px) 0; }
.uvod__mrizka {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px); align-items: center;
}
.uvod__text { min-width: 0; padding-block: clamp(8px, 3vw, 40px); }
.uvod__stitek { margin-bottom: var(--space-5); }
.uvod h1 { font-size: var(--step-4); line-height: 1.04; max-width: 13.5em; margin-bottom: var(--space-5); }
.uvod .lead { color: var(--fg); }

.scena { position: relative; height: clamp(440px, 74vh, 720px); min-width: 0; }
.scena__panel {
  position: absolute; inset: 9% 0 0 0; overflow: hidden;
  border-radius: var(--r-panel);
  /* CSS záloha WebGL gradientu ze stejných barev, bez url(): platí bez JS, bez WebGL, při reduce a po ztrátě kontextu. */
  background:
    radial-gradient(70% 40% at 30% 6%, rgb(242 245 241 / .95), transparent 70%),
    radial-gradient(80% 50% at 80% 30%, rgb(207 221 211 / .9), transparent 70%),
    linear-gradient(180deg, var(--l1) 0%, var(--l2) 30%, var(--mez-hladina) 52%, var(--l3) 72%, var(--l6) 100%);
}
.scena__panel canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 400ms var(--ease);
}
.scena__panel canvas.is-live { opacity: 1; }
.scena__tma { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 10%, var(--deep) 95%); opacity: calc(var(--hladina, 0) * .55); pointer-events: none; }
.scena__zare {
  position: absolute; left: 50%; top: 52%; width: 120%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(238 155 82 / .62), rgb(238 155 82 / .22) 45%, transparent 72%);
  pointer-events: none;
}
.scena__panel::after {                 /* zrno na scéně */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--zrno); background-size: 200px 200px; opacity: .05; mix-blend-mode: overlay;
}
.scena__postava {
  position: absolute; bottom: 0; left: var(--postava-x, 44%); z-index: 2;
  height: 100%; width: auto; max-width: none; translate: -50% 0;
  filter: drop-shadow(0 30px 40px rgb(14 38 32 / .35));
  pointer-events: none;
}
.scena__postava--sedi { height: 80%; }
.scena__ramecek { position: absolute; right: 14px; top: 14px; width: 118px; aspect-ratio: 4 / 3; padding: 8px; font-size: 12px; z-index: 1; }
.scena__vrstva { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.scena__vrstva > * { pointer-events: auto; }
.scena__karta {
  position: absolute; z-index: 4; width: clamp(176px, 16vw, 236px);
  perspective: 900px;
}
.scena__karta--a { top: 24%; left: 58%; }
.scena__karta--b { bottom: 13%; left: -7%; }
.sklo {
  position: relative; display: block; overflow: hidden;
  padding: 14px 16px 16px; border-radius: var(--r-card);
  background: var(--sklo); color: var(--fg); text-decoration: none;
  -webkit-backdrop-filter: blur(var(--sklo-blur)) saturate(1.15); backdrop-filter: blur(var(--sklo-blur)) saturate(1.15);
  box-shadow: inset 0 0 0 1px var(--sklo-hrana), var(--stin);
  transition: transform 400ms var(--ease);
}
.sklo__stitek { display: block; font-size: var(--step--1); font-weight: var(--w-label); color: var(--green); line-height: 1.35; }
.sklo__titul { display: block; margin-top: 2px; font-size: var(--step-1); font-weight: var(--w-heavy); color: var(--green); line-height: 1.15; letter-spacing: -0.01em; }
.sklo__sipka { display: inline-block; width: 18px; height: 8px; margin-left: 6px; vertical-align: middle; border-top: 1px solid currentColor; border-bottom: 4px solid currentColor; }
a.sklo:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-transparency: reduce) {
  .sklo { background: var(--l0); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) { .sklo { -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid CanvasText; } }

/* Odlesk náklonu: sleduje kurzor, jen na desktopu. */
.odlesk {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(420px 320px at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .25), rgb(255 255 255 / .07) 45%, transparent 72%);
  mix-blend-mode: screen; transition: opacity 400ms var(--ease);
}
.is-naklon .odlesk { opacity: 1; }

/* Ambientní smyčka: záře za postavou dýchá (CSS, hned od načtení), WebGL gradient teče (po načtení a v nečinnosti). */
@media (prefers-reduced-motion: no-preference) {
  html.js .scena__zare { animation: dech 6.5s var(--ease-in-out) infinite; }
  html.js.pohyb-stop .scena__zare, html.js .scena.is-mimo .scena__zare { animation-play-state: paused; }
  /* Choreografie načtení: karty připlavou zespodu (nejsou LCP). */
  .scena__karta .sklo { transition: transform 400ms var(--ease), opacity 900ms var(--ease); }
  html.js:not(.is-nacteno) .scena__karta .sklo { opacity: 0; transform: translateY(28px); }
  html.js.is-nacteno .scena__karta--a .sklo { transition-delay: 380ms, 380ms; }
  html.js.is-nacteno .scena__karta--b .sklo { transition-delay: 520ms, 520ms; }
  .scena__karta .sklo.is-hotovo { transition-delay: 0ms !important; }
}
@keyframes dech {
  0%, 100% { transform: scale(.82); opacity: .7; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* --- Pás slov (hladina) s pauzou -------------------------------------------- */
.pas { position: relative; margin-top: clamp(40px, 6vw, 80px); border-block: 1px solid var(--line); color: var(--green); padding-block: 16px; }
.pas__okno { overflow: hidden; }
.pas__stopa { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.pas__polozka {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.25; letter-spacing: -0.02em; white-space: nowrap;
}
.pas__polozka::after { content: ""; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--accent); }
.pas .l { font-weight: var(--w-light); }
.pas .h { font-weight: var(--w-heavy); }
.pas .pauza { border-radius: 0; align-items: center; color: var(--white); }
@media (max-width: 600px) { .pas__polozka { white-space: normal; text-align: center; } }
@media (prefers-reduced-motion: no-preference) {
  html.js .pas.is-running .pas__okno { mask-image: linear-gradient(90deg, transparent, var(--fg) 80px, var(--fg) calc(100% - 80px), transparent); }
  html.js .pas.is-running .pas__stopa { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: pas 38s linear infinite; }
  html.js .pas.is-running:hover .pas__stopa,
  html.js .pas.is-running:focus-within .pas__stopa,
  html.js.pohyb-stop .pas.is-running .pas__stopa,
  html.js .pas.is-running.is-mimo .pas__stopa { animation-play-state: paused; }
}
@keyframes pas { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Obecné rozvržení sekcí ------------------------------------------------- */
.dvoj { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.dvoj--obr { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hlava { margin-bottom: clamp(32px, 5vw, 64px); }
.hlava p { color: var(--muted); }
.tma .hlava p { color: var(--sage-2); }
.text p { max-width: 34em; }

/* Obraz v panelu s odhalením maskou (odhaleni-obrazu, Shortcut). */
.obraz { margin: 0; position: relative; }
.obraz__ram { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--surface); }
.tma .obraz__ram { background: var(--l3); }
.obraz__ram img { width: 100%; height: 100%; object-fit: cover; }
.obraz--na-vysku .obraz__ram { aspect-ratio: 4 / 5; }
.obraz--3-2 .obraz__ram { aspect-ratio: 3 / 2; }
.obraz figcaption { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  html.js .rez:not(.is-done) .obraz__ram { clip-path: polygon(0 0, 0% 0, -40% 100%, 0 100%); }
  html.js .rez:not(.is-done) .obraz__ram img { transform: scale(1.12); }
  html.js .rez.is-in:not(.is-done) .obraz__ram { clip-path: polygon(0 0, 140% 0, 100% 100%, 0 100%); transition: clip-path 1400ms var(--ease) 250ms; }
  html.js .rez.is-in:not(.is-done) .obraz__ram img { transform: none; transition: transform 1650ms var(--ease) 250ms; }
}

/* Šedý rámeček místo chybějící fotky. */
.ramecek {
  display: grid; place-items: center; text-align: center;
  padding: 16px; border-radius: var(--r-inner);
  background: repeating-linear-gradient(135deg, rgb(78 93 87 / .14) 0 1px, transparent 1px 12px), var(--ram-svetly);
  color: var(--muted); font-size: var(--step--1); font-weight: var(--w-label);
}
.tma .ramecek { background: repeating-linear-gradient(135deg, rgb(255 255 255 / .08) 0 1px, transparent 1px 12px), var(--ram-tmavy); color: var(--surface); }

/* --- Proč --------------------------------------------------------------------- */
.proc .text p:first-of-type::first-letter { font-weight: var(--w-heavy); }
.proc .obraz { max-width: 520px; justify-self: end; width: 100%; }
.citat-latina { font-style: italic; }

/* --- Rozcestník: karty s náklonem a odleskem --------------------------------- */
.karty2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.karta {
  position: relative; perspective: 1000px;
}
.karta__telo {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  padding: 4px; border-radius: var(--r-card);
  background: var(--l0); color: var(--fg);
  box-shadow: var(--stin);
  transition: transform 400ms var(--ease);
}
.tma .karta__telo { background: var(--l3); color: var(--white); box-shadow: inset 0 0 0 1px var(--line-dark); }
.karta__obraz { overflow: hidden; border-radius: var(--r-inner); aspect-ratio: 3 / 2; background: var(--surface); }
.karta__obraz img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.karta__obsah { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2vw, 28px); }
.karta__obsah h3 { font-size: var(--step-2); font-weight: var(--w-light); margin-bottom: var(--space-3); }
.karta__obsah h3 strong { font-weight: var(--w-heavy); }
.karta__obsah p { color: inherit; }
.karta__pata { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.tma .karta__pata { border-top-color: var(--line-dark); }
.karta__hlavni { font-weight: var(--w-heavy); color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.tma .karta__hlavni { color: var(--white); }
.karta__hlavni::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.karta__hlavni:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.karta__hlavni:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 4px; }
.tma .karta__hlavni:focus-visible::after, .tma .karta__hlavni:focus-visible { outline-color: var(--focus-dark); }
.karta__vedlejsi { position: relative; z-index: 2; }
.sipka { display: inline-block; width: 22px; height: 9px; border-top: 1px solid currentColor; border-bottom: 4px solid currentColor; transition: transform var(--dur-base) var(--ease); }
.karta:hover .sipka { transform: translateX(4px); }

/* --- Důkazy (zelená) ---------------------------------------------------------- */
.loga { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 clamp(40px, 6vw, 80px); padding: 0; list-style: none; }
.loga li {
  display: grid; place-items: center; min-height: 72px; padding: 8px; text-align: center;
  border-radius: var(--r-inner); box-shadow: inset 0 0 0 1px rgb(169 191 178 / .45);
  color: var(--sage-2); font-size: var(--step--1); font-weight: var(--w-label);
}
.cisla { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cisla li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 4px 20px; padding-block: clamp(14px, 2vw, 24px); border-top: 1px solid var(--line-dark); }
.cisla li:nth-child(2) { border-top-width: var(--tlusta); border-top-color: rgb(255 255 255 / .16); }
.cislo { font-size: clamp(3rem, 2rem + 4.4vw, 6rem); line-height: .95; letter-spacing: -0.03em; font-weight: var(--w-light); font-variant-numeric: tabular-nums; }
.cislo b { font-weight: var(--w-heavy); }
.cislo__jed { font-size: .42em; font-weight: var(--w-heavy); letter-spacing: -0.01em; margin-left: .12em; }
.cisla p { margin: 0; color: var(--sage-2); }
.l0 .cisla li, .l1 .cisla li, .l2 .cisla li { border-top-color: var(--line); }
.l2 .cisla p, .l1 .cisla p { color: var(--muted); }
.l2 .cislo, .l1 .cislo { color: var(--green); }
/* Počítadlo: konečná hodnota drží šířku (grid stack), číslo se nepohne. */
.num { display: inline-grid; font-variant-numeric: tabular-nums; }
.num > * { grid-area: 1 / 1; }
.num__size { visibility: hidden; }
.num__val { justify-self: end; }

/* --- Krátký příběh: přišpendlený ve 3 krocích (scroll-pribeh) -------------------
   Bez JS a při omezeném pohybu: kroky v řadě, pod nimi tři obrazy v konečném stavu. S pohybem: figura vpravo stojí
   (sticky) a mění se podle kroku na středu okna. */
.pribeh3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.pribeh3__kroky { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.krok { padding-block: clamp(8px, 2vw, 24px); }
.krok__stitek { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.krok__stitek::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sage-2); transition: background-color 500ms var(--ease), box-shadow 500ms var(--ease); }
.krok.is-on .krok__stitek::before { background: var(--accent); box-shadow: none; }
.krok h3 { font-size: var(--step-2); font-weight: var(--w-light); margin-bottom: 8px; }
.krok h3 strong { font-weight: var(--w-heavy); }
.krok p { color: var(--surface); font-size: var(--lead); line-height: 1.4; max-width: 22em; }
.pribeh3__zaver p { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em; font-weight: var(--w-heavy); max-width: 15em; margin-bottom: 8px; }
.pribeh3__scena { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pribeh3__fig { position: relative; margin: 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; background: var(--l3); }
.pribeh3__fig img { width: 100%; height: 100%; object-fit: cover; }
.pribeh3__fig--dnes { background: radial-gradient(60% 45% at 50% 62%, rgb(238 155 82 / .55), transparent 72%), linear-gradient(180deg, var(--mez-tma), var(--l6)); }
.pribeh3__fig--dnes img { position: absolute; left: 0; bottom: 0; height: 88%; object-fit: contain; object-position: 50% 100%; }
.pribeh3__fig figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.pribeh3__fig .cip { background: var(--night); color: var(--white); }
.pribeh3__postup { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .pribeh3.is-live { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 96px); row-gap: 0; }
  html.js .pribeh3.is-live .pribeh3__kroky { display: block; grid-column: 1; grid-row: 1; }
  html.js .pribeh3.is-live .pribeh3__zaver { grid-column: 1; grid-row: 2; padding-top: var(--space-6); }
  html.js .pribeh3.is-live .pribeh3__scena { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 10vh; display: block; height: 80vh; }
  html.js .pribeh3.is-live .pribeh3__fig { position: absolute; inset: 0 0 34px; aspect-ratio: auto; opacity: 0; transform: scale(1.04); transition: opacity 500ms var(--ease), transform 900ms var(--ease); }
  html.js .pribeh3.is-live .pribeh3__fig.is-on { opacity: 1; transform: none; }
  html.js .pribeh3.is-live .krok { min-height: 72vh; display: grid; align-content: center; }
  html.js .pribeh3.is-live .krok:first-child { min-height: 56vh; align-content: start; padding-top: 12vh; }
  html.js .pribeh3.is-live .pribeh3__postup { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }
  .pribeh3__postup::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--sage-2); opacity: .5; }
  .pribeh3__postup i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--k, .3333)); transition: transform 500ms var(--ease); border-radius: 4px; }
}

/* --- Teze (hloubka), světlo pod kurzorem a obří slovo ------------------------- */
.teze { overflow: clip; }
.teze__mrizka { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.teze__bok .obraz { margin-top: var(--space-6); max-width: 360px; }
.teze__seznam { margin: 0; padding: 0; list-style: none; counter-reset: teze; }
.teze__seznam li { position: relative; padding-block: clamp(20px, 3vw, 36px); border-top: 1px solid var(--line-dark); }
.teze__seznam li:first-child { border-top-width: var(--tlusta); border-top-color: rgb(255 255 255 / .14); }
.teze__veta { margin: 0 0 12px; font-size: var(--step-2); line-height: 1.16; letter-spacing: -0.02em; font-weight: var(--w-heavy); max-width: 20em; }
.teze__veta--ceka { font-weight: var(--w-light); color: var(--sage-2); }
.teze__vysv { color: var(--sage-2); margin-bottom: 4px; }
.svetlo { position: absolute; left: 0; top: 0; width: 420px; height: 420px; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgb(238 155 82 / .2), rgb(238 155 82 / .07) 45%, transparent 70%);
  filter: blur(20px); mix-blend-mode: screen; transition: opacity 300ms var(--ease); }
.svetlo.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .svetlo { display: none; } }

.obr-slovo { --tah: 1.5px; position: relative; display: flex; justify-content: center; overflow-x: clip; pointer-events: none; user-select: none; margin-top: clamp(40px, 6vw, 96px); }
.obr-slovo span {
  flex: none; white-space: nowrap; font-size: clamp(5rem, 22vw, 20rem); line-height: .86; font-weight: var(--w-heavy); letter-spacing: -0.03em;
  color: var(--sek); -webkit-text-fill-color: var(--sek); -webkit-text-stroke: calc(var(--tah) * 2) rgb(169 191 178 / .55); paint-order: stroke fill;
  transform: translate3d(var(--posun, 0px), 0, 0);
}
.l2 .obr-slovo span, .l1 .obr-slovo span { -webkit-text-stroke-color: rgb(28 74 61 / .45); }
@media (min-width: 900px) { .obr-slovo { --tah: 2px; } }
@media (forced-colors: active), (prefers-contrast: more) { .obr-slovo { display: none; } }

/* --- Reference ---------------------------------------------------------------- */
.reference__mrizka { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.citace { margin: 0; }
.citace blockquote { margin: 0; }
.citace blockquote p { font-size: var(--step-2); line-height: 1.22; letter-spacing: -0.02em; font-weight: var(--w-light); max-width: 22em; }
.citace blockquote p::before { content: "„"; font-weight: var(--w-heavy); color: var(--accent); margin-right: .04em; }
.citace blockquote p::after { content: "“"; font-weight: var(--w-heavy); color: var(--accent); }
.citace figcaption { display: flex; align-items: center; gap: 16px; margin-top: var(--space-6); }
.citace__foto { flex: none; width: 64px; height: 64px; border-radius: 50%; padding: 6px; font-size: 11px; line-height: 1.2; }
.citace__jmeno { display: block; font-weight: var(--w-heavy); }
.citace__pozice { display: block; color: var(--sage-2); font-size: var(--step--1); }
.dalsi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: var(--space-7); }
.dalsi span.misto { width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); }
.dalsi p { margin: 0 0 0 8px; color: var(--sage-2); font-size: var(--step--1); }
.reference .obraz { max-width: 420px; justify-self: end; width: 100%; }

/* --- Závěr: dno, jediné meruňkové světlo (podpis 2) --------------------------- */
.zaver { overflow: clip; text-align: center; padding-block: clamp(96px, 14vw, 220px); }
/* Kruhy na dně: elipsy světla na podlaze, jen v dolním odsazení sekce, nikdy přes text. Rostou se scrollem. */
.zaver__kruhy { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: calc(var(--section) - 24px); z-index: -1; pointer-events: none; color: var(--sage-2); opacity: .55; transform-origin: 50% 100%; transform: scaleX(var(--kruhy-k, 1)); }
.zaver .zaver__kruhy { height: clamp(72px, 12vw, 180px); }
.zaver__kruhy ellipse { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.zaver__kruhy .tl { stroke-width: 4; opacity: .5; }
@media (forced-colors: active), (prefers-contrast: more) { .zaver__kruhy { display: none; } }
.zaver__veta { margin: 0 auto var(--space-7); max-width: 17em; font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.02em; font-weight: var(--w-heavy); color: var(--white); text-wrap: balance; }
.zaver__akce { position: relative; isolation: isolate; display: inline-grid; place-items: center; }
.zaver__akce::before {                   /* meruňková záře za tlačítkem: roste s hloubkou */
  content: ""; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgb(238 155 82 / .5), rgb(238 155 82 / .14) 50%, transparent 74%);
  transform: scale(calc(.6 + .4 * var(--zare-k, 1))); opacity: calc(.45 + .55 * var(--zare-k, 1));
  pointer-events: none;
}
.zaver .btn--akcent { min-height: 60px; padding: 16px 40px; font-size: var(--step-1); }
.mag { display: inline-block; }
.mag > .btn { translate: var(--mx, 0px) var(--my, 0px); transition: translate 200ms var(--ease), scale var(--dur-fast) var(--ease-ui), font-weight var(--dur-fast) var(--ease-ui); }
.zaver__kontakt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: var(--space-7); color: var(--surface); }
.zaver__kontakt p { margin: 0; }
.zaver__kontakt b { font-weight: var(--w-heavy); color: var(--white); }

/* --- Patička ------------------------------------------------------------------- */
.paticka { background: var(--l9); color: var(--surface); padding-block: clamp(48px, 6vw, 80px) 96px; font-size: var(--step--1); }
.paticka a { color: var(--white); }
.paticka .tlumene { color: var(--sage-2); }
.paticka :focus-visible { outline-color: var(--focus-dark); }
.paticka__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.paticka__mono { width: 56px; height: 56px; --mn-plocha: var(--green); --mn-pismo: var(--white); --mn-tecka: var(--accent); }
.paticka__seznam { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 4px 32px; margin: 0; padding: 0; list-style: none; }
.paticka__seznam li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: 44px; }
.paticka__seznam .odkaz { min-height: 44px; }
.paticka__copy { grid-column: 1 / -1; max-width: none; margin: 0; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--sage-2); }

/* --- Boční osa hloubky ---------------------------------------------------------- */
.osa { display: none; }
@media (min-width: 1280px) {
  html.hloubka-ziva .osa {
    display: block; position: fixed; right: 20px; top: 22vh; bottom: 22vh; width: 28px; z-index: 30; pointer-events: none;
    color: var(--green); transition: color var(--dur-fast) var(--ease-ui);
  }
  .osa.na-tme { color: var(--sage-2); }
  .osa__linka { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .45; }
  .osa__bezec { position: absolute; left: 0; right: 0; top: 0; transform: translateY(calc(var(--hloubka) * (56vh - 10px))); }
  .osa__tecka { display: block; width: 10px; height: 10px; margin: 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
  .osa__nazev {
    position: absolute; right: 22px; top: -6px; writing-mode: vertical-rl; transform: rotate(180deg);
    padding: 10px 4px; border-radius: var(--r-pill);
    background: var(--l0); color: var(--green);
    font-size: 12px; font-weight: var(--w-label); letter-spacing: .04em; white-space: nowrap; line-height: 1;
    transition: background-color var(--dur-fast) var(--ease-ui), color var(--dur-fast) var(--ease-ui);
  }
  .osa.na-tme .osa__nazev { background: var(--night); color: var(--sage-2); }
  .osa__vrch, .osa__dno { position: absolute; left: 50%; width: 9px; height: 1px; translate: -50% 0; background: currentColor; }
  .osa__vrch { top: 0; } .osa__dno { bottom: 0; height: 4px; }
}

/* --- Moderátor ------------------------------------------------------------------ */
.formaty { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.formaty > .karta { grid-column: span 2; }
.formaty > .karta--siroka { grid-column: span 3; }
.formaty .karta__obsah h3 { font-size: var(--step-1); font-weight: var(--w-heavy); }
.karta--text .karta__telo { background: linear-gradient(160deg, var(--l0), var(--mez-svetla)); }
.karta--text .karta__obsah { padding-top: clamp(24px, 3vw, 36px); }
.karta--text .karta__znak { width: 40px; height: 8px; margin-bottom: var(--space-5); border-top: 1px solid var(--green); border-bottom: 4px solid var(--green); }
.temata { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.temata__nadpis { margin: var(--space-7) 0 0; }

.odlisnost__veta { margin: var(--space-7) 0 0; font-size: var(--step-2); line-height: 1.18; letter-spacing: -0.02em; font-weight: var(--w-light); color: var(--green); max-width: 22em; }
.odlisnost__veta strong { display: block; }

.kroky4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; counter-reset: k; }
.kroky4 li { position: relative; padding-top: 28px; }
.kroky4 li::before { content: ""; position: absolute; left: 0; right: -28px; top: 4px; height: 1px; background: var(--line-dark); }
.kroky4 li:last-child::before { right: 0; }
.kroky4 li::after { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.kroky4 li:first-child::after { background: var(--accent); }
.kroky4 h3 { font-size: var(--step-1); margin-bottom: 8px; }
.kroky4 p { color: var(--sage-2); margin: 0; }
.postup__obraz { margin-top: clamp(40px, 6vw, 72px); }
.postup__obraz .obraz__ram { aspect-ratio: 21 / 8; }

.akce-mrizka { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.akce-karty { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.akce-karta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 8px; border-radius: var(--r-card); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line-dark); }
.akce-karta .ramecek { aspect-ratio: 1; min-height: 0; }
.akce-karta h3 { font-size: var(--step-0); margin: 8px 0 4px; }
.akce-karta p { margin: 0 0 4px; color: var(--sage-2); font-size: var(--step--1); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; }
.video .ramecek { position: absolute; inset: 0; border-radius: 0; place-items: end start; padding: 20px 24px; font-size: var(--step-0); }
.video__hrat { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--white); color: var(--green); display: grid; place-items: center; cursor: not-allowed; opacity: .8; }
.video__hrat::before { content: ""; border-style: solid; border-color: transparent transparent transparent currentColor; border-width: 11px 0 11px 18px; margin-left: 4px; }
.video__pozn { position: absolute; left: 16px; bottom: 12px; color: var(--surface); }

.frontman__mrizka { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.stanek { width: 100%; height: auto; color: var(--sage-2); }
.stanek .tenka { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.stanek .tlusta { fill: none; stroke: currentColor; stroke-width: 8; vector-effect: non-scaling-stroke; }
.stanek .plocha { fill: rgb(255 255 255 / .05); }
.stanek .tecka { fill: var(--accent); }

.ceny { overflow: clip; }
.balicky { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: stretch; margin: 0; padding: 0; list-style: none; }
.balicek { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-card); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line-dark); }
.balicek--hlavni { background: var(--l3); box-shadow: inset 0 0 0 1px rgb(238 155 82 / .55), 0 30px 60px -24px rgb(238 155 82 / .35); }
.balicek h3 { font-size: var(--step-1); margin-bottom: var(--space-4); }
.balicek__cena { margin: 0 0 var(--space-5); font-size: var(--step-2); line-height: 1.1; font-weight: var(--w-heavy); letter-spacing: -0.02em; }
.balicek__cena small { display: block; margin-top: 4px; font-size: var(--step--1); font-weight: var(--w-label); color: var(--sage-2); letter-spacing: 0; }
.balicek ul { margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.balicek li { display: flex; gap: 10px; padding-block: 8px; border-top: 1px solid var(--line-dark); color: var(--surface); }
.balicek li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--sage-2); }
.balicek .btn { margin-top: auto; }

.otazky__mrizka { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.otazky__postava { position: relative; margin: var(--space-6) 0 0; max-width: 340px; aspect-ratio: 1000 / 1150; border-radius: var(--r-panel); overflow: hidden;
  background: radial-gradient(60% 45% at 50% 60%, rgb(238 155 82 / .4), transparent 72%), linear-gradient(180deg, var(--l4), var(--l8)); }
.otazky__postava img { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: 96%; height: auto; }
.otazka { border-top: 1px solid var(--line-dark); }
.otazka:last-child { border-bottom: 1px solid var(--line-dark); }
.otazka summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none;
  font-size: var(--step-1); font-weight: var(--w-label); line-height: 1.3; letter-spacing: -0.01em;
}
.otazka summary::-webkit-details-marker { display: none; }
.otazka summary::after { content: ""; flex: none; width: 18px; height: 18px;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 18px 1px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 4px 18px no-repeat;
  transition: transform var(--dur-base) var(--ease-ui); }
.otazka[open] summary::after { transform: rotate(90deg); background: linear-gradient(currentColor, currentColor) 50% 50% / 18px 1px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 4px 4px no-repeat; }
.otazka[open] summary { font-weight: var(--w-heavy); }
.otazka__odp { padding: 0 0 20px; color: var(--surface); max-width: 36em; }
.otazka__odp p { margin: 0; }

.ebook__mrizka { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.kniha { position: relative; margin: 0 auto; width: min(100%, 300px); aspect-ratio: 3 / 4; perspective: 1200px; }
.kniha__obalka {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px;
  border-radius: 6px 16px 16px 6px;
  background: radial-gradient(70% 50% at 70% 80%, rgb(238 155 82 / .5), transparent 70%), linear-gradient(165deg, var(--l1) 0%, var(--l2) 30%, var(--l3) 70%, var(--l8) 100%);
  box-shadow: inset 6px 0 0 rgb(14 38 32 / .25), 0 40px 60px -24px rgb(0 0 0 / .55);
  transform: rotateY(-14deg) rotateX(4deg); transform-origin: 0 50%;
  color: var(--green);
}
.kniha__obalka b { font-size: var(--step-1); line-height: 1.15; font-weight: var(--w-heavy); max-width: 8em; }
.kniha__obalka span { color: var(--white); font-size: var(--step--1); font-weight: var(--w-label); }
.kniha__obalka span b { font-size: inherit; }
.ebook__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-top: var(--space-5); }
.ebook__form .pole { flex: 1 1 260px; margin: 0; }

/* Formulář */
.kontakt__mrizka { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.kontakt__primo { margin-top: var(--space-6); display: grid; gap: 4px; }
.kontakt__primo p { margin: 0; }
.kontakt__primo b { color: var(--white); }
.formular { position: relative; padding: clamp(20px, 3vw, 40px); border-radius: var(--r-panel); background: var(--l6); box-shadow: inset 0 0 0 1px var(--line-dark); }
.formular__mrizka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.pole { margin-bottom: 20px; }
.pole--cela { grid-column: 1 / -1; }
.pole label, .pole .pole__label { display: block; margin-bottom: 6px; font-size: var(--step--1); font-weight: var(--w-label); color: var(--surface); }
.pole .nepovinne { color: var(--sage-2); font-weight: var(--w-text); }
.pole input, .pole select, .pole textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 0; border-radius: var(--r-btn); background: var(--l8); color: var(--white);
  box-shadow: inset 0 0 0 1px rgb(169 191 178 / .55);
  font: inherit; font-size: max(16px, var(--step-0)); line-height: 1.4;
  transition: box-shadow var(--dur-fast) var(--ease-ui);
}
.pole select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sage-2) 50%), linear-gradient(135deg, var(--sage-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pole textarea { min-height: 140px; resize: vertical; }
.pole input:hover, .pole select:hover, .pole textarea:hover { box-shadow: inset 0 0 0 1px var(--surface); }
.pole input:focus-visible, .pole select:focus-visible, .pole textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pole [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.pole__chyba { display: flex; gap: 8px; margin: 8px 0 0; color: var(--accent); font-size: var(--step--1); font-weight: var(--w-label); }
.pole__chyba[hidden] { display: none; }
.pole__chyba::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: currentColor; }
.souhrn { margin-bottom: 24px; padding: 16px 20px; border-radius: var(--r-inner); background: rgb(238 155 82 / .1); box-shadow: inset 0 0 0 1px var(--accent); }
.souhrn[hidden] { display: none; }
.souhrn h3 { font-size: var(--step-0); color: var(--white); margin-bottom: 8px; }
.souhrn ul { margin: 0; padding-left: 20px; }
.souhrn a { color: var(--accent); font-weight: var(--w-label); }
.formular__pata { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.formular__pata p { margin: 0; color: var(--sage-2); font-size: var(--step--1); }
.btn[aria-busy="true"] .btn__text::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; animation: toc .8s linear infinite; }
@keyframes toc { to { transform: rotate(1turn); } }
.odeslano { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); background: var(--l3); box-shadow: inset 0 0 0 1px rgb(238 155 82 / .55); }
.odeslano[hidden] { display: none; }
.odeslano h3 { font-size: var(--step-2); font-weight: var(--w-light); }
.odeslano h3 strong { font-weight: var(--w-heavy); }

/* --- Můj příběh ---------------------------------------------------------------- */
.osa-pribehu { padding: 0; }
.udalost { position: relative; isolation: isolate; background: var(--sek); padding-block: clamp(64px, 8vw, 128px); }
.udalost.sev::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; z-index: -1; height: calc(var(--sev) + 1px); background: linear-gradient(180deg, var(--pred), var(--sek)); transform-origin: 50% 0; transform: scaleY(var(--sev-k, 1)); pointer-events: none; }
.udalost.tma { color: var(--white); }
.udalost.tma::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--zrno); background-size: 200px 200px; opacity: .04; }
.udalost__mrizka { position: relative; display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 72px); align-items: start; }
.udalost__osa { position: relative; align-self: stretch; }
.udalost__osa::before { content: ""; position: absolute; left: 50%; top: calc(var(--section) * -1); bottom: calc(var(--section) * -1); width: 1px; background: currentColor; opacity: .35; }
.udalost__osa::after { content: ""; position: absolute; left: 50%; top: 14px; width: 14px; height: 14px; translate: -50% 0; border-radius: 50%; background: var(--sek); box-shadow: inset 0 0 0 4px currentColor; }
.udalost:first-child .udalost__osa::before { top: 14px; }
.udalost__osa { color: var(--green); }
.udalost.tma .udalost__osa { color: var(--sage-2); }
.udalost__rok { display: block; margin-bottom: 8px; font-size: var(--step-3); line-height: 1; font-weight: var(--w-light); letter-spacing: -0.03em; color: var(--green); }
.udalost.tma .udalost__rok { color: var(--white); }
.udalost h3 { font-size: var(--step-3); font-weight: var(--w-light); color: var(--green); line-height: 1.06; letter-spacing: -0.02em; max-width: 14em; margin-bottom: var(--space-4); }
.udalost.tma h3 { color: var(--white); }
.udalost p { max-width: 30em; font-size: var(--lead); line-height: 1.42; }
.udalost.tma p { color: var(--surface); }
.udalost__obrazy { position: relative; padding-bottom: 48px; }
.udalost__obrazy .obraz__ram { aspect-ratio: 3 / 2; }
.udalost__obrazy .ramecek { position: absolute; right: -8px; bottom: 0; width: 42%; aspect-ratio: 4 / 3; box-shadow: var(--stin); border: 4px solid var(--sek); border-radius: var(--r-card); }
.udalost__obrazy--jen .ramecek { position: static; width: 100%; aspect-ratio: 3 / 2; border: 0; box-shadow: none; }
.udalost__pozn { margin-top: 8px; }

.poznatky { padding-block: clamp(64px, 8vw, 128px); }
.poznatky__mrizka { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); }
.poznatky__osa { position: relative; color: var(--sage-2); }
.poznatky__osa::before { content: ""; position: absolute; left: 50%; top: calc(var(--section) * -1); bottom: calc(var(--section) * -1); width: 1px; background: currentColor; opacity: .35; }
.poznatky__osa::after { content: ""; position: absolute; left: 50%; top: 40%; width: 18px; height: 18px; translate: -50% 0; rotate: 45deg; border-radius: 4px; background: var(--accent); }
.poznatky__scena { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.poznatky__scena .obraz { grid-column: 1 / 2; grid-row: 1; }
.poznatky__scena .obraz__ram { aspect-ratio: 4 / 5; }
.poznatky__sklo { grid-column: 1 / 3; grid-row: 1; margin-left: 38%; position: relative; z-index: 2; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-panel); }
.poznatky__sklo h2 { color: var(--green); }
.poznatky__sklo ol { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.poznatky__sklo li { display: flex; gap: 14px; padding-block: 12px; border-top: 1px solid var(--line); color: var(--fg); font-size: var(--step-0); }
.poznatky__sklo li::before { content: ""; flex: none; width: 14px; height: 6px; margin-top: .62em; border-top: 1px solid var(--green); border-bottom: 3px solid var(--green); }

.dnes__mrizka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.dnes__blok h3 { font-size: var(--step-2); font-weight: var(--w-light); margin-top: var(--space-5); }
.dnes__blok h3 strong { font-weight: var(--w-heavy); }
.dnes__blok p { color: var(--surface); }
.dnes__firmy { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.dnes__blok .obraz__ram { aspect-ratio: 3 / 2; }
.rok-velky { font-size: var(--step-3); font-weight: var(--w-light); line-height: 1; letter-spacing: -0.03em; }

.kamdal { text-align: left; }
.kamdal__mrizka { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.kamdal .obraz { max-width: 380px; justify-self: end; width: 100%; }

/* --- Responzivita ----------------------------------------------------------------- */
@media (max-width: 1100px) {
  .formaty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formaty > .karta, .formaty > .karta--siroka { grid-column: span 1; }
  .formaty > .karta--siroka:first-child { grid-column: 1 / -1; }
  .kroky4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .kroky4 li::before { right: 0; }
  .loga { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .uvod__mrizka, .dvoj, .dvoj--obr, .teze__mrizka, .reference__mrizka, .pribeh3, .akce-mrizka, .frontman__mrizka,
  .otazky__mrizka, .ebook__mrizka, .kontakt__mrizka, .kamdal__mrizka, .dnes__mrizka { grid-template-columns: minmax(0, 1fr); }
  .scena { height: clamp(420px, 120vw, 560px); }
  .scena__karta--a { left: auto; right: 8px; top: 20%; }
  .scena__karta--b { left: 8px; bottom: 10%; }
  .scena--sedi .scena__postava--sedi { height: 64%; }
  .scena--sedi .scena__karta--a { top: 12%; right: auto; left: 8px; }
  .scena--sedi .scena__karta--b { left: auto; right: 8px; bottom: 6%; }
  .proc .obraz, .reference .obraz, .kamdal .obraz { justify-self: start; }
  .karty2, .balicky { grid-template-columns: minmax(0, 1fr); }
  .teze__bok .obraz { max-width: 100%; }
  .teze__bok .obraz__ram { aspect-ratio: 3 / 2; }
  .udalost__mrizka { grid-template-columns: 28px minmax(0, 1fr); }
  .udalost__obrazy { grid-column: 2; }
  .poznatky__mrizka { grid-template-columns: 28px minmax(0, 1fr); }
  .poznatky__scena { grid-template-columns: minmax(0, 1fr); }
  .poznatky__scena .obraz { grid-column: 1; grid-row: 1; max-width: 70%; }
  .poznatky__sklo { grid-column: 1; grid-row: 2; margin: -96px 0 0; }
  .pribeh3__kroky { grid-template-columns: minmax(0, 1fr); }
  .pribeh3__scena { gap: 8px; }
  .pribeh3__fig { aspect-ratio: 3 / 4; border-radius: var(--r-card); }
  .pribeh3__fig figcaption { display: none; }
  .otazky__postava { max-width: 260px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js .pribeh3.is-live { display: flex; flex-direction: column; gap: 0; }
  html.js .pribeh3.is-live .pribeh3__scena { order: -1; top: 8px; height: 40vh; z-index: 2; }
  html.js .pribeh3.is-live .pribeh3__fig { inset: 0 0 20px; }
  html.js .pribeh3.is-live .pribeh3__fig figcaption { display: block; }
  html.js .pribeh3.is-live .krok { min-height: 50vh; }
  html.js .pribeh3.is-live .krok:first-child { min-height: 44vh; padding-top: 6vh; }
}
@media (max-width: 600px) {
  .formaty { grid-template-columns: minmax(0, 1fr); }
  .formaty > .karta, .formaty > .karta--siroka { grid-column: 1 / -1; }
  .loga { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loga li { min-height: 56px; }
  .formular__mrizka { grid-template-columns: minmax(0, 1fr); }
  .kroky4 { grid-template-columns: minmax(0, 1fr); }
  .akce-karta { grid-template-columns: 84px minmax(0, 1fr); }
  .cisla li { grid-template-columns: minmax(0, 1fr); }
  .scena__karta { width: 164px; }
  .sklo { padding: 10px 12px 12px; }
  .sklo__titul { font-size: 1.0625rem; }
  .paticka__in { grid-template-columns: minmax(0, 1fr); }
  .udalost__obrazy .ramecek { right: 0; width: 52%; }
  .kniha { width: min(100%, 220px); }
}
@media (prefers-reduced-motion: reduce) { .karta__telo, .sklo { transition: none; } }
