/* ==========================================================================
   Služby Jaroměř — styl webu
   Písmo: Archivo (variabilní šířka + řez). Barvy: grafit, papír, signální žlutá.
   ========================================================================== */

:root {
  --ink: #131312;
  --ink-2: #1d1d1b;
  --paper: #f2f0ea;
  --paper-2: #e7e4dc;
  --white: #fbfaf7;
  --line: #d3cfc5;
  --line-dark: #34332f;
  --muted: #5e5b54;
  --muted-dark: #a5a197;
  --on-dark: #d4d0c6;
  --signal: #ffc20e;

  --wrap: 1320px;
  --gut: clamp(18px, 4vw, 48px);
  --header-h: 72px;

  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
}

/* ---------- Základ ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong, b { font-weight: 700; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus { top: 12px; }

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

/* ---------- Typografie ---------- */

.display {
  font-stretch: 72%;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.012em;
}

h1.display { font-size: clamp(3.25rem, 9.2vw, 8.4rem); }
h2.display { font-size: clamp(2.6rem, 5.6vw, 5rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.3;
}
.kicker::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--signal);
}

.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  max-width: 56ch;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1.5px solid currentColor;
  transition: gap .2s ease, color .2s ease;
}
.textlink svg { width: 16px; height: 16px; flex: none; }
.textlink:hover { gap: 14px; }

.muted { color: var(--muted); }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__mark {
  width: 12px;
  height: 38px;
  background: var(--signal);
}
.brand__text {
  font-stretch: 72%;
  font-weight: 800;
  font-size: 21px;
  line-height: .9;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.brand__text span { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.9vw, 30px);
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--on-dark);
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 11px 16px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 16px;
  letter-spacing: .01em;
  transition: background .2s ease;
}
.header-call svg { width: 17px; height: 17px; }
.header-call:hover { background: var(--white); }

.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-btn__icon {
  position: relative;
  width: 26px;
  height: 12px;
}
.menu-btn__icon::before,
.menu-btn__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 10px; }
.menu-open .menu-btn__icon::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn__icon::after { top: 5px; transform: rotate(-45deg); }

/* Mobilní menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  padding: 12px var(--gut) 32px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s ease, transform .25s ease;
}
.menu-open { overflow: hidden; }

.mobile-menu nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.05;
}
.mobile-menu nav a[aria-current="page"] { color: var(--signal); }
.mobile-menu nav a svg { width: 22px; height: 22px; color: var(--muted-dark); }

.mobile-menu__contact {
  margin-top: auto;
  padding-top: 32px;
  font-size: 15px;
  color: var(--muted-dark);
}
.mobile-menu__contact a { color: var(--paper); }
.mobile-menu__phone {
  display: block;
  margin-bottom: 6px;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: var(--signal) !important;
}

/* ---------- Úvod (hero) ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(48px, 8vw, 116px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: clamp(36px, 5vw, 88px);
  align-items: end;
}

.hero__visual { position: relative; }
.hero__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ink-2);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__photo figcaption {
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero__visual .sign {
  width: calc(100% - 8px);
  margin: -56px 0 0 -40px;
}

.hero .kicker { color: var(--muted-dark); }

.hero h1 { margin: 26px 0 30px; }
.hero h1 em { font-style: normal; color: var(--signal); }

.hero .lead { color: var(--on-dark); }

.hero__more { margin-top: 34px; color: var(--paper); }
.hero__more:hover { color: var(--signal); }

/* Žlutá „cedule“ s telefonem */
.sign {
  position: relative;
  background: var(--signal);
  color: var(--ink);
  padding: 28px 30px 0;
}
.sign__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sign__phone {
  display: block;
  margin: 10px 0 16px;
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(44px, 4.3vw, 58px);
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.sign__phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sign__text {
  font-size: 15.5px;
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1.5px solid var(--ink);
}
.sign__text + .sign__text { border-top: 0; padding-top: 6px; }

.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 11px, var(--signal) 11px 22px);
}
.sign .hazard { margin: 26px -30px 0; }

.hero__areas {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 30px;
  margin-top: clamp(56px, 8vw, 112px);
  padding: 22px 0 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 15px;
  color: var(--muted-dark);
}
.hero__areas strong {
  color: var(--paper);
  font-weight: 600;
  margin-right: 6px;
}

/* ---------- Sekce ---------- */

.section { padding: clamp(68px, 9vw, 132px) 0; }
.section--tight { padding: clamp(52px, 6vw, 88px) 0; }
.section--alt { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 20px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}
.section-head p { color: var(--muted); font-size: 16px; }
.section-head .kicker { margin-bottom: 18px; }

/* ---------- Seznam služeb ---------- */

.svc-list { border-top: 2px solid var(--ink); }

.svc__thumb {
  grid-area: thumb;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.svc__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.svc:hover .svc__thumb img { transform: scale(1.05); }

.svc {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1.2fr) 190px 48px;
  grid-template-areas: "thumb name desc price arrow";
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background .22s ease, padding .22s ease;
}
.svc__name {
  grid-area: name;
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1;
  letter-spacing: -.01em;
}
.svc__desc { grid-area: desc; color: var(--muted); font-size: 16px; line-height: 1.5; }
.svc__price {
  grid-area: price;
  text-align: right;
  font-stretch: 82%;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
  white-space: nowrap;
}
.svc__price small {
  display: block;
  font-stretch: 100%;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}
.svc__arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  transition: background .22s ease, color .22s ease;
}
.svc__arrow svg { width: 20px; height: 20px; transition: transform .22s ease; }

.svc:hover { background: var(--signal); padding-left: 16px; padding-right: 20px; }
.svc:hover .svc__desc,
.svc:hover .svc__price small { color: var(--ink); }
.svc:hover .svc__arrow { background: var(--ink); color: var(--signal); }
.svc:hover .svc__arrow svg { transform: translateX(3px); }

/* ---------- Pás asistence ---------- */

.band {
  position: relative;
  background: var(--signal);
  color: var(--ink);
}
.band > .hazard:first-child { height: 12px; }

.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
  padding: clamp(56px, 7vw, 100px) 0;
}
.band h2 { font-size: clamp(3rem, 7vw, 6.4rem); }
.band p { font-size: 17px; line-height: 1.55; }
.band__phone {
  display: inline-block;
  margin: 22px 0 18px;
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 6px;
}
.band__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------- Podmínky ---------- */

.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.term {
  padding: 30px 32px 40px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.term:nth-child(3n) { border-right: 0; padding-right: 0; }
.term:nth-child(3n + 1) { padding-left: 0; }

.term__value {
  display: block;
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.term h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.term p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- Kontakt ---------- */

.contact {
  background: var(--ink);
  color: var(--paper);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
}
.contact .kicker { color: var(--muted-dark); margin-bottom: 18px; }
.contact h2 { margin-bottom: clamp(28px, 4vw, 48px); }

.contact-list { border-top: 1px solid var(--line-dark); }
.contact-list > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 6px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-list dt { font-size: 14px; color: var(--muted-dark); }
.contact-list dd { font-size: 18px; overflow-wrap: anywhere; }
.contact-list dd a:hover { color: var(--signal); }
.contact-list .is-main dd a {
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1;
  color: var(--signal);
}
.contact-list .is-main dd a:hover { color: var(--paper); }
.contact-list .phone {
  font-stretch: 80%;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
}
.contact-list dd small { display: block; margin-top: 6px; font-size: 14px; }
.contact-list dd small a { border-bottom: 1px solid currentColor; }

.contact__note { margin-top: 26px; color: var(--muted-dark); font-size: 15px; }

.map {
  position: relative;
  min-height: 420px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05) brightness(.96);
}
.map__link {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.map__link svg { width: 16px; height: 16px; }
.map__link:hover { background: var(--white); }

/* ---------- Patička ---------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 15px;
  border-top: 1px solid var(--line-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 56px 0 48px;
}
.site-footer .brand { color: var(--paper); margin-bottom: 18px; }
.site-footer h3 {
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer li + li { margin-top: 6px; }
.site-footer a:hover { color: var(--paper); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}

/* ---------- Mobilní lišta „Zavolat“ ---------- */

.callbar { display: none; }

/* ==========================================================================
   Podstránky
   ========================================================================== */

.page-head {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 5vw, 72px) 0 clamp(44px, 6vw, 84px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--muted-dark);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.crumbs a:hover { color: var(--paper); }
.crumbs span[aria-hidden] { opacity: .6; }

.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px clamp(36px, 6vw, 96px);
  align-items: end;
}
.page-head h1 { font-size: clamp(3rem, 8.4vw, 7.4rem); }
.page-head .lead { margin-top: 26px; color: var(--on-dark); }

.head-contact {
  padding: 4px 0 6px 28px;
  border-left: 1px solid var(--line-dark);
}
.head-contact span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.head-contact a {
  display: inline-block;
  margin: 8px 0 10px;
  font-stretch: 72%;
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: var(--signal);
  white-space: nowrap;
}
.head-contact a:hover { color: var(--paper); }
.head-contact p { font-size: 15px; color: var(--muted-dark); line-height: 1.5; }
.head-contact p a {
  display: inline;
  margin: 0;
  font: inherit;
  color: var(--paper);
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.head-contact p a:hover { color: var(--signal); }

/* Pás klíčových informací */
.facts {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts li {
  padding: 22px 24px 24px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  color: var(--ink);
}

/* ---------- Katalog nářadí ---------- */

.catalog {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.cat-nav {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.cat-nav h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.cat-nav ul { border-top: 1px solid var(--line); }
.cat-nav a {
  position: relative;
  display: block;
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}
.cat-nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 4px;
  background: var(--signal);
  transform: scaleY(0);
  transition: transform .2s ease;
}
.cat-nav a:hover { color: var(--ink); }
.cat-nav a.is-active { color: var(--ink); font-weight: 700; }
.cat-nav a.is-active::before { transform: scaleY(1); }

.cat { margin-bottom: clamp(56px, 7vw, 96px); }
.cat:last-child { margin-bottom: 0; }
.cat__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.cat__img {
  display: block;
  width: 116px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #000;
}
.cat__head h2 {
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -.01em;
}
.cat__head span { font-size: 14px; color: var(--muted); white-space: nowrap; }

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px) 150px;
  gap: 8px 32px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.item h3 {
  font-size: 19px;
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.25;
}
.item p { margin-top: 5px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.item .specs {
  display: flex;
  flex-wrap: wrap;
  font-size: 14.5px;
  line-height: 1.6;
  padding-top: 2px;
}
.item .specs li:not(:last-child)::after {
  content: "/";
  margin: 0 9px;
  color: var(--line);
}
.item__price { text-align: right; }
.item__price strong {
  display: block;
  font-stretch: 78%;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  white-space: nowrap;
}
.item__price strong small {
  font-stretch: 100%;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-left: 2px;
}
.item__price span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

.catalog__aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px 32px;
  background: var(--ink);
  color: var(--paper);
}
.catalog__aside h3 {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  margin-bottom: 6px;
}
.catalog__aside p { color: var(--muted-dark); font-size: 15.5px; }
.catalog__aside .textlink { color: var(--signal); white-space: nowrap; }

/* ---------- Stroje a přívěsy ---------- */

.machine {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 340px;
  gap: 32px clamp(28px, 4vw, 60px);
  align-items: start;
  padding: clamp(44px, 5vw, 64px) 0;
  border-top: 2px solid var(--ink);
}
.machine:first-child { padding-top: 0; border-top: 0; }
.machine-list > .machine:first-child { padding-top: clamp(44px, 5vw, 64px); border-top: 2px solid var(--ink); }

.machine__type {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.machine h2 {
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: .95;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.machine__intro p { color: var(--ink); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.machine__intro p + p { margin-top: 12px; }
.machine__intro .note { color: var(--muted); font-size: 15px; }

.machine__photo {
  margin-top: 28px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.machine__photo img { width: 100%; height: 100%; object-fit: cover; }
.machine__photo.is-product { background: #000; }
.machine__photo.is-product img { object-fit: contain; }

/* Fotky pod hlavičkou podstránky (přes předěl tmavá / světlá) */
.page-photos {
  background: linear-gradient(var(--ink) 0 50%, var(--paper) 50% 100%);
}
.page-photos .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
}
.page-photos figure {
  height: clamp(200px, 30vw, 420px);
  overflow: hidden;
  background: var(--ink-2);
}
.page-photos img { width: 100%; height: 100%; object-fit: cover; }

.split__photo {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.split__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.block-title--spaced { margin-top: clamp(48px, 6vw, 72px); }

.specs-table { border-top: 1px solid var(--ink); }
.specs-table h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0 6px;
}
.specs-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.45;
}
.specs-table dt { color: var(--muted); }
.specs-table dd { font-weight: 600; }

.price-card {
  border: 2px solid var(--ink);
  background: var(--white);
}
.price-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.price-card__head span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card__main {
  display: block;
  font-stretch: 72%;
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  white-space: nowrap;
}
.price-card__main small {
  font-stretch: 100%;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  margin-left: 4px;
}
.price-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.price-card dt { color: var(--muted); }
.price-card dd { font-weight: 700; text-align: right; white-space: nowrap; }
.price-card__top { padding: 20px 22px 18px; border-bottom: 1px solid var(--line); }
.price-card__top span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.price-card__foot {
  padding: 14px 22px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--paper);
}
.price-card__foot strong { color: var(--ink); font-weight: 600; }

/* ---------- Ceníky (tabulky) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.block-title {
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -.01em;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.block-title + p { margin-top: 16px; color: var(--muted); font-size: 16px; }

.pricelist > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.4;
}
.pricelist dt small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.pricelist dd {
  flex: none;
  font-stretch: 80%;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
  text-align: right;
}
.pricelist .is-key { background: var(--signal); padding-left: 16px; padding-right: 16px; border-bottom-color: var(--signal); }
.pricelist .is-free dd { color: var(--ink); }

.plain-list > li {
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 16.5px;
}
.plain-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 12px;
  height: 2px;
  background: var(--ink);
}

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 6px solid var(--signal);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
}
.callout strong { display: block; margin-bottom: 2px; }
.callout a { border-bottom: 1.5px solid currentColor; font-weight: 600; }

.dims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-top: 32px;
}
.dims div { padding: 18px 20px 20px; border-left: 1px solid var(--line); }
.dims div:first-child { border-left: 0; padding-left: 0; }
.dims span { display: block; font-size: 14px; color: var(--muted); }
.dims strong {
  display: block;
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  margin-top: 4px;
}

/* Další služby */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.services-grid article {
  padding: 34px 40px 42px 0;
  border-bottom: 1px solid var(--line);
}
.services-grid article:nth-child(even) {
  padding: 34px 0 42px 40px;
  border-left: 1px solid var(--line);
}
.services-grid h2 {
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.services-grid p { color: var(--muted); max-width: 48ch; }
.services-grid .meta {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.services-grid .textlink { margin-top: 18px; }

/* Výzva na konci podstránky */
.cta { background: var(--signal); color: var(--ink); }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 64px;
  align-items: end;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}
.cta h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.cta p { margin-top: 18px; max-width: 52ch; font-size: 17px; }
.cta__phone { text-align: right; }
.cta__phone span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.cta__phone a {
  display: inline-block;
  margin-top: 8px;
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  white-space: nowrap;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 6px;
}
.cta__phone small { display: block; margin-top: 12px; font-size: 15px; }
.cta__phone small a { all: unset; cursor: pointer; border-bottom: 1px solid currentColor; }

/* ==========================================================================
   Responzivita
   ========================================================================== */

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .svc { grid-template-columns: 108px minmax(0, 1fr) minmax(0, 1.2fr) 170px 48px; gap: 24px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; }

  .machine { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .machine__intro { grid-column: 1 / -1; }
  .machine__intro p { max-width: 64ch; }
}

@media (min-width: 1181px) {
  .mobile-menu { display: none; }
}

@media (max-width: 980px) {
  .hero__grid,
  .page-head__grid,
  .band__grid,
  .contact__grid,
  .split { grid-template-columns: minmax(0, 1fr); }

  .hero__visual { max-width: 560px; }
  .hero__visual .sign { width: calc(100% - 32px); margin: -48px 0 0 32px; }
  .head-contact { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line-dark); }

  .section-head { grid-template-columns: minmax(0, 1fr); }

  .svc {
    grid-template-columns: 88px minmax(0, 1fr) 48px;
    grid-template-areas:
      "thumb name arrow"
      "desc desc desc"
      "price price price";
    gap: 14px 18px;
    padding: 24px 0;
  }
  .svc:hover .svc__thumb img { transform: none; }

  .split__photo { position: relative; top: 0; }
  .svc__price { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .svc__price small { display: inline; }
  .svc:hover { padding-left: 0; padding-right: 0; background: none; }
  .svc:hover .svc__desc { color: var(--muted); }
  .svc:hover .svc__arrow { background: var(--signal); color: var(--ink); }
  .svc__desc { max-width: 60ch; }

  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term:nth-child(n) { padding: 28px 28px 34px; border-right: 1px solid var(--line); }
  .term:nth-child(2n) { border-right: 0; padding-right: 0; }
  .term:nth-child(2n + 1) { padding-left: 0; }

  .map { min-height: 340px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid > :first-child { grid-column: 1 / -1; }

  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  /* Katalog: kategorie jako vodorovný pruh */
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cat-nav {
    top: var(--header-h);
    z-index: 20;
    margin: 0 calc(var(--gut) * -1) 36px;
    padding: 0 var(--gut);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .cat-nav h2 { display: none; }
  .cat-nav ul {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    border: 0;
    scrollbar-width: none;
  }
  .cat-nav ul::-webkit-scrollbar { display: none; }
  .cat-nav li { flex: none; }
  .cat-nav a { padding: 15px 0 13px; border: 0; white-space: nowrap; font-size: 15px; }
  .cat-nav a::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 3px; transform: scaleX(0); }
  .cat-nav a.is-active::before { transform: scaleX(1); }
  html.has-catnav { scroll-padding-top: calc(var(--header-h) + 72px); }

  .item { grid-template-columns: minmax(0, 1fr) auto; }
  .item .specs { grid-column: 1 / -1; grid-row: 2; }
  .item__price { grid-column: 2; grid-row: 1; }

  .machine { grid-template-columns: minmax(0, 1fr); }
  .machine .price-card { order: 2; }
  .machine .specs-table { order: 3; }

  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid article,
  .services-grid article:nth-child(even) { padding: 30px 0 34px; border-left: 0; }

  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__phone { text-align: left; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  body { font-size: 16.5px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  .header-call { display: none; }

  .brand__mark { height: 34px; width: 11px; }
  .brand__text { font-size: 19px; }

  .hero h1 { margin: 20px 0 24px; }
  .hero__areas { gap: 6px 18px; font-size: 14px; }
  .hero__areas strong { flex-basis: 100%; }

  .sign { padding: 24px 22px 0; }
  .sign .hazard { margin: 22px -22px 0; }
  .hero__visual .sign { width: calc(100% - 16px); margin: -40px 0 0 16px; }

  .cat__head { grid-template-columns: 84px minmax(0, 1fr); gap: 4px 16px; align-items: center; }
  .cat__img { width: 84px; grid-row: 1 / span 2; }
  .cat__head h2 { font-size: 30px; align-self: end; }
  .cat__head span { grid-column: 2; align-self: start; }

  .page-photos .wrap { gap: 8px; }
  .page-photos figure { height: 190px; }

  .terms { grid-template-columns: minmax(0, 1fr); }
  .term:nth-child(n) { padding: 26px 0 30px; border-right: 0; }

  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0 36px; }

  .facts li:nth-child(n) { padding: 16px 0 18px 16px; font-size: 14px; }
  .facts li:nth-child(odd) { padding-left: 0; padding-right: 16px; }
  .facts strong { font-size: 15.5px; }

  .item { gap: 10px 20px; padding: 20px 0; }
  .item h3 { font-size: 18px; }
  .item__price strong { font-size: 23px; }

  .catalog__aside { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); }

  .price-card__main { font-size: 40px; }

  .dims { grid-template-columns: minmax(0, 1fr); }
  .dims div:nth-child(n) { border-left: 0; padding: 14px 0; border-top: 1px solid var(--line); }
  .dims div:first-child { border-top: 0; }

  .pricelist > div { font-size: 16px; }
  .pricelist dd { font-size: 20px; }

  .callbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--signal);
    color: var(--ink);
    font-weight: 700;
    font-size: 17px;
    border-top: 2px solid var(--ink);
  }
  .callbar svg { width: 19px; height: 19px; }
  .callbar span { font-weight: 500; }
}

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

@media print {
  .site-header, .callbar, .mobile-menu, .map, .cat-nav { display: none !important; }
  body { padding: 0; background: #fff; }
}
