/* =========================================================
    ZMIENNE
========================================================= */
:root {
  --green: #3f5d3a;
  --green-light: #f4f7f3;
  --gold: #b9a35c;
  --dark: #2e2e2e;
  --white: #ffffff;
  --transition: 0.3s ease;
  --transition-speed: 0.3s;
}

/* =========================================================
    RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(15px, 1vw + 0.5rem, 17px);
  scroll-behavior: smooth; /* Dla płynnego przewijania do sekcji */
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--green-light);
  color: var(--dark);
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  text-align: center;
  color: var(--green);
  margin-bottom: 24px;
}
h1 span {
  color: var(--gold);
}
h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  text-align: center;
  color: var(--green);
  margin-bottom: 40px;
}
p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: #555;
}

section {
  margin-top: 90px;
}
@media (max-width: 768px) {
  section {
    margin-top: 60px;
  }
}

#kontakt,
#oferta,
#start,
wspolpraca {
  scroll-margin-top: 220px;
}

@media (max-width: 768px) {
  #kontakt,
  #oferta,
  #start,
  wspolpraca {
    scroll-margin-top: 140px;
  }
}

/* =========================================================
    HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  padding-left: 20px;
  padding-right: 20px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}
.brand img {
  width: 150px;
}
.brand-text {
  /* Dodane, aby zawinąć tekst */
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 1rem;
  color: #777;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--dark);
  transition: color var(--transition);
}
.main-nav a:hover {
  color: var(--gold);
}
.main-nav .cta {
  background: var(--green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  transition: background var(--transition);
}
.main-nav .cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* Ukrywanie/pokazywanie nawigacji (dla urządzeń mobilnych) */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  width: 26px;
  height: 3px;
  background: #000;
  display: block;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease-in-out; /* Dodany transition dla animacji hamburgera */
}
.nav-toggle-label span::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
}
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
}

/* Animacja hamburgera w X */
.nav-toggle:checked + .nav-toggle-label span {
  transform: rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span::before {
  opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label span::after {
  transform: translateY(-8px) rotate(-90deg);
}

@media (max-width: 768px) {
  .site-header {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand img {
    width: 80px;
  }
  .brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.1;
  }
  .brand-tagline {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.1;
  }
  .nav-toggle-label {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    display: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px; /* Dodany padding dla lepszego wyglądu */
  }
  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .main-nav .cta {
    margin: 16px;
    text-align: center;
    width: 80%; /* CTA na mobilnym jest szersze */
    padding: 12px 18px;
  }
}

/* =========================================================
    HERO
========================================================= */
.hero {
  background: var(--white);
  border-radius: 30px;
  padding: clamp(50px, 6vw, 80px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.hero p {
  max-width: 70ch; /* Zwiększona szerokość dla dłuższego opisu */
  margin: 0 auto;
}
.hero img {
  width: 100%;
  max-width: 720px;
  margin: 32px auto;
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
  display: block; /* Upewnienie się, że obraz jest blokowy */
}

/* =========================================================
    KARTY / OFERTA
========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.card {
  background: var(--white);
  padding: 32px;
  border-radius: 22px;
  text-align: center;
  font-weight: 600;
  border-top: 5px solid var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  color: var(--dark); /* Kolor tekstu */
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  border-top-color: var(--gold); /* Zmiana koloru paska na hover */
}

/* =========================================================
    PROCES WSPÓŁPRACY (NOWA SEKCJA)
========================================================= */
.process-steps {
  /* Domyślnie na szerokim ekranie: 2 równe kolumny (maksimum) */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}
/* Media Query dla ekranów mobilnych (jedna kolumna) */
@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr; /* Poniżej 768px zawsze 1 kolumna */
  }
}
.step {
  text-align: center;
  background: var(--green-light);
  padding: 40px 20px;
  border-radius: 22px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.step span {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.step h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.step p {
  color: #666;
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background var(--transition);
  box-shadow: 0 8px 20px rgba(185, 163, 92, 0.4);
}
.btn:hover {
  background: var(--green);
  box-shadow: 0 10px 25px rgba(63, 93, 58, 0.4);
}

/* =========================================================
    ZAUFANIE
========================================================= */
.trust-grid {
  /* Domyślnie na szerokim ekranie: 3 równe kolumny (maksimum) */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Media Query dla średnich ekranów (dwie kolumny) */
@media (max-width: 992px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr); /* Poniżej 992px dwie kolumny */
  }
}
/* Media Query dla małych ekranów (jedna kolumna) */
@media (max-width: 550px) {
  .trust-grid {
    grid-template-columns: 1fr; /* Poniżej 550px jedna kolumna */
  }
}
/* Stylizacja elementów zaufania (pozostaje bez zmian) */
.trust-item {
  background: var(--green-light);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--green);
  border: 1px solid var(--green);
  transition: background var(--transition);
}
.trust-item:hover {
  background: var(--green);
  color: var(--white);
}

/* =========================================================
    MAPA
========================================================= */
/* Poprawiona stylistyka Mapbox Popups (opcjonalnie) */
.mapboxgl-popup-content {
  border-radius: 8px !important;
  padding: 15px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

/* =========================================================
    KONTAKT
========================================================= */
/* .contact-section - usunięte, używa .offer-section */
.contact-grid {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Zmienione na 2 kolumny dla lepszego wyglądu */
  gap: 28px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.contact-grid-addres {
  margin-top: 45px;
  display: grid;
  gap: 28px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.contact-card {
  background: #fff;
  padding: 35px 28px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  text-align: center; /* Upewnienie się, że tekst jest wyśrodkowany */
  transition:
    transform var(--transition-speed),
    box-shadow var(--transition-speed);
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
}
.contact-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 14px;
}
.contact-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--green);
  font-family: "Playfair Display", serif;
}
.contact-card a {
  text-decoration: none;
  font-weight: 600;
  color: var(--gold); /* Zmiana koloru linku na gold */
  word-break: break-word;
  transition: color var(--transition);
}
.contact-card a:hover {
  color: var(--green);
}
.contact-card p {
  color: #555;
}
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 30px 22px;
  }
}

/* =========================================================
    FAQ
========================================================= */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  padding: 25px 30px;
  border-radius: 18px;
  border-left: 5px solid var(--gold); /* Wyróżnienie lewym paskiem */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.faq-item h3 {
  font-family: "Open Sans", sans-serif; /* Zmienione na Open Sans dla pytań */
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.faq-item p {
  margin-top: 5px;
}

/* =========================================================
    SEKCJE
========================================================= */
.offer-section {
  background: var(--white);
  border-radius: 30px;
  padding: 80px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Dodany cień dla sekcji */
}
@media (max-width: 768px) {
  .offer-section {
    padding: 60px 20px;
  }
}

/* =========================================================
    STOPKA
========================================================= */
.site-footer {
  margin-top: 80px;
  padding: 30px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  background: var(--white);
  border-top: 1px solid #eee;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-footer p {
  margin-bottom: 10px;
  line-height: 1.4;
  color: #777;
}
.site-footer p:last-child {
  margin-bottom: 0;
  margin-top: 20px;
}
.site-footer strong {
  font-size: 0.95rem;
  color: var(--dark);
}

/* =========================================================
    TABELA PRODUKTÓW – OFERTA
========================================================= */
.table-wrapper {
  overflow-x: auto; /* scroll na małych ekranach */
  margin-top: 30px;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
  border: 1px solid #eee;
}

.products-table th,
.products-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #eeeeee; /* Delikatna linia pod każdą komórką */
  vertical-align: middle;
}

.products-table thead {
  background: var(--green);
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.products-table tbody tr:nth-child(even) {
  background: var(--green-light);
}

.products-table tbody tr:first-child {
    border-top: none; 
}

.product-accordion {
    /* Nadanie akordeonowi ogólnych marginesów */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Odstęp między grupami produktów */
}

.product-group {
    border-radius: 12px;
    /* Dodałem delikatny cień do każdej grupy akordeonu */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); 
    overflow: hidden; /* Aby zaokrąglenie krawędzi działało */
}

.product-header {
    background: var(--green);
    color: var(--white);
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
    font-family: "Playfair Display", serif;
}

.product-group.open .product-header {
    background: var(--gold);
}

.product-header:hover {
    background: var(--gold);
}

.toggle {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 300;
    margin-left: 15px;
}

.product-body {
    background: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.product-group.open .products-table {
    border-top: none;
    border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {
  .products-table th,
  .products-table td {
    padding: 10px 12px;
  }
  .product-header {
        padding: 14px 15px;
        font-size: 1.1rem;
    }
}

/* =========================================================
    ANIMACJE SCROLL
========================================================= */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
} /* Dodano delay-4 */

.section-desc {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
  color: #666;
}
