/* ==========================================================
   RESET, NORMALIZE & ROOT
========================================================== */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #FFFDF6;
  color: #31412A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #215A35;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #9BC53D;
  outline: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul li:not(:last-child),
ol li:not(:last-child) {
  margin-bottom: 8px;
}

/* ==========================================================
   BRAND FONTS
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #215A35;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  line-height: 1.18;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.12rem;
}
p, li, span, strong, small {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
strong {
  font-weight: 600;
}
small {
  font-size: 0.88rem;
}

/* ==========================================================
   LAYOUT CONTAINER & SPACING
========================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #F3F8EF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(33, 90, 53, 0.06);
  padding: 32px 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 3px 22px 0 rgba(33,90,53,0.10);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
/* Organic shapes for cards (soft corners, simulated in shadows) */

/* Feature grid (used for offers, realizacje, blog, porady) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #FAF9F3;
  border-radius: 20px 32px 28px 10px/32px 18px 32px 24px;
  box-shadow: 0 4px 14px 0 rgba(122,160,90,0.10);
  padding: 28px 18px 22px 18px;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-grid > div:hover {
  box-shadow: 0 9px 22px 0 rgba(33, 90, 53, 0.16);
  transform: translateY(-5px) scale(1.025);
}
.feature-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  filter: drop-shadow(0px 1px 3px rgba(123,180,80,0.11));
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #ECF3E7;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(33,90,53,0.10);
  margin-bottom: 22px;
  transition: box-shadow 0.25s;
}
.testimonial-card p {
  font-size: 1.04rem;
  color: #293B21;
  flex: 3;
}
.testimonial-card span {
  color: #215A35;
  font-weight: 600;
  flex: 2;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 9px 22px 0 rgba(33, 90, 53, 0.20);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CTAs & BUTTONS */
.cta, .btn {
  display: inline-block;
  background: #215A35;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 14px 32px;
  border-radius: 30px 22px 24px 38px / 32px 27px 38px 24px;
  transition: background 0.19s, box-shadow 0.2s, transform 0.17s;
  box-shadow: 0 0.5px 2px 0 rgba(33,90,53,0.06);
  margin-top: 8px;
  margin-bottom: 10px;
  border: none;
  text-align: center;
  cursor: pointer;
}
.cta:hover,.cta:focus,.btn:hover,.btn:focus {
  background: #9BC53D;
  color: #215A35;
  box-shadow: 0 6px 18px 0 rgba(125,190,60,0.10);
  transform: translateY(-2px) scale(1.035);
  outline: none;
}

/* ================================================
     HEADER & NAVIGATION
================================================== */
header {
  background: #F2F5ED;
  box-shadow: 0 1px 7px 0 rgba(33,90,53,0.08);
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
  z-index: 10;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 16px;
  transition: background 0.19s, color 0.19s;
  color: #215A35;
}
header nav a:hover,
header nav a:focus {
  background: #D2E885;
  color: #31412A;
}
header nav .cta {
  margin-left: 12px;
}
header nav img {
  height: 44px;
  width: auto;
  margin-right: 16px;
}

/* MOBILE NAVIGATION (BURGER MENU) */
.mobile-menu-toggle {
  display: none;
  background: #215A35;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  position: absolute;
  right: 28px;
  top: 16px;
  z-index: 30;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #9BC53D;
  color: #215A35;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(243, 248, 239, 0.97);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  will-change: transform;
  pointer-events: none;
  /* hidden by default. JS adds `.open` for slide in */
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: #215A35;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px 16px 8px 0;
  font-size: 1.6rem;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
  z-index: 52;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #9BC53D;
  color: #215A35;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100vw;
  align-items: flex-start;
  padding: 26px 32px 32px 32px;
  font-size: 1.18rem;
}
.mobile-nav a {
  width: 100%;
  padding: 12px 0;
  background: none;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #215A35;
  font-weight: 600;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D2E885;
  color: #111;
}

@media (max-width: 1020px) {
  main .container, footer .container {
    max-width: 93vw;
  }
  .feature-grid > div {
    min-width: 180px;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  header nav {
    gap: 6px;
    font-size: 0.98rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    margin-bottom: 38px;
    padding: 30px 6px 30px 6px;
  }
  .feature-grid {
    gap: 13px;
  }
  .feature-grid > div {
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-section {
    padding: 18px 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 590px) {
  h1 {
    font-size: 2rem;
  }
  .feature-grid > div {
    min-width: 85vw;
    font-size: 1rem;
    padding: 11px 6px 13px 8px;
  }
}

@media (max-width: 540px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Ensuring image and text alignment */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.content-wrapper {
  gap: 20px;
}

/* Footer */
footer {
  background: #F3F8EF;
  padding: 30px 0 10px 0;
  border-top-left-radius: 35px 22px;
  border-top-right-radius: 80px 32px;
  margin-top: 40px;
  box-shadow: 0 -3px 18px 0 rgba(33,90,53,0.06);
  font-size: 1rem;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 7px;
}
footer nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #215A35;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover {
  background: #D2E885;
  color: #31412A;
}
.footer-info {
  font-size: 0.99rem;
  line-height: 1.5;
}
footer small {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: #547d50;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-info {
    margin-top: 6px;
  }
}

/* ====================================
   LISTS, LINKS, AND TYPOGRAPHY
====================================== */
ul, ol {
  color: #31412A;
  font-size: 1rem;
  padding-left: 18px;
  margin-bottom: 12px;
  line-height: 1.65;
}
ul li,
ol li {
  margin-bottom: 6px;
  font-size: 1.01rem;
}
li strong {
  color: #215A35;
}
.text-section ul,
.text-section ol {
  background: none;
  padding: 0 0 0 12px;
  border: none;
}
.text-section ul li,
.text-section ol li {
  background: none;
  border: none;
  padding: 0 0 0 0px;
  font-size: 1.01rem;
}

/* ============================
    MICRO-INTERACTIONS
============================== */
a, .cta, .btn, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.2s, background 0.17s, color 0.19s, transform 0.23s;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #31412A;
  color: #fff;
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 20px 20px 20px;
  box-shadow: 0 -2px 28px 0 rgba(33,90,53,0.15);
  border-top-left-radius: 28px 14px;
  border-top-right-radius: 70px 28px;
  animation: cookie-slide-in 0.59s cubic-bezier(.77,0,.18,1);
}
.cookie-banner__text {
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn {
  background: #9BC53D;
  color: #215A35;
  border-radius: 20px 14px 22px 19px / 22px 18px 30px 14px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  margin: 0;
}
.cookie-banner__actions .btn--secondary {
  background: #ECF3E7;
  color: #215A35;
  border: 1.5px solid #9BC53D;
}
.cookie-banner__actions .btn:hover, .cookie-banner__actions .btn:focus {
  background: #215A35;
  color: #fff;
  border-color: #215A35;
}

@keyframes cookie-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 200;
  transform: translate(-50%, -50%) scale(0.96);
  background: #F3F8EF;
  box-shadow: 0 6px 30px 0 rgba(33,90,53,0.20);
  padding: 36px 28px;
  border-radius: 32px 22px 36px 18px / 38px 18px 16px 24px;
  min-width: 290px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(.77,0,.18,1), visibility 0.26s;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.cookie-modal__header h2 {
  font-size: 1.1rem;
  color: #215A35;
  margin-bottom: 0;
}
.cookie-modal__close {
  background: #215A35;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-modal__close:hover {
  background: #9BC53D;
  color: #215A35;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #E9EDE8;
  padding: 9px 0;
  font-size: 1rem;
}
.cookie-modal__toggle {
  position: relative;
  width: 38px;
  height: 22px;
}
.cookie-modal__toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.cookie-modal__slider {
  position: absolute;
  left: 0; top: 0;
  width: 38px;
  height: 22px;
  background: #EDEEDA;
  border-radius: 17px;
  transition: background 0.24s;
}
.cookie-modal__toggle input:checked + .cookie-modal__slider {
  background: #9BC53D;
}
.cookie-modal__slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.22s;
}
.cookie-modal__toggle input:checked + .cookie-modal__slider:before {
  left: 19px;
}
.cookie-modal__desc {
  font-size: 1rem;
  color: #365524;
}
.cookie-modal__actions {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-modal__actions .btn {
  font-size: 1rem;
  background: #9BC53D;
  color: #215A35;
  border-radius: 16px;
  padding: 9px 18px;
  font-weight: 600;
}
.cookie-modal__actions .btn--secondary {
  background: #ECF3E7;
  border: 1.5px solid #9BC53D;
}
.cookie-modal__actions .btn:hover, .cookie-modal__actions .btn:focus {
  background: #215A35;
  color: #fff;
}

@media (max-width: 540px) {
  .cookie-banner {
    padding: 20px 6px 20px 6px;
    font-size: 0.96rem;
    gap: 10px;
  }
  .cookie-modal {
    min-width: 210px;
    max-width: 97vw;
    padding: 22px 8px;
  }
}

/* ================================
   ORGANIC/NATURE-INSPIRED DETAILS
================================== */
/* Texture overlays, if images: add with ::before on page or section */
.section, .text-section, .feature-grid > div, .card, .testimonial-card {
  /* Simulate subtle organic paper w/ background blend */
  background-blend-mode: soft-light, normal;
  /* Optional: background-image: url('assets/textures/paper.jpg'); */
}

hr {
  border: 0;
  border-top: 1px solid #CEE2B2;
  margin: 28px 0 16px 0;
}

/* ================================
   FORM STYLES (for kontakt, etc.)
================================== */
input, textarea, select {
  background: #FAF9F3;
  border: 1.2px solid #CEE2B2;
  border-radius: 15px 9px 12px 22px;
  font-size: 1rem;
  padding: 11px 17px;
  color: #215A35;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  outline: none;
  transition: border-color 0.22s;
}
input:focus, textarea:focus, select:focus {
  border-color: #9BC53D;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #215A35;
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
}

/* ================================
   MISC. & UTILITIES
================================== */
.bg-accent {
  background: #F3F8EF;
}
.bg-primary-light {
  background: #D2E885;
}
.shadow {
  box-shadow: 0 2px 12px 0 rgba(33,90,53,0.12);
}
.rounded {
  border-radius: 18px;
}
.hidden {
  display: none !important;
}

/* Hide visually for a11y (for screen readers still visible) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Card icons (kontakt list etc.) */
.content-wrapper ul li img {
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 1px 2px rgba(33,90,53,0.09));
}

/* ================================
   NO GRID / ONLY FLEXBOX LAYOUTS!
================================== */
/* All layout containers are flexbox, as above. */