/* --- GŁÓWNE USTAWIENIA I CZCIONKI --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #2f2f2f; /* Główny kolor akcentu (np. niebieski) */
    --secondary-color: #343a40; /* Ciemny kolor tła/tekstu */
    --light-gray: #f8f9fa; /* Jasne tło sekcji */
    --text-color: #333;
    --white-color: #fff;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* --- NAGŁÓWEK I NAWIGACJA --- */
.header {
    background-color: var(--white-color);
    box-shadow: 0 6px 5px rgba(0,0,0,0.1);

    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* ========== NAVBAR DESKTOP ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 70px;
  position: relative;
}

.logo img {
  display: block;
  height: 45px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 0;
  padding: 0;
}

.nav-links li { margin: 0; padding: 0; }

.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;

  border-radius: 10px;
  transition: background-color .3s, color .3s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 5px;
}

/* ========== BURGER ========== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 300;
  position: relative;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ========== OVERLAY ========== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 250;
}
.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: all;
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .burger {
    display: flex;
    margin-left: auto;
    align-items: end;
  }

  /* UL WYPADA Z FLEXA CAŁKOWICIE */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: #fff;
    padding: 80px 20px 20px;
    gap: 14px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }

  /* Klucz: NIE pozwól liście wpływać na flexa headera */
  .navbar .nav-links {
    position: fixed !important;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    color: #222;
  }

  /* otwarte menu */
  .nav-open .nav-links {
    transform: translateX(0);
  }

  /* animacja burgera */
  .nav-open .burger span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .nav-open .burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-open .burger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* logo i burger trzymają się linii */
  .logo {
    flex: 0 0 auto;
    z-index: 300;
    justify-content:flex-start;
  }

  .navbar {
    flex-wrap: nowrap;
  }
}




/* --- SEKCJA HERO (GŁÓWNA) --- */
.hero {
    text-align: center;
    padding: 6rem 1rem;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- PRZYCISKI --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- KARTY (Usługi i Produkty) --- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #eee;
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: 0.5rem;
}
.card-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
}


/* --- FORMULARZ WYCENY I KONTAKTOWY --- */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}
.form-group input[type="file"] {
    padding: 5px;
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}
.form-group .checkbox-group {
    display: flex;
    align-items: center;
}
.form-group .checkbox-group input {
    width: auto;
    margin-right: 10px;
}

/* --- STOPKA --- */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}
.footer p {
    margin: 0;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 1rem;
        padding-left: 0;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .container {
        padding: 2rem 0;
    }
}
.placeholder {

    margin-bottom: 400px;
    align-content: center;
    width: 300px;




}