/* ==========================================================================
   ProFabrik web 2026, hlavní stránka a podstránky (vzhled podle návrhu z Claude Design)
   Barvy z loga: amber #FCA424 + břidlicová. Písmo Saira, nadpisy v zúžené šíři.
   Zaoblení: ovládací prvky 6 px, karty a fotky 8 px.
   Vrstvy (z-index): hlavička 50, lišta cookies 90, skip link 120.
   Web je vždy světlý, systémový tmavý režim nesleduje. Sekce se pravidelně střídají
   bílá a světle šedá, tmavě modrá je jen karta poptávky a patička na konci.
   ========================================================================== */

:root {
  --amber: #FCA424;
  --amber-hover: #F29A14;
  --amber-ink: #8A5600;
  --amber-tint: #FFF1D9;
  --amber-tint-ink: #6B4A0E;
  --ink-950: #0F1A1F;
  --ink-900: #15202B;
  --ink-800: #1C2833;
  --ink-700: #33404C;
  --ink-500: #6E7B86;

  --bg: #F6F7F8;
  --surface: #FFFFFF;
  --surface-2: #F6F7F8;
  --input-bg: #FFFFFF;
  --text: #15202B;
  --text-muted: #4C5966;
  --text-soft: #5B6873;
  --line: #E1E5E9;
  --line-strong: #C9D0D6;
  --logo-ink: #3A525D;
  --focus: #15202B;
  --error: #B42318;
  --seg-active: #FFFFFF;
  --shadow: 21 32 43;

  --dark-card: #15202B;
  --dark-input: #1C2833;
  --dark-line: #33404C;
  --dark-muted: #B7C0C8;
  --dark-label: #D5DCE2;
  --footer-bg: #111920;

  /* Pozadí sekcí se střídá (bílá, světle šedý pás), aby se části neslévaly. */
  --page-bg: #FFFFFF;
  --band-bg: #EDF0F3;

  --font: 'Saira', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 6px;
  --r-lg: 8px;
  --header-h: 80px;
  --container-max: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}


/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 120;
  padding: .75rem 1rem;
  background: var(--amber);
  color: var(--ink-950);
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.eyebrow {
  margin: 0;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.h2 {
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--band { background: var(--band-bg); }

/* ---------- Tlačítka ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: var(--btn-h);
  padding: 0 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease-out);
}
.btn i { font-size: 1.05em; transition: transform .25s var(--ease-out); }
.btn:hover i.ph-arrow-right { transform: translateX(3px); }
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn--primary { background: var(--amber); color: var(--ink-950); }
.btn--primary:hover:not([disabled]) { background: var(--amber-hover); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--text); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: var(--dark-line); }
.btn--ghost-dark:hover { border-color: #fff; }

.btn--sm { --btn-h: 42px; padding: 0 1.1rem; font-size: .95rem; }
.btn--lg { --btn-h: 54px; padding: 0 1.5rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn.is-loading { cursor: progress; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page-bg);
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgb(var(--shadow) / .45); }
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { flex: none; display: block; border-radius: 4px; }
.brand img { height: 36px; width: auto; }

.site-nav { flex: 1; display: none; }
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  justify-content: center;
  gap: .25rem 1.75rem;
}
.site-nav a {
  position: relative;
  display: block;
  padding: .5rem 0;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .2rem;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); }

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.menu-toggle {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--page-bg);
  border-top: 1px solid var(--line);
  padding-block: 1rem 2rem;
}
.mobile-menu__links { list-style: none; margin: 0; padding: 0; }
.mobile-menu__links a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 1rem; margin-top: 1.75rem; }
.mobile-menu__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

@media (max-width: 479px) {
  :root { --header-h: 64px; }
  .brand img { height: 30px; }
  .site-header__actions .btn { display: none; }
}
@media (min-width: 1024px) {
  .site-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
/* ---------- Hero ---------- */
.hero__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 0;
}
.hero__intro { display: flex; flex-direction: column; gap: 1.6rem; }
.hero__title {
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(3.1rem, 1.6rem + 5.4vw, 6rem);
  line-height: .95;
  letter-spacing: -.02em;
  max-width: 7.2em;
  text-wrap: balance;
}
.hero__lead {
  margin: 0;
  max-width: 29rem;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.trust {
  display: grid;
  gap: .9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.trust__title { font-weight: 400; font-size: .875rem; line-height: 1.3; color: var(--text-soft); }

.tiles {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 15rem;
  gap: 12px;
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: #DDE2E6;
  color: #fff;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: outline-color .2s;
}
.tile:hover, .tile:has(.tile__title a:focus-visible) { outline-color: var(--amber); }
.tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform .9s var(--ease-out);
}
.tile:hover .tile__img { transform: scale(1.04); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 15 20 / .25) 0%, rgb(10 15 20 / 0) 30%, rgb(10 15 20 / 0) 42%, rgb(10 15 20 / .86) 100%);
}
.tile__body { display: grid; gap: .35rem; min-width: 0; }
.tile__title {
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.05;
  text-wrap: balance;
}
.tile__title a { text-decoration: none; }
.tile__title a:hover { color: inherit; }
.tile__title a:focus-visible { outline: none; }
.tile__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tile__desc { margin: 0; font-size: .95rem; line-height: 1.4; color: #DDE3E8; }
.tile__arrow {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-950);
  font-size: 1.2rem;
  transition: transform .3s var(--ease-out);
}
.tile:hover .tile__arrow { transform: translateX(3px); }
.tile__calc {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  padding: 0 .8rem;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: var(--r-sm);
  background: rgb(10 15 20 / .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.tile__calc i { color: var(--amber); }
.tile__calc:hover { background: rgb(10 15 20 / .7); border-color: #fff; color: #fff; }
.tile__calc:focus-visible { outline-color: var(--amber); }

@media (min-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 17.5rem; }
  .tile { padding: 1.25rem; }
  .tile__title { font-size: 1.55rem; }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 4vw, 3rem);
    align-items: stretch;
  }
  .hero__text { padding: 1.5rem 0 .5rem; }
  .tiles { grid-auto-rows: clamp(16rem, 34vh, 20rem); }
  .tile { padding: 1.35rem 1.5rem; }
  .tile__title { font-size: 1.75rem; }
}

/* ---------- Pás s logy klientů ---------- */
.marquee { position: relative; overflow: hidden; }
.marquee.is-running {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-dur, 60s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.marquee__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.25rem;
}
.marquee.is-running .marquee__list { flex-wrap: nowrap; gap: 0; }
.marquee.is-running .logo { margin-right: clamp(2.25rem, 3.5vw, 3.5rem); }
/* Loga jsou předbarvená PNG (světlá a tmavá varianta), fungují i při otevření souboru z disku. */
.logo { flex: none; opacity: .85; transition: opacity .25s; }
.logo:hover { opacity: 1; }
.logo:not(.logo--text) { background-repeat: no-repeat; background-position: center; background-size: contain; }
.logo--schenker { width: 128px; height: 22px; background-image: url(../logos/klienti/db-schenker.png); }
.logo--tatra { width: 44px; height: 44px; background-image: url(../logos/klienti/tatra.png); }
.logo--pilsner { width: 58px; height: 45px; background-image: url(../logos/klienti/pilsner-urquell.png); }
.logo--bd { width: 76px; height: 39px; background-image: url(../logos/klienti/black-decker.png); }
.logo--brembo { width: 112px; height: 26px; background-image: url(../logos/klienti/brembo.png); }
.logo--raben { width: 100px; height: 22px; background-image: url(../logos/klienti/raben.png); }
.logo--salzgitter { width: 123px; height: 34px; background-image: url(../logos/klienti/salzgitter.png); }
.logo--kunin { width: 54px; height: 44px; background-image: url(../logos/klienti/mlekarna-kunin.png); }
.logo--shimano { width: 114px; height: 15px; background-image: url(../logos/klienti/shimano.png); }
.logo--cscont { width: 114px; height: 20px; background-image: url(../logos/klienti/cs-cont.png); }
.logo--roechling { width: 100px; height: 28px; background-image: url(../logos/klienti/roechling.png); }
.logo--moravia { width: 85px; height: 40px; background-image: url(../logos/klienti/moravia-stamping.png); }
.logo--dssmith { width: 65px; height: 44px; background-image: url(../logos/klienti/ds-smith.png); }
.logo--text {
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--logo-ink);
}

/* ---------- Rizikové zóny ---------- */
.zones__head { display: grid; gap: .9rem; }
.zones__title { max-width: 14em; }
.zones__grid {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.zone {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .2s;
}
.zone:hover, .zone:has(.zone__title a:focus-visible) { border-color: var(--amber); }
.zone__img { height: 13.75rem; overflow: hidden; background: #DDE2E6; }
.zone__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.zone:hover .zone__img img { transform: scale(1.04); }
.zone__body { display: grid; gap: .6rem; padding: 1.5rem; }
.zone__title { font-stretch: 87.5%; font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.zone__title a { text-decoration: none; }
.zone__title a:focus-visible { outline: none; }
.zone__title a::after { content: ''; position: absolute; inset: 0; }
.zone__body p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text-muted); }
.zone__service {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  font-weight: 600;
  font-size: .875rem;
  color: var(--amber-ink);
}
.zone__service i { transition: transform .25s var(--ease-out); }
.zone:hover .zone__service i { transform: translateX(3px); }

/* ---------- Kalkulátor úspory (podle návrhu z Claude Design, varianta „na šířku“) ---------- */
.calc-wide { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); align-items: stretch; }
@media (min-width: 1024px) { .calc-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-wide__controls { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.calc-wide__title { display: grid; gap: .9rem; }
.calc-wide__title .h2 { max-width: 12em; }

.calc { display: grid; gap: 1.85rem; }
.calc__type { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc .segmented { background: var(--input-bg); }
.range { display: grid; gap: .6rem; min-width: 0; }
.range__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
  font-size: .95rem;
}
.range__head output { font-variant-numeric: tabular-nums; white-space: nowrap; }
.range input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: var(--amber);
  cursor: pointer;
}

/* Panel se na desktopu natáhne jen na výšku levé části, zbytek místa dostane hala. */
.calc-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--bg);
}

/* Přepínač režimu je jako jediný prvek zaoblený do pilulky, odlišuje se tím od zadávání hodnot. */
.mode-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.mode-toggle button {
  flex: 1;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.mode-toggle button:hover:not([disabled]) { color: var(--text); }
.mode-toggle button[aria-pressed="true"] { background: var(--ink-900); color: #fff; }
.mode-toggle button[disabled] { opacity: .4; cursor: not-allowed; }

.calc-panel__result { display: grid; gap: .1rem; }
.calc-panel__caption, .calc-panel__sub { margin: 0; font-size: .95rem; color: var(--text-soft); }
.calc-panel__sub { font-size: .875rem; }
.calc-big {
  margin: 0;
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(2.6rem, 1.8rem + 2.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* Hala: jeden svítící bod = jedno svítidlo (nad 60 svítidel jeden bod zastupuje víc).
   Počet sloupců dopočítává JS podle šířky a počtu svítidel, nejvýš 10 jako v návrhu. */
.calc-panel__hall {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  min-height: 9rem;
  padding: 1.25rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
}
.hall {
  --lamp: 18px;
  --glow: 18px;
  --cols: 10;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 40px));
  gap: 14px clamp(4px, 1.5vw, 18px);
  justify-content: center;
  justify-items: center;
  align-items: center;
  width: 100%;
}
.lamp {
  width: var(--lamp);
  height: var(--lamp);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 var(--glow) calc(var(--glow) * .4) rgb(252 164 36 / .42);
  transition: width .6s var(--ease-out), height .6s var(--ease-out), background-color .6s, box-shadow .6s;
  animation: lamp-in .5s var(--ease-out) both;
}
.hall.is-led .lamp { background: #F7BE5C; }
.hall.is-after .lamp { background: #FFD98A; box-shadow: 0 0 calc(var(--glow) * .5) calc(var(--glow) * .15) rgb(252 164 36 / .25); }
.hall.is-after .lamp.is-dim { background: var(--line); box-shadow: none; }
@keyframes lamp-in { from { opacity: 0; transform: scale(.3); } }
/* Na šedém pásu je panel bílý a hala šedá, opačně než na bílé sekci. */
.section--band .calc-panel { background: var(--surface); }
.section--band .calc-panel__hall { background: var(--bg); }
.hall__legend { margin: 0; font-size: .8125rem; color: var(--text-soft); text-align: center; }

/* Úspora vlevo, tlačítko vpravo. Tlačítko se nesmršťuje, částka se případně zalomí u „až“.
   Upozornění na záruku a mobil mají tlačítko pod textem. */
.calc-save {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  background: var(--amber-tint);
}
.calc-save__text { flex: 1 1 auto; min-width: 0; }
.calc-save .btn { flex: none; }
@media (min-width: 560px) {
  .calc-save:not(.is-warranty) { flex-direction: row; align-items: center; justify-content: space-between; }
}
.calc-save__label { margin: 0; font-size: .875rem; color: var(--amber-tint-ink); }
.calc-save__value {
  margin: 0;
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.15rem + .9vw, 1.75rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.calc-save__note { margin: .15rem 0 0; font-size: .75rem; color: var(--text-soft); }
.calc-save__warranty { margin: 0; font-size: .95rem; line-height: 1.45; }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r-sm) + 4px);
}
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .35rem .5rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.15;
  text-align: center;
  color: var(--text-muted);
  transition: background-color .15s, color .15s;
}
.segmented span small { font-weight: 400; font-size: .78rem; opacity: .85; }
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--ink-900); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- Kalkulátor nárazu (bariéry) ----------
   Rozvržení sdílí s kalkulátorem osvětlení (.calc-wide, .calc-panel, .calc-save), vzhled je vlastní. */
.impact-lead { margin: 0; max-width: 34rem; color: var(--text-muted); }
.impact-factors { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.impact-factors__title { margin: 0 0 .8rem; font-weight: 600; font-size: .95rem; }
.impact-factors ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.impact-factors li { display: flex; align-items: center; gap: .65rem; color: var(--text-muted); }
.impact-factors i {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--amber-tint);
  color: var(--amber-ink);
  font-size: 1rem;
}

.impact-panel { gap: 1rem; }
/* Čelní náraz je hlavní výsledek, volné místo v panelu dostane on. */
.impact-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.impact-main__text { display: grid; gap: .1rem; min-width: 0; }

/* Nákres: žlutočerná zábrana a šipka nárazu pod daným úhlem (oblouk ukazuje úhel). */
.impact-fig { display: block; flex: none; width: 72px; height: auto; overflow: visible; color: var(--text-soft); }
.impact-fig--main { width: clamp(96px, 13vw, 172px); color: var(--text); }
.impact-fig__bar { fill: var(--amber); }
.impact-fig__stripes { fill: url(#hazard); opacity: .9; }
.impact-fig__line { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.impact-fig--main .impact-fig__line { stroke-width: 2.8; }
.impact-fig__head { fill: currentColor; }
.impact-fig__arc { fill: none; stroke: var(--amber-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.impact-fig--main .impact-fig__arc { stroke-width: 1.6; }

/* Šikmé nárazy: na mobilu řádky pod sebou, od 480 px tři karty vedle sebe. */
.impact-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.impact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
}
.impact-card__angle { margin: 0; font-size: .875rem; line-height: 1.3; color: var(--text-soft); }
.impact-card__value {
  margin: 0;
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.65rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 480px) {
  .impact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .impact-card { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .3rem; padding: 1rem; }
  .impact-card .impact-fig { margin-bottom: .4rem; }
}
/* Nad 50 kJ už flexibilní zábrany nestačí: karta dostane žlutý rámeček. */
.impact-main.is-over, .impact-card.is-over { box-shadow: inset 0 0 0 2px var(--amber); }
.impact-main.is-over .calc-big, .impact-card.is-over .impact-card__value { color: var(--amber-ink); }

.impact-status__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.impact-status__title i { flex: none; color: var(--amber-ink); font-size: 1.35rem; }
.impact-status__text { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--text-muted); }
.impact-note { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--text-soft); }

/* ---------- Jak spolupracujeme a rychlá poptávka ---------- */
.contact__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact__process { display: flex; flex-direction: column; gap: clamp(2rem, 3vw, 2.5rem); min-width: 0; }
.contact__title { display: grid; gap: .9rem; }

/* Časová osa. Na desktopu vyplní výšku vedle formuláře, volné místo se rozdělí mezi kroky. */
.timeline {
  --dot: 56px;
  --tl-gap: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--tl-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline__item {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: var(--dot) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.timeline__item:last-child { flex: none; }
/* Spojnice vede ze středu kolečka do středu dalšího, ať jsou kroky od sebe jakkoli daleko. */
.timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: calc(var(--dot) / 2);
  bottom: calc(-1 * var(--tl-gap) - var(--dot) / 2);
  left: calc(var(--dot) / 2 - 1px);
  width: 2px;
  background: var(--line);
}
.timeline__num {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--amber-ink);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background-color .25s, border-color .25s, color .25s;
}
.timeline__item.is-active .timeline__num { background: var(--amber); border-color: var(--amber); color: var(--ink-950); }
.timeline__body { display: grid; gap: .35rem; padding-top: .4rem; }
.timeline__body h3 { font-stretch: 87.5%; font-weight: 700; font-size: 1.625rem; line-height: 1.15; }
.timeline__body p { margin: 0; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
@media (max-width: 559px) {
  .timeline { --dot: 48px; }
  .timeline__item { gap: 1rem; }
  .timeline__num { font-size: 1.2rem; }
  .timeline__body { padding-top: .25rem; }
  .timeline__body h3 { font-size: 1.4rem; }
}

.form-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--dark-card);
  color: #fff;
}
.form-card :focus-visible { outline-color: var(--amber); }
.form-card .form { display: flex; flex-direction: column; gap: 1.625rem; }
.form-card__head { display: grid; gap: .4rem; }
.form-card__title { font-stretch: 87.5%; font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.1vw, 2.5rem); line-height: 1.05; }
.form-card__head p { margin: 0; font-size: 1.125rem; color: var(--dark-muted); }

.form__grid { display: grid; grid-template-columns: 1fr; gap: 1rem .75rem; }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { padding: 0; font-weight: 500; font-size: .9rem; line-height: 1.3; }
.field legend { margin-bottom: .45rem; }
.field__optional { font-weight: 400; opacity: .75; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:hover, .field textarea:hover { border-color: var(--ink-500); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(252 164 36 / .45);
}
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field__error { margin: 0; font-size: .875rem; color: var(--error); }
.field__error:empty { display: none; }

/* Tmavá karta formuláře */
.form-card .form__grid { gap: 1.125rem; }
.form-card .field label, .form-card .field legend { color: var(--dark-label); font-weight: 600; font-size: .9375rem; }
.form-card .field legend { margin-bottom: .6rem; }
.form-card .field input, .form-card .field textarea {
  background: var(--dark-input);
  border-color: var(--dark-line);
  color: #fff;
}
.form-card .field input:hover, .form-card .field textarea:hover { border-color: #56687A; }
.form-card .field input:focus-visible, .form-card .field textarea:focus-visible { border-color: var(--amber); }
.form-card .field__error { color: #FF9B8C; }
.form-card .field.has-error input { border-color: #FF9B8C; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--input-bg);
  font-weight: 500;
  font-size: .95rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--ink-500); }
.chip input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--ink-950); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgb(252 164 36 / .5); }
.form-card .chip span { min-height: 44px; padding: 0 .9rem; background: transparent; border-color: var(--dark-line); color: #fff; font-weight: 600; }
/* Když se čtyři volby nevejdou na jeden řádek, srovnají se do mřížky 2 × 2, ať žádná nezůstane sama. */
@container (max-width: 490px) {
  .form-card .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card .chip span { width: 100%; justify-content: center; text-align: center; }
}
.form-card .chip:hover span { border-color: #56687A; }
.form-card .chip input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--ink-950); }
.field.has-error .chip span { border-color: #FF9B8C; }

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

.form__note { margin: 1.25rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--text-soft); }
.form-card .form__note { margin: 0; color: #8D99A4; }
.form__note a { text-underline-offset: 3px; }
.form-card .form__note a { color: var(--dark-label); }
.form-card .form__note a:hover { color: #fff; }
.form__foot {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.form-card .form__foot { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--dark-line); }
.form__phone { margin: 0; font-size: 1rem; color: var(--dark-muted); }
.form__phone a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.form__phone a:hover { color: var(--amber); }
.form__status { margin: 1rem 0 0; color: #FF9B8C; font-size: .95rem; }
.form-card .form__status { margin: 0; }
.form__status:empty { display: none; }

.form-success { padding: .5rem 0; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-950);
  font-size: 1.6rem;
}
.form-success h3 { margin: 1rem 0 .6rem; font-stretch: 87.5%; font-weight: 700; font-size: 2rem; line-height: 1.1; }
.form-success p { max-width: 44ch; margin-bottom: 1.5rem; color: var(--dark-muted); }
.form-success strong { color: #fff; }
/* V kartě zůstane výška po formuláři (hlídá main.js) a poděkování stojí uprostřed. */
.form-card .form-success { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.form-card .form-success h3 { font-size: clamp(2rem, 1.6rem + 1.1vw, 2.5rem); line-height: 1.05; text-wrap: balance; }
.form-card .form-success p { font-size: 1.125rem; }

/* ---------- Patička (vždy tmavá) ---------- */
.site-footer { background: var(--footer-bg); color: var(--dark-muted); padding-top: clamp(3.5rem, 7vw, 4.5rem); }
.site-footer :focus-visible { outline-color: var(--amber); }
.footer__top { display: grid; gap: 2.5rem; }
.footer__brand { display: grid; gap: 1rem; align-content: start; font-size: .95rem; line-height: 1.6; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { margin: 0; max-width: 18rem; }
.footer__contact { display: grid; gap: .15rem; font-style: normal; color: #fff; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--amber); }
.footer__contact span { color: var(--dark-muted); }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 2.25rem 2rem; }
.footer__nav h3 { margin-bottom: .9rem; font-weight: 600; font-size: 1rem; color: #fff; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__nav a { font-size: .95rem; text-decoration: none; }
.footer__nav a:hover { color: var(--amber); }
.footer__bottom {
  margin-top: 3.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid #222D37;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  font-size: .8125rem;
  color: #7F8B96;
}
.footer__legal { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__links a { text-underline-offset: 3px; }
.footer__links a:hover { color: #fff; }
.footer__consent {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__consent:hover { color: #fff; }
@media (min-width: 1100px) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: 3rem; } }

/* ==========================================================================
   Podstránky: úvod s drobečkovou navigací, aktivní položka v menu
   ========================================================================== */
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu__links a[aria-current="page"] { color: var(--amber-ink); }

.page-hero { padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(3.5rem, 7vw, 5rem); }
.breadcrumb ol {
  list-style: none;
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .875rem;
  color: var(--text-soft);
}
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.page-hero__grid { display: grid; gap: 1.75rem; }
.page-hero__intro { display: grid; gap: 1.1rem; align-content: start; }
.page-hero__title {
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  max-width: 11em;
  text-wrap: balance;
}
.page-hero__text { display: grid; gap: 1rem; align-content: start; color: var(--text-muted); text-wrap: pretty; }
.page-hero__text p { margin: 0; max-width: 38rem; }
.page-hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.55; }
.page-hero__text .hero__ctas { margin-top: .75rem; }
@media (min-width: 1024px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .page-hero__intro { padding-top: .35rem; }
}
/* Fotky výrobce jsou široké pásy 1281 × 451, na mobilu je ořízneme na 16 : 9. */
.page-hero__media { margin: clamp(2.25rem, 4.5vw, 3.5rem) 0 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #DDE2E6; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scene { margin: 0; }
.page-hero__scene .page-hero__media { margin-top: clamp(2.25rem, 4.5vw, 3.5rem); }
@media (min-width: 720px) { .page-hero__media { aspect-ratio: 1281 / 451; } }

/* ==========================================================================
   Produktové podstránky (bariéry, osvětlení, značení podlah, aktivní bezpečnost) mají shodnou kostru:
   šedý úvod s animací, proč my, výhody, tmavé záhlaví s kartami, kalkulátor nebo tabulka,
   využití, jak spolupráce probíhá, časté dotazy. Poptávka se otevírá v okně.
   ========================================================================== */
.page-hero--tint { background: var(--bg); border-bottom: 1px solid var(--line); }

/* Nadpis sekce s nadtitulkem */
.overview__head { display: grid; gap: .9rem; }
/* Tmavé záhlaví sekce s kartami, pod ním šedá plocha s kartami */
.cat__band { background: var(--footer-bg); border-top: 4px solid var(--amber); color: #fff; }
.cat__band :focus-visible { outline-color: var(--amber); }
.cat__band-grid { display: grid; gap: 1.25rem clamp(1.5rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .cat__band-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.cat__title {
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(2.4rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.cat__aside { display: grid; gap: .9rem; justify-items: start; }
.cat__aside p { margin: 0; padding-top: .4rem; max-width: 35rem; font-size: clamp(1.05rem, 1rem + .25vw, 1.125rem); line-height: 1.55; color: var(--dark-muted); text-wrap: pretty; }
.cat__body { background: #E6EAEE; }
/* Bílá plocha s kartami tam, kde za ní hned následuje šedý pás (aktivní bezpečnost nemá kalkulátor) */
.cat--plain .cat__body { background: var(--surface); }
.cat__list { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }

.pros { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 760px) { .pros { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pros li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--bg);
  line-height: 1.5;
  color: var(--ink-700);
}
.pros i {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-950);
  font-size: .85rem;
}

/* Jak spolupracujeme: nadpis s tlačítky, pod ním čtyři kroky v kartách */
.process__head { display: grid; gap: 1.5rem clamp(1.5rem, 5vw, 4rem); align-items: end; }
@media (min-width: 900px) { .process__head { grid-template-columns: minmax(0, 1fr) auto; } }
.process__title { display: grid; gap: .9rem; }
.process__steps { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 600px) { .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process__steps li { display: grid; gap: .6rem; align-content: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.process__num { margin-bottom: .4rem; font-stretch: 87.5%; font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--amber); }
.process__steps h3 { font-stretch: 87.5%; font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.process__steps p { margin: 0; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }

/* ==========================================================================
   Odrážky, srovnávací tabulka a časté dotazy (všechny podstránky)
   ========================================================================== */
/* Odrážky s fajfkou */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .65rem; align-items: start; line-height: 1.5; color: var(--ink-700); }
.ticks i {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-top: .2rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-950);
  font-size: .65rem;
}

/* Srovnávací tabulka (LED, nebo laser). Na úzkém displeji se posouvá do strany, stránka ne. */
.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem clamp(1.5rem, 5vw, 4rem); }
@media (min-width: 1024px) { .compare { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.compare__head { display: grid; gap: .9rem; align-content: start; }
.compare__head p:not(.eyebrow) { margin: .25rem 0 0; max-width: 30rem; color: var(--text-muted); text-wrap: pretty; }
.compare__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.compare__table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.compare__table th, .compare__table td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table tr:last-child > * { border-bottom: 0; }
.compare__table thead > tr > * { background: var(--ink-900); color: #fff; border-bottom: 0; }
.compare__table thead th { font-stretch: 87.5%; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.compare__table thead i { margin-right: .45rem; color: var(--amber); }
.compare__table tbody th { width: 28%; font-weight: 600; background: var(--bg); }
.compare__table tbody td { color: var(--text-muted); }
.compare__table td + td, .compare__table th + td { border-left: 1px solid var(--line); }
.compare__table thead > tr > * + * { border-left: 1px solid var(--ink-700); }
.compare__note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--amber-tint);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--amber-tint-ink);
}
.compare__note i { flex: none; margin-top: .15rem; font-size: 1.1rem; }

/* Časté dotazy: rozbalovací odpovědi, první je otevřená */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem clamp(1.5rem, 5vw, 4rem); }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.faq__head { display: grid; gap: .9rem; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--amber-ink); }
.faq__item summary:focus-visible { outline-offset: -2px; border-radius: var(--r-lg); }
.faq__item summary i {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--amber-ink);
  transition: transform .3s var(--ease-out), background-color .2s, color .2s;
}
.faq__item[open] summary i { transform: rotate(45deg); background: var(--amber); color: var(--ink-950); }
.faq__item p { margin: 0; max-width: 60ch; padding: 0 1.25rem 1.25rem; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }

/* ==========================================================================
   Výhody, karty s ilustracemi, využití a reference (všechny podstránky)
   ========================================================================== */
/* Výhody jako mřížka karet s fajfkou (devět bodů ve třech sloupcích) */
.pros--grid { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) and (max-width: 1023px) { .pros--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Co dodáváme / co ochráníme: karty s ilustrací na šedé ploše */
.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 600px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prod-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
@media (min-width: 1200px) { .prod-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod-card__body { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.5rem 1.5rem; }
.prod-card h3 { font-stretch: 87.5%; font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-wrap: balance; }
.prod-card p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.prod-card a { color: var(--amber-ink); font-weight: 600; text-underline-offset: 3px; }
.prod-grid--4 .prod-card__body { padding: 1.1rem 1.25rem 1.25rem; }
.prod-grid--4 .prod-card h3 { font-size: 1.35rem; }
.prod-card__meta, .prod-card .prod-card__meta { margin: 0; font-weight: 700; font-size: .8125rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); }
/* Karta s detailem: celá karta otevře okno s popisem systému */
.prod-card:has(.prod-card__more) { position: relative; transition: border-color .2s, transform .25s var(--ease-out); }
.prod-card:has(.prod-card__more):hover { border-color: var(--amber); transform: translateY(-3px); }
.prod-card__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding: .75rem 0 2px;
  border: 0;
  border-bottom: 2px solid var(--amber);
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  cursor: pointer;
}
.prod-card__more::after { content: ''; position: absolute; inset: 0; }
.prod-card__more:focus-visible { outline: none; }
.prod-card:has(.prod-card__more:focus-visible) { outline: 2px solid var(--amber-ink); outline-offset: 2px; }
.prod-card__more i { transition: transform .3s var(--ease-out); }
.prod-card:hover .prod-card__more i { transform: translateX(3px); }


/* Dlouhý seznam s fajfkami ve sloupcích */
.ticks--cols { margin-top: clamp(2rem, 4vw, 2.5rem); gap: .75rem 2rem; }
.section--band .brands { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 640px) { .ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ticks--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ticks--cols li { color: var(--text); }

/* Reference a projekty */
.refs { margin-top: clamp(3rem, 6vw, 4.5rem); }
.refs__head { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.refs__head p { margin: 0; max-width: 44rem; color: var(--text-muted); }
.refs__title { margin-bottom: 0; font-stretch: 87.5%; font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.25rem); line-height: 1.1; }
/* Reference jako loga klientů v bílých dlaždicích; výšku loga určuje --h (optické vyrovnání různých tvarů) */
.refs__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 900px) { .refs__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.refs__logo { display: grid; place-items: center; min-height: 7.5rem; padding: 1.5rem 1.25rem; border-top: 3px solid var(--amber); border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--bg); }
.section--band .refs__logo { background: var(--surface); }
.refs__logo img { width: auto; height: var(--h, 32px); max-width: 100%; object-fit: contain; }


/* Blok „Nejsme vázáni na jednoho výrobce“ s nadtitulkem */
.why__intro .eyebrow { margin-bottom: .9rem; color: var(--amber-ink); }

/* ==========================================================================
   Ilustrace ve stylu animace z dočasné stránky (generuje je stavební skript, SVG je přímo v HTML).
   Hýbe se jen úvodní scéna (hraje ve smyčce, jde pozastavit tlačítkem), ilustrace v kartách jsou statické.
   Scénu bariér kreslí assets/js/scena-bariery.js (stejná jako na dočasné stránce), ostatní jsou SVG s CSS animací.
   Animované prvky mají transform-box: fill-box, ostatní tvary zůstávají v souřadnicích obrázku.
   ========================================================================== */
.ill { display: block; width: 100%; height: auto; background: #EEF1F4; }
.scene-svg { display: block; width: 100%; height: 100%; }
.page-hero__media--scene { position: relative; background: #EEF1F4; }
/* Scéna je vždy celá (bez ořezu), na mobilu přes celou šířku jako na dočasné stránce. */
.page-hero__media.page-hero__media--scene { aspect-ratio: 1000 / 392; }
@media (max-width: 719px) { .page-hero__media.page-hero__media--scene { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; } }
.scene-svg text { font-family: var(--font); }
.scene__toggle {
  position: absolute;
  top: .75rem; left: .75rem;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(255 255 255 / .9);
  color: var(--ink-900);
  font-size: .95rem;
  cursor: pointer;
}
.scene__toggle:hover { background: #fff; }
.scene__toggle .ph-play { display: none; }
.scene__toggle[aria-pressed="true"] .ph-pause { display: none; }
.scene__toggle[aria-pressed="true"] .ph-play { display: inline; }
.is-paused .scene-svg * { animation-play-state: paused !important; }
.page-hero__caption { margin: .6rem 0 0; font-size: .875rem; color: var(--text-soft); }

[class*="ill-a-"], [class*="scn-"], .ill-leg-b, .ill-leg-f { transform-box: fill-box; }

/* Krok postavy */
.ill-leg-b, .ill-leg-f { transform-origin: 50% 0; animation: ill-step .5s ease-in-out infinite alternate; }
.ill-leg-f { animation-delay: -.5s; }
@keyframes ill-step { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }

/* ---------- Úvod: osvětlení. Linka na pásu, vlevo výbojky, vpravo LED ---------- */
/* Paže a hlava se otáčí kolem ramene a krku v souřadnicích postavy */
.scn-o-arm { transform-box: view-box; transform-origin: 0 -84px; }
.scn-o-nod { transform-box: view-box; transform-origin: 3px -92px; animation: scn-o-nod 4.4s ease-in-out infinite; }
@keyframes scn-o-nod { 0%, 20% { transform: rotate(0); } 55%, 70% { transform: rotate(18deg); } 76%, 100% { transform: rotate(0); } }
.scn-o-slow { animation: scn-o-slow 3.2s ease-in-out infinite alternate; }
@keyframes scn-o-slow { from { transform: rotate(0); } to { transform: rotate(-9deg); } }
.scn-o-slow2 { animation: scn-o-slow2 2.8s ease-in-out infinite alternate; }
@keyframes scn-o-slow2 { from { transform: rotate(0); } to { transform: rotate(-14deg); } }
.scn-o-fast { animation: scn-o-fast .42s ease-in-out infinite alternate; }
.scn-o-fast2 { animation: scn-o-fast .42s ease-in-out -.21s infinite alternate; }
@keyframes scn-o-fast { from { transform: rotate(4deg); } to { transform: rotate(-20deg); } }
/* Kusy na pásu: posun o rozestup 100 za 2,2 s, smyčka bez švu */
.scn-o-items { animation: scn-o-items 2.2s linear infinite; }
@keyframes scn-o-items { from { transform: translateX(0); } to { transform: translateX(100px); } }
/* Výbojky blikají, LED svítí stále */
.scn-o-flk-cone, .scn-o-flk-face { animation: scn-o-flk 5s steps(1, end) infinite; }
.scn-o-flk2-cone, .scn-o-flk2-face { animation: scn-o-flk 5s steps(1, end) -2.1s infinite; }
@keyframes scn-o-flk { 0% { opacity: 1; } 6% { opacity: .45; } 8% { opacity: 1; } 10% { opacity: .6; } 12% { opacity: 1; } 58% { opacity: .5; } 61% { opacity: 1; } }
/* Fajfka nad každým kusem, který projde pod rukama (v rytmu pásu) */
.scn-o-tick { transform-origin: 50% 50%; animation: scn-o-tick 2.2s ease-out infinite; }
.scn-o-tick1 { animation-delay: -1.1s; }
.scn-o-tick2 { animation-delay: -.66s; }
@keyframes scn-o-tick { 0% { opacity: 0; transform: translateY(0) scale(.4); } 10% { opacity: 1; transform: translateY(0) scale(1.15); } 18% { transform: translateY(-2px) scale(1); } 55% { opacity: 1; transform: translateY(-12px) scale(1); } 72%, 100% { opacity: 0; transform: translateY(-16px) scale(1); } }
.scn-o-q { transform-origin: 50% 100%; animation: scn-o-q 4.4s ease-in-out infinite; }
@keyframes scn-o-q { 0%, 30% { opacity: 0; transform: scale(.6); } 40%, 80% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(.8); } }
.scn-o-z { animation: scn-o-z 3s ease-out infinite; }
.scn-o-z1 { animation-delay: .5s; } .scn-o-z2 { animation-delay: 1s; }
@keyframes scn-o-z { 0% { opacity: 0; transform: translate(0, 6px); } 25% { opacity: 1; } 80% { opacity: 1; transform: translate(6px, -10px); } 100% { opacity: 0; transform: translate(8px, -14px); } }

/* ---------- Úvod: aktivní bezpečnost (13 s). Branka, STOP z projektoru, hlídač na sloupku ---------- */
.scn-a-walker { transform: translateX(320px); animation: scn-a-walker 13s linear infinite; }
@keyframes scn-a-walker { 0% { transform: translateX(-80px); } 24%, 64% { transform: translateX(320px); } 100% { transform: translateX(1060px); } }
.scn-a-walk { opacity: 0; animation: scn-a-walk 13s steps(1, end) infinite; }
@keyframes scn-a-walk { 0% { opacity: 1; } 24% { opacity: 0; } 64% { opacity: 1; } }
.scn-a-stand { animation: scn-a-stand 13s steps(1, end) infinite; }
@keyframes scn-a-stand { 0% { opacity: 0; } 24% { opacity: 1; } 64% { opacity: 0; } }
.scn-a-on { animation: scn-a-on 13s infinite; }
@keyframes scn-a-on { 0%, 16% { opacity: 0; } 19%, 60% { opacity: 1; } 63%, 100% { opacity: 0; } }
.scn-a-det { animation: scn-a-det 13s infinite; }
@keyframes scn-a-det { 0%, 17% { opacity: 0; } 20%, 58% { opacity: 1; } 61%, 100% { opacity: 0; } }
.scn-a-fork { transform: translateX(700px); animation: scn-a-fork 13s linear infinite; }
@keyframes scn-a-fork { 0%, 24% { transform: translateX(1250px); } 58%, 100% { transform: translateX(-300px); } }
.scn-a-warn { animation: scn-a-warn 13s steps(1, end) infinite; }
@keyframes scn-a-warn {
  0% { opacity: 0; } 27% { opacity: 1; } 29.5% { opacity: .15; } 32% { opacity: 1; } 34.5% { opacity: .15; } 37% { opacity: 1; } 39.5% { opacity: .15; }
  42% { opacity: 1; } 44.5% { opacity: .15; } 47% { opacity: 1; } 49.5% { opacity: .15; } 52% { opacity: 1; } 55% { opacity: 0; }
}
.scn-a-arm { transform-origin: 100% 50%; animation: scn-a-arm 13s ease-in-out infinite; }
@keyframes scn-a-arm { 0%, 60% { transform: rotate(0); } 64%, 84% { transform: rotate(86deg); } 90%, 100% { transform: rotate(0); } }

/* ---------- Úvod: značení podlah (15 s). Koridor se rozsvítí před chodcem, na konci STOP a projede vozík ---------- */
.scn-z-walker { transform: translateX(650px); animation: scn-z-walker 15s linear infinite; }
@keyframes scn-z-walker { 0% { transform: translateX(-80px); } 44%, 78% { transform: translateX(650px); } 100% { transform: translateX(1080px); } }
.scn-z-walk { opacity: 0; animation: scn-z-walk 15s steps(1, end) infinite; }
@keyframes scn-z-walk { 0% { opacity: 1; } 44% { opacity: 0; } 78% { opacity: 1; } }
.scn-z-stand { animation: scn-z-stand 15s steps(1, end) infinite; }
@keyframes scn-z-stand { 0% { opacity: 0; } 44% { opacity: 1; } 78% { opacity: 0; } }
.scn-z-beam { animation: scn-z-beam 15s infinite; }
@keyframes scn-z-beam { 0%, 4% { opacity: 0; } 7%, 95% { opacity: 1; } 100% { opacity: 0; } }
.scn-z-line { transform-origin: 0 50%; animation: scn-z-line 15s ease-out infinite; }
@keyframes scn-z-line { 0%, 6% { transform: scaleX(0); opacity: 1; } 13%, 95% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.scn-z-stop { animation: scn-z-stop 15s infinite; }
@keyframes scn-z-stop { 0%, 34% { opacity: 0; } 37%, 76% { opacity: 1; } 79%, 100% { opacity: 0; } }
.scn-z-fork { transform: translateX(900px); animation: scn-z-fork 15s linear infinite; }
@keyframes scn-z-fork { 0%, 46% { transform: translateX(1250px); } 74%, 100% { transform: translateX(-300px); } }

@media (prefers-reduced-motion: reduce) {
  .scene-svg *, .ill * { animation: none !important; }
  .scene__toggle { display: none; }
}

/* ==========================================================================
   Blog (/blog/) a výběr článků na hlavní stránce
   ========================================================================== */
.page-hero--short { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.blog-teaser__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.posts { list-style: none; margin: clamp(2rem, 4vw, 2.5rem) 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .2s, transform .25s var(--ease-out);
}
.post:hover, .post:has(a:focus-visible) { border-color: var(--amber); transform: translateY(-3px); }
.post__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .8125rem; color: var(--text-soft); }
.post__tag { padding: .15rem .55rem; border-radius: 4px; font-weight: 600; letter-spacing: .02em; }
.post__tag--bariery { background: var(--amber-tint); color: var(--amber-tint-ink); }
.post__tag--osvetleni { background: var(--ink-900); color: #fff; }
.post__title { font-stretch: 87.5%; font-weight: 700; font-size: 1.5rem; line-height: 1.12; text-wrap: balance; }
.post__title a { text-decoration: none; }
.post__title a:focus-visible { outline: none; }
.post__title a::after { content: ''; position: absolute; inset: 0; }
.post__perex { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.post__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--amber-ink); }
.post__more i { transition: transform .25s var(--ease-out); }
.post:hover .post__more i { transform: translateX(3px); }

/* Stránka článku (/blog/<slug>/): úvod s nadpisem, text v úzkém sloupci, na konci poptávka a další články */
.article-hero { display: grid; gap: 1rem; }
.article-hero .post__meta { font-size: .875rem; }
.article-hero__title { max-width: none; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); }
.article-hero .page-hero__lead { margin: 0; max-width: 42rem; color: var(--text-muted); text-wrap: pretty; }
.article { max-width: calc(46rem + 2 * var(--gutter)); }
.article__figure { margin: 0 0 clamp(2rem, 4vw, 2.75rem); overflow: hidden; border-radius: var(--r-lg); }
.article__figure .ill { width: 100%; }
.article__body { display: grid; gap: 1.15rem; }
.article__body p { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-700); text-wrap: pretty; }
.article__body strong { color: var(--text); }
.article__body a { color: var(--amber-ink); font-weight: 600; text-underline-offset: 3px; }
.article__body a:hover { color: var(--text); }
.article__body > .btn { justify-self: start; }
.article__body h2 {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-top: 1.25rem;
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem);
  line-height: 1.15;
  text-wrap: balance;
}
.article__num { flex: none; color: var(--amber); }
.article__body h3 { font-stretch: 87.5%; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.article__bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.article__bullets li { position: relative; padding-left: 1.4rem; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-700); text-wrap: pretty; }
.article__bullets li::before { content: ''; position: absolute; left: .2rem; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.article__purpose { display: grid; gap: .9rem; padding: clamp(1.1rem, 2.5vw, 1.5rem); border-left: 3px solid var(--amber); border-radius: 0 var(--r-lg) var(--r-lg) 0; background: var(--bg); }
.article__purpose dl { margin: 0; display: grid; gap: .35rem 1.5rem; }
@media (min-width: 720px) { .article__purpose dl { grid-template-columns: 11rem minmax(0, 1fr); } }
.article__purpose dt { font-weight: 600; color: var(--text); }
.article__purpose dd { margin: 0 0 .5rem; line-height: 1.6; color: var(--ink-700); text-wrap: pretty; }
@media (min-width: 720px) { .article__purpose dd { margin-bottom: 0; } }
.article__list { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: reason; }
.article__list li {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 4rem;
  border-radius: var(--r-lg);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-700);
  counter-increment: reason;
}
.article__list li::before {
  content: counter(reason);
  position: absolute;
  left: 1.1rem; top: 1rem;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-950);
  font-weight: 700;
}
.article__list strong { display: block; margin-bottom: .2rem; color: var(--text); }
.article__cta {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 3px solid var(--amber);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--bg);
}
@media (min-width: 720px) { .article__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.article__cta h2 { font-stretch: 87.5%; font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.article__cta p { margin: .35rem 0 0; color: var(--text-muted); }
.article__cta-btns { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Filtr článků: pilulky jako přepínač v kalkulátoru osvětlení */
.post-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.post-filter button {
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.post-filter button:hover { color: var(--text); }
.post-filter button span { margin-left: .4rem; font-weight: 500; opacity: .7; }
.post-filter button[aria-pressed="true"] { background: var(--ink-900); color: #fff; }

/* Poptávka na šedém pásu (hlavní stránka): výraznější spojnice časové osy */
.section--band .timeline__item:not(:last-child)::before { background: var(--line-strong); }
.section--band .timeline__num { border-color: var(--line-strong); }

/* Rychlá poptávka v okně. Otevírá main.js, zavře se křížkem, klávesou Esc nebo kliknutím vedle. */
.form-dialog {
  width: min(100% - 2rem, 40rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  color: #fff;
  box-shadow: 0 30px 80px rgb(0 0 0 / .45);
}
.form-dialog::backdrop { background: rgb(10 15 20 / .7); }
.form-dialog .form-card { position: relative; }
.form-dialog .form-card__head { padding-right: 3rem; }
.form-dialog__close {
  position: absolute;
  top: .9rem; right: .9rem;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: #243240;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .2s;
}
.form-dialog__close:hover { background: var(--dark-line); }
html:has(.form-dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .form-dialog[open] { animation: dialog-in .35s var(--ease-out); }
  .form-dialog[open]::backdrop { animation: fade-in .25s ease; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* Detail systému v okně (aktivní bezpečnost): hlavička s ilustrací, popis po blocích, dole poptávka. */
.detail-dialog {
  width: min(100% - 2rem, 50rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgb(0 0 0 / .45);
}
.detail-dialog::backdrop { background: rgb(10 15 20 / .7); }
html:has(.detail-dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .detail-dialog[open] { animation: dialog-in .35s var(--ease-out); }
  .detail-dialog[open]::backdrop { animation: fade-in .25s ease; }
}
.detail { position: relative; --pad: clamp(1.25rem, 4vw, 2.25rem); }
.detail .form-dialog__close { z-index: 1; }
.detail__head { display: grid; gap: .6rem; padding: 0 var(--pad) 1.5rem; border-bottom: 1px solid var(--line); }
.detail__ill { margin: 0 calc(-1 * var(--pad)) .9rem; }
.detail__ill .ill { max-height: 15rem; }
.detail__head h2 { font-stretch: 87.5%; font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.5rem); line-height: 1.02; text-wrap: balance; padding-right: 2rem; }
.detail__lead { margin: 0; font-weight: 500; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.45; text-wrap: pretty; }
.detail__body { display: grid; gap: 1.5rem; padding: 1.5rem var(--pad) 2rem; }
@media (min-width: 720px) {
  .detail__head { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 1.75rem; padding-top: var(--pad); align-items: start; }
  .detail__ill { grid-row: 1 / span 3; margin: 0; overflow: hidden; border-radius: var(--r-sm); }
  .detail__head h2 { padding-right: 2.5rem; }
}
.detail__block { display: grid; gap: .6rem; }
.detail__block h3 { font-weight: 600; font-size: .875rem; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); }
.detail__block p { margin: 0; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.detail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.detail__list li { position: relative; padding-left: 1.25rem; line-height: 1.5; color: var(--ink-700); }
.detail__list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.detail__steps { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .9rem; counter-reset: step; }
.detail__steps li { position: relative; min-height: 28px; padding-left: 2.6rem; line-height: 1.5; color: var(--ink-700); counter-increment: step; }
.detail__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.05rem;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-950);
  font-weight: 700;
  font-size: .875rem;
}
.detail__steps strong, .detail__list strong { color: var(--text); }
.detail__note {
  display: flex;
  gap: .6rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--amber-tint);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--amber-tint-ink);
}
.detail__note i { flex: none; margin-top: .15rem; font-size: 1.1rem; }
.detail__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 1rem var(--pad);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- Bloky pro podstránky (viz _bloky/): nezávislost na výrobcích, značky ---------- */
.why__grid { display: grid; gap: 3rem; }
.why__intro .h2 { margin-bottom: 1.5rem; max-width: 13em; }
.why__intro p { color: var(--text-muted); max-width: 50ch; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .6rem;
  padding: 1.6rem 1rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 1.25rem; }
.stat dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem;
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(2.5rem, 1.7rem + 2.4vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.stats--words .stat dd { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); }
.stat dd small { font-size: max(.36em, 1rem); font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
.stat dt { color: var(--text-muted); font-size: .98rem; line-height: 1.45; max-width: 24ch; }
@media (min-width: 960px) {
  .why__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 6.5rem); align-items: start; }
  .stat { padding: 2rem 1.5rem 2rem 0; }
  .stat:nth-child(even) { padding-left: 2rem; }
}
.brands { margin-top: clamp(3.5rem, 7vw, 5rem); }
.brands__label { margin-bottom: 1.5rem; font-size: .95rem; color: var(--text-muted); }
.brands__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 2rem 1.5rem;
}
@media (min-width: 640px) { .brands__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .brands__list { display: flex; justify-content: space-between; gap: 2rem; } }
.brand-logo { background-repeat: no-repeat; background-position: center; background-size: contain; opacity: .8; transition: opacity .2s; }
.brand-logo:hover { opacity: 1; }
.brand-logo--anter { width: 138px; height: 20px; background-image: url(../logos/znacky/anter-system.png); }
.brand-logo--mccue { width: 88px; height: 30px; background-image: url(../logos/znacky/mccue.png); }
.brand-logo--troax { width: 146px; height: 17px; background-image: url(../logos/znacky/troax.png); }
.brand-logo--dflexx { width: 86px; height: 31px; background-image: url(../logos/znacky/d-flexx.png); }
.brand-logo--stommpy { width: 96px; height: 29px; background-image: url(../logos/znacky/stommpy.png); }
.brand-logo--genie { width: 72px; height: 37px; background-image: url(../logos/znacky/genie-grips.png); }
.brand-logo--easyfit { width: 112px; height: 23px; background-image: url(../logos/znacky/easyfit.png); }
.brand-logo--sentry { width: 44px; height: 44px; background-image: url(../logos/znacky/sentry.png); }

/* ---------- Z provozu: skutečné fotky pod ilustrovanými kartami podstránek ---------- */
.photos { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.photos__title { margin-bottom: 1.1rem; font-stretch: 87.5%; font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.photos__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .photos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photos__grid figure { margin: 0; }
.photos__grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.photos__grid figcaption { margin-top: .6rem; font-size: .9375rem; line-height: 1.45; color: var(--text-muted); }
.detail__photos { display: grid; gap: .75rem; }
.detail__photos img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }

/* ---------- Souhlas s cookies (lištu skládá assets/js/souhlas.js) ----------
   Tmavá karta vlevo dole, obsah stránky neblokuje. Přijmout i odmítnout jsou stejně velká tlačítka. */
.consent {
  position: fixed;
  z-index: 90;
  inset: auto 1rem 1rem;
  max-width: 34rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--dark-card);
  color: var(--dark-muted);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -20px rgb(var(--shadow) / .55);
  font-size: .9375rem;
  line-height: 1.55;
}
.consent :focus-visible { outline-color: var(--amber); }
.consent__title { margin-bottom: .5rem; font-stretch: 87.5%; font-weight: 700; font-size: 1.375rem; line-height: 1.15; color: #fff; }
.consent__title:focus { outline: none; }
.consent p { margin: 0; }
.consent a { color: #fff; text-underline-offset: 3px; }
.consent a:hover { color: var(--amber); }
.consent__state { margin-top: .75rem !important; color: var(--dark-label); font-weight: 500; }
.consent__options { display: grid; gap: .85rem; margin-top: 1.1rem; }
.consent__option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; cursor: pointer; }
.consent__option input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--amber); cursor: inherit; }
.consent__option input:disabled { cursor: default; }
.consent__option strong { display: block; font-weight: 600; color: #fff; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.consent__actions .btn { flex: 1 1 8rem; }
@media (min-width: 560px) { .consent { inset: auto auto 1.5rem 1.5rem; } }

/* ---------- Pohyb ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); }
.has-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms);
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__intro > * { animation: rise .9s var(--ease-out) both; }
  .js .hero__intro > :nth-child(2) { animation-delay: .06s; }
  .js .hero__intro > :nth-child(3) { animation-delay: .12s; }
  .js .hero__intro > :nth-child(4) { animation-delay: .18s; }
  .js .trust { animation: rise .9s var(--ease-out) .3s both; }
  .js .tile { animation: tile-in .9s var(--ease-out) both; }
  .js .tile:nth-child(2) { animation-delay: .08s; }
  .js .tile:nth-child(3) { animation-delay: .16s; }
  .js .tile:nth-child(4) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tile-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .has-reveal .reveal { opacity: 1; transform: none; }
}
