/* ============================================================================
   X-KABEL — styles.css

   STRUKTURA SOUBORU
   ---------------------------------------------------------------------------
   1. ZÁKLADNÍ VRSTVA (řádky 1–2570)
      Proměnné, layout a všechny komponenty v pořadí, v jakém se objevují
      na stránce. Zde se vytváří výchozí vzhled.

   2. PŘEKRÝVACÍ VRSTVA (od "Soft visual refresh")
      Pozdější vizuální doladění. Selektory se ZÁMĚRNĚ opakují a přepisují
      první vrstvu (stejná specifičnost, vyhrává pozdější pravidlo).

   POZOR PŘI ÚPRAVÁCH
   ---------------------------------------------------------------------------
   Přibližně 30 selektorů je v souboru dvakrát. Když změníte vlastnost
   v základní vrstvě a nic se nestane, hledejte stejný selektor v překrývací
   vrstvě — přepisuje vás. Vždy hledejte VŠECHNY výskyty selektoru.

   ORIENTAČNÍ MAPA
   ---------------------------------------------------------------------------
   ~1     :root — barvy, stíny, --max (šířka obsahu), --radius
   ~43    .site-header — hlavička a navigace
   ~260   .hero — úvodní banner
   ~317   .jst-* — JST podstránka
   ~375   .contact-* — kontakt (mapa je až v překrývací vrstvě)
   ~524   .intro-* — o společnosti
   ~675   .quality-* — kvalita a certifikáty
   ~734   .feature-list — technologie
   ~777   .process-* — výrobní dlaždice
   ~1004  .logo-strip — pás dopravců
   ~1329  .project-* — realizovaný projekt
   ~1352  .career-* — kariéra a formulář
   ~1954  .site-footer — patička
   ~2093  [data-reveal] — animace při scrollování
   ~2106  @media — responzivní breakpointy (920px, 640px)
   ~2570  Soft visual refresh — ZAČÁTEK PŘEKRÝVACÍ VRSTVY
   ~2790  Doplňky: mapa, JST pruh, formulář, chybějící třídy
   ============================================================================ */

:root {
  --ink: #0b1720;
  --muted: #5d6b78;
  --line: #d9e2ea;
  --paper: #f6f8fb;
  --white: #ffffff;
  --blue: #005ea8;
  --blue-dark: #073f75;
  --cyan: #00a7c8;
  --green: #22a06b;
  --shadow: 0 24px 60px rgba(10, 31, 51, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  /* Obrázky mají v HTML atributy width/height kvůli rezervaci místa (CLS).
     Bez height:auto by je prohlížeč roztáhl na uvedenou výšku v pixelech. */
  height: auto;
}

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

/* Hlavička je VŽDY mimo toku (fixed) a místo pod ní rezervuje body { padding-top }.
   Dříve přepínala sticky -> fixed až při scrollu, čímž se dokument v tu chvíli
   zkrátil o její výšku - obsah poskočil a na krátkých stránkách (kariera.html)
   se scroll rozkmital. Výška rezervace musí odpovídat min-height + margin-top. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 10px auto 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 226, 234, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(10, 31, 51, 0.1);
  backdrop-filter: blur(16px);
  transition: width 180ms ease, min-height 180ms ease, margin 180ms ease, padding 180ms ease, border-radius 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: inherit;
  border-radius: inherit;
  background: inherit;
  box-shadow: inherit;
  backdrop-filter: inherit;
  content: "";
  pointer-events: none;
}

.site-header.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 68px;
  margin-top: 0;
  padding: 6px max(16px, calc((100vw - var(--max)) / 2));
  border-inline: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(10, 31, 51, 0.12);
}

.site-header.is-scrolled .brand img {
  width: 52px;
  height: 52px;
}

.subpage-header {
  margin-bottom: 0;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.26rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 10px 8px;
  border-radius: 6px;
  color: #263747;
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-dark);
  background: rgba(0, 94, 168, 0.08);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(0, 167, 200, 0.38);
  outline-offset: 3px;
}

.scroll-cable {
  position: absolute;
  top: calc(100% - 18px);
  right: max(10px, calc((100vw - var(--max)) / 2 + 10px));
  z-index: 0;
  display: grid;
  justify-items: center;
  width: 58px;
  height: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 16px rgba(10, 31, 51, 0.16));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100px);
  transition: opacity 200ms ease, filter 180ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-cable-visible .scroll-cable {
  opacity: 0.78;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-cable img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
}

.scroll-cable:focus-visible {
  outline: 3px solid rgba(0, 167, 200, 0.35);
  outline-offset: 6px;
}

.site-header.is-cable-visible .scroll-cable:hover,
.site-header.is-cable-visible .scroll-cable:focus-visible {
  filter: drop-shadow(0 12px 18px rgba(10, 31, 51, 0.2));
  opacity: 1;
  transform: translateY(6px);
}

.site-header.is-cable-visible .scroll-cable.is-pulling,
.site-header.is-cable-visible .scroll-cable.is-pulling:hover,
.site-header.is-cable-visible .scroll-cable.is-pulling:focus-visible {
  opacity: 1;
  transform: translateY(12px);
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 56px);
  margin-top: -92px;
  padding: 156px max(24px, calc((100vw - var(--max)) / 2)) 112px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 0;
  height: 220px;
  content: "";
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 139 C180 97 340 180 528 144 C738 104 878 100 1080 138 C1234 167 1330 151 1440 116 L1440 220 L0 220 Z' fill='%23f6f8fb'/%3E%3Cpath d='M0 152 C184 116 340 176 540 146 C766 112 892 118 1086 150 C1244 176 1340 160 1440 132 L1440 220 L0 220 Z' fill='%23ffffff' fill-opacity='.42'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat,
    linear-gradient(180deg, rgba(246, 248, 251, 0) 0%, rgba(246, 248, 251, 0.22) 34%, rgba(246, 248, 251, 0.82) 70%, var(--paper) 100%);
}

.hero-cables {
  position: absolute;
  right: -6%;
  bottom: -1px;
  left: -6%;
  z-index: 1;
  height: 220px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 220' preserveAspectRatio='none'%3E%3Cpath d='M-40 108 C154 38 315 172 498 104 S815 42 1008 98 1262 162 1460 76 1660 94 1720 62' fill='none' stroke='%23052534' stroke-width='9' stroke-linecap='round' opacity='.18'/%3E%3Cpath d='M-40 106 C154 36 315 170 498 102 S815 40 1008 96 1262 160 1460 74 1660 92 1720 60' fill='none' stroke='%2300a7c8' stroke-width='4' stroke-linecap='round' opacity='.76'/%3E%3Cpath d='M-40 132 C158 72 328 172 526 130 S814 78 1008 128 1268 174 1460 100 1650 118 1720 90' fill='none' stroke='%23052534' stroke-width='7' stroke-linecap='round' opacity='.15'/%3E%3Cpath d='M-40 130 C158 70 328 170 526 128 S814 76 1008 126 1268 172 1460 98 1650 116 1720 88' fill='none' stroke='%2322a06b' stroke-width='3' stroke-linecap='round' opacity='.58'/%3E%3Cpath d='M-40 158 C170 98 330 178 530 154 S830 112 1012 152 1260 184 1460 126 1650 142 1720 118' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' opacity='.72'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  animation: cable-lines-drift 16s ease-in-out infinite alternate;
}

@keyframes cable-lines-drift {
  0% {
    transform: translate3d(-1.4%, 0, 0);
  }
  100% {
    transform: translate3d(1.4%, 3px, 0);
  }
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 18, 31, 0.9) 0%, rgba(3, 18, 31, 0.66) 42%, rgba(3, 18, 31, 0.18) 100%),
    linear-gradient(0deg, rgba(3, 18, 31, 0.55), rgba(3, 18, 31, 0.05));
}

.jst-hero {
  justify-items: center;
  text-align: center;
}

.jst-hero::after {
  background:
    linear-gradient(0deg, rgba(3, 18, 31, 0.72), rgba(3, 18, 31, 0.48)),
    linear-gradient(90deg, rgba(3, 18, 31, 0.7), rgba(3, 18, 31, 0.18) 52%, rgba(3, 18, 31, 0.7));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding: 40px 0;
}

.jst-hero .hero-content {
  width: min(1120px, 100%);
  padding-top: 64px;
}

.jst-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 94, 168, 0.36);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  font-weight: 850;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.65rem);
  max-width: 820px;
  font-weight: 800;
  line-height: 1.08;
}

.jst-hero h1 {
  max-width: 1180px;
  margin-inline: auto;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.jst-hero .hero-copy {
  max-width: 820px;
  margin-inline: auto;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.jst-hero .hero-actions {
  justify-content: center;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 42%, transparent 58%);
  content: "";
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 180ms ease, transform 520ms ease;
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 14px 28px rgba(0, 167, 200, 0.18);
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
  transform: translateX(120%);
}

.button.primary {
  background: var(--cyan);
  color: #04151d;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), 100%);
  margin-top: 34px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.jst-hero .hero-stats {
  text-align: left;
}

.hero-stats article {
  padding: 22px;
  background: rgba(4, 20, 32, 0.42);
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  max-width: 260px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section-heading.narrow {
  display: block;
  max-width: 760px;
}

.intro {
  display: grid;
  gap: 44px;
  justify-items: center;
  text-align: left;
  min-height: auto;
  padding-top: 92px;
  padding-bottom: 92px;
}

.intro-heading {
  max-width: 920px;
  text-align: center;
}

.intro-heading h2 {
  margin: 0;
  color: #6f7478;
  font-size: clamp(2rem, 3.4vw, 3.65rem);
  line-height: 1.22;
  text-transform: uppercase;
}

.intro-heading h2 span {
  color: var(--blue);
}

.intro-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.8fr);
  gap: 44px;
  align-items: center;
  width: 100%;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 52px rgba(10, 31, 51, 0.08);
}

.intro-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.intro-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(10, 31, 51, 0.12);
  transition: box-shadow 220ms ease, transform 260ms ease;
}

.intro-gallery img:hover {
  box-shadow: 0 22px 46px rgba(10, 31, 51, 0.18);
  transform: translateY(-3px) scale(1.015);
}

.intro-gallery img:nth-child(3) {
  grid-column: 1 / -1;
  aspect-ratio: 2.1 / 1;
}

.intro .intro-text {
  max-width: none;
  padding-top: 0;
  border-top: 0;
}

.intro .intro-text a {
  color: var(--blue);
  font-weight: 800;
}

.intro-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.intro-points article {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.intro-points article:hover {
  border-color: rgba(0, 167, 200, 0.28);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.1);
  transform: translateY(-3px);
}

.intro-points article::before {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
  box-shadow: 0 0 0 6px rgba(0, 167, 200, 0.12);
}

.intro-points strong {
  color: var(--ink);
}

.intro-points span {
  color: var(--muted);
}

.intro-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 30px;
  border: 1px solid rgba(0, 94, 168, 0.14);
  border-radius: var(--radius);
  background: #eef7fb;
}

.intro-highlight p {
  margin: 0;
  color: #3b4650;
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.intro-highlight .button {
  flex: 0 0 auto;
  min-width: 180px;
}

.section h2,
.contact h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.section-heading p,
.intro-text p,
.split-copy > p,
.quality-copy p,
.logistics p {
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-text {
  display: grid;
  gap: 18px;
}

.intro-text p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: center;
}

.split-copy > p {
  margin: 20px 0 0;
}

.split-image {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: filter 300ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.split-image:hover img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.technology-images {
  display: grid;
  gap: 16px;
  min-height: auto;
}

.technology-images img {
  height: auto;
  min-height: 0;
  aspect-ratio: 600 / 268;
  border-radius: var(--radius);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 6px;
  background: #e7f5fb;
  color: var(--blue);
  font-weight: 900;
}

.feature-list h3 {
  margin: 0;
  font-size: 1.05rem;
}

.feature-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.production {
  width: 100%;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 22px;
  margin-top: 38px;
}

.process-card {
  overflow: hidden;
  border: 1px solid rgba(217, 226, 234, 0.9);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(10, 31, 51, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.process-card img {
  width: 100%;
  aspect-ratio: 400 / 267;
  object-fit: cover;
}

.process-card h3 {
  margin: 0;
  padding: 15px 14px 16px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.process-card:hover {
  border-color: rgba(0, 167, 200, 0.44);
  box-shadow: 0 20px 46px rgba(10, 31, 51, 0.12);
  transform: translateY(-2px);
}

.quality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.quality-panel {
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quality-badge {
  width: min(100%, 520px);
  margin: 0 auto 30px;
  object-fit: contain;
}

.quality-processes {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.quality-processes h3 {
  margin: 0 0 16px;
  font-size: 1.28rem;
}

.quality-processes ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quality-processes li {
  position: relative;
  padding-left: 28px;
  color: #243443;
  font-size: 1.02rem;
}

.quality-processes li::before {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.certificate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.certificate-button {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.certificate-button::after {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  content: "↗";
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 94, 168, 0.22);
}

.certificate-button img {
  width: 100%;
  height: 178px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f2f6f9;
  object-fit: cover;
  object-position: top center;
}

.certificate-button span {
  font-size: 1.08rem;
  font-weight: 900;
}

.certificate-button small {
  color: var(--muted);
  font-weight: 700;
}

.certificate-button:hover,
.certificate-button:focus-visible {
  border-color: var(--cyan);
  background: #eef9fc;
  transform: translateY(-2px);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 18, 31, 0.82);
}

.image-modal.is-open {
  display: flex;
}

.image-modal-content {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
  max-height: 92vh;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
}

.image-modal-content img {
  max-height: 78vh;
  width: 100%;
  object-fit: contain;
}

.image-modal-title {
  margin: 0;
  padding-right: 48px;
  font-size: 1.05rem;
  font-weight: 900;
}

.image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.logistics {
  width: 100%;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background: #0d2638;
  color: var(--white);
}

.logistics .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.logo-strip {
  position: relative;
  left: 50%;
  width: 100dvw;
  margin-top: 36px;
  margin-left: -50dvw;
  overflow: hidden;
}

.logo-strip::before,
.logo-strip::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 96px;
  content: "";
  pointer-events: none;
}

.logo-strip::before {
  left: 0;
  background: linear-gradient(90deg, #0d2638, rgba(13, 38, 56, 0));
}

.logo-strip::after {
  right: 0;
  background: linear-gradient(270deg, #0d2638, rgba(13, 38, 56, 0));
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 82px;
  padding: 48px 0;
  animation: logistics-logos-scroll 82s linear infinite;
}

.logo-track img {
  flex: 0 0 auto;
  width: auto;
  height: 190px;
  max-width: none;
  padding: 0;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.62))
    drop-shadow(0 14px 18px rgba(2, 12, 20, 0.24));
  object-fit: contain;
}

@keyframes logistics-logos-scroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), #062235 62%, #071823);
  box-shadow: var(--shadow);
}

.standalone-contact {
  padding-top: 72px;
}

.standalone-contact h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 3.7rem);
  line-height: 1.05;
}

.jst {
  background: var(--paper);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid var(--cyan);
}

.heading-link {
  color: inherit;
  text-decoration: none;
}

.heading-link:hover,
.heading-link:focus-visible {
  color: var(--blue);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.subpage-hero {
  display: grid;
  justify-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 44px auto 0;
  padding: clamp(54px, 8vw, 96px) 24px;
  text-align: center;
}

.subpage-hero h1 {
  max-width: 930px;
  margin: 10px 0 0;
  font-size: clamp(2.6rem, 5.2vw, 5.35rem);
  line-height: 1.02;
}

.subpage-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.08);
}

.partner-logos img {
  max-width: 170px;
  max-height: 92px;
  object-fit: contain;
}

.partner-logos span {
  width: 1px;
  height: 64px;
  background: var(--line);
}

.territory-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.territory-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 900;
}

.button.dark,
.button.ghost.dark {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.jst-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 108px 42px;
  max-width: 1080px;
  margin-inline: auto;
}

.jst-detail-grid article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 16px;
  align-items: center;
  min-height: 194px;
  padding: 30px 32px;
  border-radius: 8px;
  background: #f4f4f4;
}

.jst-detail-grid .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #315aa8;
  color: var(--white);
  font-size: 1.05rem;
}

.jst-detail-grid h2 {
  margin: 0;
  color: #204aa0;
  font-size: 1.1rem;
  font-weight: 500;
}

.jst-detail-grid p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.jst-intro {
  padding-bottom: 36px;
}

.jst-intro .section-heading {
  max-width: 860px;
  text-align: center;
  margin-inline: auto;
}

.jst-intro .section-heading a {
  color: var(--blue);
  font-weight: 800;
}

.jst-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 34px;
  align-items: center;
  padding-top: 50px;
}

.jst-company-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.jst-distributor-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.08);
  text-align: center;
}

.jst-distributor-card img {
  width: min(220px, 100%);
}

.jst-distributor-card p {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.jst-contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 42px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), #062235);
}

.jst-contact-band h2 {
  margin: 0;
}

.jst-contact-band p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-mini {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.contact-mini a {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.contact-mini .copy-row a {
  flex: 1;
}

.benefit-grid article,
.project-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.benefit-grid article:hover,
.project-list article:hover {
  border-color: rgba(0, 167, 200, 0.28);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.1);
  transform: translateY(-3px);
}

.benefit-grid h3,
.project-list h3 {
  margin: 0;
  font-size: 1.16rem;
}

.benefit-grid p,
.project-list p,
.career p {
  margin: 10px 0 0;
  color: var(--muted);
}

.projects {
  width: 100%;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background: var(--white);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.project-button {
  margin-top: 28px;
}

.project-list span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #e7f5fb;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-content {
  display: grid;
  gap: 28px;
  max-width: 1080px;
  padding-top: 72px;
}

.project-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 460px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(0, 174, 216, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(7, 63, 117, 0.94), rgba(6, 34, 53, 0.94)),
    url("assets/technology-machine.jpg") center / cover;
}

.project-hero::before {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(244, 248, 251, 0.18));
  content: "";
}

.project-hero::after {
  position: absolute;
  right: clamp(24px, 10vw, 140px);
  bottom: -72px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.project-hero .eyebrow,
.project-hero h1,
.project-hero > p,
.project-hero-actions {
  position: relative;
  z-index: 1;
}

.subpage-hero.project-hero > p:not(.eyebrow) {
  max-width: 760px;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  backdrop-filter: none;
  text-shadow: 0 2px 14px rgba(3, 20, 35, 0.55);
}

.project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.project-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-overview article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(10, 31, 51, 0.08);
}

.project-overview article::after {
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
}

.project-overview span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--blue);
  background: #e7f5fb;
  font-size: 0.76rem;
  font-weight: 900;
}

.project-overview strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.project-overview p {
  margin: 8px 0 0;
  color: var(--muted);
}

.content-block {
  margin: 0;
}

.project-card {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 52px rgba(10, 31, 51, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 216, 0.35);
  box-shadow: 0 28px 64px rgba(10, 31, 51, 0.12);
}

.project-card-featured {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.project-card-body {
  min-width: 0;
}

.project-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.18;
}

.project-card h3 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.project-card p {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.project-fact,
.project-details {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.project-fact,
.project-details div {
  padding: 18px;
  border: 1px solid #d9e7ef;
  border-radius: var(--radius);
  background: #f4f9fc;
}

.project-fact span,
.project-details dt {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-fact p,
.project-details dd {
  margin: 0;
  color: #344656;
  line-height: 1.65;
}

.project-logos {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 28px;
  align-items: center;
  max-width: 560px;
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid #d9e7ef;
  border-radius: var(--radius);
  background: #f8fbfd;
}

.project-logos img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
}

.project-poster {
  width: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(10, 31, 51, 0.1);
  object-fit: contain;
}

.funding-note {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 94, 168, 0.18);
  border-radius: var(--radius);
  background: #eef7fb;
  color: #233746;
  font-weight: 800;
}


.career {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.career > div {
  max-width: 780px;
}

.career-page {
  max-width: 1180px;
  padding-top: 72px;
}

.career-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.career-poster {
  position: sticky;
  top: 112px;
}

.career-poster img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.career-page .content-header p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.career-list {
  display: grid;
  gap: 16px;
}

.career-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.career-list article:hover {
  border-color: rgba(0, 167, 200, 0.28);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.1);
  transform: translateY(-3px);
}

.career-list h2 {
  margin: 0;
  font-size: 1.35rem;
}

.career-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.career-cta {
  margin-top: 28px;
  padding: 30px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), #062235);
}

.career-cta h2 {
  margin: 0;
}

.career-cta p {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.career-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 18, 31, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
}

.career-modal.is-open {
  display: flex;
  opacity: 1;
}

.career-modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(3, 18, 31, 0.32);
  transform: translateY(18px) scale(0.96);
  animation: career-pop 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.career-modal-panel::-webkit-scrollbar {
  display: none;
}

@keyframes career-pop {
  to {
    transform: translateY(0) scale(1);
  }
}

.career-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.career-form-heading {
  padding-right: 42px;
  margin-bottom: 24px;
}

.career-form-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.career-form {
  display: grid;
  gap: 18px;
}

.career-form label {
  display: grid;
  gap: 8px;
}

.career-form label span {
  color: #243443;
  font-size: 1.02rem;
  font-weight: 800;
}

.career-form label strong {
  color: var(--blue);
}

.career-form input,
.career-form textarea {
  width: 100%;
  border: 1px solid #cfd8e2;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.career-form textarea {
  resize: vertical;
}

.career-form input:focus,
.career-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 167, 200, 0.14);
}

.career-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
}

.career-form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid article {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid .contact-company {
  grid-column: 1 / -1;
  min-height: 96px;
}

.contact-grid .contact-person {
  min-height: 104px;
}

.contact-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-grid a,
.contact-grid address,
.contact-grid p {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.copy-row a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-button {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: var(--white);
  border-color: rgba(0, 167, 200, 0.7);
  background: rgba(0, 167, 200, 0.24);
  transform: translateY(-1px);
}

.copy-button.is-copied {
  color: #062235;
  border-color: var(--cyan);
  background: var(--cyan);
}

.copy-button.is-copied::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 5px 8px;
  border-radius: 6px;
  color: #062235;
  background: var(--cyan);
  content: "Skopírované";
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.contact-grid .contact-company a,
.contact-grid .contact-person a {
  font-size: 1.08rem;
  font-weight: 850;
}

.contact-grid a + a {
  margin-top: 4px;
}

.site-footer {
  padding: 58px max(16px, calc((100vw - var(--max)) / 2)) 28px;
  color: rgba(255, 255, 255, 0.78);
  background: #071823;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(240px, 0.9fr);
  gap: 54px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.footer-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.footer-logo strong,
.footer-logo small {
  display: block;
}

.footer-logo strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.footer-logo small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-brand p {
  max-width: 460px;
  margin: 22px 0 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(0, 167, 200, 0.6);
  color: var(--white);
  background: rgba(0, 167, 200, 0.18);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-links h2,
.footer-contact h2,
.footer-links h3,
.footer-contact h3 {
  margin: 0 0 8px;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--cyan);
}

.footer-contact address,
.footer-contact span {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1050ms ease, transform 1050ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(10, 31, 51, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-bottom: 96px;
  }

  .hero::before {
    height: 184px;
  }

  .hero-cables {
    height: 184px;
  }

  .section-heading,
  .split,
  .quality,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro {
    gap: 28px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .intro-body {
    grid-template-columns: 1fr;
  }

  .intro .intro-text {
    padding-top: 24px;
  }

  .intro-gallery {
    gap: 14px;
  }

  .intro-highlight {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid,
  .project-list,
  .project-overview,
  .jst-detail-grid,
  .jst-contact-band,
  .jst-company {
    grid-template-columns: 1fr;
  }

  .jst-detail-grid {
    gap: 18px;
  }

  .project-card-featured {
    grid-template-columns: 1fr;
  }

  .career {
    align-items: flex-start;
    flex-direction: column;
  }

  .career-layout {
    grid-template-columns: 1fr;
  }

  .career-poster {
    position: static;
    width: 100%;          /* bez šířky by měl plakát před načtením 0 px a obsah by poskočil (CLS) */
    max-width: 520px;
    margin-inline: auto;
  }

  .split-image,
  .split-image img {
    min-height: 380px;
  }

  .logo-track img {
    height: 132px;
  }
}

@media (max-width: 640px) {
  body,
  main,
  .hero,
  .section,
  .site-footer {
    max-width: 100%;
  }

  .site-header {
    width: calc(100% - 24px);
    min-height: 66px;
    margin-top: 6px;
    padding: 6px 12px;
  }

  .site-header.is-scrolled {
    width: 100%;
    min-height: 62px;
    margin-top: 0;
    padding: 6px 12px;
  }

  .scroll-cable {
    top: calc(100% - 14px);
    right: 8px;
    display: grid;
    width: 42px;
    height: 70px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .site-header.is-scrolled .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    justify-items: center;
    padding: 122px 16px 78px;
  }

  .hero-content,
  .jst-hero .hero-content {
    width: min(100%, 342px);
    max-width: calc(100vw - 32px);
    padding-top: 42px;
  }

  .hero::before {
    height: 150px;
    background-size: auto 100%, 100% 100%;
  }

  .hero-cables {
    height: 150px;
    background-size: auto 100%;
  }

  .hero h1 {
    width: 100%;
    max-width: 342px;
    margin-inline: auto;
    overflow-wrap: break-word;
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .jst-hero h1 {
    font-size: 2rem;
  }

  .hero-copy {
    max-width: 342px;
    margin-inline: auto;
    overflow-wrap: break-word;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .logo-strip::before,
  .logo-strip::after {
    width: 32px;
  }

  .logo-track {
    gap: 34px;
    padding: 28px 0 34px;
    animation-duration: 34s;
  }

  .logo-track img {
    height: 92px;
  }

  .intro-gallery {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }

  .section-heading {
    gap: 24px;
  }

  .section h2,
  .contact h2,
  .intro-heading h2,
  .subpage-hero h1 {
    max-width: calc(100vw - 32px);
    margin-inline: auto;
    overflow-wrap: break-word;
    font-size: clamp(1.72rem, 8vw, 2.08rem);
    line-height: 1.14;
  }

  /* Nadpisy v kartách (JST výhody, pozice v Kariéře) jsou h2 uvnitř .section,
     takže by je pravidlo výše nafouklo na velikost nadpisu sekce a dlouhá
     slova ("Konkurenceschopné") by přetekla kartu. Vracíme jim vlastní velikost. */
  .section.jst-detail-grid h2 {
    max-width: none;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .section .career-list h2 {
    max-width: none;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .intro-heading {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .intro-gallery img:nth-child(3) {
    grid-column: auto;
    aspect-ratio: 1;
  }

  .intro-body {
    padding: 20px;
  }

  .intro-highlight .button {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
    padding: 64px 0;
  }

  .project-content {
    width: calc(100vw - 32px);
    gap: 22px;
    padding-top: 56px;
  }

  .project-hero {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-height: 410px;
    margin-inline: auto;
    padding-inline: 16px;
  }

  .project-hero h1 {
    width: 100%;
    max-width: 342px;
    font-size: clamp(1.58rem, 7vw, 1.9rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .project-hero > p {
    width: 100%;
    max-width: 342px;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .project-hero-actions {
    width: min(100%, 342px);
    margin-inline: auto;
  }

  .project-hero-actions .button {
    width: 100%;
  }

  .project-overview article,
  .project-card {
    padding: 20px;
  }

  .project-card p {
    font-size: 1rem;
  }

  .project-details div,
  .project-fact,
  .funding-note {
    padding: 16px;
  }

  .production {
    padding-inline: 16px;
  }

  .logistics {
    width: 100%;
    padding: 56px 0 64px;
  }

  .logistics .section-heading {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .site-footer {
    padding: 44px 16px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 34px;
  }

  .footer-logo img {
    width: 54px;
    height: 54px;
  }

  .footer-logo strong {
    font-size: 1.18rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .project-logos {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .certificate-actions {
    grid-template-columns: 1fr;
  }

  .content-block p {
    font-size: 1rem;
  }

  .partner-logos {
    flex-direction: column;
  }

  .partner-logos span {
    width: 100%;
    height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cables,
  .logo-track,
  .scroll-cable {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button::after {
    display: none;
  }

  .button,
  .scroll-cable,
  .scroll-cable .wire,
  .intro-gallery img,
  .intro-points article,
  .split-image img,
  .process-card,
  .benefit-grid article,
  .project-list article,
  .project-card,
  .project-overview article,
  .career-list article {
    transition: none;
  }

  .button:hover,
  .intro-gallery img:hover,
  .intro-points article:hover,
  .split-image:hover img,
  .process-card:hover,
  .benefit-grid article:hover,
  .project-list article:hover,
  .career-list article:hover {
    transform: none;
  }
}

/* ============================================================================
   PŘEKRÝVACÍ VRSTVA — "Soft visual refresh"

   Vše pod touto čarou přepisuje pravidla z první části souboru.
   Selektory se zde opakují ZÁMĚRNĚ.

   Pravidlo pro úpravy: pokud měníte vzhled komponenty, zkontrolujte,
   jestli se její selektor nevyskytuje i zde. Pokud ano, upravujte TADY —
   jinak se změna neprojeví.
   ============================================================================ */

/* Soft visual refresh */
html {
  scroll-padding-top: 84px;
}

body {
  background: linear-gradient(180deg, #f9fbfd 0%, var(--paper) 42%, #f2f6f9 100%);
}

.site-header {
  box-shadow: 0 16px 42px rgba(10, 31, 51, 0.11);
}

.site-nav a {
  padding-inline: 10px;
}

.hero::after {
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(90deg, rgba(3, 18, 31, 0.84) 0%, rgba(3, 18, 31, 0.62) 46%, rgba(3, 18, 31, 0.22) 100%),
    linear-gradient(0deg, rgba(3, 18, 31, 0.55), rgba(3, 18, 31, 0.05));
}

.hero-content {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.24);
}

.hero .eyebrow,
.jst-hero .eyebrow {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 94, 168, 0.34);
  backdrop-filter: blur(10px);
}

.button.primary {
  background: linear-gradient(135deg, #08b8d3, var(--cyan));
  box-shadow: 0 14px 30px rgba(0, 167, 200, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-stats {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 58px rgba(2, 12, 20, 0.2);
}

.section {
  padding-block: 96px;
}

.intro-body,
.quality-panel,
.contact-card {
  box-shadow: 0 24px 64px rgba(10, 31, 51, 0.1);
}

.intro-gallery img,
.split-image,
.technology-images img,
.process-card,
.certificate-button {
  border-color: rgba(202, 214, 224, 0.9);
}

.intro-gallery img,
.split-image,
.technology-images img,
.process-card img {
  filter: saturate(1.03) contrast(1.02);
}

.intro-points article,
.feature-list article,
.process-card,
.certificate-button {
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.intro-points article:hover,
.feature-list article:hover,
.process-card:hover,
.certificate-button:hover,
.certificate-button:focus-visible {
  box-shadow: 0 22px 48px rgba(10, 31, 51, 0.12);
}

.feature-list article:hover {
  border-color: rgba(0, 167, 200, 0.28);
  transform: translateY(-2px);
}

.production {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.process-grid {
  gap: 26px 24px;
}

.process-card {
  box-shadow: 0 14px 34px rgba(10, 31, 51, 0.075);
}

.process-card img {
  transition: filter 240ms ease, transform 420ms ease;
}

.process-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
}

.process-card h3 {
  min-height: 58px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.quality-panel {
  border: 1px solid rgba(202, 214, 224, 0.88);
}

.quality-badge {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.certificate-button::after {
  content: "+";
}

.logistics {
  padding-top: 84px;
  padding-bottom: 78px;
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 167, 200, 0.12), transparent 30%),
    linear-gradient(135deg, #0d2638, #092033);
}

.logo-track {
  gap: 72px;
}

.logo-track img {
  height: 150px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 14px 20px rgba(2, 12, 20, 0.22));
}

.contact-card {
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 167, 200, 0.2), transparent 28%),
    linear-gradient(135deg, var(--blue-dark), #062235 62%, #071823);
}

@media (max-width: 920px) {
  .section {
    padding-block: 76px;
  }

  .logo-track img {
    height: 118px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 72px;
  }

  .hero {
    text-align: center;
  }

  .hero .eyebrow,
  .jst-hero .eyebrow {
    margin-inline: auto;
  }

  .hero-stats article {
    padding: 24px 20px;
  }

  .process-card h3 {
    min-height: 56px;
  }

  .logo-track img {
    height: 78px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-card img {
    transition: none;
  }

  .process-card:hover img {
    transform: none;
  }
}

/* Kontakt - mapa */
.contact-map {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(2, 12, 20, 0.28);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* JST pruh na homepage */
.jst-band {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  width: min(var(--max), calc(100% - 48px));
  margin: -28px auto 0;
  padding: 22px 32px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 167, 200, 0.24), transparent 34%),
    linear-gradient(135deg, var(--blue-dark), #062235 62%, #071823);
  box-shadow: 0 22px 48px rgba(10, 31, 51, 0.16);
  position: relative;
  z-index: 2;
}

.jst-band p {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .jst-band {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .jst-band .button {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .contact-map iframe {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .contact-map iframe {
    height: 280px;
  }
}

/* Doplnenie chybajucich tried */
.career-content {
  display: grid;
  gap: 26px;
  align-content: start;
}

.career-page .content-header h1 {
  margin: 0 0 18px;
}

.career-page .content-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.career-cta {
  display: flex;
  justify-content: center;
}

.project-media {
  display: grid;
  align-content: start;
}

/* Kariérny formulár - stavy a honeypot */
.career-form .career-honeypot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

/* Poděkování po odeslání formuláře (místo formuláře) */
.career-success {
  display: none;
  padding: 28px 0 8px;
  text-align: center;
}

.career-modal-panel.is-sent .career-form-heading,
.career-modal-panel.is-sent .career-form {
  display: none;
}

.career-modal-panel.is-sent .career-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  animation: career-pop 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.career-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #e3f5ec;
  color: #0f7a4a;
  font-size: 2rem;
  font-weight: 800;
}

.career-success h2 {
  margin: 0;
}

.career-success p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.career-success .button {
  margin-top: 8px;
  min-width: 160px;
}

.career-form-note.is-success {
  color: #0f7a4a;
  font-weight: 800;
}

.career-form-note.is-error {
  color: #b3341f;
  font-weight: 800;
}

.career-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Poistka: ak prehliadac nema JavaScript, obsah musi ostat viditelny */
@media (scripting: none) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Rezervace místa pro fixní hlavičku.
   86px = min-height 76 + margin-top 10 (desktop)
   72px = min-height 66 + margin-top  6 (do 640px)
   Když měníte rozměry .site-header, upravte i tyto hodnoty.
   --------------------------------------------------------------------------- */
body {
  padding-top: 86px;
}

@media (max-width: 640px) {
  body {
    padding-top: 72px;
  }
}

/* ---------------------------------------------------------------------------
   404 - stránka nenalezena
   --------------------------------------------------------------------------- */
.error-page {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: 96px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: transparent;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.error-page h1 {
  max-width: 18ch;
  margin: 0;
}

.error-lead {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 34px;
  text-align: left;
}

.error-links a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: rgba(0, 167, 200, 0.28);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.1);
  transform: translateY(-3px);
}

.error-links strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.error-links span {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 640px) {
  .error-page {
    padding-top: 64px;
  }

  .error-actions .button {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   Kariérní formulář - výběr pozice, příloha, souhlas GDPR
   --------------------------------------------------------------------------- */
.career-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.career-form select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 167, 200, 0.16);
}

.career-file span small {
  color: var(--muted);
  font-weight: 500;
}

.career-file input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.career-file input[type="file"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 167, 200, 0.16);
}

.career-file input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--blue-dark);
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.career-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
}

.career-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.career-consent span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.career-consent a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

.career-consent strong {
  color: #b3341f;
}

/* ---------------------------------------------------------------------------
   Právní stránky (zásady zpracování osobních údajů)
   --------------------------------------------------------------------------- */
.legal-page {
  max-width: 860px;
  padding-top: 92px;
}

.legal-page .content-header {
  margin-bottom: 34px;
}

.legal-page h1 {
  margin: 0 0 10px;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-block {
  margin-bottom: 20px;
}

.legal-block h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.legal-block h3 {
  margin: 26px 0 10px;
  font-size: 1.12rem;
}

.legal-block p {
  margin: 0 0 14px;
  color: var(--muted);
}

.legal-block strong {
  color: var(--ink);
}

.legal-block ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
}

.legal-block li {
  margin-bottom: 8px;
}

.legal-block a {
  color: var(--blue);
  text-decoration: underline;
}

/* Žlutě zvýrazněná místa, která musí doplnit klient.
   Až budou vyplněná, smažte atribut data-fill a zvýraznění zmizí. */
[data-fill] {
  padding: 2px 7px;
  border: 1px dashed #c79a15;
  border-radius: 5px;
  background: #fff8e1;
  color: #7a5c00;
  font-weight: 700;
}

.legal-back {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

@media (max-width: 640px) {
  .legal-page {
    padding-top: 64px;
  }

  .legal-back .button {
    width: 100%;
  }
}

/* ==========================================================================
   Přepínač jazyků (vkládá ho tools/i18n/build.php do hlavičky)
   ========================================================================== */
.site-nav { order: 1; }
.lang-switch { order: 2; }
.nav-toggle { order: 3; }

.lang-switch {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: #263747;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.lang-switch summary::-webkit-details-marker { display: none; }

.lang-flag {
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(10, 31, 51, 0.14);
}

.lang-switch summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.lang-switch[open] summary::after { transform: translateY(1px) rotate(225deg); }

.lang-switch summary:hover,
.lang-switch summary:focus-visible,
.lang-switch[open] summary {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.lang-switch ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.14);
}

.lang-switch li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #263747;
  font-size: 0.92rem;
  text-decoration: none;
}

.lang-switch li a:hover,
.lang-switch li a:focus-visible {
  background: var(--paper);
  color: var(--blue-dark);
}

.lang-switch li a[aria-current="true"] {
  color: var(--blue-dark);
  font-weight: 700;
  background: #e9f3fb;
}

@media (max-width: 920px) {
  .lang-switch { margin-left: auto; }
  .lang-switch summary { height: 44px; }
}

/* Upozornění u přeložených právních textů */
.legal-translation-note {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--cyan);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Čínština a ruština - systémová písma s danými znaky */
:lang(zh) body,
body:lang(zh) {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", Inter, "Segoe UI", sans-serif;
}

/* Kompaktní menu na širších obrazovkách - zapíná script.js, když se položky
   menu nevejdou do hlavičky (dlouhé překlady). Stejné chování jako na mobilu. */
.site-header.nav-compact .nav-toggle {
  display: block;
}

.site-header.nav-compact .site-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  width: min(360px, 100%);
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.12);
}

.site-header.nav-compact .site-nav.is-open {
  display: flex;
}

.site-header.nav-compact .site-nav a {
  padding: 14px;
}

.site-header.nav-compact .lang-switch {
  margin-left: auto;
}

.site-header.nav-compact .nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-compact .nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-compact .nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Animace přepínače jazyků: otevření (menu + postupně položky) a zavření
   (třída is-closing, kterou přidává script.js, než menu skutečně schová). */
@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes lang-menu-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px) scale(0.97); }
}

@keyframes lang-item-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: none; }
}

.lang-switch ul {
  transform-origin: top right;
}

.lang-switch[open] ul {
  animation: lang-menu-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lang-switch[open] li {
  animation: lang-item-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lang-switch[open] li:nth-child(2) { animation-delay: 25ms; }
.lang-switch[open] li:nth-child(3) { animation-delay: 50ms; }
.lang-switch[open] li:nth-child(4) { animation-delay: 75ms; }
.lang-switch[open] li:nth-child(5) { animation-delay: 100ms; }
.lang-switch[open] li:nth-child(6) { animation-delay: 125ms; }
.lang-switch[open] li:nth-child(7) { animation-delay: 150ms; }
.lang-switch[open] li:nth-child(8) { animation-delay: 175ms; }

.lang-switch.is-closing ul {
  animation: lang-menu-out 160ms ease-in forwards;
}

.lang-switch.is-closing li {
  animation: none;
}

.lang-switch.is-closing summary::after {
  transform: translateY(-2px) rotate(45deg);
}

.lang-switch li a .lang-flag {
  transition: transform 160ms ease;
}

.lang-switch li a:hover .lang-flag,
.lang-switch li a:focus-visible .lang-flag {
  transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch ul,
  .lang-switch li,
  .lang-switch li a .lang-flag {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Kontakt - nadpis přes celou šířku, karty ve 3 sloupcích (6 karet = 2 plné
   řady, žádné prázdné místo), pod nimi mapa.
   ========================================================================== */
.contact-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.contact-card h2 {
  margin: 0;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid .contact-company {
  grid-column: auto;
}

.contact-grid article,
.contact-grid .contact-company,
.contact-grid .contact-person {
  min-height: 0;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Nabídka jazyka podle prohlížeče (vytváří script.js) */
.lang-offer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(10, 31, 51, 0.2);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.lang-offer.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.lang-offer p {
  margin: 0;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
}

.lang-offer .button {
  min-height: 0;
  padding: 9px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.lang-offer-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lang-offer-close:hover,
.lang-offer-close:focus-visible {
  background: var(--line);
  color: var(--ink);
}

@media (max-width: 640px) {
  .lang-offer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 24px);
    bottom: 12px;
    padding: 14px 44px 14px 14px;
    border-radius: 14px;
    text-align: center;
  }

  .lang-offer p {
    flex: 1 1 calc(100% - 40px);
  }

  .lang-offer-close {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-offer {
    transition: none;
  }
}

/* <button class="button"> musí vypadat stejně jako <a class="button">.
   Prohlížeče tlačítkům nastavují vlastní (menší) písmo - :where() má nulovou
   specificitu, takže přebije jen výchozí styl prohlížeče, nic jiného. */
:where(button.button) {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Logo v patičce na světlém podkladu - tmavý nápis KABEL by na tmavé patičce zanikl */
.footer-logo img {
  box-sizing: content-box;
  padding: 6px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
