/* =========================================================
   VECTOFAB — design system
   Konstrukce, simulace a digitální výroba
   ---------------------------------------------------------
   1 Tokens  2 Base  3 Layout  4 Header/Nav  5 Buttons
   6 Hero    7 Sections & cards  8 Process  9 Specs/tables
   10 Gallery & lightbox  11 Forms  12 Misc  13 Footer
   14 Motion  15 Responsive
   ========================================================= */

/* ---------- 0. Písma (self-hosted, SIL OFL 1.1) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/space-grotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Světlé obsahové sekce (původní paleta PrintLab: navy + oranžová + modrá) */
  --navy: #1a2355;
  --navy-dark: #111844;
  --navy-mid: #253070;
  --blue: #3b82f6;

  --bg: #ffffff;
  --bg-2: #f0f4fb;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --line: #dde3f2;
  --line-strong: #c0cce8;
  --grid: rgba(26, 35, 85, 0.05);

  --text: #1a2355;
  --text-2: #4a5a78;
  --text-3: #5d6b8a;

  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-text: #c2410c;      /* oranžový text na světlém pozadí (kontrast AA) */
  --accent-ink: #111844;       /* text na oranžovém tlačítku */
  --accent-soft: rgba(249, 115, 22, 0.09);
  --accent-line: rgba(249, 115, 22, 0.35);

  --ok: #047857;
  --err: #b91c1c;
  --info: #2563eb;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;

  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --header-h: 68px;

  --shadow: 0 4px 24px rgba(26, 35, 85, 0.10);
  --shadow-sm: 0 2px 8px rgba(26, 35, 85, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* Tmavé navy zóny: hlavička, hero, záhlaví stránek, CTA, patička, lightbox, MKP vizualizace */
.site-header, .hero, .page-hero, .cta-band, .site-footer, .lightbox, .fem-figure, .about-photo figcaption, .theme-dark {
  --bg: #111844;
  --bg-2: #1a2355;
  --surface: #1f2a63;
  --surface-2: #253070;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --grid: rgba(255, 255, 255, 0.045);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.74);
  --text-3: rgba(255, 255, 255, 0.6);
  --accent-text: #fb923c;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-line: rgba(249, 115, 22, 0.5);
  --ok: #34d399;
  --err: #f87171;
  --info: #60a5fa;
  color: var(--text);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, li a.link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .prose a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-base); letter-spacing: 0; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: var(--r); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { color: var(--text-2); font-size: var(--fs-lg); margin-top: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split--center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stack > * + * { margin-top: 1rem; }
.prose { color: var(--text-2); max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; color: var(--text); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.prose h3 { margin-top: 1.75rem; color: var(--text); }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.25rem; }
.prose ul li + li { margin-top: 0.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.lead { font-size: var(--fs-lg); color: var(--text-2); }
.muted { color: var(--text-3); }
.text-accent { color: var(--accent-text); }

/* Eyebrow / technical label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--text-2); background: var(--surface);
}
.tag--accent { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(26, 35, 85, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand-symbol { width: 34px; height: 34px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.09em; line-height: 1; }
.brand-word b { color: var(--accent-text); font-weight: 700; }
.brand-sub { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-3); margin-top: 4px; text-transform: uppercase; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.75rem; border-radius: var(--r);
  font-size: 0.92rem; font-weight: 500; color: var(--text-2); transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--text); background: var(--surface); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--accent-text); background: rgba(249, 115, 22, 0.10); }
.nav-caret { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item { position: relative; }
.nav-sub {
  position: absolute; top: calc(100% + 8px); left: 50%; width: 340px; transform: translate(-50%, 6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.5rem;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
}
.nav-sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-sub a { display: grid; grid-template-columns: 34px 1fr; gap: 0.75rem; align-items: start; padding: 0.65rem; border-radius: var(--r); }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--surface-2); }
.nav-sub .ico { width: 34px; height: 34px; }
.nav-sub strong { display: block; font-size: 0.9rem; }
.nav-sub small { display: block; color: var(--text-3); font-size: 0.78rem; line-height: 1.4; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r); align-items: center; justify-content: center; border: 1px solid var(--line); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform 0.2s, background-color 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* icon box */
.ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--r); color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.ico svg { width: 55%; height: 55%; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 44px; padding: 0.7rem 1.25rem; border-radius: var(--r);
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--surface); }
.btn-sm { min-height: 38px; padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn-lg { min-height: 52px; padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--accent-text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
}
.hero { background: var(--navy-dark); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 85% 10%, rgba(249, 115, 22, 0.16), transparent 65%), radial-gradient(520px circle at 10% 95%, rgba(59, 130, 246, 0.14), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--accent-text); }
.hero-lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--text-2); max-width: 36rem; margin-bottom: 2rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 2.75rem; border-top: 1px solid var(--line); justify-content: start; }
.hero-fact { padding: 1rem 1.5rem 0 0; margin-right: 1.5rem; }
.hero-fact + .hero-fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.hero-fact dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hero-fact dd { font-weight: 600; font-size: 0.98rem; margin-top: 0.2rem; }

.hero-visual { position: relative; }
.fem-figure { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(17, 24, 68, 0.85); padding: 1rem; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6); }
.fem-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 0.25rem 0.25rem 0.75rem; border-bottom: 1px solid var(--line); margin-bottom: 0.75rem; }
.fem-figure figcaption span:first-child { color: var(--text-2); }
.fem-svg { width: 100%; height: auto; aspect-ratio: 520 / 400; }
.fem-svg .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s var(--ease) 0.2s forwards; }
.fem-svg .fade { opacity: 0; animation: fadein 1.2s ease 1.4s forwards; }
.fem-svg .fade-2 { opacity: 0; animation: fadein 1s ease 2s forwards; }
.fem-svg .pulse { animation: pulse 2.6s ease-in-out 2.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Page hero (subpages) */
.page-hero { position: relative; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000); mask-image: linear-gradient(90deg, transparent, #000 40%, #000); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 22ch; }
.page-hero .lead { margin-top: 1.1rem; max-width: 46rem; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero-code { position: absolute; right: var(--gutter); bottom: 0; font-family: var(--mono); font-size: clamp(4rem, 2rem + 8vw, 9rem); font-weight: 700; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line-strong); pointer-events: none; user-select: none; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); margin-bottom: 1.5rem; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text-2); }
.breadcrumb .sep { color: var(--line-strong); }

/* ---------- 7. Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); transition: border-color 0.2s, transform 0.2s var(--ease), background-color 0.2s; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-2); font-size: 0.95rem; }
.card--link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card--plain { background: transparent; }
.service-card { display: flex; flex-direction: column; gap: 1rem; min-height: 100%; }
.service-card .num { position: absolute; top: 1.25rem; right: 1.25rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.1em; }
.service-card ul { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--text-2); }
.service-card ul li { padding-left: 1rem; position: relative; }
.service-card ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--accent); }
.service-card .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.service-card--featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(249, 115, 22, 0.07), var(--surface) 60%); }
.card-badge { display: inline-block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--accent-line); border-radius: var(--r-sm); padding: 0.15rem 0.45rem; align-self: flex-start; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.feature { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.feature h3, .feature h4 { font-size: 1.02rem; margin-bottom: 0.3rem; letter-spacing: -0.005em; }
.feature p { color: var(--text-2); font-size: 0.94rem; }
.feature-list { display: grid; gap: 1.5rem; }

/* Notice / callout */
.notice { display: grid; grid-template-columns: 22px 1fr; gap: 0.9rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); font-size: 0.93rem; color: var(--text-2); }
.notice svg { width: 22px; height: 22px; color: var(--accent-text); margin-top: 2px; }
.notice strong { color: var(--text); }
.notice--info { border-left-color: var(--info); }
.notice--info svg { color: var(--info); }

.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; }
.svc-actions { flex-direction: column; }

/* ---------- 8. Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.process-step { position: relative; padding: 1.5rem 1.25rem 0 0; }
.process-step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.process-step::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border: 2px solid var(--accent); background: var(--bg); transform: rotate(45deg); }
.section--alt .process-step::after { background: var(--bg-2); }
.process-step .step-no { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-text); letter-spacing: 0.1em; display: block; margin-bottom: 0.5rem; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.9rem; color: var(--text-2); }
.process--4 { grid-template-columns: repeat(4, 1fr); }

/* Numbered workflow list (e.g. FEM) */
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; counter-reset: wf; }
.workflow li { background: var(--surface); padding: 1.25rem 1.25rem 1.35rem; counter-increment: wf; }
.workflow li::before { content: counter(wf, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--accent-text); letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.workflow strong { display: block; font-size: 0.98rem; margin-bottom: 0.25rem; }
.workflow span { color: var(--text-2); font-size: 0.88rem; display: block; line-height: 1.5; }
.workflow .phase { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 0.6rem; }

/* Check list */
.checklist { display: grid; gap: 0.6rem; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 0.65rem; color: var(--text-2); font-size: 0.95rem; }
.checklist li::before { content: ""; width: 14px; height: 14px; margin-top: 0.3em; border: 1.5px solid var(--accent); border-radius: 2px; background: linear-gradient(45deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%); }
.checklist--x li::before { border-color: var(--text-3); background: linear-gradient(45deg, transparent 45%, var(--text-3) 45%, var(--text-3) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--text-3) 45%, var(--text-3) 55%, transparent 55%); }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; }

/* ---------- 9. Specs / tables ---------- */
.spec-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-tabs { display: flex; border-bottom: 1px solid var(--line); }
.spec-tab { flex: 1; padding: 0.9rem 1rem; font-size: 0.88rem; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.spec-tab:hover { color: var(--text); }
.spec-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.spec-body { padding: 1.25rem 1.5rem 1.5rem; }
.spec-body[hidden] { display: none; }
.spec-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin-bottom: 1rem; background: var(--surface-2); }
.spec-list { display: grid; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--text-3); }
.spec-list dd { font-family: var(--mono); font-size: 0.85rem; text-align: right; color: var(--text); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.data-table, .pricing-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.data-table th, .pricing-table th { text-align: left; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.data-table td, .pricing-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.data-table tr:last-child td, .pricing-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child, .material-name { color: var(--text); font-weight: 600; }
.price-val { font-family: var(--mono); color: var(--text); font-weight: 600; white-space: nowrap; }
.price-unit { color: var(--text-3); font-size: 0.82rem; }
.material-type { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 0.15rem 0.5rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.material-type.is-technicky { border-color: var(--accent-line); color: var(--accent-text); }
.material-type.is-flexibilni { border-color: rgba(52, 211, 153, 0.4); color: var(--ok); }
.pricing-block { margin-top: 3rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.pricing-block-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.pricing-block-head p { color: var(--text-3); font-size: 0.85rem; }

/* Calculator */
.price-calculator { background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.calc-row { display: grid; grid-template-columns: 1fr 200px; gap: 1rem; margin-top: 1.25rem; }
.calc-result { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--bg-2); border: 1px dashed var(--line-strong); color: var(--text-2); font-size: 0.95rem; min-height: 3.4rem; }
.calc-price { display: inline-block; font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--accent-text); margin-left: 0.25rem; }
.calc-disclaimer { font-size: 0.8rem; color: var(--text-3); margin-top: 0.75rem; }

/* ---------- 10. Gallery & lightbox ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn { min-height: 40px; padding: 0.45rem 1rem; border-radius: var(--r); border: 1px solid var(--line-strong); font-size: 0.88rem; font-weight: 600; color: var(--text-2); transition: all 0.15s; }
.filter-btn:hover { color: var(--text); border-color: var(--text-3); }
.filter-btn.active, .filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; transition: opacity 0.25s, border-color 0.2s; }
.gallery-item:focus-visible { outline-offset: 2px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover { border-color: var(--line-strong); }
.gallery-overlay { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(17, 24, 68, 0.92)); }
.gallery-overlay-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.gallery-overlay-title { font-weight: 600; font-size: 0.92rem; line-height: 1.35; margin-top: 0.15rem; }
.gallery-empty { grid-column: 1 / -1; padding: 3rem; text-align: center; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 4rem 1rem; background: rgba(17, 24, 68, 0.96); }
.lightbox.active { display: flex; }
.lightbox-content { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lightbox-img { max-height: calc(100vh - 10rem); width: auto; object-fit: contain; border-radius: var(--r); }
.lightbox-caption { color: var(--text-2); font-size: 0.92rem; text-align: center; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); }
.lightbox button:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Work preview on homepage */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work-item { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.work-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-item:hover img { transform: scale(1.04); }
.work-item figcaption { padding: 0.8rem 1rem; display: grid; gap: 0.15rem; }
.work-item figcaption span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.work-item figcaption strong { font-size: 0.92rem; font-weight: 600; line-height: 1.35; }

/* ---------- 11. Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem); }
.form-card h2 { font-size: 1.4rem; }
.form-card > p { color: var(--text-2); font-size: 0.93rem; margin-top: 0.4rem; }
.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form fieldset { border: 0; display: grid; gap: 1.1rem; }
.form legend { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); padding-bottom: 0.6rem; margin-bottom: 0.2rem; border-bottom: 1px solid var(--line); width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field .label { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.field label .opt, .field .label .opt { font-weight: 400; color: var(--text-3); }
.req { color: var(--accent-text); }
.field input, .field select, .field textarea, .price-calculator select, .price-calculator input {
  width: 100%; min-height: 46px; padding: 0.65rem 0.85rem; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select, .price-calculator select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px; }
.field select option { background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus, .price-calculator select:focus, .price-calculator input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-hint { font-size: 0.8rem; color: var(--text-3); }
.field-error { font-size: 0.8rem; color: var(--err); min-height: 0; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; align-items: start; font-size: 0.88rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.file-upload-zone { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 1.5rem 1rem; text-align: center; background: var(--bg-2); transition: border-color 0.15s, background-color 0.15s; }
.file-upload-zone:hover, .file-upload-zone.drag-over, .file-upload-zone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.file-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-upload-zone svg { width: 28px; height: 28px; margin: 0 auto 0.5rem; color: var(--accent-text); }
.file-upload-text { font-size: 0.92rem; color: var(--text-2); }
.file-upload-text strong { color: var(--text); }
.file-upload-hint { font-family: var(--mono); font-size: 0.7rem; color: var(--text-3); margin-top: 0.35rem; letter-spacing: 0.02em; }
.file-upload-warning { color: var(--err); font-size: 0.82rem; margin-top: 0.5rem; }
.file-list { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.file-item { position: relative; z-index: 2; display: grid; grid-template-columns: 16px 1fr auto 32px; gap: 0.6rem; align-items: center; text-align: left; padding: 0.45rem 0.6rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; }
.file-item svg { width: 14px; height: 14px; margin: 0; color: var(--text-3); }
.file-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); }
.file-item-remove { width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.file-item-remove:hover { color: var(--err); background: rgba(248, 113, 113, 0.1); }
.form-status { padding: 0.9rem 1rem; border-radius: var(--r); font-size: 0.92rem; border: 1px solid; }
.form-status[hidden] { display: none; }
.form-status.is-ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.form-status.is-err { color: var(--err); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }
.form-foot { font-size: 0.8rem; color: var(--text-3); }
.spin { width: 18px; height: 18px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact blocks */
.contact-list { display: grid; gap: 0.75rem; }
.contact-row { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color 0.15s; }
a.contact-row:hover { border-color: var(--line-strong); }
.contact-row small { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.contact-row span { font-weight: 600; word-break: break-word; }
.map-box { position: relative; aspect-ratio: 16 / 7; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface) ; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box p { color: var(--text-2); font-size: 0.9rem; max-width: 32rem; margin: 0 auto 1rem; }

/* ---------- 12. Misc components ---------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(2rem, 1.5rem + 3vw, 3.75rem); background: linear-gradient(135deg, var(--surface), var(--bg-2)); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.cta-band::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.cta-band p { color: var(--text-2); margin-top: 0.75rem; max-width: 40rem; }

.faq { display: grid; gap: 0.6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--text-2); font-size: 0.95rem; }

.figure-img { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.figure-img img { width: 100%; height: 100%; object-fit: cover; }
.img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.img-grid .figure-img { aspect-ratio: 4 / 3; }
.img-grid .figure-img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.kpi { padding: 1.25rem 1.4rem; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.kpi dd { font-family: var(--mono); font-size: 1.1rem; font-weight: 600; margin-top: 0.3rem; }
.kpi dd small { display: block; font-family: var(--font); font-size: 0.8rem; font-weight: 400; color: var(--text-2); margin-top: 0.15rem; }

/* About */
.about-photo { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.about-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; background: linear-gradient(transparent, rgba(17, 24, 68, 0.95)); }
.about-photo figcaption strong { display: block; }
.about-photo figcaption span { font-size: 0.82rem; color: var(--text-2); }
.skill-tags, [data-cms="about-skills"] { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag { font-family: var(--mono); font-size: 0.75rem; padding: 0.3rem 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text-2); background: var(--surface); }
.about-bio p + p { margin-top: 1rem; }
.about-bio p { color: var(--text-2); }
.timeline { position: relative; display: grid; gap: 0; padding-left: 1.5rem; border-left: 1px solid var(--line-strong); }
.timeline-category { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: 2rem 0 0.75rem; }
.timeline-category:first-child { margin-top: 0; }
.timeline-item { position: relative; padding: 0.4rem 0 1.25rem; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1.5rem - 5px); top: 0.75rem; width: 9px; height: 9px; background: var(--bg); border: 2px solid var(--text-3); transform: rotate(45deg); }
.timeline-year { font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }
.timeline-title { font-weight: 600; margin-top: 0.1rem; }
.timeline-desc { color: var(--text-2); font-size: 0.92rem; margin-top: 0.2rem; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.review-stars { color: var(--accent-text); letter-spacing: 0.15em; }
.star-empty { color: var(--line-strong); }
.review-text { color: var(--text-2); font-size: 0.95rem; }
.review-author { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; font-size: 0.85rem; }
.review-name { font-weight: 600; }
.review-service { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); }

/* 404 */
.error-page { min-height: calc(100vh - var(--header-h) - 200px); display: flex; align-items: center; }
.error-code { font-family: var(--mono); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }

/* ---------- 13. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand p { color: var(--text-2); margin-top: 1rem; max-width: 22rem; }
.footer-col h2 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-2); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent-text); }
.footer-contact li { color: var(--text-2); }
.footer-contact small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.footer-bottom { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; color: var(--text-3); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--accent-text); }


/* ---------- Světlý režim: doplňky ---------- */
.page-hero { background: var(--navy-dark); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at 90% 0%, rgba(249, 115, 22, 0.14), transparent 65%), radial-gradient(420px circle at 0% 100%, rgba(59, 130, 246, 0.12), transparent 65%); pointer-events: none; }
.site-footer { background: var(--navy-dark); }
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); box-shadow: var(--shadow); }
.card, .spec-panel, .table-scroll, .form-card, .contact-row, .work-item, .faq details, .review-card, .kpi-row, .price-calculator { box-shadow: var(--shadow-sm); }
.card--link:hover { box-shadow: var(--shadow); }
.card--plain { box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }
.eyebrow::before { background: var(--blue); }
.site-header .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before, .cta-band .eyebrow::before { background: currentColor; }
.workflow li { background: var(--surface); }
.gallery-overlay-tag { color: #fb923c; }
.gallery-overlay-title { color: #fff; }
.about-photo { background: linear-gradient(180deg, #edf1fb, #dde3f2); }
.data-table th, .pricing-table th { background: var(--bg-2); }
.notice { background: var(--surface-2); }


/* ---------- Původní animace úvodní obrazovky (PrintLab) ---------- */
.gradient-text { background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--classic::after { display: none; }
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: orbFloat 8s ease-in-out infinite; }
.hero-orb-1 { width: 500px; height: 500px; top: -10%; right: 5%; background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 70%); }
.hero-orb-2 { width: 400px; height: 400px; bottom: 10%; left: 5%; background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%); animation-delay: -4s; }
.hero-orb-3 { width: 300px; height: 300px; top: 40%; left: 40%; background: radial-gradient(circle, rgba(249, 115, 22, 0.10) 0%, transparent 70%); animation-delay: -2s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(20px, -20px) scale(1.05); } 66% { transform: translate(-15px, 15px) scale(0.97); } }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 28px; border-radius: 999px; border: 1px solid rgba(34, 197, 94, 0.55); background: rgba(34, 197, 94, 0.08); color: #22c55e; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; animation: badgeBlink 1.4s ease-in-out infinite; }
.badge-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #22c55e; animation: dotPulse 1.4s ease-in-out infinite; }
@keyframes badgeBlink { 0%, 100% { border-color: rgba(34, 197, 94, 0.55); box-shadow: 0 0 8px rgba(34, 197, 94, 0.2); } 50% { border-color: rgba(34, 197, 94, 0.2); box-shadow: 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 50% { opacity: 0.8; transform: scale(1.4); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); } }
.hero--classic h1 > span { display: block; }
.hero--classic h1 { font-weight: 800; }
.hero-stat-num { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem) !important; font-weight: 800 !important; line-height: 1.1; margin: 0 0 0.25rem !important; }

.hero-logo-wrap { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-inline: auto; }
.hero-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(249, 115, 22, 0.22); animation: ringSpin 20s linear infinite; }
.hero-ring-2 { inset: 40px; border-color: rgba(59, 130, 246, 0.2); animation-direction: reverse; animation-duration: 15s; }
.hero-ring-3 { inset: 80px; border-color: rgba(249, 115, 22, 0.12); animation-duration: 10s; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero-logo-img { position: absolute; top: 50%; left: 50%; z-index: 2; width: 26%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.15)) drop-shadow(0 0 14px rgba(249, 115, 22, 0.3)); animation: iconFloat 5s ease-in-out infinite; }
@keyframes iconFloat { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -55%) scale(1.05); } }
.hero-3d-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25); transition: border-color 0.25s, box-shadow 0.25s; animation: floatCard 6s ease-in-out infinite; }
.hero-3d-card:hover { border-color: rgba(249, 115, 22, 0.5); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.hero-3d-card .card-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(249, 115, 22, 0.15); color: var(--accent); }
.hero-3d-card .card-icon svg { width: 20px; height: 20px; }
.hero-3d-card .card-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.hero-3d-card .card-value { font-size: 0.9rem; font-weight: 600; color: #fff; white-space: nowrap; }
.card-top-left { top: 0; left: -2%; }
.card-top-right { top: 15%; right: -2%; animation-delay: 1.5s; }
.card-mid-left { top: 44%; left: -18%; animation-delay: 0.75s; border-color: rgba(249, 115, 22, 0.45); }
.card-bottom-left { bottom: 14%; left: -2%; animation-delay: 3s; }
.card-bottom-right { bottom: 0; right: -2%; animation-delay: 4.5s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats-strip { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stat-number { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-weight: 800; color: #fff; }
.stats-strip .text-accent { color: #fb923c; }
.stat-label { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-top: 0.25rem; }
@media (max-width: 1024px) { .hero-logo-wrap { max-width: 400px; } .card-mid-left { left: -10%; } }
@media (max-width: 960px) { .hero--classic .hero-visual { order: -1; max-width: 380px; margin-inline: auto; width: 100%; } }
@media (max-width: 768px) { .hero-3d-card { display: none; } .hero-logo-img { width: 36%; } }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 1.25rem; } .stat-item + .stat-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; } .hero--classic .hero-visual { max-width: 280px; } }


/* ---------- Původní vizuál PrintLab: logo, menu, štítky, záhlaví, CTA ---------- */
.section-head { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { margin-inline: auto; max-width: 640px; }
.brand { gap: 0.75rem; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.35)); transition: filter 0.25s; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.6)); }
.brand-word { font-size: 1.05rem; letter-spacing: 0.06em; }
.brand-sub { font-family: var(--font); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.72); white-space: nowrap; margin-top: 3px; }
.site-header.is-scrolled { background: rgba(10, 15, 40, 0.97); border-bottom: 2px solid rgba(249, 115, 22, 0.55); }
.nav-cta { box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }

.eyebrow { padding: 6px 14px; border: 1px solid rgba(249, 115, 22, 0.55); border-radius: 999px; background: rgba(249, 115, 22, 0.10); font-family: var(--font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; animation: labelPulse 1.8s ease-in-out infinite; }
.eyebrow::before, .site-header .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before, .cta-band .eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-hero .eyebrow { animation: sectionBlink 1.4s ease-in-out infinite; }
@keyframes labelPulse { 0%, 100% { border-color: rgba(249, 115, 22, 0.55); box-shadow: 0 0 8px rgba(249, 115, 22, 0.25); } 50% { border-color: rgba(249, 115, 22, 0.18); box-shadow: 0 0 0 rgba(249, 115, 22, 0); } }
@keyframes sectionBlink { 0%, 100% { border-color: rgba(249, 115, 22, 0.75); box-shadow: 0 0 10px rgba(249, 115, 22, 0.35), 0 0 0 2px rgba(249, 115, 22, 0.10); } 50% { border-color: rgba(249, 115, 22, 0.2); box-shadow: 0 0 0 rgba(249, 115, 22, 0); } }

.page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
.page-hero-text { flex: 1; min-width: 0; }
.page-header-logo { position: relative; flex-shrink: 0; width: 220px; height: 220px; }
.ph-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(249, 115, 22, 0.28); animation: ringSpin 22s linear infinite; }
.ph-ring-2 { inset: 30px; border-color: rgba(59, 130, 246, 0.22); animation-direction: reverse; animation-duration: 15s; }
.ph-ring-3 { inset: 60px; border-color: rgba(249, 115, 22, 0.14); animation-duration: 9s; }
.ph-logo-img { position: absolute; top: 50%; left: 50%; width: 38%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.18)) drop-shadow(0 0 10px rgba(249, 115, 22, 0.25)); animation: phLogoFloat 5s ease-in-out infinite, phLogoBlink 3s ease-in-out infinite 0.4s; }
@keyframes phLogoFloat { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -56%) scale(1.04); } }
@keyframes phLogoBlink { 0%, 100% { filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.22)) drop-shadow(0 0 14px rgba(249, 115, 22, 0.32)); } 50% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.05)) drop-shadow(0 0 3px rgba(249, 115, 22, 0.08)); } }
.page-hero h1 { max-width: none; }

.cta-band .btn { animation: ctaBtnPulse 2s ease-in-out infinite; }
.cta-band .btn-ghost { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation-delay: 1s; }
.cta-band .btn-ghost:hover { background: var(--accent-hover); }
@keyframes ctaBtnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); } }

.service-card { text-align: left; }
.service-card .tags { margin-top: auto; }
.service-card .link-arrow { margin-top: 0; padding-top: 0.25rem; }
@media (max-width: 960px) { .page-header-logo { display: none; } }
@media (max-width: 380px) { .brand-sub { display: none; } }

/* ---------- 14. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Omezení animací (nastavení systému): vypínají se jen větší pohyby,
   jemné prvky (blikání štítků, pulz, rotace kruhů, hover) zůstávají. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  .hero-text > *, .hero-visual, .hero-3d-card, .hero-logo-img, .hero-orb { animation: none !important; }
  .ph-logo-img { animation: phLogoBlink 3s ease-in-out infinite 0.4s !important; }
  .card--link:hover, .hero-3d-card:hover { transform: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-link { padding: 0.5rem 0.55rem; font-size: 0.88rem; }
  .brand-sub { display: none; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { padding: 1rem 0.25rem; font-size: 1.05rem; width: 100%; border-radius: 0; }
  .nav-link:hover { background: transparent; }
  .nav-caret { display: none; }
  .nav-sub { position: static; width: auto; transform: none; opacity: 1; visibility: inherit; border: 0; background: transparent; box-shadow: none; padding: 0 0 0.75rem; }
  .nav-sub::before { display: none; }
  .nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { transform: none; visibility: inherit; }
  .nav-sub a { padding: 0.55rem 0.25rem; }
  .nav-cta { margin: 1.5rem 0 0; width: 100%; }
  body.nav-open { overflow: hidden; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .grid-3, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-photo { max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 0.98rem; }
  .grid-2, .grid-3, .grid-4, .work-grid, .form-row, .form-row--3, .calc-row, .checklist.cols-2 { grid-template-columns: 1fr; }
  .process, .process--4 { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .workflow { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-fact { margin-right: 0; padding: 0.9rem 0.75rem 0 0; }
  .hero-fact + .hero-fact { padding-left: 0.75rem; }
  .hero-fact:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 0.9rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .svc-row { grid-template-columns: 1fr; gap: 1rem; }
  .svc-actions { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-code { display: none; }
  .map-box { aspect-ratio: 4 / 3; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .spec-list div { flex-direction: column; gap: 0.1rem; }
  .spec-list dd { text-align: left; }
}
@media (max-width: 380px) {
  .brand-word { font-size: 1.05rem; }
  .brand-symbol { width: 30px; height: 30px; }
  .kpi-row { grid-template-columns: 1fr; }
  .kpi + .kpi { border-left: 0; border-top: 1px solid var(--line); }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}

/* Podtitul loga: skrytý jen v úzkém desktopu (961–1100 px) a pod 380 px */
@media (max-width: 960px) and (min-width: 381px) { .brand-sub { display: block; } }
.checklist li::before { width: 18px; height: 18px; margin-top: 0.22em; border: 0; border-radius: 50%; background: rgba(249, 115, 22, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* =========================================================
   FINÁLNÍ VIZUÁL — B · GRAPHITE (tmavý průmyslový minimalismus)
   Přepisuje tokeny výše; navy/světlé sekce → grafit, oranžový akcent.
   ========================================================= */
:root, .site-header, .hero, .page-hero, .cta-band, .site-footer, .lightbox, .fem-figure, .about-photo figcaption, .theme-dark {
  --navy: #15181d; --navy-dark: #0d0f12; --navy-mid: #1c2027; --blue: #64748b;
  --bg: #0d0f12; --bg-2: #121519; --surface: #171a1f; --surface-2: #1d2128;
  --line: #262b33; --line-strong: #363d47; --grid: rgba(255, 255, 255, 0.03);
  --text: #eceef2; --text-2: #a9b0bb; --text-3: #8b93a0;
  --accent: #ff6b1a; --accent-hover: #ff8540; --accent-text: #ff8a47; --accent-ink: #0d0f12;
  --accent-soft: rgba(255, 107, 26, 0.1); --accent-line: rgba(255, 107, 26, 0.4);
  --ok: #34d399; --err: #f87171; --info: #93c5fd;
  --r-sm: 3px; --r: 4px; --r-lg: 6px;
  --shadow-sm: none; --shadow: none;
}
body { background: var(--bg); color: var(--text); }
.site-header { background: rgba(13, 15, 18, 0.9); }
.site-header.is-scrolled { border-bottom: 1px solid var(--line); }
.hero::after, .page-hero::after, .hero-orb-2, .hero-orb-3 { display: none; }
.hero-orb-1 { opacity: 0.6; }
.section--alt { background: var(--bg-2); }
.hero-ring { border-width: 1px; border-color: rgba(255, 255, 255, 0.1); }
.hero-ring-2 { border-color: rgba(255, 107, 26, 0.35); }
.hero-ring-3 { border-color: rgba(255, 255, 255, 0.06); }
.ph-ring { border-width: 1px; border-color: rgba(255, 255, 255, 0.1); }
.ph-ring-2 { border-color: rgba(255, 107, 26, 0.35); }
.hero-3d-card { background: rgba(23, 26, 31, 0.9); border-color: var(--line-strong); border-radius: 6px; box-shadow: none; }
.hero-badge { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); animation: none; }
.badge-dot { background: var(--accent); animation: none; }
/* štítky: mono, bez blikání */
.eyebrow { border: 0; background: none; padding: 0; font-family: var(--mono); color: var(--accent-text); animation: none; }
.eyebrow::before { width: 22px; height: 1px; border-radius: 0; }
.btn-primary { background: var(--accent); box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); }
.cta-band .btn { animation: none; }
.cta-band .btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.stats-strip { background: var(--bg-2); border-block: 1px solid var(--line); }
.stat-number { font-family: var(--mono); font-weight: 600; }
.cta-band { background: var(--surface); }
.service-card--featured { background: linear-gradient(180deg, rgba(255, 107, 26, 0.08), var(--surface) 60%); }
.about-photo { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.gradient-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }
.nav-sub { background: var(--surface); }

/* =========================================================
   Oznámení o rebrandingu + jednoduché animace
   ========================================================= */
.rebrand-bar { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.rebrand-inner { display: flex; align-items: center; gap: 1rem; padding-block: 0.75rem; }
.rebrand-tag { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; padding: 4px 10px; border: 1px solid var(--accent-line); border-radius: var(--r-sm); font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.rebrand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dotPulse 1.6s ease-in-out infinite; }
.rebrand-bar p { font-size: 0.88rem; color: var(--text-2); line-height: 1.5; }
.rebrand-bar strong { color: var(--text); }
/* „staveniště“: posouvající se pruhy = web v procesu */
.rebrand-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 28px); background-size: 28px 2px; animation: stripes 1.2s linear infinite; opacity: 0.8; }
@keyframes stripes { to { background-position: 28px 0; } }
@media (max-width: 640px) { .rebrand-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; } }

/* ukazatel průběhu čtení */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: scrollGrow linear both; animation-timeline: scroll(root); }
  @keyframes scrollGrow { to { transform: scaleX(1); } }
}

/* vstup hero textu */
.hero-text > * { animation: heroIn 0.7s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-text > :nth-child(5) { animation-delay: 0.32s; }
.hero-visual { animation: fadeScale 0.9s var(--ease) 0.2s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.96); } }

/* postupné (stagger) zobrazení položek v mřížkách */
:is(.grid-2, .grid-3, .grid-4, .process, .work-grid) > .reveal:nth-child(2) { transition-delay: 0.08s; }
:is(.grid-2, .grid-3, .grid-4, .process, .work-grid) > .reveal:nth-child(3) { transition-delay: 0.16s; }
:is(.grid-2, .grid-3, .grid-4, .process, .work-grid) > .reveal:nth-child(4) { transition-delay: 0.24s; }
:is(.grid-2, .grid-3, .grid-4, .process, .work-grid) > .reveal:nth-child(5) { transition-delay: 0.32s; }
:is(.grid-2, .grid-3, .grid-4, .process, .work-grid) > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* nadpis sekce: oranžová linka se „vykreslí“ po zobrazení */
.section-head h2::after { content: ""; display: block; width: 0; height: 2px; margin: 0.9rem auto 0; background: var(--accent); transition: width 0.7s var(--ease) 0.25s; }
.section-head.visible h2::after, .no-js .section-head h2::after { width: 56px; }

/* karty: linka nahoře + pohyb ikony při najetí */
.card--link { overflow: hidden; }
.card--link::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.4s var(--ease); }
.card--link:hover::after, .card--link:focus-within::after { width: 100%; }
.card .ico, .feature .ico { transition: transform 0.3s var(--ease), background-color 0.3s; }
.card:hover .ico, .feature:hover .ico { transform: translateY(-2px) rotate(-6deg); background: rgba(255, 107, 26, 0.18); }

/* tlačítka: odlesk při najetí */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-20deg); transition: left 0.6s var(--ease); pointer-events: none; }
.btn-primary:hover::after { left: 120%; }

/* proces: značka kroku „naskočí“ */
.process-step.visible::after { animation: markerPop 0.6s var(--ease) 0.2s both; }
@keyframes markerPop { 0% { transform: rotate(45deg) scale(0); } 70% { transform: rotate(45deg) scale(1.3); } 100% { transform: rotate(45deg) scale(1); } }

/* FAQ: plynulé rozbalení */
.faq details[open] > div { animation: fadeDown 0.3s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* tabulky: zvýraznění řádku */
.pricing-table tbody tr, .data-table tbody tr { transition: background-color 0.2s; }
.pricing-table tbody tr:hover, .data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }



/* ---------- Logo VectoFab (img/brand) ---------- */
.brand { gap: 0.7rem; }
.brand-logo { width: auto; height: 40px; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.25)); }
.brand:hover .brand-logo { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.45)); }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-wordmark { display: block; height: 14px; width: auto; }
.brand-sub { margin-top: 0; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 180px; height: auto; }
.hero-logo-img { width: 34%; filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.25)) drop-shadow(0 0 12px rgba(255, 107, 26, 0.2)); }
.ph-logo-img { width: 46%; }
@keyframes phLogoBlink { 0%, 100% { filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.3)) drop-shadow(0 0 10px rgba(255, 107, 26, 0.25)); } 50% { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.08)); } }
@media (max-width: 768px) { .hero-logo-img { width: 42%; } }
@media (max-width: 380px) { .brand-logo { height: 34px; } .brand-wordmark { height: 12px; } }

/* =========================================================
   Další animační prvky (revize 7) – jemné, technické
   ========================================================= */
/* navigace: oranžová linka pod odkazem */
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.brand-logo { transition: transform 0.4s var(--ease), filter 0.3s; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }

/* patička: posun odkazu */
.footer-col a { display: inline-block; transition: color 0.15s, transform 0.2s var(--ease); }
.footer-col a:hover { transform: translateX(4px); }

/* zvýrazněný text: pomalý odlesk */
.gradient-text { background: linear-gradient(100deg, var(--accent) 40%, #ffc49e 50%, var(--accent) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* karty služeb: šipka, štítek Nová služba */
.link-arrow .arrow { transition: transform 0.25s var(--ease); }
.card:hover .link-arrow .arrow { transform: translateX(5px); }
.card-badge { animation: badgeGlow 2.4s ease-in-out infinite; }
@keyframes badgeGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(255, 107, 26, 0); } }
.tag { transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.card:hover .tag { transform: translateY(-1px); }

/* výhody: ikona se rozzáří */
.feature .ico { position: relative; }
.feature .ico::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); border-radius: inherit; opacity: 0; transform: scale(1); }
.feature:hover .ico::after { animation: ripple 0.8s var(--ease); }
@keyframes ripple { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }

/* statistiky */
.stat-item { transition: transform 0.25s var(--ease); }
.stat-item:hover { transform: translateY(-3px); }
.stat-item:hover .stat-number { color: var(--accent-text); }

/* CTA blok: pohyblivá rastrová síť a pulz linky */
.cta-band::before { animation: gridDrift 18s linear infinite; }
@keyframes gridDrift { to { background-position: 24px 24px, 24px 24px; } }
.cta-band::after { animation: barPulse 3s ease-in-out infinite; }
@keyframes barPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0); } 50% { box-shadow: 0 0 14px 1px rgba(255, 107, 26, 0.6); } }

/* přepínání tiskáren: plynulé zobrazení panelu */
.spec-body:not([hidden]) { animation: fadeDown 0.35s var(--ease); }

/* dovednosti: najetí */
.skill-tag { transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.skill-tag:hover { border-color: var(--accent-line); color: var(--accent-text); transform: translateY(-2px); }

/* časová osa: kosočtverec se rozsvítí */
.timeline-item::before { transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.timeline-item:hover::before { background: var(--accent); border-color: var(--accent); transform: rotate(225deg); }
.timeline-item:hover .timeline-year { color: var(--accent-text); }

/* prvky se objevují při scrollování (bez JS, jen kde to prohlížeč umí) */
@supports (animation-timeline: view()) {
  .timeline-item, .timeline-category, .skill-tag, .feature, .checklist li, .pricing-table tbody tr, .data-table tbody tr {
    animation: viewIn linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
  }
  .timeline::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: 0 0; animation: lineDraw linear both; animation-timeline: view(); animation-range: entry 20% cover 70%; }
  @keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
  @keyframes lineDraw { from { transform: scaleY(0); } }
}

/* =========================================================
   Hero grafika (revize 8): 4 karty pravidelně po obvodu kruhu + blikání loga
   ========================================================= */
/* střed karty leží na kružnici (r = 50 %) v úhlech 45° → 50 % ± 35,36 % */
.hero-3d-card { min-width: 212px; translate: -50% -50%; right: auto; bottom: auto; }
.card-top-left     { top: 14.64%; left: 14.64%; animation-delay: 0s; }
.card-top-right    { top: 14.64%; left: 85.36%; animation-delay: 1.5s; }
.card-bottom-right { top: 85.36%; left: 85.36%; animation-delay: 3s; }
.card-bottom-left  { top: 85.36%; left: 14.64%; animation-delay: 4.5s; border-color: rgba(255, 107, 26, 0.45); }
/* blikání loga: záře pulzuje, krátký „záblesk“ */
.hero-logo-img { animation: iconFloat 5s ease-in-out infinite, heroLogoBlink 3.2s ease-in-out infinite; }
@keyframes heroLogoBlink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.35)) drop-shadow(0 0 12px rgba(255, 107, 26, 0.3)); }
  45% { opacity: 0.75; filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.08)); }
  52% { opacity: 1; filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 18px rgba(255, 107, 26, 0.5)); }
}
@media (max-width: 1100px) and (min-width: 961px) { .hero-logo-wrap { max-width: 360px; } }
@media (max-width: 1024px) { .hero-3d-card { min-width: 0; padding: 12px 14px; } .hero-3d-card .card-value { font-size: 0.85rem; } }
@media (prefers-reduced-motion: reduce) { .hero-logo-img { animation: heroLogoBlink 3.2s ease-in-out infinite !important; } }

/* hero štítek: oddělovače služeb */
.badge-sep { margin-inline: 0.55em; opacity: 0.55; }
.hero-badge .nowrap { white-space: nowrap; }
@media (max-width: 480px) { .badge-sep { margin-inline: 0.35em; } .hero-badge { letter-spacing: 0.06em; } }
