/* RESET & BASE STYLES */
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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F6F4;
  color: #20503B;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #20503B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7DAC5B;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:root {
  --color-primary: #20503B;
  --color-secondary: #7DAC5B;
  --color-accent: #F7F6F4;
  --radius-base: 16px;
  --shadow-card: 0 2px 12px rgba(32,80,59,0.05), 0 0.5px 1.5px rgba(0,0,0,0.03);
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.125;
  color: #20503B;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, span, label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
p {
  margin-bottom: 1em;
  max-width: 700px;
}
strong {
  font-weight: 700;
}
.category {
  font-size: 0.85rem;
  background: #EAEAEA;
  color: #20503B;
  border-radius: 6px;
  padding: 2px 10px;
  display: inline-block;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 1.4px;
  font-family: 'Roboto', Arial, sans-serif;
}

/* LAYOUT GRID & CONTAINERS */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  box-shadow: 0 2px 12px rgba(32,80,59,0.07);
  background: #fff;
  z-index: 30;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  padding: 7px 14px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 22px;
}

.cta.primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(32,80,59,0.08);
  padding: 12px 28px;
  margin-left: 20px;
  letter-spacing: 1.2px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: 2px solid transparent;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(32,80,59,0.11);
  border: 2px solid var(--color-primary);
}
.cta.secondary {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(32,80,59,0.05);
  padding: 10px 24px;
  margin-top: 22px;
  letter-spacing: 1.2px;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
}

/* Feature, Service & Card Grids - FLEXBOX ONLY */
.feature-grid, .service-cards, .service-categories, .benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.feature-grid > div, .service-cards > div, .service-categories > div, .benefit-grid > div {
  flex: 1 1 220px;
  min-width: 210px;
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--shadow-card);
  padding: 28px 18px 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1.7px solid #E2E3DE;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border 0.18s;
}
.feature-grid > div:hover,
.service-cards > div:hover,
.benefit-grid > div:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 6px 30px 0 rgba(32,80,59,0.13);
  border: 1.7px solid var(--color-primary);
  z-index: 2;
}
.feature-grid img,
.service-cards img,
.service-categories img,
.benefit-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}

/* ARTICLE & ARTICLE-LIST */
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}
.article-list article {
  flex: 1 1 280px;
  min-width: 240px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 20px 18px 14px 20px;
  margin-bottom: 20px;
  border: 1.5px solid #E2E3DE;
  transition: box-shadow 0.18s, transform 0.16s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-list article:hover {
  z-index: 2;
  box-shadow: 0 6px 36px 0 rgba(32,80,59,0.15);
  transform: translateY(-2px) scale(1.0125);
  border: 1.5px solid var(--color-primary);
}

.featured-post {
  background: #20503B;
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 18px 20px 16px 24px;
  margin-bottom: 28px;
}
.featured-post h3 {
  color: #fff;
  margin-bottom: 7px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #F7F6F4;
  border-radius: 18px;
  border: 2.5px solid #E2E3DE;
  box-shadow: 0 2px 8px rgba(32,80,59,0.04);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 680px;
  transition: box-shadow 0.17s, border-color 0.17s;
}
.testimonial-card p {
  color: #1e3130;
  font-size: 1.08rem;
  margin-bottom: 8px !important;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-weight: 600;
  color: #20503B;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #7DAC5B;
  box-shadow: 0 6px 16px rgba(32,80,59,0.11);
}

/* GENERIC FLEX UTILITIES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 320px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* MAIN SECTIONS SPACING */
main section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ABOUT LISTS & PROCESS */
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}
ol {
  padding-left: 1.7em;
  margin-bottom: 1.3em;
}

/* FOOTER */
footer {
  background: #20503B;
  color: #fff;
  padding: 40px 0 25px 0;
  width: 100%;
  margin-top: 60px;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -2px 16px rgba(32,80,59,0.07);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
footer nav a {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 400;
  border-radius: 7px;
  padding: 4px 10px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: #7DAC5B;
  color: #20503B;
}
footer p {
  font-size: 0.96rem;
  color: #F7F6F4;
  opacity: 0.88;
  text-align: center;
}

/* HAMBURGER MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  color: var(--color-primary);
  background: #fff;
  border: none;
  margin-left: 16px;
  z-index: 80;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e2e3de;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,246,244,0.98);
  box-shadow: 0 4px 40px rgba(32,80,59,0.13);
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.61,.13,.44,1.02);
  visibility: hidden;
  opacity: 0.99;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: none;
  border: none;
  margin: 24px 20px 0 0;
  padding: 12px;
  z-index: 1001;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e2e3de;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 26px 20px 34px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--color-primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  border-radius: 11px;
  padding: 10px 0 10px 9px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
/* Only show toggle on mobile */
@media (max-width: 1023px) {
  header nav,
  header .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* SECTIONS & CONTENT ADJUSTMENTS */
main section {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
main section .container {
  padding: 0 10px;
}
main section .content-wrapper {
  padding: 0;
}

/* CONTACT PARAGRAPHS WITH ICONS */
.content-wrapper p img {
  height: 21px;
  width: 21px;
  margin-right: 8px;
  vertical-align: top;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #20503B;
  box-shadow: 0 -2px 16px rgba(32,80,59,0.07);
  padding: 24px 15px 22px 18px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 2px solid #E2E3DE;
  animation: cookiebanner-in 0.45s cubic-bezier(.3,1.34,.31,1);
}
@keyframes cookiebanner-in {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: 600;
  margin: 0 2px;
  border: 2px solid transparent;
  transition: background 0.14s, color 0.14s, border 0.14s;
}
.cookie-accept {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-reject {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-settings {
  background: #fafafa;
  color: var(--color-primary);
  border: 2px solid #E2E3DE;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #e2e3de;
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(32,80,59,0.17);
  max-width: 410px;
  padding: 46px 34px 28px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookiemodal-in 0.33s cubic-bezier(.3,1.34,.31,1);
}
@keyframes cookiemodal-in {
  from { transform: scale(0.9) translateY(50px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.24rem;
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.cookie-category label {
  font-size: 1.03rem;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #e2e3de;
  position: relative;
  transition: background 0.13s;
  display: inline-block;
  vertical-align: middle;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: left 0.15s, background 0.17s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 18px;
  background: var(--color-primary);
}
.cookie-close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.12s;
}
.cookie-close-modal:hover, .cookie-close-modal:focus {
  background: #e2e3de;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1023px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .content-wrapper {
    max-width: 100vw;
    padding: 0 8px;
  }
  .feature-grid, .service-cards, .service-categories, .benefit-grid, .article-list {
    gap: 14px;
  }
}
@media (max-width: 850px) {
  .feature-grid > div, .service-cards > div, .service-categories > div, .benefit-grid > div, .article-list article {
    min-width: 160px;
    flex: 1 1 160px;
    padding: 17px 8px 12px 12px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-cards, .service-categories, .benefit-grid, .article-list {
    flex-direction: column;
    gap: 0px;
  }
  .feature-grid > div, .service-cards > div, .service-categories > div, .benefit-grid > div, .article-list article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 12px 8px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.18rem; }
  main section {
    margin-bottom: 40px;
    padding: 22px 0;
  }
  .section {
    margin-bottom: 36px;
    padding: 22px 8px;
  }
  footer {
    padding: 24px 0 13px 0;
    border-radius: 20px 20px 0 0;
  }
}
@media (max-width: 540px) {
  .container, .content-wrapper { padding: 0 3vw; }
  .benefit-grid > div,
  .feature-grid > div,
  .service-cards > div,
  .service-categories > div,
  .article-list article,
  .testimonial-card {
    border-radius: 9px;
    padding: 12px 5vw 12px 6vw;
  }
  .section {
    padding: 14px 2vw;
  }
  footer { padding: 13px 0 8px 0; }
}

/* GEOMETRIC DECORATIVE (A few examples to add geometric flavor) */
.feature-grid > div:before,
.service-cards > div:after {
  content: "";
  position: absolute;
  bottom: 9px; right: 17px;
  width: 38px;
  height: 9px;
  background: rgba(125,172,91,0.13);
  border-radius: 50% 7px 4px 21px/8px 5px 15px 20px;
  z-index: 1;
  pointer-events: none;
}
.service-cards > div:after {
  left: 15px;
  right: auto;
  width: 23px;
  height: 7px;
  background: rgba(32,80,59,0.13);
  border-radius: 8px;
  top: 5px;
  bottom: auto;
}

/* MICRO-INTERACTIONS */
.cta.primary:active,
.cta.secondary:active,
.card:active {
  transform: scale(0.965);
}
.mobile-nav a:active {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(0.98);
}

/* SCROLLBAR STYLES */
body::-webkit-scrollbar {
  width: 9px;
}
body::-webkit-scrollbar-thumb {
  background: #E2E3DE;
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: #fafafa;
}

/* IMPROVED FOCUS STYLES */
a:focus,
button:focus,
.cta:focus {
  outline: 2px dashed #7DAC5B;
  outline-offset: 2px;
}

/* SPECIAL CLASSES FROM HTML (FAQ, Contact, etc.) */

/* RODO, POLITYKA, REGULAMIN, ETC. */
.content-wrapper h1 {
  margin-top: 22px;
}
.content-wrapper h2 {
  margin-top: 30px;
}

/* THANK-YOU PAGE */
.thank-you .cta.primary {
  margin-top: 24px;
  margin-bottom: 12px;
}

/* ----END---- */
