/* ============================================================
   CHEMATEX-ECO — CLEAN EDITORIAL / LIGHT INDUSTRIAL
   Fonts: Barlow Condensed (headings) · Barlow (body) · Space Mono (labels)
   Palette: Warm white · Deep charcoal · Amber orange
   ============================================================ */

:root {
  --bg:         #F7F5F2;
  --bg-off:     #EFECE8;
  --surface:    #FFFFFF;
  --surface-2:  #F0EDE9;

  --ink:        #111010;
  --ink-mid:    #555250;
  --ink-dim:    #A8A5A2;
  --ink-ghost:  #D8D5D1;

  --accent:     #D45200;
  --accent-lt:  rgba(212, 82, 0, 0.1);
  --accent-hover: #b84700;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --nav-h:  72px;
  --ease:   cubic-bezier(0.23, 1, 0.32, 1);
  --trans:  0.3s cubic-bezier(0.23, 1, 0.32, 1);

  /* legacy aliases */
  --bg-white:     var(--surface);
  --bg-light:     var(--bg);
  --bg-mid:       var(--ink-ghost);
  --bg-dark:      #1C1B19;
  --bg-darker:    #111010;
  --text-main:    var(--ink-mid);
  --text-dark:    var(--ink);
  --text-light:   #FFFFFF;
  --font-head:    var(--font-display);
  --border-radius: 0px;
  --nav-height:   var(--nav-h);
  --gray:         var(--ink-mid);
  --text-muted:   var(--ink-mid);
  --blue:         var(--accent);
  --blue-light:   rgba(212, 82, 0, 0.6);
  --accent-var:   var(--accent);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5em;
}

a { text-decoration: none; color: inherit; transition: color var(--trans); }
img { max-width: 100%; height: auto; display: block; }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary, .btn-outline, .btn-accent, .btn-outline-dark, .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 26px;
  transition: var(--trans);
  cursor: pointer;
  border-radius: 0;
  font-weight: 400;
  border: 1px solid transparent;
}

.btn-primary, .btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover, .btn-accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-ghost);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  border-bottom: none;
  padding: 9px 5%;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.topbar a { color: rgba(255,255,255,0.5); }
.topbar a:hover { color: var(--accent); }
.topbar-sep { color: rgba(255,255,255,0.2); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 245, 242, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid var(--ink-ghost);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 9px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--trans);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: var(--trans);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: calc(var(--nav-h) + 38px);
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  padding: 2.5rem 5%;
  border-top: 1px solid var(--ink-ghost);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink-ghost);
  display: block;
  color: var(--ink);
}
.mobile-menu.open { display: flex; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(17,16,16,0.85) 0%, rgba(17,16,16,0.5) 60%, rgba(17,16,16,0.2) 100%);
}

/* Thin accent stripe — right edge */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-badge::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 2rem;
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero buttons — inverted for dark bg */
.hero .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.hero .btn-primary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.hero .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
}

.stat-item {
  padding: 2.8rem 5%;
  position: relative;
  text-align: left;
}
.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 3.4vw, 3.8rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}
/* First stat gets orange number for visual anchor */
.stat-item:first-child .stat-num { color: var(--accent); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.58);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.65;
}

/* ── TRUST BAR ──────────────────────────────────────────────── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
}

.trust-item {
  padding: 1.2rem 5%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trust-item:not(:last-child) {
  border-right: 1px solid var(--ink-ghost);
}

.trust-item-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.trust-item-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section {
  padding: 7rem 5%;
  background: var(--bg);
}
.section-light {
  background: var(--surface);
  border-bottom: 1px solid var(--ink-ghost);
}
.section-dark  {
  background: var(--ink);
  color: #fff;
}
.section-dark h2,
.section-dark h3,
.section-dark .section-label { color: #fff; }
.section-dark .section-intro { color: rgba(255,255,255,0.55); }
.section-dark .section-label::before { background: var(--accent); }
.section-white { background: var(--surface); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  width: 26px; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-header-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: 4rem;
}
.section-header-2col h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
}
.section-header-2col h2 span { color: var(--accent); }

/* Standalone h2 directly in a section (not wrapped in 2col header) */
.section > h2,
.section-dark > h2,
.section-charcoal > h2,
.section-light > h2 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.88;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.85;
  font-weight: 300;
}
/* Standalone intro (not in 2-col grid) gets a max-width */
.section > .section-intro,
.section-dark > .section-intro,
.section-charcoal > .section-intro,
.section-light > .section-intro {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── SERVICE ITEM LEFT ──────────────────────────────────────── */
.svc-item-left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-grow: 1;
}

/* ── SERVICES LIST ──────────────────────────────────────────── */
.svc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--ink-ghost);
  border: 1px solid var(--ink-ghost);
}

.svc-item {
  background: var(--surface);
  padding: 36px 30px;
  transition: background var(--trans);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.svc-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease);
}
.svc-item:hover { background: var(--bg); }
.svc-item:hover::before { height: 100%; }

.svc-item-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
  line-height: 1;
  padding-top: 4px;
  flex-shrink: 0;
  transition: color var(--trans);
}
.svc-item:hover .svc-item-index { color: var(--accent); }

.svc-item-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.svc-item-desc {
  font-size: 0.92rem;
  color: var(--ink-mid);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.7;
  font-weight: 300;
}

.svc-item-arrow {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  transition: color var(--trans);
}
.svc-item:hover .svc-item-arrow { color: var(--accent); }

/* ── SPLIT ──────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-img {
  background-size: cover;
  background-position: center;
  min-height: 520px;
}
.split-img-r { order: 2; }

.split-content {
  padding: 6rem 8% 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}
.split-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  line-height: 0.9;
}
.split-content h2 span { color: var(--accent); }
.split-content .cert-row {
  margin-top: 2rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cert-tag {
  background: transparent;
  padding: 5px 12px;
  border: 1px solid var(--ink-ghost);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: var(--trans);
}
.cert-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROCESS STEPS ──────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-ghost);
  border: 1px solid var(--ink-ghost);
  position: relative;
  z-index: 1;
}

.step {
  background: var(--surface);
  padding: 40px 30px;
  position: relative;
  transition: background var(--trans);
  border-top: 3px solid transparent;
}
.step:hover {
  background: var(--bg);
  border-top-color: var(--accent);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  background: transparent;
  transition: background var(--trans), color var(--trans);
}
.step:hover .step-num {
  background: var(--accent);
  color: #fff;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.step p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ── FEATURE ROWS ───────────────────────────────────────────── */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--ink-ghost);
  border: 1px solid var(--ink-ghost);
}

/* On dark section, adjust border colors */
.section-dark .feature-rows {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.08);
}

.feature-row {
  display: grid;
  grid-template-columns: 90px 1fr 2.5fr;
  background: var(--surface);
  padding: 26px 30px;
  align-items: center;
  gap: 30px;
  transition: background var(--trans);
}
.feature-row:hover { background: var(--bg); }

.section-dark .feature-row {
  background: rgba(255,255,255,0.03);
}
.section-dark .feature-row:hover { background: rgba(255,255,255,0.06); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.section-dark .feature-title { color: #fff; }
.feature-body {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
}
.section-dark .feature-body { color: rgba(255,255,255,0.5); }

/* ── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cta-content {
  padding: 7rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
}
.cta-content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  line-height: 0.92;
}
.cta-content h2 span { color: var(--accent); }
.cta-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons in CTA (dark bg) */
.cta-band .btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta-band .btn-accent:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.5); }

.cta-image {
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

/* ── PAGE HERO (Subpages) ───────────────────────────────────── */
.page-hero {
  padding: 8rem 5% 6rem;
  background: var(--ink);
  border-bottom: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
}
/* Decorative large background text */
.page-hero::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
}
.page-hero-over {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.page-hero-over::before, .page-hero-over::after {
  content: ''; width: 18px; height: 1px; background: var(--accent);
}
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.page-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
}

/* ── VALUES LIST ────────────────────────────────────────────── */
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
}
.value-row {
  background: rgba(255,255,255,0.03);
  padding: 40px 32px;
  transition: background var(--trans), border-left-color var(--trans);
  border-left: 3px solid transparent;
  position: relative;
}
.value-row:nth-child(even) { background: rgba(255,255,255,0.055); }
.value-row:hover {
  background: rgba(255,255,255,0.08);
  border-left-color: var(--accent);
}
.value-head {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.1;
}
.value-head small {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-style: normal;
  flex-shrink: 0;
}
.value-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  font-weight: 300;
}

/* ── SERVICES DETAILS (uslugi.html) ────────────────────────── */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink-ghost);
}
.section-dark .svc-detail { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.svc-detail:nth-child(even) .svc-detail-text { order: 2; padding-left: 5%; padding-right: 5%; }
.svc-detail:nth-child(even) .split-img { order: 1; }
.svc-detail-text { padding: 5rem 5%; }

.spec-list { list-style: none; margin-top: 2rem; }
.spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-ghost);
  font-size: 0.93rem;
  color: var(--ink-mid);
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 300;
  line-height: 1.5;
}
.spec-list li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── TECH LIST (technologia.html) ───────────────────────────── */
.tech-rows {
  display: flex;
  flex-direction: column;
  counter-reset: techcounter;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.tech-row {
  counter-increment: techcounter;
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: background var(--trans);
  overflow: hidden;
}
.tech-row:nth-child(even) { background: rgba(255,255,255,0.03); }
.tech-row:hover { background: rgba(255,255,255,0.07); }

/* Large decorative counter watermark */
.tech-row::after {
  content: counter(techcounter, decimal-leading-zero);
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.tech-row-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.15;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
/* CSS counter label above name */
.tech-row-name::before {
  content: counter(techcounter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.tech-row-desc {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.78;
  font-weight: 300;
  padding: 34px 30px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.tech-row-specs {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.58);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  list-style: none;
  padding: 34px 30px;
  letter-spacing: 0.06em;
}
.tech-row-specs li { transition: color var(--trans); }
.tech-row-specs li::before { content: '→  '; color: var(--accent); }
.tech-row:hover .tech-row-specs li { color: rgba(255,255,255,0.6); }
.tech-row-specs strong { color: var(--accent); font-weight: 700; }

/* ── SECTION CHARCOAL (warm dark, distinct from section-dark) ── */
.section-charcoal {
  padding: 7rem 5%;
  background: #1C1914;
  color: #fff;
  position: relative;
}
.section-charcoal h2,
.section-charcoal h3,
.section-charcoal .section-label { color: #fff; }
.section-charcoal .section-intro { color: rgba(255,255,255,0.5); }
.section-charcoal .section-label::before { background: var(--accent); }

.section-charcoal .feature-rows {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.06);
}
.section-charcoal .feature-row {
  background: rgba(255,255,255,0.015);
}
.section-charcoal .feature-row:nth-child(even) {
  background: rgba(255,255,255,0.045);
}
.section-charcoal .feature-row:hover {
  background: rgba(255,255,255,0.08);
  border-left-color: var(--accent);
}
.section-charcoal .feature-title { color: #fff; }
.section-charcoal .feature-body { color: rgba(255,255,255,0.65); }

/* ── KONTAKT ────────────────────────────────────────────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
}
.kontakt-card {
  background: rgba(255,255,255,0.03);
  padding: 36px 28px;
  transition: background var(--trans);
}
.kontakt-card:hover { background: rgba(255,255,255,0.06); }
.kontakt-card--plain { background: var(--accent); }
.kontakt-card--plain:hover { background: var(--accent-hover); }
.kontakt-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.kontakt-card--plain .kontakt-card-tag { color: rgba(255,255,255,0.65); }
.kontakt-card-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.kontakt-card--plain .kontakt-card-val { color: #fff; }
.kontakt-card-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  font-weight: 300;
  line-height: 1.5;
}
.kontakt-card--plain .kontakt-card-hint { color: rgba(255,255,255,0.72); }
.kontakt-certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Dark section cert-tag */
.section-dark .cert-tag {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}
.section-dark .cert-tag:hover { border-color: var(--accent); color: var(--accent); }

.map-wrap { width: 100%; background: var(--surface); }
.map-wrap iframe { width: 100%; height: 450px; border: none; display: block; filter: grayscale(30%); }

.form-section { padding: 6rem 5%; background: var(--bg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  color: var(--ink-mid);
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ink-ghost);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color var(--trans);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--accent); }
.form-control::placeholder { color: var(--ink-dim); }
textarea.form-control { min-height: 140px; resize: vertical; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 5rem 5% 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 1rem; display: block; }
.footer-brand p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.62);
  font-weight: 300;
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li:not(:has(a)) { font-size: 0.86rem; font-weight: 300; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.42);
}

/* ── SERVICE PAGE NAV ───────────────────────────────────────── */
.svc-nav {
  background: var(--surface);
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid var(--ink-ghost);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  scrollbar-width: none;
}
.svc-nav::-webkit-scrollbar { display: none; }
.svc-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 15px 24px;
  border-right: 1px solid var(--ink-ghost);
  white-space: nowrap;
  transition: color var(--trans), background var(--trans);
  flex-shrink: 0;
}
.svc-nav a:hover { color: var(--accent); background: var(--bg); }
.svc-nav a:first-child { border-left: 3px solid var(--accent); color: var(--ink); }

/* ── SVC DETAIL INNER LIST LABEL ────────────────────────────── */
.svc-detail-list {
  padding: 3.5rem 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-dark .svc-detail-list { background: rgba(255,255,255,0.02); }

.svc-detail-list-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.svc-detail-list-label::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── DESIGN ENHANCEMENTS ────────────────────────────────────── */

/* Hero: large watermark text (decorative) */
.hero::before {
  content: 'ECO.';
  position: absolute;
  right: -1%;
  bottom: -8%;
  font-family: var(--font-display);
  font-size: clamp(12rem, 28vw, 38rem);
  font-weight: 900;
  color: rgba(255,255,255,0.032);
  line-height: 0.82;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.06em;
  user-select: none;
}

/* Hero vertical label — right side */
.hero-vert-label {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  z-index: 3;
  white-space: nowrap;
}

/* Stats bar: gradient top edge to separate from hero */
.stats-bar { position: relative; }
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(212,82,0,0.4) 40%, transparent 70%);
}

/* Stat item: accent left border + scale number */
.stat-item {
  border-left: 2px solid transparent;
  transition: border-left-color var(--trans);
  cursor: default;
}
.stat-item:hover { border-left-color: var(--accent); }
.stat-item:first-child { border-left-color: var(--accent); }

/* Service items: shadow lift on hover */
.svc-item {
  transition: background var(--trans), box-shadow 0.28s var(--ease);
}
.svc-item:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  z-index: 2;
  position: relative;
}

/* Steps: top gradient accent line */
.steps { position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 80%);
}

/* Feature rows: alternating + animated left border accent */
.feature-row {
  border-left: 3px solid transparent;
  transition: background var(--trans), border-left-color var(--trans);
  padding-left: 33px;
}
.feature-row:hover { border-left-color: var(--accent); }
.section-dark .feature-row:nth-child(even) { background: rgba(255,255,255,0.05); }
.section-dark .feature-row:hover { background: rgba(255,255,255,0.08); border-left-color: var(--accent); }

/* Feature row light variant (section-light context) */
.feature-row-light {
  background: var(--bg);
}
.feature-row-light:hover {
  background: var(--surface-2);
  border-left-color: var(--accent);
}

/* Kontakt card--plain: dark treatment instead of full orange */
.kontakt-card--plain {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);
}
.kontakt-card--plain:hover { background: rgba(255,255,255,0.09); }
.kontakt-card--plain .kontakt-card-tag { color: var(--accent); }
.kontakt-card--plain .kontakt-card-val { color: rgba(255,255,255,0.9); }
.kontakt-card--plain .kontakt-card-hint { color: rgba(255,255,255,0.45); }

/* Section white: subtle dot-grid background texture */
.section-white {
  background-image: radial-gradient(circle, var(--ink-ghost) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: var(--surface);
  position: relative;
}
.section-white::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--surface) 0%, transparent 15%, transparent 85%, var(--surface) 100%);
  pointer-events: none;
}
.section-white > * { position: relative; z-index: 1; }

/* Section dark: large section number decoration */
.section-dark {
  position: relative;
  overflow: hidden;
}

/* Split: subtle depth on image */
.split-img {
  transition: transform 0.6s var(--ease);
}
.split:hover .split-img {
  transform: scale(1.02);
}

/* CTA band: refined */
.cta-band { overflow: hidden; }
.cta-image { transition: transform 0.6s var(--ease); }
.cta-band:hover .cta-image { transform: scale(1.03); }

/* Page hero: decorative top accent stripe */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}

/* Section label: stronger visual */
.section-label {
  font-size: 0.77rem;
}

/* Button hover: subtle right-shift on arrow */
.btn-primary, .btn-accent, .btn-outline, .nav-cta {
  transition: var(--trans), letter-spacing 0.2s var(--ease);
}

/* svc-detail children when no class */
.svc-detail > div:not(.svc-detail-text):not(.split-img) {
  padding: 3.5rem 4%;
}
.section-dark .svc-detail > div:not(.svc-detail-text):not(.split-img) {
  padding: 3.5rem 4%;
}

/* Spec list in dark section */
.section-dark .spec-list li {
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
}
.section-dark .spec-list li::before { color: var(--accent); }

/* Inspekcja image radius override (consistency) */
.svc-detail > div[style*="background"] {
  border-radius: 0 !important;
}

/* Trust bar: add a tiny bottom margin to prevent content collision */
.trust-bar { border-bottom: 2px solid var(--accent); }

/* Nav refinement: active state with bottom accent */
.nav-links a.active { color: var(--ink); font-weight: 700; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .section-header-2col { grid-template-columns: 1fr; gap: 20px; }
  .feature-row { grid-template-columns: 80px 1fr 2fr; }
}

@media (max-width: 900px) {
  .topbar { justify-content: center; font-size: 0.73rem; gap: 12px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 80vh; }
  .hero h1 { font-size: 4rem; }

  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }

  .split { grid-template-columns: 1fr; }
  .split-img { order: 1 !important; min-height: 300px; }
  .split-content { order: 2 !important; padding: 4rem 5%; }

  .steps { grid-template-columns: 1fr 1fr; }
  .values-list { grid-template-columns: 1fr; }

  .cta-band { grid-template-columns: 1fr; }
  .cta-content { padding: 4rem 5%; }
  .cta-image { min-height: 300px; }

  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail-text,
  .svc-detail-text { padding: 3rem 5%; order: 2; }
  .svc-detail .split-img { order: 1 !important; min-height: 280px; }
  .tech-row { grid-template-columns: 1fr; }
  .tech-row-name, .tech-row-desc, .tech-row-specs { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 24px 24px; }
  .tech-row-specs { border-bottom: none; }
  .tech-row::after { display: none; }
  .kontakt-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 6px; }
  .feature-num { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-bottom: 1px solid var(--ink-ghost); }
  .hero h1 { font-size: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
}
