/* ==========================================================================
   Rebut s.r.o. – homepage
   Values follow the Figma export 1:1 (1688px frame, 1640px outer, 1540px inner).
   ========================================================================== */

/* ---- Brand fonts (licensed – Klim Type Foundry, Grilli Type) ---- */
@font-face { font-family: "Die Grotesk B"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/die-grotesk-b-regular.woff2") format("woff2"); }
@font-face { font-family: "Die Grotesk C"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/die-grotesk-c-regular.woff2") format("woff2"); }
@font-face { font-family: "Die Grotesk C"; font-weight: 900; font-style: normal; font-display: swap; src: url("../assets/fonts/die-grotesk-c-heavy.woff2") format("woff2"); }
@font-face { font-family: "GT Pressura Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/gt-pressura-mono-regular.woff2") format("woff2"); }

:root {
  --header-h: 67px;  /* sticky header incl. its 1px border; 61px at ≤768px */
  --bg: #F4F4F2;
  --paper: #FFFFFF;
  --ink: #1D1918;
  --ink-soft: #6B6255;
  --chip-ink: #635A4E;                         /* chip text on --line: 4.6:1 */
  --tan: #A1926D;
  --tan-dim: #776D59;                          /* small tan text on light grounds: 4.6:1 on #F4F4F2 (WCAG AA) */
  --tan-dim-dark: #8E826A;                     /* the same role on ink: 4.6:1 on #1D1918; dark sections set --tan-dim to it */
  --tan-text: #7A6D4E;                         /* --tan as small text on light grounds: 4.6:1 on #F4F4F2 */
  --tan-light: #C2BAA4;
  --line: #DBD5CA;
  --line-field: #8E826A;                       /* form field and checkbox boundaries: 3.8:1 on #FFF (WCAG 1.4.11) */
  --line-dark: #443B36;
  --neutral-200: #E1DDD6;
  --dark-2: #352B29;
  --dark-3: #534942;
  --hair: rgba(237, 235, 229, 0.14);
  --hero-line: rgba(237, 235, 229, 0.22);
  --oil-slick: linear-gradient(100deg, #FBBB87 0%, #FF9685 28%, #FC7B9D 55%, #A87EEB 100%);  /* minimize brand gradient, footer credit hover */
  --hatch: #E2DED5;                            /* crumb bar hatch */
  --orange: #FD3B00;
  --orange-text: #D03100;                      /* small orange text on light grounds: 4.6:1 on #F4F4F2, 5.1:1 on #FFF; #FD3B00 stays for display type, fills, icons and text on ink */
  --orange-2: #FF560A;
  --blue: #2F7FFF;
  --light: #EDEBE5;
  --yellow: #FFC800;
  --font-a: "Die Grotesk B", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* Paragraphs measure 1:1 with the PDF in the C optical size (the Figma export names B) */
  --font-b: "Die Grotesk B", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-c: "Die Grotesk C", "Inter Tight", "Inter", system-ui, Arial, sans-serif;
  --font-mono: "GT Pressura Mono", "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/24px var(--font-a); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[id] { scroll-margin-top: 67px; }

/* ---- Type scale (Figma text styles) ---- */
.t-h1 { font: 900 64px/67px var(--font-c); letter-spacing: -0.03em; }
.t-h2 { font: 900 48px/50px var(--font-c); letter-spacing: -0.03em; }
.t-h3 { font: 900 40px/42px var(--font-c); letter-spacing: -0.03em; }
.t-h5 { font: 900 24px/28px var(--font-c); letter-spacing: -0.02em; }
.t-display { font: 900 96px/100px var(--font-c); letter-spacing: -0.03em; }
.hero__title.t-h1 { line-height: 0.91em; }  /* uppercase claim: no descenders, keeps the designer's tight leading (other big titles use ~1.04 so descenders and háčky do not collide) */
.t-label { font: 900 16px/20px var(--font-c); letter-spacing: -0.01em; }
.p-lg { font: 400 20px/30px var(--font-b); letter-spacing: 0; }
.p-md { font: 400 18px/28px var(--font-b); letter-spacing: 0; }
.p-sm { font: 400 16px/24px var(--font-a); letter-spacing: 0; }
.mono-lg, .mono-md, .mono-sm, .mono-xs, .mono-2xs { font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; }
.mono-lg { font-size: 20px; line-height: 24px; letter-spacing: -0.03em; }
.mono-md { font-size: 16px; line-height: 21px; letter-spacing: -0.03em; }
.mono-sm { font-size: 14px; line-height: 18px; letter-spacing: -0.03em; }
.mono-xs { font-size: 12px; line-height: 16px; letter-spacing: -0.02em; }
.mono-2xs { font-size: 11px; line-height: 14px; letter-spacing: -0.02em; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--light); font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; }
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Shell: outer (1640) + frame (1540), each with 1px side rules
   -------------------------------------------------------------------------- */
.outer {
  width: min(1640px, 100% - 48px); margin: 0 auto; padding: 0 49px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: var(--outer-bg, transparent);
}
.frame { position: relative; width: 100%; max-width: 1540px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* Corner marks (12px ┐ icons) */
.mark { position: absolute; width: 12px; height: 12px; color: var(--bg); pointer-events: none; }
.mark--tl { top: 32px; left: 32px; transform: rotate(-90deg); }
.mark--tr { top: 32px; right: 32px; }
.mark--bl { bottom: 32px; left: 32px; transform: rotate(180deg); }
.mark--br { bottom: 32px; right: 32px; transform: rotate(90deg); }
.btn .corner { position: absolute; top: 7px; right: 7px; width: 12px; height: 12px; transition: transform .25s var(--ease); }

/* Dotted spacer band: 104px, dotted field of 40px inside 32px padding */
.dots .frame { height: 104px; padding: 32px; }
.dots__field { height: 40px; background-image: radial-gradient(circle, rgba(161, 146, 109, 0.55) 1px, transparent 1.6px); background-size: 16px 16px; background-position: 0 4px; }
.dots--bt { border-top: 1px solid var(--line); }
.dots--white, .dots--white .outer { background: var(--paper); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover .corner { transform: translate(2px, -2px); }
.btn--hero { width: 100%; height: 66px; padding: 20px 32px; background: var(--orange); border: 1px solid var(--orange); color: var(--ink); }
.btn--hero:hover, .btn--hero:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--light); }
.btn--outline { height: 47px; border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--ink); color: var(--light); }
.btn--contact { width: 208px; }
.btn--job { width: auto; min-width: 142px; padding: 12px 26px; }  /* "Více informací" is wider than the 142 px of the design: grow instead of running under the corner glyph */
.btn--fill { height: 58px; padding: 17px 26px; background: var(--orange-2); border-radius: 2px; color: var(--ink); }
.btn--fill:hover, .btn--fill:focus-visible { background: var(--ink); color: var(--light); }
.btn--light { height: 58px; padding: 17px 26px; background: var(--light); border-radius: 2px; color: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { background: var(--ink); color: var(--light); }
.btn__glyph { transition: transform .25s var(--ease); }
.btn:hover .btn__glyph { transform: translateY(3px); }

.link-arrow { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 172px; height: 17px; border-bottom: 1px solid var(--orange); color: var(--orange-text); }
.link-arrow svg { width: 11.2px; height: 12.2px; fill: none; stroke: currentColor; stroke-width: 1; flex: none; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.link-arrow > span { transform: translateY(-1px); }
.link-arrow--footer { min-width: 0; color: var(--tan); border-bottom-color: var(--dark-3); }
.link-arrow--footer svg { color: var(--dark-3); }
.link-arrow--footer:hover { color: var(--light); }

.btn-ghost { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-text); }
.btn-ghost .mono-sm { transition: transform .3s var(--ease); }
.btn-ghost:hover .mono-sm { transform: translateX(4px); }
/* Touch: invisible hit areas (at least 44 px, or the full pitch in tight stacks) around small links; nothing visible changes */
@media (max-width: 1200px), (pointer: coarse) {
  .link-arrow, .btn-ghost, .crumbs a, .lang__pill, .logo, a.cs-gallery__sub, .job__title a, .facts .spec dd a, .address a, .footer__credit a, .footer__contact a, .footer__menu a { position: relative; }
  .link-arrow::after, .btn-ghost::after, .crumbs a::after, .lang__pill::after, .logo::after, a.cs-gallery__sub::after, .job__title a::after, .facts .spec dd a::after, .address a::after, .footer__credit a::after, .footer__contact a::after, .footer__menu a::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  .footer__links .link-arrow::after, .svc-links .link-arrow::after, .footer__menu a::after { height: calc(100% + 16px); }  /* 16 px gaps: meet the neighbour halfway */
  .news-empty__actions .link-arrow::after { height: calc(100% + 24px); }
  .footer__contact a::after { height: calc(100% + 4px); }
  .footer__contact a:first-child::after { height: calc(100% + 22px); transform: translate(-50%, calc(-50% - 9px)); }  /* phone: grows up into the space under the logo */
  .footer__contact a:nth-child(2)::after { height: calc(100% + 22px); transform: translate(-50%, calc(-50% + 9px)); }  /* e-mail: grows down over the address line */
}

/* --------------------------------------------------------------------------
   Header (67px incl. 1px rule)
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--neutral-200); }
.header__row { display: flex; justify-content: space-between; align-items: center; height: 66px; padding: 0 32px; }
.logo { display: inline-flex; color: var(--ink); }
.logo svg { width: 161px; height: 35px; }
.site-nav ul { display: flex; height: 66px; }
.site-nav li { display: flex; }
.site-nav li + li::before { content: ""; width: 1px; background: var(--line); }
.site-nav a { display: flex; align-items: center; gap: 10px; padding: 0 24px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; font: 400 16px/21px var(--font-mono); letter-spacing: -0.03em; text-transform: uppercase; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--orange); background: rgba(29, 25, 24, 0.03); }
.site-nav .n { color: var(--tan-dim); }
.lang__pill { cursor: pointer; text-decoration: none; }
.link-arrow[aria-disabled="true"] { cursor: default; opacity: .7; }
.header__tools { display: flex; align-items: center; gap: 28px; }
/* Language switch: oval vehicle-registration stickers */
.lang { display: flex; align-items: center; gap: 6px; height: 47px; }
.lang__pill {
  display: grid; place-items: center; width: 50px; height: 32px; box-sizing: border-box;
  border: 2px solid var(--tan-light); border-radius: 50%;
  color: var(--tan-dim); font: 900 15px/1 var(--font-c); letter-spacing: -0.01em; text-transform: uppercase;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.lang__pill.is-active { border-color: var(--ink); color: var(--ink); }
.lang__pill:hover, .lang__pill:focus-visible { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.lang__pill.is-active:hover { background: var(--ink); border-color: var(--ink); color: var(--light); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (951px = 80 + 791 + 80)
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--light); overflow: hidden; --line: var(--hero-line);
  /* header + hero = one full viewport (svh: without the mobile browser bars); taller only if the content needs it */
  display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); animation: hero-zoom 16s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }  /* visible from the first frame (no opacity), only scale moves: LCP is not delayed */
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 25, 24, 0.72) 0%, rgba(29, 25, 24, 0.58) 45%, rgba(29, 25, 24, 0.52) 100%); }
.hero__strip { position: relative; height: 80px; }
.hero__strip--top { border-bottom: 1px solid var(--hero-line); }
.hero__strip--bottom { border-top: 1px solid var(--hero-line); border-bottom: 1px solid var(--hero-line); }
.hero__strip .frame { height: 100%; }
.hero__main { position: relative; display: grid; }
.hero__main > .outer { display: grid; }  /* lets .hero__grid stretch to the hero's full height */
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }  /* floor for the circles; the hero itself fills the viewport */
.hero__content { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; }
.hero__label { margin-bottom: 24px; }
.hero__title { max-width: 663px; margin-bottom: 64px; text-transform: uppercase; }
.hero__text { max-width: 536px; }
.hero__cta { margin-top: auto; }
.hero__content > .btn { margin-top: auto; }
.hero__visual { position: relative; border-left: 1px solid var(--hero-line); }
.hero-circles { position: absolute; left: 50px; top: 193px; width: 533px; height: 533px; color: var(--light); pointer-events: none; }
.hero-circles .ring { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; }
.hero-badge { position: absolute; left: 554px; top: 65px; width: 167px; height: 165px; color: var(--light); }  /* designer's badge (Group 216), same centre as the previous 158 px one */
.hero-badge__svg { width: 100%; height: 100%; overflow: visible; }

/* Meta strip (121px) */
.meta .frame { border-bottom: 1px solid var(--line); }
.meta__row { display: flex; justify-content: flex-end; align-items: center; height: 120px; padding: 32px; }
.ticket { display: flex; align-items: center; height: 56px; padding: 0 56px 0 10px; border: 1px dashed var(--ink); border-radius: 999px; font: 400 11.5px/12.7px var(--font-mono); letter-spacing: -0.04em; text-transform: uppercase; }
.ticket__globe { width: 38.5px; height: 38.5px; margin-right: 26px; }
.ticket__col--a { margin-right: 83px; }
.ticket__flag { width: 21.3px; height: 20.1px; margin-right: 11px; }

/* --------------------------------------------------------------------------
   Services (2 rows × 333px)
   -------------------------------------------------------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }  /* minmax(0, …): the 326 px service text must not widen a column past the frame (1201–1320 px) */
.service { display: flex; flex-direction: column; gap: 104px; min-height: 332px; padding: 32px; background: var(--paper); border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.service:nth-child(3n+2) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; height: 48px; }
.service__icon { overflow: visible; width: 52px; height: 52px; margin: -2px; color: var(--orange); transition: transform .4s var(--ease); }  /* inline paths with a 2 px margin around the 48 px artwork: the cable and antenna icons draw past their box and sprite symbols clip it in Safari */
.service__num { color: var(--orange-text); transition: color .3s; }
.service__body { display: flex; flex-direction: column; gap: 20px; }
.service__title { max-width: 795px; }
.service__text { width: 326px; max-width: 100%; }
.service:hover { background: #FDFDFC; }
.service:hover .service__icon { transform: translateY(-4px); }
.service:hover .service__num { color: var(--ink); }

/* --------------------------------------------------------------------------
   About (594px)
   -------------------------------------------------------------------------- */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 593px; }
.about__media { position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover img { transform: scale(1.03); }
.about__body { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 32px; }
.about__title { max-width: 712px; margin-right: -8px; }
.about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about__copy .p-lg { color: var(--ink-soft); max-width: 704px; }

/* --------------------------------------------------------------------------
   Case study (dark)
   -------------------------------------------------------------------------- */
.cs { background: var(--ink); color: var(--light); --line: var(--line-dark); --outer-bg: var(--dark-2); }
.cs, .site-footer, .sec--dark, .refnav, .band { --tan-dim: var(--tan-dim-dark); --orange-text: var(--orange); }  /* text tokens on ink */
.cs__head { border-top: 1px solid var(--line-dark); }
.cs__headframe { padding: 40px 0; border-bottom: 1px solid var(--line-dark); background: var(--ink); }
.cs__headrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 0 32px; }
.cs__heading { display: flex; flex-direction: column; gap: 8px; max-width: 725px; }
.cs__label { color: var(--orange); }
.cs__live { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }  /* announces the shown reference (js/main.js) */
.cs__meta { width: 420px; flex: none; }
.cs__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 20px; padding: 2px 8px; background: var(--orange); color: var(--ink); white-space: nowrap; }
.cs__rows { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; color: var(--tan); }
.cs__row { display: flex; align-items: flex-start; gap: 4px; line-height: 15px; }
.cs__row .leader { flex: 1; overflow: hidden; white-space: nowrap; }
.cs__row span:last-child { white-space: nowrap; }

.cs-gallery { position: relative; height: 640px; overflow: hidden; background: var(--ink); }
.cs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.cs-slide.is-active { opacity: 1; }
.cs-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cs [data-cs], .cs-gallery__caption { transition: opacity .3s var(--ease); }
.cs__row, .cs__bar { transition: opacity .3s var(--ease); }
.cs.is-switching [data-cs], .cs.is-switching .cs-gallery__caption, .cs.is-switching .cs__row, .cs.is-switching .cs__bar { opacity: 0; }
.cs-slide.is-active img { animation: kenburns 16s var(--ease) forwards; }
.cs-gallery__ui { position: absolute; inset: 0; pointer-events: none; color: var(--light); --edge: max(24px, calc(50% - 820px)); }
.cmark { position: absolute; width: 20px; height: 20px; border-color: var(--orange); border-style: solid; border-width: 0; }
.cmark--tl { top: 24px; left: var(--edge); border-top-width: 1.5px; border-left-width: 1.5px; }
.cmark--tr { top: 24px; right: var(--edge); border-top-width: 1.5px; border-right-width: 1.5px; }
.cmark--bl { bottom: 24px; left: var(--edge); border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cmark--br { bottom: 24px; right: var(--edge); border-bottom-width: 1.5px; border-right-width: 1.5px; }
.cs-gallery__tag { position: absolute; top: 52px; padding: 3px 6px; background: rgba(29, 25, 24, 0.72); }  /* chip: light text stays readable over bright skies */
.cs-gallery__tag--l { left: calc(var(--edge) + 32px); }
.cs-gallery__tag--r { right: calc(var(--edge) + 18px); }
.cs-gallery__caption { position: absolute; left: calc(var(--edge) + 32px); bottom: 65px; display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; background: var(--ink); }
.cs-gallery__sub { color: var(--tan-dim); }
.cs-gallery__nav { position: absolute; right: calc(var(--edge) + 18px); bottom: 59px; display: flex; gap: 8px; pointer-events: auto; }
.cs-gallery__nav button { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(29, 25, 24, 0.72); border: 1px solid var(--dark-3); border-radius: 2px; color: var(--light); transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.cs-gallery__nav button:hover { background: var(--ink); border-color: var(--tan); transform: translateY(-2px); }
.cs-gallery__nav svg { width: 11px; height: 19px; }

.cs__details { background: var(--ink); }
.cs__detailgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; min-height: 383px; background: var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.cs__story, .cs__specs { background: var(--ink); }
.cs__story { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; }
.cs__story .t-h3 { max-width: 704px; }
.cs__story .p-md { color: var(--tan); max-width: 704px; margin-right: -8px; }
.chip-status { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 6px 12px 6px 10px; border: 1px solid var(--dark-3); border-radius: 2px; color: var(--tan); }
.chip-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.6); animation: pulse-dot 2.4s ease-out infinite; }
.cs__specs { padding: 32px; }
.spec { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; height: 53px; padding: 14px 0; }
.spec::before, .spec::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--hair); transform-origin: left; }
.spec::before { top: 0; }
.spec::after { bottom: 0; display: none; }
.spec:last-child::after { display: block; }
.spec dt { color: var(--tan-dim); }
.spec dd { text-align: right; }

.cs-id .frame { border-bottom: 1px solid var(--line); }
.cs-id__row { display: flex; justify-content: flex-end; align-items: center; height: 85px; padding: 32px; }
.idtag { position: relative; display: inline-flex; align-items: stretch; height: 21px; color: var(--dark-2); border: 1px solid var(--dark-2); font: 400 10.86px/1 var(--font-mono); text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); }
.idtag::before { content: ""; position: absolute; top: -5px; right: -5px; width: 10px; height: 10px; border-left: 1px solid var(--dark-2); transform: rotate(45deg); }
.idtag__icon { display: grid; place-items: center; width: 21px; border-right: 1px solid var(--dark-2); }
.idtag__icon svg { width: 10px; height: 10px; }
.idtag__text { display: flex; align-items: center; padding: 0 118px 0 7px; }
.idtag__sq { position: absolute; right: 6px; bottom: 5px; width: 3px; height: 3px; background: var(--dark-2); }

/* --------------------------------------------------------------------------
   Qualifications
   -------------------------------------------------------------------------- */
.qual__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; min-height: 261px; padding: 40px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qual__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.qual__label { color: var(--orange-text); }
.qual__text { color: var(--tan-text); max-width: 434px; }
.qual__cardframe { background: var(--paper); }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px; border-bottom: 1px solid var(--line); }
.cert { display: flex; flex-direction: column; gap: 10px; min-height: 110px; padding: 22px; border-radius: 2px; transition: background-color .3s var(--ease); }
.cert:hover { background: #F7F6F2; }
.cert__top { display: flex; justify-content: space-between; align-items: center; height: 28px; }
.cert__badge { color: var(--orange-text); }
.cert__badge--muted { color: var(--ink-soft); }
.cert__desc { color: var(--tan-dim); }

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */
.partners__label { display: grid; place-items: center; height: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.partners__label h2 { padding: 4px 16px; font-weight: 400; }
.logos-frame { border-bottom: 1px solid var(--line); }
.logos-wrap { display: grid; gap: 1px; background: var(--line); }
.logos { display: grid; gap: 1px; }
.logos--3 { grid-template-columns: repeat(3, 1fr); }
.logos--6 { grid-template-columns: repeat(6, 1fr); }
.logo-cell { display: grid; place-items: center; height: 211px; background: var(--bg); color: var(--ink); transition: background-color .3s var(--ease); }
.logo-cell:hover { background: var(--paper); }
.partner { font: 900 26px/1.1 var(--font-c); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; padding: 0 16px; transition: transform .4s var(--ease), color .3s; }
.partner--sm { font-size: 17px; }
.logo-cell:hover .partner { transform: scale(1.04); color: var(--orange); }

/* --------------------------------------------------------------------------
   Careers (white)
   -------------------------------------------------------------------------- */
.careers, .careers .outer { background: var(--paper); }
.careers__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1px; min-height: 514px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.careers__intro, .jobs { background: var(--paper); }
.careers__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px; }
.careers__text { color: var(--ink-soft); max-width: 705px; margin-right: -8px; }
.jobs__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 83px; padding: 32px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.jobs__head .link-arrow { min-width: 0; }
.jobs__foot { display: flex; align-items: center; justify-content: flex-end; height: 83px; padding: 0 32px; border-top: 1px solid var(--line); }
.jobs__foot .link-arrow { min-width: 0; }
.news-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
/* News feed: Facebook posts fetched at build time (build/facebook_posts.json); without them a static block links to Facebook */
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; }
.news-head .link-arrow { margin-bottom: 6px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 32px 40px; }
.news-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.news-card__media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.news-card__media a { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; }
.news-card__media--1 a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.news-card__media--3 a:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.news-card__media a:nth-child(n + 5) { display: none; }
.news-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card__media a:hover img { transform: scale(1.04); }
.news-card__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(29, 25, 24, 0.55); color: var(--light); font: 900 28px/1 var(--font-c); letter-spacing: -0.02em; }
.news-card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 20px 24px 24px; }
.news-card__date { color: var(--tan-dim); }
.news-card__text { color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.news-card__text a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 2px; }
.news-card .link-arrow { margin-top: auto; }
@media (max-width: 1200px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .news-grid { padding: 0 24px 32px; gap: 16px; } }
@media (max-width: 599px) { .news-grid { grid-template-columns: 1fr; } }  /* tablet portrait (600–768) keeps two columns */
@media (max-width: 480px) { .news-grid { padding: 0 20px 28px; } }
.job__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.job__title a:hover { color: var(--orange); }
.job { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 32px; border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.job:last-child { border-bottom: 0; }
.job:hover { background: #FBFAF8; }
.job__main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 306px; }
.job__title { display: block; max-width: 239px; }
.job__title .n { margin-right: 12px; color: var(--tan-dim); }  /* careers page position numbers (4.6:1) */
.job-full .job, .job-full .job__main, .job-full .job__side, .job-full .job__meta { display: flex; }
.job-full .job__main { flex-direction: column; }
.chip { display: inline-block; padding: 2px 8px; background: var(--line); color: var(--chip-ink); }
.job__side { display: flex; align-items: flex-start; gap: 16px; flex: 1; min-width: 320px; }
.job__meta { display: flex; gap: 16px; flex: 1; color: var(--tan-text); }
.job__meta svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tan); }
.job .btn { flex: none; }

/* --------------------------------------------------------------------------
   CTA (602px, orange)
   -------------------------------------------------------------------------- */
.cta { position: relative; background: var(--orange); color: var(--ink); --line: #DBD5CA; }
.cta .outer { background: var(--orange); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1.5px); background-size: 16px 16px; opacity: 0.9; animation: drift 40s linear infinite; pointer-events: none; }
.cta .outer, .cta .frame { position: relative; }
.cta__frame { min-height: 602px; padding: 90px 0 0; }
.cta__inner { position: relative; width: 828px; max-width: 100%; min-height: 382px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; align-items: center; gap: 60px; text-align: center; }
.cta__inner .mark { color: #F4F4F2; }
.cta__inner .mark--tl, .cta__inner .mark--tr { top: 0; }
.cta__inner .mark--bl, .cta__inner .mark--br { top: 370px; bottom: auto; }
.cta__inner .mark--tl, .cta__inner .mark--bl { left: 0; }
.cta__inner .mark--tr, .cta__inner .mark--br { right: 0; }
.cta__top { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.cta__mark { width: 113px; height: auto; filter: drop-shadow(-116px 28px 48px rgba(0, 0, 0, 0.02)) drop-shadow(-65px 16px 40px rgba(0, 0, 0, 0.05)) drop-shadow(-29px 7px 30px rgba(0, 0, 0, 0.09)) drop-shadow(-7px 2px 17px rgba(0, 0, 0, 0.1)); animation: float 6s ease-in-out infinite; }
.cta__top .t-display { max-width: 764px; }
.cta__bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* --------------------------------------------------------------------------
   Footer (983px = 64 + 489 + 430)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--light); --line: var(--line-dark); }  /* dark edge to edge, the side bands included */
.site-footer .outer { background: var(--ink); }
.footer__strip { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.footer__strip .frame { height: 62px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 489px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 1px; padding: 32px; }
.footer__brand .logo { color: var(--light); }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 135px; }
.footer__copy { color: var(--tan-dim); }
.footer__legal { display: flex; flex-direction: column; gap: 4px; }
.footer__credit { color: var(--tan-dim); }
.footer__credit a { color: var(--tan); text-decoration: underline; text-underline-offset: 3px; }
.footer__credit a:hover, .footer__credit a:focus-visible { color: transparent; background: var(--oil-slick); -webkit-background-clip: text; background-clip: text; transition: color .25s; }  /* fades in over the gradient, snaps back on leave so the word never vanishes */  /* minimize's oil-slick gradient (mnmz.cz) */
.footer__nav { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 80px; padding: 32px; border-left: 1px solid var(--line-dark); }
.footer__nav .mark--tr { top: 24px; right: 24px; color: var(--light); }
.footer__menu { display: flex; flex-direction: column; gap: 16px; }
.footer__menu a { display: flex; gap: 20px; transition: color .25s; }
.footer__menu a:hover { color: var(--orange); }
.footer__links { display: flex; flex-direction: column; gap: 16px; }
.footer__wordmark { position: relative; height: 430px; overflow: hidden; }
.footer__wordmark .frame { height: 430px; }
.footer__wordmark-svg { position: absolute; left: 50%; top: 35px; width: 1688px; height: 368px; transform: translateX(-50%); color: var(--ink-soft); opacity: 0.4; }

/* --------------------------------------------------------------------------
   Partner logos (official SVGs, shown in ink; colour on hover)
   -------------------------------------------------------------------------- */
.logo-cell img, .logo-cell .partner-logo { width: auto; max-width: 62%; max-height: 64px; height: auto; object-fit: contain; filter: grayscale(1) brightness(0.25); opacity: 0.9; transition: filter .35s var(--ease), opacity .35s var(--ease), transform .4s var(--ease); }
.logos--6 .logo-cell img { max-width: 66%; max-height: 58px; }
.logo-cell--box img { filter: grayscale(1) contrast(1.05); opacity: 0.85; }
.logo-cell--tall img { max-height: 104px; }
@media (max-width: 1200px) { .logo-cell--tall img { max-height: 84px; } }
.logo-cell:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.logo-cell a { display: grid; place-items: center; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Subpages (o firmě, reference, kariéra, kontakt) – same shell, same tokens
   -------------------------------------------------------------------------- */
/* Page head, light (designer's subpage revision 9/2026): no vertical lines, text on the frame edge, 20px orange brackets in the outer band */
.page-head { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-head .outer { position: relative; border-color: transparent; }
.page-head .frame { border-color: transparent; }
.page-head__frame { position: relative; padding: 96px 0 90px; }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 0 32px 0 1px; }
.page-head .cs__meta { flex: none; width: 468px; padding: 20px 24px 22px; background: var(--ink); border-radius: 2px; }
.page-head .cs__row .leader { color: var(--dark-3); min-width: 24px; }
.page-head .cs__row span:first-child { flex: none; }
.page-head .cs__row span:last-child { white-space: normal; text-align: right; min-width: 0; }  /* long values (contractor consortia) wrap inside the card on phones */
.page-head__heading { display: flex; flex-direction: column; align-items: flex-start; max-width: 900px; }
.page-head__label { color: var(--orange-text); margin-bottom: 26px; }
.page-head__label + .t-h1:last-child { margin-bottom: 18px; }
.page-head__lead { color: var(--ink-soft); max-width: 600px; margin-top: 26px; }
.page-head__mark { position: absolute; left: 24px; width: 20px; height: 20px; border: 0 solid var(--orange); pointer-events: none; }
.page-head__mark--t { top: 48px; border-top-width: 1px; border-left-width: 1px; }
.page-head__mark--b { bottom: 47px; border-bottom-width: 1px; border-left-width: 1px; }
/* split: text vertically centred on the left, photo from the page centre to the right edge (About) */
.page-head--split .page-head__frame { padding: 0; }
.page-head--split .page-head__row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; min-height: 594px; padding: 0; }
.page-head--split .page-head__heading { justify-content: center; padding: 64px 32px 64px 1px; max-width: 632px; }
.page-head--split .page-head__label { margin-bottom: 64px; }
.page-head--split .page-head__lead { margin-top: 52px; }
.page-head--split .page-head__mark--b { bottom: 40px; }
.page-head__photo { position: relative; }
.page-head__photo img { position: absolute; top: 0; left: 0; width: 50vw; max-width: none; height: 100%; object-fit: cover; object-position: 56% 50%; }
/* crumb bar (Contact and detail pages): breadcrumbs left, note right, hatched with thin verticals every 18px inside the frame */
.crumbbar { height: 80px; border-bottom: 1px solid var(--line); }
.crumbbar .outer, .crumbbar .frame { border-color: transparent; }
.crumbbar .frame { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 79px; }
.crumbbar .crumbs { padding-left: 1px; }
.crumbbar__note { display: inline-flex; align-items: center; gap: 10px; color: var(--tan-dim); white-space: nowrap; }
.crumbbar__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--tan-dim); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--tan-light); }
.crumbs [aria-current] { color: var(--ink); }
.band { position: relative; height: 560px; overflow: hidden; background: var(--ink); }
.band--map { height: 520px; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.band--map.is-focused::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--orange); pointer-events: none; }  /* keyboard focus inside the map iframe (js/main.js) */
.band .cs-gallery__caption { pointer-events: auto; }
.band .cs-gallery__ui { --edge: max(24px, calc(50% - 820px)); }

.sec { border-bottom: 1px solid var(--line); }
.sec--paper, .sec--paper .outer { background: var(--paper); }
.sec__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1px; background: var(--line); }
.sec__grid--wide { grid-template-columns: 2fr 1fr; }
.sec__grid--narrow { grid-template-columns: 1fr 2fr; }
.sec__col { background: var(--bg); padding: 40px 32px 48px; }
.sec--paper .sec__col { background: var(--paper); }
.sec__col--paper { background: var(--paper); }
.sec__sticky { position: sticky; top: 91px; }
.eyebrow { display: block; color: var(--orange-text); margin-bottom: 14px; }
.sec__title { max-width: 704px; margin-bottom: 20px; }

.prose { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 704px; }
.prose > .t-h3, .prose > .t-h5 { margin-top: 12px; }
.prose > .t-h3:first-child, .prose > .t-h5:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose p strong { color: var(--ink); font-weight: 400; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--orange); }
.prose a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.prose a:hover { border-bottom-color: var(--orange); }

.facts { display: flex; flex-direction: column; }
.facts .spec { height: auto; min-height: 53px; }
.facts .spec::before, .facts .spec::after { background: var(--line); }
.facts .spec dt { color: var(--tan-dim); flex: none; }
.facts .spec dd { color: var(--ink); }
.facts .spec dd a:hover { color: var(--orange); }
.facts--dark .spec::before, .facts--dark .spec::after { background: var(--hair); }
.facts--dark .spec dd { color: var(--light); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 200px; padding: 28px 32px; background: var(--paper); transition: background-color .3s var(--ease); }
.stat:hover { background: #FDFDFC; }
.stat__num { font: 900 64px/58px var(--font-c); letter-spacing: -0.03em; color: var(--ink); }
.stat__num small { font-size: 28px; letter-spacing: -0.02em; margin-left: 6px; }
.stat__label { color: var(--tan-dim); max-width: 260px; }
.stat__label b { display: block; font-weight: 400; color: var(--ink); margin-bottom: 4px; }

.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.lists--1 { grid-template-columns: 1fr; }
.lists--2 { grid-template-columns: 1fr 1fr; }
.lists__col { background: var(--bg); padding: 28px 32px 36px; }
.lists__col .prose { gap: 12px; }
.lists__head { color: var(--tan-dim); margin-bottom: 18px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); }  /* rules drawn by the items, so an incomplete last row leaves no tan blocks */
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 8px 12px; background: var(--ink); color: var(--light); opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery__item .cs-gallery__tag { top: 16px; right: 16px; left: auto; color: var(--light); }

.lb { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 48px; background: rgba(29, 25, 24, 0.94); color: var(--light); }
.lb.is-open { display: flex; }
/* ---- Contact map: click-to-load placeholder (Google Maps sets cookies, so js/main.js inserts the iframe only after "Zobrazit mapu" / "Show map") ---- */
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 24px 96px; text-align: center; background-color: var(--ink); background-image: linear-gradient(rgba(237, 235, 229, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 235, 229, 0.06) 1px, transparent 1px); background-size: 48px 48px; background-position: center; }
.map-ph__btn { cursor: pointer; }
.map-ph__btn:hover, .map-ph__btn:focus-visible { background: var(--orange-2); color: var(--ink); }
.map-ph__note { max-width: 320px; color: var(--tan-light); }
html:not(.js) .map-ph > * { display: none; }  /* without JS the "Otevřít v mapách" link in the caption still works */
@media (max-width: 768px) { .map-ph { padding-bottom: 84px; } }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lb__cap { position: absolute; left: 48px; bottom: 32px; right: 200px; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(29, 25, 24, 0.72); border: 1px solid var(--dark-3); border-radius: 2px; color: var(--light); transition: border-color .25s, transform .25s var(--ease); }
.lb__btn:hover { border-color: var(--tan); transform: translateY(-2px); }
.lb__btn svg { width: 11px; height: 19px; }
.lb__btn[hidden] { display: none; }
.lb__close { top: 24px; right: 24px; font: 400 14px/1 var(--font-mono); text-transform: uppercase; width: auto; padding: 0 16px; }
.lb__prev { right: 88px; bottom: 24px; }
.lb__next { right: 24px; bottom: 24px; }
body.lb-open { overflow: hidden; }

.refnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); }
.refnav a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 240px; padding: 32px; background: var(--ink); color: var(--light); overflow: hidden; transition: background-color .3s var(--ease); }
.refnav a:hover { background: var(--dark-2); }
.refnav__dir { color: var(--tan-dim); }
.refnav__title { max-width: 560px; transition: transform .4s var(--ease); }
.refnav a:hover .refnav__title { transform: translateX(6px); }
.refnav__meta { color: var(--tan); }
.refnav a:last-child { text-align: right; align-items: flex-end; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.person { display: flex; flex-direction: column; gap: 14px; min-height: 220px; padding: 28px 32px 32px; background: var(--paper); transition: background-color .3s var(--ease); }
.person:hover { background: #FDFDFC; }
.person__role { color: var(--orange-text); }
.person__name { margin-top: 4px; }
.person__links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; color: var(--ink-soft); }
.person__links a:hover { color: var(--orange); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form label { color: var(--tan-dim); }
.form input, .form textarea { width: 100%; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-field); border-radius: 2px; color: var(--ink); font: 400 16px/24px var(--font-a); letter-spacing: 0; transition: border-color .2s; }
.form input:not([type="checkbox"]):focus, .form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.form textarea { min-height: 160px; resize: vertical; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.form__note { color: var(--tan-dim); max-width: 420px; }
.form__hp { position: absolute; left: -9999px; }

.job-full { border-bottom: 1px solid var(--line); background: var(--paper); }
.job-full summary { list-style: none; cursor: pointer; }
.job-full summary::-webkit-details-marker { display: none; }
.job-full .job { border-bottom: 0; }
.job-full .job__toggle { display: inline-flex; align-items: center; justify-content: center; width: 47px; height: 47px; border: 1px solid var(--ink); color: var(--ink); transition: background-color .25s, color .25s, transform .3s var(--ease); flex: none; }
.job__toggle::before { content: "+"; font: 400 22px/1 var(--font-mono); }
.job-full[open] .job__toggle { background: var(--ink); color: var(--light); }
.job-full[open] .job__toggle::before { content: "–"; }
.job-full__body { padding: 8px 32px 40px; }
.job-full__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.job-full__grid .lists__head { margin-bottom: 14px; }
.job-full__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.service__link { align-self: flex-start; }
.svc-links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }

.address { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }
.address b { font-weight: 400; color: var(--tan-dim); }
.address a:hover { color: var(--orange); }
.address .t-h5 { white-space: nowrap; }

/* Reference overview cards */
.refgrid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.refcard { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.refcard:nth-child(3n) { border-right: 0; }
.refcard:hover { background: #FDFDFC; }
.refcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.refcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.refcard:hover .refcard__media img { transform: scale(1.04); }
.refcard__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 28px; }
.refcard__road { color: var(--orange-text); }
.refcard__meta { color: var(--tan-dim); margin-top: auto; }
.refcard__link { align-self: flex-start; margin-top: 8px; }

@media (max-width: 1200px) {
  .page-head__frame { padding: 64px 0 64px; }
  .page-head__row { flex-direction: column; align-items: flex-start; gap: 32px; padding: 0 24px; }
  .page-head .cs__meta { width: 100%; max-width: 468px; }
  .page-head__mark { left: 16px; }
  .page-head--split .page-head__row { grid-template-columns: 1fr; min-height: 0; }
  .page-head--split .page-head__heading { padding: 64px 24px 56px; max-width: none; }
  .page-head--split .page-head__label { margin-bottom: 32px; }
  .page-head--split .page-head__lead { margin-top: 28px; }
  .page-head__photo { min-height: 300px; }
  .page-head__photo img { position: absolute; width: 100%; }
  .crumbbar { height: 64px; }
  .crumbbar .frame { height: 63px; padding: 0 24px; }
  .crumbbar__note { display: none; }
  .band { height: 420px; }
  .sec__grid, .sec__grid--wide, .sec__grid--narrow { grid-template-columns: 1fr; row-gap: 1px; }
  .sec__col { padding: 32px 24px 40px; }
  .sec__sticky { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .lists { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .job-full__grid { grid-template-columns: 1fr; gap: 24px; }
  .job-full__body { padding: 0 24px 32px; }
  .refnav { grid-template-columns: 1fr; }
  .refgrid { grid-template-columns: 1fr 1fr; }
  .refcard:nth-child(3n) { border-right: 1px solid var(--line); }
  .refcard:nth-child(2n) { border-right: 0; }
  .refnav a:last-child { text-align: left; align-items: flex-start; }
}
@media (max-width: 768px) {
  .page-head__frame { padding: 56px 0 56px; }
  .page-head__row { padding: 0 20px; }
  .page-head__mark { display: none; }
  .page-head--split .page-head__heading { padding: 56px 20px 48px; }
  .br-d { display: none; }
  .crumbbar .frame { padding: 0 20px; }
  .band, .band--map { height: 300px; }
  .sec__col { padding: 28px 20px 32px; }
  .address:has(> .t-h5) { grid-column: 1 / -1; }  /* contact page: phone and e-mail get the full row, on one line */
  .address .t-h5 { font-size: min(24px, 7vw); }
  .stat { min-height: 0; padding: 20px; gap: 16px; }
  .stat__num { font-size: 44px; line-height: 42px; }
  .lists__col { padding: 20px; }
  .person { min-height: 0; padding: 20px; }
  .form { grid-template-columns: 1fr; }
  .lb { padding: 16px; }
  .lb__cap { left: 16px; right: 16px; bottom: 80px; }
  .lb__prev { right: 80px; bottom: 16px; }
  .lb__next { right: 16px; bottom: 16px; }
  .lb__close { top: 16px; right: 16px; }
  .job-full__body { padding: 0 20px 28px; }
  .refnav a { min-height: 0; padding: 24px 20px; }
  .cs__tabs-all { margin-left: 0; }
}
@media (max-width: 599px) {  /* phones: one column; tablet portrait (600–768) keeps the two columns of the ≤1200 layout */
  .stats, .gallery, .people, .refgrid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .refcard, .refcard:nth-child(3n) { border-right: 0; }
}

.chip-status--light { border-color: var(--line); color: var(--ink-soft); }
.gallery--docs { grid-template-columns: 1fr 1fr; }
.gallery--docs4 { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.certs--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .gallery--docs4, .certs--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .gallery--docs4, .certs--4 { grid-template-columns: 1fr; } }
.gallery--docs .gallery__item { aspect-ratio: 1 / 1.414; background: var(--bg); }
.gallery--docs .gallery__item img { object-fit: contain; object-position: center top; }
.stats--values .stat { gap: 16px; justify-content: flex-start; }
.stats--values .stat__label { max-width: none; }
.sec--dark, .sec--dark .outer { background: var(--ink); --line: var(--line-dark); }
.sec--dark .frame { border-color: var(--line-dark); }
.sec--dark.sec { border-bottom-color: var(--line-dark); }
.subpage .cs-id .frame { border-top: 0; }
.subpage .cs-id__row { justify-content: space-between; }
.subpage .cta { border-top: 1px solid var(--line); }
.form__ok:not([hidden]) { display: block; }

/* Reference tabs under the case-study head */
.cs__tabsrow { border-bottom: 1px solid var(--line-dark); }
.cs__tabs { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; background: var(--ink); }
.cs__tabs::-webkit-scrollbar { display: none; }
.cs__tab { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-right: 1px solid var(--line-dark); color: var(--tan); font: 400 13px/1 var(--font-mono); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; transition: color .2s, background-color .2s; }
.cs__tab .n { color: var(--tan-dim); }
.cs__tab:hover { color: var(--light); background: var(--dark-2); }
.cs__tab.is-active { color: var(--ink); background: var(--orange); }
.cs__tab.is-active .n { color: var(--ink); }
.cs__tabs-all { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; color: var(--orange); font: 400 13px/1 var(--font-mono); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; border-left: 1px solid var(--line-dark); }
.cs__tabs-all:hover { background: var(--dark-2); }

/* Certificates open in the lightbox */
.cert--link { display: flex; flex-direction: column; gap: 10px; flex: 1; color: inherit; cursor: zoom-in; }
.cert--link:hover .cert__badge { color: var(--ink); }

/* Map is loaded on request (Google cookies) */

/* Mobile-only nav items and footer contact */
.site-nav .nav-mobile { display: none; }
.footer__contact { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; color: var(--tan); overflow-wrap: anywhere; }
.footer__contact a:hover { color: var(--light); }
.footer__contact span { color: var(--tan-dim); }
.form select { width: 100%; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-field); border-radius: 2px; color: var(--ink); font: 400 16px/24px var(--font-a); letter-spacing: 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form select:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.form select:invalid { color: var(--tan-dim); }
.form input[type="file"] { padding: 10px 16px; cursor: pointer; }
.form input[type="file"]::file-selector-button { margin-right: 14px; padding: 7px 12px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font: 400 13px/1 var(--font-mono); letter-spacing: -0.02em; text-transform: uppercase; cursor: pointer; transition: background-color .25s, color .25s; }
.form input[type="file"]:hover::file-selector-button { background: var(--ink); color: var(--light); }
.form__hint { color: var(--tan-dim); }
.form__consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.form input[type="checkbox"] { flex: none; display: grid; place-content: center; width: 24px; height: 24px; margin: 0; padding: 0; -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.form input[type="checkbox"]::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform .15s var(--ease); }
.form input[type="checkbox"]:hover { border-color: var(--ink); }
.form input[type="checkbox"]:checked { background: var(--orange); border-color: var(--orange); }  /* orange + ink tick, as the cookie switches */
.form input[type="checkbox"]:checked::before { transform: translateY(-2px) rotate(-45deg) scale(1); }
.form__req { grid-column: 1 / -1; color: var(--tan-dim); }
.form__star { color: var(--orange-text); }
.form__ok:focus { outline: 0; }  /* focused by js/main.js after the redirect so screen readers read it; not a control */
.form__consent a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 2px; }
.prose--legal { max-width: 760px; overflow-wrap: anywhere; }  /* long URLs written out in the text */
.prose--legal h2 { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes drift { to { background-position: 16px 16px; } }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 6px rgba(255, 200, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0); } }
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }  /* slow settle of the hero photo, 16 s */

/* page-load sequence (only when JS is present; fonts-ready adds .is-loaded) */
.js .hero__content > * { opacity: 0; transform: translateY(18px); }
.js.is-loaded .hero__content > * { animation: rise .9s var(--ease) forwards; }
.js.is-loaded .hero__label { animation-delay: .1s; }
.js.is-loaded .hero__title { animation-delay: .22s; }
.js.is-loaded .hero__text { animation-delay: .36s; }
.js.is-loaded .hero__content > .btn { animation-delay: .5s; }
.hero-circles .ring { animation: ring-blink 7s ease-in-out infinite; }
.js .hero-circles .ring { stroke-dasharray: 1.03 1.03; stroke-dashoffset: 1.03; animation: none; }
.js.is-loaded .hero-circles .ring { animation: draw 1.6s var(--ease) forwards, ring-blink 7s ease-in-out infinite; animation-delay: calc(.35s + var(--i, 0) * .12s), 2.6s; }
.js .hero-badge { opacity: 0; transition: opacity 1s var(--ease) .6s; }
.js.is-loaded .hero-badge { opacity: 1; }
.js .hero__visual { --grow: 0; }
.js .hero__visual::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 100%; background: var(--ink); transform-origin: bottom; transition: transform 1.2s var(--ease) .2s; }
.js.is-loaded .hero__visual::before { transform: scaleY(0); }

/* scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .cs__specs .spec::before, .js .cs__specs .spec::after { transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(.2s + var(--i, 0) * 90ms); }
.js .cs__specs.is-visible .spec::before, .js .cs__specs.is-visible .spec::after { transform: scaleX(1); }
.js .footer__wordmark[data-reveal] { opacity: 1; transform: none; }  /* the wrapper only triggers the reveal: it never moves, so it always enters the viewport at the end of the page (phones too) */
.js .footer__wordmark-svg { opacity: 0; transform: translate(-50%, 60px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .footer__wordmark.is-visible .footer__wordmark-svg { opacity: 0.4; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero__content > *, .js .hero-badge, .js .footer__wordmark-svg { opacity: 1; transform: none; }
  .hero-circles .ring { opacity: 1; }
  .js .footer__wordmark-svg { opacity: 0.4; transform: translateX(-50%); }
  .js .hero-circles .ring { stroke-dashoffset: 0; }
  .js .cs__specs .spec::before, .js .cs__specs .spec::after { transform: none; }
  .js .hero__visual::before { display: none; }
  .hero__bg img { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-height: 900px) and (min-width: 1201px) {
  .hero__strip { height: 40px; }
  .hero-circles { top: 90px; width: 440px; height: 440px; }
  .hero-badge { top: 32px; }
  .hero__grid { min-height: 520px; }  /* 1366×768 / 1280×720 laptops: header + hero still fit one screen */
}
@media (max-width: 1500px) {
  .hero-circles { left: 20px; top: 150px; width: 440px; height: 440px; }
  .hero-badge { left: auto; right: 24px; top: 48px; width: 132px; height: 130px; }
}
@media (max-width: 1400px) {
  .site-nav a { padding: 0 16px; }
  .t-h1 { font-size: 56px; line-height: 58px; }
  .t-display { font-size: 80px; line-height: 83px; }
  .cta__inner { width: 720px; }
  .footer__wordmark { height: auto; padding-bottom: 24px; background: var(--ink); }
  .footer__wordmark .frame { height: auto; }
  .footer__wordmark-svg { position: relative; left: 0; top: 0; width: 100%; height: auto; transform: none; margin-top: 32px; }
  .js .footer__wordmark-svg { transform: translateY(40px); }
  .js .footer__wordmark.is-visible .footer__wordmark-svg { transform: none; }
}
@media (max-width: 1320px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--bg); border-bottom: 1px solid var(--tan); }
  .site-header.is-open .site-nav { display: block; }
  .site-nav::after { content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); top: calc(100% + 1px); height: 100vh; background: rgba(29, 25, 24, 0.5); cursor: pointer; }  /* dims the page under the open menu; a tap on it closes the menu (js/main.js) and never reaches the page */
  .site-nav ul { flex-direction: column; height: auto; max-height: calc(100vh - 67px); max-height: calc(100dvh - 67px); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav li + li::before { display: none; }
  .site-nav a { flex: 1; height: 56px; padding: 0 24px; border-top: 1px solid var(--line); border-bottom: 0; }  /* full-width rows, full-length rules */
  .nav-toggle { display: flex; }
  .btn--contact { display: none; }
  .header__tools { gap: 12px; }
  .site-nav .nav-mobile { display: flex; }
  .site-nav .nav-mobile a { color: var(--orange-text); }
  .site-nav .nav-mobile--tel a { color: var(--ink); }
}
@media (max-width: 1280px) { .page-head .t-h1 .br-d { display: none; } }  /* next to the meta card the forced title break would make three lines */
@media (min-width: 1201px) and (max-width: 1240px) { .hero__title { margin-right: -16px; } }  /* "vrstva dopravy" needs 476 px: borrow half the right padding instead of a third line */
@media (max-width: 1200px) {
  .outer { width: 100%; padding: 0; border: 0; }
  .frame { border: 0; max-width: none; }
  .header__row { padding: 0 16px 0 24px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 24px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(29, 25, 24, 0.4) 0%, rgba(29, 25, 24, 0.3) 25%, rgba(29, 25, 24, 0) 50%), linear-gradient(90deg, rgba(29, 25, 24, 0.72) 0%, rgba(29, 25, 24, 0.58) 45%, rgba(29, 25, 24, 0.52) 100%); }  /* one column: the eyebrow spans the light right half of the photo, darken the top (4.5:1) */
  .hero__visual { position: absolute; inset: 80px 0 80px 0; border: 0; pointer-events: none; }
  .hero-circles { display: none; }
  .hero-badge { right: 24px; top: 24px; width: 121px; height: 120px; }
  .meta__row { justify-content: flex-start; height: auto; padding: 24px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { gap: 64px; min-height: 0; }
  .service:nth-child(3n+2) { border-left: 0; border-right: 0; }
  .service:nth-child(2n+1) { border-right: 1px solid var(--line); }
  .dots .frame { padding: 24px; height: 88px; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { min-height: 460px; border-right: 0; border-bottom: 2px solid var(--tan); }
  .about__body { padding: 40px 24px; }
  .t-h2 { font-size: 40px; line-height: 42px; }
  .cs__headrow { flex-direction: column; padding: 0 24px; }
  .cs__meta { width: 100%; max-width: 420px; }
  .cs-gallery { height: 480px; }
  .cs__detailgrid { grid-template-columns: 1fr; row-gap: 2px; }
  .cs__story { padding: 32px 24px; }
  .cs__specs { padding: 12px 24px 24px; }
  .t-h3 { font-size: 34px; line-height: 36px; }
  .cs-id__row { padding: 24px; height: auto; }
  .qual__head { flex-direction: column; padding: 32px 24px; }
  .certs { grid-template-columns: 1fr 1fr; padding: 24px; }
  .logos--6 { grid-template-columns: repeat(3, 1fr); }
  .logo-cell { height: 160px; }
  .careers__grid { grid-template-columns: 1fr; row-gap: 1px; }
  .careers__intro { padding: 32px 24px 40px; }
  .jobs__head, .jobs__foot { padding: 0 24px; height: 64px; }
  .job { padding: 24px; }
  .cta__frame { padding-top: 64px; }
  .cta__inner .mark { display: none; }
  .footer__grid { min-height: 0; }
  .footer__brand { padding: 32px 24px; min-height: 260px; }
  .footer__nav { padding: 32px 24px; gap: 40px; }
  .footer__bottom { flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 768px) {
  .header__row { height: 60px; padding: 0 8px 0 20px; }
  .logo svg { width: 128px; height: 28px; }
  .lang { height: 42px; }
  .lang__pill { width: 44px; height: 28px; font-size: 13px; }
  [id] { scroll-margin-top: 61px; }
  :root { --header-h: 61px; }
  .site-nav { top: 60px; }
  .site-nav ul { max-height: calc(100vh - 61px); max-height: calc(100dvh - 61px); }
  .hero__strip { height: 40px; }
  .hero__content { min-height: 0; padding: 40px 20px 40px; }
  .t-h1 { font-size: 42px; line-height: 44px; }
  .hero__title { margin-bottom: 40px; }
  .hero__text { margin-bottom: 56px; font-size: 18px; line-height: 27px; }
  .btn--hero { height: 60px; font-size: 16px; }
  .hero-badge { display: none; }
  .hero__visual { display: none; }
  .meta__row { padding: 20px; }
  .ticket { flex-wrap: wrap; height: auto; padding: 14px 16px; gap: 12px; border-radius: 16px; }
  .ticket__globe, .ticket__col--a, .ticket__flag { margin-right: 0; }
  .ticket__col--a { margin-right: 16px; }
  .service { padding: 24px 20px; gap: 40px; }
  .about__media { min-height: 300px; }
  .about__body { padding: 32px 20px; }
  .t-h2 { font-size: 32px; line-height: 34px; }
  .p-lg { font-size: 17px; line-height: 27px; }
  .cs__headframe { padding: 28px 0; }
  .cs__headrow { padding: 0 20px; }
  .cs__bar { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 8px; white-space: normal; }
  .cs-gallery { height: 320px; }
  .cs-gallery__tag, .cmark, .cs-gallery__nav { display: none; }
  .cs-gallery__caption { left: 16px; right: 16px; bottom: 16px; }
  .cs__story { padding: 28px 20px; }
  .t-h3 { font-size: 28px; line-height: 30px; }
  .p-md { font-size: 16px; line-height: 26px; }
  .cs__specs { padding: 8px 20px 20px; }
  .spec { height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .spec dd { text-align: left; }
  .cs-id__row { padding: 20px; }
  .idtag__text { padding-right: 40px; }
  .qual__head { padding: 28px 20px; }
  .t-h1 { font-size: 40px; line-height: 42px; }
  .btn--fill { height: 54px; padding: 0 20px; }
  .btn--fill .mono-lg, .btn--light .mono-lg { font-size: 16px; }
  .certs { padding: 20px; gap: 8px; }
  .cert { min-height: 0; padding: 16px 12px; }
  .logos--3, .logos--6 { grid-template-columns: repeat(2, 1fr); }
  .logos--3 .logo-cell:last-child { grid-column: span 2; }
  .logo-cell { height: 120px; }
  .partner { font-size: 18px; }
  .partner--sm { font-size: 14px; }
  .careers__intro { padding: 28px 20px 32px; }
  .jobs__head, .jobs__foot { padding: 0 20px; }
  .job { padding: 20px; }
  .job__main { width: 100%; }
  .job__side { min-width: 0; width: 100%; flex-wrap: wrap; }
  .cta__frame { min-height: 0; padding: 56px 0 48px; }
  .cta__inner { gap: 36px; padding: 0 20px; min-height: 0; }
  .cta__top { gap: 28px; }
  .cta__mark { width: 72px; }
  .t-display { font-size: 44px; line-height: 46px; }
  .btn--light { height: 54px; }
  .footer__strip .frame { height: 32px; }
  .footer__brand { padding: 24px 20px; min-height: 200px; }
  .footer__bottom { flex-wrap: wrap; align-items: flex-start; }
  .footer__nav { padding: 24px 20px; }
  .footer__menu { font-size: 17px; }
  .footer__wordmark-svg { margin-top: 16px; }
}
@media (max-width: 599px) {  /* phones: one column; tablet portrait (600–768) keeps the two columns of the ≤1200 layout */
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .service { border-right: 0 !important; }
  .certs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* --------------------------------------------------------------------------
   Hero CTAs (copy package): primary "Poptat realizaci" + secondary outlined "Pracujte s námi".
   Side by side on desktop and tablets, stacked full width at ≤599 px. Also: careers cards with two columns.
   -------------------------------------------------------------------------- */
.hero__cta { display: flex; gap: 16px; width: 100%; }
.hero__cta .btn--hero { flex: 1 1 0; min-width: 0; padding: 20px 24px; }
.btn--hero-alt { background: transparent; border-color: var(--light); color: var(--light); }
.btn--hero-alt:hover, .btn--hero-alt:focus-visible { background: var(--light); border-color: var(--light); color: var(--ink); }
.js.is-loaded .hero__cta { animation-delay: .5s; }
@media (max-width: 599px) { .hero__cta { flex-direction: column; gap: 12px; } .hero__cta .btn--hero { flex: none; width: 100%; } }
@media (min-width: 769px) and (max-width: 1200px) {  /* tablets: CTAs stacked in the left half, so the bottom-right cookie banner never covers them */
  .hero__cta { flex-direction: column; gap: 12px; width: calc(50% - 16px); }
  .hero__cta .btn--hero { flex: none; width: 100%; }
}
@media (min-width: 1201px) and (max-width: 1279px) { .hero-badge { top: 16px; } }  /* clear of the top-right ring */
@media (max-width: 599px) and (max-height: 760px) {  /* short phones (iPhone SE, 360×640): tighter hero so header + hero fit one screen */
  .hero__strip { height: 16px; }
  .hero__content { padding: 24px 20px; }
  .hero__label { margin-bottom: 16px; }
  .hero__title { margin-bottom: 20px; }
  .hero__text { margin-bottom: 24px; font-size: 16px; line-height: 23px; }
  .hero__cta { gap: 8px; }
  .hero__cta .btn--hero { height: 50px; padding: 0 20px; }
}
@media (min-width: 769px) { .ticket__flag { margin-right: 20px; } }  /* the CE mark that followed the flag is gone */
@media (max-width: 480px) {  /* phones: 2 × 2 grid, each icon in front of its own column (globe + company, flag + address) */
  .ticket { display: grid; grid-template-columns: 38.5px minmax(0, auto); align-items: center; column-gap: 16px; row-gap: 12px; padding: 14px 20px 14px 14px; }
  .ticket__col--a { margin-right: 0; }
  .ticket__flag { justify-self: center; }
}
@media (min-width: 1201px) { .job-full__grid--2 { grid-template-columns: 2fr 1fr; } }
@media (max-width: 480px) { .jobs .job__meta { flex: 1 1 100%; } }  /* homepage: the meta gets the full row, "Více informací" goes under it */

/* --------------------------------------------------------------------------
   Cookie consent banner (js/consent.js, built by build/tracking.py). Same language as the dark meta card of the
   page heads: ink card, orange bar, mono labels, 1px rules, outlined buttons with the corner glyph.
   Fixed to the bottom, so it never moves page content (no CLS); at most the viewport minus a strip at the top.
   Bottom right on wider screens and at most half the width minus a gutter, so the left-aligned hero CTAs stay free.
   -------------------------------------------------------------------------- */
.consent {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column;
  width: min(480px, calc(50% - 40px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 24px 24px; background: var(--ink); color: var(--light); border: 1px solid var(--line-dark); border-radius: 2px;
  box-shadow: 0 24px 64px -24px rgba(29, 25, 24, 0.6); --line: var(--line-dark);
  animation: consent-in .5s var(--ease) both;
}
.consent[hidden], .consent__prefs[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
.consent__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; padding: 2px 8px; background: var(--orange); color: var(--ink); }
.consent__title { font-size: 14px; line-height: 16px; }
.consent__tag { white-space: nowrap; }
.consent__text { margin-top: 16px; color: var(--light); }
.consent__link { color: var(--light); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; white-space: nowrap; }
.consent__link:hover { color: var(--orange); }
.consent__prefs { margin-top: 20px; border-top: 1px solid var(--line-dark); }
.consent__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.consent__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.consent__name { color: var(--light); cursor: pointer; }
.consent__desc { color: var(--tan-light); font-size: 14px; line-height: 20px; }  /* #C2BAA4 on ink: 9.6:1 */
.consent__ctl { display: flex; align-items: center; gap: 10px; flex: none; min-height: 24px; }
.consent__always { color: var(--tan-dim-dark); }
.consent__switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 24px; margin: 0;
  border: 1px solid var(--tan-dim-dark); border-radius: 0; background: transparent; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.consent__switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--tan-light); transition: transform .2s var(--ease), background-color .2s var(--ease); }
.consent__switch:checked { background: var(--orange); border-color: var(--orange); }
.consent__switch:checked::before { transform: translateX(20px); background: var(--ink); }
.consent__switch:disabled { cursor: default; }
.consent__switch:checked:disabled { background: var(--dark-3); border-color: var(--dark-3); }
.consent__switch:checked:disabled::before { background: var(--tan-light); }  /* locked on: neutral, not the orange of a choice */
.consent__switch:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.consent__save { margin-top: 16px; }
.consent__save .consent__btn { width: 100%; }
.consent__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.consent__btn {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border: 1px solid var(--light); color: var(--light); text-align: center; white-space: normal;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.consent__btn .corner { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; transition: transform .25s var(--ease); }
.consent__btn:hover, .consent__btn:focus-visible, .consent__btn[aria-expanded="true"] { background: var(--light); color: var(--ink); }
.consent__btn:hover .corner { transform: translate(2px, -2px); }
.consent :focus-visible { outline-color: var(--light); }
.consent__status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer__links button.link-arrow { padding: 0; cursor: pointer; text-align: left; }
@media (max-width: 768px) {  /* compact bottom sheet: about a third of a 320 × 568 screen, buttons in one row */
  .consent { left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); padding: 12px 20px 16px; border-width: 1px 0 0; border-radius: 0; }
  .consent__text { margin-top: 10px; font-size: 14px; line-height: 20px; }
  .consent__actions { gap: 6px; margin-top: 12px; }
  .consent__btn { min-height: 44px; padding: 8px 10px; font-size: 12px; line-height: 15px; letter-spacing: -0.04em; }
  .consent__prefs { margin-top: 12px; }
  .consent__row { gap: 16px; padding: 10px 0; }
  .consent__save { margin-top: 12px; }
}
