/* styl.css — varianta C · Rám pro druhé (design-lab, brand manuál Drahoslav Menčík).
   Sdílí ho všechny tři obrazovky. Části 2–4 jsou ze šablony beze změny. */

/* Písmo Geist (OFL), Fontsource 5.3.0 přes jsDelivr, variabilní osa wght 100–900.
   Sada latin-ext nese č, ď, ě, ň, ř, š, ť, ů, ž. Prohlížeč ji stáhne jen pro tyto znaky. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-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;
}
/* Záložní řezy: Geist proti Arialu, fontTools 4.60.2, 29. 10. 2026, vzorec z README šablony.
   Text sází řez 400, nadpisy řez 600 (instance spočítaná instancerem). */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 103.9%;
  ascent-override: 96.7%;
  descent-override: 28.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Display Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 108.7%;
  ascent-override: 92.5%;
  descent-override: 27.1%;
  line-gap-override: 0%;
}

/* =========================================================================
   1. TOKENY
   Paleta spočítaná hlavním agentem (smery.md, karta C). Kontrasty podle WCAG 2.2.
   ========================================================================= */
:root {
  /* Barva */
  --bg: #ffffff;          /* bílá, podklad */
  --surface: #f3f3f4;     /* světlá plocha; grafit na ní 15,21 : 1 */
  --fg: #1c1d1f;          /* grafit; 16,87 : 1 na bílé */
  --muted: #6b6e73;       /* šedá, popisky a kóty; 5,12 : 1 na bílé, 4,62 : 1 na světlé ploše */
  --line: #e3e4e6;        /* linka, mřížka */
  --accent: #ffd84a;      /* signální žlutá, jen plocha fixy pod textem; nikdy text ani linka */
  --accent-fg: #1c1d1f;   /* grafit na žluté 12,19 : 1 */
  --focus: #1c1d1f;       /* fokus 16,87 : 1 na bílé, 15,21 : 1 na světlé ploše */
  --inverse: #ffffff;     /* text na grafitu */
  --dot: rgba(28, 29, 31, 0.07);  /* rastr teček 1 px po 32 px na světlé ploše */
  /* Jen pro ukázku chyby „Okázalost“ na obrazovce Použití, ve značce se nepoužívá */
  --zakaz-zlata-1: #f3e3a1;
  --zakaz-zlata-2: #c8a24a;
  --zakaz-zlata-3: #8a6a22;
  --zakaz-zlata-4: #6b4f12;

  /* Písmo: jedna rodina, nadpisy 600, text 400, popisky 500 */
  --font-display: "Geist", "Geist Display Fallback", Arial, system-ui, sans-serif;
  --font-body: "Geist", "Geist Fallback", Arial, system-ui, sans-serif;
  --weight-display: 600;
  --leading: 1.6;
  --leading-tight: 1.05;
  --measure: 66ch;

  /* Škála, plynule mezi 360 a 1440 px (hodnoty v px uvádí obrazovka Barvy a písmo) */
  --step--1: clamp(0.75rem, 0.7292rem + 0.0926vw, 0.8125rem);   /* popisek 12 až 13 */
  --step-0: clamp(1.0625rem, 1.0417rem + 0.0926vw, 1.125rem);   /* text 17 až 18 */
  --step-1: clamp(1.3125rem, 1.2083rem + 0.463vw, 1.625rem);    /* H3 21 až 26 */
  --step-2: clamp(1.375rem, 1.2083rem + 0.7407vw, 1.875rem);    /* citace 22 až 30 */
  --step-3: clamp(1.875rem, 1.5833rem + 1.2963vw, 2.75rem);     /* H2 30 až 44 */
  --step-4: clamp(2.125rem, 1.6667rem + 2.037vw, 3.5rem);       /* teze 34 až 56 */
  --step-5: clamp(2.5rem, 1.8333rem + 2.963vw, 4.5rem);         /* H1 40 až 72 */

  /* Prostor a mřížka: 12 sloupců na počítači, 4 na telefonu */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section: clamp(64px, 9vw, 144px);
  --container: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --col-gap: clamp(16px, 1.8vw, 24px);
  --radius: 0px;

  /* Tvar značky: ořezová značka. x = výška verzálky jména. */
  --rameno: 0.6;          /* rameno značky v x */
  --tah: 0.152;           /* tah značky v x = kmen písmene I v řezu 500 (108 z 710) */

  /* Pohyb: jedna křivka pro příchody, kratší pro ovládání */
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
  --reveal-shift: 16px;
}

/* =========================================================================
   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
   Třídu .js přidá skript v <head>. Bez JS se nic neskryje.
   Pojistka: když zaklad.js nenaběhne, obsah se ukáže sám po 2,5 s.
   zaklad.js po startu přidá .js-ok a pojistku vypne.
   ========================================================================= */
.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
   Pod omezeným pohybem zůstane nanejvýš prolnutí. Posun, zvětšení a paralaxa ne.
   ========================================================================= */
@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. KOSTRA OBRAZOVKY · varianta C · Rám pro druhé
   Motiv: ořezová značka. Rohy rámu, karet, odrážek, fokusu a tlačítek.
   Výchozí CSS ukazuje konečný stav. Skryté stavy pohybu platí jen pod html.js
   a v prefers-reduced-motion: no-preference.
   ========================================================================= */

/* 5.1 Základ typografie varianty */
h1 { letter-spacing: -0.03em; }
h2 { line-height: 1.1; letter-spacing: -0.02em; }
h3 { line-height: 1.25; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--accent-fg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.popisek {
  font-size: var(--step--1); font-weight: 500; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.tnum, table, .cislo, dd { font-variant-numeric: tabular-nums; }
.vlevo { text-align: left; }

/* 5.2 Viditelná mřížka: 12 sloupců, linky v ose mezer */
.mrizka { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.mrizka .container {
  height: 100%; display: grid; column-gap: var(--col-gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.mrizka span { border-left: 1px solid var(--line); margin-left: calc(var(--col-gap) / -2); transform-origin: 50% 0; }
.mrizka span:last-child { border-right: 1px solid var(--line); margin-right: calc(var(--col-gap) / -2); }
.mriz {
  display: grid; column-gap: var(--col-gap); row-gap: var(--space-7);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.mriz > * { grid-column: 1 / -1; min-width: 0; }

/* 5.3 Tvar značky: čtyři rohy jako pozadí. --r rameno, --t tah, barva currentColor */
.rohy {
  --r: 12px; --t: 1.5px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / var(--r) var(--t),
    linear-gradient(currentColor 0 0) 0 0 / var(--t) var(--r),
    linear-gradient(currentColor 0 0) 100% 0 / var(--r) var(--t),
    linear-gradient(currentColor 0 0) 100% 0 / var(--t) var(--r),
    linear-gradient(currentColor 0 0) 0 100% / var(--r) var(--t),
    linear-gradient(currentColor 0 0) 0 100% / var(--t) var(--r),
    linear-gradient(currentColor 0 0) 100% 100% / var(--r) var(--t),
    linear-gradient(currentColor 0 0) 100% 100% / var(--t) var(--r);
  background-repeat: no-repeat;
}

/* 5.4 Hlavička manuálu (statická, bez rozostření) */
.site-header { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-6); padding-block: var(--space-4);
}
.logo-odkaz { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); }
.logo { display: block; fill: currentColor; overflow: visible; }
.logo .fixa { fill: var(--accent); }
.logo--hlavicka { height: 30px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-3);
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.nav a::before { content: ""; position: absolute; inset: 6px 0; opacity: 0; }
.nav a[aria-current="page"]::before, .nav a:hover::before { opacity: 1; }
.nav a::before {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 8px 1.5px, linear-gradient(currentColor 0 0) 0 0 / 1.5px 8px,
    linear-gradient(currentColor 0 0) 100% 0 / 8px 1.5px, linear-gradient(currentColor 0 0) 100% 0 / 1.5px 8px,
    linear-gradient(currentColor 0 0) 0 100% / 8px 1.5px, linear-gradient(currentColor 0 0) 0 100% / 1.5px 8px,
    linear-gradient(currentColor 0 0) 100% 100% / 8px 1.5px, linear-gradient(currentColor 0 0) 100% 100% / 1.5px 8px;
  background-repeat: no-repeat;
  transition: opacity var(--dur-fast) var(--ease-ui);
}
.nav a:not([aria-current]):hover::before { opacity: 0.35; }
.hlavicka-meta { margin: 0; font-size: var(--step--1); color: var(--muted); }

/* 5.5 Tlačítko: rohy se při najetí a fokusu přiblíží o 4 px, stisk 0,96 */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--fg); border-radius: var(--radius);
  background: var(--fg); color: var(--inverse);
  font: 500 var(--step--1) / 1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: scale 150ms var(--ease-ui), background-color 150ms var(--ease-ui), color 150ms var(--ease-ui);
}
.btn--obrys { background: transparent; color: var(--fg); }
.btn--obrys:hover { background: var(--surface); }
.btn:active:not([aria-disabled="true"]) { scale: 0.96; }
.btn:focus-visible { transition-duration: 0ms; outline-offset: 6px; }
.btn__rohy { position: absolute; inset: -9px; pointer-events: none; color: var(--fg); }
.btn__rohy i {
  position: absolute; width: 8px; height: 8px;
  background: linear-gradient(currentColor 0 0) var(--p) / 100% 1.5px no-repeat,
              linear-gradient(currentColor 0 0) var(--p) / 1.5px 100% no-repeat;
  transition: transform 240ms var(--ease-out);
}
.btn__rohy i:nth-child(1) { left: 0; top: 0; --p: 0 0; }
.btn__rohy i:nth-child(2) { right: 0; top: 0; --p: 100% 0; }
.btn__rohy i:nth-child(3) { left: 0; bottom: 0; --p: 0 100%; }
.btn__rohy i:nth-child(4) { right: 0; bottom: 0; --p: 100% 100%; }
:is(.btn, .hex):hover .btn__rohy i:nth-child(1), :is(.btn, .hex):focus-visible .btn__rohy i:nth-child(1) { transform: translate(4px, 4px); }
:is(.btn, .hex):hover .btn__rohy i:nth-child(2), :is(.btn, .hex):focus-visible .btn__rohy i:nth-child(2) { transform: translate(-4px, 4px); }
:is(.btn, .hex):hover .btn__rohy i:nth-child(3), :is(.btn, .hex):focus-visible .btn__rohy i:nth-child(3) { transform: translate(4px, -4px); }
:is(.btn, .hex):hover .btn__rohy i:nth-child(4), :is(.btn, .hex):focus-visible .btn__rohy i:nth-child(4) { transform: translate(-4px, -4px); }
.btn[aria-pressed="true"] { background: var(--fg); color: var(--inverse); }
.btn--maly { min-height: 44px; padding: 8px 14px; }
.btn svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.btn .ikona-hrat { display: none; }
.btn[aria-pressed="true"] .ikona-hrat { display: block; }
.btn[aria-pressed="true"] .ikona-pauza { display: none; }

/* 5.6 Odkaz s linkou, která vyroste zleva */
.odkaz { position: relative; text-decoration: none; padding-bottom: 2px; }
.odkaz::before, .odkaz::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.odkaz::before { opacity: 0.3; }
.odkaz::after { transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.odkaz:hover::after, .odkaz:focus-visible::after { transform: scaleX(1); }

/* 5.7 Počítadlo: konečná hodnota drží šířku, číslo je zarovnané doprava */
.cislo { white-space: nowrap; }
.cislo.is-ready { display: inline-grid; }
.cislo.is-ready > * { grid-area: 1 / 1; }
.cislo__miz { visibility: hidden; }
.cislo__val { justify-self: end; }

/* 5.8 Úvod (hero): text, portrét v rámu, razítko listu */
.uvod { position: relative; padding-block: var(--space-6) var(--section); }
.uvod__mriz { align-items: start; row-gap: var(--space-6); }
.uvod__text { padding-top: var(--space-5); }
.uvod__h1 { margin-top: var(--space-4); margin-bottom: var(--space-5); max-width: 11em; }
.uvod__h1 .w { display: inline-block; }
.uvod__perex { font-size: var(--step-1); line-height: 1.35; letter-spacing: -0.01em; max-width: 22em; }
.uvod__koncept { color: var(--muted); max-width: 30em; margin-top: var(--space-6); }
.uvod__portret { margin: 0; }
.portret {
  position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 2 / 3;
  background: var(--surface);
}
.portret > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.uvod__portret figcaption { margin-top: var(--space-3); text-align: center; }

.ram-foto {
  --x: clamp(9px, 2.6vw, 12px);
  position: absolute; inset: 12% 10% 3.5% 12%; pointer-events: none; color: var(--fg);
}
.roh {
  --t: calc(var(--x) * var(--tah));
  position: absolute; width: calc(var(--x) * var(--rameno)); height: calc(var(--x) * var(--rameno));
  background: linear-gradient(currentColor 0 0) var(--p) / 100% var(--t) no-repeat,
              linear-gradient(currentColor 0 0) var(--p) / var(--t) 100% no-repeat;
}
.roh--tl { left: 0; top: 0; --p: 0 0; transform-origin: 0 0; }
.roh--tr { right: 0; top: 0; --p: 100% 0; transform-origin: 100% 0; }
.roh--bl { left: 0; bottom: 0; --p: 0 100%; transform-origin: 0 100%; }
.roh--br { right: 0; bottom: 0; --p: 100% 100%; transform-origin: 100% 100%; }
.ram-foto__jmeno { position: absolute; left: 0; top: 0; width: calc(var(--x) * 18.994); height: calc(var(--x) * 3); overflow: visible; }
.ram-foto__smycka { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ram-foto__smycka rect { fill: none; stroke: currentColor; }
.smycka-zaklad { stroke-width: 1px; stroke-opacity: 0.3; stroke-dasharray: 2 6; }
.smycka-obeh { stroke-width: 1.5px; stroke-dasharray: 6 94; }

.razitko { border: 1px solid var(--fg); background: var(--bg); }
.razitko__hlava { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--fg); }
.razitko__hlava p { margin: 0; }
.razitko dl { margin: 0; }
.razitko dl > div { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); padding: 10px var(--space-4); border-bottom: 1px solid var(--line); }
.razitko dt { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); align-self: center; }
.razitko dd { margin: 0; font-weight: 500; text-align: right; }
.razitko__pata { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); }
.razitko__pata p { margin: 0; font-size: var(--step--1); color: var(--muted); }

/* 5.9 Sekce listu: hlava vlevo (4 sloupce), tělo vpravo (8 sloupců) */
.sekce { position: relative; padding-block: var(--section); border-top: 1px solid var(--line); }
.sekce__hlava h2 { margin-bottom: var(--space-5); }
.sekce__hlava p { color: var(--fg); }
.sekce__hlava .popisek { margin-bottom: var(--space-3); }
.sekce--plocha { background: var(--surface); }
.sekce--tma { background: var(--fg); color: var(--inverse); }

/* 5.10 Specifikace: pečlivě sázený seznam (archetyp Katalog) */
.spec { margin: 0; border-top: 1px solid var(--fg); }
.spec > div {
  display: grid; grid-template-columns: minmax(9rem, 3fr) 9fr; gap: var(--space-2) var(--col-gap);
  padding-block: var(--space-4); border-bottom: 1px solid var(--line);
}
.spec dt { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.3em; }
.spec dd { margin: 0; }
.spec dd strong { font-weight: 600; }

/* 5.11 Fixa: žlutá plocha pod textem. Scroll ji natáhne podle --p (0–1). */
.fixa-text {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / calc(var(--p, 1) * 100%) 0.52em;
  box-decoration-break: slice; -webkit-box-decoration-break: slice;
}
.teze {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: 1.12;
  letter-spacing: -0.025em; max-width: 14em; text-wrap: balance; margin: 0;
}
.teze-blok .popisek { margin-top: var(--space-5); }

/* 5.12 Obraz v rámu: rohy kolem fotky, popisek pod ní */
.obraz { margin: 0; }
.obraz__ram { position: relative; padding: 10px; color: var(--fg); }
.obraz__ram::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.obraz__ram::before {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 14px 1.5px, linear-gradient(currentColor 0 0) 0 0 / 1.5px 14px,
    linear-gradient(currentColor 0 0) 100% 0 / 14px 1.5px, linear-gradient(currentColor 0 0) 100% 0 / 1.5px 14px,
    linear-gradient(currentColor 0 0) 0 100% / 14px 1.5px, linear-gradient(currentColor 0 0) 0 100% / 1.5px 14px,
    linear-gradient(currentColor 0 0) 100% 100% / 14px 1.5px, linear-gradient(currentColor 0 0) 100% 100% / 1.5px 14px;
  background-repeat: no-repeat;
}
.obraz__ram img { width: 100%; height: auto; background: var(--surface); }
.obraz figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); line-height: 1.5; max-width: 52ch; }
.obraz figcaption strong { color: var(--fg); font-weight: 600; }

/* 5.13 Výkres: konstrukce loga s kótami na rastru teček */
.vykres {
  position: relative; background-color: var(--bg); border: 1px solid var(--line);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 32px 32px; background-position: 15px 15px;
}
.vykres__okno { overflow-x: auto; overscroll-behavior-x: contain; }
.vykres__okno:focus-visible { outline-offset: -4px; }
.vykres svg { display: block; width: 100%; height: auto; min-width: 600px; }
.vykres__pata { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--bg); }
.vykres__pata p { margin: 0; }
.v-jmeno, .v-rohy { fill: var(--fg); }
.v-sit { stroke: var(--line); stroke-width: 2.5; fill: none; }
.v-vodítko { stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 12 12; fill: none; }
.v-zona { fill: url(#srafa); }
.kota path { fill: none; stroke: var(--muted); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--k, 1)); }
.kota .kota__pomoc { stroke-dasharray: none; stroke-opacity: 0.55; }
.kota__stitek { opacity: calc(0.15 + var(--k, 1) * 0.85); }
.kota__stitek rect { fill: var(--bg); stroke: var(--fg); stroke-width: 3; }
.kota__stitek text { font: 600 46px var(--font-body); fill: var(--fg); text-anchor: middle; dominant-baseline: central; }
.v-text { font: 500 40px var(--font-body); fill: var(--muted); letter-spacing: 0.06em; }

/* 5.14 Legenda výkresu */
.legenda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); margin: var(--space-5) 0 0; }
.legenda dl { margin: 0; }
.legenda dl > div { display: grid; grid-template-columns: 2rem 1fr auto; align-items: baseline; gap: var(--space-3); padding-block: 10px; border-bottom: 1px solid var(--line); }
.legenda dt { font-weight: 500; }
.legenda dd { margin: 0; text-align: right; font-weight: 500; }
.znacka {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--fg);
  font-size: var(--step--1); font-weight: 600; line-height: 1;
}

/* 5.15 Verze loga: dlaždice */
.verze { display: grid; gap: var(--col-gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.verze__boky { grid-column: 1 / -1; display: grid; gap: var(--col-gap); }
.dlazdice { grid-column: span 12; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); }
.dlazdice__plocha { position: relative; flex: 1; display: grid; place-items: center; min-height: 200px; padding: clamp(24px, 4vw, 56px); }
.dlazdice__plocha--tma { background: var(--fg); color: var(--inverse); }
.dlazdice__plocha--plocha { background: var(--surface); }
.dlazdice__plocha .logo { width: 100%; max-width: 420px; height: auto; }
.dlazdice__plocha .logo--monogram { width: 120px; }
.dlazdice__plocha .logo--ram { max-width: 720px; }
.dlazdice__host { position: absolute; left: 50%; top: 52%; width: 70%; translate: -50% -50%; margin: 0; text-align: center; }
.dlazdice figcaption { padding: var(--space-4); border-top: 1px solid var(--line); display: grid; gap: var(--space-2); }
.dlazdice h3 { margin: 0; font-size: var(--step-1); }
.dlazdice figcaption p { margin: 0; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.dlazdice__akce { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-2); }

/* 5.16 Kopírování HEX: stavy klid, zápis, úspěch, chyba */
.hex {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: var(--radius);
  font: 500 var(--step-0) / 1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  cursor: copy; touch-action: manipulation; transition: scale 150ms var(--ease-ui), border-color 150ms var(--ease-ui);
}
.hex:hover { border-color: var(--fg); }
.hex:active { scale: 0.96; }
.hex:focus-visible { transition-duration: 0ms; outline-offset: 4px; }
.hex__stav { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hex[data-stav="ok"] { border-color: var(--fg); }
.hex[data-stav="ok"] .hex__stav { color: var(--fg); background: var(--accent); padding: 2px 4px; }
.hex[data-stav="chyba"] { border-color: var(--fg); border-style: dashed; }
.hex[data-stav="chyba"] .hex__stav { color: var(--fg); }
.hex[aria-busy="true"] { cursor: progress; }
.hexy { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hlaseni { min-height: 1.5em; margin: var(--space-3) 0 0; font-size: var(--step--1); color: var(--fg); }

/* 5.17 Ochranná zóna, minimální velikost, test ve skutečné velikosti */
.tabulka { width: 100%; border-collapse: collapse; }
.tabulka caption { text-align: left; margin-bottom: var(--space-3); }
.tabulka th, .tabulka td { padding: 12px 12px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabulka thead th { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--fg); }
.tabulka tbody th { font-weight: 600; }
.tabulka-obal { overflow-x: auto; }
.test { border: 1px solid var(--line); background: var(--bg); }
.test__radek { display: grid; grid-template-columns: 7rem 1fr; align-items: center; gap: var(--space-4); padding: var(--space-4); border-bottom: 1px solid var(--line); }
.test__radek:last-child { border-bottom: 0; }
.test__radek p { margin: 0; font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.test__radek p strong { display: block; color: var(--fg); font-weight: 600; font-size: var(--step-0); }
.test__ukazka { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); min-height: 48px; }
.test__ukazka .logo { flex: none; }
.h32 { height: 32px; width: auto; }
.h24 { height: 24px; width: auto; }
.h18 { height: 18px; width: auto; }
.h48 { height: 48px; width: 48px; }
.h16 { height: 16px; width: 16px; }

/* 5.18 Plakát */
.plakat {
  --x: clamp(7px, 2.5cqi, 12px);
  container-type: inline-size; position: relative; aspect-ratio: 1 / 1.414; background: var(--bg);
  border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line);
}
.plakat__ram { position: absolute; inset: 5.5%; color: var(--fg); }
.plakat__jmeno { position: absolute; left: 0; top: 0; width: calc(var(--x) * 18.994); height: calc(var(--x) * 3); }
.plakat__teze {
  position: absolute; left: calc(var(--x) * 1); right: 18%; top: calc(var(--x) * 5);
  font: 600 clamp(18px, 7.4cqi, 40px) / 1.08 var(--font-display); letter-spacing: -0.025em; margin: 0;
}
.plakat__foto { position: absolute; right: calc(var(--x) * 1); bottom: calc(var(--x) * 1); width: 52%; aspect-ratio: 2 / 3; }
.plakat__foto img { width: 100%; height: 100%; object-fit: cover; }
.plakat__info { position: absolute; left: calc(var(--x) * 1); bottom: calc(var(--x) * 1); margin: 0; font-size: clamp(10px, 2.6cqi, 14px); line-height: 1.5; font-weight: 500; }

/* 5.19 Pás se slovy značky: jede dokola, má pauzu */
.pas { border-block: 1px solid var(--fg); background: var(--bg); }
.pas__in { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-4); }
.pas__okno { flex: 1; min-width: 0; overflow: hidden; }
.pas__stopa { display: flex; flex-wrap: wrap; justify-content: flex-start; margin: 0; padding: 0; list-style: none; row-gap: var(--space-2); }
.pas__polozka {
  position: relative; display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font: 400 var(--step-3) / 1.1 var(--font-display); letter-spacing: -0.02em;
}
.pas__polozka::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: linear-gradient(var(--muted) 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(var(--muted) 0 0) 0 0 / 2px 100% no-repeat;
}

/* 5.20 Patička */
.site-footer { padding-block: var(--space-8) var(--space-7); border-top: 1px solid var(--fg); background: var(--bg); color: var(--fg); font-size: var(--step--1); }
.paticka__mriz { row-gap: var(--space-5); align-items: start; }
.paticka__mriz p { margin: 0; color: var(--muted); line-height: 1.6; }
.paticka__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none; }
.paticka__nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* 5.21 Barvy: poměr ploch a karty barev */
.pomer { margin: 0; }
.pomer__pruh { display: flex; height: clamp(72px, 10vw, 120px); border: 1px solid var(--fg); }
.pomer__pruh span { flex: var(--w) 1 0; min-width: 3px; }
.pomer__pruh span + span { border-left: 1px solid var(--fg); }
.pomer__legenda { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--col-gap); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.pomer__legenda li { border-top: 1px solid var(--line); padding-top: var(--space-2); font-size: var(--step--1); color: var(--muted); }
.pomer__legenda strong { display: block; color: var(--fg); font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.c-bila { background: var(--bg); }
.c-grafit { background: var(--fg); }
.c-zluta { background: var(--accent); }
.c-seda { background: var(--muted); }
.c-linka { background: var(--line); }
.c-plocha { background: var(--surface); }

.vzorky { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.vzorek { grid-column: span 4; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); }
.vzorek__plocha { height: clamp(120px, 14vw, 200px); border-bottom: 1px solid var(--line); position: relative; }
.vzorek__plocha.c-bila::after { content: ""; position: absolute; inset: 12px; pointer-events: none; color: var(--line); }
.vzorek__telo { padding: var(--space-4); display: grid; gap: var(--space-3); }
.vzorek h3 { margin: 0; }
.vzorek__role { margin: 0; font-size: var(--step--1); color: var(--muted); }
.vzorek dl { margin: 0; }
.vzorek dl > div { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: var(--space-3); padding-block: 6px; border-bottom: 1px solid var(--line); }
.vzorek dt { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.vzorek dd { margin: 0; }
.vzorek__proc { margin: 0; font-size: var(--step--1); line-height: 1.55; }
.dvojice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
.dvojice li { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.dvojice__vzor { display: grid; place-items: center; width: 64px; height: 64px; font: 600 26px / 1 var(--font-display); border: 1px solid var(--line); }
.dvojice__vzor--zakaz { background: linear-gradient(90deg, var(--bg) 50%, var(--accent) 50%); }
.dvojice p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.dvojice p strong { display: block; color: var(--fg); font-size: var(--step-0); font-weight: 600; }

/* 5.22 Písmo: vzorník a hierarchie */
.vzornik { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: end; }
.vzornik__aa { grid-column: span 5; margin: 0; font: 600 clamp(120px, 20vw, 280px) / 0.8 var(--font-display); letter-spacing: -0.05em; }
.vzornik__znaky { grid-column: span 7; }
.vzornik__znaky p { margin: 0 0 var(--space-3); font-size: var(--step-2); line-height: 1.3; letter-spacing: 0.02em; max-width: none; }
.rezy { display: grid; gap: 0; margin: var(--space-5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fg); }
.rezy li { display: grid; grid-template-columns: 5rem 1fr; gap: var(--space-4); align-items: baseline; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
.rezy li span:first-child { font-size: var(--step--1); color: var(--muted); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.hierarchie { border-top: 1px solid var(--fg); }
.hierarchie__radek { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3) var(--col-gap); align-items: center; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.hierarchie__radek dl { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.hierarchie__radek dl > div { display: grid; gap: 2px; }
.hierarchie__radek dt { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hierarchie__radek dd { margin: 0; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.uk { margin: 0; max-width: 24em; }
.uk--h1 { font: 600 var(--step-5) / 1.05 var(--font-display); letter-spacing: -0.03em; }
.uk--h2 { font: 600 var(--step-3) / 1.1 var(--font-display); letter-spacing: -0.02em; }
.uk--h3 { font: 600 var(--step-1) / 1.25 var(--font-display); letter-spacing: -0.01em; }
.uk--text { font: 400 var(--step-0) / 1.6 var(--font-body); }
.uk--popisek { font: 500 var(--step--1) / 1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.uk--citace { font: 400 var(--step-2) / 1.35 var(--font-body); letter-spacing: -0.01em; }

/* 5.23 Drobné prvky: odrážky, číslovaný seznam, citace */
.odrazky { margin: 0; padding: 0; list-style: none; }
.odrazky li { position: relative; padding-left: 28px; margin-bottom: var(--space-3); }
.odrazky li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px;
  background: linear-gradient(var(--fg) 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(var(--fg) 0 0) 0 0 / 2px 100% no-repeat;
}
.cisla { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.cisla li { counter-increment: c; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); padding-block: var(--space-3); border-top: 1px solid var(--line); }
.cisla li:last-child { border-bottom: 1px solid var(--line); }
.cisla li::before { content: counter(c) "."; font-weight: 600; font-variant-numeric: tabular-nums; }
.citace { position: relative; margin: 0; padding: var(--space-6) var(--space-6) var(--space-5); color: var(--fg); }
.citace::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 24px 2px, linear-gradient(currentColor 0 0) 0 0 / 2px 24px,
    linear-gradient(currentColor 0 0) 100% 100% / 24px 2px, linear-gradient(currentColor 0 0) 100% 100% / 2px 24px;
  background-repeat: no-repeat;
}
.citace__text { font: 400 var(--step-2) / 1.35 var(--font-body); letter-spacing: -0.01em; margin-bottom: var(--space-4); }
.citace footer { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prvky { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); }
.prvek { grid-column: span 6; }
.prvek h3 { margin-bottom: var(--space-4); }
.prvek__proc { margin-top: var(--space-4); font-size: var(--step--1); color: var(--muted); }

/* 5.24 Použití: fotka, ořezy, obrazový svět, makety */
.orez { position: relative; }
.orez img { width: 100%; height: auto; }
.orez__ramy { position: absolute; inset: 0; pointer-events: none; }
.orez__ram { position: absolute; color: var(--fg); }
.orez__ram span { position: absolute; left: 0; top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg); color: var(--fg); border: 1px solid var(--fg); padding: 1px 5px; white-space: nowrap; translate: 8px 0; }
.pravidla { margin: 0; border-top: 1px solid var(--fg); }
.pravidla > div { display: grid; grid-template-columns: minmax(7rem, 3fr) 9fr; gap: var(--space-2) var(--col-gap); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.pravidla dt { font-weight: 600; }
.pravidla dd { margin: 0; }
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: start; }
.svet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: start; }

.maketa { margin: 0; }
.maketa__okno { border: 1px solid var(--fg); background: var(--bg); overflow: hidden; }
.maketa figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); max-width: 60ch; line-height: 1.5; }
.maketa figcaption strong { color: var(--fg); font-weight: 600; }
.prohlizec { display: flex; align-items: center; gap: var(--space-3); padding: 8px 12px; border-bottom: 1px solid var(--fg); background: var(--surface); font-size: 12px; }
.prohlizec i { width: 9px; height: 9px; border: 1px solid var(--fg); flex: none; }
.prohlizec span { flex: 1; text-align: center; color: var(--muted); }
.web { --x: 9px; }
.web__lista { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.web__lista .logo { height: 27px; width: auto; }
.web__menu { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 500; }
.web__menu span:first-child { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
.web__hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 40px); padding: clamp(20px, 4vw, 56px) clamp(16px, 3vw, 32px); align-items: center; }
.web__h { margin: 0 0 16px; font: 600 clamp(24px, 3.1vw, 44px) / 1.08 var(--font-display); letter-spacing: -0.03em; max-width: 16em; }
.web__p { margin: 0 0 24px; color: var(--muted); max-width: 34em; }
.web__tlacitka { display: flex; flex-wrap: wrap; gap: 12px; }
.span-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--fg); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.span-btn--plne { background: var(--fg); color: var(--inverse); }
.web__foto { position: relative; aspect-ratio: 4 / 5; }
.web__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.slide { --x: clamp(7px, 1.6cqi, 16px); container-type: inline-size; position: relative; aspect-ratio: 16 / 9; background: var(--bg); border: 1px solid var(--fg); }
.slide__ram { position: absolute; inset: 6%; color: var(--fg); }
.slide__jmeno { position: absolute; left: 0; top: 0; width: calc(var(--x) * 18.994); height: calc(var(--x) * 3); }
.slide__teze { position: absolute; left: calc(var(--x) * 1); right: 12%; top: 50%; translate: 0 -46%; margin: 0; font: 600 clamp(18px, 6.2cqi, 64px) / 1.08 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.slide__pata { position: absolute; left: calc(var(--x) * 1); right: calc(var(--x) * 1); bottom: calc(var(--x) * 1); display: flex; justify-content: space-between; margin: 0; font-size: clamp(9px, 1.4cqi, 14px); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sal { position: relative; }
.sal img { width: 100%; height: auto; }
.sal__platno { position: absolute; left: 40.8%; top: 32%; width: 19%; aspect-ratio: 16 / 9; background: var(--bg); box-shadow: 0 0 0 1px rgba(28, 29, 31, 0.2); container-type: inline-size; }
.sal__platno p { position: absolute; left: 9%; right: 10%; top: 50%; translate: 0 -50%; margin: 0; font: 600 9cqi / 1.08 var(--font-display); }
.sal__platno .rohy-mini { position: absolute; inset: 6%; --r: 5px; --t: 1px; color: var(--fg); }

.li { background: var(--bg); }
.li__banner { position: relative; aspect-ratio: 4 / 1; background: var(--surface); container-type: inline-size; overflow: hidden; }
.li__banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.li__banner-ram { position: absolute; inset: 9% 3%; color: var(--fg); --x: clamp(6px, 1.2cqi, 12px); }
.li__banner-jmeno { position: absolute; left: 0; top: 0; width: calc(var(--x) * 18.994); height: calc(var(--x) * 3); }
.li__telo { position: relative; padding: 0 clamp(16px, 3vw, 28px) clamp(16px, 3vw, 28px); }
.li__profil { position: relative; width: clamp(96px, 16vw, 152px); aspect-ratio: 1; margin-top: calc(clamp(96px, 16vw, 152px) / -2); }
.li__profil img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: 50%; border: 4px solid var(--bg); }
.li__profil .rohy { position: absolute; inset: -8px; --r: 14px; --t: 2px; color: var(--fg); pointer-events: none; }
.li__jmeno { margin: var(--space-3) 0 2px; font: 600 var(--step-1) / 1.2 var(--font-display); }
.li__titulek { margin: 0; color: var(--muted); }
.mail { padding: clamp(16px, 3vw, 28px); font-size: 15px; }
.mail__hlava { display: grid; gap: 4px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mail__text { margin: 0 0 24px; }
.podpis { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding-top: 14px; border-top: 1px solid var(--fg); max-width: 26rem; }
.podpis .logo--monogram { width: 48px; height: 48px; }
.podpis p { margin: 0; font-size: 14px; line-height: 1.55; }
.podpis__jmeno { font-weight: 600; font-size: 15px; }
.podpis__role { color: var(--muted); }
.podpis__fixa { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 100% 0.52em; }

.nedelat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); }
.par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.par__polozka { margin: 0; }
.par__plocha { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg); overflow: hidden; display: grid; place-items: center; container-type: inline-size; }
.par__plocha img { width: 100%; height: 100%; object-fit: cover; }
.par__stitek { display: flex; align-items: center; gap: 8px; margin-top: var(--space-2); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.par__stitek::before { content: ""; width: 12px; height: 12px; flex: none; }
.par__stitek--ano::before { background: var(--fg); }
.par__stitek--ne::before { border: 1.5px solid var(--fg); background: linear-gradient(45deg, transparent calc(50% - 1px), var(--fg) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.par figcaption p { margin: 4px 0 0; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.par__vysvetleni { grid-column: 1 / -1; margin: var(--space-2) 0 0; }
.spatne-krici { font: 800 13.4cqi / 0.9 var(--font-display); letter-spacing: -0.04em; text-align: center; margin: 0; }
.spatne-tint img { filter: sepia(0.85) saturate(1.6) hue-rotate(-12deg) contrast(1.15); }
.spatne-zlata { padding: 10%; background: radial-gradient(circle at 30% 20%, var(--zakaz-zlata-1), var(--zakaz-zlata-2) 60%, var(--zakaz-zlata-3)); }
.spatne-zlata .logo { fill: var(--zakaz-zlata-4); }

/* 5.25 Rozvržení podle šířky. Telefon: 4 sloupce. */
@media (min-width: 900px) {
  .uvod__text { grid-column: 1 / span 4; }
  .uvod__portret { grid-column: 5 / span 5; }
  .uvod__razitko { grid-column: 10 / span 3; align-self: end; }
  .portret { width: min(100%, calc((100vh - 170px) * 2 / 3)); width: min(100%, calc((100svh - 170px) * 2 / 3)); min-width: 300px; }
  .ram-foto { inset: 12.5% 21% 3.5% 23%; }
  .sekce__hlava { grid-column: 1 / span 4; }
  .sekce__telo { grid-column: 5 / span 8; }
  .sekce__siroke { grid-column: 1 / -1; }
  .zaklad__obraz { grid-column: 1 / span 7; }
  .zaklad__teze { grid-column: 8 / span 5; align-self: center; }
  .dlazdice--ram { grid-column: span 8; }
  .dlazdice--radek, .dlazdice--mono { grid-column: span 4; }
  .verze__boky { grid-column: span 4; display: grid; gap: var(--col-gap); }
  .dlazdice--barva { grid-column: span 3; }
  .zona__vykres { grid-column: 5 / span 8; }
  .zona__min { grid-column: 1 / span 6; }
  .zona__test { grid-column: 7 / span 6; }
  .zona__plakat { grid-column: 1 / span 5; }
  .zona__plakat-text { grid-column: 6 / span 6; align-self: end; }
  .paticka__logo { grid-column: 1 / span 4; }
  .paticka__nav-obal { grid-column: 5 / span 4; }
  .paticka__info { grid-column: 9 / span 4; }
  .web-obal, .slide-obal { grid-column: 1 / -1; }
  .li-obal { grid-column: 1 / span 7; }
  .podpis-obal { grid-column: 8 / span 5; }
  .galerie__hlavni { grid-column: 1 / span 4; }
  .galerie__detail { grid-column: 5 / span 3; }
  .galerie__sirka { grid-column: 8 / span 5; }
  .svet__dilna { grid-column: 1 / span 5; }
  .svet__sal { grid-column: 6 / span 7; }
  .svet__stul { grid-column: 4 / span 6; }
}
@media (max-width: 899px) {
  .mrizka .container, .mriz { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mrizka span:nth-child(n+5) { display: none; }
  .mrizka span:nth-child(4) { border-right: 1px solid var(--line); margin-right: calc(var(--col-gap) / -2); }
  .uvod__h1 { max-width: none; }
  .dlazdice--barva { grid-column: span 6; }
  .vzorek { grid-column: span 6; }
  .prvek { grid-column: 1 / -1; }
  .dvojice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pomer__legenda { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-4); }
  .vzornik__aa, .vzornik__znaky { grid-column: 1 / -1; }
  .hierarchie__radek { grid-template-columns: 1fr; }
  .galerie > *, .svet > * { grid-column: 1 / -1; }
  .nedelat { grid-template-columns: 1fr; }
  .web__hero { grid-template-columns: 1fr; }
  .web__foto { max-width: 320px; }
}
@media (max-width: 600px) {
  :root { --section: 56px; }
  .site-header__in { padding-block: var(--space-3); }
  .hlavicka-meta { display: none; }
  .nav a { padding-inline: 8px; }
  .logo--hlavicka { height: 26px; }
  .uvod { padding-top: var(--space-4); }
  .uvod__text { padding-top: 0; }
  .spec > div, .pravidla > div { grid-template-columns: 1fr; }
  .legenda { grid-template-columns: 1fr; }
  .dlazdice--barva, .vzorek { grid-column: 1 / -1; }
  .dvojice { grid-template-columns: 1fr; }
  .pomer__legenda { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test__radek { grid-template-columns: 1fr; }
  .par { grid-template-columns: 1fr 1fr; }
  .pas__in { flex-wrap: wrap; }
  .pas__okno { flex-basis: 100%; }
  .web__menu { font-size: 12px; gap: 4px 12px; }
  .podpis { grid-template-columns: 40px 1fr; }
  .podpis .logo--monogram { width: 40px; height: 40px; }
}

/* 5.26 Pohyb. Výchozí stav je konečný. Skryté stavy jen pod html.js a bez omezeného pohybu. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* choreografie načtení: mřížka se dokreslí shora */
  html.js .mrizka span { transform: scaleY(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
  html.js.motion-ready .mrizka span { transform: none; }
  /* rohy rámu přiletí z rohů okna (přesný posun dopočítá ram.js) */
  html.js:not(.motion-ready) .ram-foto .roh { transform: scale(3); }
  html.js .ram-foto .roh { transition: transform 800ms var(--ease-out); }
  /* jméno se usadí v rohu: odkryje se zleva, až rohy dosednou */
  html.js .ram-foto__jmeno { clip-path: inset(0 100% 0 0); transition: clip-path 560ms var(--ease-out) 820ms; }
  html.js.motion-ready .ram-foto__jmeno { clip-path: inset(0 0 0 0); }
  /* slova H1 dosednou na účaří; zůstávají celou dobu viditelná */
  html.js .uvod__h1 .w { translate: 0 0.22em; transition: translate 700ms var(--ease-out); transition-delay: calc(150ms + var(--i, 0) * 75ms); }
  html.js.motion-ready .uvod__h1 .w { translate: none; }
  /* rohy loga v hlavičce se stáhnou k jménu */
  html.js .logo--hlavicka .r { transition: transform 700ms var(--ease-out) 200ms; }
  html.js:not(.motion-ready) .logo--hlavicka .r1 { transform: translate(-300px, -300px); }
  html.js:not(.motion-ready) .logo--hlavicka .r2 { transform: translate(300px, -300px); }
  html.js:not(.motion-ready) .logo--hlavicka .r3 { transform: translate(-300px, 300px); }
  html.js:not(.motion-ready) .logo--hlavicka .r4 { transform: translate(300px, 300px); }
  /* ambientní smyčka: úsek čárkované linky obíhá rám za 12 s */
  html.js .smycka-obeh { animation: obeh 12s linear 1.4s infinite; }
  html.is-paused .smycka-obeh, html.js .mimo .smycka-obeh { animation-play-state: paused; }
  /* pás: jen když běží skript (is-running) */
  html.js .pas.is-running .pas__okno { mask-image: linear-gradient(90deg, transparent, black 64px, black calc(100% - 64px), transparent); }
  html.js .pas.is-running .pas__stopa { flex-wrap: nowrap; width: max-content; animation: pas 42s linear infinite; }
  html.js .pas.is-running .pas__polozka { white-space: nowrap; }
  html.js .pas.is-running:hover .pas__stopa,
  html.js .pas.is-running:focus-within .pas__stopa { animation-play-state: paused; }
  /* mimo okno pás neběží a vrátí se na začátek: první slovo stojí na okraji mřížky */
  html.js .pas.is-offscreen .pas__stopa { animation: none; }
  /* tlačítko Zastavit pohyb: pás se změní ve statický zalomený seznam */
  html.is-paused .pas.is-running .pas__okno { mask-image: none; }
  html.is-paused .pas.is-running .pas__stopa { animation: none; flex-wrap: wrap; width: auto; }
  html.is-paused .pas.is-running .pas__polozka { white-space: normal; }
  html.is-paused .pas.is-running .pas__polozka[aria-hidden="true"] { display: none; }
}
@keyframes obeh { to { stroke-dashoffset: -100; } }
@keyframes pas { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .btn:active:not([aria-disabled="true"]), .hex:active { scale: none; filter: brightness(0.92); }
  .btn__rohy i { transition: none; }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .mrizka, .vykres { background-image: none; }
  .mrizka { display: none; }
}

/* 5.27 Doplňky výkresů a sekcí */
.sekce--bez-linky { border-top: 0; }
.h-jmeno6 { height: 8.1px; width: auto; }
.srafa-cara { stroke: var(--muted); stroke-width: 2.5; stroke-opacity: 0.55; }
.v-vodítko { fill: none; }
.zona-kota path { fill: none; stroke: var(--muted); stroke-width: 3; }
.zona-kota text { font: 500 56px var(--font-body); fill: var(--fg); text-anchor: middle; dominant-baseline: central; }
.zona__plakat .plakat { max-width: 440px; }
.zaklad { position: relative; }
.zaklad__teze .teze { max-width: 11em; }
html:not(.js) [data-pauza] { display: none; }
@media (prefers-reduced-motion: reduce) { [data-pauza] { display: none; } }

/* 5.28 Obrazovky Barvy a písmo, Použití */
.sekce--prvni { border-top: 0; padding-top: var(--space-7); }
.list-h1 { font-size: var(--step-5); margin: var(--space-3) 0 var(--space-5); }
.list-h1 .w { display: inline-block; }
.h-mezi { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; margin: var(--space-8) 0 var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--fg); }
.h-mezi--prvni { margin-top: 0; }
.pomer__popis { margin-top: var(--space-4); }
.vzorek__plocha.c-bila::after {
  background:
    linear-gradient(var(--muted) 0 0) 0 0 / 14px 1.5px, linear-gradient(var(--muted) 0 0) 0 0 / 1.5px 14px,
    linear-gradient(var(--muted) 0 0) 100% 0 / 14px 1.5px, linear-gradient(var(--muted) 0 0) 100% 0 / 1.5px 14px,
    linear-gradient(var(--muted) 0 0) 0 100% / 14px 1.5px, linear-gradient(var(--muted) 0 0) 0 100% / 1.5px 14px,
    linear-gradient(var(--muted) 0 0) 100% 100% / 14px 1.5px, linear-gradient(var(--muted) 0 0) 100% 100% / 1.5px 14px;
  background-repeat: no-repeat;
}
.dvojice__vzor--seda { color: var(--muted); }
.barvy__obraz { margin-top: var(--space-8); }
.stul { position: relative; }
.vzorkovac { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 6px; translate: -14px -14px; pointer-events: none; }
.vzorkovac i { width: 28px; height: 28px; flex: none; color: var(--fg); filter: drop-shadow(0 0 1px var(--bg)) drop-shadow(0 0 1px var(--bg));
  background:
    linear-gradient(currentColor 0 0) 0 0 / 8px 2px, linear-gradient(currentColor 0 0) 0 0 / 2px 8px,
    linear-gradient(currentColor 0 0) 100% 0 / 8px 2px, linear-gradient(currentColor 0 0) 100% 0 / 2px 8px,
    linear-gradient(currentColor 0 0) 0 100% / 8px 2px, linear-gradient(currentColor 0 0) 0 100% / 2px 8px,
    linear-gradient(currentColor 0 0) 100% 100% / 8px 2px, linear-gradient(currentColor 0 0) 100% 100% / 2px 8px,
    linear-gradient(currentColor 0 0) 50% 50% / 2px 2px;
  background-repeat: no-repeat; }
.vzorkovac b { padding: 2px 6px; background: var(--bg); color: var(--fg); border: 1px solid var(--fg); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.vzornik__verzalky { letter-spacing: 0.08em; }
.rezy li { font-size: var(--step-2); }
.rez-300 { font-weight: 300; font-size: clamp(1.875rem, 1.5833rem + 1.2963vw, 2.75rem); letter-spacing: -0.02em; }
.rez-400 { font-weight: 400; }
.rez-500 { font-weight: 500; }
.rez-600 { font-weight: 600; }
.rez-700 { font-weight: 700; }
.hierarchie__pozn { margin-top: var(--space-4); }
.teze--prvek { font-size: var(--step-3); max-width: 13em; }
.svet__uvod { max-width: 44em; margin-bottom: var(--space-5); }
.svet__stul { margin-top: var(--space-3); }
.orez__ram { color: var(--fg); }
.orez__ram.rohy { --r: 16px; --t: 2px; }
.orez__ram--kruh { border-radius: 50%; border: 1.5px dashed var(--fg); }
.orez__ram--kruh span { left: 50%; translate: -50% 0; }
.rohy-obal { position: relative; padding: 8px; color: var(--fg); }
.rohy-obal::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 12px 1.5px, linear-gradient(currentColor 0 0) 0 0 / 1.5px 12px,
    linear-gradient(currentColor 0 0) 100% 0 / 12px 1.5px, linear-gradient(currentColor 0 0) 100% 0 / 1.5px 12px,
    linear-gradient(currentColor 0 0) 0 100% / 12px 1.5px, linear-gradient(currentColor 0 0) 0 100% / 1.5px 12px,
    linear-gradient(currentColor 0 0) 100% 100% / 12px 1.5px, linear-gradient(currentColor 0 0) 100% 100% / 1.5px 12px;
  background-repeat: no-repeat; }
.rohy-mini { --r: 5px; --t: 1px; }
.sal__platno .rohy { position: absolute; inset: 6%; }
.par__logo { width: 82%; height: auto; }
.par__logo--zlute .zlute { fill: var(--accent); }
.par__mono { width: 38%; height: auto; }
.par__veta { margin: 0; padding: 0 8%; font: 600 8.6cqi / 1.12 var(--font-display); letter-spacing: -0.02em; text-align: center; }
.par__vysvetleni h3 { font-size: var(--step-0); margin: 0; }
.par__vysvetleni p { margin: 4px 0 0; }
.spatne-zlata .logo { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }

/* 5.29 Výchozí okraje a cíle dotyku */
.vykres, .par, .maketa, .obraz, .pomer { margin: 0; }
.dlazdice__akce .odkaz { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; }
.dlazdice__akce .odkaz::before, .dlazdice__akce .odkaz::after { bottom: 10px; }
.hex .btn__rohy { inset: -7px; }
.hex[data-stav="ok"] .btn__rohy i { transform: none; }
.verze__boky .dlazdice { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .barvy__obraz { grid-column: 3 / span 8; }
}
