.home-feature-strip {
  position: relative;
  margin-top: 0;          /* JUŻ NIE nachodzi na hero */
  padding-bottom: 3.5rem;
  z-index: 1;
}

.home-feature-card {
  border-radius: 1.8rem 1.8rem 1.6rem 1.6rem;
  background-color: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  padding: 2.1rem 2.2rem 1.8rem;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

/* 3 kafle */
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.home-feature-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.home-feature-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* cienka linia */
.home-feature-divider {
  margin: 1.7rem 0 1.1rem;
  border-bottom: 1px solid #e5e7eb;
}

/* ZASTOSOWANIA */
.home-uses-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.home-uses-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #1f2937;
}

.home-uses-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.9rem;
}

.home-uses-items span {
  white-space: nowrap;
}

/* ============================
   Dalsze sekcje strony głównej
   ============================ */

.home-block {
  padding: 3.5rem 0;
}

.home-block--light {
  background-color: var(--color-bg);
}

.home-block--soft {
  background-color: var(--color-surface-soft);
}

.home-block--cta {
  /* finalny wygląd CTA jest niżej, tutaj tylko placeholder */
  background-color: #0b3c67;
  color: #f9fafb;
}

.home-block--cta .home-block-lead {
  color: #e5e7eb;
}

.home-block-header {
  margin-bottom: 2rem;
}

.home-block-title {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.home-block-lead {
  margin: 0;
  max-width: 44rem;
  font-size: 0.96rem;
  color: var(--color-text-muted);
}

.home-block--cta .home-block-title {
  color: #f9fafb;
}

.home-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.home-card {
  border-radius: 1.4rem;
  background-color: #ffffff;
  padding: 1.7rem 1.8rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.home-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.home-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.home-card-more {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #2563eb;
}

/* wersja na lekko szarym tle */
.home-block--soft .home-card {
  background-color: #f9fafb;
}

.home-about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.home-about-text {
  max-width: 40rem;
}

/* ============================
   Obrazki w kaflach – bardziej „żywa” sekcja
   ============================ */

.home-feature-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.9fr);
  gap: 1.3rem;
  align-items: center;
}

.home-feature-item-media {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  min-height: 150px;
  background-color: #020617; /* bez gradientu, ciemne tło */
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
}

.home-feature-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* lekkie powiększenie zdjęcia przy hover na kaflu */
.home-feature-item:hover .home-feature-item-media img {
  transform: scale(1.06);
}

/* linki pomocnicze w kartach */

.home-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.55rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.home-feature-link::after {
  content: "›";
  font-size: 0.9em;
  transform: translateY(1px);
}

.home-feature-link:hover {
  text-decoration: underline;
}

/* ============================
   Split sections – duże zdjęcie + opis
   ============================ */

.home-section-split-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* LEWA / PRAWA kolumna ze zdjęciem */
.home-section-media {
  flex: 1 1 50%;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  background-color: #020617; /* ciemne, ale bez gradientu */
  max-height: 420px;           /* ograniczenie wysokości */
}

/* Sam obrazek – zawsze na pełną szerokość kolumny */
.home-section-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.home-section-content {
  flex: 1 1 50%;
  max-width: 34rem;
}

.home-section-overline {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #64748b;
}

.home-section-content h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.home-section-content p {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.home-section-content ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.home-section-content li + li {
  margin-top: 0.25rem;
}

/* naprzemienne ułożenie obraz/tekst */

.home-section-split--image-left .home-section-media {
  order: 1;
}

.home-section-split--image-left .home-section-content {
  order: 2;
}

.home-section-split--image-right .home-section-content {
  order: 1;
}

.home-section-split--image-right .home-section-media {
  order: 2;
}

/* hover na zdjęciu */

.home-section-split:hover .home-section-media img {
  transform: scale(1.04);
}

/* wideo w sekcji "Zobacz jak powstają..." */

.home-video-wrapper {
  margin-top: 1rem;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.home-video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================
   Sekcja: DOMURAT – partner dla produkcji (4 kroki)
   ============================ */

.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.home-step {
  border-radius: 1.4rem;
  background-color: #ffffff;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-step-number {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: radial-gradient(circle at top left, #2563eb, #0b3c67);
  color: #f9fafb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
}

.home-step h3 {
  margin: 0;
  font-size: 1.02rem;
}

.home-step p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.home-steps-footer {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* ============================
   HOME: sekcja wideo – wariant 1.B (bazowe style)
   ============================ */

.home-video-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem 3rem;
}

.home-video-text {
  flex: 1 1 320px;
  max-width: 40rem;
}

.home-video-text .home-block-title {
  margin-bottom: 0.7rem;
}

.home-video-list {
  margin: 1.4rem 0 1.2rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.home-video-list li + li {
  margin-top: 0.3rem;
}

.home-video-links h3 {
  margin: 1.1rem 0 0.3rem;
  font-size: 1rem;
}

.home-video-links p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.home-video-links .home-feature-link {
  font-size: 0.9rem;
}

.home-video-media {
  flex: 1 1 320px;
  display: flex;
  align-items: stretch;
}

.home-video-card {
  border-radius: 1.2rem;
  background-color: #ffffff;       /* bez gradientu */
  padding: 0.9rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
  width: 100%;
  display: flex;
  align-items: stretch;
}

.home-video-card .home-video-wrapper {
  width: 100%;
}

.home-video-card video {
  width: 100%;
  display: block;
  border-radius: 1.2rem;
}

/* pasek z liczbami pod sekcją wideo */
/* Pasek z liczbami pod sekcją wideo – 3 wyraźne bloki */

.home-metrics-strip {
  margin-top: 2.1rem;
  padding: 1.2rem 1.8rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), transparent 55%),
    linear-gradient(to right, #f5f5f5, #e5e7eb);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}


.home-metric {
  flex: 1 1 0;
  padding: 0.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  position: relative;
}

/* cienkie pionowe kreski między blokami */
.home-metric + .home-metric {
  border-left: 1px solid #e5e7eb;
}

.home-metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0b3c67;
}

.home-metric-label {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

/* Na małych ekranach liczby jedna pod drugą, bez kresek */

@media (max-width: 640px) {
  .home-metrics-strip {
    flex-direction: column;
    padding: 1.1rem 1.3rem;
  }

  .home-metric {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding: 0.7rem 0 0.5rem;
  }

  .home-metric:first-child {
    border-top: none;
    padding-top: 0.2rem;
  }

  .home-metric-value {
    font-size: 1.5rem;
  }
}
/* ============================
   Responsywność – ogólna
   ============================ */

@media (max-width: 1024px) {
  .home-feature-card {
    padding-inline: 1.8rem;
  }

  .home-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .home-section-split-inner {
    flex-direction: column;
  }

  .home-section-media,
  .home-section-content {
    order: 0 !important;
    max-width: 100%;
  }

  .home-section-media {
    width: 100%;
  }

  .home-video-layout {
    flex-direction: column;
  }

  .home-metrics-strip {
    border-radius: 1.2rem;
  }
}

@media (max-width: 900px) {
  .home-cta-box,
  .home-cta-box--slim {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1.5rem;
  }

  #kontakt-cta .home-cta-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #kontakt-cta .home-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .home-feature-strip {
    margin-top: -2.6rem;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .home-uses-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .home-block {
    padding: 3rem 0;
  }

  .home-block-grid {
    grid-template-columns: 1fr;
  }

  .home-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .home-feature-item {
    grid-template-columns: 1fr;
  }

  .home-feature-item-media {
    min-height: 180px;
  }

  .home-metrics-strip {
    padding: 0.9rem 1.1rem;
  }

  .home-metric {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .home-feature-card {
    padding: 1.6rem 1.4rem 1.6rem;
    border-radius: 1.4rem;
  }

  .home-feature-item {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .home-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .home-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================
   Czytelniejszy tekst w sekcji "Jak pracujemy"
   ============================ */

.home-video-text .home-block-title {
  font-size: 1.9rem;           /* większy tytuł */
  margin-bottom: 0.8rem;
}

.home-video-text .home-block-lead {
  font-size: 1.05rem;          /* większy pierwszy akapit */
  line-height: 1.8;            /* luźniejsze linie */
  margin-bottom: 1.1rem;       /* większy odstęp od listy / kolejnych akapitów */
}

.home-video-text p {
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;       /* więcej powietrza między akapitami */
}

.home-video-text ul {
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.3rem;
}

.home-video-text h3 {
  margin-top: 1.4rem;          /* odstęp nad podtytułami (np. "Realizacje w różnych branżach") */
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

/* ============================
   CO PRODUKUJEMY – SEKCJA
   ============================ */

.products-section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: #f3f4f6;
}

.products-header {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.products-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: #020617;
}

.products-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
}

/* GRID – duże kafle obok siebie */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* tylko 2 kolumny */
  gap: 2.2rem;
  max-width: 1200px;          /* żeby mogły urosnąć szerzej */
  margin: 0 auto;
}

/* na bardzo szerokich ekranach możesz wrócić do 3, ale bardzo dużych */
@media (min-width: 1600px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* tablet / małe laptopy – 2 kolumny nadal ok */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);  /* 1 kolumna na tablet/telefon w poziomie */
  }
}
/* ============================
   BRANŻE – pasek nachodzący na hero
   ============================ */

.home-industries {
  position: relative;
  margin-top: -3.4rem;          /* lekko nachodzi na hero */
  margin-bottom: 2.6rem;
  z-index: 10;
}

.home-industries .container {
  max-width: 1120px;
}

.home-industries-inner {
  border-radius: 1.6rem;
  background-color: #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  padding: 1.6rem 2rem 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2rem;
}

.home-industries-text {
  flex: 1 1 260px;
  min-width: 0;
}

.home-industries-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.home-industries-title {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #020617;
}

.home-industries-lead {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Tag-i branż */
.home-industries-tags {
  flex: 1 1 260px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
}

.home-industries-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #0b3c67;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

/* Delikatny hover na tagach */
.home-industries-tags span:hover {
  background: #bfdbfe;
  border-color: #93c5fd;
}

/* Responsywność */
@media (max-width: 768px) {
  .home-industries {
    margin-top: -2.6rem;
  }

  .home-industries-inner {
    padding: 1.4rem 1.5rem 1.5rem;
  }

  .home-industries-title {
    font-size: 1.2rem;
  }
}

/* === Sekcja #video – layout 50/50, tekst + wideo === */

/* trochę węższy kontener, żeby całość była bardziej zbita */
#video .container {
  width: min(92vw, 1120px);
}

/* Tekst i wideo obok siebie, równa wysokość kolumn */
#video .home-video-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  align-items: stretch;   /* kolumny tej samej wysokości */
}

#video .home-video-text,
#video .home-video-media {
  flex: 1 1 0;
  min-width: 0;
}

/* Na większych ekranach ~ po 50% szerokości */
@media (min-width: 1024px) {
  #video .home-video-text,
  #video .home-video-media {
    max-width: 50%;
  }
}

/* Kolumna z wideo też jest flexem, żeby karta wypełniała wysokość */
#video .home-video-media {
  display: flex;
}

/* Karta z wideo – wypełnia całą kolumnę */
#video .home-video-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 1.2rem;
  padding: 0.8rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Wrapper na wideo: rozciąga się na całą wysokość karty */
#video .home-video-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #000; /* czarne tło pod video / jakby były paski */
}

/* Wideo – wypełnia wrapper, bez ucinania kadru */
#video .home-video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* cały kadr, bez obcięć, mogą być paski */
}

/* Pasek z liczbami w tej sekcji jest na górze, więc inny margines */
#video .home-metrics-strip {
  margin-top: 0;
  margin-bottom: 1.9rem;
}

/* Podtytuł "Gdzie pracują nasze urządzenia" + akapit */
.home-video-subtitle {
  margin: 1.3rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.home-video-paragraph {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

/* Mobile: tekst nad wideo, pełna szerokość */
@media (max-width: 960px) {
  #video .home-video-layout {
    flex-direction: column;
  }

  #video .home-video-text,
  #video .home-video-media {
    max-width: 100%;
  }

  #video .home-video-card {
    max-width: none;
    height: auto; /* na mobile nie spinamy na siłę wysokości */
  }

  #video .home-video-wrapper {
    height: auto;
    aspect-ratio: 16 / 9; /* na telefonach proporcje 16:9, wygląda ładnie */
  }

  #video .home-video-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
/* --- POPRAWKA #video – bez czarnych ramek --- */

#video .home-video-wrapper {
  background: transparent;   /* albo #fff, jak wolisz */
}

#video .home-video-card video,
#video .home-video-card img {
  object-fit: cover;         /* wypełnia cały box, bez pasków */
}
/* ============================
   CTA Kontakt – bez boxa, sam tekst + przycisk
   ============================ */

.home-block--cta {
  background: var(--color-bg) !important;  /* taki sam jak reszta strony */
  padding: 3rem 0;
}

/* zamiast białej karty – po prostu układ tekst + przycisk */
.home-block--cta .home-cta-box,
.home-block--cta .home-cta-box--slim {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
}

/* lewa część – tekst */
.home-block--cta .home-cta-main {
  flex: 1 1 260px;
  min-width: 0;
}

.home-block--cta .home-section-overline {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.home-block--cta .home-cta-title {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 700;
  color: #020617;
}

.home-block--cta .home-cta-text {
  margin: 0 0 0.5rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #4b5563;
}

.home-block--cta .home-cta-note {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7280;
}

/* prawa część – przycisk (używamy istniejącego .btn-primary) */
.home-block--cta .home-cta-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-block--cta .home-cta-actions .btn-primary {
  white-space: nowrap;
}

/* mobile: tekst nad przyciskiem, przycisk na całą szerokość */
@media (max-width: 900px) {
  .home-block--cta .home-cta-box,
  .home-block--cta .home-cta-box--slim {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-block--cta .home-cta-actions {
    width: 100%;
    margin-top: 0.8rem;
    justify-content: flex-start;
  }

  .home-block--cta .home-cta-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
.home-help{
  padding-top: 5rem;
}
.home-help-down{
  padding-bottom: 5rem;
}