/* ==========================================================
   NAKLADAC.CZ — KOHÚT A SPOL.  ·  Industrial / rugged system
   ========================================================== */
:root {
  --bg: #101216;
  --surface: #181C22;
  --surface-2: #1F242B;
  --accent: #FFC300;
  --accent-press: color-mix(in oklab, var(--accent), black 14%);
  --accent-ghost: color-mix(in oklab, var(--accent) 14%, transparent);
  --hazard: #FFC300;
  --text: #F5F5F4;
  --muted: #9AA0A6;
  --line: #2E343C;
  --sil: #343B45;          /* silhouette fill */
  --sil-2: #3E4651;        /* silhouette detail */
  --hz-op: 1;              /* hazard stripe intensity */
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
}
.lead { color: var(--muted); font-size: 18px; max-width: 62ch; text-wrap: pretty; }

/* ---------- hazard stripes ---------- */
.hz {
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--hazard) 0 14px, var(--bg) 14px 28px);
  opacity: var(--hz-op);
}
.hz--thin { height: 5px; }
.hz--accent {
  background: repeating-linear-gradient(-45deg,
    var(--accent) 0 14px, var(--bg) 14px 28px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 18px;
  padding: 14px 26px; border: 2px solid transparent;
  background: var(--accent); color: #15171B;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-press); }
.btn:active { filter: brightness(.95); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent-ghost); }
.btn--lg { font-size: 21px; padding: 17px 34px; }
.btn--sm { font-size: 15px; padding: 9px 16px; }
.btn--dark { background: #101216; color: var(--text); }
.btn--dark:hover { background: #07080A; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 18, 22, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 28px; height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 26px; color: #15171B;
}
.logo-word { line-height: 1; }
.logo-word strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 24px; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap;
}
.logo-word span {
  display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; white-space: nowrap;
}
.logo-word strong span { display: inline; font-size: inherit; letter-spacing: inherit; color: var(--accent); margin: 0; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav > li { position: relative; }
.nav a.nav-link {
  display: block; padding: 10px 13px;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: 17px; letter-spacing: .04em; color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color .15s;
}
.nav a.nav-link:hover { color: var(--accent); }
.nav a.nav-link[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav .caret { font-size: 12px; color: var(--muted); margin-left: 4px; }

.sub {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav > li:hover .sub, .nav > li:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 16px;
}
.sub a small { color: var(--muted); font-size: 13px; }
.sub a:last-child { border-bottom: none; }
.sub a:hover { background: var(--surface-2); color: var(--accent); }

.hdr-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.hdr-tel { text-align: right; line-height: 1.15; }
.hdr-tel small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hdr-tel a { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: .03em; }
.hdr-tel a:hover { color: var(--accent); }

.burger {
  display: none; background: none; border: 1px solid var(--line);
  width: 46px; height: 46px; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text);
}
.burger span { top: 21px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media svg { width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,18,22,.96) 0%, rgba(16,18,22,.82) 44%, rgba(16,18,22,.25) 100%);
}
.hero-in { position: relative; padding: 96px 0 104px; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--hazard);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--hazard); }
.hero h1 { font-size: clamp(54px, 7vw, 96px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 22px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
.sec--tight { padding: 64px 0; }
.sec--alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(34px, 4vw, 52px); }
.sec-head .num {
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  letter-spacing: .2em; color: var(--accent); display: block; margin-bottom: 10px;
}
.sec-link {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 17px; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px; white-space: nowrap;
}
.sec-link:hover { color: var(--text); border-color: var(--text); }

/* ---------- trust bar ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.trust-item {
  padding: 26px 28px; border-right: 1px solid var(--line);
  display: flex; gap: 16px; align-items: center; background: var(--surface);
}
.trust-item:last-child { border-right: none; }
.trust-item .t-ico { color: var(--accent); flex-shrink: 0; }
.trust-item strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; font-size: 19px; letter-spacing: .03em;
}
.trust-item small { color: var(--muted); font-size: 14px; }

/* ---------- placeholder visuals ---------- */
.ph {
  position: relative; background:
    linear-gradient(180deg, #20242B 0%, #181B20 100%);
  border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center;
}
.ph::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 10px, transparent 10px 20px);
  opacity: calc(var(--hz-op) * .5);
}
.ph svg { width: 78%; height: auto; max-height: 82%; }
.ph .ph-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 3px 7px;
  background: rgba(16,18,22,.7);
}

/* ---------- category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; display: flex; flex-direction: column; }
.cat-card:hover { border-color: var(--accent); }
.cat-card .ph { aspect-ratio: 16/10; border: none; border-bottom: 1px solid var(--line); }
.cat-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cat-body h3 { font-size: 28px; }
.cat-body h3 span { color: var(--accent); }
.cat-body p { color: var(--muted); font-size: 15px; flex: 1; }
.cat-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.cat-meta .pw { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--hazard); letter-spacing: .04em; }
.cat-meta .arr { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 16px; letter-spacing: .05em; color: var(--accent); }
.cat-card:hover .arr { text-decoration: underline; }

/* ---------- spec chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--bg);
  padding: 4px 9px; color: var(--muted); white-space: nowrap;
}
.chip b { color: var(--text); font-weight: 700; }

/* ---------- machine cards ---------- */
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.m-grid--3 { grid-template-columns: repeat(3, 1fr); }
.m-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .15s; position: relative; }
.m-card:hover { border-color: var(--accent); }
.m-card .ph { aspect-ratio: 4/3; border: none; border-bottom: 1px solid var(--line); }
.m-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.m-body .m-brand { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.m-body h3 { font-size: 25px; }
.m-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; align-items: center; }
.m-price { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .03em; color: var(--hazard); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #15171B; padding: 4px 10px;
}
.badge--stock { background: var(--hazard); }
.badge--used { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { background: var(--bg); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.svc-card .s-ico { color: var(--accent); }
.svc-card h3 { font-size: 26px; }
.svc-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.svc-card .svc-tel { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .03em; }
.svc-card .svc-tel small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.svc-card .svc-tel a:hover { color: var(--accent); }

/* ---------- accessories ---------- */
.acc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.acc-item {
  border: 1px solid var(--line); background: var(--surface);
  padding: 26px 16px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: border-color .15s;
}
.acc-item:hover { border-color: var(--accent); }
.acc-item svg { color: var(--muted); }
.acc-item:hover svg { color: var(--accent); }
.acc-item strong { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: .04em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #15171B; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 0; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 3.4vw, 44px); }
.cta-band p { font-weight: 600; margin-top: 6px; }
.cta-band .big-tel { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: .02em; white-space: nowrap; }
.cta-band .big-tel small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- footer ---------- */
.ftr { background: #0B0D10; border-top: 1px solid var(--line); }
.ftr-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.ftr h4 { font-size: 18px; letter-spacing: .08em; margin-bottom: 18px; color: var(--text); }
.ftr p, .ftr li { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.ftr a:hover { color: var(--accent); }
.ftr .f-tel { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.ftr .f-tel b { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .04em; color: var(--text); }
.ftr-base { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }

/* ---------- breadcrumb ---------- */
.crumb { padding: 18px 0 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--line); }
.crumb b { color: var(--text); font-weight: 600; }

/* ---------- filter bar ---------- */
.fbar { background: var(--surface); border: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.fgroup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fgroup .flabel { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 92px; }
.fchip {
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 6px 14px; transition: all .12s;
}
.fchip:hover { border-color: var(--muted); }
.fchip.on { background: var(--accent); border-color: var(--accent); color: #15171B; }
.fcount { color: var(--muted); font-size: 14px; }
.m-card.hide { display: none; }

/* compare */
.cmp-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.cmp-row input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.cmp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--surface); border-top: 2px solid var(--accent);
  transform: translateY(110%); transition: transform .2s;
}
.cmp-bar.show { transform: translateY(0); }
.cmp-bar-in { display: flex; align-items: center; gap: 18px; padding: 14px 0; flex-wrap: wrap; }
.cmp-names { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cmp-name { border: 1px solid var(--line); background: var(--bg); padding: 5px 12px; font-family: var(--font-head); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.cmp-modal { position: fixed; inset: 0; z-index: 200; background: rgba(11,13,16,.86); display: none; place-items: center; padding: 24px; }
.cmp-modal.open { display: grid; }
.cmp-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); max-width: 860px; width: 100%; max-height: 86vh; overflow: auto; padding: 30px 34px 34px; }
.cmp-card h3 { font-size: 30px; margin-bottom: 18px; }

/* ---------- tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px; color: var(--muted); }
.spec-table td b { font-weight: 600; }
.spec-table tr:nth-child(odd) td { background: rgba(255,255,255,.015); }
.spec-table td.val { color: var(--text); font-weight: 600; }

/* ---------- detail page ---------- */
.pd-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; padding: 36px 0 72px; align-items: start; }
.pd-gallery .ph { aspect-ratio: 4/3; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd-thumb { aspect-ratio: 4/3; cursor: pointer; border: 1px solid var(--line); background: var(--surface); padding: 0; }
.pd-thumb.on { border-color: var(--accent); }
.pd-thumb .ph { width: 100%; height: 100%; border: none; }
.pd-thumb .ph::after { display: none; }

.pd-buy h1 { font-size: clamp(38px, 4vw, 54px); }
.pd-claim { color: var(--muted); margin: 12px 0 22px; font-size: 17px; }
.kparams { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 22px; }
.kparam { padding: 16px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.kparam:nth-child(3n) { border-right: none; }
.kparam:nth-child(n+4) { border-top: 1px solid var(--line); }
.kparam b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: .01em; color: var(--accent); }
.kparam small { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 20px; }
.pd-price b { font-family: var(--font-head); font-weight: 800; font-size: 34px; letter-spacing: .02em; }
.pd-price span { color: var(--muted); font-size: 14px; }
.pd-ctas { display: flex; flex-direction: column; gap: 10px; }
.pd-ctas .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pd-note .dot { width: 8px; height: 8px; background: var(--hazard); flex-shrink: 0; }

.minibar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  background: var(--surface); border-bottom: 2px solid var(--accent);
  transform: translateY(-110%); transition: transform .2s;
}
.minibar.show { transform: translateY(0); }
.minibar-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.minibar b { font-family: var(--font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.minibar .chips { flex: 1; }

.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-item { border: 1px solid var(--line); background: var(--surface); padding: 26px; }
.feat-item b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 6px; }
.feat-item p { color: var(--muted); font-size: 15px; }
.feat-item .f-num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--hazard); letter-spacing: .14em; }

.dl-row { display: flex; gap: 14px; flex-wrap: wrap; }
.dl-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--surface); padding: 14px 20px; transition: border-color .15s; }
.dl-item:hover { border-color: var(--accent); }
.dl-item svg { color: var(--accent); }
.dl-item b { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: .04em; display: block; }
.dl-item small { color: var(--muted); font-size: 12.5px; }

/* ---------- form ---------- */
.inq { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.inq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq-form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 16px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form-ok { display: none; border: 1px solid var(--hazard); background: rgba(255,195,0,.08); padding: 18px 22px; grid-column: 1 / -1; }
.form-ok.show { display: block; }
.form-ok b { font-family: var(--font-head); text-transform: uppercase; font-size: 19px; letter-spacing: .04em; color: var(--hazard); }

/* ---------- SEO text ---------- */
.seo-text { max-width: 880px; color: var(--muted); font-size: 15.5px; }
.seo-text h2, .seo-text h3 { color: var(--text); font-size: 26px; margin: 26px 0 10px; }
.seo-text p { margin-bottom: 12px; text-wrap: pretty; }

/* ---------- mobile ---------- */
@media (max-width: 1140px) {
  .nav a.nav-link { padding: 10px 9px; font-size: 16px; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }
  .acc { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 940px) {
  .burger { display: block; }
  .hdr-tel { display: none; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--surface); border-bottom: 2px solid var(--accent);
    flex-direction: column; align-items: stretch; padding: 10px 0 18px;
  }
  .hdr.nav-open .nav { display: flex; }
  .nav a.nav-link { padding: 13px 28px; font-size: 19px; border-bottom: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: none; background: transparent; min-width: 0; }
  .sub a { padding: 10px 28px 10px 46px; border-bottom: none; color: var(--muted); }
  .cats, .svc, .m-grid--3, .feat { grid-template-columns: 1fr; }
  .pd-top, .inq { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .hero-in { padding: 64px 0 72px; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .m-grid { grid-template-columns: 1fr; }
  .acc { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: none; }
  .ftr-in { grid-template-columns: 1fr; }
  .kparams { grid-template-columns: 1fr 1fr; }
  .kparam:nth-child(3n) { border-right: 1px solid var(--line); }
  .kparam:nth-child(2n) { border-right: none; }
  .kparam:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 60px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* ===== implementacni vrstva: realne fotky + oprava menu (PureOnline) ===== */
.ph.ph--photo { overflow: hidden; background: var(--surface-2); }
.ph.ph--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.ph--photo .ph-tag { display: none; }
.cat-card .ph.ph--photo img,
.m-card .ph.ph--photo img { transition: transform .5s ease; }
.cat-card:hover .ph.ph--photo img,
.m-card:hover .ph.ph--photo img { transform: scale(1.05); }
.pd-thumb .ph.ph--photo { width: 100%; height: 100%; }
[data-gallery-main].ph--photo { background: var(--surface); }
[data-gallery-main].ph--photo img { object-fit: cover; }

/* hero photo */
.hero-media.hero-media--photo {
  background-image: url("img/ctx-hero.jpg");
  background-size: cover; background-position: center center;
  filter: saturate(1.02) brightness(.95);
}

/* ---- menu fix (DESKTOP only): jednoradkove, zarovnane k prave, bez zalamovani ---- */
@media (min-width: 941px) {
  .nav { flex: 1; justify-content: flex-end; gap: 4px; }
  .nav a.nav-link { white-space: nowrap; }
  .nav .caret { display: inline; white-space: nowrap; }
}
@media (min-width: 941px) and (max-width: 1240px) { .nav a.nav-link { padding: 10px 10px; font-size: 15px; } }
@media (min-width: 941px) and (max-width: 1080px) { .hdr-tel { display: none; } .hdr-in { gap: 18px; } }

/* ---- oprava mobilniho horizontalniho preteceni (pre-existing bug) ---- */
@media (max-width: 940px) {
  .pd-gallery, .pd-top > *, .inq > *, .m-grid > *, .cats > * { min-width: 0; }
}
@media (max-width: 620px) {
  .hdr-cta .btn { display: none; }   /* poptavka dostupna pres menu + obsah */
  .pd-ctas .row2 { grid-template-columns: 1fr; }
}
img { max-width: 100%; }
