/* CSS RESET & NORMALIZATION */
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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #f7f7f3;
  color: #243026;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #285a4c;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3c7740;
  text-decoration: underline;
}
ul, ol {
  margin: 20px 0 20px 24px;
}
ul li, ol li {
  margin-bottom: 12px;
}
button, .cta {
  font-family: inherit;
  font-size: 16px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #285a4c;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: 2.6rem; margin-bottom: 24px; line-height: 1.12; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }
p, .text-section p {
  margin-bottom: 14px;
  color: #243026;
}
strong {
  color: #285a4c;
  font-weight: 700;
}

/* COMMON LAYOUTS */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f7f7f3;
  border-radius: 36px;
  box-shadow: 0 12px 24px rgba(40,90,76,0.05);
}

/* FLEXBOX PATTERNS (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 16px rgba(40,90,76,0.08);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 310px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #C5DBB1;
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(40,90,76,0.09);
  margin-bottom: 20px;
  width: 100%;
  flex: 1 1 280px;
  min-width: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px rgba(40,90,76,0.16);
  transform: translateY(-4px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: #C5DBB1;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 12px 24px rgba(40,90,76,0.06);
  margin-bottom: 36px;
  padding: 40px 0 32px 0;
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero h1 {
  color: #285a4c;
}
.hero p {
  max-width: 660px;
  font-size: 1.18rem;
  color: #243026;
}

/* FEATURES SECTION */
.features ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.features li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  position: relative;
  font-size: 1.04rem;
  color: #243026;
}
.features img {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #f7f7f3;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(40,90,76,0.04);
}

/* SERVICES SECTION */
.services ul, .services ol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: disc inside;
  margin-left: 12px;
  color: #243026;
}
.services strong {
  color: #285a4c;
}
.services a {
  margin-top: 16px;
  padding: 12px 30px;
  border-radius: 50px;
  background: #285a4c;
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 9px rgba(40,90,76,0.15);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  display: inline-block;
}
.services a:hover, .services a:focus {
  background: #338566;
  transform: translateY(-2px) scale(1.02);
}

/* CTA BUTTONS (ALL) */
.cta, .content-wrapper .cta {
  display: inline-block;
  padding: 15px 38px;
  background: #285a4c;
  color: #fff !important;
  border-radius: 48px;
  font-weight: 700;
  text-align: center;
  font-size: 1.18rem;
  margin-top: 10px;
  box-shadow: 0 2px 14px rgba(40,90,76,0.13);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  outline: none;
}
.cta:hover, .cta:focus {
  background: #338566;
  box-shadow: 0 8px 22px rgba(40,90,76,0.19);
  transform: translateY(-2px) scale(1.01);
}

/* FAQ SECTION */
.faq ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}
.faq li {
  background: #e0ebd3;
  border-radius: 18px;
  padding: 18px 22px;
  color: #243026;
  box-shadow: 0 3px 8px rgba(40,90,76,0.06);
}
.faq strong {
  color: #285a4c;
}

/* TEXT SECTION (for privacy/policy/thank you) */
.text-section {
  background: #f7f7f3;
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  color: #243026;
  box-shadow: 0 1px 4px rgba(40,90,76,0.04);
}

/* TESTIMONIAL CARDS VISUALS */
.testimonials {
  background: #f7f7f3;
  border-radius: 32px;
  padding: 32px 0;
}
.testimonials .testimonial-card {
  background: #C5DBB1;
  color: #243026;
  border-left: 5px solid #285a4c;
}
.testimonial-card .name {
  margin-left: 16px;
  font-weight: 600;
  color: #243026;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  opacity: 0.85;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-style: italic;
  color: #243026;
}

/* CTA SECTION */
.cta.section, section.cta {
  background: #285a4c;
  color: #fff;
  border-radius: 38px;
  margin-bottom: 48px;
}
.cta.section h2, section.cta h2 {
  color: #ffffff;
  margin-bottom: 18px;
}
.cta.section .cta, section.cta .cta {
  background: #ffffff;
  color: #285a4c !important;
  font-weight: 700;
  border-radius: 48px;
  box-shadow: 0 2px 16px rgba(40,90,76,0.19);
}
.cta.section .cta:hover, section.cta .cta:hover,
.cta.section .cta:focus, section.cta .cta:focus {
  background: #e0ebd3;
  color: #285a4c !important;
}

/* MAIN NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #f7f7f3;
  border-bottom: 1px solid #e8ebdf;
  min-height: 68px;
  z-index: 21;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #285a4c;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 30px;
  transition: background 0.18s, color 0.18s;
  position: relative;
  display: flex;
  align-items: center;
}
.main-nav a:hover, .main-nav a:focus {
  background: #C5DBB1;
  color: #243026;
}
.main-nav img {
  margin-right: 14px;
  width: 48px;
  height: 48px;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
}
.main-nav a.cta {
  background: #285a4c;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 38px;
  margin-left: 14px;
  box-shadow: 0 2px 8px rgba(40,90,76,0.15);
  transition: background 0.15s, color 0.15s;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #338566;
  color: #fff !important;
}

/* MOBILE MENU TOGGLE BUTTON */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #285a4c;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 32;
  height: 42px;
  width: 44px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #285a4c;
  background: #C5DBB1;
  border-radius: 24px;
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #F7F7F3;
  box-shadow: 0 2px 32px rgba(40,90,76,0.16);
  z-index: 9999;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.72,.05,.28,.96), opacity 0.28s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 34px 0 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #285a4c;
  cursor: pointer;
  z-index: 10001;
  outline: none;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #3c7740;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin: 48px 36px 0 36px;
  width: calc(100% - 72px);
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #285a4c;
  font-size: 1.18rem;
  padding: 12px 10px;
  border-radius: 30px;
  font-weight: 600;
  width: 100%;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #C5DBB1;
  color: #22833d;
}

/* FOOTER */
footer {
  background: #C5DBB1;
  color: #243026;
  border-radius: 40px 40px 0 0;
  margin-top: 48px;
  padding-top: 24px;
  box-shadow: 0 -6px 22px #bdddc28c;
}
footer .container {
  align-items: center;
  padding: 0 18px 28px 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #285a4c;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #285a4c;
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 18px;
  padding: 6px 15px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #285a4c;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
  color: #243026;
  font-size: 0.93rem;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  vertical-align: baseline;
}
.legal-disclaimer {
  font-size: 0.89rem;
  opacity: 0.68;
  margin-top: 8px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #243026f2;
  color: #fff;
  box-shadow: 0 -2px 24px rgba(40,90,76,0.16);
  z-index: 11000;
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookie-slide-in 0.7s cubic-bezier(.54,.01,.19,1.02);
  font-size: 1.04rem;
}
@keyframes cookie-slide-in {
  from { transform: translateY(140px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 9px;
}
.cookie-consent-banner button {
  padding: 10px 26px;
  border-radius: 36px;
  border: none;
  background: #C5DBB1;
  color: #285a4c;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
  margin: 0 2px;
  box-shadow: 0 2px 8px rgba(40,90,76,0.09);
}
.cookie-consent-banner button.accept {
  background: #285a4c;
  color: #fff;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #338566;
  color: #fff;
}
.cookie-consent-banner button.settings {
  background: #fff;
  color: #243026;
  border: 1px solid #C5DBB1;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 11201;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,48,38,0.60);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: modal-fadein 0.35s;
}
@keyframes modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-dialog {
  background: #f7f7f3;
  color: #243026;
  border-radius: 26px;
  box-shadow: 0 10px 36px rgba(40,90,76,0.21);
  max-width: 440px;
  width: 96vw;
  padding: 30px 28px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 14px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #285a4c;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #338566;
}
.cookie-modal-content {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 7px;
  font-size: 1rem;
}
.cookie-category input {
  accent-color: #285a4c;
  transform: scale(1.2);
  margin-right: 3px;
}
.cookie-category.essential label:after {
  content: "(zawsze aktywne)";
  font-size: 0.96em;
  color: #3a574e;
  font-style: italic;
  margin-left: 4px;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal-footer button {
  padding: 9px 20px;
  border-radius: 32px;
  font-weight: 600;
  border: none;
  background: #C5DBB1;
  color: #285a4c;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-footer button.accept {
  background: #285a4c;
  color: #fff;
}
.cookie-modal-footer button:hover, .cookie-modal-footer button:focus {
  background: #338566;
  color: #fff;
}

/* --- MEDIA QUERIES (MOBILE FIRST) --- */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .main-nav { gap: 5px; }
  .features img, .features li img { width: 32px; height: 32px; }
}
@media (max-width: 768px) {
  html { font-size: 96%; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .section {
    margin-bottom: 34px;
    padding: 28px 6px;
    border-radius: 19px;
  }
  .hero {
    border-radius: 0 0 18px 18px;
    padding: 20px 0 18px 0;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
    top: 13px;
    right: 8px;
  }
  .footer-contact { flex-direction: column; gap: 6px; }
  .footer-nav { flex-wrap: wrap; gap: 10px; }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 18px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-modal-dialog {
    padding: 18px 8px 18px 8px;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.1rem; }
  .hero, .section { padding: 15px 2px; }
}

/* UTILITIES & SPACING */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-8  { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }

/* ORGANIC SHAPE DECOR (EXAMPLE, USE IN HTML IF NEEDED) */
.organic-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 39% 61% 59% 41% / 44% 58% 42% 56%;
  opacity: 0.08;
  background: #285a4c;
}

