/* =========================
   CSS RESET & BASE
   ========================= */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F5F5F5;
  color: #12362F;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
:focus {
  outline: 2px solid #205B4D;
  outline-offset: 2px;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
ul, ol {
  list-style: none;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3 {
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}
p, li, th, td, a, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: bold;
}
.text-section ul, .text-section ol {
  padding-left: 32px;
  margin-bottom: 18px;
}
.text-section ul li {
  list-style-type: square;
  margin-bottom: 10px;
}
.text-section ol li {
  list-style-type: decimal;
  margin-bottom: 10px;
}

/* =========================
   STRUCTURED LAYOUT & CONTAINER
   ========================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 32px 0 rgba(32,91,77,0.06);
  transition: box-shadow 0.3s;
}
.section:last-child {
  margin-bottom: 0;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: #205B4D;
  box-shadow: 0 2px 16px 0 rgba(32,91,77,0.045);
  padding: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  height: 48px;
  margin-right: 18px;
}
nav[aria-label="Główna nawigacja"] {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 24px;
  margin-right: 24px;
}
nav[aria-label="Główna nawigacja"] a {
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 1rem;
  color: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  transition: background 0.18s;
}
nav[aria-label="Główna nawigacja"] a:hover, nav[aria-label="Główna nawigacja"] a:focus {
  background: #89D7C2;
  color: #205B4D;
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #89D7C2;
  color: #205B4D;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 14px 36px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(32,91,77,0.07);
  font-size: 1.1rem;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #205B4D;
  color: #fff;
  box-shadow: 0 6px 32px 0 rgba(137,215,194,0.18);
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #205B4D;
  border-radius: 12px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background 0.18s, color 0.18s;
  z-index: 1201;
  border: 2px solid #89D7C2;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #89D7C2;
  color: #205B4D;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,91,77,0.97);
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
  transform: translateX(100%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 24px;
  gap: 24px;
  min-height: 100vh;
  box-shadow: -2px 0 16px 0 rgba(32,91,77,0.10);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #fff;
  background: #205B4D;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-self: flex-end;
  margin: 7px 24px 0 0;
  border: 2px solid #89D7C2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #89D7C2;
  color: #205B4D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  padding: 22px 32px;
  transition: background 0.17s, color 0.17s;
  border-radius: 14px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #89D7C2;
  color: #205B4D;
}

/* Hide desktop nav and show burger in mobile */
@media (max-width: 990px) {
  nav[aria-label="Główna nawigacja"] {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 991px) {
  .mobile-menu {
    display: none;
  }
}

/* =========================
   SECTIONS & FLEX LAYOUTS
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(32,91,77,0.09);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(32,91,77,0.17);
  transform: translateY(-4px) scale(1.015);
}
.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: 20px;
  padding: 20px;
  background: #F5F5F5;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(32,91,77,0.06);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 400px;
  color: #173a33;
  border: 2.5px solid #e7f8f4;
  transition: border 0.22s, box-shadow 0.22s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border: 2.5px solid #89D7C2;
  box-shadow: 0 4px 24px 0 rgba(32,91,77,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Service tiles (index) */
.service-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  width: 100%;
  margin-bottom: 26px;
}
.service-tiles > div {
  flex: 1 1 225px;
  background: #e7f8f4;
  border-radius: 18px;
  padding: 30px 22px 28px 22px;
  box-shadow: 0 2px 12px 0 rgba(32,91,77,0.09);
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 370px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.service-tiles > div:hover {
  box-shadow: 0 5px 32px 0 rgba(32,91,77,0.21);
  transform: scale(1.025);
}
.service-tiles h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  color: #205B4D;
  letter-spacing: 0.04em;
}
.service-tiles p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #133d35;
}
.service-tiles a {
  color: #205B4D;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 8px;
  transition: color 0.16s;
}
.service-tiles a:hover {
  color: #184f42;
}

/* Features list & icons (index, about, offer) */
.content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  padding-left: 0;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.04rem;
  background: #e7f8f4;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 1px 8px 0 rgba(32,91,77,0.04);
}
.content-wrapper ul li img {
  width: 28px;
  height: 28px;
}

/* Card-content, grid, wrapper various alignment  */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Tables in Price List */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(32,91,77,0.08);
  overflow: hidden;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  font-size: 1rem;
}
thead th {
  background: #205B4D;
  color: #fff;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.09rem;
}
tbody tr:nth-child(even) {
  background-color: #F5F5F5;
}

/* =========================
   HERO & CTA
   ========================= */
main > section:first-child {
  background: #e7f8f4;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 7px 56px 0 rgba(32,91,77,0.06);
  padding-bottom: 48px;
}
main > section:first-child h1 {
  color: #205B4D;
  font-size: 2.6rem;
}
main > section:first-child h2 {
  color: #205B4D;
  font-weight: 600;
}
main > section:last-child {
  background: #205B4D;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 24px 0 rgba(32,91,77,0.15);
  text-align: center;
}
main > section:last-child .btn-primary {
  margin: 24px auto 0 auto;
}

/* =========================
   TESTIMONIALS / SLIDER
   ========================= */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.stars {
  color: #FFD600;
  font-size: 1.3rem;
  letter-spacing: 2px;
  user-select: none;
  margin-bottom: 6px;
}
.client-name {
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  color: #205B4D;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #205B4D;
  color: #fff;
  padding: 48px 0 18px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 70px;
  box-shadow: 0 -2px 22px 0 rgba(32,91,77,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-logo {
  margin-bottom: 18px;
}
footer nav[aria-label="Stopka"] {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
footer nav[aria-label="Stopka"] a {
  color: #fff;
  opacity: 0.92;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 1.01rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
footer nav[aria-label="Stopka"] a:hover, footer nav[aria-label="Stopka"] a:focus {
  background: #89D7C2;
  color: #205B4D;
}
.contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.contact-footer span {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #bee7dd;
}
.contact-footer img {
  width: 18px;
  height: 18px;
}
.copyright {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #bbe6d6;
}

/* =========================
   COOKIE BANNER & MODAL
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #205B4D;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 26px;
  z-index: 5000;
  box-shadow: 0 -2px 24px 0 rgba(32,91,77,0.19);
  font-size: 1rem;
  letter-spacing: 0.01em;
  animation: cookie-popup-in 0.45s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-banner button {
  border: none;
  padding: 9px 26px;
  border-radius: 17px;
  margin: 0 4px;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.20s, color 0.18s, box-shadow 0.13s;
}
.cookie-banner .accept {
  background: #89D7C2;
  color: #205B4D;
}
.cookie-banner .settings {
  background: #fff;
  color: #205B4D;
  border: 1px solid #89D7C2;
}
.cookie-banner .reject {
  background: none;
  color: #fff;
  border: 1.7px solid #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 2px 16px 0 rgba(137,215,194,0.20);
  background: #205B4D;
  color: #fff;
}
@keyframes cookie-popup-in {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,54,47, 0.83);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-popup-in 0.38s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-modal-content {
  background: #fff;
  border-radius: 26px;
  min-width: 300px;
  max-width: 96vw;
  width: 380px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 8px 42px 0 rgba(32,91,77,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: #205B4D;
  border-radius: 50%;
  color: #fff;
  border: 1.5px solid #89D7C2;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #89D7C2;
  color: #205B4D;
}
.cookie-modal-content h2 {
  color: #205B4D;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-switch {
  margin-left: auto;
  width: 38px;
  height: 22px;
  background: #e7f8f4;
  border-radius: 12px;
  position: relative;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-switch input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
}
.cookie-switch span {
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #89D7C2;
  transition: left 0.20s, background 0.17s;
}
.cookie-switch input:checked + span {
  left: 18px;
  background: #205B4D;
}
.cookie-category.essential .cookie-switch {
  opacity: 0.6;
  pointer-events: none;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.cookie-modal-buttons button {
  padding: 9px 26px;
  border-radius: 17px;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.16s, box-shadow 0.12s;
}
.cookie-modal-buttons .accept {
  background: #89D7C2;
  color: #205B4D;
}
.cookie-modal-buttons .reject {
  background: #F5F5F5;
  color: #205B4D;
}
.cookie-modal-buttons button:hover {
  background: #205B4D;
  color: #fff;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 991px) {
  .service-tiles {
    flex-direction: column;
    align-items: stretch;
  }
  .service-tiles > div {
    max-width: 100%;
  }
  .testimonial-slider {
    flex-direction: column;
    align-items: stretch;
  }
  footer .container {
    gap: 12px;
  }
  footer nav[aria-label="Stopka"] {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.33rem;
    margin-bottom: 14px;
  }
  h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }
  .container {
    padding: 0 9px;
  }
  .section {
    margin-bottom: 38px;
    padding: 26px 7px;
    border-radius: 18px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card-container,
  .content-grid {
    gap: 12px;
  }
  .testimonial-card {
    padding: 16px 9px;
    min-width: unset;
  }
  .contact-footer {
    gap: 9px 6px;
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .service-tiles {
    gap: 12px;
  }
  .service-tiles > div {
    padding: 16px 7px 17px 7px;
  }
  main > section:first-child {
    border-radius: 0 0 18px 18px;
    padding-bottom: 20px;
  }
  main > section:last-child {
    border-radius: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
  }
  .footer-logo {
    margin-bottom: 2px;
  }
  footer {
    padding: 28px 0 10px 0;
    border-radius: 14px 14px 0 0;
    margin-top: 40px;
  }
}

/* Further compress for small screens */
@media (max-width: 440px) {
  main > section:last-child .btn-primary {
    padding: 10px 16px;
    font-size: 0.98rem;
    border-radius: 14px;
  }
  .cookie-modal-content {
    border-radius: 14px;
    padding: 14px 4px 4px 4px;
    width: 96vw;
  }
}

/* =========================
   GEOMETRIC DECORATIVE EFFECTS
   ========================= */
.section, .testimonial-card, .service-tiles > div, .card {
  border-radius: 18px;
  /* slightly angular for geometric look */
  box-shadow: 0 2px 18px 0 rgba(32,91,77,0.09);
}
.btn-primary, .mobile-menu-toggle, .cookie-banner button, .cookie-modal-buttons button {
  border-radius: 20px 8px 20px 8px / 9px 16px 9px 16px;
}

/* =========================
   SCROLLBAR STYLING (optional for geometric flair)
   ========================= */
::-webkit-scrollbar {
  width: 11px;
  background: #e7f8f4;
}
::-webkit-scrollbar-thumb {
  background: #89D7C2;
  border-radius: 14px;
}
::-webkit-scrollbar-thumb:hover {
  background: #205B4D;
}

/* =========================
   UTILITY CLASSES
   ========================= */
.text-center {
  text-align: center;
}
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 32px; }

/* Accessible hidden, just in case */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
