/* --- CSS RESET & NORMALIZE --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #fff;
  color: #1B231F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- TYPOGRAPHY SCALE & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #356D39;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1B231F;
  margin-bottom: 16px;
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
blockquote {
  font-style: italic;
  color: #356D39;
  background: #F6F5E9;
  border-left: 4px solid #A5C483;
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 8px;
}
strong {
  font-weight: 700;
  color: #356D39;
}
a {
  color: #356D39;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A5C483;
  outline: none;
}

/* --- GLOBAL CONTAINER, SECTIONS, SPACING --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- FLEXBOX PATTERNS ---*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(53,109,57,0.05);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(53,109,57,0.12);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F6F5E9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(53,109,57,0.09);
  min-width: 220px;
}
.testimonial-card p {
  color: #1B231F;
  font-size: 1.05rem;
  line-height: 1.5;
}
.testimonial-card .author {
  font-weight: 500;
  color: #356D39;
  font-size: 0.97rem;
  opacity: 0.9;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(53,109,57,0.07);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(53,109,57,0.11);
}
.feature-grid img, .feature-grid svg {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  object-fit: contain;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F6F5E9;
  margin-bottom: 60px;
  padding: 48px 0 32px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 640px;
}
.hero h1 {
  color: #356D39;
  font-size: 2.5rem;
}

/* --- BUTTONS --- */
.btn-primary,
nav .btn-primary {
  display: inline-block;
  padding: 13px 32px !important;
  background: #356D39;
  color: #fff !important;
  border-radius: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(53,109,57,0.07);
  transition: background .18s, box-shadow .14s, color .17s;
  margin-left: 10px;
  margin-top: 5px; /* fallback for mobile nav links */
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A5C483;
  color: #356D39 !important;
  box-shadow: 0 4px 20px rgba(53,109,57,0.13) !important;
  outline: none;
}
nav .btn-primary {
  margin-left: auto;
  margin-right: 0;
}

/* --- NAVIGATION (Desktop & Mobile) --- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ECEDEB;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  justify-content: flex-start;
}
header nav a {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #356D39;
  transition: color 0.17s;
  padding: 7px 16px;
  margin-bottom: 0;
}
header nav a:hover, header nav a:focus {
  color: #A5C483;
  text-decoration: underline;
  outline: none;
}
header nav a img {
  height: 38px;
  margin-right: 8px;
}
.mobile-menu-toggle {
  display: none;
  background: #F6F5E9;
  color: #356D39;
  border: none;
  border-radius: 50%;
  font-size: 2.2rem;
  padding: 5px 12px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.17s;
  z-index: 98;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #A5C483;
  color: #fff;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 24px rgba(53,109,57,0.13);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.8,0,0.33,1);
  display: flex !important;
  flex-direction: column;
  gap: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #356D39;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 20px 24px 0 0;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #A5C483;
  outline: none;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  padding: 42px 26px 18px 38px;
  gap: 4px;
}
.mobile-nav a {
  color: #356D39;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid #F6F5E9;
  transition: color 0.15s, background 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #A5C483;
  color: #fff;
  outline: none;
}
.mobile-nav .btn-primary {
  margin-top: 24px;
}

/* --- SEARCH BAR --- */
.search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 10px;
}
.search-bar input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #A5C483;
  border-radius: 26px;
  outline: none;
  transition: border-color 0.18s;
  background: #fff;
  color: #1B231F;
}
.search-bar input:focus {
  border-color: #356D39;
}

/* --- CTA --- */
.cta {
  background: #A5C483;
  margin-bottom: 0;
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(53,109,57,0.09);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta .btn-primary {
  background: #fff;
  color: #356D39 !important;
  border: 1px solid #356D39;
}
.cta .btn-primary:hover {
  background: #356D39;
  color: #fff !important;
}

/* --- FOOTER --- */
footer {
  background: #FAFBF8;
  margin-top: 64px;
  border-top: 1px solid #ECEDEB;
  padding-top: 30px;
  padding-bottom: 14px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: #356D39;
  font-size: 0.94rem;
  margin-bottom: 2px;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: #A5C483;
}
.footer-contact {
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 5px;
  width: 20px;
  height: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social a img {
  width: 28px;
  height: 28px;
}

/* --- CARDS & LISTS --- */
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}

/* --- MAP CONTAINER --- */
.map-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: #F6F5E9;
  border-radius: 10px;
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 20px 18px;
}

/* --- FORMULARZ i INPUTY --- */
input, textarea, select, button {
  font-family: inherit;
}
button, input[type='button'], input[type='submit'] {
  cursor: pointer;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #1B231F;
  box-shadow: 0 -2px 24px rgba(53,109,57,0.08);
  border-top: 1px solid #ECEDEB;
  z-index: 2000;
  padding: 18px 28px 28px 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s, transform 0.28s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  margin-right: 18px;
  flex: 2;
  min-width: 180px;
  color: #1B231F;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
  flex: 1;
  align-items: center;
}
.cookie-banner .btn-cookie {
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  border: 1px solid #A5C483;
  background: #fff;
  color: #356D39;
  font-weight: 500;
  transition: background 0.18s, color 0.17s, border 0.2s;
}
.cookie-banner .btn-cookie.accept {
  background: #356D39;
  color: #fff;
  border: 1px solid #356D39;
}
.cookie-banner .btn-cookie.accept:hover {
  background: #A5C483;
  color: #356D39;
}
.cookie-banner .btn-cookie.settings {
  border: 1px solid #A5C483;
  background: #fff;
  color: #356D39;
}
.cookie-banner .btn-cookie.settings:hover {
  background: #F6F5E9;
  border-color: #356D39;
  color: #356D39;
}
.cookie-banner .btn-cookie.reject {
  border: 1px solid #A5C483;
  background: #fff;
  color: #A5C483;
}
.cookie-banner .btn-cookie.reject:hover {
  background: #F6F5E9;
  color: #356D39;
  border-color: #356D39;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(53,109,57,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 40px rgba(53,109,57,0.22);
  padding: 36px 28px;
  min-width: 290px;
  max-width: 97vw;
  max-height: 87vh;
  overflow-y: auto;
  animation: fadeInTopModal 0.23s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@keyframes fadeInTopModal {
  from { transform: translateY(-24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-dialog h2 {
  font-size: 1.35rem;
  color: #356D39;
  margin-bottom: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 22px; right: 28px;
  background: none;
  color: #356D39;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #A5C483;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #356D39;
  width: 19px;
  height: 19px;
  margin: 0 0 0 6px;
}
.cookie-category.essential label {
  color: #356D39;
  font-weight: 700;
  opacity: 0.88;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 22px;
  justify-content: flex-end;
}

/* --- ANIMATIONS & TRANSITIONS FOR MICROINTERACTIONS --- */
.card, .feature-grid > div, .testimonial-card, .btn-primary {
  transition: box-shadow 0.18s, transform 0.12s, background 0.17s, color 0.13s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.012);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .footer-nav, .footer-contact, .footer-social {
    min-width: 150px;
  }
  .feature-grid > div {
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px !important;
  }
  .feature-grid > div {
    width: 100%;
    min-width: 180px;
    margin-bottom: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
  .footer-contact, .footer-social {
    width: 100%;
  }
  .content-wrapper, .text-section {
    gap: 10px;
  }
    header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .hero {
    min-height: 210px;
    padding: 36px 0 18px 0;
  }
  .footer-contact {
    font-size: 0.95rem;
    gap: 3px;
  }
  .cta .content-wrapper {
    align-items: flex-start;
    text-align: left;
    gap: 11px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 1.6rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.17rem;
    margin-bottom: 9px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
  .hero {
    padding: 18px 0 14px 0;
  }
  .testimonial-card {
    gap: 8px;
    padding: 12px 10px;
  }
  .card, .feature-grid > div {
    padding: 13px 10px;
  }
  .map-container {
    padding: 9px 4px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    padding: 10px 6px;
  }
  .cookie-banner .cookie-btns {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .cookie-modal-dialog {
    padding: 18px 8px;
    min-width: 94vw;
  }
}

/* --- UTILITY CLASSES --- */
.hide {
  display: none !important;
}
.visible {
  display: block !important;
}
.d-flex {
  display: flex !important;
  gap: 10px;
}

/* --- OVERRIDE: DISABLE GRIDS/COLUMNS ANYWHERE --- */
[class*='grid'],
[class*='column'] {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* --- END --- */