/* ===========================
   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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15; /* Better default line-height */
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F3F6F3;
  color: #244D3B;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: .01em;
}
*, *:before, *:after { box-sizing: inherit; }
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
ul, ol { 
  margin: 16px 0 16px 24px;
  padding: 0;
}
li {
  margin-bottom: 10px;
}
a {
  text-decoration: none;
  color: #244D3B;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #80B499;
  outline: 0;
}
table { border-collapse: collapse; width: 100%; margin: 24px 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(36,77,59,0.06); }
th, td { padding: 14px 18px; text-align: left; }
th { background: #f7faf7; color: #244D3B; font-size: 16px; font-weight: 700; }
td { background: #fff; color: #244D3B; font-size: 15px; }
blockquote {
  margin: 0 0 10px 0;
  padding-left: 16px;
  border-left: 4px solid #80B499;
  color: #425F51;
  font-style: italic;
  font-size: 17px;
}
address {
  font-style: normal;
  margin: 24px 0;
}
hr {
  border: 0;
  border-top: 1px solid #e2e7e2;
  margin: 28px 0;
}

/* ===========================
   BRAND COLOR SCHEME
   =========================== */
:root {
  --color-primary: #244D3B;
  --color-secondary: #80B499;
  --color-accent: #F3F6F3;
  --color-bg-card: #fff;
  --color-accent-muted: #E3F2E8;
  --color-highlight: #fff5e3;
  --color-dark-text: #244D3B;
  --color-light-text: #fff;
  --color-warning: #D97622;
  --color-focus-ring: #80B499;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,800|Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 18px;
  color: var(--color-primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.15rem; font-family: 'Lato', Arial, sans-serif; font-weight: 700; }
p {
  margin-bottom: 15px;
  font-size: 1.13rem;
}

/* ===========================
   CONTAINERS & LAYOUT
   =========================== */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 30px;
  box-shadow: none;
}
@media (min-width: 680px) {
  .section {
    padding: 48px 40px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 290px;
  background: var(--color-bg-card);
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(36,77,59,0.06);
  padding: 28px 24px 22px 24px;
  transition: box-shadow 0.2s, transform 0.17s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 6px 20px 0 rgba(36,77,59,0.13);
  transform: translateY(-4px) scale(1.03);
}

.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;
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(36,77,59,0.07);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--color-dark-text);
  font-size: 1.09rem;
  font-family: 'Lato', Arial, sans-serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ul:not([class]), ol:not([class]) {
  margin: 16px 0 16px 24px;
  padding: 0;
}
ul li, ol li {
  padding-left: 0;
  font-size: 1.07rem;
  position: relative;
  margin-bottom: 10px;
  color: #244D3B;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* For address icon lists */
address ul {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}
address li {
  gap: 8px;
  font-size: 1rem;
}
address img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  flex-shrink: 0;
}

/* dt/dd FAQ styling */
dl {
  margin-bottom: 24px;
}
dl dt {
  font-weight: bold;
  margin-top: 12px;
  color: #244D3B;
  font-size: 1.09rem;
}
dl dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #3E5A4B;
  font-size: 1rem;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
  background: #fff;
  border-bottom: 1px solid #e8f1ea;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1002;
  box-shadow: 0 2px 8px 0 rgba(36,77,59,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  font-family: 'Lato', Arial, sans-serif;
  color: #244D3B;
  font-size: 1.05rem;
  border-radius: 12px;
  padding: 8px 15px;
  transition: background 0.17s, color 0.12s;
  font-weight: 500;
}
nav a:hover,
nav a:focus {
  background: var(--color-accent-muted);
  color: var(--color-secondary);
  outline: none;
}
nav a.cta {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  font-family: 'Lato', Arial, sans-serif;
  border-radius: 20px;
  padding: 9px 22px;
  letter-spacing: 0.03em;
  margin-left: 13px;
  box-shadow: 0 2px 8px 0 rgba(128,180,153,0.11);
  transition: background 0.16s, box-shadow 0.16s, transform 0.11s;
}
nav a.cta:hover,
nav a.cta:focus {
  background: #244D3B;
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 5px 16px 0 rgba(36,77,59,0.2);
}
header img[alt="Cisza Wewnętrzna"] {
  height: 40px;
  width: auto;
  margin-right: 18px;
  vertical-align: middle;
  border-radius: 14px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.0rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  box-shadow: 0 1px 6px 0 rgba(36,77,59,0.10);
  margin-left: 10px;
  z-index: 1020;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-light-text);
  outline: 2px solid var(--color-focus-ring);
}
@media (min-width:1025px) {
  .mobile-menu-toggle { display: none; }
}
.mobile-menu {
  position: fixed;
  z-index: 3000;
  right: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,77,59,0.93);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.60,0,0.3,1);
  will-change: transform;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 0 0;
  font-size: 2.3rem;
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 10px 0 rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
  z-index: 10;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
  outline: 2px solid #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 50px 32px 18px 32px;
  margin-top: 10px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
  background: none;
  border-radius: 13px;
  padding: 11px 15px;
  transition: background 0.15s, color 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent-muted);
  color: var(--color-primary);
}
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: #fff;
  color: #63826C;
  padding: 36px 0 10px 0;
  border-top: 1px solid #e8f1ea;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  color: var(--color-secondary);
  font-size: 15px;
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 500;
}
footer nav a:hover {
  background: var(--color-accent-muted);
  color: var(--color-primary);
}
footer p {
  color: #63826C;
  font-size: 14px;
  text-align: center;
}

/* ===========================
   BUTTONS AND CTA
   =========================== */
.cta, button.cta, input[type="submit"].cta {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  border: none;
  border-radius: 22px;
  padding: 12px 28px;
  box-shadow: 0 2px 9px 0 rgba(128,180,153,0.12);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, box-shadow 0.17s, transform 0.12s;
  margin-top: 12px;
  margin-bottom: 12px;
  outline: none;
}
.cta:hover,
.cta:focus,
button.cta:hover,
button.cta:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 7px 16px 0 rgba(36,77,59,0.15);
  outline: 2px solid var(--color-focus-ring);
  text-decoration: none;
}

button, input[type="button"], input[type="submit"] {
  font-family: 'Lato', Arial, sans-serif;
  border-radius: 15px;
  border: none;
  padding: 9px 22px;
  font-size: 1rem;
  background: var(--color-secondary);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.09s;
}
button:hover, input[type="button"]:hover, input[type="submit"]:hover {
  background: var(--color-primary);
  color: #fff;
  outline: 2px solid var(--color-secondary);
  transform: scale(1.03);
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonial-card {
  background: #fffaf7;
  border-radius: 20px;
  box-shadow: 0 3px 15px 0 rgba(128,180,153,0.12);
  color: #2A372E;
  font-size: 1.09rem;
  max-width: 630px;
  margin: 0 0 20px 0;
  padding: 26px 28px 20px 28px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card blockquote {
  border-left: 4px solid #80B499;
  color: #425F51;
  margin-bottom: 7px;
  padding-left: 16px;
}
.testimonial-card span {
  color: #68553B;
  font-size: 0.98rem;
  margin-left: 5px;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 7px 25px 0 rgba(36,77,59,0.13);
  transform: scale(1.013);
}

/* ===========================
   FEATURE LISTS/STEPS
   =========================== */
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ===========================
   MODALS, OVERLAYS
   =========================== */
.modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3050;
  background: rgba(36,77,59,0.14);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px 26px 28px;
  min-width: 280px;
  max-width: 95vw;
  box-shadow: 0 14px 40px 0 rgba(36,77,59,0.20);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  color: #244D3B;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #244D3B;
  cursor: pointer;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 10px; right: 10px;
  bottom: 16px;
  z-index: 2002;
  background: #fffaf7;
  color: #244D3B;
  border-radius: 22px;
  box-shadow: 0 6px 24px 0 rgba(36,77,59,0.16);
  padding: 30px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 300px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 1.08rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 18px;
  border: none;
  padding: 8px 20px;
  margin-right: 5px;
  font-size: 1.01rem;
  font-family: 'Lato', Arial, sans-serif;
  transition: background 0.13s, color 0.11s;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 6px 0 rgba(128,180,153,0.11);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--color-accent-muted);
  color: var(--color-primary);
  font-weight: 500;
  border: 1.5px solid #80B499;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus{
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie modal overlay */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3055;
  background: rgba(36,77,59,0.24);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px 26px 32px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 22px 48px 0 rgba(36,77,59,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  color: #244D3B;
  font-size: 1.09rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 15px 0 22px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid #80B499;
  background: #F3F6F3;
  position: relative;
  transition: border 0.18s;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--color-secondary);
  border-color: var(--color-primary);
}
.cookie-category input[type="checkbox"]:checked::after {
  content: '\2714';
  color: #fff;
  font-size: 1.22rem;
  position: absolute;
  left: 3px; top: -2px;
}
.cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 15px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #244D3B;
  cursor: pointer;
}
@media (max-width: 600px) {
  .cookie-banner,
  .cookie-modal-content {
    max-width: 96vw;
    padding: 16px 9vw 14px 7vw;
    font-size: 1rem;
  }
}

/* ===========================
   FORMS
   =========================== */
input, textarea, select {
  border-radius: 13px;
  border: 1.4px solid #e3f2e8;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  background: #fff;
  color: #244D3B;
  margin-bottom: 12px;
  box-shadow: 0 0px 4px 0 rgba(128,180,153,0.04);
  transition: border 0.13s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(128,180,153,0.10);
  outline: none;
}

/* ===========================
   RESPONSIVE & FLEX-GAP
   =========================== */
@media (max-width:1024px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
  .section { padding: 32px 8px; }
}
@media (max-width: 768px) {
  h1{ font-size:2rem; }
  h2{ font-size:1.35rem; }
  .section {
    margin-bottom: 35px;
    padding: 20px 5vw;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 19px 9px 17px 13px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  nav a,
  .mobile-nav a {
    font-size: 1.05rem;
    padding: 8px 8px;
  }
  .cta {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
@media (max-width:500px) {
  h1 { font-size:1.25rem; }
  .section {padding: 13px 3vw;}
}

/* ===========================
   VISUALS: SHADOWS & ROUNDS
   =========================== */
.section, .card, .testimonial-card, .cookie-banner, .cookie-modal-content, .modal-content {
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(36,77,59,0.07);
}

/* ===========================
   TRANSITIONS & MICRO-ANIMATIONS
   =========================== */
a, button, .card, .cta, .testimonial-card, .cookie-banner {
  transition: all 0.14s cubic-bezier(0.4,0.3,0.11,1);
}

/* ===========================
   OTHER INTERFACE STYLES
   =========================== */
::-webkit-scrollbar {
  width: 10px;
  background: #F3F6F3;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #e3f2e8;
  border-radius: 6px;
}
::-webkit-input-placeholder { color: #aebbae; }
::-moz-placeholder { color: #aebbae; }
:-ms-input-placeholder { color: #aebbae; }
::placeholder { color: #aebbae; }

/* ===========================
   ACCESSIBILITY: FOCUS STATES
   =========================== */
a:focus, button:focus, input:focus, .cta:focus {
  outline: 2.2px solid var(--color-secondary);
  outline-offset: 2px;
  background: var(--color-accent-muted);
}

/* ===========================
   SPECIAL - PRINT
   =========================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .modal, .cookie-modal { display: none !important; }
  body { background: #fff; color: #222; }
  .section { box-shadow: none !important; }
}
