/* RESET & NORMALIZE */
html {box-sizing: border-box;}
*,*::before,*::after {box-sizing: inherit; margin: 0; padding: 0; border: 0; font: inherit;}
body, html {height: 100%;}
body {min-height: 100vh; background: #F5F6FA; font-family: 'Roboto', Arial, Helvetica, sans-serif; color: #17567A; line-height: 1.6; font-size: 16px;}
img {max-width: 100%; display: block;}
ul, ol {list-style: none; margin: 0; padding: 0;}
a {text-decoration: none; color: inherit; transition: color 0.2s;}
a:focus {outline: 2px solid #39B388; outline-offset: 2px;}
button {background: none; border: none; font: inherit; cursor: pointer; transition: background 0.15s, color 0.15s;}
:focus-visible {outline: 2px solid #39B388; outline-offset: 2px;}

/* BRAND VARIABLES (CUSTOM PROPERTIES) */
:root {
  --color-primary: #17567A;
  --color-primary-dark: #124462;
  --color-secondary: #F5F6FA;
  --color-bg: #ffffff;
  --color-accent: #39B388;
  --color-accent-dark: #21755e;
  --color-earth: #e5e1d9;
  --color-brown: #7b6753;
  --color-green-soft: #E8F6F1;
  --color-contrast: #252C24;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 20px rgba(55,86,70,0.07);
  --shadow-sm: 0 1.5px 5px rgba(33, 117, 94,0.10);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #17567A;
  margin-bottom: 16px;
}
h1 {font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px;}
h2 {font-size: 2rem; line-height: 1.2; margin-bottom: 18px;}
h3 {font-size: 1.3rem; margin-bottom: 12px;}
p, ul, ol {font-size: 1rem; color: #252C24; margin-bottom: 14px;}
strong {font-weight: 700; color: #17567A;}
.subheadline {font-size: 1.15rem; color: #21755E; margin-bottom: 24px;}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  padding: 20px 10px;
  background: var(--color-green-soft);
  border-radius: var(--radius-md);
}

/* FLEXBOX SPACING PATTERNS */
.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  min-width: 260px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--color-green-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 240px;
  max-width: 540px;
  color: #252C24;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #252C24;
  text-align: center;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #17567A;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.contact-methods {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* NAVIGATION */
header {
  background: linear-gradient(120deg, #E8F6F1 0%, #F5F6FA 90%);
  box-shadow: 0 2px 8px rgba(33,87,62,0.03);
}
header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  position: relative;
  z-index: 20;
}
header nav {
  display: flex;
  flex: 1 1 0;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #17567A;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {background: #39B388; color: #fff;}
header a.btn-primary {
  margin-left: 18px;
}

/* BUTTONS */
.btn-primary, .btn-accent {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 32px;
  margin: 0;
  border-radius: 32px;
  border: none;
  box-shadow: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.12s, box-shadow 0.2s;
  outline: none;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover,.btn-primary:focus {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 23px rgba(57,179,136,0.12);
}
.btn-accent {
  background: var(--color-primary);
  color: #fff;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--color-primary-dark);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  z-index: 32;
  background: #39B388;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #21755E;
  box-shadow: var(--shadow-md);
  position: absolute;
  top: 16px;
  right: 16px;
}
.mobile-menu {
  display: none;
}
/* Mobile menu overlay */
.mobile-menu.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(245,246,250,0.97);
  backdrop-filter: blur(2px);
  transition: transform 0.3s;
  transform: translateX(0);
  animation: mobileSlideIn 0.33s cubic-bezier(0.82,0.12,0.38,0.88) forwards;
}
@keyframes mobileSlideIn {
  0% {transform: translateX(100%);}
  100% {transform: translateX(0%);}
}
.mobile-menu .mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: #39B388;
  color: #fff;
  font-size: 2.4rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #21755E;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {background: #21755e;}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100vw;
  margin-top: 92px;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #17567A;
  background: #E8F6F1;
  border-radius: var(--radius-md);
  padding: 16px 32px;
  font-weight: 500;
  font-size: 1.16rem;
  width: 80%;
  text-align: center;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #39B388;
  color: #fff;
  box-shadow: 0 5px 14px #21755e11;
}

/* MAIN CONTENT */
main {
  min-height: 68vh;
  margin-bottom: 56px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section, section {
    padding: 28px 8px;
    margin-bottom: 38px;
    border-radius: var(--radius-sm);
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: unset;
    font-size: 0.98rem;
    padding: 12px 8px;
  }
  .contact-methods { flex-direction: column; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  header .container { flex-direction: row; gap: 10px; }
  header nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 18px;
    top: 12px;
    z-index: 32;
  }
}
@media (max-width: 768px) {
  header nav {display: none !important;}
  .mobile-menu-toggle {display: flex; position: absolute; right: 18px; top: 12px;}
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  header nav { display: flex !important; }
}

/* TABLES (CENNIK) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  margin-bottom: 22px;
  background: #f5f6fa;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
thead {background: #E8F6F1;}
th, td {
  padding: 14px 14px;
  text-align: left;
}
th {color: #17567A; font-family: 'Montserrat',sans-serif; font-size: 1.03rem; font-weight: 600;}
td {border-bottom: 1px solid #e5e1d9; color: #252C24; font-size: 1rem;}
tr:last-child td {border-bottom: none;}

/* FOOTER */
footer {
  background: #E8F6F1;
  padding: 38px 0 20px 0;
  color: #17567A;
  font-size: 1rem;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -2px 12px rgba(39,117,94,.08);
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: #17567A;
  font-weight: 600;
  font-family: 'Montserrat',sans-serif;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.17s;
}
footer nav a:hover,footer nav a:focus {background: #39B388; color: #fff;}
footer .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
}
footer .contact-info p {display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #252C24; font-size: 0.98rem;}
footer .social-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
footer .social-links a img {width: 28px; height: 28px; transition: filter 0.18s;}
footer .social-links a:hover img {filter: brightness(0.8) drop-shadow(0 3px 3px #39b38822);}
footer .copyright {
  font-size: 0.9rem;
  color: #797671;
  margin-top: 12px;
}

@media (max-width: 768px) {
  footer .container {gap: 12px;}
  footer nav {flex-direction: column; gap: 4px;}
  footer .contact-info {gap: 6px; font-size: 0.96rem;}
  section.card {padding: 14px 5px;}
}

/* ICONS */
img[alt^="Ikona"], img[alt^="Ocena"], img[alt^="Telefon"], img[alt^="Email"], img[alt^="Adres"], img[alt^="Godziny"], img[alt^="Facebook"], img[alt^="Instagram"] {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
}

/* UTILITY */
.mt-2 {margin-top: 12px;}
.mb-1 {margin-bottom: 6px;}
.mb-2 {margin-bottom: 13px;}
.gap-8 {gap: 8px;}
.gap-16 {gap: 16px;}
.gap-24 {gap: 24px;}
/* List bullet style for organic/nature look */
ul > li {
  position: relative;
  padding-left: 30px;
  min-height: 26px;
  margin-bottom: 12px;
  color: #21755e;
  font-weight: 500;
  font-size: 1.07rem;
}
ul > li img {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
}

/* Organic decorative blob (optional for hero/cta, if svg blob used) */
.organic-blob {
  position: absolute;
  z-index: 1;
  opacity: 0.2;
  pointer-events: none;
}

/* Micro-interactions & Transitions */
.btn-primary, .btn-accent, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a {
  transition: background 0.19s, color 0.16s, box-shadow 0.22s, transform 0.13s;
}
.card, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 32px rgba(33,117,94,0.11);
  transform: translateY(-3px) scale(1.01);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #f5f6fa;
  border-top: 2px solid #39B388;
  box-shadow: 0 -2px 22px rgba(57,179,136,0.06);
  padding: 20px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  animation: cookieBannerSlideIn 0.4s;
}
@keyframes cookieBannerSlideIn {
  from{transform:translateY(120%);opacity:0}
  to{transform:translateY(0);opacity:1}
}
.cookie-banner__text {color: #17567A; font-size: 1rem; text-align: center;}
.cookie-banner__actions {display: flex; gap: 16px;}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 22px;
  font-family:'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin:0;
  background: #39B388;
  color: #fff;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.18s;
}
.cookie-btn.cookie-accept {background: #39B388;}
.cookie-btn.cookie-accept:hover {background: #21755e;}
.cookie-btn.cookie-reject {background: #e5e1d9; color: #17567A;}
.cookie-btn.cookie-reject:hover {background: #c9c6be; color: #21755e;}
.cookie-btn.cookie-settings {background: #fff; color: #17567A; border: 1.7px solid #39B388;}
.cookie-btn.cookie-settings:hover {background: #e6f6ef;}
@media (max-width: 768px){.cookie-banner{align-items:stretch;}}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2001;
  background: rgba(39,87,62,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade .28s;
}
@keyframes cookieModalFade {from{opacity:0} to{opacity:1}}
.cookie-modal__content {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px 22px 28px 22px;
  min-width: 320px;
  width: 92vw;
  max-width: 420px;
  box-shadow: 0 8px 38px rgba(33,117,94,0.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__title {font-size: 1.23rem; font-weight: 600; color: #17567A; margin-bottom: 9px;}
.cookie-modal__close {
  position: absolute;
  right: 12px; top: 10px;
  background: none;
  color: #17567A;
  font-size: 2.1rem;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.17s;
}
.cookie-modal__close:hover,.cookie-modal__close:focus {background: #e5e1d9;}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #E8F6F1;
  border-radius: var(--radius-sm);
  padding: 13px 10px;
  font-size: 1rem;
}
.cookie-category__label {color: #17567A; font-weight: 500;}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #e5e1d9;
  border-radius: 22px;
  position: relative;
  transition: background 0.12s;
  cursor: pointer;
}
.cookie-toggle[aria-checked="true"] {
  background: #39B388;
}
.cookie-toggle__circle {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle__circle {
  left: 19px;
}
.cookie-category--always {opacity: 0.7;}

/* Miscellaneous for forms, links etc. */
input, textarea, select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.4px solid #39B388;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {border-color: #21755E; outline: none;}

/* ORGANIC SHAPE accents for cards (optional) */
.card::before {
  content: '';
  display: block;
  position: absolute;
  right: -24px; top: -18px;
  width: 46px; height: 44px;
  background: #E8F6F1;
  border-radius: 60% 50% 50% 75%;
  z-index: 0;
  opacity: 0.13;
  pointer-events: none;
}
.card:hover::before {background: #39B388; opacity: 0.19;}

/* --- PRINT OVERRIDE --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu {display:none !important;}
  body {background: #fff; color: #000;}
}
