/* KGM Trade – styly webu. Písmo Barlow (stejné jako aplikace Balíky KGM), barvy z loga. */

@font-face{font-family:"Barlow";font-weight:400;font-display:swap;src:url(/fonts/barlow-latin-ext-400-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-weight:400;font-display:swap;src:url(/fonts/barlow-latin-400-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-weight:500;font-display:swap;src:url(/fonts/barlow-latin-ext-500-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-weight:500;font-display:swap;src:url(/fonts/barlow-latin-500-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-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-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 Semi Condensed";font-weight:600;font-display:swap;src:url(/fonts/barlow-semi-condensed-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 Semi Condensed";font-weight:600;font-display:swap;src:url(/fonts/barlow-semi-condensed-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 Semi Condensed";font-weight:700;font-display:swap;src:url(/fonts/barlow-semi-condensed-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 Semi Condensed";font-weight:700;font-display:swap;src:url(/fonts/barlow-semi-condensed-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}

:root {
  --red: #bc2832;
  --red-600: #a3212a;
  --red-700: #861b23;
  --red-50: #fbeeef;
  --red-bright: #e2414b; /* červená pro text na tmavém pozadí (kontrast 4,5 : 1) */
  --ink: #15171a;
  --ink-2: #353a40;
  --muted: #5f666e;
  --line: #e3e5e8;
  --line-2: #cfd3d8;
  --bg: #ffffff;
  --bg-2: #f4f5f6;
  --bg-3: #eaecee;
  --dark: #121417;
  --dark-2: #1b1e22;
  --on-dark: rgba(255, 255, 255, .78);
  --on-dark-muted: rgba(255, 255, 255, .58);
  --steel: #9d9d9c;
  --f-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --r: 4px;
  --shadow: 0 1px 2px rgba(18, 20, 23, .06), 0 10px 30px rgba(18, 20, 23, .09);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
abbr[title] { text-decoration: underline dotted rgba(0, 0, 0, .3); text-underline-offset: 3px; cursor: help; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* Logo: KGM červeně, TRADE šedě (na tmavém pozadí světleji). */
.logo { width: auto; height: 34px; }
.logo-kgm { fill: var(--red); }
.logo-trade { fill: var(--steel); }
.logo-dark .logo-trade { fill: #dadada; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--f-body); font-weight: 600; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2f34; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; gap: 8px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(18, 20, 23, .08); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: block; flex: none; text-decoration: none; }
.brand .logo { height: 36px; }
.nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a { position: relative; display: block; padding: 10px 12px; font-weight: 600; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); transition: color .2s ease; }
.nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav ul a:hover { color: var(--ink); }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-phone .ico { width: 18px; height: 18px; color: var(--red); }
.nav-phone:hover { color: var(--red); }
.nav-toggle { display: none; }

/* ---------- Společné prvky sekcí ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; font-size: 13.5px; line-height: 1; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.kicker.light { color: #fff; }
.kicker.light::before { background: var(--red-bright); }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(38px, 5.2vw, 64px); text-transform: uppercase; }
.section-head h2 em, .hero h1 em { font-style: normal; color: var(--red); }
.section-head .lead { margin-top: 20px; font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.section-head.light h2 { color: #fff; }
.section-head.light h2 em { color: #fff; }
.section-head.light .lead { color: rgba(255, 255, 255, .86); }
.section-head.light .kicker { color: #fff; }
.section-head.light .kicker::before { background: #fff; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row .section-head { margin: 0; }
.prose { display: grid; gap: 1em; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.h-small { font-size: 26px; text-transform: uppercase; margin-bottom: 18px; }

/* Plynulé objevení při rolování (jen s JS a bez „omezit pohyb“). */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Úvod (video) ---------- */
.hero { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: min(90svh, 880px); background: var(--dark) url(/img/hero-poster-960.webp) center / cover no-repeat; color: #fff; overflow: hidden; isolation: isolate; }
@media (min-width: 961px) { .hero { background-image: url(/img/hero-poster.webp); } }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12, 14, 16, .9) 0%, rgba(12, 14, 16, .72) 38%, rgba(12, 14, 16, .25) 72%, rgba(12, 14, 16, .1) 100%),
  linear-gradient(0deg, rgba(12, 14, 16, .85) 0%, rgba(12, 14, 16, 0) 38%); }
.hero-inner { display: flex; align-items: center; padding-top: clamp(64px, 10vh, 120px); padding-bottom: 56px; }
.hero-copy { max-width: 720px; }
.hero h1 { font-size: clamp(60px, 10vw, 136px); line-height: .9; text-transform: uppercase; letter-spacing: -.01em; }
.hero h1 .kicker { display: flex; font-family: var(--f-body); }
.hero-slogan { display: block; }
.hero h1 em { color: var(--red-bright); }
.hero-lead { margin-top: 28px; max-width: 580px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-bar { position: relative; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(12, 14, 16, .45); }
@supports (backdrop-filter: blur(1px)) { .hero-bar { background: rgba(12, 14, 16, .3); backdrop-filter: blur(10px); } }
.hero-bar-inner { display: flex; align-items: center; gap: 24px; }
.hero-stats { flex: 1; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; }
.hero-stats li { display: flex; align-items: center; gap: 14px; padding: 22px 36px 22px 0; margin-right: 36px; border-right: 1px solid rgba(255, 255, 255, .14); }
.hero-stats li:last-child { border-right: 0; margin-right: 0; }
.hero-stats strong { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1; }
.hero-stats span { font-size: 14px; line-height: 1.3; letter-spacing: .04em; color: var(--on-dark); max-width: 150px; }
.hero-partner img { height: 34px; width: auto; border-radius: 2px; }
.video-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s ease; }
.video-toggle:hover { background: rgba(255, 255, 255, .12); }
.video-toggle[hidden] { display: none; }
.video-toggle .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }

/* ---------- O nás ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy .prose { margin-top: 28px; font-size: 19px; }
.timeline { position: relative; display: grid; margin-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 9px 0 9px 38px; }
.timeline li::before, .timeline li::after { content: ""; position: absolute; top: 50%; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.timeline li::before { left: 0; width: 16px; height: 18px; margin-top: -9px; background: var(--line-2); }
.timeline li::after { left: 3px; width: 10px; height: 12px; margin-top: -6px; background: #fff; }
.timeline li.now::before, .timeline li.now::after { background: var(--red); }
.tl-label { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--red); }
.tl-text { color: var(--ink-2); }
.timeline li.now .tl-text { color: var(--ink); font-weight: 600; }
.about-media { position: relative; margin: 0; }
.about-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 8% 50%; border-radius: var(--r); }
.about-media::before { content: ""; position: absolute; left: -18px; bottom: -18px; width: 46%; height: 52%; background: var(--red); border-radius: var(--r); }
.about-media figcaption { position: absolute; z-index: 2; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: #fff; border-radius: var(--r); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow); }
.about-media figcaption .mark { width: 22px; height: auto; }

/* ---------- Služby ---------- */
.services { background-color: var(--bg-2); background-image: linear-gradient(rgba(21, 23, 26, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .045) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.services .section-head { margin-bottom: clamp(36px, 5vw, 56px); }
/* Mřížka bez mezer, čáry dělají okraje karet (při objevování karet nesmí prosvítat pozadí). */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { position: relative; display: grid; align-content: start; gap: 14px; padding: 36px 32px 40px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; background: var(--red-50); color: var(--red); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .25s ease, color .25s ease; }
.service-ico .ico { width: 26px; height: 26px; stroke-width: 1.8; }
.service:hover .service-ico { background: var(--red); color: #fff; }
.service-no { position: absolute; right: 28px; top: 30px; font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--bg-3); }
.service h3 { font-size: 26px; line-height: 1.1; }
.service p { color: var(--muted); font-size: 17px; }
.services-more { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 24px 28px; background: var(--dark); color: #fff; border-radius: var(--r); }
.services-more > .ico { width: 30px; height: 30px; color: var(--red-bright); stroke-width: 1.8; }
.services-more p { flex: 1; color: var(--on-dark); }
.services-more strong { color: #fff; font-weight: 600; }
.services-more .btn-light { border-color: #fff; }

/* ---------- Reference ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.project a { display: grid; height: 100%; text-decoration: none; color: inherit; }
.project-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); border-radius: var(--r); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project a:hover .project-img img { transform: scale(1.05); }
.project-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 14, 16, .35), rgba(12, 14, 16, 0) 45%); opacity: 0; transition: opacity .3s ease; }
.project a:hover .project-img::after { opacity: 1; }
.project-placeholder { position: absolute; inset: 30%; width: 40%; height: 40%; opacity: .25; }
.project-year { position: absolute; left: 0; top: 16px; z-index: 1; padding: 6px 12px; background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.project-body { display: grid; align-content: start; gap: 6px; padding: 18px 0 4px; border-bottom: 2px solid var(--line); transition: border-color .3s ease; }
.project-body strong { font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.15; transition: color .2s ease; }
.project-body span { color: var(--muted); font-size: 15.5px; }
.project a:hover .project-body { border-color: var(--red); }
.project a:hover .project-body strong { color: var(--red); }
.clients { margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.clients h3 { margin-bottom: 18px; font-family: var(--f-body); font-weight: 600; font-size: 13.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.clients ul { display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); }

/* ---------- Kariéra ---------- */
.career { background: var(--red); color: #fff; overflow: hidden; isolation: isolate; }
.career::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0) 0 22px, rgba(255, 255, 255, .035) 22px 23px); }
.career-mark { position: absolute; z-index: -1; right: -6%; top: -10%; width: min(46vw, 620px); height: auto; opacity: .1; }
.career-mark .logo-kgm, .career-mark .logo-trade, .page-head-mark .logo-kgm, .page-head-mark .logo-trade { fill: #fff; }
.career-count { display: flex; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.career-count strong { font-family: var(--f-display); font-size: 88px; line-height: .8; letter-spacing: 0; color: #fff; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.job a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px 26px 24px; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--r); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); transition: transform .3s var(--ease), box-shadow .3s ease; }
.job a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(60, 8, 12, .3); }
.job h3 { font-size: 27px; line-height: 1.05; }
.job p { color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.job-meta { display: grid; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 15px; color: var(--ink-2); }
.job-meta li { display: flex; align-items: center; gap: 8px; }
.job-meta .ico { width: 16px; height: 16px; color: var(--red); }
.job-more { display: inline-flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.job-more .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.job a:hover .job-more .ico { transform: translateX(4px); }
.job-open a { background: transparent; color: #fff; border: 1.5px dashed rgba(255, 255, 255, .6); box-shadow: none; }
.job-open a:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.job-open p { color: rgba(255, 255, 255, .86); }
.job-open .job-more { margin-top: auto; color: #fff; border-color: rgba(255, 255, 255, .3); letter-spacing: .02em; text-transform: none; font-size: 15.5px; }
.career-page { background: var(--bg-2); }
.career-page::before, .job-others .job-open a { display: none; }
.career-page .job-open a, .job-others .job-open a { color: var(--ink); border-color: var(--line-2); }
.career-page .job-open p, .job-others .job-open p { color: var(--muted); }
.career-page .job-open .job-more { color: var(--red); border-color: var(--line); }
.career-page .job a, .job-others .job a { border: 1px solid var(--line); }

/* ---------- E-shopy ---------- */
.shops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.shops .prose { margin-top: 28px; }
.shop-list { display: grid; gap: 18px; }
.shop { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto auto; align-items: center; gap: 6px 32px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; background: #fff; transition: border-color .25s ease, box-shadow .25s ease, transform .3s var(--ease); }
.shop:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.shop img { grid-row: span 2; width: 100%; max-height: 82px; object-fit: contain; object-position: left center; }
.shop-text { align-self: end; color: var(--muted); font-size: 16px; line-height: 1.45; }
.shop-link { align-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.shop-link .ico { width: 16px; height: 16px; color: var(--red); }

/* ---------- Ceník ---------- */
.price-band { position: relative; padding: clamp(48px, 6vw, 72px) 0; background-color: var(--dark); background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 32px 32px; color: #fff; }
.price-inner { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.price-ico { display: grid; place-items: center; width: 84px; height: 96px; flex: none; background: var(--red); color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.price-ico .ico { width: 34px; height: 34px; stroke-width: 1.7; }
.price-copy { flex: 1; display: grid; gap: 8px; }
.price-copy h2 { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; }
.price-copy > p:not(.price-meta) { color: var(--on-dark); max-width: 640px; }
.price-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.price-meta span { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; }

/* ---------- Kontakt ---------- */
#kontakt { padding-bottom: 0; } /* mapa dosedá rovnou na patičku */
.contact .section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.contact-grid { display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-card { display: grid; gap: 28px; justify-items: start; padding: clamp(28px, 3vw, 40px); background: var(--bg-2); border-top: 4px solid var(--red); border-radius: var(--r); }
.contact-card .logo { height: 32px; }
.contact-list { display: grid; gap: 18px; width: 100%; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; font-size: 17.5px; line-height: 1.5; }
.contact-list .ico { margin-top: 3px; color: var(--red); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 14px; }
.field input, .field textarea { width: 100%; padding: 13px 16px; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #aeb4bb; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(188, 40, 50, .14); }
.field textarea::placeholder { color: #9aa0a7; }
.cf-turnstile { min-height: 65px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.form-note { color: var(--muted); font-size: 14.5px; max-width: 340px; }
.form-errors { padding: 14px 18px; background: var(--red-50); color: var(--red-700); border-left: 4px solid var(--red); font-weight: 500; }
.form-errors ul { padding-left: 18px; list-style: disc; }
.form-sent { display: grid; justify-items: start; gap: 12px; padding: clamp(28px, 4vw, 48px); background: var(--bg-2); border-top: 4px solid #2f8a4b; border-radius: var(--r); }
.form-sent-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #2f8a4b; color: #fff; }
.form-sent h3 { font-size: 30px; }
.form-sent p { color: var(--muted); }
.map { position: relative; height: clamp(300px, 36vw, 440px); margin-top: clamp(56px, 7vw, 96px); background-color: var(--bg-3); background-image: linear-gradient(rgba(21, 23, 26, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .06) 1px, transparent 1px); background-size: 40px 40px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }

/* ---------- Podstránky ---------- */
.page-head { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background-color: var(--dark); background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 40px 40px; color: #fff; overflow: hidden; isolation: isolate; }
.page-head-mark { position: absolute; z-index: -1; right: -4%; bottom: -30%; width: min(40vw, 460px); height: auto; opacity: .06; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 14.5px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs span:last-child:not([aria-hidden]) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.page-head h1 { max-width: 980px; font-size: clamp(40px, 6vw, 76px); text-transform: uppercase; line-height: .98; }
.page-head .lead { margin-top: 18px; max-width: 680px; font-size: 19px; color: var(--on-dark); }
.page-meta, .page-head .job-meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; }
.page-meta li { display: flex; align-items: center; gap: 12px; }
.page-meta .ico { width: 22px; height: 22px; color: var(--red-bright); }
.page-meta small { display: block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.page-meta span { font-weight: 600; font-size: 17px; line-height: 1.3; }
.page-head .job-meta { padding-top: 0; color: #fff; font-size: 16.5px; font-weight: 500; }
.page-head .job-meta .ico { color: var(--red-bright); }

.project-detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.project-figure { margin: 0; }
.project-figure img { width: 100%; border-radius: var(--r); }
.project-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.project-text { display: grid; gap: 28px; justify-items: start; }
.project-text .prose { font-size: 18.5px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: clamp(56px, 7vw, 96px); }
.pager-link { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .2s ease; }
.pager-link:hover { border-color: var(--red); }
.pager-link small { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.pager-link small .ico { width: 15px; height: 15px; }
.pager-link span { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.pager-link.next { text-align: right; }
.pager-link.next small { justify-content: flex-end; }

.job-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.job-sections { display: grid; gap: 44px; }
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checks .ico { width: 20px; height: 20px; margin-top: 4px; color: var(--red); stroke-width: 2.4; }
.gdpr { padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.apply-card { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; padding: 32px; background: var(--bg-2); border-top: 4px solid var(--red); border-radius: var(--r); }
.apply-card h2 { font-size: 32px; text-transform: uppercase; }
.apply-card p { color: var(--ink-2); }
.apply-card a:not(.btn) { font-weight: 600; color: var(--red); }
.apply-or { font-size: 15.5px; text-align: center; color: var(--muted) !important; }
.job-others { padding-top: 0; }

.eu-page { justify-items: start; }
.eu-page img { width: 400px; margin-bottom: 12px; }

.cta-band { background: var(--red); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-inner h2 { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; }
.cta-band .btn-red { background: var(--ink); }
.cta-band .btn-red:hover { background: #000; }

.notfound { text-align: center; }
.notfound .wrap { display: grid; justify-items: center; gap: 20px; }
.notfound-mark { width: 84px; height: auto; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); text-transform: uppercase; }
.notfound .lead { color: var(--muted); font-size: 19px; max-width: 520px; }
.notfound .hero-actions { justify-content: center; margin-top: 8px; }

/* ---------- Patička ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px; }
.footer-brand { display: grid; gap: 22px; align-content: start; }
.footer-brand .logo { height: 32px; }
.footer-brand address { line-height: 1.6; }
.footer-ids { font-size: 14.5px; color: var(--on-dark-muted); }
.footer-col h2 { margin-bottom: 18px; font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-dark); transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-col a .ico { width: 14px; height: 14px; opacity: .6; }
.footer-contact a .ico { width: 17px; height: 17px; color: var(--red-bright); opacity: 1; }
.footer-eu { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; }
.eu-badge { flex: none; padding: 8px 12px; background: #fff; border-radius: var(--r); }
.eu-badge img { width: 200px; }
.footer-eu p { font-size: 15px; color: var(--on-dark-muted); }
.footer-eu a { color: var(--on-dark); }
.footer-bottom { background: #0c0d0f; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-size: 14.5px; color: var(--on-dark-muted); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); text-decoration: none; font-weight: 600; }
.to-top .ico { width: 16px; height: 16px; }
.to-top:hover { color: #fff; }

/* ---------- Menší obrazovky ---------- */
@media (max-width: 1180px) {
  .nav ul a { padding: 10px 8px; font-size: 14px; letter-spacing: .06em; }
  .nav ul a::after { left: 8px; right: 8px; }
  .nav { gap: 18px; }
  .nav-phone { display: none; }
  .hero-stats li { padding-right: 24px; margin-right: 24px; }
}
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .shop img { grid-row: auto; max-height: 64px; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .hero-stats li:nth-child(2) { border-right: 0; }
  .hero-stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand .logo { height: 30px; }
  /* backdrop-filter by z hlavičky udělal rámec pro position: fixed a menu by nemělo výšku. */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: grid; gap: 5px; align-content: center; justify-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px var(--gutter) 32px; background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .25s var(--ease), visibility 0s .25s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .25s var(--ease); }
  html:not(.js) .nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0 0 12px; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 16px 0; font-family: var(--f-display); font-size: 26px; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; }
  .nav-phone { display: inline-flex; justify-content: center; min-height: 52px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 18px; }
  .nav-actions .btn { min-height: 52px; font-size: 15px; }
  body.menu-open { overflow: hidden; }

  .about-grid, .shops-grid, .contact-grid, .project-detail-grid, .job-detail-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .about-media img { aspect-ratio: 16 / 10; }
  .apply-card { position: static; }
  .price-inner { flex-wrap: wrap; }
  .price-ico { width: 64px; height: 74px; }
  .price-ico .ico { width: 26px; height: 26px; }
  .price-copy { flex-basis: calc(100% - 100px); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-bar-inner { align-items: flex-start; }
  .hero-stats li { padding: 16px 12px 16px 0; margin-right: 12px; gap: 10px; }
  .hero-stats strong { font-size: 32px; }
  .hero-stats span { font-size: 13px; }
  .hero-partner img { height: 26px; }
  .video-toggle { margin-top: 14px; width: 38px; height: 38px; }
  .service-grid, .project-grid, .form-row, .footer-grid, .pager { grid-template-columns: 1fr; }
  .service { padding: 28px 22px 32px; }
  .services-more { flex-direction: column; align-items: flex-start; }
  .section-head-row { align-items: flex-start; flex-direction: column; }
  .career-count strong { font-size: 64px; }
  .shop { padding: 22px; }
  .price-band .btn-lg { width: 100%; }
  .footer-eu { flex-direction: column; align-items: flex-start; }
  .about-media::before { left: -10px; bottom: -10px; }
  .timeline li { grid-template-columns: 52px 1fr; }
  .pager-link.next { text-align: left; }
  .pager-link.next small { justify-content: flex-start; }
}
