:root {
  --gold: #a07a2f;
  --dark: #000000;
  --light: #f4f4f4;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overscroll-behavior-y: none; /* blokuje bounce w obu kierunkach */
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
  overscroll-behavior-y: auto; /* nadpisuje tylko dla góry */

}

body::before,
body::after {
  content: '';
  display: block;
  height: 0;
  background: #111; /* ten sam kolor co w body */
}

a {
  text-decoration: none;
  color: inherit;
}

/* CONTAINER */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* HEADER */
.header {
  background: transparent;
  padding: 30px 0 10px;
  position: relative;
  z-index: 10;
}

.logo img {
  height: 100px;
}

/* NAVIGATION */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav a {
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--gold);
}

/* CTA BUTTON */
.btn-header {
  background-color: var(--gold);
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-header:hover {
  background-color: #8d692a;
}

/* HERO SECTION */
.hero {
  background-image: url('../img/tlo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* HERO CONTENT */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 58px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 22px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #ddd;
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 120px; /* Więcej miejsca na mniejszych ekranach */
    
  }
  .hero-content h1 {
    font-size: 40px;
  }
}

/* UNIVERSAL BUTTON */
.btn {
  display: inline-block;
  background-color: var(--gold);
  color: white;
  padding: 14px 28px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #8d692a;
}

/* FEATURED PRODUCTS */
.featured-products {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}

.featured-products h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--dark);
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.product {
  flex: 1 1 250px;
  max-width: 250px;
  background-color: #f9f9f9;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.product p {
  font-size: 16px;
  color: #333;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* CTA SECTION */
.cta-section {
  background-color: var(--gold);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FOOTER */
.footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  margin-top:auto;
}

.footer nav {
  margin-top: 20px;
}

.footer nav a {
  color: #ccc;
  margin: 0 10px;
  font-size: 14px;
  transition: color 0.3s;
}

.footer nav a:hover {
  color: var(--gold);
}

/* FEATURES LIST (O NAS) */
.features-list {
  list-style: none;
  margin-top: 20px;
  margin-bottom: 30px;
  padding-left: 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-list li {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.features-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* NOWOCZESNY RESPONSYWNY HEADER */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.header {
  background: transparent;
  padding: 25px 0;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--gold);
}

.btn-header {
  background-color: var(--gold);
  color: white;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-header:hover {
  background-color: #8d692a;
}

/* MOBILE MENU */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .nav.active {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav a {
    font-size: 22px;
    color: white;
  }

  .btn-header {
    font-size: 18px;
    padding: 12px 24px;
  }
}

.about-new {
  background-color: #fff;
  padding: 80px 20px 40px;
}

.about-new-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto 60px;
}

.about-text-block h2 {
  font-size: 34px;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text-block p {
  font-size: 17px;
  margin-bottom: 15px;
  color: #444;
}

.check-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.about-image-block img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Why us - grid of features */
.why-features {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px 60px; /* dodany padding-bottom: 60px */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-box {                 /* pojedyncze okienko */
  background: #fff;
  border: 1px solid #eaeaea;
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform .3s, box-shadow .3s;
}

.feature-box h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 16px;
  color: #555;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* Responsive */
@media (max-width: 900px) {
  .about-new-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image-block {
    order: -1;
  }

  .check-list {
    text-align: left;
    max-width: 90%;
    margin: 0 auto;
  }
}

/* === WYŁĄCZNIE DLA kontakt.html === */
.contact-section {
  padding: 100px 20px 80px;
  background: #fff;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
}

/* --- LEWA: jasne złamane białe tło --- */
.contact-info {
  flex: 1 1 500px;
  max-width: 600px;
  background: #faf7ef;          /* ciepły, lekko złotawy odcień */
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.contact-heading {
  font-size: 32px;
  margin-bottom: 28px;
  color: var(--dark);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 14px;
}



/* --- PRAWA: białe tło + cień --- */
.contact-form-holder {
  flex: 1 1 500px;
  max-width: 600px;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  outline: none;
  transition: border .25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.btn-send {
  align-self: flex-start;
}

.contact-toast {
  display: none;
  margin-top: 18px;
  font-size: 15px;
  color: var(--dark);
}

.contact-toast.show {
  display: block;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .contact-wrapper { flex-direction: column; gap: 40px; }
  .contact-info,
  .contact-form-holder { max-width: 100%; }
}

/* ===== ULEPSZENIA MOBILE – tylko oferta.html ===== */
.offer-page {           /* blokujemy poziome scrollowanie sekcji oferty     */
  overflow-x: hidden;
}

/* nagłówek sekcji „Nasze produkty / Dlaczego warto…”  – responsywne skalowanie */
.offer-page .about-text-block h2 {
  font-size: clamp(26px, 6vw, 34px);
}

/* LISTA CHECK na małych ekranach   -------------------------------------- */
@media (max-width: 600px) {

  /* cały biały box: węższy padding i pojedyncza kolumna                  */
  .offer-page .check-list {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  /* wiersze listy – mniej powietrza i mniejsza czcionka                  */
  .offer-page .check-list li {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 26px;      /* lekko dosuwamy tekst do lewej  */
  }

  /* sam znaczek „✔” – zmniejszamy i minimalnie przesuwamy                */
  .offer-page .check-list li::before {
    font-size: 22px;
    left: 0;
    top: 0.2em;
  }
}

/* dociągamy biały box do centrum przy większych telefonach (~600-900 px) */
@media (min-width: 601px) and (max-width: 900px) {
  .offer-page .about-new-container { grid-template-columns: 1fr; }
  .offer-page .check-list           { max-width: 90%; margin: 0 auto 40px; }
}

/* ====================================== */
/* === REGULAMIN – STYL SPÓJNY Z CAŁĄ STRONĄ === */
/* ====================================== */

.legal-section {
  background-color: #fff;
  padding: 80px 20px 100px;
}

.legal-wrapper {
  max-width: 100%;
  margin: 0 auto;
  background-color: #fff;
  padding: 60px 40px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-left: 6px solid var(--gold);
  color: #222;
}

.legal-wrapper h2 {
  font-size: 34px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--dark);
}

.legal-wrapper h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--gold);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.legal-wrapper p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #333;
}

.legal-wrapper ul,
.legal-wrapper ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.legal-wrapper li {
  margin-bottom: 10px;
}

.legal-wrapper strong {
  color: var(--dark);
}

.legal-wrapper a {
  color: var(--gold);
  font-weight: bold;
  text-decoration: underline;
}

.legal-wrapper a:hover {
  color: #8d692a;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .legal-wrapper {
    padding: 40px 20px;
  }

  .legal-wrapper h2 {
    font-size: 28px;
  }

  .legal-wrapper h3 {
    font-size: 20px;
  }

  .legal-wrapper p,
  .legal-wrapper li {
    font-size: 15px;
  }
}
