/* =========================================================
   ŘEMESLNÝ WEB — style.css (verze 2, září 2026)
   Směr: „polep dodávky a skládací metr“. Cedule, ne brožura.
   Písmo dělá práci, žlutá je plocha, černá je linka.
   Struktura: 1) tokeny  2) reset  3) typografie  4) layout
              5) komponenty  6) sekce  7) podstránky  8) responzivita
   ========================================================= */

/* =========================================================
   1) DESIGN TOKENY
   ========================================================= */
:root {
  /* --- Barvy --- */
  --zluta:   #F7C600;   /* skládací metr, výstražná páska — jen plochy, nikdy text */
  --zluta-sv:#FFF3BF;   /* světlý žlutý podklad (fokus, zvýraznění řádku) */
  --cerna:   #000000;   /* vinylová fólie — display písmo, linky, tmavé pásy */
  --grafit:  #232320;   /* běžný text */
  --kamen:   #4F4E47;   /* tlumený text (na křídě 7,6 : 1, dřív #6B6A63 = 4,9 : 1) */
  --krida:   #F5F4EF;   /* podklad stránky (omítka) */
  --bila:    #FFFFFF;   /* archy — formulář, střídání sekcí */
  --ryska:   #D8231B;   /* červená decimetrová ryska — jen chyby formuláře */
  --linka:   #D8D6CC;   /* vlasová linka na světlém */
  --linka-t: rgba(255, 255, 255, 0.22);  /* vlasová linka na černém */
  --na-zlute-tlum: #232320;              /* text na žluté — šedá tam ztrácí kontrast, proto grafit */
  --na-cerne-tlum: rgba(255, 255, 255, 0.72);

  /* --- Typografie --- */
  --font-head: 'Big Shoulders', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-h1:   clamp(3.25rem, 0.5rem + 8.6vw, 8.25rem);
  --fs-h2:   clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem);
  --fs-h3:   clamp(1.5rem, 1.25rem + 0.8vw, 1.95rem);
  --fs-lead: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;

  --lh-h1:   1.06;
  --lh-h2:   0.95;
  --lh-h3:   1.05;
  --lh-body: 1.6;

  /* --- Rozestupy --- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4rem;  --sp-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 5vw, 8rem);
  --head-gap: clamp(2.5rem, 2rem + 2vw, 4rem);

  /* --- Rozměry --- */
  --wrap: 1280px;
  --wrap-narrow: 760px;
  --header-h: 72px;
  --rule: 3px;      /* hlavní černá linka */

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   2) RESET / ZÁKLAD
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--krida);
  color: var(--grafit);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
figure, blockquote { margin: 0; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--zluta); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cerna); }

:focus-visible { outline: 3px solid var(--cerna); outline-offset: 3px; }
.section--black :focus-visible { outline-color: var(--zluta); }

::selection { background: var(--zluta); color: var(--cerna); }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--cerna); color: #fff;
  padding: var(--sp-3) var(--sp-5); z-index: 200;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* =========================================================
   3) TYPOGRAFIE
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--cerna);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
  letter-spacing: 0;
}
h1 { font-size: var(--fs-h1); font-weight: 900; line-height: var(--lh-h1); text-transform: uppercase; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-h2); max-width: 26ch; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-h3); }
h4 { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--kamen);
  max-width: 36rem;
  text-wrap: pretty;
}
.section--yellow .lead { color: var(--na-zlute-tlum); }
.section--black .lead { color: var(--na-cerne-tlum); }

strong, b { font-weight: 700; color: var(--cerna); }
.section--black strong, .section--black b, .footer strong, .footer b { color: #fff; }

/* Nadpis sekce: h2 + případný perex. Žádné štítky nad nadpisem. */
.section-head { margin-bottom: var(--head-gap); }
.section-head .lead { margin-top: var(--sp-4); }

/* Velké číslo v display písmu */
.num { font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums; }

/* =========================================================
   4) LAYOUT
   ========================================================= */
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, var(--wrap-narrow)); margin-inline: auto; }

.section { position: relative; padding-block: var(--section-y); }
.section--white { background: var(--bila); }
.section--yellow { background: var(--zluta); color: var(--cerna); }
.section--black { background: var(--cerna); color: #fff; }
.section--black h2, .section--black h3, .section--black h4 { color: #fff; }

/* Dvousloupcová sekce: vlevo lepivý nadpis, vpravo obsah */
.split { display: grid; gap: var(--sp-8) var(--sp-9); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.split__head h2 { margin-bottom: var(--sp-4); }

/* =========================================================
   5) KOMPONENTY
   ========================================================= */

/* ---------- Tlačítka: obdélník s černým rámem, display písmo ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 56px;
  padding: 0.35rem 1.6rem 0.45rem;
  border: 2px solid var(--cerna);
  background: transparent;
  color: var(--cerna);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn--primary { background: var(--zluta); }
.btn--primary:hover { background: var(--cerna); color: #fff; }
.btn--black { background: var(--cerna); color: #fff; }
.btn--black:hover { background: var(--zluta); color: var(--cerna); }
.btn--outline:hover { background: var(--cerna); color: #fff; }
.btn--lg { min-height: 66px; padding-inline: 2rem; font-size: 1.5rem; }
.btn--block { width: 100%; }
.btn .icon { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(1px); }

/* ---------- Štítky ---------- */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tags li {
  padding: 0.15rem 0.55rem;
  border: 1.5px solid var(--cerna);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.5;
  color: var(--cerna); white-space: nowrap;
}

/* Cenovka — žlutý štítek jako z železářství; visí přes rám snímku, ne uvnitř něj */
.tag-price {
  position: absolute; left: -0.75rem; bottom: -1.1rem; z-index: 2;
  display: inline-grid; gap: 0;
  padding: 0.35rem 0.9rem 0.45rem;
  background: var(--zluta); color: var(--cerna);
  border: 2px solid var(--cerna);
  font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; line-height: 1;
  transform: rotate(-2deg); transform-origin: left bottom;
  box-shadow: 3px 3px 0 var(--cerna);
}
.tag-price small { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.02em; line-height: 1.2; margin-top: 0.15rem; }

/* ---------- Seznam s odškrtnutím ---------- */
.checklist { display: grid; gap: 0.6rem; }
.checklist li {
  display: grid; grid-template-columns: 18px 1fr; gap: 0.7rem; align-items: start;
  font-size: var(--fs-sm); line-height: 1.5;
}
/* černý čtverec s bílou fajfkou — jako zaškrtnutá kolonka v zakázkovém listu */
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px;
  background: var(--cerna)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.section--black .checklist li::before {
  background: var(--zluta)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Zvýraznění fixem ---------- */
mark { background: var(--zluta); color: var(--cerna); padding: 0.05em 0.3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Skládací metr (žlutý pás s ryskami) ---------- */
.metr {
  background: var(--zluta) url("../img/metr.svg") left top repeat-x;
  color: var(--cerna);
}

/* =========================================================
   6) SEKCE
   ========================================================= */

/* ---------- 6.1 Hlavička ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--krida);
  border-bottom: 2px solid var(--cerna);
}
.header__inner { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }

.logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-right: auto;
  font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; line-height: 1;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--cerna); text-decoration: none; white-space: nowrap;
}
.logo__mark {
  width: 30px; height: 30px; flex: none;
  background: var(--zluta)
    linear-gradient(90deg, var(--cerna) 0 2px, transparent 2px) 6px 0 / 7px 14px repeat-x;
  border: 2px solid var(--cerna);
}

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  display: block; padding: 0.45rem 0.7rem;
  font-weight: 600; font-size: 1rem; color: var(--cerna);
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zluta); text-underline-offset: 6px; }
/* Poslední položka „Jak na web?“ s ikonou knihy; v mobilním menu ikona před textem */
.nav__guide { display: inline-flex !important; align-items: center; gap: 0.4rem; font-weight: 700; }
.nav__guide svg { width: 18px; height: 18px; flex: none; }
.mobile-menu .nav__guide { display: flex !important; gap: 0.6rem; }
.mobile-menu .nav__guide svg { width: 24px; height: 24px; }

.header__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.5rem;
  background: var(--zluta); color: var(--cerna);
  border: 2px solid var(--cerna);
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.header__cta:hover { background: var(--cerna); color: #fff; }

.burger {
  display: none; width: 48px; height: 48px; flex: none;
  align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--cerna); color: var(--cerna); cursor: pointer;
}
.burger svg { width: 26px; height: 26px; }
.burger .icon-close, .burger[aria-expanded="true"] .icon-menu { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.header__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--zluta);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

.mobile-menu { display: none; background: var(--krida); border-top: 2px solid var(--cerna); padding: var(--sp-3) 0 var(--sp-6); }
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: 0.8rem 0;
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1;
  color: var(--cerna); text-decoration: none; border-bottom: 1px solid var(--linka);
}
.mobile-menu .btn { margin-top: var(--sp-5); }

/* ---------- 6.2 Hero — polep dodávky ---------- */
.hero { background: var(--krida); }
.hero__top { position: relative; padding-top: clamp(7rem, 6rem + 6.5vw, 13rem); }
.hero__top > .wrap { position: relative; z-index: 1; }
.hero h1 { margin-bottom: clamp(3rem, 1.5rem + 4.5vw, 5.5rem); max-width: none; }
.br-m { display: none; }   /* zalomení před rotorem, jen na mobilu */

/* Skica oboru na pozadí hera: čárová kresba (okruh, zeď, krov…) ve slabé žluté,
   která se dokreslí s každým slovem rotoru. Každý tah má pathLength="1", takže
   stroke-dashoffset 1 → 0 ho „nakreslí“; --i určuje pořadí tahů, --step rozestup.
   Bez JS je vidět hotová první skica (elektrikáře), pod textem vždy zůstává křída. */
.hero__sketch { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Obě SVG se drží pravého okraje obsahu (.wrap), ne okna, ať na širokém monitoru neutečou k okraji. */
.hero__sketch svg {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: max(2vw, calc((100% - var(--wrap)) / 2 - 3.5rem));
  height: min(94%, 760px); width: auto;
}
/* stojaté SVG: obrázky (žárovka, střecha, kohoutek…) sedí ve volném pruhu vpravo od nadpisu a tlačítek */
.hero__sketch .sketch-tall { height: min(90%, 720px); }
.sketch { opacity: 0; transition: opacity 0.35s var(--ease); }
.sketch.is-on { opacity: 0.5; transition-delay: 0.2s; }
.sketch path, .sketch circle {
  fill: none; stroke: var(--zluta); stroke-width: 3px;
  stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0s linear 0.35s;
}
/* Celá kresba musí být hotová do ~1,3 s po přepnutí slova, ať zůstane stát dřív, než rotor
   (2,6 s) skicu zhasne. Zeď a parkety mají mnoho krátkých tahů, proto si nesou vlastní --step a --dur. */
.sketch.is-on path, .sketch.is-on circle {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur, 0.45s) var(--ease) calc(0.25s + var(--i, 0) * var(--step, 0.05s));
}

/* Rotující obor — černé slovo na žlutém podkladu.
   Rotor je inline-block bez overflow:hidden (to by mu přesunulo účaří na spodní hranu
   a slovo by sedělo výš než zbytek řádku). Ořez dělá clip-path, který účaří nemění.
   Geometrie počítá s Big Shoulders při line-height 1: účaří 0,11 em nad spodkem,
   verzálky 0,80 em, háčky 0,98 em (vykukují ze žluté, jako u zvýrazňovače). */
.rotor {
  position: relative; display: inline-block; vertical-align: baseline;
  white-space: nowrap; line-height: 1;
  padding: 0 0.06em; margin: 0 -0.02em;
  clip-path: inset(-0.14em 0 0.07em 0);
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.rotor::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0.01em; bottom: 0.07em;
  background: var(--zluta);
}
.rotor__sizer, .rotor__w { position: relative; z-index: 1; display: inline-block; line-height: inherit; }
.rotor__sizer { visibility: hidden; }
.rotor__w {
  position: absolute; left: 0.06em; top: 0;
  transition: transform 0.5s var(--ease-out) 0.12s, opacity 0.3s var(--ease) 0.12s;
}
/* nové slovo padá shora do žluté, staré odjíždí dolů pod její spodní hranu */
.rotor__w.is-enter { transform: translateY(-105%); opacity: 0; }
.rotor__w.is-leave { transform: translateY(105%); opacity: 0; transition: transform 0.4s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.3s var(--ease) 0.05s; }

.hero__row {
  display: grid; gap: var(--sp-6) var(--sp-8);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  padding-bottom: clamp(7rem, 6rem + 6.5vw, 12.5rem);
}
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--grafit); max-width: 34rem; margin: 0; text-wrap: pretty; }
.hero__lead strong { color: var(--cerna); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-self: end; }

/* metr s fakty */
.hero__metr { padding: 76px 0 var(--sp-6); border-top: 2px solid var(--cerna); border-bottom: 2px solid var(--cerna); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.fact { display: grid; gap: 0.2rem; align-content: start; padding-right: var(--sp-4); }
.fact__num {
  font-family: var(--font-head); font-weight: 800; line-height: 1;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.4rem);
  font-variant-numeric: tabular-nums; color: var(--cerna);
}
.fact__label { font-size: var(--fs-sm); line-height: 1.35; color: var(--na-zlute-tlum); font-weight: 600; }

/* ---------- 6.3 Problémy — zaškrtávací list ---------- */
.pick { display: grid; gap: 0.35rem; margin-top: var(--sp-5); }
.pick__opt {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.55rem 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; line-height: 1.05;
  color: var(--kamen);
  transition: color 0.15s var(--ease);
}
.pick__opt::before {
  content: ""; width: 1.2em; height: 1.2em; flex: none;
  border: 2.5px solid var(--cerna); background: var(--bila);
  transition: background-color 0.15s var(--ease);
}
.pick__opt:hover { color: var(--cerna); }
.pick__opt[aria-selected="true"] { color: var(--cerna); }
.pick__opt[aria-selected="true"]::before {
  background: var(--cerna) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23F7C600' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.problem-panel[hidden] { display: none; }
.problem-panel { transition: opacity 0.2s var(--ease), transform 0.25s var(--ease-out); }
.problem-panel.is-leaving { opacity: 0; transform: translateX(-10px); }
.problem-panel.is-entering { opacity: 0; transform: translateX(10px); transition: none; }

.problem { padding: var(--sp-5) 0; border-top: var(--rule) solid var(--cerna); }
.problem:first-child { padding-top: 0; border-top: 0; }
.problem h3 { margin-bottom: var(--sp-2); }
.problem p { color: var(--kamen); max-width: 36rem; margin-bottom: var(--sp-3); }
.problem__fix { color: var(--cerna); font-weight: 600; max-width: 38rem; line-height: 1.7; }

/* ---------- 6.4 Co dostanete — žlutý pás, tabulka ---------- */
/* Hlavička sekce se štítkem vpravo (upoutávka na návod) */
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6) var(--sp-8); align-items: start; }
.guide-teaser {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); align-items: center;
  width: min(100%, 26rem); margin-top: var(--sp-2); padding: var(--sp-4) var(--sp-5);
  background: var(--bila); color: var(--grafit);
  border: 2px solid var(--cerna); box-shadow: 4px 4px 0 var(--cerna);
  transform: rotate(-2deg); transform-origin: right center;
  text-decoration: none; font-size: var(--fs-sm); line-height: 1.45;
  transition: transform 0.2s var(--ease-out), background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.guide-teaser:hover { transform: rotate(0deg); background: var(--cerna); color: #fff; }
.guide-teaser__icon {
  grid-row: 1 / 3; display: grid; place-items: center;
  width: 52px; height: 52px; background: var(--zluta); color: var(--cerna); border: 2px solid var(--cerna);
}
.guide-teaser__icon svg { width: 28px; height: 28px; }
.guide-teaser__body { display: grid; gap: 0.15rem; }
.guide-teaser__body strong { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1.05; color: inherit; }
.guide-teaser__cta {
  grid-column: 2; justify-self: start;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; line-height: 1;
  text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zluta); text-underline-offset: 5px;
}
.guide-teaser:hover strong { color: #fff; }

.benefits { border-bottom: var(--rule) solid var(--cerna); }
.benefit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-4) var(--sp-8);
  padding: var(--sp-5) 0;
  border-top: var(--rule) solid var(--cerna);
}
.benefit h3 { margin: 0; }
.benefit p { margin: 0; color: var(--na-zlute-tlum); max-width: 40rem; }

/* ---------- 6.5 Realizace — čtyři reálné weby ve dvou sloupcích ---------- */
.works { display: grid; gap: var(--sp-8) var(--sp-7); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work { display: flex; flex-direction: column; }
.work__shot {
  position: relative; display: block;
  border: 2px solid var(--cerna); background: var(--bila);
  aspect-ratio: 16 / 10;
  text-decoration: none;
}
/* zoom ořezává <picture>, aby cenovka mohla přesahovat rám */
.work__shot picture { display: block; width: 100%; height: 100%; overflow: hidden; }
.work__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.7s var(--ease-out); }
.work__shot:hover img { transform: scale(1.03); }
.work__body { padding-top: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.work__title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.work__field { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--kamen); }
.work p { color: var(--kamen); margin: 0; font-size: var(--fs-sm); }
.work__link { margin-top: auto; padding-top: var(--sp-2); align-self: flex-start; font-weight: 700; font-size: var(--fs-sm); min-height: 44px; display: inline-flex; align-items: center; }

.section-cta { margin-top: var(--sp-8); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 6.6 Služby — tabulka ---------- */
.table3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule) solid var(--cerna); }
.cell { padding: var(--sp-6) var(--sp-6) var(--sp-6) 0; border-bottom: 1px solid var(--linka); }
.cell:nth-child(3n+2) { padding-inline: var(--sp-6); border-left: 1px solid var(--linka); border-right: 1px solid var(--linka); }
.cell:nth-child(3n) { padding-left: var(--sp-6); padding-right: 0; }
.cell:nth-last-child(-n+3) { border-bottom: 0; }
.cell h3 { margin-bottom: var(--sp-2); }
.cell > p { color: var(--kamen); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }

.extras {
  margin-top: var(--sp-7);
  display: grid; gap: var(--sp-5) var(--sp-8);
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  padding: var(--sp-6);
  background: var(--zluta); border: 2px solid var(--cerna);
}
.extras__title { margin: 0; }
.extras__title small { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); color: var(--na-zlute-tlum); margin-top: 0.4rem; }
.extra h4 { margin: 0 0 var(--sp-2); }
.extra p { margin: 0; font-size: var(--fs-sm); color: var(--na-zlute-tlum); }

/* ---------- 6.7 Ceník — metr cen a tři sloupce ---------- */
/* Pás metru je 3,5× širší než okno (10 000–52 000 Kč). Před najetím je vytažený na drahý
   konec a po zobrazení se stáhne na 10 000–22 000; špendlíky se ukážou, až metr dojede. */
.scale { position: relative; height: 96px; margin: var(--sp-6) 0 var(--sp-7); }
.scale__view {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  overflow: hidden; background: var(--zluta); border: 2px solid var(--cerna);
}
.scale__strip {
  position: absolute; left: 0; top: 0; bottom: 0; width: 350%;
  background:
    repeating-linear-gradient(90deg, var(--cerna) 0 1.5px, transparent 1.5px calc(100% / 42)) left top / 100% 20px repeat-x,
    repeating-linear-gradient(90deg, var(--cerna) 0 1px, transparent 1px calc(100% / 210)) left top / 100% 9px repeat-x;
  transform: translateX(-71.4286%);
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scale.is-in .scale__strip { transform: translateX(0); }
.scale__num {
  position: absolute; bottom: 2px; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1; color: var(--cerna);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.scale__num--first { transform: translateX(6px); }
.scale__num--last { transform: translateX(calc(-100% - 6px)); }
.scale__pin {
  position: absolute; bottom: 44px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.15rem;
  text-align: center; white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 600; color: var(--kamen); line-height: 1.2;
  transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease);
}
.scale.is-in .scale__pin { transition-delay: 1.2s; }
.scale__pin b { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--cerna); font-variant-numeric: tabular-nums; }
.scale__pin::after {
  content: ""; width: 0; height: 0; margin-top: 0.15rem;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--cerna);
}
.scale:not(.is-in) .scale__pin { opacity: 0; transform: translate(-50%, -10px); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--sp-6); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: var(--sp-5) 0 var(--sp-6);
  border-top: var(--rule) solid var(--cerna);
}
.plan--featured { background: var(--zluta); padding-inline: var(--sp-5); margin-inline: calc(var(--sp-6) * -0.5); border: 2px solid var(--cerna); border-top-width: var(--rule); }
.plan__flag {
  position: absolute; top: -0.9rem; right: var(--sp-5);
  padding: 0.25rem 0.7rem; background: var(--cerna); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: 0.02em;
}
.plan__name { margin-bottom: var(--sp-1); }
.plan__for { color: var(--kamen); min-height: 2.6em; margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.plan--featured .plan__for { color: var(--na-zlute-tlum); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.5rem; padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--linka); }
.plan--featured .plan__price { border-bottom-color: rgba(0,0,0,0.3); }
.plan__price .from { font-size: var(--fs-sm); font-weight: 600; color: var(--kamen); }
.plan--featured .plan__price .from { color: var(--na-zlute-tlum); }
.plan__price .value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 2rem + 1.8vw, 3.6rem); line-height: 1; color: var(--cerna); font-variant-numeric: tabular-nums; }
.plan__price .month { width: 100%; font-size: var(--fs-sm); color: var(--kamen); }
.plan .checklist { margin-bottom: var(--sp-6); }
.plan .btn { margin-top: auto; }

.notes { margin-top: var(--sp-8); display: grid; gap: var(--sp-5) var(--sp-6); grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule) solid var(--cerna); padding-top: var(--sp-5); }
.note h4 { margin: 0 0 var(--sp-1); }
.note p { margin: 0; font-size: var(--fs-sm); color: var(--kamen); }

.fineprint { margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--kamen); max-width: 52rem; }

.addon {
  margin-top: var(--sp-6);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4) var(--sp-6); align-items: center;
  padding: var(--sp-5) var(--sp-6);
  background: var(--bila); border: 2px solid var(--cerna);
}
.addon h3 { margin: 0 0 var(--sp-1); }
.addon p { margin: 0; font-size: var(--fs-sm); color: var(--kamen); }
.addon__price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; white-space: nowrap; color: var(--cerna); }

/* ---------- 6.8 Proces — černý pás, obří číslice ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-6); }
.step { padding-top: var(--sp-4); }
.step__n {
  display: block; font-family: var(--font-head); font-weight: 900; line-height: 0.85;
  font-size: clamp(5rem, 3.5rem + 5vw, 9rem); color: var(--zluta);
  margin-bottom: var(--sp-4);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { color: var(--na-cerne-tlum); margin-bottom: var(--sp-4); max-width: 24rem; }
.step__tag {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--zluta); color: var(--cerna);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
}
.process-note { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 2px solid var(--linka-t); font-size: var(--fs-lead); color: var(--na-cerne-tlum); max-width: 40rem; }
.process-note b { color: #fff; }

/* ---------- 6.9 Reference ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule) solid var(--cerna); }
.review { display: flex; flex-direction: column; padding: var(--sp-6) var(--sp-6) var(--sp-6) 0; }
.review + .review { border-left: 1px solid var(--linka); padding-left: var(--sp-6); }
.review:last-child { padding-right: 0; }
.review__mark { font-family: var(--font-head); font-weight: 900; font-size: 5rem; line-height: 0.6; color: var(--cerna); margin-bottom: var(--sp-4); display: block; }
.review blockquote { font-size: 1.1rem; line-height: 1.55; color: var(--grafit); margin-bottom: var(--sp-5); }
.review blockquote strong { color: var(--cerna); }
.review__person { margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--linka); display: flex; align-items: center; gap: var(--sp-3); }
.review__avatar { width: 52px; height: 52px; flex: none; overflow: hidden; border: 2px solid var(--cerna); background: var(--krida); }
.review__avatar picture { display: block; width: 100%; height: 100%; }
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__name { font-weight: 700; color: var(--cerna); line-height: 1.25; }
.review__role { font-size: var(--fs-sm); color: var(--kamen); }
.review__stars { display: block; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--cerna); margin-top: 0.15rem; }
.reviews-foot { margin-top: var(--sp-7); display: flex; }

/* ---------- 6.10 O mně ---------- */
.about { display: grid; gap: var(--sp-8) var(--sp-9); grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.about__photo { border: 2px solid var(--cerna); background: var(--bila); aspect-ratio: 4 / 5; overflow: hidden; }
.about__photo picture, .about__photo img { width: 100%; height: 100%; }
.about__photo img { object-fit: cover; }
.about__text h2 { margin-bottom: var(--sp-5); }
.about__text > p { max-width: 38rem; }
.pillars { margin-top: var(--sp-6); border-bottom: var(--rule) solid var(--cerna); }
.pillar { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-2) var(--sp-6); padding: var(--sp-4) 0; border-top: var(--rule) solid var(--cerna); }
.pillar h3 { margin: 0; font-size: 1.5rem; }
.pillar p { margin: 0; color: var(--kamen); font-size: var(--fs-sm); }
.about__more { margin-top: var(--sp-6); }

/* ---------- 6.11 FAQ ---------- */
.faq details { border-top: 2px solid var(--cerna); }
.faq details:last-child { border-bottom: 2px solid var(--cerna); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.15; color: var(--cerna);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 30px; height: 30px; flex: none; margin-top: -1px;
  background: var(--cerna)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='square'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: background-color 0.15s var(--ease);
}
.faq details[open] summary::after {
  background: var(--zluta)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 2px solid var(--cerna);
}
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zluta); text-underline-offset: 5px; }
.faq__wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq details[open] .faq__wrap { grid-template-rows: 1fr; }
.faq__wrap > .faq__answer { overflow: hidden; min-height: 0; }
.faq__answer p { padding-bottom: var(--sp-5); color: var(--grafit); max-width: 40rem; }

/* ---------- 6.12 Kontakt — žlutý pás ---------- */
.contact { display: grid; gap: var(--sp-8) var(--sp-9); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.contact__head { margin-bottom: var(--sp-5); }
/* kroky „Co bude dál?“ pod perexem; linka nahoře zůstává z .after-send, text na žluté v grafitu */
.contact .contact__next { margin-bottom: var(--sp-7); max-width: 30rem; }
.contact .contact__next li { color: var(--na-zlute-tlum); }
.contact-call > h3 { margin-bottom: var(--sp-2); padding-top: var(--sp-5); border-top: 2px solid var(--cerna); }
.contact-call > p { color: var(--na-zlute-tlum); max-width: 30rem; }
.contact-call__num {
  display: block; margin: var(--sp-4) 0 var(--sp-2);
  font-family: var(--font-head); font-weight: 900; line-height: 0.95;
  font-size: clamp(3rem, 1rem + 5vw, 5.5rem);
  color: var(--cerna); text-decoration: none; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.contact-call__num:hover { text-decoration: underline; text-decoration-thickness: 0.08em; text-decoration-color: var(--cerna); text-underline-offset: 0.08em; }
.contact-hours { font-weight: 700; color: var(--cerna); }
.contact-info { margin: var(--sp-6) 0 0; padding-top: var(--sp-5); border-top: 2px solid var(--cerna); display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.contact-info div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--sp-3); }
.contact-info dt { font-weight: 700; color: var(--cerna); }
.contact-info dd { margin: 0; color: var(--na-zlute-tlum); }
.contact-info a { color: var(--cerna); font-weight: 600; text-decoration-color: var(--cerna); }

.form-card { background: var(--bila); border: 2px solid var(--cerna); padding: var(--sp-6); box-shadow: 6px 6px 0 var(--cerna); }
.form-card h3 { margin-bottom: var(--sp-1); }
.form-card .form-intro { color: var(--kamen); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.form-grid { display: grid; gap: var(--sp-4) var(--sp-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 0.3rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--cerna); font-size: var(--fs-sm); }
.field .hint { font-weight: 400; color: var(--kamen); }
.ctrl { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; min-height: 52px;
  padding: 0.7rem 0.75rem;
  background: var(--krida);
  border: 0; border-bottom: 2px solid var(--cerna);
  transition: background-color 0.15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; background: var(--zluta-sv); }
.field__line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--zluta);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}
.ctrl:focus-within .field__line { transform: scaleX(1); }
.field .error { font-size: var(--fs-xs); color: var(--ryska); font-weight: 600; min-height: 1em; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--ryska); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-sm); color: var(--kamen); font-weight: 400; }
.consent input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--cerna); }
.consent a { color: var(--cerna); }

.form-foot { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); }
.form-note { font-size: var(--fs-xs); color: var(--kamen); }

.form-alert {
  padding: var(--sp-4); margin-bottom: var(--sp-5);
  background: #FBE9E7; border: 2px solid var(--ryska);
  font-size: var(--fs-sm); color: #7A1C15;
}
.form-alert a { color: #7A1C15; text-decoration-color: currentColor; }

form button[type="submit"][disabled] { position: relative; color: transparent; }
form button[type="submit"][disabled]::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: rw-spin 0.8s linear infinite;
}
@keyframes rw-spin { to { transform: rotate(360deg); } }

/* formulář se nepodařilo připravit (nenačetl se antispam token) — text zůstane, spinner ne */
form button[type="submit"][disabled].is-unavailable { color: #fff; opacity: 0.55; cursor: not-allowed; transition: none; }
form button[type="submit"][disabled].is-unavailable::after { content: none; }

.after-send { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 2px solid var(--cerna); }
.after-send h4 { margin-bottom: var(--sp-3); }
.after-send ol { counter-reset: k; display: grid; gap: 0.6rem; }
.after-send li { counter-increment: k; display: grid; grid-template-columns: 2rem 1fr; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--kamen); }
.after-send li::before { content: counter(k); font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1.1; color: var(--cerna); }

/* ---------- 6.13 Patička ---------- */
.footer { position: relative; overflow: hidden; background: var(--cerna); color: var(--na-cerne-tlum); padding-block: var(--sp-8) 0; font-size: var(--fs-sm); }
.footer .wrap { position: relative; z-index: 1; }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.footer h4 { color: #fff; font-size: 1.25rem; margin-bottom: var(--sp-3); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--zluta); }
.footer ul { display: grid; gap: 0.5rem; }
.footer .logo { color: #fff; margin-bottom: var(--sp-4); }
.footer__about { max-width: 30rem; }
.footer__meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-4); font-size: var(--fs-xs); }
.footer__guide {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5); padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  border: 1px solid var(--linka-t); color: var(--na-cerne-tlum) !important;
  font-size: var(--fs-xs); line-height: 1.4; max-width: 26rem;
  transition: border-color 0.15s var(--ease);
}
.footer__guide:hover { text-decoration: none !important; border-color: var(--zluta); }
.footer__guide strong { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-right: 0.3rem; }
.footer__guide-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; background: var(--zluta); color: var(--cerna); }
.footer__guide-icon svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: var(--sp-7); padding: var(--sp-5) 0;
  border-top: 1px solid var(--linka-t);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--fs-xs);
}
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: #fff; text-decoration: none; font: inherit; }
.linkbtn:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--zluta); }
.footer__wordmark {
  display: block; width: 100%; margin: var(--sp-5) 0 -0.19em; text-align: left;
  font-family: var(--font-head); font-weight: 900; font-size: clamp(4rem, 14.5vw, 15rem); line-height: 0.85;
  color: var(--zluta); text-transform: uppercase; white-space: nowrap; letter-spacing: 0.01em;
  pointer-events: none; user-select: none;
}

/* ---------- 6.14 Cookie lišta ---------- */
.ck { position: fixed; inset: auto 0 0 0; z-index: 300; display: none; }
.ck.is-open { display: block; }
.ck__bar, .ck__panel {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5);
  width: min(430px, calc(100vw - 2rem));
  background: var(--bila); color: var(--grafit);
  border: 2px solid var(--cerna); box-shadow: 6px 6px 0 var(--cerna);
  padding: var(--sp-5);
}
.ck__text { font-size: var(--fs-sm); color: var(--grafit); margin-bottom: var(--sp-4); }
.ck__text a { color: var(--cerna); }
.ck__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.ck__btn {
  flex: 1 1 auto; min-height: 46px; padding: 0 var(--sp-4);
  border: 2px solid var(--cerna); background: var(--cerna); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
/* „Přijmout vše“ a „Odmítnout“ mají záměrně stejnou vizuální váhu — bez dark patternu. */
.ck__btn--main:hover { background: var(--zluta); color: var(--cerna); }
.ck__btn--ghost { background: transparent; color: var(--cerna); }
.ck__btn--ghost:hover { background: var(--cerna); color: #fff; }
.ck__btn--link { flex: 0 0 100%; background: transparent; border-color: transparent; color: var(--kamen); font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; min-height: 38px; }
.ck__btn--link:hover { color: var(--cerna); }
.ck__panel { max-height: min(80vh, 640px); overflow-y: auto; }
.ck__title { font-size: 1.6rem; margin-bottom: var(--sp-4); }
.ck__row { padding: var(--sp-3) 0; border-top: 1px solid var(--linka); }
.ck__rowhead { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.ck__toggle { width: 20px; height: 20px; accent-color: var(--cerna); flex: none; }
.ck__toggle:disabled { opacity: 0.55; cursor: not-allowed; }
.ck__rowname { font-weight: 700; font-size: var(--fs-sm); color: var(--cerna); }
.ck__rowdesc { margin: var(--sp-2) 0 0 32px; font-size: var(--fs-xs); color: var(--kamen); line-height: 1.5; }
.ck__actions--panel { margin-top: var(--sp-5); }
.ck__actions--panel .ck__btn { flex: 1 1 100%; }
html.is-shot .ck { display: none !important; }
html.is-shot .scale__strip { transform: none; transition: none; }
html.is-shot .scale.is-in .scale__pin { transition-delay: 0s; }

/* =========================================================
   7) PODSTRÁNKY
   ========================================================= */

/* ---------- Děkovná stránka ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; background: var(--krida); padding: var(--sp-7) 0; }
.thanks__inner { width: min(100% - 3rem, 46rem); }
.thanks__check { width: 84px; height: 84px; margin-bottom: var(--sp-5); display: grid; place-items: center; background: var(--zluta); border: 2px solid var(--cerna); color: var(--cerna); }
.thanks__check svg { width: 44px; height: 44px; }
.thanks h1 { font-size: clamp(2.8rem, 2rem + 4vw, 5.5rem); }
.thanks__lead { font-size: var(--fs-lead); color: var(--kamen); margin-bottom: var(--sp-6); max-width: 34rem; }
.thanks__next { padding: var(--sp-5) var(--sp-6); border: 2px solid var(--cerna); background: var(--bila); margin-bottom: var(--sp-6); }
.thanks__next h2 { font-size: 1.6rem; margin-bottom: var(--sp-3); }
.thanks__next .after-send { margin-top: 0; padding-top: 0; border-top: 0; }
.thanks__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Právní podstránky ---------- */
.legal { padding-block: var(--sp-7) var(--section-y); }
.legal__head { margin-bottom: var(--sp-7); padding-bottom: var(--sp-5); border-bottom: var(--rule) solid var(--cerna); }
.legal__head h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.25rem); text-transform: none; line-height: 1; margin-bottom: var(--sp-3); }
.legal__meta { font-size: var(--fs-sm); color: var(--kamen); }
.legal h2 { font-size: 1.9rem; margin: var(--sp-7) 0 var(--sp-4); padding-top: var(--sp-5); border-top: 2px solid var(--cerna); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.35rem; margin: var(--sp-5) 0 var(--sp-3); }
.legal p, .legal li { color: var(--grafit); font-size: var(--fs-body); line-height: 1.65; }
.legal ul { margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-2); }
.legal ul li { position: relative; padding-left: 1.3rem; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--zluta); border: 1.5px solid var(--cerna); }
.legal-table-wrap { overflow-x: auto; margin: 0 0 var(--sp-5); }
.legal-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
.legal-table th, .legal-table td { padding: var(--sp-3); text-align: left; border-bottom: 1px solid var(--linka); vertical-align: top; }
.legal-table th { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--cerna); border-bottom: 2px solid var(--cerna); white-space: nowrap; }
.legal-table code { font-size: 0.95em; background: var(--zluta-sv); padding: 0.1em 0.35em; }
.legal-back { display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal-back svg { width: 16px; height: 16px; }
.footer--simple { padding-top: var(--sp-5); }
.footer--simple .footer__bottom { margin-top: 0; border-top: 0; }

/* =========================================================
   8) RESPONZIVITA
   ========================================================= */
@media (max-width: 1100px) {
  .table3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { padding: var(--sp-5) var(--sp-5) var(--sp-5) 0 !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--linka) !important; }
  .cell:nth-child(2n) { padding-left: var(--sp-5) !important; padding-right: 0 !important; border-left: 1px solid var(--linka) !important; }
  .cell:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .extras { grid-template-columns: 1fr 1fr; }
  .extras__title { grid-column: 1 / -1; }
  .reviews { grid-template-columns: 1fr; }
  .review { padding: var(--sp-6) 0; }
  .review + .review { border-left: 0; padding-left: 0; border-top: 1px solid var(--linka); }
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split__head { position: static; }
  .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--sp-7); }
  .plans { gap: 0 var(--sp-5); }
  .plan--featured { margin-inline: 0; }
  .guide-teaser { width: min(100%, 21rem); }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
  .hero__row { grid-template-columns: 1fr; align-items: start; }
  .hero__cta { justify-self: start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; gap: var(--sp-6); }
  .plan--featured { margin-inline: 0; }
  .notes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--sp-5); }
  .step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: start; }
  .step__n { font-size: clamp(3.5rem, 3rem + 3vw, 5rem); margin: 0; min-width: 2ch; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .benefit { grid-template-columns: 1fr; gap: var(--sp-2); }
  .section-head--split { grid-template-columns: 1fr; }
  .guide-teaser { transform: none; justify-self: start; }
  .guide-teaser:hover { transform: none; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; }
  .pillar { grid-template-columns: 1fr; gap: var(--sp-1); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  .logo { font-size: 1.35rem; }
  h2 { max-width: none; }
  .btn { width: 100%; }
  .btn--lg { min-height: 62px; font-size: 1.35rem; }
  .hero__cta { width: 100%; }
  .hero__metr { padding-top: 68px; }
  .br-m { display: inline; }   /* obor vždy na vlastním řádku, počet řádků nadpisu se při rotaci nemění */
  .hero__sketch svg { height: 72%; right: -12%; }
  .sketch.is-on { opacity: 0.34; }
  .facts { gap: var(--sp-5) var(--sp-4); }
  .fact { padding-right: 0; }
  .fact__num { font-size: clamp(1.6rem, 6.2vw, 2.1rem); white-space: nowrap; }
  .works { grid-template-columns: 1fr; gap: var(--sp-7); }
  .table3 { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(2n), .cell:nth-child(3n+2), .cell:nth-child(3n) {
    padding: var(--sp-5) 0 !important;
    border-left: 0 !important; border-right: 0 !important;
    border-bottom: 1px solid var(--linka) !important;
  }
  .cell:last-child { border-bottom: 0 !important; }
  .extras { grid-template-columns: 1fr; padding: var(--sp-5); }
  .scale { height: 84px; }
  .scale__pin { font-size: 0.7rem; }
  .scale__pin b { font-size: 1.05rem; }
  .scale__num { font-size: 0.8rem; }
  .scale__num--mid { display: none; }
  .addon { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-5); box-shadow: 4px 4px 0 var(--cerna); }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer ul { gap: 0.2rem; }
  .footer ul a { display: inline-block; padding: 0.4rem 0; }
  .pick__opt { font-size: 1.4rem; }
  .faq summary { font-size: 1.25rem; }
  .contact-info div { grid-template-columns: 1fr; gap: 0.1rem; }
  .tag-price { font-size: 1.4rem; left: -0.5rem; }
}

/* =========================================================
   9) PŘÍSTUPNOST — omezený pohyb
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .scale:not(.is-in) .scale__pin { opacity: 1; transform: translateX(-50%); }
  .scale.is-in .scale__pin { transition-delay: 0s; }
  .scale__strip { transform: none; transition: none; }
}

/* Tisk */
@media print {
  .header, .footer, .burger, .mobile-menu, .ck, .footer__wordmark { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   10) NÁVOD (navod.html) — levé menu, obsah vpravo
   Menu je na desktopu lepivý sloupec, na mobilu rozbalovací
   lišta pod hlavičkou. Vysvětlivky pojmů, nástroje a videa
   drží stejný jazyk: bílé archy s černým rámem, žlutá jen plocha.
   ========================================================= */
.crumbs { font-size: var(--fs-sm); font-weight: 600; color: var(--kamen); margin-bottom: var(--sp-5); }
.crumbs a { color: var(--kamen); text-decoration-color: var(--linka); }
.crumbs a:hover { color: var(--cerna); }
.crumbs span { margin: 0 0.4rem; }
.guide-hero h1 { font-size: clamp(2.9rem, 0.5rem + 7.2vw, 7rem); }
.guide-hero__row { padding-bottom: clamp(5rem, 5rem + 4vw, 8.5rem); }

.guide { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: var(--sp-7) var(--sp-9); align-items: start; padding-block: var(--section-y); }
.guide__side { position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; scrollbar-width: thin; }
.toc__toggle { display: none; }
.toc__title { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cerna); margin: 0 0 var(--sp-3); }
.toc ol { counter-reset: kap; border-top: var(--rule) solid var(--cerna); }
.toc li { counter-increment: kap; border-bottom: 1px solid var(--linka); }
.toc ol a {
  display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.4rem; align-items: baseline;
  padding: 0.55rem 0.5rem 0.6rem 0;
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; color: var(--kamen); text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), padding-left 0.15s var(--ease);
}
.toc ol a::before { content: counter(kap, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--cerna); font-variant-numeric: tabular-nums; }
.toc ol a:hover { color: var(--cerna); }
.toc ol a.is-active { color: var(--cerna); background: var(--zluta); padding-left: 0.6rem; }
.toc__cta { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 2px solid var(--cerna); }
.toc__cta p { font-size: var(--fs-sm); color: var(--kamen); margin-bottom: var(--sp-3); }
.toc__cta .btn { min-height: 50px; font-size: 1.15rem; }

.guide__body { min-width: 0; }
.guide-intro { margin-bottom: var(--sp-7); }
.guide-intro .lead { max-width: 44rem; margin-bottom: var(--sp-5); }
.guide-author { display: flex; gap: var(--sp-4); align-items: center; font-size: var(--fs-sm); color: var(--kamen); padding: var(--sp-4) 0; border-top: 2px solid var(--cerna); border-bottom: 1px solid var(--linka); }
.guide-author picture { flex: none; width: 56px; height: 70px; border: 2px solid var(--cerna); overflow: hidden; display: block; }
.guide-author img { width: 100%; height: 100%; object-fit: cover; }
.guide-author b { color: var(--cerna); }
.guide-legend { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--kamen); }
.guide-legend .term__label { margin: 0 0.3rem 0 0; vertical-align: middle; }
.guide-scope { margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5); background: var(--zluta-sv); border-left: var(--rule) solid var(--cerna); }
.guide-scope p { margin: 0; font-size: var(--fs-sm); color: var(--na-zlute-tlum); }

.chapter { padding-top: var(--sp-7); margin-top: var(--sp-7); border-top: var(--rule) solid var(--cerna); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.chapter h2 { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; max-width: none; margin-bottom: var(--sp-4); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem); }
.chapter__n { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 0.2em; margin-top: 0.05em; background: var(--zluta); border: 2px solid var(--cerna); font-size: 0.5em; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.chapter > .lead { margin-bottom: var(--sp-6); max-width: 44rem; }
.chapter h3 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); font-size: clamp(1.45rem, 1.2rem + 0.7vw, 1.8rem); }
.chapter h4 { margin-bottom: var(--sp-2); }
.chapter p, .chapter li { max-width: 44rem; }
.chapter p b { color: var(--cerna); }
.chapter em { font-style: italic; }

/* ---------- seznamy ---------- */
.bullets { display: grid; gap: 0.6rem; margin: 0 0 var(--sp-5); }
.bullets li { position: relative; padding-left: 1.4rem; line-height: 1.55; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; background: var(--zluta); border: 1.5px solid var(--cerna); }
.steps-list { counter-reset: s; display: grid; gap: 0.8rem; margin: 0 0 var(--sp-5); }
.steps-list li { counter-increment: s; position: relative; padding-left: 2.4rem; line-height: 1.55; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0.1em; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--cerna); }
.struct { counter-reset: s; display: grid; margin: 0 0 var(--sp-5); border-top: 2px solid var(--cerna); }
.struct li { counter-increment: s; position: relative; padding: var(--sp-3) 0 var(--sp-3) 3rem; border-bottom: 1px solid var(--linka); line-height: 1.55; }
.struct li::before { content: counter(s); position: absolute; left: 0; top: var(--sp-3); font-family: var(--font-head); font-weight: 900; font-size: 2rem; line-height: 0.9; color: var(--cerna); }
.struct--wf li { display: grid; grid-template-columns: 2.4rem 150px minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); align-items: start; padding-left: 0; }
.struct--wf li::before { position: static; }
.struct__wf { display: block; width: 100%; height: auto; background: var(--bila); border: 2px solid var(--cerna); }
.struct__text { min-width: 0; }
.struct .wf-ink { fill: var(--cerna); }
.struct .wf-grey { fill: var(--kamen); opacity: 0.5; }
.struct .wf-line { fill: var(--linka); }
.struct .wf-y { fill: var(--zluta); }
.struct .wf-yb { stroke: var(--cerna); stroke-width: 2; }
.struct .wf-card { fill: var(--bila); stroke: var(--cerna); stroke-width: 2; }
.struct .wf-t { font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; fill: var(--cerna); }
.struct .wf-ty { fill: var(--zluta); }
.checklist--big { margin-bottom: var(--sp-5); }
.checklist--big li { display: block; position: relative; padding-left: 1.9rem; font-size: var(--fs-body); }
.checklist--big li::before { position: absolute; left: 0; top: 0.3em; margin-top: 0; }

/* ---------- vysvětlivky, tipy, varování, prompty ---------- */
/* hero: vizualizace „nad přehybem“ */
.hero-demo { margin: var(--sp-5) 0; padding: var(--sp-4); background: var(--bila); border: 2px solid var(--cerna); }
.hero-demo svg { display: block; width: 100%; height: auto; }
.hero-demo figcaption { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--kamen); line-height: 1.45; }
.hero-demo .hd-cap { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; fill: var(--cerna); }
.hero-demo .hd-note { font-family: var(--font-body); font-size: 12.5px; fill: var(--kamen); }
.hero-demo .hd-mast { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; fill: var(--cerna); }
.hero-demo .hd-btn { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; fill: var(--zluta); }
.hero-demo .hd-frame { fill: var(--bila); stroke: var(--cerna); stroke-width: 3; }
.hero-demo .hd-bar { fill: var(--krida); }
.hero-demo .hd-dot { fill: var(--kamen); }
.hero-demo .hd-hero { fill: var(--zluta); }
.hero-demo .hd-paper { fill: var(--zluta-sv); stroke: var(--cerna); stroke-width: 3; }
.hero-demo .hd-ink { fill: var(--cerna); }
.hero-demo .hd-grey { fill: var(--kamen); opacity: 0.55; }
.hero-demo .hd-photo { fill: var(--bila); stroke: var(--cerna); stroke-width: 2; }
.hero-demo .hd-photo--paper { fill: var(--zluta); }
.hero-demo .hd-below { opacity: 0.32; }
.hero-demo .hd-page { fill: var(--krida); stroke: var(--cerna); stroke-width: 2; stroke-dasharray: 6 5; }
.hero-demo .hd-card { fill: var(--bila); stroke: var(--cerna); stroke-width: 2; }
.hero-demo .hd-fold { stroke: var(--cerna); stroke-width: 3; stroke-dasharray: 9 6; }
.term, .tip, .warn, .prompt, .fun { margin: var(--sp-5) 0; }
.term { padding: var(--sp-4) var(--sp-5); background: var(--zluta-sv); border-left: var(--rule) solid var(--cerna); }
.term p + p { margin-top: var(--sp-3); }
.term--story { background: var(--bila); border: 2px solid var(--cerna); border-left-width: var(--rule); }
.term__label, .tip__label, .warn__label, .prompt__label, .fun__label {
  display: inline-block; padding: 0.3rem 0.5rem 0.35rem; margin-bottom: var(--sp-3);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase;
}
.term__label { background: var(--cerna); color: #fff; }
.tip { padding: var(--sp-4) var(--sp-5); background: var(--bila); border: 2px solid var(--cerna); }
.tip__label { background: var(--zluta); color: var(--cerna); border: 2px solid var(--cerna); }
.warn { padding: var(--sp-4) var(--sp-5); background: var(--cerna); color: #fff; }
.warn p { color: rgba(255, 255, 255, 0.86); }
.warn p b, .warn a { color: #fff; }
.warn__label { background: var(--zluta); color: var(--cerna); }
.fun { padding: var(--sp-4) var(--sp-5); background: var(--zluta); color: var(--cerna); border: 2px solid var(--cerna); box-shadow: 6px 6px 0 var(--cerna); }
.fun p { color: var(--cerna); }
.fun__label { background: var(--cerna); color: #fff; }
.prompt { position: relative; padding: var(--sp-4) var(--sp-5) var(--sp-5); background: var(--bila); border: 2px solid var(--cerna); }
.prompt__label { background: var(--krida); color: var(--cerna); border: 2px solid var(--cerna); }
.prompt pre { margin: 0 0 var(--sp-4); white-space: pre-wrap; word-wrap: break-word; font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.55; color: var(--grafit); max-width: none; }
.prompt__copy { min-height: 46px; font-size: 1.1rem; }

/* ---------- tabulky ---------- */
.gtable-wrap { overflow-x: auto; margin: var(--sp-5) 0; }
.gtable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.45; }
.gtable th, .gtable td { padding: var(--sp-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--linka); }
.gtable th { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--cerna); border-bottom: 2px solid var(--cerna); }
.gtable th:first-child, .gtable td:first-child { padding-left: 0; }
.gtable td:first-child { font-weight: 600; color: var(--cerna); }
.gtable td small { display: block; font-weight: 400; color: var(--kamen); font-size: var(--fs-xs); }
.gtable--compare td.yes { background: var(--zluta-sv); color: var(--cerna); font-weight: 600; }
.gtable--compare td.no { color: var(--kamen); }
.swatch { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.25rem; background: var(--c); border: 1.5px solid var(--cerna); }

/* ---------- videa: načtou se až po kliknutí ---------- */
.videos { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: var(--sp-6) 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--cerna); border: 2px solid var(--cerna); color: #fff; }
.video__btn {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem;
  width: 100%; height: 100%; padding: var(--sp-5); text-align: left;
  background: var(--cerna) repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 32px);
  border: 0; color: #fff; cursor: pointer;
}
.video__btn:hover .video__play, .video__btn:focus-visible .video__play { background: #fff; }
.video__play { position: absolute; left: var(--sp-5); top: var(--sp-5); width: 56px; height: 56px; background: var(--zluta); border: 2px solid var(--cerna); transition: background-color 0.15s var(--ease); }
.video__play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); border-left: 18px solid var(--cerna); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video__title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.video__note { font-size: var(--fs-xs); color: var(--na-cerne-tlum); max-width: 34rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA pás v obsahu ---------- */
.cta-band { margin: var(--sp-7) 0 0; padding: var(--sp-5) var(--sp-6); background: var(--zluta); border: 2px solid var(--cerna); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center; }
.cta-band h3 { margin: 0 0 var(--sp-2); }
.cta-band p { margin: 0; color: var(--na-zlute-tlum); font-size: var(--fs-sm); max-width: 34rem; }

/* ---------- nástroje ---------- */
.tool, .quiz, .calc, .selftest, .todo, .compare { margin: var(--sp-5) 0; padding: var(--sp-5); background: var(--bila); border: 2px solid var(--cerna); }
.tool__grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--sp-4); }
.tool__field { display: grid; gap: 0.3rem; font-size: var(--fs-sm); font-weight: 700; color: var(--cerna); }
.tool__field input { min-height: 50px; padding: 0.6rem 0.75rem; width: 100%; background: var(--krida); border: 0; border-bottom: 2px solid var(--cerna); font-weight: 400; }
.tool__field input:focus { outline: none; background: var(--zluta-sv); }
.tool__out { margin-top: var(--sp-4); }
.tool__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--kamen); }
.tool__empty { color: var(--kamen); }
.dt-list { display: grid; gap: 0.5rem; border-top: 2px solid var(--cerna); margin-bottom: var(--sp-3); }
.dt-list li { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--linka); max-width: none; }
.dt-list span { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--cerna); word-break: break-all; }
.dt-list .btn { min-height: 42px; font-size: 1.05rem; padding-inline: 1rem; width: auto; }

.quiz__q { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
.quiz__q legend { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--cerna); margin-bottom: var(--sp-2); padding: 0; }
.quiz__q label, .selftest label, .todo label { display: block; position: relative; padding: 0.45rem 0 0.45rem 2.3rem; cursor: pointer; line-height: 1.45; max-width: 44rem; }
.quiz__q input, .selftest input, .todo input { position: absolute; left: 0; top: 0.6rem; width: 22px; height: 22px; margin: 0; accent-color: var(--cerna); }
.quiz__result { margin-top: var(--sp-5); padding: var(--sp-5); background: var(--zluta); border: 2px solid var(--cerna); }
.quiz__result:focus { outline: none; }
.quiz__result h4 { margin-bottom: var(--sp-2); }
.quiz__result p { color: var(--na-zlute-tlum); }
.quiz__result .btn { margin-top: var(--sp-2); }

.calc__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); }
.calc__seg { display: inline-grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--cerna); }
.calc__segbtn { padding: 0.55rem 1.1rem; background: var(--krida); border: 0; border-right: 2px solid var(--cerna); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--kamen); cursor: pointer; white-space: nowrap; }
.calc__segbtn:last-child { border-right: 0; }
.calc__segbtn[aria-pressed="true"] { background: var(--zluta); color: var(--cerna); }
.calc__segbtn:focus-visible { outline: 3px solid var(--cerna); outline-offset: -3px; }
.calc__scope { margin: 0; font-size: var(--fs-sm); color: var(--kamen); }
.calc__time { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--linka); font-size: var(--fs-sm); }
.calc__check { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--cerna); cursor: pointer; }
.calc__check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--cerna); }
.calc__rate { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--cerna); }
.calc__rate input { width: 6.5rem; min-height: 42px; padding: 0.4rem 0.6rem; background: var(--krida); border: 0; border-bottom: 2px solid var(--cerna); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc__rate input:focus { outline: none; background: var(--zluta-sv); }
.calc__range { display: grid; gap: 0.5rem; margin-bottom: var(--sp-5); font-weight: 600; }
.calc__range b { color: var(--cerna); }
.calc__range input { width: 100%; accent-color: var(--cerna); }
.calc__rows { display: grid; gap: var(--sp-4); }
.calc__row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: var(--sp-3) var(--sp-4); align-items: center; }
.calc__label b { display: block; color: var(--cerna); font-size: var(--fs-sm); line-height: 1.3; }
.calc__label small { display: block; color: var(--kamen); font-size: var(--fs-xs); line-height: 1.35; }
.calc__track, .bar__track, .todo__bar { display: block; height: 22px; background: var(--krida); border: 2px solid var(--cerna); overflow: hidden; }
.calc__fill, .bar__fill, .todo__bar span {
  display: block; height: 100%;
  background: var(--zluta) repeating-linear-gradient(90deg, var(--cerna) 0 1px, transparent 1px 12px) left top / 100% 8px repeat-x;
  transition: width 0.5s var(--ease-out);
}
.calc__val, .bar__val { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--cerna); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 6.5rem; text-align: right; }
.bars { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0; }
.bar { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; font-size: var(--fs-sm); font-weight: 600; color: var(--cerna); }
.bar__fill { width: var(--w); }

.compare { padding: 0; }
.compare__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--cerna); }
.compare__tab { padding: 0.9rem 1rem; background: var(--krida); border: 0; border-right: 2px solid var(--cerna); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--kamen); cursor: pointer; }
.compare__tab:last-child { border-right: 0; }
.compare__tab[aria-selected="true"] { background: var(--zluta); color: var(--cerna); }
.compare__panel { padding: var(--sp-5); }
.compare__panel[hidden] { display: none; }
.mock__h1 { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.05; color: var(--cerna); margin-bottom: var(--sp-3); }
.mock__p { color: var(--grafit); margin-bottom: var(--sp-4); }
.mock__btn { display: inline-block; padding: 0.6rem 1.2rem; margin-bottom: var(--sp-5); background: var(--zluta); border: 2px solid var(--cerna); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--cerna); }
.mock__btn--grey { background: var(--krida); color: var(--kamen); border-color: var(--linka); }
.mock__h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: var(--cerna); margin: var(--sp-4) 0 var(--sp-2); }
.mock__list { display: grid; gap: 0.3rem; margin: 0 0 var(--sp-3); color: var(--grafit); }
.mock__list li { position: relative; padding-left: 1.3rem; }
.mock__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--zluta); border: 1.5px solid var(--cerna); }
.compare__notes { display: grid; gap: 0.4rem; padding-top: var(--sp-4); border-top: 1px solid var(--linka); font-size: var(--fs-sm); color: var(--kamen); }
.compare__notes li { position: relative; padding-left: 1.3rem; }
.compare__notes li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--zluta); border: 1.5px solid var(--cerna); }
#cmp-bad .compare__notes li::before { background: var(--cerna); }

.selftest__out { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 2px solid var(--cerna); display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: center; }
.selftest__score { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--kamen); white-space: nowrap; }
.selftest__score b { font-size: 3rem; line-height: 1; color: var(--cerna); padding: 0 0.1em; }
.selftest__out p { margin: 0; color: var(--grafit); }
.selftest.is-bad .selftest__score b { background: var(--zluta); }

.todo h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: 1.35rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--cerna); }
.todo h3:first-child { margin-top: 0; }
.todo label.is-done { color: var(--kamen); text-decoration: line-through; text-decoration-color: var(--cerna); }
.todo label.is-done b { color: var(--kamen); }
.todo__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 2px solid var(--cerna); display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-4); align-items: center; }
.todo__progress { font-weight: 700; color: var(--cerna); white-space: nowrap; }
.todo__bar span { width: 0; }
.linkbtn--dark { color: var(--kamen); text-decoration: underline; font-size: var(--fs-sm); }
.linkbtn--dark:hover { color: var(--cerna); }

/* ---------- čtyři cesty k webu ---------- */
.ways { border-top: var(--rule) solid var(--cerna); margin: var(--sp-5) 0; }
.way { padding: var(--sp-5) 0; border-bottom: 1px solid var(--linka); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-3) var(--sp-6); }
.way h3 { margin: 0; grid-column: 1 / -1; }
.way__for { grid-column: 1 / -1; font-weight: 600; color: var(--kamen); margin: 0 0 var(--sp-2); }
.pm { display: grid; gap: 0.35rem; font-size: var(--fs-sm); align-content: start; }
.pm li { position: relative; padding-left: 1.6rem; line-height: 1.45; }
.pm li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 15px; height: 15px; border: 1.5px solid var(--cerna); }
.pm .plus::before { background: var(--cerna) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pm .minus::before { background: var(--bila) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 11px no-repeat; }
.way__ex { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--kamen); margin: 0; }

/* ---------- slovníček ---------- */
.glossary { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); border-top: 2px solid var(--cerna); }
.glossary dt, .glossary dd { padding: var(--sp-3) 0; border-bottom: 1px solid var(--linka); }
.glossary dt { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: var(--cerna); padding-right: var(--sp-4); }
.glossary dd { margin: 0; color: var(--grafit); font-size: var(--fs-sm); line-height: 1.55; }

.faq--guide { margin-top: var(--sp-5); }

/* ---------- závěr ---------- */
.guide-end { margin-top: var(--sp-8); padding: var(--sp-6); background: var(--cerna); color: #fff; }
.guide-end h2 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem); max-width: none; }
.guide-end p { color: var(--na-cerne-tlum); max-width: 44rem; }
.guide-end p b { color: #fff; }
.guide-end a:not(.btn) { color: #fff; }
.guide-end__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0; }
.guide-end .btn--outline { color: #fff; border-color: #fff; }
.guide-end .btn--outline:hover { background: #fff; color: var(--cerna); }
.guide-end__share { font-size: var(--fs-sm); }

/* ---------- CTA mimo řemeslo: záměrně cizí vizuál (lukasmikula.cz: tmavá, limetka, zaoblení) ---------- */
.lm { margin: var(--sp-6) 0 0; padding: var(--sp-5) var(--sp-6); background: #111; color: #fff; border: 1px solid #2f2f2f; border-radius: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center;
  font-family: 'DM Sans', 'Lexend', 'Segoe UI', system-ui, sans-serif; }
.lm__badge { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: var(--sp-3); padding: 0.3rem 0.9rem; border: 1px solid #2f2f2f; border-radius: 999px; background: #1a1a1a; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #f8f8f8; }
.lm__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #82ff1f; }
.lm h3 { margin: 0 0 var(--sp-2); font-family: 'Lexend', 'DM Sans', 'Segoe UI', system-ui, sans-serif; font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.01em; color: #fff; }
.lm p { margin: 0; max-width: 36rem; font-size: var(--fs-sm); color: #d1d1d1; }
.lm p b { color: #c9ff90; font-weight: 600; }
.lm__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0.8rem 1.6rem; border-radius: 6px; background: #6da405; color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color 0.15s var(--ease), transform 0.15s var(--ease); }
.lm__btn:hover, .lm__btn:focus-visible { background: #82ff1f; color: #111; }
.lm__btn:active { transform: translateY(1px); }

/* aktivní stránka v hlavní navigaci */
.nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zluta); text-underline-offset: 6px; }

/* ---------- responzivita návodu ---------- */
@media (max-width: 1100px) {
  .guide { grid-template-columns: 1fr; gap: var(--sp-5); padding-top: 0; }
  .guide__side { top: var(--header-h); z-index: 90; max-height: none; overflow: visible; }
  .toc { background: var(--krida); border-bottom: 2px solid var(--cerna); }
  .toc__toggle { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem var(--sp-3); align-items: center; width: 100%; padding: 0.7rem 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--cerna); }
  .toc__toggle-label { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
  .toc__toggle-current { grid-row: 2; font-size: var(--fs-sm); font-weight: 600; color: var(--kamen); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc__toggle svg { grid-row: 1 / span 2; width: 28px; height: 28px; transition: transform 0.2s var(--ease); }
  .toc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .toc__list { display: none; padding: 0 0 var(--sp-4); max-height: calc(100vh - var(--header-h) - 90px); overflow-y: auto; }
  .toc.is-open .toc__list { display: block; }
  .toc__title { display: none; }
  .toc ol a { font-size: 1rem; padding: 0.65rem 0.5rem 0.7rem 0; }
  .guide__body { padding-top: var(--sp-4); }
  .chapter { scroll-margin-top: calc(var(--header-h) + 92px); }
  .way { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .glossary dt { border-bottom: 0; padding-bottom: 0; }
  .glossary dd { padding-top: 0.3rem; }
  .cta-band { grid-template-columns: 1fr; }
  .lm { grid-template-columns: 1fr; padding: var(--sp-5); }
  .lm__btn { width: 100%; }
}

@media (max-width: 640px) {
  .gtable-wrap::before { content: "Tabulku můžete posouvat do strany."; display: block; font-size: var(--fs-xs); color: var(--kamen); margin-bottom: 0.4rem; }
  .tool__grid { grid-template-columns: 1fr; }
  .calc__row, .bar { grid-template-columns: 1fr; gap: 0.4rem; }
  .calc__seg { width: 100%; }
  .calc__time { flex-direction: column; align-items: flex-start; }
  .struct--wf li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .struct__wf { max-width: 220px; }
  .struct__text { grid-column: 2; }
  .hero-demo__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero-demo__scroll svg { min-width: 620px; }
  .hero-demo::before { content: "Obrázek můžete posouvat do strany."; display: block; font-size: var(--fs-xs); color: var(--kamen); margin-bottom: 0.4rem; }
  .calc__val, .bar__val { text-align: left; }
  .chapter h2 { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); gap: var(--sp-3); }
  .compare__tabs { grid-template-columns: 1fr; }
  .compare__tab { border-right: 0; border-bottom: 2px solid var(--cerna); }
  .compare__tab:last-child { border-bottom: 0; }
  .todo__foot { grid-template-columns: 1fr; }
  .selftest__out { grid-template-columns: 1fr; }
  .dt-list .btn { width: 100%; }
  .guide-end { padding: var(--sp-5); }
  .video__play { width: 48px; height: 48px; }
}
