/* HERO (landing only) */

.hero {
  position: relative;
  background-image:
    linear-gradient(120deg, rgba(5, 22, 40, 0.9), rgba(5, 22, 40, 0.7)),
    url("https://www.nossberger.cz/wp-content/uploads/2018/06/cropped-AdobeStock_29390264-1-2.jpeg");
  background-size: 125% auto;
  background-position: left center; 
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0; 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 
  mask-image: linear-gradient(to right, black 0%, black 25%, transparent 55%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 55%);
  z-index: 0; 
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(63, 229, 143, 0.18) 0, transparent 32%, transparent 68%, rgba(56, 189, 248, 0.15) 100%),
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), transparent 55%),
    linear-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 260% 260%, 120% 120%, 40px 40px, 40px 40px;
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  min-height: clamp(360px, 65vh, 520px);
  display: flex;
  align-items: center;
  padding-block: 56px;
}

.hero__text { 
  max-width: 760px; 
  position: relative; 
  z-index: 1; 
}

.hero__kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 8px;
  color: rgba(148, 163, 184, 0.9);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
}

.hero__lead { 
  margin: 0 0 18px; 
  font-size: 15px; 
  max-width: 56rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* Třída pro zvýrazněný text */
.text-accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.text-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 4px;
  background-color: rgba(237, 125, 49, 0.4);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  animation: drawUnderline 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes drawUnderline {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* --- Pain points blok (Opravené mezery a rozložení) --- */
.hero__pain-points {
  display: grid;
  grid-template-columns: 1fr; /* Na mobilech pod sebou */
  gap: 1.5rem;
  margin-bottom: 0; /* OPRAVA 1: Zrušena ta obří spodní mezera */
}

/* OPRAVA 2: Na větších displejích natvrdo 3 sloupce vedle sebe */
@media (min-width: 768px) {
  .hero__pain-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero__pain-point {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  /* Zrušeno max-width: 260px, teď to řídí grid */
}

.hero__pain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(237, 125, 49, 0.1);
  border: 1px solid #ed7d31;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #ed7d31;
}

.hero__pain-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #ffffff;
}

/* CHIPS STATS */
.stats-section {
  position: relative;
  padding: 1rem 0; /* py-16 */
  background-color: var(--bg-foreground);
  color: var(--text-primary-foreground);
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Dekorativní rozmazané pozadí */
.stats-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.05;
  pointer-events: none; /* Aby pozadí neblokovalo klikání */
}

.blur-circle {
  position: absolute;
  width: 24rem; /* w-96 */
  height: 24rem; /* h-96 */
  background-color: var(--bg-primary);
  border-radius: 50%;
  filter: blur(64px); /* blur-3xl */
}

.blur-top-left {
  top: 0;
  left: 25%;
}

.blur-bottom-right {
  bottom: 0;
  right: 25%;
}

/* Kontejner pro obsah */
.stats-container {
  display: none;
  position: relative;
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem;
}

/* CSS Grid - Responzivita */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 sloupce na mobilu */
  gap: 2rem; /* gap-8 */
}

/* ... předchozí CSS zůstává ... */

@media (min-width: 640px) {
  .stats-container { padding: 0 1.5rem; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); /* 3 sloupce na tabletech */ }
}

@media (min-width: 1024px) {
  .stats-container { padding: 0 2rem; }
  /* ZMĚNA: Tady upravíme 6 sloupců na 5, aby to hezky sedělo */
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
}


/* --- SLUŽBY / OVERVIEW --- */

.container-sluzby-prubeh {
  padding-top: 1.5rem;
}

.services-section {
  padding: 4rem 0;
  background-color: var(--bg-background);
  border-top: 1px solid var(--line);
}

.section-header2 {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .services-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.service-overview-card {
  background: var(--panel, #fff);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.service-overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 125, 49, 0.22);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1024px) {
  .service-overview-card {
    padding: 2rem;
  }
}

.service-overview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-overview-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(237, 125, 49, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-icon {
  width: 1.6rem;
  height: 1.6rem;
}

.service-arrow {
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-overview-card:hover .service-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.service-overview-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-overview-title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-foreground);
}

.service-overview-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted-foreground);
}

.service-overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.82rem;
  line-height: 1;
  color: var(--text-muted-foreground);
}

.service-overview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.15s ease, color 0.15s ease;
}

.service-overview-link:hover {
  gap: 0.65rem;
  color: #d66b26;
}

.services-extra {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .services-extra {
    padding: 1.5rem;
  }
}

.services-extra-title {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-foreground);
}

.services-extra-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.standards-rule {
  display: block;
  width: 3rem;
  height: 3px;
  background-color: var(--accent);
  margin-bottom: 1.25rem;
}

/* --- Kompaktní Sekce --- */
.services-section {
  padding: 4rem 0; /* Zmenšený vertikální padding */
  background-color: var(--bg);
}

.section-header-compact {
  margin-bottom: 2.5rem;
}

.title-compact {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--ink);
  margin: 0.5rem 0 0 0;
}

/* --- Hlavní Grid --- */
.services-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* Menší mezera mezi divizemi */
}

@media (min-width: 1024px) {
  .services-main-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px; /* Omezujeme šířku, ať to není roztažené přes celý monitor */
    margin: 0 auto;
  }
}

/* --- Kontejner a hlavička --- */
.services-section {
  padding: 5rem 0;
  background-color: var(--bg);
}

.services-header-minimal {
  margin-bottom: 3rem;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

.services-title-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

.services-lead-main {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* --- Mřížka --- */
.services-dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px; /* Kompaktní šířka */
}

@media (min-width: 1024px) {
  .services-dual-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Box divize --- */
.division-box {
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.division-box:hover {
  border-color: var(--accent);
}

.division-content {
  padding: 2rem;
  flex-grow: 1;
}

.division-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.division-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.title {
  font-size: 1.875rem; /* text-3xl */
  line-height: 2.25rem;
  font-weight: 800; /* font-extrabold */
  color: var(--text-foreground);
  letter-spacing: -0.025em; /* tracking-tight */
  margin: 0;
}

.division-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.02em;
}

.division-desc {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 2rem 0;
  min-height: 3.2em; /* Zarovnání textu */
}

/* --- Seznam specifikací (místo chips) --- */
.division-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.spec-row {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.spec-row::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  margin-right: 10px;
  border-radius: 50%;
}

/* --- Tlačítko dole --- */
.division-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background-color: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease;
}

.division-cta:hover {
  background-color: var(--accent);
}

.division-cta .arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.division-cta:hover .arrow {
  transform: translateX(4px);
}


/* =========================================
   2. GARANCE (KOMPAKTNÍ TEXTOVÝ INDEX)
   ========================================= */
.garance-section {
  padding: 4rem 0; /* Mnohem menší padding pro kompaktnost */
  background-color: var(--bg); 
  border-bottom: 1px solid var(--line);
}

.garance-list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  /* Celý seznam ohraničený nahoře i dole tenkou linkou */
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg);
}

.garance-row {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0; /* Mnohem menší výška řádku */
  border-bottom: 1px solid var(--line);
  gap: 0.5rem;
  transition: background-color 0.2s ease;
  padding-left: 1rem;
  padding-right: 1rem;
}



/* Skrytí poslední linky, protože ji dělá kontejner */
.garance-row:last-child {
  border-bottom: none;
}

/* --- DESKTOP ROZLOŽENÍ --- */
@media (min-width: 768px) {
  .garance-row {
    flex-direction: row; /* Titulek a text vedle sebe */
    align-items: center;
    gap: 2rem;
  }
  
  .g-row-head {
    width: 35%; /* Titulek zabírá přesně třetinu místa vlevo */
    flex-shrink: 0;
  }
  
  .g-row-text {
    width: 65%; /* Text zabírá zbytek a netvoří zbytečně vysoké odstavce */
  }
}

/* --- TYPOGRAFIE A DETAILY --- */
.g-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g-row-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.4; /* Jemné číslo na pozadí */
  line-height: 1;
}

.g-row-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.g-row-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.subtitle2 {
  max-width: 70%;
  /* Optional: keeps the text from hitting the edge on tiny screens */
  width: 100%; 
}

/* --- NOVÝ ACCENT BANNER (Full-width blok) --- */
.garance-banner {
  background-color: var(--accent); /* Oranžové pozadí */
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem; /* Lehké odsazení od posledního klasického řádku */
  border-radius: 0.5rem; /* Lehké zakulacení, aby to ladilo s tlačítky */
}

/* Na desktopu to hodíme vedle sebe (text vlevo, telefon vpravo), ať to nevypadá prázdně */
@media (min-width: 768px) {
  .garance-banner {
    flex-direction: row;
    align-items: center;
    padding: 2rem 3rem;
  }
}

.garance-banner-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
  max-width: 600px;
}

.garance-banner-link {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem; /* Zvětšeno z 0.875rem pro lepší čitelnost */
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.1rem;
  width: fit-content;
  flex-shrink: 0; /* Zabrání zmačkání telefonu na užších displejích */
  transition: border-color 0.2s ease;
}

.garance-banner-link:hover {
  border-bottom-color: #ffffff; /* Při najetí se podtržení plně rozsvítí */
}

.con-now {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.now {
  width: 80%;
}

/* =========================================
   PRO KOHO JSME NEJVHODNĚJŠÍ (O NÁS) - SINGLE COLUMN
   ========================================= */
.for-whom-section {
  background-color: var(--bg-soft);
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

/* Omezíme šířku, aby se text dobře četl, a vycentrujeme to na střed stránky */
.for-whom-centered {
  max-width: 800px;
  margin: 0 auto;
}

.for-whom-centered .title {
  margin-bottom: 1.5rem;
}

.for-whom-centered .description {
  margin-bottom: 1.25rem;
}

.fw-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.fw-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.fw-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(237, 125, 49, 0.1);
  border: 1px solid var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--accent);
}

.fw-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Tmavý CTA box v jednosloupcovém layoutu */
.fw-cta {
  background-color: var(--bg-dark);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--accent);
}

@media (min-width: 768px) {
  .fw-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fw-cta-text {
  max-width: 450px;
}

.fw-cta-text strong {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 0.25rem;
}

.fw-cta-text span {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  display: block;
}

.fw-cta-phone {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(237, 125, 49, 0.1);
  border-radius: 0.5rem;
  border: 1px solid var(--accent);;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fw-cta-phone:hover {
  background-color: rgba(237, 125, 49, 0.3);
}

/* --- MANUFACTURING PROCESS --- */
.process-section {
  padding: 6rem 0;
  padding-top: 2rem;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem 0;
}

/* Timeline Layout */
.process-timeline {
  position: relative;
  margin-top: 4rem;
}

/* --- THE LINE & PROGRESS FILL --- */
.process-line {
  display: none; 
  position: absolute;
  top: 1.5rem; 
  left: 10%; /* Zkráceno, aby linka začínala v první a končila v páté ikoně */
  right: 10%;
  height: 2px;
  background-color: var(--line); 
  z-index: 0;
}

.process-line-progress {
  height: 100%;
  width: 0%; /* GSAP will animate this to 100% */
  background-color: var(--accent); 
  transform-origin: left;
}

.process-grid {
  display: grid;
  gap: 2.5rem 1rem;
  /* Na mobilu pod sebou */
  grid-template-columns: 1fr; 
}

/* Individual Step Styling */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Icon Wrapper */
.process-icon-wrap {
  position: relative;
  width: 3rem; 
  height: 3rem; 
  border-radius: 0.75rem;
  background-color: var(--panel);
  border: 2px solid var(--line-strong); 
  color: var(--muted); 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.p-icon {
  width: 1.25rem; 
  height: 1.25rem;
  color: inherit; 
}

.process-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--line-strong);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

/* --- THE ACTIVE STATE (Triggered by JS) --- */
.process-step.is-active .process-icon-wrap {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 16px rgba(237, 125, 49, 0.25);
}

.process-step.is-active .process-badge {
  background-color: var(--accent);
}

/* Typography */
.process-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem; /* Lehce zvětšeno pro 5 sloupců */
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4rem 0;
}

.process-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* --- HOVER EFFECTS --- */
.process-step:hover .process-icon-wrap {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(237, 125, 49, 0.2); 
}

/* --- RESPONSIVE MAGIC --- */
@media (min-width: 500px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (min-width: 1024px) {
  .process-line {
    display: block; 
  }
  .process-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 KROKŮ VEDLE SEBE */
  }
}

/* --- SPODNÍ CTA --- */
.process-bottom-cta {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.process-bottom-copy {
  max-width: 40rem;
}

.process-bottom-kicker {
  margin: 0 0 0.35rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.process-bottom-subtext {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.process-bottom-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.p-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--accent);
  padding: 0.9rem 1.35rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(237, 125, 49, 0.18);
}

.p-cta-btn:hover {
  background-color: #d66b26;
  transform: translateY(-2px);
}

.p-cta-status {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.p-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  margin-right: 0.4rem;
}

@media (min-width: 768px) {
  .process-bottom-cta {
    gap: 1.15rem;
  }
}

/* =========================================
   SITUACE (KARTY)
   ========================================= */
.situations-section {
  background-color: var(--bg);
  padding: 4rem 0; /* Trochu menší padding než hlavní sekce, ať to na sebe navazuje */
}

.situations-header {
  margin-bottom: 1.5rem;
}

.situations-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
}

.situations-desc {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Grid layout pro karty (1px gap dělá "rámečky" přes background var(--line)) */
.situations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--line); 
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .situations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .situations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Samotná karta */
.situation-card {
  background-color: var(--panel);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Hover efekt (lehké "povyskočení" a zvýraznění) */
.situation-card:hover {
  background-color: var(--bg-soft);
  transform: translateY(-2px);
  z-index: 1; /* Aby karta vyjela nad ostatní, pokud má box-shadow (volitelně) */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Ikona s odškrtávátkem */
.situation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(237, 125, 49, 0.1); /* var(--accent) s 10% opacity */
  border: 1px solid var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Typografie uvnitř karty */
.situation-heading {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.6rem 0;
  line-height: 1.3;
}

.situation-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.825rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

























/* PAGE HEAD (subpages) */

.pagehead {
  padding: 28px 0 18px;
  background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0));
  border-bottom: 1px solid rgba(13, 25, 45, 0.06);
}

.crumbs {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pagehead h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}
.pagehead__lead {
  margin: 0;
  color: var(--muted);
  max-width: 64rem;
}

/* SECTIONS */

.section { padding-block: 56px; background: var(--bg); }
.section--alt { background: #ffffff; }
.section--tight { padding-block: 32px; }

.section__head {
  max-width: 760px;
  margin-bottom: 24px;
  position: relative;
  padding-left: 10px;
}
.section__head::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--accent));
}
.section__head h2 { margin: 0 0 6px; font-size: 22px; }
.section__head p { margin: 0; color: var(--muted); }
.section__head--tight { margin-bottom: 16px; }

/* CARDS + COLUMNS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(56, 189, 248, 0.7));
  opacity: 0.9;
}
.card h3 { margin: 8px 0 8px; font-size: 17px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

.card__list { margin: 0 0 10px; padding-left: 18px; font-size: 14px; color: var(--ink); }
.card__list li + li { margin-top: 3px; }

.card__link {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--accent-dark);
}
.card__link:hover { text-decoration: underline; }

.bullet { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.bullet li + li { margin-top: 3px; }

/* =========================================
   ZÁVĚREČNÉ CTA / KONTAKT (Dark mode)
   ========================================= */
.final-cta-section {
  background-color: var(--bg-dark); /* Temné pozadí */
  padding: 5rem 0;
  border-top: 3px solid var(--accent); /* Výrazná horní oranžová linka */
  position: relative;
  overflow: hidden;
}

/* Pokud nemáš jinde definovanou třídu coss-grid-bg, tohle vytvoří ten jemný vzor na pozadí (volitelné) */
.final-cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
}

.final-cta-kicker-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.final-cta-line {
  display: block;
  width: 2rem;
  height: 2px;
  background-color: var(--accent);
}

.final-cta-kicker {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.final-cta-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Levá část textová */
.final-cta-text {
  max-width: 520px;
}

.final-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  line-height: 1;
}

.final-cta-desc {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.7;
}

/* Pravá část s akcemi */
.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.final-cta-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--accent);
  padding: 1rem 2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  border-radius: 4px;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.final-cta-btn:hover {
  background-color: #d66b26;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(237, 125, 49, 0.25);
}

.final-cta-email {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.15s ease;
}

.final-cta-email:hover {
  color: var(--accent);
}

.final-cta-hours {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
}

.pagegrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 24px;
  align-items: start;
}
.pagegrid__side {
  position: sticky;
  top: 84px;
  align-self: start;
}

/* CONTENT BLOCKS */

.content-block { margin-bottom: 26px; }
.content-block h2 { margin: 0 0 10px; font-size: 20px; }
.content-block p { margin: 0 0 10px; }
.muted { color: var(--muted); }

.content-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 18px;
  align-items: start;
}
.content-block__grid--flip { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.content-block__grid--flip > *:first-child { order: 2; }
.content-block__grid--flip > *:last-child { order: 1; }

.tick {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.tick li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}
.tick li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

/* MEDIA + PLACEHOLDER "PHOTOS" */

.media { margin: 0; }
.media figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }

.ph {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(30,154,96,0.18), rgba(56,189,248,0.14)),
    radial-gradient(circle at 20% 20%, rgba(2,6,23,0.10), transparent 55%),
    linear-gradient(#ffffff, #ffffff);
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph span {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(18, 33, 47, 0.65);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(13,25,45,0.08);
  padding: 8px 10px;
}

/* SIDE CARD */

.sidecard {
  border: 1px solid var(--border);
  background: #fff;
  padding: 16px;
}

.sidecard h3 { margin: 0 0 10px; font-size: 16px; }
.sidecard__list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.sidecard__list li + li { margin-top: 3px; }

.sidecard__btn { width: 100%; margin-top: 10px; }
.sidecard__hr { border: 0; border-top: 1px solid rgba(13,25,45,0.08); margin: 14px 0; }
.sidecard__note { margin: 0; font-size: 13px; }

/* SPECS */

.spec-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.spec-item {
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.spec-item summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 14px;
  list-style: none;
}
.spec-item summary::-webkit-details-marker { display: none; }
.spec-item summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}
.spec-item[open] summary::after { content: "▴"; }

.spec-item__body { padding: 0 14px 14px; }

.spec-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.spec-list li + li { margin-top: 5px; }

/* CALLOUT */

.callout {
  margin-top: 18px;
  border: 1px solid rgba(30,154,96,0.25);
  background: rgba(30,154,96,0.06);
  padding: 16px;
}
.callout h3 { margin: 0 0 8px; font-size: 16px; }
.callout p { margin: 0 0 12px; color: var(--muted); }

/* --------------------*/
/* ---- REFERENCE ---- */
/* --------------------*/

/* --- REFERENCE SECTION --- */
.reference-section {
  background-color: var(--bg-soft); 
  padding: 6rem 0;
}

/* Premium Split Header */
.ref-split-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .ref-split-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Categories Wrapper */
.ref-categories-wrap {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* Big spacing between different industries */
}

/* Category Header (Title + Line) */
.ref-cat-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ref-cat-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.ref-cat-line {
  flex: 1; /* Stretches the line to fill the rest of the space */
  height: 1px;
  background-color: var(--line-strong);
}

/* Category Grid (The 1px gap hack) */
.ref-cat-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1px; /* The gap acts as the borders */
  background-color: var(--line); /* The color of the borders */
  
  /* Creates a clean outer box */
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden; /* Keeps the child items inside the rounded corners */
}

@media (min-width: 640px) {
  .ref-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ref-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .ref-cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Individual Company Items */
.ref-item {
  background-color: var(--panel); /* Pure white cards */
  padding: 1rem 1.5rem;
  transition: background-color 0.2s ease;
}

/* Very subtle hover to show it's a premium list */
.ref-item:hover {
  background-color: #fafafa;
}

.ref-company-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.01em;
}

.ref-company-desc {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

