/* =========================================================
   Cisse Industrial: styl webu
   Barvy: černá + oranžová z loga.
   Motivy: výkres (mřížka, kóty), výstražná páska, ocelová konstrukce.
   Animace běží jen s třídou .motion-on na <html> (nastavuje js/main.js).
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-band: rgba(19, 19, 21, .8);
  --surface: #151517;
  --surface-2: #1c1c1f;
  --line: #2c2c30;
  --line-2: #4a4a50;
  --ctl: #7c7c82;
  --text: #f3f2ef;
  --muted: #aaa9a4;
  --steel: #c9c9ce;
  --accent: #ff7a1a;
  --accent-hi: #ff9240;
  --accent-press: #e0620a;
  --on-accent: #111;
  --danger: #ff8589;
  --ok: #7ee2a0;
  --r: 2px;
  --max: 1180px;
  --pad: 20px;
  --head-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Bahnschrift, "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", "DejaVu Sans Mono", monospace;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

/* Kurzor: vše, na co se dá kliknout */
a[href], button, summary, select, label[for] { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }

/* Viditelný fokus pro klávesnici */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-box :focus-visible { outline-color: #111; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 12px 16px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none; border-radius: var(--r);
}
.skip:focus { top: 12px; }

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

/* ---------- Písmo ---------- */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 90%;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.04;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 8.4vw, 4.5rem); }
/* Němčina: dlouhá složená slova se v nadpisech dělí se spojovníkem */
html[lang="de"] h2, html[lang="de"] .index .name {
  -webkit-hyphens: auto; hyphens: auto;
  -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5;
  hyphenate-limit-chars: 15 5 5;
}
h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }

.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 58ch; }

.prose p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--text); }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link:hover { color: var(--accent); text-decoration-thickness: 3px; }
.link:active { color: var(--accent-press); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--r);
  font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35); }
.btn-primary:active { background: var(--accent-press); transform: translateY(1px); box-shadow: none; }
.btn-line { border-color: var(--ctl); color: var(--text); background: rgba(10, 10, 11, .6); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.btn-line:active { transform: translateY(1px); background: var(--surface); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #000; box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .55); }
.btn-dark:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: .6; box-shadow: none; transform: none; }

/* ---------- Pozadí: interiér ocelové haly ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #141416, var(--bg) 70%); }
/* Při posunu dolů se hala ztlumí (nastavuje js/main.js), aby obsah byl klidný a čitelný */
.hall { opacity: var(--hall, 1); }
.hall { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.hall path { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.hall-frames path { stroke: #4c4c54; }
.hall-long path { stroke: #3a3a40; stroke-width: 1.2; }
.hall-floor path { stroke: #2a2a2f; stroke-width: 1.2; stroke-dasharray: 18 14; }
.hall .cone { fill: url(#hallCone); stroke: none; }
.hall .spot { fill: url(#hallSpot); }
.hall .fix { stroke: #707078; fill: #1a1a1d; }
.hall .lens { stroke: #6a5c4b; }
/* Na úzkém displeji se hala ořízne do středu, aby byly vidět vazníky a světla */
@media (max-width: 719px) { .hall { left: -40%; width: 180%; } }
/* Rozsvícení světel: jednou při načtení, s krátkým blikáním jako výbojky */
.motion-on .lamp { animation: lamp-on 1.6s steps(1, end) var(--d, 0s) both; }
@keyframes lamp-on {
  0% { opacity: 0; } 8% { opacity: .85; } 12% { opacity: .1; } 20% { opacity: 1; }
  26% { opacity: .35; } 34%, 100% { opacity: 1; }
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 11, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 14px; min-height: var(--head-h); }

/* Logo: beze změny oproti původnímu webu */
.logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px;
  text-decoration: none;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; transition: transform .4s ease; }
.logo:hover .logo-mark { transform: rotate(60deg); }
.logo:active .logo-mark { transform: rotate(60deg) scale(.92); }
.logo-text { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.logo-text .name { font-weight: 900; font-size: 1.3rem; letter-spacing: .08em; }
.logo-text .sub { font-weight: 600; font-size: .62rem; letter-spacing: .42em; color: var(--accent); margin-top: 4px; }

.nav-panel { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:active { color: var(--accent); }

.lang-switch { display: flex; flex-shrink: 0; border: 1px solid var(--ctl); border-radius: var(--r); overflow: hidden; }
html:not(.js) .lang-switch { display: none; }
.lang-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: transparent; border: 0; color: var(--muted);
  font-size: .82rem; font-weight: 700; letter-spacing: .05em;
  transition: color .2s, background-color .2s;
}
.lang-switch button + button { border-left: 1px solid var(--ctl); }
.lang-switch .lang-flag { width: 21px; height: 14px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.lang-switch button:hover { color: var(--text); background: var(--surface-2); }
.lang-switch button:active { background: var(--line); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.lang-switch button[aria-pressed="true"] .lang-flag { box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.lang-switch button:focus-visible { outline-offset: -3px; }
.lang-switch button[aria-pressed="true"]:focus-visible { outline-color: #111; }

.call { min-height: 44px; padding: 8px 18px; flex-shrink: 0; }
.call svg { width: 18px; height: 18px; flex-shrink: 0; }

.menu-btn {
  display: none; align-items: center; gap: 10px; flex-shrink: 0;
  min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--ctl); border-radius: var(--r);
  font-weight: 700; color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.menu-btn:hover { border-color: var(--accent); }
.menu-btn:active { background: var(--surface-2); }
.bars { position: relative; width: 20px; height: 14px; }
.bars i { position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.bars i:nth-child(1) { top: 0; }
.bars i:nth-child(2) { top: 6px; }
.bars i:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Ukazatel posunu stránky */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none;
}

@media (max-width: 979px) {
  .lang-switch { order: 1; margin-left: auto; }
  .call { order: 2; }
  .js .menu-btn { display: inline-flex; order: 3; }
  .nav-panel { margin-left: 0; }
  /* Bez JavaScriptu zůstane menu rozbalené pod hlavičkou */
  html:not(.js) .bar { flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .nav-panel { order: 5; width: 100%; flex-wrap: wrap; }
  html:not(.js) .nav-links { flex-wrap: wrap; }

  .js .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--head-h)); max-height: calc(100dvh - var(--head-h)); overflow: auto;
    padding: 4px var(--pad) 24px;
    background: #0d0d0e; border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .js .nav-panel.open { visibility: visible; opacity: 1; transform: none; }
  .js .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-links a { min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .js .nav-links a::after { left: 4px; right: auto; width: 36px; bottom: 9px; }
}
.panel-call { display: none; }
@media (max-width: 719px) {
  /* Tlačítko Zavolat se na mobilu přesouvá do menu */
  .bar > .call { display: none; }
  .panel-call { display: inline-flex; margin-top: 16px; width: 100%; }
  .bar { gap: 8px; }
  .wrap.bar { padding: 0 16px; }
  .lang-switch { margin-left: auto; }
  /* Na mobilu jen vlajky (název jazyka zůstává pro čtečky v aria-label) a menu jen jako ikona */
  .lang-switch .code { display: none; }
  .lang-switch button { padding: 0; }
  .menu-btn { width: 44px; padding: 0; justify-content: center; }
  .menu-btn > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 479px) {
  .call { width: 44px; padding: 0; }
  .call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 419px) {
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text .name { font-size: 1.1rem; }
  .logo-text .sub { font-size: .54rem; letter-spacing: .32em; }
}
@media (max-width: 359px) {
  .wrap.bar { padding: 0 10px; }
  .bar { gap: 6px; }
  .lang-switch button { min-width: 40px; }
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text .name { font-size: 1.1rem; }
  .logo-text .sub { font-size: .54rem; letter-spacing: .32em; }
  .bar { gap: 8px; }
}

/* ---------- Sekce ---------- */
.sec { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
/* Pás jako stěna z trapézového plechu */
.sec.band, .soon-sec {
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .05) 0 1px, transparent 1px 12px,
      rgba(0, 0, 0, .32) 12px 15px, transparent 15px 30px,
      rgba(255, 255, 255, .025) 30px 31px, transparent 31px 48px),
    var(--bg-band);
}
.sec.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin-bottom: 16px; }
.sec-head .lead { margin-top: 4px; }

/* Kóta: krátká rozměrová čára pod nadpisem */
.dim {
  display: block; width: 132px; height: 11px; margin-bottom: 16px;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / 1px 11px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right center / 1px 11px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat;
  transform-origin: left center;
}
.motion-on .rv .dim { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1) .15s; }
.motion-on .rv.in .dim { transform: scaleX(1); }

/* Odhalení při posunu: jen průhlednost */
.motion-on .rv { opacity: 0; transition: opacity .55s ease; }
.motion-on .rv.in { opacity: 1; }
.motion-on .svc-grid .rv:nth-child(2) { transition-delay: .09s; }

/* ---------- Kresby ---------- */
.art { position: relative; }
.art svg { width: 100%; height: auto; }
.art path { fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; }
.art .thin { stroke: #84848b; stroke-width: 1.3; }
.art .hot { stroke: var(--accent); }
.art text { font-family: var(--font-mono); font-size: 15px; fill: var(--accent); }
.draw path:not(.nd) { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion-on .draw:not(.in) path:not(.nd) { stroke-dashoffset: 1; }
.motion-on .draw:not(.in) text { opacity: 0; }
.motion-on .draw.in path:not(.nd) { animation: draw var(--t, .9s) cubic-bezier(.4, 0, .2, 1) var(--d, 0s) both; }
.motion-on .draw.in text { animation: appear .5s ease var(--d, 0s) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 639px) {
  .art path { stroke-width: 2.6; }
  .art .thin { stroke-width: 1.7; }
  .art text { font-size: 19px; }
}

/* ---------- Úvod: hero ---------- */
.hero { position: relative; padding: clamp(20px, 5vw, 72px) 0 clamp(40px, 6vw, 88px); }
/* Ztmavení haly za textem úvodu, aby byl text čitelný i nad světly */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 11, .9) 0%, rgba(10, 10, 11, .8) 42%, rgba(10, 10, 11, 0) 64%);
}
.hero-grid { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero .lead { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-art { aspect-ratio: 640 / 500; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.weld { fill: var(--accent); }
.weld-glow {
  position: absolute; left: 0; top: 0; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 160, 70, .5), rgba(255, 122, 26, .16) 38%, transparent 68%);
}
.motion-on .draw:not(.in) .lift, .motion-on .draw:not(.in) .weld { opacity: 0; }
.motion-on .draw.in .lift { animation: lower 2.6s cubic-bezier(.2, .75, .25, 1) 2.3s both; }
.motion-on .draw.in .weld { animation: appear .3s ease 4.8s both; }
@keyframes lower {
  0% { transform: translateY(-46px); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Štítek s údaji */
.plate {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); background: rgba(21, 21, 23, .8);
}
.plate > div { padding: 14px 16px; }
.plate > div + div { border-left: 1px solid var(--line); }
.plate dt { margin-bottom: 4px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.plate dd { font-weight: 700; line-height: 1.3; }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: linear-gradient(180deg, rgba(10, 10, 11, 0) 0, rgba(10, 10, 11, 0) clamp(170px, 46vw, 300px), rgba(10, 10, 11, .85) calc(clamp(170px, 46vw, 300px) + 80px)); }
  .hero-art {
    order: -1; aspect-ratio: auto; height: clamp(170px, 46vw, 300px);
    border-bottom: 1px solid var(--line);
  }
  .hero-art canvas {
    -webkit-mask-image: linear-gradient(#000 62%, transparent);
    mask-image: linear-gradient(#000 62%, transparent);
  }
  .weld-glow { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
}
@media (max-width: 639px) {
  .plate { grid-template-columns: minmax(0, 1fr); }
  .plate > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 14px; }
  .plate > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .plate dt { margin: 0; }
  .actions .btn { width: 100%; }
}

/* ---------- Pás s obory ---------- */
.ticker { position: relative; z-index: 1; overflow: hidden; background: #0d0d0e; border-bottom: 1px solid var(--line); }
.ticker::before {
  content: ""; display: block; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #111 12px 24px);
}
.ticker-track { display: flex; width: max-content; }
.ticker-set { display: flex; flex-shrink: 0; }
.ticker-set span {
  display: inline-flex; align-items: center; gap: 22px; padding: 13px 22px 13px 0;
  font-family: var(--font-head); font-stretch: 90%; font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; color: var(--steel);
}
.ticker-set svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
/* Pás tvoří 6 stejných sad za sebou, posun o jednu sadu se opakuje bez švu */
.motion-on .ticker-track { animation: ticker 32s linear infinite; }
@keyframes ticker { to { transform: translateX(calc(-100% / 6)); } }

/* ---------- O nás ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.panel { position: relative; padding: clamp(22px, 3.4vw, 36px); background: var(--surface); border: 1px solid var(--line); }
.panel::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #111 12px 24px);
}
.panel h3 { margin: 8px 0 18px; font-family: var(--font-head); font-stretch: 90%; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; }
.steps { counter-reset: step; }
.steps > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps > div::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2; padding-top: 2px;
  font-family: var(--font-mono); font-size: .95rem; color: var(--accent);
}
.steps dt { font-weight: 700; }
.steps dd { color: var(--muted); font-size: .96rem; }
@media (max-width: 899px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Co děláme: řádkový přehled ---------- */
.index { border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; column-gap: 18px;
  padding: 20px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .2s, padding-left .2s;
}
.index .num { grid-row: 1 / span 2; align-self: start; padding-top: 6px; font-family: var(--font-mono); font-size: .95rem; color: var(--muted); transition: color .2s; }
.index .name {
  font-family: var(--font-head); font-stretch: 90%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.2rem, 3.4vw, 1.75rem); line-height: 1.15; overflow-wrap: break-word;
}
.index .desc { grid-column: 2; margin-top: 4px; color: var(--muted); font-size: .98rem; }
.index .go {
  grid-column: 3; grid-row: 1 / span 2; width: 34px; height: 11px;
  background:
    linear-gradient(var(--ctl), var(--ctl)) right center / 1px 11px no-repeat,
    linear-gradient(var(--ctl), var(--ctl)) center / 100% 1px no-repeat;
  transition: width .25s;
}
.index a:hover { background: var(--surface); padding-left: 16px; }
.index a:hover .num { color: var(--accent); }
.index a:hover .go {
  width: 64px;
  background:
    linear-gradient(var(--accent), var(--accent)) right center / 1px 11px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat;
}
.index a:active { background: var(--surface-2); }
@media (max-width: 599px) {
  .index a { grid-template-columns: 38px minmax(0, 1fr); padding: 18px 4px; column-gap: 12px; }
  .index .go { display: none; }
  .index a:hover { padding-left: 10px; }
}

/* ---------- Brzy v nabídce (padel) ---------- */
.soon-sec { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0; }
.hz {
  position: absolute; left: -80px; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #111 14px 28px);
}
.hz.top { top: 0; }
.hz.bottom { bottom: 0; }
.motion-on .hz { animation: hz 3.2s linear infinite; }
.motion-on .hz.bottom { animation-direction: reverse; }
@keyframes hz { to { transform: translateX(39.598px); } }

.soon-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.soon-grid h2 { margin: 20px 0 16px; }
.soon-grid .lead { margin-bottom: 26px; }
.soon-grid .prose { margin-bottom: 20px; }
.tape {
  position: relative; display: inline-flex; align-items: center; min-height: 30px;
  margin: 0 22px; padding: 4px 14px;
  background: var(--accent); color: #111;
  font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
}
.tape::before, .tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, #111 6px 12px);
}
.tape::before { right: 100%; }
.tape::after { left: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 899px) { .soon-grid { grid-template-columns: minmax(0, 1fr); } }

/* Odrážky s čárkou */
.ticks { display: grid; gap: 8px; margin: 18px 0 24px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--accent); }

/* ---------- Dotazy ---------- */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 56px); align-items: start;
}
.faq-grid .btn { margin-top: 24px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 56px;
  padding: 14px 52px 14px 4px; list-style: none;
  font-weight: 700; font-size: 1.05rem; transition: color .2s, background-color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  background: var(--accent); transition: transform .25s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent); background: rgba(21, 21, 23, .8); }
.faq summary:active { background: var(--surface-2); }
.faq .ans { padding: 0 52px 20px 4px; color: var(--muted); max-width: 64ch; }
@media (max-width: 899px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Výzva k zavolání ---------- */
.cta-strip { position: relative; padding: 0 0 clamp(56px, 8vw, 96px); }
.soon-sec + .cta-strip { padding-top: clamp(56px, 8vw, 96px); }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  padding: clamp(24px, 4vw, 44px); background: var(--accent); color: #111;
}
.cta-box h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
.cta-box p { margin-top: 6px; font-weight: 500; color: #1d1406; }
@media (max-width: 599px) { .cta-box .btn { width: 100%; } }

/* ---------- Záhlaví podstránek s jeřábovou dráhou ---------- */
.page-head { position: relative; padding: clamp(36px, 7vw, 88px) 0 0; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 11, .88) 0%, rgba(10, 10, 11, .78) 50%, rgba(10, 10, 11, .35) 100%);
}
.page-head > .wrap { position: relative; }
.page-head .lead { margin-top: 16px; }
.girder {
  position: relative; height: 26px; margin-top: clamp(40px, 6vw, 64px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26'%3E%3Cpath d='M0 1.5H52M0 24.5H52M0 24.5L26 1.5L52 24.5' fill='none' stroke='%2355555b' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center / 52px 26px;
}
.trolley { position: absolute; left: 0; right: 0; top: -13px; height: 76px; overflow: hidden; pointer-events: none; }
.trolley i { display: block; width: 100%; height: 100%; transform: translateX(8%); }
.trolley svg { width: 44px; height: 76px; }
.motion-on .trolley i { animation: trolley 18s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes trolley { from { transform: translateX(4%); } to { transform: translateX(calc(96% - 44px)); } }

/* ---------- Nabídka ---------- */
.flag {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line);
}
.flag h2 { margin: 14px 0 16px; }
.flag p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.flag .joint { max-width: 380px; width: 100%; justify-self: center; }
.tag { display: flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.tag::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 20px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, background-color .25s;
}
.svc:hover { border-color: var(--accent); background-color: var(--surface-2); }
.ico { width: 48px; height: 48px; margin-bottom: 18px; color: var(--steel); transition: color .25s; }
.ico path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; }
.svc:hover .ico { color: var(--accent); }
.svc h2 { margin-bottom: 12px; font-size: clamp(1.3rem, 2.4vw, 1.5rem); }
.svc p { color: var(--muted); }
.svc .ticks { margin: 16px 0 14px; font-size: .96rem; }
.svc .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 959px) {
  .flag { grid-template-columns: minmax(0, 1fr); }
  .flag .joint { max-width: 300px; justify-self: start; }
}
@media (max-width: 619px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Realizace ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  min-height: 44px; padding: 0 16px; background: transparent;
  border: 1px solid var(--ctl); border-radius: var(--r);
  font-weight: 700; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip:active { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.work { background: var(--surface); border: 1px solid var(--line); }
.media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); cursor: zoom-in;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.media:hover img { transform: scale(1.04); }
.media:active img { transform: scale(1.01); }
.media .state {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  text-align: center; color: var(--muted); font-size: .92rem;
}
.media.failed { cursor: default; }
.media.failed img { display: none; }
.work-body { padding: 18px 20px 22px; }
.work-body h2 { font-family: var(--font); font-stretch: normal; font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; text-transform: none; font-weight: 700; }
.work-meta { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.work-text { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.empty {
  display: grid; justify-items: start; gap: 16px; max-width: 680px;
  padding: clamp(24px, 4vw, 40px); border: 1px dashed var(--line-2); background: rgba(21, 21, 23, .8);
}
.empty h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.empty p:not(.tape) { color: var(--muted); max-width: 56ch; }

/* Náhled fotky */
.lightbox {
  width: min(1100px, 94vw); max-width: none; max-height: 92vh; max-height: 92dvh; padding: 0;
  background: #0d0d0e; color: var(--text); border: 1px solid var(--line-2);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { width: 100%; height: auto; max-height: 78vh; max-height: 78dvh; object-fit: contain; }
.lightbox .cap { min-height: 52px; padding: 14px 64px 14px 16px; color: var(--muted); }
.lightbox .x {
  position: absolute; right: 6px; bottom: 4px; width: 44px; height: 44px;
  background: var(--surface-2); border: 1px solid var(--ctl); border-radius: var(--r);
  font-size: 1.5rem; line-height: 1; color: var(--text);
}
.lightbox .x:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lightbox .x:active { background: var(--accent-press); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px); align-items: start;
}
/* Údaje ve stylu rohového razítka výkresu */
.block { display: grid; grid-template-columns: max-content minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line-2); }
.block > div { display: contents; }
.block dt, .block dd { border-top: 1px solid var(--line); }
.block > div:first-child > * { border-top: 0; }
.block dt { padding: 16px 14px; border-right: 1px solid var(--line); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.block dd { padding: 12px 14px; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.block a { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.block a:hover { color: var(--accent); text-decoration-thickness: 3px; }
.block a:active { color: var(--accent-press); }
.contact-grid .big { width: 100%; margin-top: 16px; min-height: 56px; font-size: 1.1rem; flex-wrap: wrap; gap: 2px 12px; }
.nowrap { white-space: nowrap; }

.form { padding: clamp(20px, 3.4vw, 36px); background: var(--surface); border: 1px solid var(--line); }
.form h2 { margin-bottom: 22px; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .92rem; font-weight: 700; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #0d0d0e; border: 1px solid var(--ctl); border-radius: var(--r);
  font-size: 1rem; transition: border-color .2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b3b3b8; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.field ::placeholder { color: #8f8e8a; opacity: 1; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.error { font-size: .86rem; color: var(--danger); }
.error:empty { display: none; }
.error:not(:empty)::before { content: "! "; font-weight: 800; }
.form .btn[type="submit"] { width: 100%; margin-top: 4px; }

/* Přílohy */
.files { position: relative; }
.files .label { font-size: .92rem; font-weight: 700; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-btn { align-self: flex-start; min-height: 48px; }
.file-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.file-btn.focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint { font-size: .86rem; color: var(--muted); }
.file-list:empty { display: none; }
.file-list { display: grid; gap: 6px; }
.file {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 10px;
  padding-left: 12px; background: #0d0d0e; border: 1px solid var(--line-2);
}
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.file-size { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.file-rm {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; border-left: 1px solid var(--line-2); color: var(--muted);
  transition: color .2s, background-color .2s;
}
.file-rm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.file-rm:hover { color: var(--danger); background: var(--surface-2); }
.file-rm:active { background: var(--line); }
.file-rm:focus-visible { outline-offset: -3px; }
.files.invalid .file-btn { border-color: var(--danger); }

/* WhatsApp */
.wa-link { font-weight: 700; }
.wa-qr { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.wa-qr img { width: 112px; height: 112px; flex-shrink: 0; background: #fff; padding: 6px; }
.wa-qr figcaption { color: var(--muted); font-size: .95rem; }
.note { margin-top: 12px; font-size: .86rem; color: var(--muted); }
/* Odkaz v textu: podtržení a zvětšená plocha pro dotyk */
.note a, .law p a {
  display: inline-block; padding: 12px 0; margin: -12px 0;
  color: var(--text); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.note a:hover, .law p a:hover { color: var(--accent); text-decoration-thickness: 3px; }
.note a:active, .law p a:active { color: var(--accent-press); }

/* ---------- Právní údaje ---------- */
.law > * { max-width: 760px; }
.law h2 { margin: clamp(40px, 6vw, 64px) 0 16px; font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.law h2:first-child { margin-top: 0; }
.law h3 { margin: 24px 0 6px; }
.law p { color: var(--muted); }
.law p + p { margin-top: 12px; }
.block .missing { font-weight: 500; font-style: italic; color: var(--muted); }
.form-status { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--ctl); background: #0d0d0e; font-weight: 600; }
.form-status.ok { border-color: var(--ok); color: var(--ok); }
.form-status.err { border-color: var(--danger); color: var(--danger); }
.form-status.info { border-color: var(--accent); color: var(--text); }
@media (max-width: 899px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  /* Na úzkém mobilu je popisek nad hodnotou */
  .block { grid-template-columns: minmax(0, 1fr); }
  .block dt { padding: 12px 14px 0; border-right: 0; }
  .block dd { padding: 2px 14px 12px; border-top: 0; }
}

/* ---------- Šroubované panely: šestihranné hlavy šroubů v rozích ---------- */
.svc, .flag, .panel, .form, .empty {
  --bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpolygon points='7,.8 12.4,3.9 12.4,10.1 7,13.2 1.6,10.1 1.6,3.9' fill='%2333333a' stroke='%2378787f' stroke-width='1'/%3E%3Ccircle cx='7' cy='7' r='2.4' fill='%2324242a' stroke='%2378787f' stroke-width='.8'/%3E%3C/svg%3E");
  background-image: var(--bolt), var(--bolt), var(--bolt), var(--bolt);
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: 7px 7px, calc(100% - 7px) 7px, 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px);
}
.panel { background-position: 7px 13px, calc(100% - 7px) 13px, 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px); }

/* ---------- Patička ---------- */
.site-footer {
  position: relative; z-index: 1; padding: 28px 0 32px;
  /* Slzičkový plech */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cg fill='%23ffffff' fill-opacity='.055'%3E%3Crect x='2' y='5.6' width='10' height='2.8' rx='1.4' transform='rotate(45 7 7)'/%3E%3Crect x='16' y='19.6' width='10' height='2.8' rx='1.4' transform='rotate(-45 21 21)'/%3E%3C/g%3E%3Cg fill='%23000000' fill-opacity='.5'%3E%3Crect x='2.6' y='7' width='10' height='1.4' rx='.7' transform='rotate(45 7 7)'/%3E%3Crect x='16.6' y='21' width='10' height='1.4' rx='.7' transform='rotate(-45 21 21)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 28px 28px,
    #0d0d0e;
  border-top: 4px solid #1f1f23;
  color: var(--muted); font-size: .92rem;
}
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-underline-offset: 4px; }
.foot p { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.foot a:hover { color: var(--accent); text-decoration-thickness: 2px; }
.foot a:active { color: var(--accent-press); }
.foot .legal { flex-basis: 100%; }

/* ---------- Pozastavení animací (v hlavičce, na mobilu v menu, a v patičce) ---------- */
.motion-btn {
  display: none; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0;
  min-width: 44px; min-height: 40px; padding: 0 12px;
  background: transparent; border: 1px solid var(--ctl); border-radius: var(--r);
  font-weight: 700; color: var(--muted); transition: border-color .2s, background-color .2s, color .2s;
}
.js .motion-btn { display: inline-flex; }
.motion-btn:hover { border-color: var(--accent); color: var(--text); }
.motion-btn:active { background: var(--surface-2); }
.motion-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.motion-btn .i-play { display: none; }
.motion-off .motion-btn .i-play { display: block; }
.motion-off .motion-btn .i-pause { display: none; }
.site-header .motion-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot .motion-btn { min-height: 44px; margin-top: 8px; }
@media (max-width: 979px) {
  .js .site-header .motion-btn { margin-top: 12px; align-self: flex-start; min-height: 44px; }
  .js .site-header .motion-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Omezený pohyb podle nastavení zařízení ---------- */
/* Omezený pohyb v zařízení: animace se samy nespustí (js/main.js nastaví motion-off),
   návštěvník si je ale může zapnout tlačítkem "Spustit animace". */
