/* =============================================================
   CE ENGINEERING — SHARED STYLESHEET
   Sdílený stylesheet pro všechny stránky webu
   ============================================================= */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand barvy (z loga CE Engineering) */
  --navy:    #1D315D;        /* tmavé plochy */
  --ink:     #22406E;        /* barva nadpisů — změkčeno */
  --teal:    #17758D;
  --teal-lt: #4DD0DC;
  --teal-dk: #125768;        /* tmavší teal pro velká čísla — čitelnost */

  /* Neutrály */
  --white:   #FFFFFF;
  --off:     #F1F4F8;        /* studená modrošedá - sjednoceno s navy z brandu */
  --bg:      #F4F6F8;        /* sekce pozadí */
  --border:  #E0E5EA;

  --r:       6px;            /* zaoblení karet a bloků */
  --r-sm:    4px;            /* zaoblení tlačítek a štítků */
  --muted:   #646B79;        /* sekundární text — ztmaveno kvůli kontrastu AA */
  --text:    #1A2333;        /* hlavní text */
  --dk:      #0F1115;        /* tmavý footer / hero */
  --lt:      rgba(255,255,255,0.85);

}

/* ── RESET A ZÁKLADY ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ── ACCESSIBILITY ── */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.skip-link {
  border-radius: var(--r-sm);
  position: absolute; top: -100px; left: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; z-index: 9999; text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}


/* ── NAVIGACE ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--teal);
  box-shadow: 0 4px 14px rgba(29, 49, 93, 0.07);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.875rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* Motto vedle loga (italikou, jen pro hero motto v navi) */
.nav-motto {
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--teal);
  line-height: 1.2;
  margin-left: 0.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
}
.nav-links li { margin: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
}
/* Pravostranná sekce navigace (Know-how) */
/* Oddělovač před položkou Know-how — ta je zatím skrytá, pravidlo ponecháno pro její návrat */
.nav-links li.nav-aside {
  margin-left: 1rem;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}
.nav-links li.nav-aside a {
  color: var(--teal);
}
.nav-links li.nav-aside a:hover,
.nav-links li.nav-aside a.active {
  color: var(--ink);
}

/* Hamburger pro mobil */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TLAČÍTKA ── */
.btn {
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--teal); }
.btn .arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── SVG ŠIPKY (interní → vs externí ↗) ── */
.ico-arrow {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  flex-shrink: 0;
}
/* Šipka uvnitř textových odkazů (btn-ghost apod.) */
.arrow .ico-arrow { width: 1.1em; height: 1.1em; }
/* Animace interní šipky na hover rodiče */
.btn-ghost:hover .ico-arrow,
a:hover > .arrow .ico-arrow { transform: translateX(2px); transition: transform 0.2s; }
.arrow .ico-arrow { transition: transform 0.2s; }
/* Externí šipka — animace diagonálně */
.office-link-icon .ico-arrow-ext { width: 0.85em; height: 0.85em; }
.office-address:hover .ico-arrow-ext { transform: translate(2px, -2px); transition: transform 0.2s; }
.ico-arrow-ext { transition: transform 0.2s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, #1D315D 0%, #0F1115 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Hero s fotkou v pozadí — řešení přes <img> tag + ::before overlay.
   Toto je nejrobustnější přístup: žádné CSS variables uvnitř shorthand. */
.hero-with-photo {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
}
.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero-with-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(29, 49, 93, 0.85) 0%, rgba(15, 17, 21, 0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-with-photo > .container,
.hero-with-photo > .hero-content {
  position: relative;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: var(--white);
  max-width: 850px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-lt);
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 700px;
  color: var(--lt);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  background: var(--teal);
}
.hero-actions .btn-primary:hover {
  background: var(--teal-lt);
  color: var(--ink);
}
.hero-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* Hero menší pro vnitřní stránky */
.hero-page {
  padding: 4rem 0 3rem;
}
.hero-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.hero-page .hero-lead {
  font-size: 1rem;
  margin-bottom: 0;
}


/* ── ČÍSLA (pás pod hero) ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
  padding: 0 1rem;
}
.stat-num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--teal-dk);
  letter-spacing: -0.03em;
}
.stat-plus {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}
.stat-label {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 15rem;
  margin-left: auto;
  margin-right: auto;
}
.stats-note {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}
.stats-note p { margin: 0; }
.stats-note .cei-mention { margin-top: 1.25rem; }
.stats-note .cei-mention img { height: 40px; }

/* ── GRID PATTERNS ── */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Odsazení cílů kotev pod sticky navigaci (výška navu = 120px) */
:target,
section[id],
main[id] { scroll-margin-top: 120px; }

/* ── CTA SEKCE (společná) ── */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-band p {
  color: var(--lt);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.cta-band .btn-primary {
  background: var(--teal);
}
.cta-band .btn-primary:hover {
  background: var(--teal-lt);
  color: var(--ink);
}


/* ── FADE-IN ANIMACE ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── BACK TO TOP ── */
.back-to-top {
  border-radius: var(--r-sm);
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--teal);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dk);
  color: var(--white);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}
/* Sloupec 1: Logo + LinkedIn */
.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-brand-logo { display: block; line-height: 1; }
.footer-brand-logo img {
  height: 52px; width: auto; display: block;
}
.footer-social { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-social-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.footer-linkedin {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.footer-linkedin svg {
  width: 18px; height: 18px;
  fill: currentColor;
}
.footer-linkedin:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dk);
}
/* Sloupec 2: Navigace */
.footer-nav-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex; flex-direction: column;
  gap: 0.6rem; list-style: none; padding: 0;
}
.footer-links li { margin: 0; }
.footer-links a {
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
/* Sloupec 3: Skupina */
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-group-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.footer-group-link {
  display: inline-flex; flex-direction: column; gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  opacity: 0.85;
}
.footer-group-link:hover { opacity: 1; }
.footer-group-link img {
  height: 36px; width: auto; display: block;
}
.footer-group-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.55);
}
/* Spodní pruh */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-motto {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}
.footer-copy {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   INDEX.HTML — KOMPONENTY ÚVODNÍ STRÁNKY
   ============================================================ */

/* ── Alternativní pozadí pro sekce (AutoCAD-style grid: major + minor) ── */
.section-alt {
  background-color: var(--off);
  background-image:
    /* Major grid lines — každých 100 px, výraznější */
    linear-gradient(to right, rgba(29, 49, 93, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 49, 93, 0.14) 1px, transparent 1px),
    /* Minor grid lines — každých 20 px, jemnější */
    linear-gradient(to right, rgba(29, 49, 93, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 49, 93, 0.06) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: 0 0;
}

/* ── Společný lead pod sekcným nadpisem ── */
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── CTA pod sekcí (centrovaný „Všechny..." odkaz) ── */
.section-cta {
  margin-top: 3rem;
  text-align: center;
}


/* ── SLUŽBY (3 karty) ── */
.service-card {
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 49, 93, 0.06);
}
.service-card-num {
  border-radius: var(--r-sm);
  font-family: 'Manrope', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.service-card .btn-ghost {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  padding: 0;
}
.service-card .btn-ghost:hover { color: var(--ink); }


/* ── PILÍŘE (Proč CE Engineering) ── */
.pillar {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pillar h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.pillar p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SKUPINA CE INDUSTRIES blok ── */
.cei-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.cei-intro h2 { margin-bottom: 1.25rem; }
.cei-intro-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
}
.cei-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.cei-intro p strong { color: var(--ink); font-weight: 700; }
.cei-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.cei-benefit {
  border-radius: var(--r);
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 0.4rem;
  align-items: start;
  transition: border-color 0.2s;
}
.cei-benefit-icon { grid-column: 1; grid-row: 1 / 3; }
.cei-benefit:hover { border-color: var(--teal); }
.cei-benefit-icon {
  border-radius: var(--r);
  width: 36px; height: 36px;
  color: var(--teal);
  flex-shrink: 0;
}
.cei-benefit-icon svg { width: 100%; height: 100%; }
.cei-benefit h3 {
  grid-column: 2; grid-row: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.cei-benefit p {
  grid-column: 2; grid-row: 2;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}


/* ── CTA pruh úpravy ── */
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* ── RESPONSIVE pro index sekce ── */
@media (max-width: 1024px) {
  .cei-block { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .pillar { padding: 2rem 1rem; }
}

/* ============================================================
   O-NAS.HTML — KOMPONENTY STRÁNKY KDO JSME
   ============================================================ */

/* ── PROFIL TEXTU ── */
.about-text {
  max-width: 820px;
  margin-top: 2.5rem;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-text p strong { color: var(--ink); }

/* Malé klikací logo CE Industries pod textem Profilu */
.cei-mention {
  display: inline-block;
  border-radius: var(--r);
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cei-mention:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 49, 93, 0.06);
}
.cei-mention img {
  height: 44px;
  width: auto;
  display: block;
}

.sister-logos-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.section-dark .sister-logos-caption { color: rgba(255,255,255,0.65); }

.sister-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sister-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sister-logos a:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 49, 93, 0.06);
}
.sister-logos img { height: 20px; width: auto; display: block; }

/* ── ROLE KARTY (Naše role v projektech) ── */
#role .grid-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
#role .grid-3 .role-card {
  flex: 0 1 calc(33.333% - 1.5rem * 2 / 3);
  min-width: 260px;
}

.role-card {
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.role-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 49, 93, 0.06);
}
.role-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.role-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── TÝM KARTY (5 odborností s ikonami) ── */
.team-card {
  border-radius: var(--r);
  text-align: center;
  padding: 2rem 1.25rem;
}
.grid-5 .team-card { padding: 1.75rem 0.85rem; }
.grid-5 .team-card p { font-size: 0.9rem; }
.team-icon {
  border-radius: var(--r);
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin: 0 auto 1.25rem;
}
.team-icon svg {
  width: 100%;
  height: 100%;
}
.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.team-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HODNOTY (číslovaný seznam) ── */
.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
}
.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.value-item:first-child { border-top: none; padding-top: 1rem; }
.value-marker {
  font-family: 'Manrope', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
  line-height: 1;
  min-width: 60px;
  padding-top: 0.25rem;
}
.value-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.value-content p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── CERTIFIKÁTY A DOKUMENTY ── */
.cert-card {
  display: block;
  text-decoration: none;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.cert-grid { max-width: 720px; margin-left: auto; margin-right: auto; margin-top: 3rem; }
.cert-thumb {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}
.cert-download { font-size: 0.9rem; font-weight: 600; color: var(--teal); }
.cert-card:hover .cert-download { text-decoration: underline; }
.cert-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

/* ── RESPONSIVE pro O nás ── */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 .team-card { padding: 2rem 1.25rem; }
}
@media (max-width: 768px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .value-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .value-marker { font-size: 1.25rem; padding-top: 0; }
}

/* ============================================================
   SLUZBY.HTML — KOMPONENTY STRÁNKY SLUŽBY
   ============================================================ */

/* ── 6 SLUŽEB (číslovaný proces 01-06) ── */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 3rem;
  row-gap: 0;
  max-width: 1100px;
}
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.service-item:nth-child(4) { border-top: none; padding-top: 1rem; }
.service-item:first-child {
  border-top: none;
  padding-top: 1rem;
}
.service-marker {
  font-family: 'Manrope', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
  line-height: 1;
  min-width: 60px;
  padding-top: 0.25rem;
}
.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.service-content p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── 5 SPECIALIZACÍ (jednoduchá mřížka s názvy) ── */
.specializations {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.spec-card {
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.spec-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.spec-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.spec-card p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ── RESPONSIVE pro sluzby.html ── */
@media (max-width: 1024px) {
  .specializations { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .services-list {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
  .service-item:nth-child(4) {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }
  .service-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }
  .service-marker {
    font-size: 1.25rem;
    padding-top: 0;
  }
  .specializations { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .specializations { grid-template-columns: 1fr; }
}

/* ============================================================
   REFERENCE.HTML — KOMPONENTY STRÁNKY REFERENCE
   ============================================================ */


/* ── RESPONSIVE: reference ── */

/* ============================================================
   KARIERA.HTML — KOMPONENTY STRÁNKY KARIÉRA
   ============================================================ */

/* ── PROČ U NÁS — 4 karty 2×2 ── */
.career-card {
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.career-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 49, 93, 0.06);
}
.career-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.career-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── KOHO HLEDÁME — kategorie jako tagy ── */
.categories-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.category-tag {
  border-radius: var(--r-sm);
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}

/* ── REFERENCE — kategorie a rozbalovací seznam ── */
.ref-category { margin-top: 3.5rem; }
.ref-category:first-of-type { margin-top: 3rem; }
.ref-category-title {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.ref-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 2.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.ref-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ref-item { background: var(--white); }
.ref-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}
.ref-item summary::-webkit-details-marker { display: none; }
.ref-item summary:hover { background: var(--off); }
.ref-item summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

.ref-item-main { flex: 1; min-width: 0; }
.ref-item-title { font-size: 0.98rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ref-item-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.ref-item-year { font-size: 0.85rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

.ref-item-chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s; }
.ref-item[open] .ref-item-chevron { transform: rotate(90deg); }

.ref-item-body { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.ref-item-body dl { display: grid; grid-template-columns: 140px 1fr; gap: 0.5rem 1rem; margin: 1.1rem 0 1rem; font-size: 0.9rem; }
.ref-item-body dt { color: var(--muted); }
.ref-item-body dd { color: var(--ink); }
.ref-item-body p { font-size: 0.95rem; line-height: 1.7; color: var(--muted); }

@media (max-width: 600px) {
  .ref-item summary { flex-wrap: wrap; }
  .ref-item-main { flex-basis: 100%; }
  .ref-item-body dl { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .ref-item-body dt { font-weight: 600; margin-top: 0.5rem; }
}

/* ── OTEVŘENÉ POZICE ── */
.positions-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.position-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.position-card h3 { margin-bottom: 0.85rem; }
.position-card .btn { margin-top: auto; align-self: flex-start; }
.position-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 49, 93, 0.06);
}
.position-description {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.position-requirement { color: var(--ink); font-size: 0.88rem; font-weight: 600; margin-bottom: 1.5rem; }

/* Decentní výzva pod pozicemi */
.positions-note {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.positions-note a {
  color: var(--teal);
  font-weight: 600;
}
.positions-note a:hover { color: var(--ink); }

/* ── KONTAKT PRO UCHAZEČE ── */
.contact-person {
  border-radius: var(--r);
  padding: 1.75rem 0;
}
.contact-person-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.contact-person-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: var(--muted);
}
.contact-person-details a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
}
.contact-person-details a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.contact-divider {
  color: var(--border);
  font-weight: 400;
}

/* ── RESPONSIVE pro kariera.html ── */
@media (max-width: 768px) {
  .positions-list { grid-template-columns: 1fr; }
  .contact-person-details { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .contact-divider { display: none; }
}

/* ============================================================
   KONTAKT.HTML — KOMPONENTY STRÁNKY KONTAKT
   ============================================================ */

/* ── MAPA ČR (sekce Pobočky) ── */
.cz-map {
  border-radius: var(--r);
  max-width: 640px;
  margin: 2.5rem auto 0;
}
.cz-map img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── OFFICE KARTY (Praha sídlo, Plzeň, Ostrava) ── */
#pobocky .grid-3 { align-items: start; }
.office-card {
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.office-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 49, 93, 0.06);
}
.office-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.office-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.office-address {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.office-address:hover {
  color: var(--teal);
}
.office-link-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: var(--teal);
}

/* ── KONTAKTNÍ OSOBY ── */
.persons-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 720px;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  transition: border-color 0.2s;
}
.person-card:hover {
  border-color: var(--teal);
}
.person-role {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.person-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.person-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}
.person-contact a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.person-contact a:hover {
  color: var(--ink);
}

.kontakt-aside {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-left: 3px solid var(--teal);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.kontakt-aside strong {
  color: var(--ink);
}
.kontakt-aside a {
  color: var(--teal);
  font-weight: 600;
}

/* ── KONTAKTNÍ FORMULÁŘ ── */
.contact-form {
  max-width: 760px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-row .form-group {
  margin-bottom: 0;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-group .required {
  color: var(--teal);
  font-weight: 700;
}
.form-group input,
.form-group textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 117, 141, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  max-width: 380px;
  line-height: 1.5;
}

/* Poznámka pod formulářem (dokud není formulář funkční) */
.form-dev-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--off);
  border-left: 3px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
.form-dev-note strong {
  color: #DC2626;
}

/* ── FAKTURAČNÍ ÚDAJE ── */
.invoice-data {
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--border);
}
.invoice-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.invoice-row:last-child { border-bottom: none; }
.invoice-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-transform: uppercase;
}
.invoice-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* ── RESPONSIVE pro kontakt.html ── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group { margin-bottom: 1.25rem; }
  .form-actions { flex-direction: column; align-items: flex-start; }
  .invoice-row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 1.25rem; }
  .invoice-value { font-size: 0.95rem; }
  .person-contact { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .person-contact .contact-divider { display: none; }
}

/* ============================================================
   VISUAL REVISION — tmavé sekce + dělicí linie
   ============================================================ */

/* ── Tmavá sekce (navy pozadí) ── */
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2 {
  color: var(--white);
}
.section-dark .section-lead {
  color: rgba(255,255,255,0.85);
}
.section-dark p {
  color: rgba(255,255,255,0.85);
}
.section-dark strong {
  color: var(--white);
}
.section-dark a {
  color: var(--teal-lt);
}
.section-dark a:hover {
  color: var(--white);
}

/* CEI block v tmavé sekci */
.section-dark .cei-intro p strong {
  color: var(--white);
}
.section-dark .cei-benefit {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
.section-dark .cei-benefit:hover {
  border-color: var(--teal-lt);
  background: rgba(255,255,255,0.06);
}
.section-dark .cei-benefit-icon {
  color: var(--teal-lt);
}
.section-dark .cei-benefit h3 {
  color: var(--white);
}
.section-dark .cei-benefit p {
  color: rgba(255,255,255,0.7);
}

/* Btn outline v tmavé sekci - světlejší varianta */
.section-dark .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.section-dark .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* Focus stavy v tmavé sekci */
.section-dark *:focus-visible {
  outline-color: var(--teal-lt);
  outline-offset: 3px;
}

/* ── Sekce s foto-podkladem (tlumená fotka na tmavé sekci) ── */
.section-with-bg {
  position: relative;
  overflow: hidden;
}
.section-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.18;
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}
.section-with-bg > .container {
  position: relative;
  z-index: 1;
}

/* ── Dělicí linie nad sekcí ── */
.has-divider {
  border-top: 1px solid var(--border);
}

/* ============================================================
   END VISUAL REVISION
   ============================================================ */

.hero *:focus-visible,
footer *:focus-visible,
.cta-band *:focus-visible {
  outline-color: var(--teal-lt);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Motto v navi se skryje na užších viewportech (málo místa) */
@media (max-width: 1100px) {
  .nav-motto { display: none; }
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr; gap: 2.25rem; }
  .stat { padding: 0; }
  .stats-note { margin-top: 2.25rem; padding-top: 1.5rem; }

  .container { padding: 0 1.5rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }

  /* Na telefonu navigaci zmenšíme — jinak zabere pětinu obrazovky */
  .nav-inner { padding: 1.25rem 1.5rem; }
  .nav-logo img { height: 44px; }
  :target, section[id], main[id] { scroll-margin-top: 88px; }

  /* Mobilní menu */
  .nav-burger { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--teal);
    box-shadow: 0 4px 14px rgba(29, 49, 93, 0.07);
    padding: 1rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 14px;
  }
  .nav-links li.nav-aside {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { padding: 3rem 1.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .back-to-top { bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 0 2rem; }
}
