/* ==========================================================
   Envirolab Sp. z o.o. — Główny arkusz stylów
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Zmienne CSS ---------------------------------------- */
:root {
  --primary:        #6ab04c;   /* zielony z logo Envirolab */
  --primary-light:  #82c45e;   /* jaśniejszy odcień */
  --primary-dark:   #4d8a32;   /* ciemniejszy, hover */
  --primary-bg:     #f2f2f2;   /* jasne tło szare */
  --white:          #ffffff;
  --gray-light:     #f5f5f5;
  --gray:           #e2e2e2;
  --gray-mid:       #9a9a9a;
  --text:           #111111;   /* prawie czarny — jak tekst w logo */
  --text-light:     #555555;
  --shadow:         0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover:   0 8px 28px rgba(106, 176, 76, 0.22);
  --radius:         10px;
  --radius-lg:      16px;
  --transition:     all 0.3s ease;
  --max-width:      1200px;
  --header-height:  100px;
}

/* --- Reset & Base --------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* --- Kontenery ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typografia ----------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); letter-spacing: -0.1px; }
h4 { font-size: 1rem; letter-spacing: 0; }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

/* --- Przyciski ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-green {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-green:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* --- Header & Nawigacja --------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: none;
  transition: height 0.35s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Header po przewinięciu — solidne tło, nieznacznie niższy */
.site-header.scrolled {
  background: #f5f5f5;
  border-bottom-color: #e2e8d8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 75px;
}

.site-header.scrolled .logo-img {
  width: 175px;
}

@media (max-width: 900px) {
  .site-header.scrolled .logo-img {
    width: 130px;
  }
}

@media (max-width: 680px) {
  .site-header.scrolled {
    height: 58px;
  }
  .site-header.scrolled .logo-img {
    width: 120px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 200px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: width 0.35s ease, filter 0.4s ease;
}

.site-header.scrolled .logo-img {
  filter: none;
}

/* Logo w stopce — oryginalne kolory na jasnym tle */
.logo-img-footer {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

/* Nawigacja główna */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.main-nav a {
  display: block;
  padding: 20px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);   /* białe na przezroczystym tle */
  transition: color 0.4s ease;
  text-decoration: none;
  position: relative;
}

.site-header.scrolled .main-nav a {
  color: #222222;                      /* ciemne gdy solidne tło */
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Przełącznik języka */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-left: 12px;
}

.site-header.scrolled .lang-switcher {
  color: var(--text-light);
}

.lang-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.lang-link:hover {
  color: var(--primary);
}

.lang-link--active {
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: rgba(0,0,0,0.22);
  border: none;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(0,0,0,0.35);
}

.site-header.scrolled .hamburger {
  background: var(--gray);
}

.site-header.scrolled .hamburger:hover {
  background: #e0e0e0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.site-header.scrolled .hamburger span {
  background: var(--text);
}

/* Hamburger — stan aktywny */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Sekcje ogólne -------------------------------------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Wariant z wyrównaniem do lewej */
.section-header--left {
  text-align: left;
  max-width: none;
}

.section-header--left p {
  margin-left: 0;
}

/* Odstęp po section-label gdy jest nad h2 lub p */
.section-label + h2,
.section-label + p {
  margin-top: 12px;
}

/* --- Karty --------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

/* --- Hero ---------------------------------------------- */
.hero {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.70) 100%),
              url('images/hero-bg.webp') center/cover no-repeat;
  min-height: 420px;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}


.hero .container {
  padding-left: 80px;
  padding-right: 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sekcja hero strony wewnętrznej -------------------- */
.page-hero {
  background: #3a3a3a;
  min-height: 420px;
  padding-top: var(--header-height);
  text-align: center;
  display: flex;
  align-items: center;
}

.page-hero--photo h1,
.page-hero--photo p {
  color: var(--white);
}

.page-hero--photo .breadcrumb a {
  color: rgba(255,255,255,0.65);
}

.page-hero--photo .breadcrumb a:hover {
  color: var(--white);
}

.page-hero--photo .breadcrumb span,
.page-hero--photo .breadcrumb .current {
  color: rgba(255,255,255,0.9);
}

.page-hero .container {
  padding-left: 80px;
  padding-right: 80px;
  width: 100%;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* Page hero — tła dla poszczególnych podstron */
.page-hero--o-nas {
  background-image: radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.70) 100%),
                    url('images/hero-onas.webp');
  background-size: cover;
  background-position: center;
}

.page-hero--oferta {
  background-image: radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.70) 100%),
                    url('images/hero-oferta.webp');
  background-size: cover;
  background-position: center;
}

.page-hero--kontakt {
  background-image: radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.70) 100%),
                    url('images/hero-kontakt.webp');
  background-size: cover;
  background-position: center;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: #aaaaaa;
}

.breadcrumb .current {
  color: var(--text);
}

/* --- CTA sekcja ---------------------------------------- */
.cta-section {
  background: #f2f2f2;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--text);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- O nas — nowy układ -------------------------------- */
.onas-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.onas-intro-text {
  padding: 0 56px 0 0;
}

.onas-intro-text h2 {
  margin-bottom: 24px;
}

.onas-intro-text p {
  margin-bottom: 16px;
}

.onas-intro-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
}

.onas-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.onas-intro-photo:hover img {
  transform: scale(1.04);
}

/* Wyróżniki z numerami */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(6px);
}

.feature-item:hover .feature-num {
  opacity: 0.4;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  padding-top: 4px;
  transition: opacity 0.3s ease;
}

.feature-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-body p {
  margin: 0;
  color: var(--text-light);
}

/* Kroki procesu */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto 1fr;
  gap: 0;
  margin-top: 48px;
  align-items: start;
}

.step-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  padding: 32px 28px 32px 28px;
  border-left: 2px solid var(--gray);
}

.step-item:first-child {
  border-left: none;
  padding-left: 0;
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}

.step-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.step-item:hover .step-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.step-item h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
  transition: color 0.3s ease;
}

.step-item:hover h3 {
  color: var(--primary);
}

.step-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-light);
  line-height: 1.65;
}

/* Kompaktowy wariant steps-row — używany na stronie Kontakt */
.steps-row--compact {
  margin-top: 32px;
}

.steps-row--compact .step-item {
  padding: 20px 20px 20px 20px;
}

.steps-row--compact .step-item:first-child {
  padding-left: 0;
}

.steps-row--compact .step-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.steps-row--compact .step-icon svg {
  width: 18px;
  height: 18px;
}

.steps-row--compact .step-item h3 {
  margin-bottom: 6px;
}


/* --- Statystyki zespołu -------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 24px;
  border-left: 2px solid var(--gray);
}

.stat-item:first-child {
  border-left: none;
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.45;
}

.stats-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 680px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(odd) {
    border-left: none;
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 2px solid var(--gray);
  }
}

/* --- Usługi -------------------------------------------- */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.service-item:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 4px 12px;
  border-radius: 20px;
}

/* --- Oferta — showcase siatka z zdjęciami -------------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.showcase-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.showcase-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.showcase-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.showcase-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.showcase-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-list li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 5px 0 5px 16px;
  border-bottom: 1px solid var(--gray);
  position: relative;
}

.offer-list li:last-child {
  border-bottom: none;
}

.offer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* --- Doświadczenie / Proces — split layout ------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-split-text h2 {
  margin-top: 12px;
  margin-bottom: 16px;
}

.about-split-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-split-photo:hover img {
  transform: scale(1.04);
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.process-list li {
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--gray);
  font-size: 0.95rem;
  color: var(--text-light);
  position: relative;
}

.process-list li:last-child {
  border-bottom: none;
}

.process-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.process-list li strong {
  color: var(--text);
}

/* --- Oferta — siatka kart ------------------------------ */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.offer-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}

.offer-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.offer-card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.offer-card:hover .offer-card-icon {
  background: var(--primary);
  color: var(--white);
}

.offer-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.offer-card p {
  font-size: 0.93rem;
  line-height: 1.7;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* --- Etapy procesu ------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-top: 48px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.process-step-body p {
  font-size: 0.87rem;
  color: var(--text-light);
  max-width: 160px;
  margin: 0 auto;
}

.process-connector {
  height: 2px;
  background: var(--gray);
  align-self: 26px;
  margin-top: 25px;
  min-width: 24px;
}

/* --- Kontakt ------------------------------------------- */

/* Mapa pełnoszerokowa */
.contact-map-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
  height: 520px;
  position: relative;
}

.contact-map-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* Lista danych rejestrowych */
.contact-reg-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-reg-list li {
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  gap: 10px;
}

.contact-reg-list li strong {
  color: var(--text);
  min-width: 60px;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
}

.contact-info {
  background: var(--gray-light);
  padding: 40px;
}

.contact-grid .map-container {
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-left: 1px solid var(--gray);
  height: 100%;
}

.contact-info h3 {
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-item:hover .contact-item-icon {
  background: var(--primary);
  color: var(--white);
}

.contact-item-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-mid);
  margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-item-text a:hover {
  color: var(--primary);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* Mapa */
.map-section {
  padding: 0 0 80px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* --- Footer -------------------------------------------- */
.site-footer {
  background: #ffffff;
  color: #3a3a3a;
  padding: 56px 0 0;
  border-top: 1px solid #e0e0e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #d8d8d8;
  align-items: start;
}

/* Kolumna 1 — dane rejestrowe: h4 → logo → address */
.footer-col--brand .logo-img-footer {
  margin: 10px 0 14px;  /* odstęp między h4 a logo oraz logo a danymi */
}

.footer-col h4 {
  color: #222222;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #444444;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #444444;
}

.footer-col address a {
  color: #444444;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col address a:hover {
  color: var(--primary);
}

/* Etykieta "Siedziba" / "Biuro" w kolumnie adresu */
.footer-addr-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888888;
  display: block;
  margin-top: 8px;
  margin-bottom: 1px;
}

.footer-col address .footer-addr-label:first-child {
  margin-top: 0;
}

/* Tekst RODO w stopce */
.footer-rodo-text {
  font-size: 0.82rem;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Link RODO */
.footer-rodo-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 138, 50, 0.35);
  padding-bottom: 2px;
  transition: var(--transition);
  cursor: pointer;
}

.footer-rodo-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888888;
  margin: 0;
  text-align: center;
}

/* --- Animacje scroll ----------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* Stagowane wejście step-itemów gdy steps-row staje się widoczne.
   Sama .steps-row z klasą fade-up nie animuje opacity — robią to dzieci. */
.steps-row.fade-up {
  opacity: 1 !important;
  transform: none !important;
}

.steps-row .step-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              background 0.3s ease;
}

.steps-row.visible .step-item {
  opacity: 1;
  transform: translateY(0);
}

/* Bazowe opóźnienia (nadpisywane przez JS jeśli dostępne) */
.steps-row.visible .step-item:nth-child(1) { transition-delay: 0s; }
.steps-row.visible .step-item:nth-child(2) { transition-delay: 0.08s; }
.steps-row.visible .step-item:nth-child(3) { transition-delay: 0.16s; }
.steps-row.visible .step-item:nth-child(4) { transition-delay: 0.24s; }

/* Alternatywne opóźnienia dla kart */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.3s; }
.stagger-5 { transition-delay: 0.4s; }

/* --- Dostępność — focus-visible ------------------------ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Logo — hover --------------------------------------- */
.logo {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.82;
}

/* --- Komunikat formularza ------------------------------ */
.form-feedback {
  display: none;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

.form-feedback.success {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  display: block;
}

.form-feedback.error {
  background: #fce4e4;
  color: #c62828;
  border: 1px solid #ef9a9a;
  display: block;
}

/* --- Przycisk wróć na górę ----------------------------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(106, 176, 76, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  pointer-events: none;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(106, 176, 76, 0.45);
}

@media (max-width: 680px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* --- Separator ----------------------------------------- */
.divider {
  height: 1px;
  background: var(--gray);
  margin: 0;
}

/* ========================================================
   RESPONSYWNOŚĆ — Mobile First
   ======================================================== */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .logo-img {
    width: 160px;
  }

  .steps-row {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto 1fr auto auto auto 1fr;
  }

  .steps-row .step-item:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }

  .steps-row .step-item:nth-child(3),
  .steps-row .step-item:nth-child(4) {
    border-top: 2px solid var(--gray);
    padding-top: 32px;
    margin-top: 0;
  }

  .onas-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .onas-intro-text {
    padding: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
}

/* Mobile (≤ 680px) */
@media (max-width: 680px) {
  :root {
    --header-height: 80px;
  }

  .logo-img {
    width: 140px;
  }

  .logo-img-footer {
    width: 140px;
  }

  .lang-switcher {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;  /* zawsze po prawej stronie headera */
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    margin-left: 0;
    background: #ffffff;
    border: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: none;
    z-index: 999;
  }

  .main-nav.open {
    max-height: 400px;
    border-top: 3px solid var(--primary);
    border-bottom: 1px solid #ddd;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

  .main-nav a {
    padding: 18px 24px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid #eee;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 0;
  }

  .hero .container,
  .page-hero .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-content {
    padding: 60px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-connector {
    display: none;
  }

  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-photo {
    min-height: 240px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }

  .steps-row .step-item {
    border-left: none;
    border-top: 1px solid var(--gray);
    padding: 16px 0;
    grid-row: unset;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 4px;
  }

  .steps-row .step-item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .steps-row .step-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    align-self: start;
  }

  .steps-row .step-item h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .steps-row .step-item p {
    grid-column: 2;
    grid-row: 2;
  }

  .steps-row .step-item ul {
    grid-column: 2;
    grid-row: 3;
  }

  .offer-list li::before {
    top: 12px;
    transform: none;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-split-photo {
    order: -1;
  }

  .onas-intro {
    grid-template-columns: 1fr;
  }

  .onas-intro-text {
    padding: 0;
  }

  .onas-intro-photo {
    min-height: 280px;
  }

  .features-list .feature-item {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .feature-num {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid > .footer-col:nth-child(3) {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Bardzo małe ekrany (≤ 380px) */
@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }
}
