/* ─────────────────────────────────────────────────────────────────────
   ATLAS GROUP — modern corporate website
   Light, photo-driven, clean. Inter + JetBrains Mono.
   ───────────────────────────────────────────────────────────────────── */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --navy-950: #060b21;
  --navy-900: #0a1230;
  --navy-800: #131b42;
  --navy-700: #1f2a6b;
  --navy-600: #2d3a82;
  --navy-100: #e6e9f4;
  --navy-50:  #f1f3f9;

  --cyan-600: #008fc4;
  --cyan-500: #00a6e2;
  --cyan-400: #1fb8ec;
  --cyan-300: #5dcdf2;
  --cyan-200: #a8def5;
  --cyan-100: #e0f4fc;
  --cyan-50:  #f1faff;

  /* Product brand colors */
  --codexis: #9dc238;
  --onepost: #34d399;
  --datify:  #4f8bf6;
  --brand-strip: linear-gradient(90deg, #9dc238 0%, #34d399 50%, #4f8bf6 100%);

  /* Surfaces */
  --bg:      #f7f8fa;
  --surface: #ffffff;

  /* Ink */
  --ink-900: #0a1230;
  --ink-700: #2a3151;
  --ink-600: #4a5274;
  --ink-500: #6b7290;
  --ink-400: #8a91a8;
  --ink-300: #b8becf;

  /* Lines */
  --line:        #e6e9f0;
  --line-strong: #d3d8e3;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 18, 48, 0.04);
  --shadow-sm: 0 1px 2px rgba(10, 18, 48, 0.04), 0 1px 3px rgba(10, 18, 48, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 18, 48, 0.06), 0 2px 4px rgba(10, 18, 48, 0.04);
  --shadow-lg: 0 24px 48px rgba(10, 18, 48, 0.10), 0 8px 16px rgba(10, 18, 48, 0.06);
  --shadow-xl: 0 40px 80px rgba(10, 18, 48, 0.12), 0 16px 32px rgba(10, 18, 48, 0.08);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}

img, svg { display: block; max-width: 100%; }
/* Web component wrappers should not affect layout */
site-header, site-footer { display: contents; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink-900); }

::selection { background: var(--cyan-200); color: var(--navy-900); }

/* ── helpers ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.text-muted { color: var(--ink-500); }
.icon-extern {
  display: inline-flex;
  align-items: center;
  vertical-align: -1px;
  flex-shrink: 0;
}
.icon-extern svg { width: 1em; height: 1em; }
.text-cyan  { color: var(--cyan-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.eyebrow-cyan { color: var(--cyan-600); }
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(0, 166, 226, 0.18);
  flex-shrink: 0;
}

.h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink-900);
  text-wrap: balance;
  margin: 0 0 18px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-700);
  text-wrap: pretty;
  margin: 0 0 16px;
}

/* Photo wrapper with graceful gradient fallback */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-failed img { display: none; }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-900);
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn span { transition: transform .18s ease; }
.btn:hover span { transform: translateX(2px); }

.btn-primary {
  background: var(--cyan-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 166, 226, 0.25);
}
.btn-primary:hover { background: var(--cyan-400); box-shadow: 0 12px 28px rgba(0, 166, 226, 0.32); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink-900);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--navy-50); border-color: var(--ink-300); }

.btn-block { width: 100%; justify-content: center; height: 52px; font-size: 16px; }


/* ─────────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: 18px;
  transition: padding .3s ease;
}
.header[data-state="scrolled"] { padding-top: 10px; }

/* Wider than the content container */
.header .container { max-width: 1600px; padding: 0 28px; }

/* Floating frame bar — 3 cols: logo · nav · CTA.
   Transparent at top; glass + shadow appear on scroll. */
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 14px 0 24px;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header[data-state="scrolled"] .header-bar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 10px 30px rgba(10, 18, 48, 0.10);
}

.brand { display: flex; align-items: center; justify-self: start; }
.brand-logo { height: 24px; width: auto; display: block; }
/* light variant (cyan symbol + white wordmark) over photo; full-color when scrolled */
.brand-logo--dark { display: none; }
.header[data-state="scrolled"] .brand-logo--light { display: none; }
.header[data-state="scrolled"] .brand-logo--dark { display: block; }

.nav { display: flex; align-items: center; gap: 2px; justify-self: center; }
.nav .nav-home { display: none; } /* shown only in mobile drawer */
.nav a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, 0.82); border-radius: 10px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.header[data-state="scrolled"] .nav a { color: var(--ink-700); }
.header[data-state="scrolled"] .nav a:hover { background: rgba(10, 18, 48, 0.06); color: var(--ink-900); }

.header-right { display: flex; align-items: center; gap: 8px; justify-self: end; }

/* Hamburger toggle — only visible at ≤900px */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .15s ease;
}
.header[data-state="scrolled"] .nav-toggle-bar { background: var(--ink-900); }
.header[data-menu-open="true"] .nav-toggle-bar { background: var(--ink-900); }
.header[data-menu-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header[data-menu-open="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.header[data-menu-open="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pill-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  background: #fff; color: var(--navy-900);
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.header[data-state="scrolled"] .pill-cta { background: var(--cyan-500); color: #fff; }
.pill-cta:hover { transform: translateY(-1px); }
.pill-cta span { opacity: 0.7; transition: transform .18s ease; }
.pill-cta:hover span { transform: translateX(2px); }


/* ─────────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

/* Slider */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 1.4s ease;
  will-change: opacity, transform;
}
/* zoom via animation so it also runs for the first slide on page load */
.hero-slide.is-active {
  opacity: 1;
  animation: hero-zoom 8s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Readability overlay — darker on the left where the text sits */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(6, 11, 33, 0.96) 0%,
      rgba(7, 12, 36, 0.90) 42%,
      rgba(10, 18, 48, 0.48) 72%,
      rgba(10, 18, 48, 0.16) 100%),
    linear-gradient(0deg, rgba(6, 11, 33, 0.45) 0%, transparent 35%);
}

/* Brand gradient strip — decent unifying signature across the site.
   Applied via border-image on the bottom edge of dark hero/intro blocks
   and the top edge of the footer. */
.hero,
.page-intro {
  border-bottom: 4px solid;
  border-image-source: var(--brand-strip);
  border-image-slice: 1;
}
.footer {
  border-bottom: 4px solid;
  border-image-source: var(--brand-strip);
  border-image-slice: 1;
}

/* Body fills the hero (inherits container max-width = 1400px) */
.hero-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 104px 32px 28px;   /* top clears the floating header */
}
/* Middle zone — copy left, switch right, vertically centered */
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.hero-copy { max-width: 1100px; }

/* Eyebrow on dark */
.eyebrow-onlight {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
  margin: 0 0 32px;
  text-shadow: 0 2px 30px rgba(6, 11, 33, 0.35);
}
.hero-accent {
  /* inline so the gradient maps to the text only — full green→blue visible */
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--brand-strip);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 100%;
  margin: 0 0 44px;
}
.hero-sub strong { color: #fff; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-ctas .btn { height: 54px; font-size: 16px; padding: 0 26px; }
.hero-ctas .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-ctas .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: transparent;
}

.hero-metrics {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}
.metric { white-space: nowrap; }
.metric-num {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 800; letter-spacing: -0.02em;
  color: #fff; line-height: 1;
}
.metric-label { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.65); font-family: var(--font-mono); }

/* Slider switch — horizontal row, bottom-right, de-emphasized */
.hero-switch {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(28px, 5vh, 52px);
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.hero-switch-item {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color .25s ease;
}
.hero-switch-num {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
  transition: color .25s ease;
}
/* label appears only on the active item, between number and line */
.hero-switch-label { display: none; transition: color .25s ease; }
.hero-switch-item.is-active .hero-switch-label { display: inline; color: #fff; }
.hero-switch-line {
  width: 18px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: width .25s ease, background .25s ease;
}
.hero-switch-item:hover { color: rgba(255, 255, 255, 0.85); }
.hero-switch-item:hover .hero-switch-num { color: rgba(255, 255, 255, 0.85); }
.hero-switch-item:hover .hero-switch-line { width: 26px; background: rgba(255, 255, 255, 0.7); }
.hero-switch-item.is-active { color: #fff; }
.hero-switch-item.is-active .hero-switch-num { color: var(--cyan-400); }
.hero-switch-item.is-active .hero-switch-line { width: 40px; background: var(--cyan-400); }

/* Logos band (moved out of hero) */
.logos-band {
  background: var(--surface);
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 24px;
}
/* Logo marquee — single slowly-moving row */
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.trust-logo img {
  height: 30px; width: auto; max-width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity .2s ease;
}
.trust-logo img:hover { opacity: 0.85; }
/* fallback shown only if the logo image fails to load */
.trust-logo-text {
  display: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink-400);
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────────────
   SECTION scaffolding
   ───────────────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head-center {
  display: block;
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-lead { font-size: 18px; line-height: 1.6; color: var(--ink-600); }
.section-head-center .section-lead { margin: 16px auto 0; }


/* ─────────────────────────────────────────────────────────────────────
   PRODUKTY
   ───────────────────────────────────────────────────────────────────── */
.section-produkty { background: var(--surface); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Per-product brand color */
.product-card[data-brand="codexis"] { --pc: var(--codexis); }
.product-card[data-brand="onepost"] { --pc: var(--onepost); }
.product-card[data-brand="datify"]  { --pc: var(--datify); }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--pc) 55%, var(--line));
}
/* Framed app-screen area */
.product-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 26px 0;
  background:
    radial-gradient(120% 85% at 50% 0%, color-mix(in srgb, var(--pc) 36%, #fff) 0%, transparent 72%),
    linear-gradient(160deg, color-mix(in srgb, var(--pc) 20%, #fff) 0%, color-mix(in srgb, var(--pc) 9%, #fff) 100%);
}
/* real screenshot (when assets/screens/<product>.png exists) */
.product-screen {
  width: 94%;
  align-self: flex-start;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 24px 48px rgba(10, 18, 48, 0.20);
  object-fit: cover;
  object-position: top center;
}
/* CTA below the product grid */
.products-cta { margin-top: 56px; display: flex; justify-content: center; }

/* fallback app-window mockup */
.product-window {
  display: none;
  flex-direction: column;
  width: 94%;
  padding: 14px 14px 0;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 24px 48px rgba(10, 18, 48, 0.18);
  font-size: 11px;
  text-align: left;
}
.product-frame.no-screen .product-window { display: flex; }
.product-frame.no-screen .product-screen { display: none; }

/* window header (shared) */
.pw-head {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 11px; color: var(--ink-900);
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex-shrink: 0; }
.pw-count {
  margin-left: auto; font-family: var(--font-mono);
  font-size: 9px; color: var(--ink-500); font-weight: 500;
}

/* CODEXIS — AI chat */
.pw-chips { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.pw-chip {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-700);
}
.pw-cites { display: flex; gap: 5px; flex-wrap: wrap; }
.pw-chat { display: flex; flex-direction: column; gap: 8px; }
.pw-msg { padding: 8px 10px; line-height: 1.35; }
.pw-msg-user {
  align-self: flex-end; max-width: 80%;
  background: color-mix(in srgb, var(--pc) 16%, #fff);
  color: var(--ink-900); font-weight: 500;
  border-radius: 10px 10px 2px 10px;
}
.pw-msg-ai {
  align-self: flex-start; max-width: 92%;
  display: flex; gap: 7px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
}
.pw-ai-icon {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 5px;
  background: var(--pc); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 9px;
}
.pw-msg-ai p { margin: 0 0 6px; color: var(--ink-700); font-size: 10.5px; }
.pw-cite {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px;
  padding: 3px 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--pc) 18%, #fff);
  color: color-mix(in srgb, var(--pc) 72%, var(--navy-900));
}
.pw-input {
  margin-top: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-400); font-size: 10px; background: var(--bg);
}

/* ONEPOST — message list */
.pw-ai-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--pc) 14%, #fff);
  border-radius: 8px;
  font-size: 10px; color: var(--ink-700);
  font-weight: 500;
  line-height: 1.35;
}
.pw-ai-banner .pw-ai-icon {
  width: 14px; height: 14px; font-size: 8px;
  background: var(--pc); color: #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pw-mail { display: flex; flex-direction: column; }
.pw-mail-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 2px; border-top: 1px solid var(--line);
}
.pw-mail-row:first-child { border-top: none; }
.pw-mail-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.pw-mail-row.unread .pw-mail-dot { background: var(--pc); }
.pw-mail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pw-mail-main b { font-size: 10.5px; color: var(--ink-900); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-mail-main span { font-size: 9.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-mail-time { font-family: var(--font-mono); font-size: 9px; color: var(--ink-400); flex-shrink: 0; }

/* DATIFY — data table */
.pw-toolbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.pw-search-input {
  flex: 1; padding: 6px 10px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px; color: var(--ink-400);
}
.pw-btn {
  padding: 6px 10px;
  background: var(--pc); color: #fff;
  border-radius: 7px;
  font-size: 10px; font-weight: 600;
  white-space: nowrap;
}
.pw-table { display: flex; flex-direction: column; }
.pw-trow {
  display: grid; grid-template-columns: 1.35fr 1fr 72px;
  gap: 8px; align-items: center;
  padding: 8px 2px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--ink-700);
}
.pw-trow:first-child { border-top: none; }
.pw-trow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-thead {
  font-family: var(--font-mono); font-size: 8.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-400); font-weight: 500;
}
.pw-trow .pw-cell-name { color: var(--ink-900); font-weight: 600; }
.pw-tag {
  justify-self: start;
  font-size: 9px; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.pw-tag.ok { background: color-mix(in srgb, var(--pc) 18%, #fff); color: color-mix(in srgb, var(--pc) 72%, var(--navy-900)); }
.pw-tag.off { background: var(--navy-50); color: var(--ink-500); }

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.product-logo {
  height: 26px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
}
.product-desc {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-600);
  margin: 0 0 18px;
}
.product-feats {
  display: flex; flex-direction: column; gap: 9px;
  margin: 0 0 22px;
}
.product-feats li {
  position: relative;
  padding-left: 26px;
  font-size: 14px; color: var(--ink-700);
}
.product-feats li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background-color: var(--pc);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.product-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500;
  color: color-mix(in srgb, var(--pc) 72%, var(--navy-900));
  transition: gap .18s ease;
}
.product-link:hover { gap: 12px; }


/* ─────────────────────────────────────────────────────────────────────
   O SPOLEČNOSTI
   ───────────────────────────────────────────────────────────────────── */
.section-about { background: var(--bg); }
/* 50/50 split: full-bleed photo left, content right (aligned with container) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.about-photo {
  margin: 0;
  overflow: hidden;
  min-height: 560px;
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content {
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  padding-left: clamp(32px, 5vw, 80px);
  padding-right: max(32px, calc((100vw - 1400px) / 2 + 32px));
}
.about-inner { max-width: 620px; }
.about-inner .lead { margin-bottom: 16px; }

.value-list-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.value-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-top: 18px;
}
.value-list-head + .value-list { margin-top: 18px; }
.value { position: relative; padding-left: 18px; }
.value::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 3px;
  background: var(--cyan-500);
}
.value-title { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.value-body { font-size: 14px; color: var(--ink-600); line-height: 1.5; }

/* Subtle stats pruh — sits inside Kariéra between the header and tiles */
.kariera-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 980px;
  margin: 0 auto 56px;
  padding: 12px 0;
}
.kariera-stats .stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}
.kariera-stats .stat:last-child { border-right: none; }
.kariera-stats .stat-num {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy-700); line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kariera-stats .stat-label {
  margin-top: 8px; font-size: 12px;
  color: var(--ink-500); font-family: var(--font-mono);
}


/* ─────────────────────────────────────────────────────────────────────
   KARIÉRA — rozcestník
   ───────────────────────────────────────────────────────────────────── */
.section-kariera { background: var(--surface); }
.kariera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.kariera-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.kariera-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-200);
}
.kariera-photo {
  aspect-ratio: 16 / 9;
}
.kariera-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,48,0.1) 0%, rgba(10,18,48,0.35));
}
.kariera-body { padding: 30px; }
.kariera-kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan-600); margin-bottom: 12px;
}
.kariera-title {
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink-900); margin: 0 0 12px;
}
.kariera-desc {
  font-size: 15px; line-height: 1.6; color: var(--ink-600);
  margin: 0 0 20px;
}
.kariera-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500;
  color: var(--cyan-600);
  transition: gap .18s ease;
}
.kariera-card:hover .kariera-link { gap: 12px; }


/* ─────────────────────────────────────────────────────────────────────
   PODPORA
   ───────────────────────────────────────────────────────────────────── */
.section-podpora { background: var(--bg); }
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* When podpora + downloads sections sit on the same gray bg, tighten the gap */
.section-podpora:has(+ .section-downloads) { padding-bottom: 48px; }
.section-podpora + .section-downloads { padding-top: 48px; }
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.support-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.support-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.support-card[data-brand="codexis"] { --pc: var(--codexis); }
.support-card[data-brand="onepost"] { --pc: var(--onepost); }
.support-card[data-brand="datify"]  { --pc: var(--datify); }
.support-logo {
  height: 22px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}
.support-help {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--cyan-600);
  white-space: nowrap;
  transition: color .15s ease;
}
.support-help:hover { color: var(--cyan-500); }

.doc-list { display: flex; flex-direction: column; }
.doc-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  font-size: 14px; color: var(--ink-700);
  border-top: 1px solid var(--line);
  transition: color .15s ease;
}
.doc-list li:first-child a { border-top: none; }
.doc-list a:hover { color: var(--cyan-600); }
.doc-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 24px;
  border-radius: 5px;
  background: var(--navy-50);
  color: var(--navy-700);
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500; letter-spacing: 0.04em;
}
.doc-size {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-400);
  white-space: nowrap;
}
.doc-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: var(--ink-400);
  flex-shrink: 0;
  transition: color .15s ease;
}
.doc-meta svg { width: 14px; height: 14px; }
.doc-list a:hover .doc-meta { color: var(--cyan-500); }

/* Downloads — 3-column library of installers, manuals and licenses */
.section-downloads { background: var(--bg); padding: 96px 0; }
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.downloads-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.downloads-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.downloads-col .doc-list a { font-size: 13.5px; padding: 10px 0; }
@media (max-width: 1024px) {
  .downloads-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .section-downloads { padding: 64px 0; }
}

/* FAQ */
.section-faq { background: var(--surface); }
.faq-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.faq-intro { position: sticky; top: 120px; }
.faq-intro .eyebrow { margin-bottom: 14px; }
.faq-intro .h2 { margin: 0 0 20px; }
.faq-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  margin: 0;
  max-width: 42ch;
}
.faq-lead a { color: var(--cyan-600); font-weight: 500; }
.faq-lead a:hover { text-decoration: underline; }
.faq-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 1024px) {
  .faq-split { grid-template-columns: 1fr; gap: 40px; }
  .faq-intro { position: static; }
  .faq-lead { max-width: none; }
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 16px; font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px; font-weight: 400;
  color: var(--cyan-500);
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary { color: var(--cyan-600); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cyan-600); }
.faq-item p {
  margin: 0;
  padding: 0 26px 24px;
  font-size: 15px; line-height: 1.65;
  color: var(--ink-600);
}
.faq-item p a { color: var(--cyan-600); font-weight: 500; }
.faq-item p a:hover { text-decoration: underline; }


/* ─────────────────────────────────────────────────────────────────────
   KONTAKT
   ───────────────────────────────────────────────────────────────────── */
.section-kontakt { background: var(--surface); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.kontakt-info .lead { margin-bottom: 28px; }
.kontakt-direct {
  padding: 4px 0;
  margin-bottom: 28px;
}
/* Variant used as a full-width standalone block on /kontakt and homepage */
.kontakt-direct--page {
  max-width: 880px;
  margin: 48px auto 0;
  padding: 0;
}
.direct-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.direct-row:last-child { border-bottom: none; }
.direct-row a { font-weight: 500; color: var(--ink-900); white-space: nowrap; transition: color .15s ease; }
.direct-row a:hover { color: var(--cyan-500); }

/* Split layout: text block left + cards right (used on /kontakt) */
.kontakt-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.kontakt-intro .eyebrow { margin-bottom: 14px; }
.kontakt-intro .h2 { margin: 0 0 20px; }
.kontakt-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  margin: 0;
  max-width: 38ch;
}
.kontakt-split .contact-grid {
  margin: 0;
  max-width: none;
}

/* New icon-card grid layout for direct contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 40px auto 0;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-900);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.contact-card:hover {
  border-color: var(--cyan-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 18, 48, 0.06);
}
.contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan-100);
  color: var(--cyan-600);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1024px) {
  .kontakt-split { grid-template-columns: 1fr; gap: 40px; }
  .kontakt-lead { max-width: none; }
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .contact-card { padding: 16px 18px; gap: 14px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-icon svg { width: 20px; height: 20px; }
  .contact-value { font-size: 14px; }
  .kontakt-split .contact-grid { margin-top: 0; }
}

.pobocka-list {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.pobocka { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pobocka:last-child { border-bottom: none; }
.pobocka-city {
  font-size: 16px; font-weight: 700; color: var(--ink-900);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 3px;
}
.pobocka-tag {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--cyan-100); color: var(--cyan-600);
  border-radius: 4px; font-weight: 500;
}
.pobocka-tag-hq { background: var(--navy-100); color: var(--navy-700); }
.pobocka-addr { font-size: 14px; color: var(--ink-700); }

/* Form */
.kontakt-form-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
}
.kontakt-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.field > span {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--ink-500); margin-bottom: 6px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; color: var(--ink-900);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input { height: 48px; padding: 0 14px; }
.field select { height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(0, 166, 226, 0.14);
}
.field-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink-600); line-height: 1.5;
}
.field-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cyan-500); flex-shrink: 0; }
.form-ok {
  margin: 0;
  padding: 12px 16px;
  background: var(--cyan-50);
  border: 1px solid var(--cyan-200);
  border-radius: var(--r-md);
  font-size: 14px; color: var(--cyan-600); font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────── */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 72px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.65; max-width: 360px; }
.footer-logo { display: flex; align-items: center; margin-bottom: 18px; }
.footer-logo img { height: 26px; width: auto; opacity: 0.95; }

/* Social icons row */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.footer-social a:hover {
  background: var(--cyan-500);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin: 0 0 18px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  padding: 5px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--cyan-300); }
.footer-col a .icon-extern {
  color: var(--cyan-300);
  opacity: 0;
  transform: translate(-3px, 0);
  transition: opacity .18s ease, transform .18s ease;
}
.footer-col a:hover .icon-extern { opacity: 1; transform: translate(0, 0); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-iso { display: flex; gap: 8px; flex-wrap: wrap; }
.iso-badge {
  padding: 6px 12px; font-size: 10px;
  background: rgba(0, 166, 226, 0.12);
  color: var(--cyan-300);
  border-radius: 6px; letter-spacing: 0.06em;
  white-space: nowrap; font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-switch { right: 24px; bottom: 28px; gap: 22px; }
  .hero-switch-item.is-active .hero-switch-line { width: 26px; }

  .product-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  /* About: stack — photo on top, content below */
  .about-split { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .about-content {
    padding: 64px clamp(20px, 5vw, 32px);
  }
  .kariera-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 48px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

/* Mobile/tablet nav drawer kicks in here */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header .container { padding: 0 18px; }
  /* Override desktop grid — flex with space-between so hamburger sticks right */
  .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px 0 16px;
  }
  /* CRITICAL: backdrop-filter on .header-bar would make it a containing block
     for `position: fixed` children, breaking the drawer. Use solid bg instead. */
  .header[data-state="scrolled"] .header-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }
  .header-right { justify-self: auto; }
  .nav .nav-home { display: block; }

  /* Drawer */
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    padding: 96px 22px 36px;
    gap: 4px;
    background: #fff;
    box-shadow: -20px 0 48px rgba(10, 18, 48, 0.16);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 49;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .header[data-menu-open="true"] .nav { transform: translateX(0); }
  .nav a {
    padding: 14px 16px;
    font-size: 17px; font-weight: 500;
    color: var(--ink-900);
    border-radius: 12px;
  }
  .nav a:hover { background: rgba(10, 18, 48, 0.06); color: var(--ink-900); }
  .nav a.is-current { background: var(--cyan-100); color: var(--cyan-600); }
  .header[data-state="scrolled"] .nav a { color: var(--ink-900); }

  /* Backdrop */
  .header::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 48, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 48;
  }
  .header[data-menu-open="true"]::after {
    opacity: 1;
    pointer-events: auto;
  }

  /* Lock body scroll when menu open */
  body.menu-open { overflow: hidden; }

  /* Hide pill-cta on tight viewports to keep header clean */
  .pill-cta { display: none; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .h2 { font-size: clamp(26px, 7vw, 34px); margin-bottom: 14px; }
  .lead { font-size: 16px; }
  .section-lead { font-size: 16px; }
  .hero-body { padding-top: 92px; padding-bottom: 24px; }
  .header-bar { gap: 12px; height: 58px; }
  .brand-logo { height: 20px; }

  /* Hero typography tightens on small screens */
  .hero-title { font-size: clamp(32px, 9vw, 44px); margin-bottom: 22px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-ctas { gap: 10px; margin-bottom: 36px; }
  .hero-ctas .btn { height: 48px; font-size: 15px; padding: 0 20px; flex: 1; min-width: 0; }
  .hero-metrics { gap: 22px 36px; padding-top: 24px; }
  .metric-num { font-size: 22px; }
  .metric-label { font-size: 12px; }
  /* Switcher: bottom-center, smaller */
  .hero-switch {
    right: auto; left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    gap: 14px;
  }
  .hero-switch-item { font-size: 10px; gap: 8px; }
  .hero-switch-label { display: none !important; }
  .hero-switch-item.is-active .hero-switch-line { width: 22px; }

  /* Page intro (subpages) — tighter on phone */
  .page-intro .container {
    min-height: clamp(280px, 50vh, 380px);
    padding-top: 124px;
    padding-bottom: 48px;
  }
  .page-title { font-size: clamp(28px, 8vw, 40px); margin-bottom: 14px; }
  .page-lead { font-size: 15px; }

  .value-list { grid-template-columns: 1fr; }
  .kariera-stats { grid-template-columns: 1fr 1fr; gap: 16px 0; padding: 20px 0; }
  .kariera-stats .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .kariera-stats .stat:nth-child(-n+2) { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .kariera-stats .stat:nth-child(n+3) { padding-top: 16px; }
  .kariera-stats .stat:last-child { border-right: none; }
  .field-row { grid-template-columns: 1fr; }
  .kontakt-form-wrap { padding: 24px; }
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 32px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-iso { gap: 6px; }
  .iso-badge { padding: 5px 10px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─────────────────────────────────────────────────────────────────────
   /produkty PAGE
   ───────────────────────────────────────────────────────────────────── */

/* Active nav link indicator — works in both header states */
.nav a.is-current { font-weight: 600; }
.header[data-state="top"] .nav a.is-current { color: var(--cyan-300); }
.header[data-state="scrolled"] .nav a.is-current { color: var(--cyan-600); }

/* Intro — hero-style block: full-width photo + dark gradient */
.page-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.page-intro::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--intro-photo, url('assets/hero-brno.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-intro::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(6, 11, 33, 0.94) 0%,
      rgba(7, 12, 36, 0.86) 42%,
      rgba(10, 18, 48, 0.48) 72%,
      rgba(10, 18, 48, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 11, 33, 0.42) 0%, transparent 38%);
}
.page-intro .container {
  position: relative;
  min-height: clamp(420px, 56vh, 540px);
  padding-top: 152px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-intro .eyebrow { color: var(--cyan-300); }
.page-title {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
  margin: 0 0 20px;
  max-width: 880px;
  text-shadow: 0 2px 30px rgba(6, 11, 33, 0.35);
}
.page-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  max-width: 760px;
}

/* 404 page — single full-screen panel with logo, big white 404, brand strip */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; background: var(--navy-900); }
.error-page {
  flex: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.error-page::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--intro-photo, url('assets/hero-vyvoj.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.error-page::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 11, 33, 0.55) 0%, rgba(6, 11, 33, 0.78) 100%);
}
.error-page .container {
  text-align: center;
  padding: 64px 0 96px;
}
.error-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 36px;
}
.error-brand img {
  height: 28px;
  width: auto;
  opacity: 0.92;
  transition: opacity .15s ease;
}
.error-brand:hover img { opacity: 1; }
.error-big {
  font-size: clamp(150px, 26vw, 320px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 24px;
  font-feature-settings: 'tnum';
  text-shadow: 0 8px 60px rgba(6, 11, 33, 0.45);
}
.error-page .page-title { margin: 0 auto 18px; text-align: center; }
.error-page .page-lead { margin: 0 auto 36px; max-width: 560px; }
.error-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-ctas .btn { height: 52px; font-size: 15px; padding: 0 24px; }
/* Brand gradient strip at the bottom edge of the page */
.error-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--brand-strip);
  z-index: 1;
}
@media (max-width: 720px) {
  .error-page .container { padding: 40px 0 64px; }
  .error-brand { margin-bottom: 28px; }
  .error-brand img { height: 22px; }
  .error-big { font-size: clamp(120px, 36vw, 200px); }
  .error-ctas .btn { flex: 1; min-width: 0; }
  .error-strip { height: 4px; }
}

/* Detailed product sections (CODEXIS / ONEPOST / DATIFY) */
.product-detail {
  padding: 80px 0;
  background: var(--surface);
}
.product-detail:nth-of-type(even) { background: var(--bg); }
.product-detail[data-brand="codexis"] { --pc: var(--codexis); }
.product-detail[data-brand="onepost"] { --pc: var(--onepost); }
.product-detail[data-brand="datify"]  { --pc: var(--datify); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.product-detail-alt .product-detail-grid {
  direction: rtl;
}
.product-detail-alt .product-detail-grid > * { direction: ltr; }

.product-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 85% at 50% 0%, color-mix(in srgb, var(--pc) 40%, #fff) 0%, transparent 72%),
    linear-gradient(160deg, color-mix(in srgb, var(--pc) 22%, #fff) 0%, color-mix(in srgb, var(--pc) 10%, #fff) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 18, 48, 0.06);
}
.product-detail-card .product-window {
  display: flex;
  width: 100%;
  max-width: 480px;
  font-size: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
}

.product-detail-copy .h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 18px;
}
.product-detail-copy .lead { margin-bottom: 22px; }
.product-detail-copy .product-feats { margin-bottom: 28px; }

/* Brand-coloured primary CTA inside each product detail */
.product-detail .btn-primary {
  background: color-mix(in srgb, var(--pc) 92%, var(--navy-900));
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--pc) 35%, transparent);
}
.product-detail .btn-primary:hover {
  background: color-mix(in srgb, var(--pc) 80%, var(--navy-900));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--pc) 45%, transparent);
}


/* Section "Další produkty" */
.section-other { background: var(--surface); padding: 96px 0; }

.other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.other-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.other-card > div { min-width: 0; }
.other-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.other-card[data-group="legal"] { --gc: var(--codexis); }
.other-card[data-group="manager"] { --gc: #d04848; }

.other-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gc);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.other-icon svg { width: 22px; height: 22px; }
/* When the icon is a real product wordmark/symbol (with its own colored
   tile and shape), drop the cyan/red background and let the SVG fill */
.other-icon-mark {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}
.other-icon-mark img { width: 100%; height: 100%; object-fit: contain; }

.other-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
}
.other-extern {
  display: inline-flex;
  align-items: center;
  color: var(--cyan-600);
  opacity: 0;
  transform: translate(-3px, 0);
  transition: opacity .18s ease, transform .18s ease;
  flex-shrink: 0;
}
.other-extern svg { width: 14px; height: 14px; }
.other-card:hover .other-extern { opacity: 1; transform: translate(0, 0); }
.other-title strong { font-weight: 800; color: var(--ink-900); }
.other-title span { font-weight: 600; color: var(--ink-500); }
.other-title sup {
  font-size: 0.6em; vertical-align: super;
  color: var(--ink-500); font-weight: 500;
}
.other-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
}


/* CTA at the bottom of /produkty — hero-style: full-width photo + dark gradient */
.section-products-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.section-products-cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--cta-photo, url('assets/hero-ostrava.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-products-cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(6, 11, 33, 0.92) 0%,
      rgba(7, 12, 36, 0.78) 42%,
      rgba(10, 18, 48, 0.42) 72%,
      rgba(10, 18, 48, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 11, 33, 0.40) 0%, transparent 38%);
}
.products-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.products-cta-inner .eyebrow { color: var(--cyan-300); }
.products-cta-inner .h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 30px rgba(6, 11, 33, 0.35);
}
.products-cta-inner .lead {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}
.products-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.section-products-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.section-products-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: transparent;
}

@media (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-detail-alt .product-detail-grid { direction: ltr; }
  .product-detail-card { aspect-ratio: 16 / 10; max-width: 560px; margin: 0 auto; }
  .other-grid { grid-template-columns: 1fr; }
  .products-cta-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
}

@media (max-width: 720px) {
  .page-intro { padding: 132px 0 40px; }
  .product-detail { padding: 56px 0; }
  .section-other { padding: 64px 0; }
  .section-products-cta { padding: 64px 0 88px; }
  .other-card { padding: 20px; grid-template-columns: 40px 1fr; gap: 14px; }
  .other-icon { width: 36px; height: 36px; }
  .other-icon svg { width: 18px; height: 18px; }
  /* Product mockup tighter on phone */
  .product-detail-card { padding: 24px; aspect-ratio: 5 / 4; max-width: none; }
  .product-detail-card .product-window { font-size: 11px; padding: 12px 12px 10px; max-width: none; }
  .product-detail-copy .h2 { font-size: clamp(24px, 6.5vw, 32px); }
  /* Allow brand-CTA button to wrap if needed */
  .product-detail .btn-primary { white-space: normal; height: auto; min-height: 48px; padding: 12px 22px; }
}


/* ─────────────────────────────────────────────────────────────────────
   SHARED SUBPAGE COMPONENTS (locations grid, "why us" cards…)
   ───────────────────────────────────────────────────────────────────── */

/* Stats wrapper for subpages (reuses .kariera-stats) */
.section-stats-page { background: var(--surface); padding: 64px 0; }
.section-stats-page .kariera-stats { margin-bottom: 0; }

/* Locations (offices) */
.section-locations { background: var(--bg); padding: 96px 0; }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.location-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.location-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.location-card:hover .location-photo img { transform: scale(1.04); }
.location-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-100), var(--bg));
}
.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.location-body { padding: 24px 28px 28px; }
.location-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cyan-100);
  color: var(--cyan-600);
  font-weight: 500;
  margin-bottom: 14px;
}
.location-tag-hq { background: var(--navy-100); color: var(--navy-700); }
.location-city {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 12px;
}
.location-addr {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0 0 14px;
}
.location-meta {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
}
.location-meta + .location-meta { margin-top: 2px; }

/* Manifesto — short brand statement on white, used as a buffer between
   the dark page-intro and the photo-heavy about-split */
.section-manifesto {
  background: var(--surface);
  padding: 96px 0;
}
.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-title {
  margin: 14px 0 18px;
  text-wrap: balance;
}
.manifesto-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .section-manifesto { padding: 64px 0; }
}

/* Video — click-to-play YouTube embed */
.section-video { background: var(--bg); padding: 96px 0; }

.video-frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
.video-player {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.video-player:hover img { transform: scale(1.04); }
.video-player::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 18, 48, 0.35));
  pointer-events: none;
  transition: opacity .25s ease;
}
.video-player:hover::after { opacity: 0.7; }

.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(10, 18, 48, 0.45);
  transition: transform .25s ease, background .25s ease;
  z-index: 1;
}
.video-player:hover .video-play {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-play svg {
  width: 36px; height: 36px;
  margin-left: 5px;
}

.video-iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 720px) {
  .section-video { padding: 64px 0; }
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 26px; height: 26px; margin-left: 3px; }
}

/* Billing details (kontakt) — two company cards with registry info */
.section-billing { background: var(--bg); padding: 96px 0; }
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.billing-card {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.billing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.billing-brand {
  height: 22px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.billing-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 24px;
  margin: 0 0 22px;
}
.billing-list dt {
  font-size: 13px;
  color: var(--ink-500);
  padding-top: 2px;
}
.billing-list dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-900);
  font-weight: 500;
  line-height: 1.5;
}
.billing-list dd.mono { font-weight: 500; }
.billing-note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-500);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .billing-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .section-billing { padding: 64px 0; }
}
@media (max-width: 720px) {
  .billing-card { padding: 28px 24px; }
  .billing-list { grid-template-columns: 1fr; gap: 4px 0; }
  .billing-list dt { padding-top: 12px; }
  .billing-list dt:first-of-type { padding-top: 0; }
}

/* Skupina ATLAS GROUP — three subsidiary companies (o-spolecnosti) */
.section-group { background: var(--surface); padding: 96px 0; }

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.group-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.group-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.group-role {
  display: inline-block;
  padding: 4px 10px;
  background: var(--cyan-100);
  color: var(--cyan-600);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 22px;
}
.group-logo {
  display: block;
  height: 26px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
}
.group-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0;
}

/* EU Projekty page */
.section-eu { background: var(--bg); padding: 96px 0; }
.eu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}
.eu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eu-banner {
  margin-bottom: 4px;
}
.eu-banner img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.eu-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.eu-partners img {
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.eu-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0;
  text-wrap: balance;
}
.eu-pid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--r-md);
}
.eu-pid-label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.eu-pid-value {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.eu-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0;
}
@media (max-width: 720px) {
  .section-eu { padding: 56px 0; }
  .eu-card { padding: 24px 22px 26px; }
  .eu-banner img { height: 44px; }
  .eu-partners { gap: 12px 18px; padding-top: 18px; }
  .eu-partners img { height: 38px; }
  .eu-title { font-size: 18px; }
}

/* Média — list of press mentions */
.section-media { background: var(--bg); padding: 96px 0; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.media-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.media-logo {
  height: 38px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter .25s ease, opacity .25s ease;
}
.media-logo img {
  max-height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}
.media-card:hover .media-logo {
  filter: grayscale(0);
  opacity: 1;
}
.media-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.35;
  text-wrap: balance;
}
.media-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
}
.media-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan-600);
  transition: gap .18s ease;
}
.media-card:hover .media-link { gap: 10px; }
@media (max-width: 720px) {
  .section-media { padding: 56px 0; }
  .media-card { padding: 22px 22px; }
  .media-title { font-size: 16px; }
}

/* "Why us" grid (kariera.html) */
.section-why { background: var(--bg); padding: 96px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.why-card:hover {
  border-color: var(--cyan-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.why-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan-100);
  color: var(--cyan-600);
  flex: 0 0 auto;
}
.why-icon svg { width: 22px; height: 22px; }
.why-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan-500);
  letter-spacing: 0.08em;
}
.why-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.why-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
}

@media (max-width: 1024px) {
  .locations-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .group-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .section-locations, .section-why, .section-stats-page, .section-group { padding: 64px 0; }
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
}


