/* Podstawowe resety i font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* Ujednolicona kolorystyka */
:root {
  --main-bg: #f7f7f7;        /* Tło sekcji, jasna szarość */
  --main-color: #2c3e50;     /* Główny kolor tekstu, granatowy */
  --accent-color: #5bc0de;   /* Turkus – akcent */
  --dark-bg: #1f2a38;        /* Ciemne tło stopki */
  --text-color: #333;        /* Kolor tekstu */
  --white: #ffffff;          
}

body {
  background-color: #ffffff;
  color: var(--text-color);
  line-height: 1.6;
}

/* ----------------------- */
/* HEADER z sticky nav     */
/* ----------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #f7f7f7;
  padding: 20px;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
}

/* ----------------------- */
/* HERO SECTION z parallax */
/* ----------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 60vh; /* trochę większa wysokość */
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);

  /* Tło wypełniające całą sekcję */
  background: url('benner_d.jpg') no-repeat center center / cover;
  background-attachment: fixed; /* Parallax effect */
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

/* Półprzezroczysta nakładka */
.hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* przyciemnienie tła */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Definicja kluczy animacji fadeInUp */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------- */
/* Sekcje główne           */
/* ----------------------- */
/* Większe odstępy + spójna szerokość */
section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

/* ABOUT SECTION */
.about h2 {
  font-size: 1.8rem;
  color: var(--main-color);
  margin-bottom: 40px;
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 15px;
}

/* ----------------------- */
/* OFERTA SECTION          */
/* ----------------------- */
.offer h2 {
  font-size: 1.8rem;
  color: var(--main-color);
  margin-bottom: 40px;
  text-align: center;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.offer-item {
  background: var(--main-bg);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;

  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.offer-item h3 {
  margin-bottom: 15px;
  color: var(--main-color);
}

.offer-item:hover {
  transform: scale(1.03);
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.testimonials {
  background: #f0f0f0; 
  /* sekcje mają margin i padding zdefiniowane globalnie w section{} */
}

.testimonials h2 {
  color: var(--main-color);
  margin-bottom: 40px;
  text-align: center;
}

.testimonials-content {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-item {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  font-style: italic;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.testimonial-item:hover {
  transform: scale(1.03);
  background-color: #fafafa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.testimonial-item blockquote {
  margin-bottom: 20px;
}

.testimonial-item .author {
  font-weight: 600;
  text-align: right;
}

/* ----------------------- */
/* KONTAKT SECTION         */
/* ----------------------- */
.contact h2 {
  font-size: 1.8rem;
  color: var(--main-color);
  margin-bottom: 40px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* większa przerwa między polami */
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  align-self: flex-start;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  background-color: var(--main-color);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #233140;
}

/* ----------------------- */
/* STOPKA                  */
/* ----------------------- */
footer {
  background-color: var(--dark-bg);
  color: #f0f0f0;
  text-align: center;
  padding: 20px;
  margin-top: 80px;
}

@media screen and (max-width:600px) {
	.onas{display:none;}
	.about-content{display: block; width: 95%; text-align:center;}
	
}