/* ============================================================
   NOMATEC — HOME CSS
   Depends on: base.css (variables, reset, typography, btn, chip)
   ============================================================ */

/* ==========================================
   HERO
========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,16,28,0.14), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(255,16,28,0.05), transparent 50%),
    linear-gradient(135deg, rgba(10,10,10,0.90) 0%, rgba(26,26,28,0.72) 100%);
  z-index: 1;
}

/* Noise grain texture on hero */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.03;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  width: 100%;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Reference tag ───────────────────────────────── */
.hero__ref {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}
.hero__ref-id {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
}
.hero__ref-sep {
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--color-red);
  opacity: 0.5;
}
.hero__ref-loc {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-light);
  opacity: 0.6;
}

/* ── Main heading ────────────────────────────────── */
.hero__heading {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  /* Locales differ in line width; the base h1 max-width:100% pinned overlong
     lines to the container's left edge (centered text never overflows left),
     so the heading looked off-center in PL/DE. Letting the h1 grow makes the
     parent flexbox center it symmetrically in every language. */
  max-width: none;
}
.hero__h-brand {
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-red);
  display: block;
  margin-bottom: 1rem;
}
.hero__h-thin {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  display: block;
  white-space: nowrap; /* keep the thin intro on one line on desktop */
}
.hero__h-bold {
  font-size: clamp(2.75rem, 6.5vw, 6.5rem);
  font-weight: 700;
  color: var(--color-white);
  display: block;
  line-height: 0.88;
}
.hero__dot {
  color: var(--color-red);
}

/* ── Sub copy ────────────────────────────────────── */
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  color: var(--color-light);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.625rem, 1vw, 0.75rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  text-align: center;
  margin-top: 1.75rem;
}

/* ── Hero call-to-action buttons ──────────────────── */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero__ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .hero__sub {
    font-size: 0.8rem;
  }
}

/* ── Precision specs strip ───────────────────────── */
.hero__specs-strip {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.875rem 1.5rem;
}
.hero__spec-val {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__spec-lbl {
  font-family: var(--font-mono);
  font-size: 0.4375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-light);
  opacity: 0.6;
  white-space: nowrap;
}
.hero__spec-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── Actions row ─────────────────────────────────── */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--color-light);
  text-decoration: none;
  transition: color var(--dur-fast, 0.15s) var(--ease, ease);
}
.hero__tel:hover { color: var(--color-white); }
.hero__tel svg { color: var(--color-red); flex-shrink: 0; }

/* Stats bar inside hero */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2px;
}

.hero__stat {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero__stat-val {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--color-white);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-light);
  opacity: 0.7;
  white-space: nowrap;
}

.hero__stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}


/* Service chips bar */
.hero__chips {
  position: relative;
  z-index: 1;
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.hero__chips::-webkit-scrollbar { display: none; }

.hero__chips-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-light);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.6;
  padding-right: 0.5rem;
  border-right: 1px solid var(--color-mid);
}

/* ==========================================
   QUOTE STRIP
========================================== */
.quote-strip {
  background:
    linear-gradient(rgba(4,4,6,0.86), rgba(4,4,6,0.86)),
    url('/assets/allphoto/nasza-filozofia_opt.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 980px) clamp(280px, 21vw, 400px);
  justify-content: center;
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-inline: clamp(1.25rem, 4vw, 4rem);
  height: clamp(240px, 15vw, 300px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.quote-strip--centered {
  display: block;
  height: auto;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 6vw, 6rem);
}

.quote-strip--centered .quote-strip__content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  text-align: center;
}

.quote-strip--centered .quote-strip__headline {
  white-space: normal;
  text-align: center;
}

.quote-strip--centered .quote-strip__author {
  justify-content: center;
}

.quote-strip::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: clamp(12rem, 22vw, 18rem);
  line-height: .75;
  color: var(--color-red);
  opacity: .16;
  position: absolute;
  top: 50%;
  left: max(1.25rem, calc(50% - 40rem));
  transform: translateY(-52%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.quote-strip__content {
  min-width: 0;
  padding: clamp(1.6rem, 2vw, 2.25rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
  position: relative;
  z-index: 1;
}

.quote-strip__label {
  font-family: var(--font-mono, monospace);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-red);
}

.quote-strip__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 1.55vw, 2.2rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.quote-strip__original {
  font-family: var(--font-body);
  font-size: .875rem;
  font-style: italic;
  color: rgba(255,255,255,.38);
  margin: 0;
  line-height: 1.6;
  max-width: 42rem;
}

.quote-strip__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .35rem;
}

.quote-strip__line {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-red);
  flex-shrink: 0;
}

.quote-strip__name {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.quote-strip__photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.quote-strip__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(100%);
  display: block;
}

.quote-strip__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0a0a0a 0%, rgba(10,10,10,.58) 18%, rgba(10,10,10,.16) 48%, transparent 72%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .quote-strip {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 340px);
  }

  .quote-strip__headline {
    font-size: 1.9rem;
    max-width: 36rem;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .quote-strip {
    grid-template-columns: 1fr;
    height: auto;
    padding-inline: 0;
  }

  .quote-strip__content {
    padding: 2rem 1.5rem 2.4rem;
  }

  .quote-strip__headline {
    font-size: 1.65rem;
  }

  .quote-strip__photo {
    height: 190px;
  }

  .quote-strip__photo::before {
    background: linear-gradient(to bottom, transparent 35%, #0a0a0a 100%);
  }

  .quote-strip::before {
    font-size: 11rem;
    top: auto;
    bottom: 2rem;
    left: 1rem;
    transform: none;
  }
}

@media (max-width: 520px) {
  .quote-strip__content {
    padding: 1.75rem 1.75rem 2.2rem;
  }

  .quote-strip--centered {
    padding-inline: 0;
  }

  .quote-strip__headline {
    font-size: 1.38rem;
    max-width: 20rem;
    margin-inline: auto;
  }

  .quote-strip__original {
    font-size: .8125rem;
  }
}

/* ==========================================
   SECTION LABEL SHARED
========================================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-red);
}
.section-label--no-line::before {
  display: none;
}

/* ==========================================
   SERVICES HEADER
========================================== */
/* Red glow behind services header */
#uslugi {
  position: relative;
  overflow: hidden;
}
#uslugi::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(255, 16, 28, 0.18) 0%,
    rgba(255, 16, 28, 0.07) 40%,
    transparent 70%
  );
  animation: uslugiGlow 6s ease-in-out infinite;
}
#uslugi::after {
  display: none;
}
#uslugi > * { position: relative; z-index: 1; }

@keyframes uslugiGlow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.services-header {
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
  padding: 11rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  position: relative;
}

/* duży ghost-numer w tle */
.services-header::before {
  content: '08';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(14rem, 22vw, 22rem);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

.services-header > * { position: relative; z-index: 1; }

/* pasek nad h2 */
.services-header__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.services-header__line {
  display: block;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background: rgba(255,16,28,0.45);
}

.services-header__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
}

.services-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--color-white);
  margin-top: 0;
}

/* ==========================================
   SERVICES SPECS BAR
========================================== */
.services-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 2rem 2rem;
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
  flex-wrap: wrap;
}

.services-specs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 2.5rem;
  position: relative;
}

.services-specs__val {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.5vw, 1.125rem);
  font-weight: 400;
  color: var(--color-red);
  letter-spacing: 0.05em;
  line-height: 1;
}

.services-specs__lbl {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-light);
  white-space: nowrap;
}

.services-specs__sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .services-specs { gap: 0; padding-bottom: 1.5rem; }
  .services-specs__item { padding: 0.5rem 1.25rem; }
  .services-specs__sep { display: none; }
}

/* ==========================================
   SECTION: CO ROBIMY (PANELS / BLINDS)
========================================== */
.panels {
  display: flex;
  height: 65vh;
  min-height: 420px;
  overflow: hidden;
  contain: layout paint;
  margin-bottom: 4rem;
}

.panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: flex 0.4s ease;
}
.panel:last-child { border-right: none; }

.panel.is-hovered {
  flex: 2.5;
}
.panels.panels--hovered .panel:not(.is-hovered) {
  flex: 0.8;
}

.panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transition: opacity 0.4s ease;
}
.panel.is-hovered .panel__bg {
  opacity: 0.6;
}
.panels.panels--hovered .panel:not(.is-hovered) .panel__bg {
  opacity: 0.15;
}

.panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}

.panel__num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-red);
  opacity: 1;
  z-index: 2;
  white-space: nowrap;
}

/* Vertical label (always visible) */
.panel__label-vert {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: left center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  z-index: 2;
  transition: opacity var(--dur-med, 0.35s) var(--ease, ease);
}
.panel.is-hovered .panel__label-vert {
  opacity: 0;
}

/* Expanded content (visible on hover) */
.panel__content {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  transition-delay: 0.05s;
}
.panel.is-hovered .panel__content {
  opacity: 1;
}

.panel__content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.panel__content p {
  font-size: 0.875rem;
  color: var(--color-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red);
  text-decoration: none;
  transition: gap var(--dur-fast, 0.15s) var(--ease, ease);
}
.panel__arrow:hover { gap: 0.875rem; }
.panel__arrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Mobile panels — accordion */
@media (max-width: 768px) {
  .panels {
    flex-direction: column;
    height: auto;
    contain: none;
    margin-bottom: 2rem;
  }
  .panel {
    flex: none;
    height: 64px;
    transition: height 0.4s ease;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    contain: none;
    transform: none;
    backface-visibility: visible;
    overflow: hidden;
  }
  .panel.is-open {
    height: 280px;
  }
  /* Chevron indicator */
  .panel__num::after {
    content: ' ›';
    font-size: 0.75rem;
    opacity: 0.4;
  }
  .panel.is-open .panel__num::after {
    content: ' ›';
    transform: rotate(90deg);
    display: inline-block;
  }
  .panel__label-vert {
    transform: translateY(-50%);
    left: 3.5rem;
    bottom: auto;
    top: 50%;
    font-size: 0.8rem;
    opacity: 1;
    transition: opacity 0.2s ease;
  }
  .panel.is-open .panel__label-vert {
    opacity: 0;
  }
  .panel__content {
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    transition: opacity 0.3s ease;
    transition-delay: 0.15s;
    transform: none;
  }
  .panel.is-open .panel__content {
    opacity: 1;
  }
  .panel__content h3 {
    font-size: 1.125rem;
    white-space: normal;
  }
  /* Disable desktop hover on mobile */
  .panel.is-hovered { flex: none; }
  .panels.panels--hovered .panel:not(.is-hovered) { flex: none; }
}

/* ==========================================
   SECTION: DLACZEGO NOMATEC
========================================== */
.why-section {
  background: var(--color-black);
  overflow: hidden;
  position: relative;
}
.why-section > * { position: relative; z-index: 1; }

.why-section .container {
  max-width: var(--content-w, 1280px);
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
  position: relative;
  overflow: visible;
}

.why-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
}

/* Marquee */
.marquee-wrap {
  background: transparent;
  border-top: 1px solid var(--color-mid);
  border-bottom: 1px solid var(--color-mid);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--color-black), transparent);
}
.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--color-black), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 48s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-light);
  white-space: nowrap;
  padding: 0 2.5rem;
}

.marquee-sep {
  color: var(--color-red);
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Counters */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--color-mid);
}

.counter-block {
  padding: 4rem 2.5rem;
  border-right: 1px solid var(--color-mid);
  position: relative;
  transition: background var(--dur-med) var(--ease);
  overflow: hidden;
}
.counter-block:last-child { border-right: none; }
.counter-block:hover { background: rgba(255,255,255,0.025); }

/* Hover glow */
.counter-block::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 2.5rem;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,16,28,0.15), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
}
.counter-block:hover::after { opacity: 1; }

.counter-block__num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.counter-block__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--color-light);
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 500;
}

.counter-block__accent {
  position: absolute;
  top: 0;
  left: 2.5rem;
  width: 32px;
  height: 2px;
  background: var(--color-red);
}

@media (max-width: 1024px) {
  .counters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .counter-block {
    border-bottom: none;
    border-right: 1px solid var(--color-mid);
  }
  .counter-block:last-child {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .counters-grid {
    grid-template-columns: 1fr;
  }
  .counter-block {
    border-right: none;
    border-bottom: 1px solid var(--color-mid);
    padding: 2.5rem 1.5rem;
  }
  .counter-block:last-child { border-bottom: none; }
  .counter-block__accent { left: 1.5rem; }
}

/* ==========================================
   SECTION: O NAS
========================================== */
.about-split {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 520px;
}

.about-split__img {
  position: relative;
  overflow: hidden;
}
.about-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6) saturate(0.5);
  transition: transform var(--dur-slow, 0.6s) var(--ease, ease),
              filter var(--dur-slow, 0.6s) var(--ease, ease);
  display: block;
}
.about-split:hover .about-split__img img {
  transform: scale(1.03);
  filter: brightness(0.7) saturate(0.6);
}

/* Subtle offset accent line */
.about-split__img::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 40%;
  background: var(--color-red);
}

.about-split__text {
  background: var(--color-dark);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Industrial corner accent */
.about-split__text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--color-red);
}

.about-split__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.about-split__text h3 {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--color-light);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.about-split__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-light);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }
  .about-split__img {
    height: 300px;
  }
  .about-split__img::after { display: none; }
  .about-split__text {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .about-split__img {
    height: 260px;
  }
  .about-split__text {
    padding: 3rem 1.5rem;
  }
}

/* ==========================================
   SECTION: BLOG PREVIEW
========================================== */
.blog-preview {
  background: var(--color-black);
  padding: var(--space-xl, 6rem) 0;
}

.blog-preview .container {
  max-width: var(--content-w, 1280px);
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.blog-preview__header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-mid);
}

.blog-card {
  background: var(--color-dark);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: transform var(--dur-med, 0.35s) var(--ease, ease),
              background var(--dur-med, 0.35s) var(--ease, ease);
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med, 0.35s) var(--ease, ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  background: var(--color-mid);
  border-left-color: var(--color-red);
}
.blog-card:hover::after {
  transform: scaleX(1);
}
.blog-card:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.blog-card__category {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-light);
  line-height: 1.7;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--color-light);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 1024px) {
  .blog-cards {
    grid-template-columns: 1fr;
  }
  .blog-card {
    padding: 2rem;
  }
  .blog-preview__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   SECTION: CTA BANNER
========================================== */
.cta-banner {
  background: var(--color-dark);
  padding: var(--space-xl, 6rem) 0;
  border-top: 1px solid var(--color-mid);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,16,28,0.06), transparent 70%);
  pointer-events: none;
}

/* Sygnet decorative */
.cta-banner__sygnet {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  height: 90%;
  width: auto;
  opacity: 0.07;
  pointer-events: none;
  filter: brightness(0) invert(1);
  z-index: 0;
}

.cta-banner__inner {
  max-width: var(--content-w, 1280px);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-white);
}
.cta-banner__heading span {
  display: block;
  color: var(--color-red);
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cta-banner__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cta-banner__contact a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: color var(--dur-fast, 0.15s) var(--ease, ease);
}
.cta-banner__contact a:hover { color: var(--color-white); }
.cta-banner__contact a::before {
  content: '→';
  color: var(--color-red);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .cta-banner__inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .cta-banner::after { display: none; }
}

/* ==========================================
   HERO RESPONSIVE
========================================== */
@media (max-width: 768px) {
  .hero {
    height: 90vh;
    min-height: 560px;
  }
  .hero__inner { padding: 0 1.5rem; }
  .hero__content { max-width: 100%; }
  /* On narrow screens long locales (PL) exceed the viewport — wrap instead of clipping */
  .hero__h-thin  { font-size: clamp(2rem, 9vw, 3.5rem); white-space: normal; }
  .hero__h-bold  { font-size: clamp(2.25rem, 10vw, 4.25rem); }
  .hero__heading { margin-bottom: 1.5rem; }
  .hero__sub { font-size: 0.875rem; margin-bottom: 1.75rem; }
  .hero__actions { gap: 1.25rem; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__h-thin { font-size: clamp(1.75rem, 8.5vw, 2.5rem); }
  .hero__h-bold { font-size: clamp(2rem, 9.5vw, 3.25rem); }
}

/* Services header responsive */
@media (max-width: 768px) {
  .services-header { padding: 4rem 1.5rem 2.5rem; }
  .services-header h2 { font-size: clamp(2rem, 7vw, 3rem); }
  .services-header::before { font-size: clamp(10rem, 30vw, 14rem); }
}

/* Why section responsive */
@media (max-width: 768px) {
  .why-section .container { padding: 3rem 1.5rem 2rem; }
  .why-section h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
  .counters-grid { grid-template-columns: 1fr; }
  .counter-block { padding: 2rem 1.25rem; }
}

/* CTA photo responsive */
@media (max-width: 480px) {
  .cta-photo__text h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}

/* ==========================================
   HERO — THREE.JS CANVAS
========================================== */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}
/* Push existing content layers above canvas */
.hero__inner  { z-index: 3; }
.hero__scroll { z-index: 4; }


@media (max-width: 768px) {
  .hero__canvas { display: none; }
}

/* ==========================================
   HERO — ENTRANCE ANIMATIONS (CSS, no JS)
========================================== */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroSlideDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: none; }
}

.hero__h-brand {
  animation: heroFadeIn 0.6s ease 0.2s both;
}
.hero__h-thin {
  animation: heroSlideLeft 0.8s cubic-bezier(0.16,1,0.3,1) 0.38s both;
}
.hero__h-bold {
  animation: heroSlideLeft 0.8s cubic-bezier(0.16,1,0.3,1) 0.52s both;
}
.hero__sub {
  animation: heroFadeIn 0.7s ease 0.78s both;
}
.hero__actions {
  animation: heroSlideUp 0.65s cubic-bezier(0.16,1,0.3,1) 0.95s both;
}

/* Pause hero animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__h-brand,
  .hero__h-thin,
  .hero__h-bold,
  .hero__sub,
  .hero__actions { animation: none; }
}

/* ==========================================
   HERO SCROLL INDICATOR
========================================== */
.hero__scroll {
  position: absolute;
  bottom: 6rem;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-light);
  writing-mode: vertical-rl;
  opacity: 0.6;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.hero__scroll-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--color-red);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { top: -8px; opacity: 1; }
  70%  { top: 100%; opacity: 1; }
  71%  { top: 100%; opacity: 0; }
  72%  { top: -8px; opacity: 0; }
  100% { top: -8px; opacity: 1; }
}

@media (max-width: 768px) {
  .hero__scroll { display: none; }
}

/* ==========================================
   SECTION: JAK PRACUJEMY (PROCESS)
========================================== */
.process-section {
  background: var(--color-dark);
  padding: var(--space-xl, 6rem) 0 0;
  overflow: hidden;
  border-top: 1px solid var(--color-mid);
}

.process-section__header {
  max-width: var(--content-w, 1200px);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.process-section__header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.process-section__sub {
  font-size: 1rem;
  color: var(--color-light);
  line-height: 1.7;
  max-width: 480px;
}

/* Steps row */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

/* Connecting line across the top */
.process-steps::before {
  content: '';
  position: absolute;
  top: 3.75rem;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: linear-gradient(to right,
    var(--color-red) 0%,
    var(--color-mid) 40%,
    var(--color-mid) 60%,
    rgba(51,51,55,0.3) 100%);
  z-index: 0;
}

.process-step {
  padding: 3rem 2.5rem 3.5rem;
  border-right: 1px solid var(--color-mid);
  position: relative;
  transition: background var(--dur-med) var(--ease);
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: rgba(255,255,255,0.02); }

.process-step__index {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--color-red);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
/* Dot on the timeline */
.process-step__index::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  border: 2px solid var(--color-dark);
  box-shadow: 0 0 0 1px var(--color-red);
  margin-bottom: 0.875rem;
}
.process-step:not(:first-child) .process-step__index::before {
  background: var(--color-mid);
  box-shadow: 0 0 0 1px var(--color-mid);
}

.process-step__icon {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.5rem;
  transition: color var(--dur-med) var(--ease);
}
.process-step:hover .process-step__icon {
  color: var(--color-red);
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.process-step__desc {
  font-size: 0.875rem;
  color: var(--color-light);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps::before { display: none; }
  .process-step {
    border-bottom: 1px solid var(--color-mid);
  }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-step {
    border-right: none;
    border-bottom: 1px solid var(--color-mid);
    padding: 2rem 1.5rem;
  }
  .process-step:last-child { border-bottom: none; }
}

/* ==========================================
   SECTION: SPECS CARDS
========================================== */
.specs-section {
  background: var(--color-black);
  padding: var(--space-xl, 6rem) 0;
  overflow: hidden;
  border-top: 1px solid var(--color-mid);
}

.specs-section__header {
  max-width: var(--content-w, 1200px);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.specs-section__header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-mid);
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
}

.spec-card {
  background: var(--color-dark);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background var(--dur-med) var(--ease);
}
.spec-card:hover { background: #1e1e20; }

/* Glow on hover */
.spec-card__glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,16,28,0.10), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
}
.spec-card:hover .spec-card__glow { opacity: 1; }

/* Top accent bar */
.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--dur-med) var(--ease);
}
.spec-card:hover::before {
  background: linear-gradient(to right, var(--color-red), transparent);
}

.spec-card__tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 2.5rem;
}

.spec-card__params {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--color-mid);
  border-bottom: 1px solid var(--color-mid);
}

.spec-param {
  flex: 1;
  padding: 1.25rem 0.75rem;
  border-right: 1px solid var(--color-mid);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.spec-param:last-child { border-right: none; }

.spec-param__val {
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1;
  white-space: nowrap;
}

.spec-param__unit {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--color-red);
  letter-spacing: 0.1em;
  margin-bottom: 0.375rem;
}

.spec-param__label {
  font-size: 0.625rem;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.spec-card__list {
  list-style: none;
  margin-bottom: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.spec-card__list li {
  font-size: 0.8125rem;
  color: var(--color-light);
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}
.spec-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--color-red);
}

.spec-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-light);
  text-decoration: none;
  margin-top: auto;
  transition: color var(--dur-fast) var(--ease),
              gap var(--dur-fast) var(--ease);
}
.spec-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.spec-card__link:hover {
  color: var(--color-red);
  gap: 0.875rem;
}

@media (max-width: 1024px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .spec-card { padding: 2rem 1.5rem; }
  .spec-param__val { font-size: 1.125rem; }
}

/* ==========================================
   CTA PHOTO BANNER
========================================== */
.cta-photo {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--color-mid);
}

.cta-photo__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/allphoto/nomatec-frezowanie-precyzyjne.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.25) saturate(0.3);
  transition: filter 8s ease;
  z-index: 0;
}
.cta-photo:hover .cta-photo__bg {
  filter: brightness(0.35) saturate(0.4);
}

.cta-photo__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,16,28,0.08), transparent 60%),
    linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
}

.cta-photo__sygnet {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  height: 90%;
  width: auto;
  opacity: 0.05;
  pointer-events: none;
  filter: brightness(0) invert(1);
  z-index: 1;
}

.cta-photo__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-w, 1280px);
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.cta-photo__text {
  flex: 1;
  min-width: 280px;
}

.cta-photo__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}
.cta-photo__text h2 span {
  color: var(--color-red);
}

.cta-photo__text p {
  font-size: 1rem;
  color: var(--color-light);
  line-height: 1.7;
  max-width: 480px;
}

.cta-photo__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cta-photo__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cta-photo__contact a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: color var(--dur-fast) var(--ease);
}
.cta-photo__contact a:hover { color: var(--color-white); }
.cta-photo__contact a::before {
  content: '→';
  color: var(--color-red);
  font-size: 0.75rem;
}

@media (max-width: 1040px) {
  .cta-photo__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }
  .cta-photo__text { text-align: center; }
  .cta-photo__text .section-label { justify-content: center; }
  .cta-photo__text p { max-width: 100%; }
  .cta-photo__actions { align-items: center; width: 100%; }
  .cta-photo__contact { align-items: center; }
  .cta-photo__sygnet { display: none; }
}

/* ==========================================
   DARK SECTION BACKGROUNDS (pure CSS)
   Applies to: .why-section, .about-home
========================================== */

/* --- Shared keyframes --- */
@keyframes bgRingCW  { to { transform: rotate(360deg);  } }
@keyframes bgRingCCW { to { transform: rotate(-360deg); } }
@keyframes bgScan    { 0% { top: -180px; } 100% { top: 100%; } }
@keyframes bgPulse   { 0%,100% { opacity: 0.12; } 50% { opacity: 0.32; } }

/* --- WHY SECTION --- */
/* Dot grid */
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}
/* Large rotating ring (top-right) + scan beam (via ::after) */
.why-section::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  /* Scan beam */
  left: 0; right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,16,28,0.045) 40%,
    rgba(255,16,28,0.09) 50%,
    rgba(255,16,28,0.045) 60%,
    transparent
  );
  animation: bgScan 16s linear infinite;
}

/* Ring overlay via box-shadow trick on a pseudo of the container */
.why-section .container::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,16,28,0.1);
  top: -200px; right: -160px;
  animation: bgRingCW 50s linear infinite;
}
.why-section .container::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(255,16,28,0.07);
  top: -110px; right: -70px;
  animation: bgRingCCW 30s linear infinite;
}

/* --- ABOUT HOME --- */
/* Dot grid */
.about-home::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* Rotating ring bottom-left */
.about-home::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255,16,28,0.1);
  bottom: -160px; left: -100px;
  animation: bgRingCCW 44s linear infinite;
}
/* Inner ring via split — use approach-grid::before */
.approach-grid::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(255,16,28,0.07);
  bottom: -80px; left: -30px;
  animation: bgRingCW 25s linear infinite;
}

/* Ensure section content stays above pseudo-elements */
.why-section > *,
.about-home > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .why-section::after,
  .why-section .container::before,
  .why-section .container::after,
  .about-home::after,
  .approach-grid::after { animation: none; }
}

/* ==========================================
   REVEAL ANIMATION
========================================== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease, ease);
}
.reveal.revealed {
  opacity: 1;
}

/* ==========================================
   WORD-BY-WORD TEXT ANIMATION
========================================== */
@keyframes wordIn {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.word-anim {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}
.word-anim--active {
  animation: wordIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================
   FADE-UP STAGGER (scroll-triggered via JS)
========================================== */
.fade-up-child {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease, ease), transform 0.6s var(--ease, ease);
}
.fade-up-child.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================
   COUNTER NUM — PULSE AFTER COUNT
========================================== */
@keyframes counterPulse {
  0%   { color: var(--color-white); }
  40%  { color: var(--color-red); text-shadow: 0 0 24px rgba(255,16,28,0.5); }
  100% { color: var(--color-white); text-shadow: none; }
}
.counter-block__num.did-pulse {
  animation: counterPulse 0.8s var(--ease, ease) forwards;
}

/* ==========================================
   SECTION: O NAS (ABOUT HOME)
========================================== */
.about-home {
  background: var(--color-black);
  border-top: 1px solid var(--color-mid);
  position: relative;
}
.about-home > * { position: relative; z-index: 1; }

.about-home__split {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 520px;
}

.about-home__text {
  background:
    linear-gradient(to right, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.88) 100%),
    url('/assets/allphoto/nomatec-tokarka-w-pracy.webp') center/cover no-repeat;
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.about-home__text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-red);
}

.about-home__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.about-home__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-light);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.about-home__text p strong {
  color: var(--color-white);
  font-weight: 700;
}

.about-home__photo {
  position: relative;
  overflow: hidden;
}

.about-home__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: brightness(0.7);
  transition: transform 0.6s var(--ease, ease),
              filter 0.6s var(--ease, ease);
  display: block;
}

.about-home__split:hover .about-home__photo img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.about-home__photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 40%;
  background: var(--color-red);
}

/* ============================================================
   APPROACH SECTION — black bg, ghost numbers, bar reveal
   ============================================================ */
.approach-section {
  background: #0a0a0a;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Top red accent line */
.approach-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,16,28,0.7) 30%,
    rgba(255,16,28,1) 50%,
    rgba(255,16,28,0.7) 70%,
    transparent 100%
  );
}

/* Header: label left, heading right */
.approach-section__top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.approach-section__label-wrap .section-label {
  color: var(--color-red);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.approach-section__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

/* Grid: 4 equal columns */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

/* Connecting line across top of all cards */
.approach-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    var(--color-red) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.08) 100%
  );
  z-index: 0;
}

/* Each card */
.approach-card {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.35s ease;
}
.approach-card:last-child { border-right: none; }
.approach-card:hover { background: rgba(255,255,255,0.025); }

/* Ghost large number — hidden */
.approach-card__ghost {
  display: none;
}

/* Card inner content */
.approach-card__inner {
  padding: 2.5rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Red bar — top border reveal on hover */
.approach-card__bar {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.approach-card:first-child .approach-card__bar {
  width: 100%;
}
.approach-card:hover .approach-card__bar {
  width: 100%;
}

/* Step number */
.approach-card__num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  display: block;
}

/* Title */
.approach-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Description */
.approach-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 1024px) {
  .approach-section__top {
    grid-template-columns: 1fr;
    padding: 4rem 2rem 3rem;
  }
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-card {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .approach-card:nth-child(2n) { border-right: none; }
  .approach-card:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 600px) {
  .about-home__split {
    grid-template-columns: 1fr;
  }
  .about-home__photo {
    height: 280px;
    order: -1;
  }
  .about-home__text {
    padding: 3rem 1.5rem;
  }
  .approach-section__top {
    padding: 3rem 1.5rem 2.5rem;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .approach-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .approach-card:last-child { border-bottom: none; }
}

@media (max-width: 900px) {
  .about-home__split {
    grid-template-columns: 1fr;
  }
  .about-home__photo {
    height: 320px;
    order: -1;
  }
  .about-home__text {
    padding: 3rem 2rem;
  }
  .about-home__photo::after { display: none; }
}

/* ==========================================
   SECTION: USŁUGI HOME (SERVICE TILES)
========================================== */
.services-home {
  background: var(--color-black);
  padding: 6rem 0;
  border-top: 1px solid var(--color-mid);
}

.services-home__header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.services-home__header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-white);
  margin-top: 0.75rem;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-mid);
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
}

.service-tile {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  cursor: pointer;
}

.service-tile__bg {
  position: absolute;
  inset: 0;
  background-image: var(--tile-bg);
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.3);
  transition: filter 0.5s var(--ease, ease),
              transform 0.5s var(--ease, ease);
}

.service-tile:hover .service-tile__bg {
  filter: brightness(0.55) saturate(0.6);
  transform: scale(1.04);
}

.service-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,10,0.9) 0%,
    rgba(10,10,10,0.2) 60%,
    transparent 100%);
  z-index: 1;
}

.service-tile__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  z-index: 2;
}

.service-tile__cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}

.service-tile h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-tile p {
  font-size: 0.875rem;
  color: var(--color-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
  text-decoration: none;
  transition: gap var(--dur-fast, 0.15s) var(--ease, ease);
}
.service-tile__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.service-tile__link:hover { gap: 0.875rem; }

@media (max-width: 768px) {
  .service-tiles {
    grid-template-columns: 1fr;
  }
  .service-tile {
    min-height: 320px;
  }
}

/* ==========================================
   SECTION: KONTAKT HOME
========================================== */
.contact-home {
  background: var(--color-dark);
  border-top: 1px solid var(--color-mid);
}

.contact-home__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.contact-home__left {
  padding: 6rem 4rem 6rem 2rem;
  border-right: 1px solid var(--color-mid);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-home__left h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.contact-home__left p {
  font-size: 1rem;
  color: var(--color-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 460px;
}

.contact-home__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-style: normal;
}

.contact-home__detail {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-light);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--dur-fast, 0.15s) var(--ease, ease);
}
.contact-home__detail:hover { color: var(--color-white); }
.contact-home__detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-red);
  opacity: 0.8;
}

.contact-home__right {
  padding: 6rem 2rem 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .contact-home__inner {
    grid-template-columns: 1fr;
  }
  .contact-home__left {
    padding: 4rem 1.5rem 2rem;
    border-right: none;
    border-bottom: 1px solid var(--color-mid);
    text-align: center;
    align-items: center;
  }
  .contact-home__left p { max-width: 100%; }
  .contact-home__details { align-items: center; }
  .contact-home__right {
    padding: 2rem 1.5rem 4rem;
  }
}

/* ==========================================
   CONTACT FORM
========================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-light);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-mid);
  border-radius: 0;
  padding: 0.875rem 1.25rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast, 0.15s) var(--ease, ease),
              background var(--dur-fast, 0.15s) var(--ease, ease);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(160,160,165,0.4);
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' stroke='%23A0A0A5' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1 1 6 7 11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 12px;
  cursor: pointer;
}

.contact-form select option {
  background: var(--color-dark);
  color: var(--color-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-red);
  background: rgba(255,16,28,0.04);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group--checkbox {
  gap: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-light);
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin-top: 0.2em;
  accent-color: var(--color-red);
  cursor: pointer;
  padding: 0;
}

.checkbox-label a {
  color: var(--color-red);
  text-decoration: none;
}
.checkbox-label a:hover {
  text-decoration: underline;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LANG SWITCH
========================================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-switch__item {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-light);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--dur-fast, 0.15s) var(--ease, ease);
  user-select: none;
}

.lang-switch__item.is-active {
  color: var(--color-white);
}

.lang-switch__item:hover {
  color: var(--color-white);
}

.lang-switch__divider {
  color: var(--color-mid);
  font-size: 0.625rem;
  line-height: 1;
  user-select: none;
}

/* ==========================================
   SCOPE BANNER — "8 obszarów produkcji."
========================================== */

.scope-banner {
  border-top: 2px solid #FF3C1A;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, #050507 0%, #09090d 48%, #050507 100%);
  position: relative;
  overflow: hidden;
}

.scope-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,60,26,0.14), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(255,60,26,0.08), transparent 22%),
    linear-gradient(135deg, transparent 0 46%, rgba(255,255,255,0.035) 46.2%, transparent 46.6%),
    linear-gradient(315deg, transparent 0 60%, rgba(255,255,255,0.028) 60.2%, transparent 60.6%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 74px);
  opacity: 0.95;
  pointer-events: none;
}

.scope-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.24), transparent 22%, transparent 78%, rgba(0,0,0,0.22));
  pointer-events: none;
}

.scope-banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.scope-banner__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 100%;
  min-height: 8rem;
}

.scope-banner__side--left  { border-right: 1px solid rgba(255,255,255,0.07); }
.scope-banner__side--right { border-left:  1px solid rgba(255,255,255,0.07); }

.scope-banner__deco-text {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.14);
  writing-mode: vertical-rl;
}

.scope-banner__side--left .scope-banner__deco-text { transform: rotate(180deg); }

.scope-banner__deco-dots {
  display: block;
  width: 1.5rem;
  height: clamp(3rem, 6vw, 5rem);
  background-image: radial-gradient(circle, rgba(255,60,26,0.35) 1px, transparent 1px);
  background-size: 6px 6px;
  background-repeat: repeat;
}

.scope-banner__stat {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.scope-banner__num {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 12vw, 12rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-red);
  -webkit-text-stroke: 1px rgba(255,255,255,0.1);
}

.scope-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scope-banner__label {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.scope-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-white);
}

@media (max-width: 640px) {
  .scope-banner__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
    justify-items: center;
    text-align: center;
  }
  .scope-banner__side { display: none; }
  .scope-banner__num  { font-size: clamp(5rem, 18vw, 7rem); }
}

/* ==========================================
   INDUSTRIES — Branże
========================================== */

.industries {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014) 42%, rgba(255,16,28,0.052)),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    #08090c;
  background-size: auto, 56px 56px, 56px 56px, auto;
  padding: 3rem 0 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* czerwona kreska nad sekcją branż */
.industries::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,16,28,0.6) 25%,
    rgba(255,16,28,0.9) 50%,
    rgba(255,16,28,0.6) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 41%, rgba(255,255,255,0.055) 41.08%, transparent 41.25%),
    linear-gradient(120deg, transparent 0 56%, rgba(255,16,28,0.24) 56.08%, transparent 56.3%),
    linear-gradient(90deg, transparent 0 70%, rgba(255,255,255,0.05) 70.08%, transparent 70.25%);
  opacity: 0.7;
  pointer-events: none;
}

.industries > * { position: relative; z-index: 1; }

/* ---- Nagłówek 2-kolumnowy ---- */

.industries__top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  width: min(1320px, calc(100% - clamp(2rem, 6vw, 7rem)));
  margin: 0 auto clamp(2rem, 3vw, 2.75rem);
  padding: clamp(1.75rem, 3.2vw, 3rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
}

.industries__top::after { display: none; }

.industries__top::before {
  content: '';
  position: absolute;
  left: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  top: clamp(1.75rem, 3.2vw, 3rem);
  height: 1px;
  background: linear-gradient(90deg, var(--color-red), rgba(255,255,255,0.2), transparent 74%);
}
.industries__headline-block,
.industries__copy-block,
.industries__facts {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.industries__headline-block {
  padding-top: clamp(1rem, 2vw, 1.65rem);
}

.industries__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: clamp(0.9rem, 2vw, 1.85rem) 0 0;
  max-width: 11ch;
}

.industries__nowrap {
  white-space: nowrap;
}

.industries__copy-block {
  align-self: end;
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  padding: clamp(1.35rem, 2.4vw, 2rem) clamp(1.35rem, 2.4vw, 2rem) clamp(1.4rem, 2.4vw, 2rem);
  border-left: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, 36px 36px;
}

.industries__intro {
  max-width: 44rem;
  font-size: clamp(0.96rem, 1vw, 1.08rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.76;
  margin: 0;
}

.industries__more {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.industries__more:hover { gap: 0.625rem; opacity: 0.75; }

.industries__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.018);
}

.industries__facts span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.industries__facts span:last-child { border-right: none; }
.industries__facts strong {
  color: var(--color-red);
  font-weight: 500;
}

/* ---- Karuzela ---- */

.ind-carousel {
  position: relative;
  /* zanikające boki */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.ind-carousel__track {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.ind-carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.ind-carousel__track.is-auto-playing {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.ind-carousel__track::-webkit-scrollbar { display: none; }

/* strzałki absolutnie na środku karuzeli */
.ind-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(10,10,12,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ind-nav-btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

.ind-nav-btn--prev { left: clamp(4rem, 9%, 7rem); }
.ind-nav-btn--next { right: clamp(4rem, 9%, 7rem); }

.ind-nav-btn:hover {
  border-color: #FF3C1A;
  background: rgba(255,60,26,0.18);
}

/* ---- Karta branżowa ---- */

.ind-card {
  position: relative;
  background: #0d0d0f;
  overflow: hidden;
  /* karuzela: stała szerokość, ~3 karty widoczne */
  flex: 0 0 clamp(20rem, 31vw, 36rem);
  min-height: clamp(26rem, 36vw, 40rem);
  scroll-snap-align: start;
  cursor: default;
  transition: background 0.4s ease;
}

.ind-card:hover { background: #111114; }

.ind-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.ind-card:hover .ind-card__bg {
  opacity: 0.72;
  transform: scale(1.04);
}

.ind-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.15) 100%
  );
  transition: background 0.4s ease;
}

/* czerwona kreska na dole pojawiająca się na hover */
.ind-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 5;
}

.ind-card:hover::before { transform: scaleX(1); }

.ind-card::after { display: none; }

.ind-card__num {
  position: absolute;
  top: 1.35rem;
  left: 1.65rem;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 1.55vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-red);
  z-index: 4;
}

.ind-card__icon {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 4;
  width: 3.2rem;
  height: 3.2rem;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}
.ind-card__icon svg,
.ind-card__icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.ind-card__icon img {
  object-fit: contain;
  opacity: 0.55;
  filter: invert(1);
}

.ind-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1.25rem, 2vw, 1.75rem) clamp(1.5rem, 2.5vw, 2rem);
  z-index: 4;
  /* strong gradient so text always readable */
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.ind-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 1.8vw, 1.65rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.625rem;
}

.ind-card__desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin: 0;
}

/* ---- CTA bar ---- */

.industries__cta-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(255,60,26,0.5);
  background: rgba(255,255,255,0.02);
  margin-top: 0;
}

.industries__cta-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 1.75rem 2rem;
}

.industries__cta-ico {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-red);
  flex-shrink: 0;
  opacity: 0.8;
}

.industries__cta-ico svg { width: 100%; height: 100%; }
.industries__cta-text { flex: 1; }

.industries__cta-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.industries__cta-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: var(--color-light);
  opacity: 0.65;
  line-height: 1.55;
}

.industries__cta-btn { flex-shrink: 0; white-space: nowrap; }

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .industries__top {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 42rem);
    gap: 1.25rem;
    padding-top: 2rem;
    margin-bottom: 1.75rem;
  }
  .industries__top::before { top: 2rem; }
  .industries__headline-block { padding-top: 1.5rem; }
  .industries__heading { font-size: clamp(2rem, 9vw, 3.25rem); }
  .industries__copy-block {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .industries__facts { grid-template-columns: 1fr; }
  .industries__facts span {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .industries__facts span:last-child { border-bottom: none; }
  .ind-card {
    flex: 0 0 clamp(16rem, 72vw, 26rem);
    min-height: clamp(22rem, 60vw, 30rem);
  }
  .industries__cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }
  .industries__cta-btn { width: 100%; justify-content: center; }
}


@media (max-width: 480px) {
  .industries__top { width: min(100% - 1.5rem, 42rem); padding-top: 1.5rem; }
  .industries__top::before { top: 1.5rem; }
  .industries__copy-block { padding: 1.15rem; }
  .industries__facts span { font-size: 0.56rem; }
  .ind-card {
    flex: 0 0 88vw;
    min-height: clamp(20rem, 100vw, 26rem);
  }
  .ind-card__title { font-size: 1.08rem; }
  .ind-card__desc  { font-size: 0.72rem; }
}

/* ==========================================
   LARGE DISPLAY READABILITY
========================================== */
@media (min-width: 1800px) {
  .hero__ref-id,
  .hero__ref-loc,
  .hero__chips-label,
  .quote-strip__label,
  .section-label,
  .services-specs__lbl,
  .panel__arrow,
  .stat__label,
  .process-card__meta,
  .industries__eyebrow,
  .ind-card__desc,
  .industries__cta-text span {
    font-size: 0.75rem;
  }

  .hero__sub,
  .quote-strip__original,
  .panel__content p,
  .why-card__text,
  .process-card__desc,
  .industries__lead,
  .industries__cta-text strong {
    font-size: 1rem;
  }

  .quote-strip {
    grid-template-columns: minmax(0, 1200px) clamp(340px, 19vw, 460px);
    height: 320px;
  }

  .quote-strip__headline {
    font-size: 2.15rem;
  }

  .quote-strip__name {
    font-size: 0.8125rem;
  }

  .services-header h2,
  .industries__heading {
    font-size: 3.75rem;
  }

  .services-specs__val {
    font-size: 1.25rem;
  }

  .panel__num {
    font-size: 1.125rem;
  }

  .panel__label-vert {
    font-size: 1rem;
  }

  .panel__content h3 {
    font-size: 2.125rem;
  }

  .stat__value,
  .section-title,
  .why-section h2,
  .process-header h2,
  .cta-photo__text h2 {
    font-size: 3.75rem;
  }

  .ind-card__title {
    font-size: 1.0625rem;
  }
}


@media (min-width: 2560px) {
  .quote-strip {
    grid-template-columns: minmax(0, 1280px) clamp(400px, 17vw, 540px);
    height: 360px;
  }

  .quote-strip__headline {
    font-size: 2.25rem;
  }

  .hero__ref-id,
  .hero__ref-loc,
  .hero__chips-label,
  .quote-strip__label,
  .section-label,
  .services-specs__lbl,
  .panel__arrow,
  .stat__label,
  .process-card__meta,
  .industries__eyebrow,
  .ind-card__desc,
  .industries__cta-text span {
    font-size: 0.8125rem;
  }

  .services-header h2,
  .industries__heading,
  .stat__value,
  .section-title,
  .why-section h2,
  .process-header h2,
  .cta-photo__text h2 {
    font-size: 4rem;
  }
}
