/* ========================================================
   CSS RESET & BASE NORMALIZE (MOBILE-FRIENDLY)
   ======================================================== */
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;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #E3DFD7;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #27514D;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}
a {
  color: #386C67;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #A97914;
  outline: none;
}
ul, ol {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
strong { font-weight: 600; }

/* ============ NATURE ORGANIC DESIGN TOKENS ============= */
:root {
  --color-primary: #386C67;
  --color-primary-deep: #27514D;
  --color-accent: #DAB240;
  --color-accent-deep: #A97914;
  --color-bg: #E3DFD7;
  --color-bg-alt: #F7F5EF;
  --color-white: #FFFFFF;
  --color-text: #27514D;
  --color-text-contrast: #FFFFFF;
  --color-muted: #98A399;
  --color-shadow: rgba(56,108,103,0.08);
  --radius-section: 40px;
  --radius-card: 24px;
  --radius-btn: 9999px;
  --shadow-card: 0 2px 12px 0 var(--color-shadow);
  --shadow-btn: 0 2px 8px 0 rgba(56,108,103,.10);
}

/* ================ TYPOGRAPHY ================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary-deep);
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.18;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}
h4,h5,h6 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  margin-bottom: 18px;
}
@media (min-width: 600px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.38rem; }
}

/* ================= LAYOUT CONTAINERS ================ */
.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-section);
  margin-bottom: 60px;
  box-shadow: 0 2px 24px 0 var(--color-shadow);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  align-items: flex-start;
  background: linear-gradient(120deg, #F7F5EF 80%, #E3DFD7 100%);
  border-radius: 30px 60px 30px 60px / 50px 30px 50px 30px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
}
/* Spacing and alignment patterns from system */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  position: relative;
}
.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: 12px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-primary);
  max-width: 600px;
  color: #212e24;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: var(--color-primary-deep);
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--color-muted);
  font-size: .98rem;
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  margin-left: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ORGANIC SHAPED SECTION DECORATIONS
   (Just a fallback for organic look for cards/sections)
*/
.content-wrapper, .card, .testimonial-card, .feature-item {
  border-radius: 32px 84px 40px 80px/44px 40px 80px 70px;
}

/* =========== HEADER & NAVIGATION =========== */
header {
  background: #ffffffd8;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  padding: 12px 0 12px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
header > a img {
  height: 42px;
  width: auto;
  margin-left: 18px;
  margin-right: 16px;
  margin-bottom: 0;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  flex: 1 1 auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 16px;
  border-radius: var(--radius-btn);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.03rem;
  transition: background 0.20s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-bg-alt);
  color: var(--color-accent-deep);
}
header nav .cta-primary {
  background: var(--color-primary);
  color: var(--color-text-contrast);
  font-weight: 700;
  border-radius: var(--radius-btn);
  transition: background 0.23s, color 0.23s;
  box-shadow: var(--shadow-btn);
  position: relative;
}
header nav .cta-primary:hover,
header nav .cta-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Hide burger on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ============ MOBILE MENU ============== */
.mobile-menu {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: #e3dfd7f8;
  backdrop-filter: blur(2px);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.8,.02,.1,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px;
  min-width: 70vw;
  max-width: 375px;
  box-shadow: -2px 0 20px 0 #b5bba4;
  border-radius: 0 0 0 60px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary-deep);
  font-size: 2.2rem;
  margin-bottom: 16px;
  margin-left: auto;
  cursor: pointer;
  line-height: 1;
  transition: color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent-deep);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  background: none;
  padding: 10px 0 10px 8px;
  border-radius: var(--radius-btn);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
@media (max-width: 960px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 6px 16px;
    border-radius: var(--radius-btn);
    border: none;
    font-size: 1.7rem;
    margin-left: auto;
    margin-right: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: background 0.19s, color 0.19s;
    z-index: 1200;
  }
  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 600px) {
  header > a img {
    height: 36px;
    margin-left: 6px;
  }
}

/* ================== HERO / FEATURE ================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin: 20px 0 0 0;
}
.feature-grid > div {
  flex: 1 1 210px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  min-width: 180px;
  margin-bottom: 12px;
  transition: box-shadow 0.18s, transform 0.19s;
  border-left: 5px solid var(--color-primary);
}
.feature-grid > div:hover  {
  box-shadow: 0 8px 22px 0 var(--color-shadow);
  transform: translateY(-2px) scale(1.02) rotate(-0.2deg);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 2px #c9d8c6);
}

/* ================== TABLES =================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  background: var(--color-bg-alt);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 1rem;
}
thead tr { background: var(--color-primary); color: #FFF; }
thead th {
  padding: 14px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-align: left;
}
tbody td {
  padding: 13px 8px;
  border-bottom: 1px solid #dae7dc;
  color: var(--color-primary-deep);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ========== BUTTONS & CTA =========== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text-contrast);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  font-size: 1.08rem;
  margin-top: 10px;
  margin-bottom: 8px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.21s, color 0.21s, transform .15s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary-deep);
  transform: scale(1.045);
}
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  outline: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.11s;
}

/* ========== FOOTER ============ */
footer {
  background: var(--color-bg-alt);
  box-shadow: 0 -2px 12px 0 var(--color-shadow);
  padding: 28px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
footer nav a {
  color: var(--color-primary-deep);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover {
  background: var(--color-accent);
  color: #FFF;
}
.footer-brand img {
  width: 54px;
  height: auto;
  margin-left: 20px;
}

/* ========== ORGANIC/NATURE VISUAL DETAILS =========== */
.content-wrapper, .card, .feature-grid > div, .testimonial-card {
  box-shadow: 0 6px 30px 0 var(--color-shadow);
}
.feature-grid > div, .card {
  border-radius: 38px 65px 36px 70px / 28px 34px 64px 28px;
}
.testimonial-card {
  border-radius: 30px 32px 54px 30px/34px 28px 40px 44px;
}

/* ========== MISC UTILITY CLASSES ============ */
.text-center { text-align: center; }

/* ========== FILTER INFO =========== */
.filter-info {
  background: var(--color-bg-alt);
  border-radius: 14px;
  padding: 10px 16px;
  margin: 20px 0;
  color: var(--color-primary);
  box-shadow: 0 1px 6px 0 var(--color-shadow);
  font-size: .99rem;
}
.filter-info span {
  font-weight: 600;
  color: var(--color-accent-deep);
  border-radius: 14px;
  background: #f2e2bd77;
  padding: 2px 8px;
  margin: 0 2px;
}

/* ============ FORM INFO ============ */
.form-info {
  background: var(--color-bg-alt);
  padding: 18px 14px;
  border-radius: 14px;
  color: var(--color-primary);
  font-size: .99rem;
  margin-top: 18px;
}

/* ========== TABLET & DESKTOP QUERIES =========== */
@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }
  .feature-grid {
    gap: 32px;
  }
  .content-wrapper {
    padding: 50px 44px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    width: 100%;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* ========== MOBILE FIRST ========== */
@media (max-width: 768px) {
  .container {
    padding-left: 7px; padding-right: 7px;
  }
  .content-wrapper, .section {
    padding: 28px 7px;
    margin-bottom: 36px;
    border-radius: 22px 55px 18px 33px/28px 18px 42px 18px;
  }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.11rem; }
  .feature-grid {
    gap: 12px;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 12px 7px;
    border-left-width: 4px;
  }
  .footer-brand img {
    width: 38px;
    margin-left: 0;
  }
  .content-grid, .card-container, .feature-item {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =========== COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-bg-alt);
  border-top: 2px solid var(--color-primary-deep);
  box-shadow: 0 -1px 20px 0 var(--color-shadow);
  z-index: 2001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 16px 18px 16px;
  animation: slideUpBanner 0.55s cubic-bezier(.75,0,.2,1);
}
.cookie-banner__text {
  flex: 1 1 220px;
  color: var(--color-primary-deep);
  font-size: 1rem;
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  outline: none;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-btn);
  transition: background 0.17s, color 0.17s;
}
.cookie-btn--settings {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn--reject {
  background: #A97914;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #215143;
  color: #fff;
}
.cookie-btn--settings:hover {
  background: #A97914;
}
.cookie-btn--reject:hover {
  background: #7d6011;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 7px 12px 7px;
    font-size: .97rem;
  }
  .cookie-banner__actions {
    width: 100%;
    gap: 10px;
  }
}
@keyframes slideUpBanner {
  from {
    transform: translateY(160px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========== COOKIE MODAL ============= */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(56,108,103,0.26);
  justify-content: center;
  align-items: center;
  transition: opacity 0.22s;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInModal 0.25s cubic-bezier(.6,0,.2,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal__content {
  background: var(--color-bg-alt);
  border-radius: 32px 48px 32px 48px / 34px 60px 32px 20px;
  box-shadow: 0 2px 30px 0 var(--color-shadow);
  width: 95vw;
  max-width: 420px;
  padding: 36px 28px 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--color-primary-deep);
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal__close:hover {
  color: var(--color-accent-deep);
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: var(--color-primary-deep);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 19px;
  height: 19px;
  margin: 0 8px 0 0;
}
.cookie-category label {
  font-size: 1.02rem;
  color: var(--color-primary);
}
.cookie-category--essential label { font-weight: 600; }
.cookie-category--essential input {
  accent-color: var(--color-muted);
}
.cookie-category--essential label:after {
  content: ' (wymagane)';
  color: var(--color-muted);
  font-size: .95em;
}

.cookie-modal__actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal__actions .cookie-btn {
  padding: 8px 22px;
  font-size: 1.02rem;
}

/* ============= ACCESSIBILITY: FOCUS VISIBLE ============= */
:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}

/* =========== ORGANIC ICON ACCENTS ============ */
li img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px #dae7dcaf);
  border-radius: 14px;
}
li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary-deep);
}

/* =========== ORGANIC DECORATIVE SHAPES ============ */
.section, .content-wrapper, .card, .feature-grid > div, .testimonial-card {
  background-blend-mode: lighten;
}

/* ============ PRINT (OPTIONAL IMPROVEMENTS) =========== */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, .content-wrapper { box-shadow: none !important; }
}
