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

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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f9f7f4;
  min-height: 100vh;
  /* Dwie kropki wychodzą z folderu css/ do głównego katalogu */
  background-image: url("../img/tlo.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

/* =============== GÓRNA NAWIGACJA / NAGŁÓWEK =============== */
.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e8ded2;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #6b4a3c;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Przycisk menu mobilnego (Hamburger) */
.nav-toggle {
  display: block;
  background: none;
  border: 1px solid #8c4a30;
  color: #8c4a30;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e8ded2;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.site-nav.nav-open {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: block;
}

.nav-link:hover,
.nav-link.active {
  color: #8c4a30;
  background-color: rgba(140, 74, 48, 0.08);
}

/* =============== KONTENER GŁÓWNY STRONY ================ */
.page {
  max-width: 850px;
  margin: 1.5rem auto;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* BANER INFORMACYJNY */
.notice-banner {
  background-color: #fff8e7;
  border: 1px solid #e6c894;
  color: #7a5217;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.4;
}

/* SEKCJE I NAGŁÓWKI */
h1 {
  font-size: 1.6rem;
  color: #6b4a3c;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.lead-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #8c4a30;
  margin-bottom: 1rem;
  line-height: 1.4;
}

p {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: #444;
}

.signature {
  font-weight: 600;
  color: #8c4a30;
  font-style: italic;
  margin-bottom: 1.2rem;
}

/* O MNIE / HERO */
.about-hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8ded2;
}

.about-image-wrapper {
  text-align: center;
}

.profile-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
  object-fit: cover;
}

.img-placeholder {
  width: 100%;
  max-width: 320px;
  height: 240px;
  margin: 0 auto;
  background-color: #faf6f1;
  border: 2px dashed #8c4a30;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c4a30;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* KAFELKI / GRID */
.sections-overview h2 {
  font-size: 1.3rem;
  color: #6b4a3c;
  margin-bottom: 1rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.card {
  background-color: #faf6f1;
  border: 1px solid #e8ded2;
  border-radius: 10px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(140, 74, 48, 0.12);
  border-color: #8c4a30;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #8c4a30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card h3 {
  font-size: 1.15rem;
  color: #6b4a3c;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: #8c4a30;
  display: inline-block;
}

/* FORMULARZE ZAPISU (LM2 / NEWSLETTER) */
.section-form {
  background-color: #faf6f1;
  border: 1px solid #e8ded2;
  padding: 0.85rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.section-form.bottom-form {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-row {
  margin-bottom: 0.5rem;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #8c4a30;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.25;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.form-btn {
  width: 100%;
  background-color: #8c4a30;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-btn:hover:not(:disabled),
.form-btn:focus:not(:disabled) {
  background-color: #6b4a3c;
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.story-section {
  margin-top: 0.5rem;
}

.offer-box {
  background-color: rgba(140, 74, 48, 0.04);
  border-left: 4px solid #8c4a30;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.offer-box h2 {
  font-size: 1.15rem;
  color: #6b4a3c;
  margin-bottom: 0.5rem;
}

.benefits-list {
  list-style-type: none;
  margin: 0.8rem 0;
}

.benefits-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8c4a30;
  font-weight: bold;
}

/* PROJEKT SŁOŃCE */
.project-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8ded2;
}

.project-image-wrapper {
  margin: 1.5rem 0;
  text-align: center;
}

.project-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 3px solid #fff;
  object-fit: cover;
}

.info-card {
  background-color: #faf6f1;
  border: 1px solid #e8ded2;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-card h2 {
  font-size: 1.25rem;
  color: #6b4a3c;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  padding-left: 0.2rem;
}

.badge-yes {
  display: inline-block;
  background-color: #2e7d32;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.3rem;
}

.badge-no {
  display: inline-block;
  background-color: #c62828;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.3rem;
}

.download-box {
  background-color: rgba(140, 74, 48, 0.05);
  border-left: 4px solid #8c4a30;
  padding: 1.25rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.download-btn {
  display: inline-block;
  background-color: #8c4a30;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.8rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(140, 74, 48, 0.2);
}

.download-btn:hover {
  background-color: #6b4a3c;
  transform: translateY(-2px);
}

.sign-off {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #8c4a30;
  font-style: italic;
}

.sign-off .emoji {
  font-style: normal;
  display: inline-block;
}

.contact-link-btn {
  display: inline-block;
  margin-top: 0.5rem;
  color: #8c4a30;
  font-weight: 700;
  text-decoration: underline;
}

/* STOPKA */
.footer-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ded2;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-links div {
  margin-top: 0.4rem;
}

.footer-links a {
  color: #8c4a30;
  text-decoration: underline;
  margin: 0 0.4rem;
}

/* STRONY PODZIĘKOWANIA (DZIĘKUJE) */
.fb-box {
  background-color: rgba(140, 74, 48, 0.05);
  border: 1px solid rgba(140, 74, 48, 0.15);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.fb-box h2 {
  font-size: 1.15rem;
  color: #6b4a3c;
  margin-bottom: 0.8rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  background-color: #8c4a30;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.social-link:hover,
.social-link:focus {
  background-color: #6b4a3c;
}

.fb-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #8c4a30;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.95rem;
}

/* =============== WIDOK NA KOMPUTERY =============== */
@media (min-width: 700px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block !important;
    position: static;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.5rem;
  }

  .page {
    padding: 2rem;
  }

  .about-hero {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .about-content {
    flex: 1;
  }

  .about-image-wrapper {
    flex-shrink: 0;
  }

  .about-content h1 {
    font-size: 1.8rem;
  }

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

  .download-box {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .download-btn {
    margin-top: 0;
    white-space: nowrap;
  }

  .section-form {
    padding: 1.1rem;
  }
}