/* ==========================================================================
   SWT-SoukupWeldTech s.r.o. – styly webu
   ========================================================================== */

/* ---------- Písma (hostovaná lokálně) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-var-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-var-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-700-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-ext-700-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Proměnné ---------- */
:root {
  /* Firemní barvy (z loga a vizitky) */
  --color-dark: #1C1D1C;
  --color-red: #E32521;
  --color-red-hover: #C41D1A;
  --color-blue: #2D95D2;
  --color-yellow: #DFB324;
  --color-grey: #5F6060;
  --color-grey-light: #C6C6C6;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F4F4;
  --color-line: #E2E2E2;
  --color-success: #1E7B3C;
  --color-green: #2E9E4F; /* číslo kroku 5 – Uvedení do provozu */

  --font-head: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
  --radius: 4px;
  --section-y: clamp(64px, 10vw, 128px);
  --skew: -14deg; /* sklon pruhů z loga */
  --shadow: 0 10px 30px rgba(28, 29, 28, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-dark);
  font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-red); text-underline-offset: .18em; }
a:hover { color: var(--color-red-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; }
::selection { background: var(--color-red); color: #fff; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: clamp(40px, 6vw, 64px); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--color-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75em 1.5em; border: 2px solid transparent; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font-head); letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--color-red); color: #fff; }
.btn--primary:hover { background: var(--color-red-hover); color: #fff; }
.btn--ghost { border-color: var(--color-dark); color: var(--color-dark); }
.btn--ghost:hover { background: var(--color-dark); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Motiv pruhů z loga ---------- */
.stripes { display: inline-flex; gap: 4px; margin-right: 12px; vertical-align: middle; }
.stripes i { display: block; width: 7px; height: 20px; transform: skewX(var(--skew)); }
.stripes i:nth-child(1) { background: var(--color-yellow); }
.stripes i:nth-child(2) { background: var(--color-red); }
.stripes i:nth-child(3) { background: var(--color-blue); }

.eyebrow { font: italic 700 .95rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--color-grey); margin-bottom: 24px; display: flex; align-items: center; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, transform .45s var(--ease);
}
/* Rozmazané pozadí v pseudo-elementu: backdrop-filter přímo na hlavičce by z ní udělal
   referenční blok pro position: fixed. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); transition: opacity .3s;
}
.site-header.is-scrolled { border-color: var(--color-line); box-shadow: 0 4px 20px rgba(28, 29, 28, .06); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { position: relative; display: block; }
.site-header__logo img { height: 56px; width: auto; transition: opacity .3s; }
.site-header__logo-light { position: absolute; top: 0; left: 0; opacity: 0; }

/* Tlačítko menu */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 14px; margin-right: -6px; padding: 12px 6px;
  background: none; border: 0; color: var(--color-dark); cursor: pointer;
  font: 700 .85rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; transition: color .3s;
}
.menu-toggle__bars { position: relative; width: 34px; height: 18px; }
.menu-toggle__bars i {
  position: absolute; right: 0; height: 2.5px; background: currentColor;
  transition: transform .45s var(--ease), opacity .2s, width .3s var(--ease);
}
.menu-toggle__bars i:nth-child(1) { top: 0; width: 100%; }
.menu-toggle__bars i:nth-child(2) { top: 8px; width: 64%; }
.menu-toggle__bars i:nth-child(3) { top: 16px; width: 82%; }
.menu-toggle:hover .menu-toggle__bars i { width: 100%; }
.menu-toggle:hover .menu-toggle__bars i:nth-child(2) { background: var(--color-red); }

/* Stav „menu otevřené“ – třída na <html> */
.menu-open body { overflow: hidden; }
.menu-open .site-header { transform: none; border-color: transparent; box-shadow: none; }
.menu-open .site-header::before { opacity: 0; }
.menu-open .site-header__logo-dark { opacity: 0; }
.menu-open .site-header__logo-light { opacity: 1; }
.menu-open .menu-toggle { color: #fff; }
.menu-open .menu-toggle__bars i { width: 100%; }
.menu-open .menu-toggle__bars i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle__bars i:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-open .menu-toggle__bars i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu přes celou obrazovku */
.menu {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-dark); color: #fff;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s cubic-bezier(.76, 0, .24, 1), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s cubic-bezier(.76, 0, .24, 1); }
.menu__inner {
  position: relative; min-height: 100%; display: grid; gap: 48px; align-content: center;
  padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px;
}
@media (min-width: 1024px) { .menu__inner { grid-template-columns: 1.7fr 1fr; align-items: end; } }
.menu__list { list-style: none; }
.menu__list li { opacity: 0; transform: translateY(48px); transition: opacity .4s, transform .5s var(--ease); }
.menu-open .menu__list li { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu-open .menu__list li:nth-child(1) { transition-delay: .30s; }
.menu-open .menu__list li:nth-child(2) { transition-delay: .35s; }
.menu-open .menu__list li:nth-child(3) { transition-delay: .40s; }
.menu-open .menu__list li:nth-child(4) { transition-delay: .45s; }
.menu-open .menu__list li:nth-child(5) { transition-delay: .50s; }
.menu-open .menu__list li:nth-child(6) { transition-delay: .55s; }
.menu-open .menu__list li:nth-child(7) { transition-delay: .60s; }
.menu__link {
  display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px); padding: 4px 0;
  color: #fff; text-decoration: none; font: 700 clamp(2rem, 5vw, 4rem)/1.08 var(--font-head); letter-spacing: -.02em;
}
.menu__link:hover, .menu__link:focus-visible { color: #fff; }
.menu__num { min-width: 2.4em; font: italic 700 clamp(.8rem, 1vw, .95rem)/1 var(--font-head); letter-spacing: .06em; color: var(--color-yellow); transition: color .3s; }
.menu__text { position: relative; display: inline-block; transition: transform .4s var(--ease); }
.menu__text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .1em; background: var(--color-red);
  transform: scaleX(0) skewX(var(--skew)); transform-origin: left; transition: transform .4s var(--ease);
}
.menu__link:hover .menu__text, .menu__link:focus-visible .menu__text { transform: translateX(14px); }
.menu__link:hover .menu__text::after, .menu__link:focus-visible .menu__text::after { transform: scaleX(1) skewX(var(--skew)); }
.menu__link.is-active .menu__num { color: var(--color-red); }
.menu__aside {
  color: var(--color-grey-light); font-size: 1rem;
  opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .4s var(--ease);
}
.menu-open .menu__aside { opacity: 1; transform: none; transition: opacity .6s .6s, transform .8s .6s var(--ease); }
.menu__aside a:not(.btn) { color: #fff; text-decoration: none; }
.menu__aside a:not(.btn):hover { color: var(--color-yellow); }
.menu__heading { font: 700 .9rem/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.menu__aside .btn { margin-top: 8px; }
.menu__stripes { position: absolute; top: 0; bottom: 0; right: 8%; display: flex; gap: 18px; pointer-events: none; opacity: .14; }
.menu__stripes i { width: clamp(40px, 6vw, 90px); height: 100%; transform: skewX(var(--skew)) scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.menu__stripes i:nth-child(1) { background: var(--color-yellow); }
.menu__stripes i:nth-child(2) { background: var(--color-red); }
.menu__stripes i:nth-child(3) { background: var(--color-blue); }
.menu-open .menu__stripes i { transform: skewX(var(--skew)) scaleY(1); transition: transform 1.2s var(--ease); }
.menu-open .menu__stripes i:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__stripes i:nth-child(2) { transition-delay: .35s; }
.menu-open .menu__stripes i:nth-child(3) { transition-delay: .45s; }

/* Ukazatel průběhu scrollování */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--color-yellow) 0 33.33%, var(--color-red) 33.33% 66.66%, var(--color-blue) 66.66%);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}

/* ---------- Úvodní animace ---------- */
.intro { display: none; }
.intro-play .intro {
  display: block; position: fixed; inset: 0; z-index: 1000;
  animation: intro-failsafe 0s 6s forwards; /* pojistka, kdyby se nenačetl JavaScript */
}
.intro-play body { animation: intro-unlock 0s 6s forwards; overflow: hidden; }
@keyframes intro-failsafe { to { visibility: hidden; } }
@keyframes intro-unlock { to { overflow: visible; } }
.intro__panel { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.intro__panel--yellow { background: var(--color-yellow); }
.intro__panel--red { background: var(--color-red); }
.intro__panel--blue { background: var(--color-blue); }
.intro__panel--dark { background: var(--color-dark); }
.intro__content { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 36px; transition: opacity .35s, transform .6s var(--ease); }
.intro-logo { width: min(320px, 64vw); height: auto; overflow: visible; }
.intro-logo path { transform-box: fill-box; }
.intro-logo__s1, .intro-logo__s2, .intro-logo__s3 { transform-origin: 50% 100%; animation: intro-stripe .7s var(--ease) both; }
.intro-logo__s1 { transform-origin: 0 100%; animation-name: intro-stripe-x; animation-delay: .55s; }
.intro-logo__s2 { animation-delay: .15s; }
.intro-logo__s3 { animation-delay: .3s; }
.intro-logo__swt { animation: intro-slide 1s .45s var(--ease) both; }
.intro-logo__soukup { animation: intro-slide .9s .75s var(--ease) both; }
.intro-logo__weldtech { animation: intro-slide .9s .9s var(--ease) both; }
@keyframes intro-stripe { from { transform: scaleY(0); } }
@keyframes intro-stripe-x { from { transform: scaleX(0); } }
@keyframes intro-slide { from { opacity: 0; transform: translateX(-24px); } }
.intro__bar { width: 180px; height: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.intro__bar i {
  display: block; height: 100%; transform-origin: left;
  background: linear-gradient(90deg, var(--color-yellow) 0 33.33%, var(--color-red) 33.33% 66.66%, var(--color-blue) 66.66%);
  animation: intro-bar 1.7s .2s cubic-bezier(.6, 0, .3, 1) both;
}
@keyframes intro-bar { from { transform: scaleX(0); } }
/* Odjezd: tmavý panel vyjede nahoru a odkryje postupně modrý, červený a žlutý pruh */
.intro-done .intro__content { opacity: 0; transform: translateY(-30px); }
.intro-done .intro__panel { transform: translateY(-100%); }
.intro-done .intro__panel--dark { transition-delay: .15s; }
.intro-done .intro__panel--blue { transition-delay: .27s; }
.intro-done .intro__panel--red { transition-delay: .39s; }
.intro-done .intro__panel--yellow { transition-delay: .51s; }

/* ---------- Úvod ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--color-grey); max-width: 52ch; margin: 28px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__frame { --frame-clip: polygon(0 0, 100% 0, 100% 100%, 0 100%); overflow: hidden; clip-path: var(--frame-clip); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.14); will-change: transform; }
.hero__media::before, .hero__media::after {
  content: ""; position: absolute; z-index: -1; width: 28%; height: 60%; transform: skewX(var(--skew));
  transition: transform 1s var(--ease);
}
.hero__media::before { right: -6%; top: -8%; background: var(--color-yellow); height: 24%; transform-origin: 0 100%; }
.hero__media::after { left: -5%; bottom: -8%; background: var(--color-blue); width: 18%; transform-origin: 50% 100%; }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero__frame { --frame-clip: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .hero__frame img { aspect-ratio: 4 / 5; }
  .hero__media::after { left: -2%; }
}
.hero__scroll { display: none; }
@media (min-width: 1024px) and (min-height: 700px) {
  .hero__scroll { display: block; position: absolute; left: 50%; bottom: 28px; width: 2px; height: 56px; background: var(--color-line); overflow: hidden; }
  .hero__scroll span { position: absolute; inset: 0; background: var(--color-red); animation: scroll-hint 2s cubic-bezier(.6, 0, .3, 1) infinite; }
}
@keyframes scroll-hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Nástup úvodu – výchozí skrytý stav jen s JS; main.js po skončení intra přidá .is-ready */
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .word__inner { display: inline-block; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.hero .eyebrow, .hero__lead, .hero__actions, .hero__scroll { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero .eyebrow { transition-delay: .05s; }
.hero__lead { transition-delay: .55s; }
.hero__actions { transition-delay: .7s; }
.hero__scroll { transition-delay: 1.2s; }
.hero__frame { transition: clip-path 1.3s cubic-bezier(.76, 0, .24, 1) .25s; }
.hero__media::before { transition-delay: .9s; }
.hero__media::after { transition-delay: 1s; }
.js:not(.is-ready) .hero__title .word__inner { transform: translateY(110%); }
.js:not(.is-ready) .hero .eyebrow,
.js:not(.is-ready) .hero__lead,
.js:not(.is-ready) .hero__actions,
.js:not(.is-ready) .hero__scroll { opacity: 0; transform: translateY(24px); }
.js:not(.is-ready) .hero__frame { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.js:not(.is-ready) .hero__media::before { transform: skewX(var(--skew)) scaleX(0); }
.js:not(.is-ready) .hero__media::after { transform: skewX(var(--skew)) scaleY(0); }

/* ---------- Běžící pás ---------- */
.ticker { background: var(--color-dark); color: #fff; overflow: hidden; padding: clamp(18px, 2.4vw, 28px) 0; }
.ticker__track {
  display: flex; align-items: center; width: max-content; white-space: nowrap;
  font: 700 clamp(1.15rem, 2.2vw, 1.8rem)/1 var(--font-head); letter-spacing: .02em; text-transform: uppercase;
  animation: ticker 45s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { margin-right: clamp(24px, 3vw, 40px); }
.ticker__track i { flex: none; width: 12px; height: 1.1em; margin-right: clamp(24px, 3vw, 40px); transform: skewX(var(--skew)); }
.ticker__track i:nth-of-type(3n+1) { background: var(--color-yellow); }
.ticker__track i:nth-of-type(3n+2) { background: var(--color-red); }
.ticker__track i:nth-of-type(3n) { background: var(--color-blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sekce ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-dark); color: #fff; }
.section__head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font: 700 .95rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--color-grey);
}
.section--dark .section__label { color: var(--color-grey-light); }
.section__num {
  display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 8px;
  font-style: italic; color: #fff; background: var(--color-red); transform: skewX(var(--skew));
}
.section__title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; }
.section__intro { font-size: 1.15rem; color: var(--color-grey); margin: 24px 0 0; max-width: 64ch; }
.section--dark .section__intro, .section--dark .section__outro { color: var(--color-grey-light); }
.section__outro { max-width: 72ch; margin: clamp(40px, 5vw, 56px) 0 0; font-size: 1.1rem; }
.subhead { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: clamp(56px, 8vw, 96px) 0 32px; }

/* Text + fotka */
.split { display: grid; gap: 40px; align-items: start; }
.split__text > p:last-child { margin-bottom: 0; }
.split__text { font-size: 1.1rem; }
.photo { margin: 0; position: relative; }
.photo__frame { overflow: hidden; clip-path: inset(0); transition: clip-path 1.3s cubic-bezier(.76, 0, .24, 1); }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.12); will-change: transform; }
.photo--natural img { aspect-ratio: auto; } /* fotka na šířku – bez ořezu na čtverec */
.photo.reveal.is-pending { opacity: 1; transform: none; }
.photo.reveal.is-pending .photo__frame { clip-path: inset(0 100% 0 0); }
.photo::after { transition: transform .8s var(--ease) .6s; transform-origin: left; }
.photo.reveal.is-pending::after { transform: skewX(var(--skew)) scaleX(0); }
.photo::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 40%; height: 14px;
  background: var(--color-red); transform: skewX(var(--skew));
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--reverse .split__media { order: -1; }
}

/* Proč SWT */
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.feature { padding: 28px 24px; background: var(--color-bg-alt); border-top: 3px solid var(--color-dark); }
.feature:nth-child(3n+1) { border-color: var(--color-red); }
.feature:nth-child(3n+2) { border-color: var(--color-blue); }
.feature:nth-child(3n+3) { border-color: var(--color-yellow); }
.feature__icon { width: 34px; height: 34px; margin-bottom: 18px; color: var(--color-dark); }
.feature__title { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: .98rem; color: var(--color-grey); }

/* Karty specializací */
.cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card__media { overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { position: relative; padding: 40px 32px 32px; }
.card__icon {
  position: absolute; top: -28px; left: 32px; width: 56px; height: 56px; padding: 13px;
  background: var(--color-red); color: #fff; stroke-width: 1.6;
}
.card__title { font-size: 1.55rem; margin-bottom: 12px; }
.card__lead { color: var(--color-grey); }
.list { list-style: none; display: grid; gap: 6px; }
.list li { position: relative; padding-left: 22px; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px;
  background: var(--color-red); transform: skewX(var(--skew));
}

/* Dlaždice – kde nás najdete */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px);
  background: var(--color-dark); font: 600 clamp(1rem, 1.6vw, 1.2rem)/1.3 var(--font-head);
  transition: background-color .25s;
}
.tile:hover { background: #262726; }
.tile__icon { width: 36px; height: 36px; color: var(--color-yellow); stroke-width: 1.5; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 10px 24px; margin: 28px 0; }
@media (min-width: 600px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist .icon { color: #fff; background: var(--color-red); width: 22px; height: 22px; padding: 4px; margin-top: 2px; stroke-width: 3; }

/* Kroky realizace */
.steps { list-style: none; display: grid; gap: 0; position: relative; }
.step { position: relative; padding: 0 0 36px 76px; }
.step::before {
  content: ""; position: absolute; left: 25px; top: 44px; bottom: 0; width: 2px; background: var(--color-grey-light);
  transform-origin: 0 0; transition: transform 1s var(--ease) .35s;
}
.step.is-pending::before { transform: scaleY(0); }
.step__num { transition: transform .6s var(--ease); }
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0; width: 52px; height: 44px; display: grid; place-items: center;
  font: italic 700 1.5rem/1 var(--font-head); color: #fff; background: var(--color-dark);
  transform: skewX(var(--skew));
}
.step:nth-child(1) .step__num { background: var(--color-yellow); color: var(--color-dark); }
.step:nth-child(2) .step__num { background: var(--color-red); }
.step:nth-child(3) .step__num { background: var(--color-blue); color: var(--color-dark); }
.step:nth-child(5) .step__num { background: var(--color-green); }
.step__title { font-size: 1.35rem; margin: 8px 0 8px; }
.step p { margin: 0; color: var(--color-grey); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { padding: 72px 0 0; }
  .step::before { left: 60px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .step.is-pending::before { transform: scaleX(0); }
  .step__title { margin-top: 0; }
}

/* Reference */
.refs { list-style: none; display: grid; gap: 24px; }
@media (min-width: 768px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .refs { grid-template-columns: repeat(3, 1fr); } }
.ref-card { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ref-card__media { position: relative; display: block; overflow: hidden; background: var(--color-bg-alt); }
.ref-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.ref-card__media::after {
  content: "Zobrazit fotky"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 1rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(28, 29, 28, .55); opacity: 0; transition: opacity .3s;
}
.ref-card__media:hover img, .ref-card__media:focus-visible img { transform: scale(1.05); }
.ref-card__media:hover::after, .ref-card__media:focus-visible::after { opacity: 1; }
.ref-card__count {
  position: absolute; z-index: 1; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: var(--color-dark); color: #fff; font: 600 .85rem/1 var(--font-body);
}
.ref-card__count .icon { width: 16px; height: 16px; }
.ref-card__body { padding: 24px 24px 28px; border-left: 4px solid var(--color-red); }
.ref-card__title { font-size: 1.4rem; margin-bottom: 6px; }
.ref-card__text { margin: 0; color: var(--color-grey); }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 5fr 7fr; gap: 72px; } }
.contact__company { font: 700 1.5rem/1.2 var(--font-head); margin-bottom: 4px; }
.contact__person { color: var(--color-grey); margin-bottom: 28px; }
.contact__list { list-style: none; display: grid; gap: 16px; margin-bottom: 32px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.contact__list .icon { width: 44px; height: 44px; padding: 11px; background: var(--color-dark); color: #fff; margin-top: -8px; }
.contact__list a { color: var(--color-dark); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--color-red); }
.contact__legal { display: grid; gap: 6px; margin: 0; padding-top: 24px; border-top: 1px solid var(--color-grey-light); font-size: .95rem; }
.contact__legal div { display: flex; gap: 8px; }
.contact__legal dt { color: var(--color-grey); min-width: 130px; }
.contact__legal dd { margin: 0; font-weight: 600; }

/* Formulář */
.form { background: #fff; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); border-top: 4px solid var(--color-red); }
.form__row { display: grid; gap: 0 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 8px; }
.field__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--color-red); }
.field__input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--color-grey-light); border-radius: var(--radius);
  background: #fff; color: var(--color-dark); font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea.field__input { resize: vertical; min-height: 150px; }
.field__input:hover { border-color: var(--color-grey); }
.field__input:focus { outline: none; border-color: var(--color-dark); box-shadow: 0 0 0 3px rgba(45, 149, 210, .35); }
.field__input[aria-invalid="true"] { border-color: var(--color-red); }
.field__error { min-height: 1.4em; margin: 4px 0 0; font-size: .88rem; color: var(--color-red); font-weight: 500; }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: .88rem; color: var(--color-grey); margin: 8px 0 24px; }
.form__submit { width: 100%; }
@media (min-width: 600px) { .form__submit { width: auto; } }
.form__status { margin-top: 20px; padding: 0; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-success { padding: 16px 18px; background: #EAF6EE; color: var(--color-success); border-left: 4px solid var(--color-success); }
.form__status.is-error { padding: 16px 18px; background: #FDECEC; color: #A31512; border-left: 4px solid var(--color-red); }
.form__status:focus { outline: none; }

/* ---------- Patička ---------- */
.site-footer { background: var(--color-dark); color: var(--color-grey-light); padding: 72px 0 32px; font-size: .95rem; }
.site-footer a, .site-footer .link-button { color: #fff; }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--color-yellow); }
.site-footer__inner { display: grid; gap: 36px; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.site-footer__brand img { width: 160px; height: auto; }
.site-footer__heading { font: 700 1rem/1.3 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer__links { list-style: none; display: grid; gap: 8px; }
.site-footer__bottom { position: relative; margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: .85rem; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, .14); }
.site-footer__bottom p { margin: 0; }
/* Podstránky mají jen spodní řádek patičky */
.site-footer:has(> .site-footer__bottom:first-child) { padding: 28px 0; }
.site-footer__bottom:first-child { margin-top: 0; padding-top: 0; }
.site-footer__bottom:first-child::before { display: none; }
.nav__cta-sub { min-height: 42px; padding: .55em 1.1em; font-size: .9rem; }

/* ---------- Galerie (lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16, 17, 16, .96); color: #fff; overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(16, 17, 16, .96); }
.lightbox__top { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 24px; }
.lightbox__caption { flex: 1; margin: 0; font-size: .98rem; }
.lightbox__caption strong { font: 700 1.15rem/1.2 var(--font-head); margin-right: 8px; }
.lightbox__sub { color: var(--color-grey-light); }
.lightbox__counter { margin: 0; font: 600 .95rem/1 var(--font-body); color: var(--color-grey-light); white-space: nowrap; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px 24px; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lightbox__img.is-loading { opacity: .3; }
.lightbox__btn {
  display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .2s;
}
.lightbox__btn:hover { background: var(--color-red); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__btn[hidden] { display: none; }
@media (max-width: 767px) {
  .lightbox__stage { padding: 0 0 72px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox__top { padding-left: 16px; flex-wrap: wrap; }
  .lightbox__caption { flex-basis: calc(100% - 68px); order: 0; }
  .lightbox__counter { order: 2; }
}

/* ---------- Cookie lišta ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 720px; margin: 0 auto;
  padding: 24px; background: #fff; color: var(--color-dark); box-shadow: 0 12px 48px rgba(0, 0, 0, .22); border-top: 4px solid var(--color-red);
  font-size: .95rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { color: var(--color-grey); }
.cookie-bar .cookie-bar__title { font: 700 1.25rem/1.2 var(--font-head); margin-bottom: 8px; color: var(--color-dark); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-bar__actions .btn { flex: 1 1 auto; min-height: 44px; font-size: .9rem; }
.cookie-bar__settings { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--color-line); display: grid; gap: 14px; }
.cookie-bar__settings[hidden] { display: none; }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cookie-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-red); flex: none; }
.cookie-option strong { display: block; }
.cookie-option span span { color: var(--color-grey); font-size: .9rem; }

/* ---------- Podstránky (právní texty, 404, poděkování) ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0 var(--section-y); }
.page .container { max-width: calc(820px + 2 * var(--gutter)); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.page h2 { font-size: 1.6rem; margin: 48px 0 16px; }
.page ul { padding-left: 1.3em; margin-bottom: 1em; }
.page li { margin-bottom: .35em; }
.page table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .95rem; }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.page th { background: var(--color-bg-alt); font-family: var(--font-head); }
.table-wrap { overflow-x: auto; }
.page--center { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.page--center .hero__actions { justify-content: center; margin-top: 32px; }
.big-code { font: italic 700 clamp(5rem, 18vw, 10rem)/1 var(--font-head); color: var(--color-red); margin: 0 0 8px; }

/* ---------- Animace při scrollování ---------- */
/* Třídu is-pending přidá main.js jen prvkům, které jsou při načtení mimo obrazovku. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(24px); }

/* Nadpisy sekcí: číslo sekce se „vysune“ */
.section__num { transition: transform .7s var(--ease) .15s; transform-origin: left; }
.section__head.is-pending .section__num { transform: skewX(var(--skew)) scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__frame img, .photo img { transform: none; }
}

@media print {
  .site-header, .cookie-bar, .form, .lightbox, .hero__actions, .intro, .menu, .ticker, .scroll-progress, .hero__scroll { display: none !important; }
  .hero__title .word__inner, .hero .eyebrow, .hero__lead { opacity: 1 !important; transform: none !important; }
  .section--dark { background: none; color: inherit; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
