/* =========================================================================
   KNSD — design system
   Raleway carries the headings, Roboto the prose, Ubuntu the navigation.
   One accent (orange) against black, white and a warm grey.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --accent: #ff7f1f;
  --accent-dark: #e56a10;
  /* Zadavatel trvá na přesném firemním odstínu, takže text i tlačítka používají
     značkovou oranžovou. Na bílé má kontrast 2,53:1, což nesplňuje WCAG AA —
     vědomé rozhodnutí, viz REBUILD.md. */
  --accent-text: #ff7f1f;
  --ink: #000;
  --ink-soft: #333;
  --ink-muted: #6b6b6b;
  --paper: #fff;
  --shade: #f4f4f4;
  --night: #1c1c1c;
  --night-deep: #111;

  --font-display: 'Raleway', 'Raleway Fallback', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Roboto Fallback', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Ubuntu', 'Ubuntu Fallback', 'Helvetica Neue', Arial, sans-serif;

  --container: 1140px;
  --gutter: 24px;

  /* Type scale. The original uses 25 sizes across four pages; this collapses
     the body range into five steps and lifts the small end, which is where the
     rebuild read smaller than the original. */
  --text-xs: 0.8125rem;  /* 13 - nav, labels, kickers, fine print */
  --text-2xs: 0.7rem;    /* 11 - footer fine print only, kept at zadavatel's request */
  --text-sm: 1rem;       /* 16 - secondary text */
  --text-md: 1.125rem;   /* 18 - body and leads */
  --text-lg: 1.25rem;    /* 20 - subheads, footer column titles */
  --text-xl: 1.625rem;   /* 26 - block headings */

  --step-ghost: clamp(3.25rem, 13vw, 5.75rem);
  --step-h1: clamp(2.25rem, 8.4vw, 3.125rem);
  --step-h2: clamp(1.75rem, 6vw, 2.5rem);
  --step-h3: clamp(1.125rem, 1.8vw, 1.375rem);

  --shadow-card: 0 18px 40px rgb(0 0 0 / 12%);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

/* Plynulý posun jen pro odkazy v rámci stránky (Poptat stroj, přeskočit na
   obsah). Zapíná ho app.js až s první akcí uživatele: jinak Chrome animuje
   i skok na kotvu v adrese a nová stránka půl vteřiny sjíždí z vršku dolů. */
html.smooth-scroll { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* The original sets body copy smaller on a phone. 15px measured best across
     all 50 captures (16.84% against 17.01% at 14.4px); compared with the
     reference at 1:1, not guessed from a scaled thumbnail. */
  font: 400 0.9375rem/1.7 var(--font-body);
  overflow-x: hidden;
}

@media (width >= 700px) {
  body { font-size: 1rem; }
}

img,
svg { display: block; max-width: 100%; height: auto; }

/* The wrapper must not form its own inline box, or the reserved aspect-ratio of
   the image inside it stops holding the line and the row jumps on load. */
picture { display: contents; }

/* Dlaň druhé strany téže mince: s display: contents se <source> stávají
   položkami mřížky nebo flexu okolo. Prohlížeč je nekreslí, ale místo jim dá —
   ve výpisu strojů spolkl prázdný řádek 1fr volnou výšku karty a odsunul fotku
   o 24 px dolů, na detailu přidaly dva prázdné řádky 24 px mezery nad fotkou.
   Na výběr zdroje to nemá vliv, ten běží mimo styly. */
picture > source { display: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* Two rings, so one of them always contrasts: the accent alone sat at 1:1 on
   the orange band and 1.8:1 on the button. Dark inner ring reads on light and
   accent surfaces, the light outer ring reads on dark ones. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 92%);
}

/* On the dark bands the order is reversed. */
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.reach :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgb(0 0 0 / 85%);
}

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 80px); }

.section--tight { padding-block: clamp(32px, 4vw, 48px); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
}

.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  /* The submenu panel spans the whole header, not just its own item. */
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 clamp(12px, 1.4vw, 20px) 0 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 90%) 0%, rgb(0 0 0 / 10%) 51%);
}

.site-header__logo {
  flex: none;
  padding: 3px 0 3px 15px;
}

.site-header__logo img { width: 196px; }

.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.site-nav__link {
  display: block;
  padding: 15px 0 13px;
  border-bottom: 3px solid transparent;
  color: #fff;
  font: 500 var(--text-xs)/1 var(--font-ui);
  letter-spacing: normal;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav__item:hover .site-nav__link,
.site-nav__link[aria-current] {
  border-bottom-color: var(--accent);
}

/* mega menu */
.site-nav__item { position: static; }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  /* visibility flips only after the fade when closing, but instantly when
     opening — otherwise a quick Tab lands before the panel is focusable. */
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s 0.18s;
}

.site-nav__item:hover .mega,
.site-nav__item:focus-within .mega,
.site-nav__item[data-open='true'] .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
}

/* The help column answers "none of these eight — who do I ask?", so the
   number leads and the person closes it. Dark ground and the 44px accent mark
   are the same devices as the .reach band, at menu scale. */
/* The help column answers "none of these eight — who do I ask?", so it names
   the person first and then how to reach them. Same order and same devices as
   the .reach band, at menu scale. */
.mega__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
  background: var(--night-deep);
  color: #fff;
}

.mega__aside-kicker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  color: rgb(255 255 255 / 82%);
  font: 600 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mega__aside-kicker::before {
  content: '';
  flex: none;
  width: 32px;
  height: 3px;
  background: var(--accent);
}

.mega__aside-who {
  display: grid;
  gap: 8px;
}

.mega__aside-who strong {
  color: #fff;
  font: 800 clamp(1.1875rem, 1.5vw, 1.375rem)/1.15 var(--font-display);
  letter-spacing: -0.01em;
}

.mega__aside-who span {
  color: var(--accent);
  font: 600 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mega__aside-act {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.mega__aside-phone {
  color: #fff;
  font: 800 var(--text-xl)/1.15 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.mega__aside-email {
  padding-block: 3px;
  color: rgb(255 255 255 / 78%);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega__aside-phone:hover,
.mega__aside-phone:focus-visible,
.mega__aside-email:hover,
.mega__aside-email:focus-visible { color: var(--accent); }

.mega__links {
  display: grid;
  gap: 8px 12px;
  padding: 26px clamp(16px, 2.4vw, 34px);
}

.mega__links--4 { grid-template-columns: repeat(4, 1fr); }

/* Šest kategorií katalogu vychází na tři sloupce beze zbytku; ve čtyřech
   by poslední řádek zůstal zpola prázdný. */
.mega__links--3 { grid-template-columns: repeat(3, 1fr); }

/* Each entry shows its pictogram above the label, as in the original. */
.mega__link {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 6px;
  font-size: var(--text-xs);
  line-height: 1.35;
  text-align: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.mega__link img {
  width: 64px;
  height: auto;
}

/* Piktogramy strojů jsou širší než vysoké, na 64 px by z nich zbyl proužek. */
.mega__links--3 .mega__link img { width: 104px; }

.mega__link-note {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.mega__link:hover .mega__link-note,
.mega__link:focus-visible .mega__link-note { color: inherit; }

.mega__link:hover {
  background: var(--shade);
  color: var(--accent-text);
}

/* The drawer header and the per-item expander exist only on a phone. */
.site-nav__head,
.site-nav__expand { display: none; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 12px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: relative;
}

.nav-toggle span::before { top: -8px; }

.nav-toggle span::after { top: 6px; }

/* Without scripting the drawer cannot open, so the menu renders inline instead
   of sitting off-screen. The footer lists every page either way. */
@media (width <= 960px) {
  .no-js .site-nav {
    position: static;
    width: auto;
    transform: none;
    background: var(--night);
  }

  .no-js .nav-toggle,
  .no-js .site-nav__head,
  .no-js .site-nav__expand { display: none; }

  .no-js .mega { display: block; }
}

@media (width <= 960px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(320px, 82vw);
    padding: 0 0 32px;
    overflow-y: auto;
    background: var(--night);
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
  }

  .site-nav[data-open='true'] { transform: none; }

  .site-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
  }

  .site-nav__logo { width: 132px; }

  .site-nav__close {
    padding: 0 6px;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item {
    position: relative;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .site-nav__link {
    padding: 15px 52px 15px 20px;
    border-bottom: 0;
  }

  /* Chevron that opens the submenu; the parent link still navigates. */
  .site-nav__expand {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 50px;
    border: 0;
    background: none;
    color: rgb(255 255 255 / 70%);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease);
  }

  .site-nav__item[data-open='true'] .site-nav__expand { transform: rotate(180deg); }

  .mega {
    position: static;
    display: none;
    width: auto;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__item[data-open='true'] .mega { display: block; }

  .mega__aside { display: none; }

  .mega__links {
    grid-template-columns: 1fr;
    padding: 4px 0 12px 20px;
  }

  .mega__link {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 9px 0;
    color: rgb(255 255 255 / 72%);
    text-align: left;
  }

  .mega__link img { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(120px, 14vw, 180px) clamp(70px, 9vw, 110px);
  overflow: hidden;
  background: var(--night-deep);
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* The original tints every hero separately - warm sand on the service pages,
   near-black on the overviews - and multiplies it over the photograph. Multiply
   keeps the dark detail a plain alpha wash would flatten; .hero isolates the
   stacking context so the blend stops at the photo. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay, rgb(0 0 0 / 68%));
  mix-blend-mode: multiply;
}

/* The band ends on a shallow zigzag — the signature edge of the site: it dips
   to a low point left of centre, rises to a peak at about two thirds, then
   settles again at the right margin. */
.hero--angled {
  padding-bottom: clamp(120px, 15vw, 190px);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 54px),
    63% calc(100% - 78px),
    29% 100%,
    0 calc(100% - 50px)
  );
}

/* The original sizes each hero band by page type, not by how long its heading
   happens to be — measured variance across five parts pages is zero. Driving it
   with min-height keeps every page of a type the same, which is what makes the
   content below line up. */
.hero--part {
  min-height: 333px;
  padding-block: 78px 78px;
}

.hero--service,
.hero--sales { min-height: 667px; }

.hero--service-index,
.hero--parts-index { min-height: 667px; }

.hero--contact { min-height: 414px; }

@media (width >= 900px) {
  .hero--part { min-height: 380px; }

  .hero--service,
  .hero--sales { min-height: 534px; }

  .hero--contact { min-height: 440px; }
}

@media (width <= 700px) {
  .hero--angled {
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 26px),
      63% calc(100% - 38px),
      29% 100%,
      0 calc(100% - 24px)
    );
  }
}

.hero__inner {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-inline: var(--gutter);
}

.hero__stack {
  display: grid;
  justify-items: center;
}

/* Service pages carry their pictogram in the hero: stacked on a phone, beside
   the heading once there is room. */
.hero__icon {
  width: clamp(130px, 34vw, 168px);
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

@media (width >= 900px) {
  /* With the pictogram beside the heading the band loses height, so it gets
     it back as padding. */
  .hero:has(.hero__inner--with-icon) { padding-block: 162px 102px; }

  .hero__inner--with-icon {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: center;
    justify-content: center;
  }

  .hero__inner--with-icon .hero__icon { margin-bottom: 0; }

  .hero__inner--with-icon .hero__stack { justify-items: start; }

  .hero__inner--with-icon .hero__title,
  .hero__inner--with-icon .hero__ghost { text-align: left; }

  /* Already off the title's centre; a further shift would leave the stack. */
  .hero__inner--with-icon .hero__ghost { translate: none; }
}

/* Oversized translucent word sitting behind the real heading. */
.hero__ghost {
  translate: -6% 0;
  margin-bottom: -0.5em;
  color: rgb(255 255 255 / 9%);
  font-family: var(--font-display);
  font-size: var(--step-ghost);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.hero__title {
  position: relative;
  font-size: var(--step-h1);
  font-weight: 800;
  /* The original sets no tracking here and packs the lines tight; 0.01em plus
     a 1.1 line-height was enough to push the service headings onto a second
     line that the original keeps on one. */
  line-height: 1;
  letter-spacing: normal;
  text-transform: uppercase;
}

/* Desktop runs a uniform 50px heading, but the phone sizes it per page type.
   Measured on the original: part 33, service and contact 30, both overviews 48. */
@media (width < 900px) {
  /* The original insets the hero content by 10px on a phone, not by the site
     gutter. The 14px difference is what pushed "Náhradní díly" onto a second
     line at the size the original keeps on one. Scoped to the hero: the content
     sections below it keep the wider gutter. */
  .hero__inner { padding-inline: 10px; }

  .hero--part .hero__title { font-size: 2.0625rem; }

  .hero--service .hero__title,
  .hero--contact .hero__title,
  .hero--legal .hero__title { font-size: 1.875rem; }

  .hero--service-index .hero__title,
  .hero--parts-index .hero__title {
    font-size: 3rem;
    line-height: 1.2;
  }

  .hero__title--marked {
    line-height: 1.3;
    letter-spacing: 4.4px;
  }
}

.hero__title--accent { color: var(--accent); }

/* Homepage variant: the heading sits in solid accent bars and is deliberately
   narrow so it breaks onto two lines, one bar per line. */
.hero__title--marked {
  max-width: 11ch;
  font-size: clamp(2.375rem, 10.5vw, 3.125rem);
}

.hero__title--marked span {
  display: inline;
  padding: 0.08em 0.3em;
  background: linear-gradient(90deg, rgb(255 127 31 / 82%) 0%, rgb(255 166 43 / 83%) 100%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: #fff;
}

.hero__eyebrow {
  margin-bottom: 20px;
  font: 500 1.625rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The block only positions the run; the orange belongs to the inline span so
   that every wrapped line gets its own box instead of one tall rectangle. */
/* The strapline is one component, not a per-page variant: the service pages and
   the service overview run identical values (measured 27px on desktop, 40px on a
   phone - the original goes larger on the smaller screen). The block only
   positions it; the orange belongs to the inline span so every wrapped line gets
   its own box. Sliced rather than cloned, so only the first and last line carry
   the side padding - that is what makes the three blocks ragged. */
.hero__subtitle {
  margin-top: 26px;
  font: 600 2.5rem/1.3 var(--font-display);
  letter-spacing: 4.4px;
  text-transform: uppercase;
}

/* Only the service detail pages rag the blocks to the left; home and the
   service overview centre every line. */
.hero--service .hero__subtitle,
.hero--sales .hero__subtitle { text-align: left; }

.hero__subtitle > span {
  padding: 5px 15px;
  background: linear-gradient(90deg, rgb(255 127 31 / 82%) 0%, rgb(255 166 43 / 83%) 100%);
  box-decoration-break: slice;
  -webkit-box-decoration-break: slice;
}

.hero__lead {
  max-width: 44rem;
  margin-top: 22px;
  font-size: 1.0625rem;
}

@media (width < 900px) {
  .hero__lead {
    max-width: 330px;
    font-size: 1.125rem;
    line-height: 1.5;
  }
}

@media (width >= 900px) {
  .hero__lead {
    max-width: 52rem;
    font-size: var(--text-md);
    line-height: 1.6;
  }
}

.hero__lead strong { font-weight: 700; }

/* Brand row inside the homepage hero. */
.hero__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(12px, 3vw, 56px);
  align-items: center;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 44px);
}

.hero__brands img {
  width: clamp(104px, 27vw, 165px);
  aspect-ratio: 1360 / 317;
  object-fit: contain;
  opacity: 0.62;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s var(--ease);
}

.hero__brands img:hover { opacity: 0.9; }

/* The legal page gets a restrained hero: a long title has no business filling
   the screen before the text starts. */
.hero--compact {
  padding-block: 96px 56px;
}

.hero--compact .hero__ghost { display: none; }

.hero--compact .hero__subtitle {
  max-width: 46ch;
  margin-top: 16px;
  color: rgb(255 255 255 / 88%);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}

.hero--compact .hero__subtitle > span {
  padding: 0;
  background: none;
}


/* ---------- homepage hero ----------
   Reworked at the client's request. The original stacks three orange bars,
   which reads as one heavy slab; this keeps a single accent, sets the column
   to the left so the photograph has room, and turns the service promise into
   a badge rather than a competing headline. */
@media (width >= 760px) {
  .hero.hero--home {
    min-height: 100svh;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    padding-block: clamp(96px, 12vh, 150px) 0;
  }
}

.hero--home .hero__entries { justify-self: stretch; }

/* On a phone too: the panels are the band's own bottom edge at every width. */
.hero.hero--home { padding-bottom: 0; }

.hero--home .hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}



.hero--home .hero__title--home,
.hero--home .hero__lead { max-width: 46rem; }

.hero__kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  color: #fff;
  font: 600 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__kicker::before {
  content: '';
  width: 44px;
  height: 3px;
  background: var(--accent);
}

.hero__title--home {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(255 127 31 / 92%) 0%, rgb(255 166 43 / 92%) 100%);
  color: #fff;
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero--home .hero__lead {
  margin-top: 24px;
  color: rgb(255 255 255 / 88%);
}

/* The three main entries, set as a strip at the foot of the hero. */
/* Photo panels closing the full-height hero. The original put two of these
   straddling the hero's bottom edge — warm photograph, white line pictogram,
   caption underneath. Here there are three and they anchor the band. */
.hero__entries {
  display: grid;
  flex: none;
  width: 100%;
  margin-top: clamp(30px, 5vh, 64px);
  padding-inline: 0;
}

@media (width >= 700px) {
  .hero__entries { grid-template-columns: repeat(3, 1fr); }
}

.hero__entries a {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(10px, 1.4vh, 18px);
  min-height: 124px;
  padding: clamp(18px, 2.4vh, 30px) 16px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

@media (width >= 700px) {
  .hero__entries a { min-height: clamp(178px, 27vh, 320px); }
}

.hero__entry-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s var(--ease);
}

/* The photographs are warm and busy; without this the caption is unreadable. */
.hero__entries a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 40%);
  transition: background 0.3s var(--ease);
}

/* An accent edge that grows from the bottom on hover — the panel has no room
   for an arrow without competing with the pictogram. */
.hero__entries a::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.3s var(--ease);
}

.hero__entries a:hover::after,
.hero__entries a:focus-visible::after { scale: 1 1; }

.hero__entries a:hover .hero__entry-photo,
.hero__entries a:focus-visible .hero__entry-photo { scale: 1.06; }

.hero__entries a:hover::before,
.hero__entries a:focus-visible::before { background: rgb(0 0 0 / 24%); }

.hero__entry-label {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 1.6vh, 20px);
  font: 800 clamp(1.0625rem, 1.9vw, 1.625rem)/1.2 var(--font-display);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.hero__entry-label::before {
  content: '';
  width: 44px;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.hero__entries a:hover .hero__entry-label::before,
.hero__entries a:focus-visible .hero__entry-label::before { width: 76px; }

.hero--home .hero__brands {
  justify-content: start;
  margin-top: 40px;
}

/* ---------- selling points on /servis ---------- */
.usp {
  padding-block: 30px 50px;
  /* White sits directly above, so the grey fades in instead of cutting. */
  background: linear-gradient(180deg, #fff 0%, rgb(245 245 245) 110px), rgb(245 245 245);
}

.usp__list {
  display: grid;
  text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px clamp(24px, 3vw, 44px);
}

.usp__icon {
  width: 80px;
  height: auto;
  margin-bottom: 18px;
}

.usp__title {
  margin-bottom: 8px;
  font-size: var(--text-md);
  font-weight: 600;
}

.usp__text {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ---------- ghost heading used inside light sections ---------- */
.ghost-heading {
  position: relative;
  margin-bottom: clamp(18px, 3vw, 32px);
  text-align: center;
}

/* Dead-centre behind the title the ghost read as a misprint; off the axis it
   reads as deliberate. translate, not margin: no reflow, no wrap. */
.ghost-heading__ghost {
  translate: -6% 0;
  margin-bottom: -0.54em;
  color: rgb(0 0 0 / 7%);
  font-family: var(--font-display);
  font-size: var(--step-ghost);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.ghost-heading__title {
  position: relative;
  font-size: var(--step-h2);
  font-weight: 800;
  text-transform: uppercase;
}

.ghost-heading__title em {
  color: var(--accent-text);
  font-style: normal;
}

.page-home .ghost-heading__title {
  font-size: 2.5rem;
  line-height: 1.4;
}

/* Faded machine watermark behind a light section. */
.section--watermark {
  position: relative;
  overflow: hidden;
}

.section--watermark > .container { position: relative; z-index: 1; }

.section__watermark {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  /* width comes from the page data; the original scales this one by percentage */
  height: auto;
  object-fit: contain;
  opacity: 0.26;
  pointer-events: none;
  user-select: none;
}

/* ---------- breadcrumb ----------
   A quiet orientation line under the hero, not a design element: it exists so
   a visitor arriving from search knows where in the site they landed. */
.crumbs {
  padding-block: 14px 0;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.crumbs li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.crumbs li + li::before {
  content: '›';
  color: rgb(0 0 0 / 30%);
}

.crumbs a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(0 0 0 / 22%);
}

.crumbs a:hover { color: var(--accent-dark); }

.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- lead block ---------- */
.lead { display: grid; gap: clamp(28px, 5vw, 56px); }

@media (width >= 900px) {
  /* The prose column is the wider of the two, as in the original. */
  .lead { grid-template-columns: 1.22fr 1fr; align-items: start; }

  /* A comparison figure needs more of the row than a list does. */
  .lead:has(.compare) { grid-template-columns: 1fr 0.95fr; }
}

/* The pictogram stands beside the kicker and heading, as in the original;
   stacked above them it pushed the whole page down by its own height. */
.lead__head {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.lead__icon {
  flex: none;
  width: 91px;
}

@media (width < 700px) {
  .lead__icon { width: 68px; }
}

.lead__heading--tight { margin-bottom: 0; }

.lead__kicker {
  color: var(--accent-text);
  font: 700 1.125rem/1.3 var(--font-body);
}

.lead__heading {
  margin-bottom: 22px;
  font-size: var(--step-h2);
  font-weight: 800;
}

.lead__body {
  color: var(--ink-soft);
  text-align: justify;
  hyphens: manual;
}

.lead__body--centered {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  hyphens: manual;
}

.lead__body a { color: var(--accent-text); text-decoration: underline; }

.lead__split {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

@media (width >= 900px) {
  .lead__split { grid-template-columns: 1.25fr 1fr; }
}

.lead__photo { margin: 0; }

.lead__photo img {
  width: 100%;
  aspect-ratio: 673 / 488;
  object-fit: contain;
}

/* ---------- listing block ---------- */
.listing {
  position: relative;
  overflow: hidden;
}

.listing__decor {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  width: 100%;
  height: min(70%, 420px);
  object-fit: contain;
  opacity: 0.26;
  pointer-events: none;
  user-select: none;
}

.listing__inner { position: relative; z-index: 1; }

.listing__heading {
  margin-bottom: 18px;
  font-size: 1.375rem;
  font-weight: 700;
  font-family: var(--font-body);
}

@media (width >= 700px) {
  .listing__heading { font-size: var(--step-h3); }
}

.listing__items {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding-left: 20px;
}

@media (width >= 700px) {
  .listing__items { padding-left: 0; }
}

@media (width >= 620px) {
  .listing__items--split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

.listing__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: baseline;
  /* The original sets these in bold; regular weight reads as a different list. */
  font-weight: 700;
}

.listing__item::before {
  content: '▸';
  color: var(--accent-text);
  font-size: 0.9em;
}

.listing__note {
  font-weight: 700;
  text-align: justify;
  hyphens: manual;
}

.listing__note--wide {
  max-width: 60rem;
  margin: clamp(26px, 4vw, 44px) auto 0;
  text-align: center;
  hyphens: manual;
}

/* ---------- tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}

@media (width >= 900px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }

  .tile { padding: clamp(16px, 2.2vw, 24px) 12px; }
}

.tile {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 34px 12px;
  background: transparent;
  text-align: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.tile:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.tile img:not(.tile__media) {
  width: 104px;
  transition: filter 0.2s var(--ease);
}

@media (width >= 700px) {
  .tile img:not(.tile__media) { width: 148px; }
}

.tile:hover img:not(.tile__media) { filter: brightness(0) invert(1); }

.tile__label {
  font: 700 var(--text-sm)/1.35 var(--font-display);
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.tile:hover .tile__label { color: #fff; }

.tile__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  /* The original offsets this by -90px, but that was measured against a wider
     container; centring reproduces the same crop here. */
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease);
}

/* The overview grid sits on the dark hero: white pictograms, accent labels. */
.tiles--onDark {
  width: 100%;
  margin-top: clamp(28px, 4vw, 44px);
  grid-template-columns: repeat(2, 1fr);
}

.tiles--onDark-single { grid-template-columns: 1fr; }

.tiles--onDark-single .tile { padding-block: 34px; }

.tiles--onDark .tile__icon {
  width: 92px;
  aspect-ratio: 92 / 74;
}

/* Must stay after the rule above: same specificity, and the service overview
   matches both selectors. */
.tiles--onDark-single .tile__icon {
  width: 148px;
  aspect-ratio: 1;
}

@media (width >= 760px) {
  .tiles--onDark { grid-template-columns: repeat(6, 1fr); }

  .tiles--onDark-single { grid-template-columns: repeat(4, 1fr); }

  .tiles--onDark-single .tile { padding-block: clamp(16px, 2.2vw, 24px); }

  .tiles--onDark-single .tile__icon { width: 157px; }
}

.tile--dark { background: transparent; }

/* The pictogram is drawn as a mask so hover can recolour it exactly. */
.tile__icon {
  display: block;
  width: 104px;
  aspect-ratio: 1;
  background: #fff;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
  transition: background 0.2s var(--ease);
}

@media (width >= 700px) {
  .tile__icon { width: clamp(56px, 6vw, 78px); }
}

.tile--dark .tile__label {
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

.tile--dark:hover {
  background: rgb(255 255 255 / 6%);
  transform: none;
}

.tile--dark:hover .tile__icon { background: var(--accent); }

.tile--dark:hover .tile__label { color: #fff; }

/* USP cards on the service overview. */
.usp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  text-align: center;
}

.usp__item img { width: 72px; margin: 0 auto 14px; }

.usp__title {
  margin-bottom: 8px;
  font-size: var(--text-md);
  font-weight: 800;
}

.usp__text { color: var(--ink-muted); font-size: var(--text-sm); }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}


.gallery img {
  width: 100%;
  /* Stacked on a phone, so a wider crop keeps the pair near the vertical
     footprint the original's slider occupies. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (width >= 620px) {
  .gallery img { aspect-ratio: 4 / 3; }
}

/* ---------- before / after comparison ---------- */
.compare {
  --compare-pos: 50%;

  position: relative;
  max-width: 560px;
  margin: 0;
  overflow: hidden;
  line-height: 0;
  touch-action: pan-y;
}

.compare__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* The second photograph is revealed from the divider rightwards. */
.compare__image--after {
  position: absolute;
  inset: 0;
  height: 100%;
  clip-path: inset(0 0 0 var(--compare-pos));
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-pos);
  width: 2px;
  background: var(--accent);
  pointer-events: none;
}

/* Positioned rather than laid out: a grid item inside a 2px track gets squashed. */
.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  line-height: 1;
}

/* The native control sits on top: pointer, keyboard and assistive tech all
   drive the same value. It is invisible but not hidden. */
.compare__control {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.compare__control::-webkit-slider-thumb {
  width: 44px;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.compare__control::-moz-range-thumb {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
}

.compare__control:focus-visible + .compare__divider,
.compare:has(.compare__control:focus-visible) .compare__handle {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lead__aside-list { margin-top: 26px; }

.compare__caption {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* Without scripting the divider cannot move, so both photographs show in full. */
.no-js .compare__image--after { position: static; clip-path: none; }

.no-js .compare__divider,
.no-js .compare__control { display: none; }

/* ---------- primary button ---------- */
.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 22px;
  border-radius: 6px;
  background: linear-gradient(160deg, #ff7f1f 34%, #ffa62b 99%);
  color: #222;
  font: 600 var(--text-md)/1.35 var(--font-body);
  text-transform: uppercase;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.button:hover {
  background: linear-gradient(160deg, #e56a10 34%, #ff9a1a 99%);
  transform: translateY(-2px);
}

.button__icon { flex: none; }

/* ---------- cross-sell line ----------
   A secondary path, so it stays on the page's own ground: two hairlines and a
   single row. Making it a second dark band put it in competition with the
   contact block below, which is the page's actual conversion point. */
/* Text only a screen reader needs — an off-site link has to announce itself,
   the icon beside it cannot. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.crosslink {
  padding-block: clamp(34px, 4.4vw, 58px);
}

.crosslink__inner {
  display: grid;
  gap: clamp(20px, 3vw, 44px);
}

@media (width >= 900px) {
  .crosslink__inner--split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  /* The band carries no frame, so this hairline is what makes the two halves
     read as one block rather than two stray texts on white. */
  .crosslink__inner--split .crosslink__body {
    padding-left: clamp(30px, 3.6vw, 58px);
    border-left: 1px solid rgb(0 0 0 / 12%);
  }

  .crosslink__head {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* The heading is centred where it heads a whole section; in this column it
   has to sit on the same left edge as everything else. */
.crosslink__head .ghost-heading {
  margin-bottom: 0;
  text-align: left;
}

/* Left-aligned, the ghost already sits off the title's centre; shifting it
   further would push it out of the container (on a phone, off the screen). */
.crosslink__head .ghost-heading__ghost { translate: none; }

.crosslink__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}

/* The 44px accent mark every other region of the site opens with; this band
   was the only one without it. */
.crosslink__body::before {
  content: '';
  width: 44px;
  height: 3px;
  background: var(--accent);
}

.crosslink__text {
  display: grid;
  gap: 4px;
  max-width: 54rem;
}

.crosslink__text strong {
  font-size: var(--text-lg);
  font-weight: 700;
}

.crosslink__text span {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* An outline, not a fill: the cross-sell stays secondary to the page it sits
   on, but a bare orange word did not read as something to press. */
.crosslink__go {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 28px;
  margin-top: 4px;
  padding: 13px 24px;
  border: 2px solid var(--accent);
  color: var(--accent-text);
  font: 700 var(--text-md)/1 var(--font-display);
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.crosslink__go:hover,
.crosslink__go:focus-visible {
  background: var(--accent);
  color: #fff;
}

.crosslink__go svg { transition: translate 0.25s var(--ease); }

.crosslink__go:hover svg,
.crosslink__go:focus-visible svg { translate: 6px 0; }

/* ---------- reach us ----------
   The conversion point of every page. A visitor here wants to call, so the
   number is the headline and everything else supports it. */
.reach {
  position: relative;
  padding-block: clamp(52px, 6vw, 84px);
  overflow: hidden;
  background: var(--night-deep);
  color: #fff;
  isolation: isolate;
}

.reach::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/hero/kovova-textura-y4r9xcY.jpg") 50% 0 / cover no-repeat fixed;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.reach__inner {
  display: grid;
  gap: 26px clamp(32px, 5vw, 72px);
}

@media (width >= 760px) {
  .reach__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 26px clamp(28px, 3.4vw, 56px);
    align-items: stretch;
  }
}

.reach__kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: clamp(22px, 2.6vw, 34px);
  color: rgb(255 255 255 / 82%);
  font: 600 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reach__kicker::before {
  content: '';
  flex: none;
  width: 44px;
  height: 3px;
  background: var(--accent);
}

/* Identity and action are peers, each centred in its own half. */
.reach__who,
.reach__act {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reach__name {
  color: #fff;
  font: 800 clamp(1.5rem, 2.8vw, 2.125rem)/1.1 var(--font-display);
  letter-spacing: -0.01em;
}

.reach__role {
  margin-top: 10px;
  color: var(--accent);
  font: 600 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (width >= 760px) {
  .reach__act {
    padding-left: clamp(32px, 4vw, 64px);
    border-left: 1px solid rgb(255 255 255 / 18%);
  }
}

@media (width < 760px) {
  .reach__act {
    padding-top: 24px;
    border-top: 1px solid rgb(255 255 255 / 18%);
  }
}

.reach__phone {
  align-self: start;
  color: #fff;
  font: 800 clamp(1.75rem, 3.6vw, 2.75rem)/1.05 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.reach__phone:hover,
.reach__phone:focus-visible { color: var(--accent); }

.reach__email {
  align-self: start;
  margin-top: 14px;
  color: rgb(255 255 255 / 78%);
  font-size: var(--text-md);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reach__email:hover,
.reach__email:focus-visible { color: var(--accent); }

.reach__more {
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 14px;
  color: rgb(255 255 255 / 62%);
  font-size: var(--text-sm);
}

.reach__more::after {
  content: '›';
  margin-left: 8px;
  transition: translate 0.25s var(--ease);
}

.reach__more:hover,
.reach__more:focus-visible { color: var(--accent); }

.reach__more:hover::after,
.reach__more:focus-visible::after { translate: 4px 0; }


/* ---------- partners ---------- */
.partners {
  padding-block: 77px;
  background: linear-gradient(90deg, #f07e19 0%, #ffa62b 100%);
  color: #fff;
  text-align: center;
}


.partners .ghost-heading__title { color: var(--ink); }

/* The logo row is a separate statement from the heading, not its caption. */
.partners .ghost-heading { margin-bottom: clamp(34px, 4.6vw, 62px); }

.partners__list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

@media (width >= 700px) {
  .partners__list {
    flex-direction: row;
    gap: 34px clamp(18px, 2vw, 28px);
  }
}

/* Equal columns across the whole container. Only from 1000px: narrower than
   that, six columns squeeze the logos below 130px and two wrapped rows at full
   size read better. */
@media (width >= 1000px) {
  .partners__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: clamp(16px, 1.8vw, 26px);
    align-items: center;
  }
}

.partners__list img {
  width: 158px;
  aspect-ratio: 1360 / 317;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.85;
}

@media (width >= 1000px) {
  .partners__list img { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding-block: 46px 0;
  background: rgb(65 69 73);
  color: #fff;
  font-size: 0.875rem;
  isolation: isolate;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/hero/kovova-textura-y4r9xcY.jpg") 50% 0 / cover no-repeat fixed;
  mix-blend-mode: multiply;
}

.site-footer__grid {
  display: grid;
  gap: 16px clamp(24px, 4vw, 40px);
}

@media (width >= 760px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (width >= 1040px) {
  .site-footer__grid { grid-template-columns: 1fr 2fr 1fr; }
}

/* Logo and both contact groups sit on one row above the link columns. */
.site-footer__top {
  display: grid;
  gap: 20px clamp(24px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

@media (width >= 760px) {
  .site-footer__top { grid-template-columns: auto 1fr 1fr; }
}

.site-footer__logo {
  width: 196px;
}

.site-footer__contact p {
  font-size: 1rem;
  line-height: 1.55;
}

.site-footer__lines a {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.site-footer__icon {
  flex: none;
  color: var(--accent);
  transform: translateY(1px);
}

.site-footer__grid { padding-top: clamp(22px, 4vw, 56px); }

.site-footer__title {
  margin-bottom: 10px;
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
}

.site-footer a:hover { color: var(--accent); }

.site-footer__grid li a {
  display: block;
  min-height: 24px;
  font-weight: 200;
}

.site-footer li { padding: 0.5px 0; }

.site-footer__grid li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 6px;
  align-items: baseline;
}

.site-footer__grid li::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.75em;
}

@media (width >= 620px) {
  .site-footer__links--split {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(6, auto);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
  }
}

/* The closing bar is its own band: the footer grey darkened by a third,
   ruled off with the accent hairline the original uses. */
.site-footer__bottom {
  margin-top: clamp(20px, 5.5vw, 80px);
  padding-block: 8px;
  border-top: 1px solid var(--accent);
  background: rgb(0 0 0 / 33%);
  font-size: var(--text-2xs);
}

.site-footer__bottom p { margin: 0; }

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__notice,
.site-footer__credit span { color: rgb(255 255 255 / 55%); }

.site-footer__legal a { color: #fff; }

/* The author's credit: two short lines of text with the mark beside them. */
.site-footer__credit {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 24px;
  text-align: right;
  line-height: 1.25;
}

.site-footer__credit img {
  width: 144px;
  height: auto;
}

/* On a phone the bar stacks tightly and the credit stays on one line. */
.site-footer__bottom-inner {
  gap: 6px;
  justify-content: flex-start;
}

.site-footer__credit {
  width: 100%;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.625rem;
}

.site-footer__credit img { width: 86px; }

/* ---------- katalog strojů ----------
   Dědí slovník webu: fotopanel z hero, vlasová linka s 44px oranžovou
   značkou z kontaktních karet, obrysové tlačítko z křížového odkazu. */
.catalogue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

/* Fotka nahoře v plné barvě, text pod ní na bílé — stejně jako karta
   stroje o úroveň níž. Rám a šipka říkají, že se dá kliknout, i bez myši. */
.catalogue__card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  height: 100%;
  border: 1px solid rgb(0 0 0 / 12%);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), translate 0.25s var(--ease);
}

@media (width >= 620px) {
  .catalogue__card { grid-template-columns: none; grid-template-rows: auto 1fr; }
}

.catalogue__card:hover,
.catalogue__card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  translate: 0 -3px;
}

.catalogue__media {
  display: block;
  overflow: hidden;
  background: var(--shade);
}

.catalogue__photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: scale 0.5s var(--ease);
}

.catalogue__card:hover .catalogue__photo,
.catalogue__card:focus-visible .catalogue__photo { scale: 1.05; }

.catalogue__label {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

@media (width >= 620px) {
  .catalogue__label { padding: clamp(18px, 2vw, 24px); }
}

/* Oranžová čárka nad názvem, jako na kontaktních kartách; při najetí se
   protáhne. */
.catalogue__name {
  display: grid;
  gap: 4px;
  font: 800 clamp(1rem, 1.5vw, 1.25rem)/1.2 var(--font-display);
  font-variant-numeric: lining-nums;
  text-transform: uppercase;
}

.catalogue__name::before {
  content: '';
  width: 44px;
  height: 3px;
  margin-bottom: 8px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.catalogue__card:hover .catalogue__name::before,
.catalogue__card:focus-visible .catalogue__name::before { width: 76px; }

.catalogue__name em {
  color: var(--accent-text);
  font-style: normal;
  white-space: nowrap;
}

.catalogue__go {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgb(0 0 0 / 10%);
  color: var(--ink-soft);
  font: 700 var(--text-xs)/1 var(--font-display);
  font-variant-numeric: lining-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalogue__go svg {
  margin-left: auto;
  color: var(--accent-text);
  transition: translate 0.25s var(--ease);
}

.catalogue__card:hover .catalogue__go svg,
.catalogue__card:focus-visible .catalogue__go svg { translate: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  .catalogue__card:hover,
  .catalogue__card:focus-visible { translate: none; }
}

/* Na hlavní stránce vede mřížka dál do katalogu; na stránce prodeje ne,
   tam katalog už je. */
.catalogue__more {
  margin-top: clamp(26px, 3.4vw, 44px);
  text-align: center;
}

/* ---------- výpis strojů ---------- */
.machines__intro {
  max-width: 62ch;
  margin-bottom: clamp(26px, 3.4vw, 44px);
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: 1.6;
}

/* ---------- přepínač kategorií ---------- */
.cat-switch {
  margin-bottom: clamp(26px, 3.4vw, 44px);
  /* Při skoku na #kategorie nezůstane přilepený k horní hraně okna. */
  scroll-margin-top: 20px;
}

/* Na telefonu dva stejně široké sloupce bez piktogramů: v jednom by šest
   dlaždic zabralo 390 px nad výpisem. Od tabletu tři, na počítači všech šest
   v jedné řadě — dřív se zalamovaly 5 + 1 a šestá visela sama. */
.cat-switch ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (width >= 700px) {
  .cat-switch ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (width >= 1000px) {
  .cat-switch ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cat-switch__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid rgb(0 0 0 / 14%);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

@media (width >= 700px) {
  .cat-switch__item {
    align-items: center;
    gap: 6px;
    padding: 16px 12px 14px;
    text-align: center;
  }
}

/* Piktogramy jsou šedé, dokud na ně nepadne pozornost — barevných šest vedle
   sebe by přehlušilo výpis strojů pod nimi. */
.cat-switch__icon {
  display: none;
  width: 84px;
  height: auto;
  margin-bottom: 4px;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease), translate 0.25s var(--ease);
}

@media (width >= 700px) {
  .cat-switch__icon { display: block; }
}

.cat-switch__name {
  font: 800 var(--text-xs)/1.3 var(--font-display);
  font-variant-numeric: lining-nums;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cat-switch__name em {
  display: block;
  color: var(--accent-text);
  font-style: normal;
  white-space: nowrap;
}

/* Počet sedí u spodní hrany, ať je v řadě na jedné lince, i když se název
   jedné záložky zalomí a sousední ne. */
.cat-switch__count {
  margin-top: auto;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.cat-switch__item:hover,
.cat-switch__item:focus-visible { border-color: var(--accent); }

.cat-switch__item:hover .cat-switch__icon,
.cat-switch__item:focus-visible .cat-switch__icon {
  filter: none;
  opacity: 1;
  translate: 0 -2px;
}

/* Ta, na které stojíme, je značka polohy: oranžový rám s pruhem nahoře
   a barevný piktogram. Plná oranžová plocha přetlačila celý výpis. */
.cat-switch__item--here {
  border-color: var(--accent);
  box-shadow: inset 0 4px 0 var(--accent);
  background: rgb(255 127 31 / 6%);
}

.cat-switch__item--here .cat-switch__icon {
  filter: none;
  opacity: 1;
}

.cat-switch__item--here .cat-switch__count { color: var(--ink-soft); }

.machines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

@media (width >= 900px) {
  .machines { grid-template-columns: repeat(3, 1fr); }
}

.machine-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid rgb(0 0 0 / 12%);
  transition: border-color 0.2s var(--ease);
}

.machine-card:hover,
.machine-card:focus-visible { border-color: var(--accent); }

.machine-card__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--shade);
}

.machine-card__body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(16px, 2vw, 22px);
}

.machine-card__model {
  font: 800 var(--text-lg)/1.2 var(--font-display);
}

.machine-card__summary {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.machine-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgb(0 0 0 / 10%);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.machine-card__specs em {
  display: block;
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.machine-card__go {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  margin-top: 6px;
  color: var(--accent-text);
  font: 700 var(--text-sm)/1 var(--font-display);
  text-transform: uppercase;
}

.machine-card__go svg { transition: translate 0.25s var(--ease); }

.machine-card:hover .machine-card__go svg,
.machine-card:focus-visible .machine-card__go svg { translate: 6px 0; }

/* ---------- detail stroje ---------- */
.machine {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

@media (width >= 900px) {
  /* Fotka a text vlevo, nabídková karta vpravo. Dřív byl text vpravo a pod
     fotkou zbývalo přes dvě stě pixelů prázdna. */
  .machine { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
}

.machine__media {
  display: grid;
  gap: 12px;
}

/* ---------- klíčová čísla ---------- */
.keyfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(22px, 2.6vw, 30px);
  border: 1px solid rgb(0 0 0 / 14%);
  background: rgb(0 0 0 / 14%);
}

@media (width >= 560px) {
  .keyfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Popisek nahoře, hodnota dole: bez pevné výšky popisku by se u „hloubka
   výkopu" zalomil na dva řádky a čísla by neseděla na jedné lince. */
.keyfacts li {
  display: grid;
  grid-template-rows: 2.6em auto;
  gap: 2px;
  padding: 12px 14px;
  background: #fff;
}

.keyfacts__label {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.keyfacts__value {
  align-self: end;
  font: 800 clamp(1.125rem, 1.5vw, 1.3125rem)/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- nabídková karta ---------- */
.buybox {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgb(0 0 0 / 14%);
  background: #fff;
  box-shadow: 0 18px 40px -34px rgb(0 0 0 / 60%);
}

@media (width >= 900px) {
  .buybox {
    position: sticky;
    top: 96px;
  }
}

.buybox__price {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(0 0 0 / 12%);
}

.buybox__amount {
  font: 800 var(--step-h3)/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.buybox__note {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Popisek a hodnota tvoří jeden údaj, takže mezera patří mezi údaje,
   ne mezi popisek a jeho hodnotu. */
.buybox__facts { margin: 18px 0 22px; }

.buybox__facts dt + dd { margin-bottom: 14px; }

.buybox__facts dd:last-child { margin-bottom: 0; }

.buybox__facts dt {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buybox__facts dd {
  margin: 3px 0 0;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.45;
}

/* Oranžový rám jako všechna hlavní tlačítka na webu, jen přes celou šířku
   karty. Technický list pod ním proto nesmí být taky rám — dva rámy pod
   sebou vypadají jako dvě stejně důležité nabídky. Je to tichý odkaz. */
.buybox__go {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border: 2px solid var(--accent);
  color: var(--accent-text);
  font: 800 var(--text-md)/1 var(--font-display);
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

/* Stejně jako ostatní tlačítka webu: oranžová plocha, bílý text a šipka
   se posune. Viz .crosslink__go. */
.buybox__go:hover,
.buybox__go:focus-visible {
  background: var(--accent);
  color: #fff;
}

.buybox__go svg { transition: translate 0.25s var(--ease); }

.buybox__go:hover svg,
.buybox__go:focus-visible svg { translate: 6px 0; }

.buybox__sheet {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  transition: color 0.2s var(--ease);
}

/* Podtržení patří jen názvu; velikost souboru je poznámka, ne odkaz.
   Podtržení na rodiči by ji podtrhlo taky — text-decoration se nedědí zpět. */
.buybox__sheet span { text-decoration: underline; text-underline-offset: 3px; }

.buybox__sheet small { color: var(--ink-muted); }

.buybox__sheet svg { flex: none; color: var(--accent-text); }

.buybox__sheet:hover { color: var(--accent-dark); }

/* Kdo radši zavolá, ať nemusí hledat číslo v patičce. */
.buybox__who {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgb(0 0 0 / 12%);
  font-size: var(--text-sm);
}

.buybox__who span { color: var(--ink-muted); }

.buybox__who a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font: 700 var(--text-md)/1.2 var(--font-display);
  color: var(--accent-dark);
}

.buybox__who a:hover { text-decoration: underline; }

/* ---------- srovnání v kategorii ---------- */
/* Pět sloupců čísel se na telefon nevejde, tabulka se proto roluje do strany.
   Samotný overflow nestačí: prohlížeč ji i tak počítá do šířky dokumentu a
   roluje se celá stránka — contain: paint ji uzavře do jejího vlastního rámu.
   První sloupec zůstává stát, jinak člověk při rolování neví, čí číslo čte. */
.compare-table {
  overflow-x: auto;
  contain: paint;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table th,
.compare-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgb(0 0 0 / 10%);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.compare-table thead th {
  color: var(--ink-muted);
  font: 700 var(--text-xs)/1.4 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table th:first-child,
.compare-table td:first-child { text-align: left; }

.compare-table tbody th { font-weight: 700; }

/* Řádek stroje, na kterém člověk stojí — jinak není vůči čemu porovnávat. */
.compare-table tbody tr[aria-current] { background: var(--shade); }

.compare-table tbody tr[aria-current] th:first-child { background: var(--shade); }

.compare-table tbody tr[aria-current] th::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.compare-table__go a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--accent-dark);
  text-decoration: underline;
}

.compare-table__go span { color: var(--ink-muted); }

/* ---------- lepicí výzva na telefonu ---------- */
/* display: flex by přebilo [hidden], a pruh by visel na stránce pořád. */
.callbar[hidden] { display: none; }

.callbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(17 17 17 / 96%);
  box-shadow: 0 -6px 24px -12px rgb(0 0 0 / 60%);
}

@media (width >= 900px) {
  .callbar { display: none; }
}

.callbar__model {
  color: #fff;
  font: 700 var(--text-sm)/1.2 var(--font-display);
}

.callbar__go {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #222;
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Fotka a text drží pohromadě v levém sloupci, karta stojí vedle nich. */
.machine__main { display: grid; gap: clamp(20px, 2.6vw, 30px); }

/* ---------- galerie stroje ----------
   Jméno .photoset, ne .gallery: ta už patří bloku fotek na servisních
   stránkách a její vícesloupcový grid by sem postavil náhledy vedle
   velké fotky. */
.photoset { display: grid; gap: 10px; }

.photoset__frame { position: relative; }

.photoset__slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--shade);
}

/* Bez JavaScriptu jsou fotky pod sebou; se skriptem se ukazuje jen aktivní. */
.no-js .photoset__frame { display: grid; gap: 12px; }

html:not(.no-js) .photoset__slide:not([data-active]) { display: none; }

html:not(.no-js) .photoset__slide img { cursor: zoom-in; }

.photoset__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgb(17 17 17 / 82%);
  color: #fff;
  font: 600 var(--text-xs)/1 var(--font-ui);
  cursor: zoom-in;
  transition: background 0.15s var(--ease);
}

.photoset__zoom:hover { background: var(--accent); color: #222; }

.photoset__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.photoset__thumb {
  display: block;
  border: 2px solid transparent;
  transition: border-color 0.15s var(--ease);
}

.photoset__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--shade);
}

.photoset__thumb:hover { border-color: rgb(0 0 0 / 30%); }

.photoset__thumb[aria-current] { border-color: var(--accent); }

/* ---------- prohlížeč fotek ---------- */
.lightbox {
  width: min(96vw, 1400px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: none;
}

.lightbox::backdrop { background: rgb(0 0 0 / 88%); }

/* Ve velkém se ukazuje celá fotka — kvůli tomu se otevírá; ve výřezu 3:2
   se u plakátů s textem ořízne půlka sdělení. */
.lightbox img {
  display: block;
  width: 100%;
  max-height: 94vh;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__close,
.lightbox__step {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgb(17 17 17 / 72%);
  color: #fff;
  font: 400 1.5rem/1 var(--font-ui);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.lightbox__close:hover,
.lightbox__step:hover { background: var(--accent); color: #222; }

.lightbox__close { top: 10px; right: 10px; font-size: 1.1rem; }

.lightbox__step { top: 50%; translate: 0 -50%; }

.lightbox__step--prev { left: 10px; }

.lightbox__step--next { right: 10px; }

.lightbox__count {
  position: absolute;
  bottom: 12px;
  left: 50%;
  translate: -50% 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(17 17 17 / 72%);
  color: #fff;
  font: 600 var(--text-xs)/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.machine__intro p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- tabulka parametrů ---------- */
.specs { background: linear-gradient(180deg, #fff 0%, rgb(245 245 245) 110px), rgb(245 245 245); }

.specs__heading {
  margin-bottom: clamp(22px, 3vw, 34px);
  font-size: var(--step-h2, var(--step-h3));
  font-weight: 800;
}

/* Sloupce místo mřížky: skupiny mají velmi různý počet řádků a v mřížce
   nechávaly pod jednořádkovým blokem díru přes celou buňku. Ve sloupcích
   se poskládají za sebe a nikde nezbude prázdno. */
.specs__groups {
  columns: 3 280px;
  column-gap: clamp(20px, 2.4vw, 32px);
}

.specs__group {
  break-inside: avoid;
  margin-bottom: clamp(16px, 2vw, 22px);
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgb(0 0 0 / 10%);
  background: #fff;
}

.specs__group h3 {
  position: relative;
  margin-bottom: 14px;
  padding-top: 12px;
  font-size: var(--text-md);
  font-weight: 800;
}

.specs__group h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
}

/* Bez mezery mezi sloupci: tečkovaná linka pod popiskem a pod hodnotou na
   sebe musí navázat, jinak nevede oko od jednoho ke druhému. */
.specs__group dl {
  display: grid;
  grid-template-columns: 1fr auto;
}

/* Řádky oddělené tečkovanou linkou: u dvou sloupců daleko od sebe se bez
   ní čte hodnota z vedlejšího řádku. */
.specs__group dt {
  padding: 5px 14px 5px 0;
  border-bottom: 1px dotted rgb(0 0 0 / 14%);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.specs__group dd {
  padding: 5px 0;
  border-bottom: 1px dotted rgb(0 0 0 / 14%);
}

.specs__group dl > :nth-last-child(-n+2) { border-bottom: 0; }

.specs__group dd {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ---------- poptávka ---------- */
.enquiry { background: var(--shade); }

.enquiry__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (width >= 900px) {
  .enquiry__inner { grid-template-columns: 0.85fr 1.15fr; }
}

.enquiry__kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--ink-muted);
  font: 600 var(--text-xs)/1 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.enquiry__kicker::before {
  content: '';
  flex: none;
  width: 44px;
  height: 3px;
  background: var(--accent);
}

.enquiry__heading {
  margin-bottom: 14px;
  font-size: var(--step-h3);
  font-weight: 800;
}

.enquiry__note {
  color: var(--ink-soft);
  line-height: 1.6;
}

.enquiry__who {
  display: grid;
  gap: 4px;
  justify-items: start;
  margin-top: clamp(20px, 2.6vw, 28px);
  padding-top: clamp(18px, 2.4vw, 24px);
  border-top: 1px solid rgb(0 0 0 / 14%);
}

.enquiry__who strong { font: 800 var(--text-md)/1.3 var(--font-display); }

.enquiry__who a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.enquiry__who a:hover { color: var(--accent-dark); }

.enquiry__row {
  display: grid;
  gap: 0 clamp(16px, 2vw, 24px);
}

@media (width >= 620px) {
  .enquiry__row { grid-template-columns: 1fr 1fr; }
}

.enquiry__form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.enquiry__form input,
.enquiry__form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgb(0 0 0 / 22%);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.enquiry__form textarea { resize: vertical; }

.enquiry__form input:focus-visible,
.enquiry__form textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Chyba u konkrétního pole, ne jen souhrn nahoře. */
.enquiry__form ul {
  margin: -12px 0 14px;
  color: #b3300c;
  font-size: var(--text-sm);
}

.enquiry__error,
.enquiry__done {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: #fff;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.enquiry__error { border-left-color: #b3300c; }

.enquiry__gdpr {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.enquiry__gdpr a { text-decoration: underline; }

/* Past na roboty: mimo obrazovku, ale ne display:none — to některé
   vyplňovací skripty přeskočí. */
.enquiry__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- contact page ---------- */
.contact-title {
  margin-bottom: clamp(30px, 3.8vw, 46px);
  font-size: var(--step-h2);
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 3vw, 40px);
}

@media (width >= 1040px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

/* A hairline with the site's 44px accent mark gives each card an edge. Without
   it the four cards floated in the whitespace and read as one loose list. */
.contact-card {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid rgb(0 0 0 / 12%);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
}

.contact-card__role {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 800;
  line-height: 1.25;
}

.contact-card__name {
  margin-bottom: 14px;
  font-size: var(--text-md);
}

/* Phone and email are one unit; the old 9px padding on each pushed them
   apart far enough to read as two separate items. */
.contact-card__lines {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.contact-card__link {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 28px;
  padding-block: 2px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.contact-card__link--phone {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.contact-card__link:hover { color: var(--accent-dark); }

.contact-icon { color: var(--accent-text); }

/* Address details sit on the accent band, as on the original. */
.address-band {
  padding-block: clamp(40px, 5vw, 68px);
  background: linear-gradient(90deg, #f07e19 0%, #ffa62b 100%);
  color: var(--ink);
}

.address-band__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(26px, 3.2vw, 42px);
  border-bottom: 1px solid rgb(0 0 0 / 26%);
}

@media (width >= 860px) {
  .address-band__inner { grid-template-columns: 1fr 1.15fr; }
}

.address-band__title {
  margin-bottom: 16px;
  font-size: var(--text-md);
  font-weight: 800;
}

.address-band__lines {
  margin-bottom: 14px;
  line-height: 1.6;
}

.address-band__lines strong { font-weight: 700; }

.address-band__row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  margin-bottom: 2px;
}

.address-band__icon { flex: none; }

.address-band__map-link {
  padding-block: 4px;
  font-weight: 700;
  text-decoration: none;
}

.address-band__map-link:hover,
.address-band__map-link:focus-visible { text-decoration: underline; }

/* Two sub-columns, split where the meaning splits: postal address on the
   left, registry identifiers on the right. */
.address-band__billing { display: grid; gap: 10px 46px; }

@media (width >= 560px) {
  .address-band__billing { grid-template-columns: auto 1fr; }
}

.address-band__ids {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 12px;
  margin: 0 0 14px;
  line-height: 1.6;
}

.address-band__ids dt {
  font-weight: 700;
  white-space: nowrap;
}

/* The browser's own 40px indent on dd tore the label off its value. */
.address-band__ids dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.address-band__note {
  max-width: 44ch;
  color: rgb(0 0 0 / 68%);
  font-size: var(--text-xs);
  font-style: italic;
  line-height: 1.55;
}

.contact-map {
  display: block;
  width: 100%;
  height: clamp(300px, 30vw, 400px);
  border: 0;
}

/* ---------- legal / prose ---------- */
.prose {
  color: var(--ink-soft);
  line-height: 1.62;
  text-align: justify;
  hyphens: manual;
}

/* Body copy keeps a comfortable measure, except on the legal page where the
   original runs the full container width. */
.prose--narrow { max-width: 70ch; }

/* The legal page runs wide, but not the full 1140px container. */
.prose--legal { max-width: 60rem; }

.prose--centred {
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
  hyphens: manual;
}

.page-home .prose--centred {
  max-width: 660px;
  font-size: var(--text-md);
  line-height: 1.5;
}

.prose h2 {
  margin-block: 1.6em 0.5em;
  font-size: var(--step-h3);
  font-weight: 800;
}

.prose a { color: var(--accent-text); text-decoration: underline; }

.prose ul { margin-bottom: 1.1em; padding-left: 1.2em; list-style: disc; }

/* Wide screens sit tighter than the fluid defaults, which are tuned for phones. */
@media (width >= 900px) {
  .ghost-heading__ghost {
    translate: -12% 0;
    margin-bottom: -0.33em;
  }

  .hero__title--marked {
    max-width: 20ch;
    font-size: 3.75rem;
    line-height: 1.3;
  }

  .site-header__logo {
    padding-block: 0;
    padding-left: 15px;
  }

  .site-header__logo img { width: 160px; }

  .hero__brands img { width: clamp(104px, 10vw, 134px); }

  .section { padding-block: 56px; }

  .section--tight { padding-block: 36px; }

  .hero { padding-block: 160px 100px; }

  /* Legal and contact keep the restrained band; this has to sit in the same
     block as the rule above, or source order would undo it. */
  .hero--compact { padding-block: 110px 64px; }

  /* The homepage hero carries more content than the inner pages, so it needs
     less padding to reach the same band height. */
  .hero:not(.hero--angled) { padding-block: 108px 62px; }

  /* The panels close the band on its own edge, so nothing sits under them. */
  .hero.hero--home { padding-bottom: 0; }

  /* Both overviews carry a tile grid, but the service labels wrap to two lines
     and the band carries a strapline, so the two need different room. */


  .hero__subtitle {
    margin-top: 24px;
    font-size: 1.6875rem;
  }

  .hero--angled { padding-bottom: 108px; }

  /* Nadpis vnitřních stránek o 70 px výš. Pás má pevnou minimální výšku
     a obsah v něm na středu, takže co ubude nahoře, přibude dole - výška
     pásu zůstává. Úzký pás kontaktu a právních stránek má nadpis u hlavičky
     už teď. */
  .hero--angled:not(.hero--compact) { padding-block: 90px 178px; }

  /* Přehledy rostou s mřížkou pod nadpisem. Tady se odsazení nahoře prostě
     zkrátí, aby se na obrazovku 1440 × 900 vešla celá nabídka služeb. */
  .hero--angled.hero--service-index { padding-block: 115px 108px; }

  .hero--angled.hero--parts-index { padding-block: 113px 208px; }

  .partners { padding-block: 86px; }

  .reach { padding-block: 84px; }

  .site-footer { padding-block: 78px 0; }

  .site-footer__logo { width: 255px; }

  .site-footer__bottom-inner { justify-content: space-between; }

  .site-footer__credit {
    width: auto;
    justify-content: flex-start;
  }

  .site-footer__credit-text > span { display: block; }

  .site-footer__bottom-inner { gap: 8px 24px; }

  .site-footer__credit {
    gap: 14px;
    font-size: var(--text-2xs);
  }

  .site-footer__credit img { width: 144px; }

  .site-footer li { padding: 0; }

  .site-footer__grid { gap: 24px clamp(24px, 4vw, 40px); }
}
