/* ERES PART — web
   Design tokeny převzaté z konceptu (Claude Design „Eres Part Design System").
   Písma: Archivo (variable, wght 100–900, wdth 62–125), JetBrains Mono (variable). */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-var.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --accent: #E11519;
  --accent-hover: #BE1014;
  --accent-press: #8C0C0F;
  --accent-soft: #FDE3E2;
  --accent-2: #1191AB;

  --ink: #0D0E10;
  --ink-2: #17191C;
  --ink-3: #212429;
  --body: #40454D;
  --muted: #6B7178;

  --bg-canvas: #FFFFFF;
  --bg-page: #F6F7F8;
  --bg-dark: #0D0E10;

  --border-subtle: #DCDFE3;
  --border-default: #BFC4CB;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container: 1180px;
  --container-wide: 1360px;
  --radius: 8px;
  --radius-sm: 3px;

  --shadow-sm: 0 1px 2px rgba(13,14,16,.08), 0 1px 1px rgba(13,14,16,.04);
  --shadow-md: 0 4px 10px -2px rgba(13,14,16,.10), 0 2px 4px -2px rgba(13,14,16,.06);
  --shadow-lg: 0 14px 28px -8px rgba(13,14,16,.16), 0 6px 12px -8px rgba(13,14,16,.08);

  --header-h: 74px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.02;
  letter-spacing: -.015em;
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.05rem; text-transform: none; font-variation-settings: 'wdth' 100; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-3); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); flex: none; }
.eyebrow--light { color: rgba(255,255,255,.82); }

/* ---------- layout ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 48px, var(--container-wide)); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--page { background: var(--bg-page); }
.section--dark { background: var(--bg-dark); color: rgba(255,255,255,.74); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding-top: clamp(36px, 5vw, 56px); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 0 22px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-press); transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-default); }
.btn--ghost:hover { background: var(--bg-page); border-color: var(--ink-3); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--sm { height: 40px; font-size: .72rem; padding: 0 16px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__mark { display: flex; align-items: baseline; gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.logo__bar { width: 3px; height: 30px; background: var(--accent); border-radius: 1px; align-self: center; }
.logo__text { line-height: 1.05; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; font-variation-settings: 'wdth' 105; }
.logo__sub { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }

.nav {
  margin-left: auto; display: flex; gap: 22px;
  /* na účaří, ne na střed: položky menu mají pod textem 2px okraj pro zvýraznění
     aktivní stránky, přepínač jazyků ne — při centrování rámečků by text přepínače
     seděl o 1px níž než zbytek lišty */
  align-items: baseline;
}
.nav a {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-3); padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease; white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.nav__lang { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.nav__lang b { color: var(--ink); font-weight: 500; }
/* Odkaz v přepínači dědil z `.nav a` odsazení i spodní okraj, aktivní jazyk v <b> ne —
   při zarovnání na střed se pak text obou rozešel o 2 px. Okraj sem nepatří (není to
   položka menu), odsazení zůstává kvůli velikosti klikací plochy, a `baseline` drží
   obě zkratky na stejné lince. */
.nav__lang a { border-bottom: 0; }
/* Přepínač odděluje od menu krátká svislá čárka — stejný prvek, jaký web používá
   u nadoček sekcí a v logu. Přes celou výšku lišty by byla zbytečně těžká. */
.nav__lang { margin-left: 12px; padding-left: 12px; position: relative; }
.nav__lang::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--border-default);
}

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg-dark); overflow: hidden; }
.hero__slides { position: relative; height: clamp(460px, 74vh, 720px); }
/* překryv je jedna vrstva nad všemi snímky — kdyby byl na každém slidu zvlášť,
   při prolínání by se dva gradienty sčítaly a hero by na okamžik zčernal */
.hero__slides::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9,10,12,.80) 0%, rgba(9,10,12,.46) 44%, rgba(9,10,12,.06) 100%),
              linear-gradient(0deg, rgba(9,10,12,.48) 0%, rgba(9,10,12,0) 42%);
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero__slide[data-active] { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover;
  /* hero je na širokém okně plošší než fotka (2,6:1 vs 1,67:1) — ořez se proto
     posouvá dolů, aby vozidlu nezmizela kola pod spodní hranou */
  object-position: 50% 75%; }
.hero__body { position: absolute; inset: 0; display: flex; align-items: center; }
.hero__panel { max-width: 720px; }
.hero__title { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5rem); margin-bottom: 26px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__note { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; color: rgba(255,255,255,.72); margin: 0 0 26px; text-transform: none; }
.hero__nav { position: absolute; left: 0; right: 0; bottom: 26px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.32); cursor: pointer; border-radius: 2px; transition: background .2s ease; }
.hero__dot[aria-current] { background: var(--accent); }

/* ---------- statistiky ---------- */
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat__bar { width: 28px; height: 3px; background: var(--accent); margin-bottom: 12px; }
.stat__bar--alt { background: var(--accent-2); }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--ink); font-variation-settings: 'wdth' 112; }
.stat__unit { font-size: .5em; margin-left: 6px; color: var(--muted); }
.stat__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- mřížky a karty ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; }
.card--service { padding: 26px 24px 28px; }
.card--service .card__icon { width: 42px; height: 42px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 18px; background: var(--bg-page); }
.card--service h4 { margin-bottom: 8px; }
.card--service p { margin: 0; font-size: .94rem; }

.project { display: block; text-decoration: none; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.project:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-default); }
.project__media { position: relative; aspect-ratio: 3/2; background: var(--ink); overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__media img { transform: scale(1.04); }
.project__body { padding: 16px 18px 20px; }
.project__tag { display: inline-block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; background: var(--bg-page); color: var(--ink-3); margin-bottom: 10px; }
.project__tag--accent { background: var(--accent); color: #fff; }
.project__name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); margin: 0 0 6px; font-variation-settings: 'wdth' 104; }
.project__note { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* filtry */
.filters { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--border-subtle); margin-bottom: 26px; }
.filter { background: none; border: 0; padding: 0 0 12px; cursor: pointer; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.filter span { color: var(--muted); margin-left: 6px; font-size: .68rem; }

/* ---------- feature band ---------- */
.feature { background: var(--bg-dark); color: rgba(255,255,255,.74); padding: clamp(56px, 7vw, 96px) 0; }
.feature__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { color: #fff; margin-bottom: 18px; }
.feature__badges { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.badge { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; background: rgba(255,255,255,.12); color: #fff; }
.badge--accent { background: var(--accent); }

/* ---------- specifikace ---------- */
.specs { margin: 26px 0 30px; border-top: 1px solid rgba(255,255,255,.14); }
.spec { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.spec__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.spec__value { font-family: var(--font-mono); font-size: .92rem; color: #fff; font-weight: 500; text-align: right; }
.specs--light { border-top-color: var(--border-subtle); }
.specs--light .spec { border-bottom-color: var(--border-subtle); }
.specs--light .spec__label { color: var(--muted); }
.specs--light .spec__value { color: var(--ink); }

/* ---------- stránka realizace ---------- */
.pagehead { position: relative; background: var(--ink); }
.pagehead__media { height: clamp(320px, 52vh, 560px); }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover;
  /* totéž co u hero, jen box je ještě plošší (3,4:1) */
  object-position: 50% 70%; }
.pagehead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,10,12,.9) 0%, rgba(9,10,12,.25) 60%, rgba(9,10,12,.35) 100%); }
.pagehead__body { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(26px, 4vw, 48px); }
.pagehead h1 { color: #fff; margin: 0; }
.pagehead__sub { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.76); margin-top: 14px; }

.prose { max-width: 760px; }
.prose h3 { margin-top: 2.1em; font-size: 1.16rem; letter-spacing: .05em; font-variation-settings: 'wdth' 104; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--body); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 24px; background: var(--bg-page); }
.aside h4 { margin-bottom: 14px; }
.aside .spec { padding: 9px 0; }
.aside .spec__label { font-size: .63rem; }
.aside .spec__value { font-size: .8rem; }

/* ---------- galerie fotek ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-page); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(9,10,12,.94); display: none; align-items: center; justify-content: center; padding: 32px; }
.lightbox[data-open] { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; color: rgba(255,255,255,.7); }

/* ---------- formulář ---------- */
.form { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 13px; font: inherit; font-size: .95rem;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field textarea { height: auto; padding: 11px 13px; min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 18px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form .btn { width: 100%; justify-content: center; }

.callout { border-left: 3px solid var(--accent); background: var(--bg-page); padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout h4 { margin-bottom: 4px; }
.callout p { margin: 0; font-size: .92rem; }

/* ---------- patička ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.66); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h5 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { text-decoration: none; color: rgba(255,255,255,.78); transition: color .16s ease; }
.footer a:hover { color: #fff; }
.footer__logo .logo__mark, .footer__logo .logo__name { color: #fff; }
.footer__note { font-size: .92rem; margin-top: 16px; max-width: 320px; }
.footer__contact { font-family: var(--font-mono); font-size: .84rem; line-height: 1.9; }
.footer__office { font-family: var(--font-mono); font-size: .82rem; line-height: 1.7; margin: 0 0 14px; }
.footer__region {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: rgba(255,255,255,.42); text-transform: uppercase; }

/* ---------- responzivita ---------- */
@media (max-width: 1240px) {
  .nav { gap: 16px; }
  .nav a { font-size: .66rem; letter-spacing: .11em; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .feature__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav[data-open] { display: flex; }
  .nav a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--border-subtle); }
  .nav a[aria-current] { border-bottom-color: var(--accent); }
  /* v rozbaleném menu odděluje položky linka; přepínač jazyků ale položka není,
     jinak by pod „EN" visel kus podtržení */
  /* v rozbaleném menu je položek sloupec, takže svislá čárka nedává smysl;
     odděluje mezera navíc nad přepínačem */
  .nav__lang { margin: 6px 0 0; padding: 13px 0 0; }
  .nav__lang::before { display: none; }
  .nav__lang a { padding: 0; width: auto; border-bottom: 0; }
  .container, .container--wide { width: min(100% - 32px, var(--container)); }
  .field--row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .stats { gap: 26px; }
  .hero__slides { height: clamp(420px, 68vh, 560px); }
}

/* ---------- technická sekce (Výroba) ---------- */
/* 3 sloupce: šest parametrů vyplní 2 řádky beze zbytku (i při 2 a 1 sloupci) */
.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; }
.param { background: var(--bg-canvas); padding: 24px 22px 26px; }
.param__value { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--ink); font-variation-settings: 'wdth' 112; }
.param__name { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 10px 0 12px; }
.param__note { margin: 0; font-size: .92rem; line-height: 1.55; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px 40px; counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--accent); padding-top: 3px; flex: none; letter-spacing: .06em; }
.step h4 { margin: 0 0 6px; }
.step p { margin: 0; font-size: .94rem; }

/* ---------- videa ---------- */
.videoblock { margin-top: clamp(34px, 4vw, 52px); }
.videoblock__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.videoblock__head h3 { margin: 0; color: #fff; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.tagmono { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.24); border-radius: 2px; padding: 3px 8px; }
.videoblock__text { max-width: 68ch; margin: 0 0 24px; }

.videogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.videogrid--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.videocard { margin: 0; }
.videocard video, .videocard iframe, .ytfacade {
  /* height:auto je nutné — atribut height="720" na <video> jinak přebije aspect-ratio */
  width: 100%; height: auto; aspect-ratio: 16/9; display: block; border: 0;
  border-radius: var(--radius); background: #000; overflow: hidden;
}
.videocard video { object-fit: cover; }
.videocard figcaption { padding-top: 14px; }
.videocard h4 { color: #fff; margin: 0 0 5px; font-size: .98rem; }
.videocard p { margin: 0; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.66); }
/* videokarta na světlém podkladu (sekce nové generace) */
.section--page .videocard h4, .section:not(.section--dark) .videocard h4 { color: var(--ink); }
.section--page .videocard p, .section:not(.section--dark) .videocard p { color: var(--muted); }

.ytfacade { position: relative; padding: 0; cursor: pointer; }
.ytfacade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease, transform .5s ease; }
.ytfacade:hover img { opacity: 1; transform: scale(1.03); }
.ytfacade__play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .2s ease;
}
.ytfacade:hover .ytfacade__play { transform: scale(1.08); }
.ytfacade__src {
  position: absolute; right: 10px; bottom: 10px; font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(9,10,12,.7); color: rgba(255,255,255,.8); padding: 4px 7px; border-radius: 2px;
}

/* ---------- zastoupení (stránka Kontakt) ---------- */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.office {
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  background: var(--bg-canvas); overflow: hidden;
}
/* region je to první, co má být vidět — proto vlastní tmavá hlavička, ne drobné nadočko */
/* badge je vždy pod regionem — jinak u delšího regionu spadne na druhý řádek
   jen v jedné kartě a nadpisy měst se rozjedou */
.office__head {
  background: var(--ink); color: #fff; padding: 16px 24px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  border-bottom: 3px solid var(--accent);
}
.office__region {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 108;
  text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.95rem, 1.6vw, 1.2rem);
  line-height: 1.15;
}
.office__badge {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.26);
  padding: 4px 8px; border-radius: 2px; white-space: nowrap;
}
.office__body { padding: 26px 24px 28px; }
.office h3 { margin: 0 0 4px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.office__tagline {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.office__text { margin: 12px 0 20px; font-size: .95rem; }
.office__line { margin: 0 0 14px; font-size: .95rem; }
.office__line strong { color: var(--ink); }
.office__contact { margin: 0; font-family: var(--font-mono); font-size: .86rem; line-height: 1.9; }
.office__contact a { color: var(--ink); }
.office__contact a:hover { color: var(--accent); }
.office__todo {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--border-default);
  font-size: .86rem; color: var(--muted);
}
.office__todo strong { color: var(--accent); }

.footer__origin {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 14px 0 0;
}

.office__example { color: var(--muted); }
.office__example em { font-style: normal; font-size: .78em; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- obory (landing pages), 2026-09-05 ---------- */
/* karta „Co stavíme" na homepage je odkaz na obor */
.card--link { text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card--link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-default); }
.card__more { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.card__more svg { width: 14px; height: 14px; }

/* drobek nad nadpisem realizace: odkaz zpět na obor */
.pagehead__crumb { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); text-decoration: none; margin-bottom: 14px; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.32); transition: color .16s ease, border-color .16s ease; }
.pagehead__crumb:hover { color: #fff; border-bottom-color: #fff; }

/* seznam „Co dodáváme" v postranním panelu oboru */
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); font-size: .93rem; line-height: 1.45; }
.offer-list li::before { content: ''; width: 8px; height: 2px; background: var(--accent); flex: none; margin-top: .72em; }
.offer-list li:last-child { border-bottom: 0; }

/* odkazy na položky archivu z oboru */
.archive-links { display: flex; flex-wrap: wrap; gap: 10px; }
.archive-links a { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink-3); border: 1px solid var(--border-subtle); border-radius: 2px; padding: 8px 12px; background: #fff; transition: color .16s ease, border-color .16s ease; }
.archive-links a:hover { color: var(--accent); border-color: var(--ink-3); }

/* galerie v tmavé sekci (Kia Žilina na Jak stavíme, „Právě v dílně" na oboru) */
.section--dark .gallery a { background: var(--ink-2); }
.section--dark .gallery--side { grid-template-columns: repeat(2, 1fr); }

/* ---------- odeslání poptávky ---------- */
/* honeypot: skryté i pro odečítače, ale ne přes display:none — část robotů
   taková pole přeskakuje, a právě o ně nám jde */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { margin: 14px 0 0; font-size: .92rem; line-height: 1.5; padding-left: 12px; border-left: 3px solid var(--border-default); color: var(--muted); }
.formnote[data-state="ok"] { border-left-color: #2F8F5B; color: var(--ink); }
.formnote[data-state="err"] { border-left-color: var(--accent); color: var(--ink); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
