/* =========================================================
   PT KOVO – styly šablony
   Hranatý technický styl: grafit, ocelově šedá, kobaltový akcent.
   Zkosené rohy (--cut) odkazují na tvar břitové destičky.
   ========================================================= */

/* ---------- Písma (self-hosted) ---------- */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(../fonts/chakra-petch-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(../fonts/chakra-petch-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(../fonts/chakra-petch-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(../fonts/chakra-petch-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(../fonts/chakra-petch-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(../fonts/chakra-petch-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Proměnné ---------- */
:root {
  --ink: #111315;
  --ink-2: #1b1f23;
  --ink-3: #262b30;
  --steel: #59616a;
  --mute: #868d94;
  --line: #d2d3cd;
  --line-2: #e2e2dc;
  --line-dark: #30363c;
  --paper: #ebeae5;
  --paper-2: #f5f5f1;
  --white: #ffffff;
  --accent: #eb6b2d;        /* oranžová – plochy, linky, tlačítka */
  --accent-ink: #b9460f;    /* tmavší oranžová – text a ikony na světlém pozadí */
  --accent-light: #ff9b66;  /* světlejší oranžová – text na tmavém pozadí */
  --on-accent: #111315;     /* písmo na oranžové ploše (bílé by bylo málo čitelné) */
  --ok: #1d7f47;
  --err: #b8261a;

  --f-head: "Chakra Petch", "Arial Narrow", sans-serif;
  --f-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --cut: 12px;
  --wrap: 1320px;
  --gut: 24px;
  --header-h: 72px;
}
@media (max-width: 760px) { :root { --gut: 16px; --cut: 9px; --header-h: 60px; } }

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, .h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3, .h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; }
.small { font-size: .875rem; }
.muted { color: var(--steel); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.plain { list-style: none; margin: 0; padding: 0; }

.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--steel); margin: 0 0 18px;
}
.label::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.label--accent { color: var(--accent-ink); }
.label .idx { color: var(--accent-ink); }
.label:has(.idx)::before { display: none; }
.label .idx::after { content: " /"; color: var(--mute); }

.link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.link:hover { color: var(--ink); }
.link .ico { transition: transform .2s; }
.link:hover .ico:last-child { transform: translateX(3px); }

/* ---------- Tlačítka ---------- */
.btn {
  --bg: var(--accent); --fg: var(--on-accent); --bd: var(--accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 .95rem/1 var(--f-text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--bd);
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { --bg: var(--ink); --bd: var(--ink); color: var(--white); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
/* Linka na zkoseném rohu obrysových prvků (clip-path ořízne rámeček). */
.btn--ghost::after, .panel::after {
  content: ""; position: absolute; top: 0; left: calc(100% - var(--c, var(--cut))); width: calc(var(--c, var(--cut)) * 1.4143); height: 2px;
  background: var(--bd, var(--line)); transform-origin: 0 0; transform: rotate(45deg); pointer-events: none;
}
.btn--ghost:hover { --bg: var(--ink); --fg: var(--white); }
.btn--light { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--light:hover { --bg: var(--accent); --bd: var(--accent); --fg: var(--on-accent); color: var(--on-accent); }
.btn--sm { min-height: 40px; padding: 9px 14px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn.is-added { --bg: var(--ink); --bd: var(--ink); --fg: var(--white); }
.btn.is-busy { opacity: .6; pointer-events: none; }

.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.iconbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Horní lišta a hlavička ---------- */
.topbar { background: var(--ink); color: #b9bec3; font-size: .8125rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.topbar__claim { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a, .topbar__time { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: inherit; }
.topbar__links a:hover { color: var(--white); }
@media (max-width: 1000px) { .topbar__claim, .topbar__time { display: none; } .topbar__in { justify-content: flex-end; } }
@media (max-width: 560px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__text { font: 700 1.65rem/1 var(--f-head); letter-spacing: .02em; }
.logo__img { max-height: 44px; width: auto; }

.nav { margin-right: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 10px 14px; font-weight: 600; font-size: .95rem; text-decoration: none; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after, .nav__list .current-menu-ancestor > a::after, .nav__list .current_page_item > a::after { transform: scaleX(1); }
.nav__list a:hover { color: var(--ink); }
.nav__contact { display: none; }

.hsearch { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--paper-2); width: min(320px, 26vw); height: 42px; }
.hsearch:focus-within { border-color: var(--ink); background: var(--white); }
.hsearch input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; font: 400 .875rem var(--f-mono); outline: 0; }
.hsearch button { border: 0; background: none; padding: 0 12px; cursor: pointer; color: var(--steel); }
.hsearch button:hover { color: var(--accent-ink); }

.cartlink {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 16px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600; font-size: .9rem;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.cartlink:hover { background: var(--accent); color: var(--on-accent); }
.cartlink__count { min-width: 24px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--white); color: var(--ink); font: 600 .8rem/1 var(--f-mono); }
.cartlink__count[data-count="0"] { background: var(--ink-3); color: var(--mute); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); cursor: pointer; place-items: center; }
.burger .ico { width: 22px; height: 22px; }
.burger .ico-close, .nav-open .burger .ico-menu { display: none; }
.nav-open .burger .ico-close { display: inline-block; }

@media (max-width: 1100px) { .hsearch { display: none; } }
@media (max-width: 900px) {
  .burger { display: inline-grid; }
  .site-header__in { gap: 10px; }
  .logo { margin-right: auto; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(17, 19, 21, .5); }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-2); }
  .nav__list a::after { display: none; }
  .nav__contact { display: grid; gap: 6px; padding-top: 16px; font-family: var(--f-mono); font-size: .9rem; }
}
@media (max-width: 560px) {
  .nav { inset: var(--header-h) 0 auto 0; }
  .cartlink__label { display: none; }
  .logo__text { font-size: 1.4rem; }
}

/* ---------- Sekce ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 104px); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #e8e9ea; }
.section--dark .label { color: #9aa1a8; }
.section--grey { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 860px; }
.section__head h2 { margin: 0; }
.section__head:has(> .label:only-child) { margin-bottom: 24px; }
.section__head > .label:only-child { margin: 0; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero h1 { max-width: 12ch; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 54ch; color: var(--ink-3); }
.hero__visual { position: relative; align-self: stretch; min-height: 320px; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) { .hero__visual { max-width: 300px; } }

.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 560px) { .hero__btns .btn { flex: 1 1 100%; } }


.drawing { width: 100%; height: auto; }
.drawing .d-grid { stroke: rgba(17, 19, 21, .07); stroke-width: 1; }
.drawing .d-center { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 14 4 2 4; opacity: .55; fill: none; }
.drawing .d-part { fill: var(--white); stroke: var(--ink); stroke-width: 2.5; }
.drawing .d-edge { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .55; }
.drawing .d-dim { stroke: var(--steel); stroke-width: 1; fill: none; }
.drawing .d-dim .d-ext { stroke-dasharray: 3 3; opacity: .6; }
.drawing .d-fill { fill: var(--steel); }
.drawing text { font: 500 13px var(--f-mono); fill: var(--ink); stroke: none; text-anchor: middle; }
.drawing .d-dim text { fill: var(--steel); }

.bigsearch {
  display: flex; align-items: center; gap: 0; margin-top: 28px; max-width: 640px;
  background: var(--white); border: 1px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.bigsearch > .ico { margin-left: 16px; color: var(--steel); width: 20px; height: 20px; }
.bigsearch input { flex: 1; min-width: 0; height: 58px; border: 0; padding: 0 14px; font: 400 1rem var(--f-mono); outline: 0; background: none; }
.bigsearch .btn { align-self: stretch; height: auto; clip-path: none; }
@media (max-width: 560px) {
  .bigsearch { flex-wrap: wrap; clip-path: none; }
  .bigsearch input { height: 52px; }
  .bigsearch .btn { width: 100%; }
}

/* ---------- Kategorie (rozcestník) ---------- */
.techgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.tech {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 28px; min-height: 200px; padding: 22px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: var(--paper-2);
  transition: background-color .2s, color .2s;
}
.tech__no { color: var(--accent-ink); font-size: .85rem; }
.tech__name { font: 600 clamp(1.4rem, 2.2vw, 1.9rem)/1.05 var(--f-head); align-self: end; }
.tech__go { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); transition: .2s; }
.tech:hover { background: var(--ink); color: var(--white); }
.tech:hover .tech__no { color: var(--accent-light); }
.tech:hover .tech__go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 520px) {
  .techgrid { grid-template-columns: 1fr; }
  .tech { min-height: 0; grid-template-rows: none; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
  .tech__name { font-size: 1.2rem; align-self: center; }
  .tech__go { width: 38px; height: 38px; }
}

/* ---------- Kroky ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { padding-top: 22px; border-top: 2px solid var(--ink); }
.steps__no { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: var(--on-accent); margin-bottom: 22px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.steps p { color: var(--ink-3); margin: 0; }

.section--dark .steps li { border-top-color: var(--white); }
.section--dark .steps h3 { color: var(--white); }
.section--dark .steps p { color: #a9afb5; }
.steps__cta { margin: clamp(32px, 5vw, 48px) 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- O firmě ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 96px); }
.about h2 { max-width: 14ch; }
.about__text { font-size: 1.075rem; color: var(--ink-3); max-width: 62ch; }

.addr { display: flex; gap: 14px; margin-top: 28px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.addr > .ico { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.addr p { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- Dlaždice produktů ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.tile:hover { border-color: var(--ink); }
.tile__img { display: block; aspect-ratio: 1; background: var(--white); overflow: hidden; border-bottom: 1px solid var(--line); }
.tile__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .4s; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__body { padding: 16px 16px 8px; flex: 1; }
.tile__meta { font-size: .75rem; color: var(--steel); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.tile__title { font: 600 1.1rem/1.2 var(--f-head); margin: 0; }
.tile__title a { text-decoration: none; }
.tile__actions { padding: 8px 16px 16px; }
.tile__price { padding: 0 16px 6px; min-height: 76px; } /* stejná výška = ceny v řadě dlaždic na jedné linii */

/* Cena */
.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__main { font: 600 1.15rem/1.1 var(--f-head); }
.price__unit { font-size: .75rem; color: var(--steel); }
.price__vat { flex-basis: 100%; font-size: .78rem; color: var(--steel); }
.price__note { flex-basis: 100%; font-size: .78rem; color: var(--accent-ink); font-weight: 600; }
.price--none { font: 500 .78rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.price--lg { margin: 24px 0 0; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.price--lg .price__main { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.price--lg .price__unit { font-size: .9rem; }
.price--lg .price__vat, .price--lg .price__note { font-size: .9rem; }
.price--lg.price--none { border-left-color: var(--line); font-size: .85rem; }
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile__body { padding: 12px 12px 6px; }
  .tile__meta { font-size: .65rem; }
  .tile__title { font-size: .95rem; }
  .tile__actions { padding: 6px 12px 12px; }
  .tile__price { padding: 0 12px 4px; min-height: 84px; }
  .tile__price .price__main { font-size: 1rem; }
  .tile__actions .btn { padding: 8px 6px; font-size: .8rem; gap: 6px; white-space: normal; }
}
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--mute);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(17,19,21,.04) 10px 11px); }
.noimg .ico { width: 40px; height: 40px; }
.noimg--big { aspect-ratio: 4 / 3; }

/* ---------- Hlavička podstránek ---------- */
.pagehead { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); }
.pagehead h1 { margin: 0; }
.pagehead__lead { color: var(--ink-3); max-width: 62ch; margin: 16px 0 0; }
.pagehead__row { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 24px 48px; align-items: end; }
.pagehead__row .pagehead__lead { margin: 0; }
.pagehead--slim { padding: 16px 0; }
.pagehead--slim .crumbs { margin: 0; }
@media (max-width: 900px) { .pagehead__row { grid-template-columns: 1fr; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 .8rem/1.4 var(--f-mono); color: var(--steel); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Výpis produktů ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 500; font-size: .9rem; }
.chip .mono { font-size: .75rem; color: var(--steel); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip.is-on .mono { color: #9aa1a8; }
.empty { padding: 48px; border: 1px dashed var(--line); text-align: center; background: var(--white); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager a, .pager span, .pager button {
  min-width: 42px; height: 42px; padding: 0 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--white); text-decoration: none; font: 500 .9rem var(--f-mono); cursor: pointer;
}
.pager span:not(.current) { border-color: transparent; background: none; cursor: default; }
.pager .current, .pager [aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager a:hover, .pager button:hover { border-color: var(--ink); color: var(--ink); }
.pager [aria-current]:hover { color: var(--white); }

/* ---------- Detail produktu ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.product__lead { font-size: 1.1rem; color: var(--ink-3); }
.product__info { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product__info { position: static; } }

.gallery__main { position: relative; background: var(--white); border: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.gallery__slide { position: absolute; inset: 0; display: none; cursor: zoom-in; }
.gallery__slide.is-on { display: block; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery__thumb { padding: 0; border: 1px solid var(--line); background: var(--white); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .2s; }
.gallery__thumb:hover img, .gallery__thumb.is-on img { opacity: 1; }
.gallery__thumb.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 11, 12, .9); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; background: var(--white); cursor: pointer; display: grid; place-items: center; }

.specs { margin: 24px 0; border-top: 1px solid var(--ink); }
.specs > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--steel); font-size: .9rem; }
.specs dd { margin: 0; font-weight: 500; }
.specs--big > div { padding: 16px 0; }
.specs--big dd { font-size: 1.1rem; }
.specs--big a { text-decoration: none; }

.buybox { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 24px 0 12px; }
.qty { display: grid; gap: 6px; font-size: .8rem; color: var(--steel); }
.qty input { width: 96px; height: 56px; border: 1px solid var(--ink); padding: 0 12px; font: 500 1rem var(--f-mono); background: var(--white); }
.buybox .btn { flex: 1; }

.prose { max-width: 760px; font-size: 1.05rem; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img, .prose__img { margin: 0 0 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* ---------- Objednávka (košík) ---------- */
.inquiry { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.inquiry__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.inquiry__head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.inquiry__head .mono { font-size: .85rem; background: var(--ink); color: var(--white); padding: 4px 8px; }
.inquiry__form { position: sticky; top: calc(var(--header-h) + 24px); }
.inquiry__empty { padding: 40px 0; }
.inquiry__sum { margin: 0; padding: 14px 0; border-bottom: 2px solid var(--ink); text-align: right; }
.inquiry__sum strong { font: 600 1.25rem var(--f-head); margin-left: 6px; }
.inquiry__sum span { display: block; font-size: .8rem; color: var(--steel); }
.inquiry__more { margin-top: 18px; }
.inquiry__direct { margin-top: 14px; }
.inquiry.is-sent { grid-template-columns: minmax(0, 720px); }
.inquiry.is-sent .inquiry__items, .inquiry.is-sent .panel > h2, .inquiry.is-sent .inquiry__direct { display: none; }
@media (max-width: 960px) { .inquiry { grid-template-columns: 1fr; } .inquiry__form { position: static; } }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__main { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; min-width: 0; }
.line__brand { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); flex-basis: 100%; margin-bottom: 4px; }
.line__name { font-size: 1rem; overflow-wrap: anywhere; }
.line__name a { text-decoration: none; }
.line__sku, .line__grp { font-size: .78rem; color: var(--steel); }
.line__price { font-size: .8rem; font-weight: 600; color: var(--ink); flex-basis: 100%; margin-top: 2px; }
.line__qty { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--steel); }
.line__qty input { width: 76px; height: 40px; border: 1px solid var(--line); padding: 0 8px; font: 500 .95rem var(--f-mono); background: var(--white); }
.line__qty input:focus { border-color: var(--ink); outline: 0; }
@media (max-width: 560px) {
  .line { grid-template-columns: 1fr auto; gap: 10px; }
  .line__main { grid-column: 1 / -1; }
  .line__qty { justify-self: start; }
}

.panel { --c: 22px; position: relative; background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.panel > h2 { margin-bottom: 20px; }

/* ---------- Formulář ---------- */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper-2); padding: 12px 14px; font-size: 1rem; border-radius: 0; resize: vertical;
}
.field input { height: 48px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); background: var(--white); outline: 0; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); background: #fdf3f2; }
.choice { margin: 20px 0 0; padding: 0; border: 0; }
.choice legend { font-size: .8rem; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; padding: 0; }
.choice__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; font-size: .95rem; transition: border-color .15s, background-color .15s; }
.choice__opt + .choice__opt { margin-top: -1px; }
.choice__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.choice__opt:hover { background: var(--white); }
.choice__opt:has(input:checked) { position: relative; z-index: 1; border-color: var(--ink); background: var(--white); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.choice.is-invalid .choice__opt { border-color: var(--err); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .875rem; color: var(--ink-3); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check.is-invalid { color: var(--err); }
.form__error { background: #fdf3f2; border-left: 3px solid var(--err); color: var(--err); padding: 10px 14px; font-size: .9rem; }
.form__done h2 { font-size: 1.8rem; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- 404 a obecné výpisy ---------- */
.notfound .bigsearch { margin-top: 32px; }

.hsearch--inline { width: min(340px, 100%); display: flex; }
.notfound__links { display: flex; gap: 24px; margin-top: 28px; }
.postlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.postlist a { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }

/* ---------- Patička ---------- */
.site-footer { background: var(--ink); color: #b5bbc0; padding: clamp(56px, 8vw, 96px) 0 0; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__cta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-dark); }
.site-footer__big { font: 600 clamp(1.8rem, 3.6vw, 3rem)/1.05 var(--f-head); color: var(--white); margin: 0; text-wrap: balance; }
.site-footer__big span { color: var(--accent-light); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; }
.site-footer .label { color: #7d858c; }
.site-footer strong { color: var(--white); }
.site-footer .plain li { margin-bottom: 6px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: #7d858c; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 36px 0; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
  .site-footer__cta .btn { width: 100%; }
}

/* ---------- Lišta o cookies ---------- */
.cookiebar {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(420px, calc(100vw - 32px));
  display: grid; gap: 14px; padding: 18px 20px; background: var(--ink); color: #c5c9cd; font-size: .875rem; line-height: 1.5;
  border-left: 4px solid var(--accent); box-shadow: 0 10px 30px rgba(17, 19, 21, .25);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.cookiebar p { margin: 0; }
.cookiebar strong { display: block; color: var(--white); font: 600 1rem var(--f-head); margin-bottom: 4px; }
.cookiebar a { color: var(--accent-light); }
.cookiebar .btn { justify-self: start; }

/* ---------- Hláška ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 140%);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--ink); color: var(--white); padding: 14px 20px; font-size: .925rem; max-width: calc(100vw - 32px);
  border-left: 4px solid var(--accent); transition: transform .25s ease, visibility 0s .25s; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .25s ease; }
.toast a { color: var(--accent-light); font-weight: 600; text-decoration: none; white-space: nowrap; }

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