/* ---------- CSS RESET + BASE ---------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #222;
  background-color: #F4F1ED;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #355048;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8DB19B;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
}
strong {
  font-weight: bold;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #355048;
  margin-bottom: 20px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }

p {
  margin-bottom: 16px;
  color: #333;
  font-size: 1rem;
}

.section ul li, .section ol li, ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #222;
  line-height: 1.7;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px 0 rgba(53,80,72,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* All content-layout flexboxes (MANDATORY) */
.features-grid, .services-list, .team-list, .topics-grid, .blog-list, .blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonials-slider, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Card Containers
-------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #f7faf9;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(53, 80, 72, 0.06);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

/* Feature Items
-------------------------------------------------- */
.feature-item, .team-bio, .topic, .service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature, .topic, .service-card {
  background: #f7faf9;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(53, 80, 72, 0.07);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover, .topic:hover, .service-card:hover {
  box-shadow: 0 4px 16px 0 rgba(53, 80, 72, 0.14);
  transform: translateY(-5px) scale(1.02);
}
.service-card {
  border-left: 3px solid #8DB19B;
}
.service-price {
  font-weight: 700;
  color: #355048;
  margin-top: 12px;
  font-size: 1.125rem;
}

/* Testimonial Card
-------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #F4F1ED;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(53, 80, 72, 0.07);
  padding: 24px 22px 22px 32px;
  color: #233;
  min-width: 260px;
  max-width: 420px;
  margin-bottom: 20px;
  font-size: 1rem;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(53, 80, 72, 0.15);
  transform: translateY(-4px) scale(1.01);
}
.testimonial-card strong {
  color: #355048;
}

/* Content Grids
-------------------------------------------------- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Text-Image Flex Section (for possible future use) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ---------- HEADER / NAVIGATION ---------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(53,80,72,0.045);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo img, .logo-footer img {
  height: 40px;
  width: auto;
}
.logo {
  margin-right: 26px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: #355048;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  border-radius: 4px;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8DB19B;
  background: rgba(141, 177, 155, 0.07);
}

/* Header CTA */
.cta.primary {
  background: #355048;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 26px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 28px;
  box-shadow: 0 2px 8px 0 rgba(53,80,72,0.04);
  transition: background 0.16s, color 0.19s, box-shadow 0.18s, transform 0.17s;
  border: none;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #8DB19B;
  color: #233 !important;
  box-shadow: 0 4px 18px 0 rgba(53,80,72,0.14);
  transform: translateY(-2px) scale(1.03);
}

button, .cta {
  cursor: pointer;
  outline: none;
  border: none;
  background: #8DB19B;
  color: #355048;
  padding: 10px 22px;
  border-radius: 24px;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0;
  box-shadow: 0 1px 4px 0 rgba(53,80,72,0.04);
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.14s;
  display: inline-block;
}
.cta:hover, .cta:focus, button:hover, button:focus {
  background: #355048;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(53,80,72,0.11);
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}

/* ---------- BURGER MENU / MOBILE NAVIGATION ---------- */
.mobile-menu-toggle {
  background: none;
  color: #355048;
  font-size: 2rem;
  border: none;
  margin-left: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background 0.18s, color 0.2s;
  z-index: 30;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E1E6E3;
  color: #8DB19B;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F4F1ED;
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(0.87,0.03,0.25,1.0);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 4px 24px 0 rgba(53,80,72,0.12);
  padding: 32px 24px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #355048;
  font-size: 2rem;
  padding: 6px 8px;
  margin-bottom: 18px;
  margin-top: 4px;
  border: none;
  border-radius: 6px;
  transition: background 0.12s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E1E6E3;
  color: #8DB19B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #355048;
  font-size: 1.2rem;
  padding: 14px 6px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e1e6e3;
  color: #8DB19B;
}

/* Hide navigation on mobile by default */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- MAIN CONTENT & CARDS ---------- */
.services-list {
  flex-wrap: wrap;
  gap: 24px;
}
.team-list {
  flex-wrap: wrap;
  gap: 24px;
}
.topics-grid {
  flex-wrap: wrap;
  gap: 24px;
}
.feature, .topic {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 200px;
}
.topics-grid .topic {
  max-width: 230px;
  flex: 1 1 170px;
  align-items: center;
}
.topics-grid .topic img {
  height: 44px;
  margin-bottom: 18px;
}

.blog-list {
  flex-direction: column;
  gap: 26px;
}
.blog-list article {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 4px 0 rgba(53,80,72,0.05);
  padding: 20px 20px;
  font-size: 1rem;
}
.blog-list article h3 {
  color: #355048;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-categories {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-categories li {
  background: #e1e6e3;
  padding: 6px 14px;
  border-radius: 16px;
  color: #355048;
  font-size: 0.98rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: #355048;
  color: #fff;
  padding-top: 56px;
  padding-bottom: 18px;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.logo-footer img {
  height: 38px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.92;
  text-decoration: none;
  transition: color 0.13s, opacity 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8DB19B;
  opacity: 1;
  text-decoration: underline;
}
.contact-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: #e6e6e6;
}
.contact-footer span img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: text-bottom;
}
.copyright {
  text-align: center;
  color: #E1E6E3;
  font-size: 0.94rem;
  opacity: 0.72;
  margin-top: 16px;
}

/* ---------- ICONS ---------- */
img[alt^="Telefon"], img[alt^="Adres"], img[alt^="Email"], img[alt^="Godziny"], img[alt^="Mapa"], img[alt^="Mapa"], img[alt^="Pin"], img[alt^="icon-"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- RESPONSIVE: MOBILE FIRST ---------- */
@media (max-width: 950px) {
  .container { padding: 0 12px; }
  .footer-nav, .contact-footer { min-width: auto; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .section {
    padding: 30px 10px;
    margin-bottom: 42px;
  }
  header .container {
    min-height: 56px;
    padding: 0 8px;
  }
  .footer-nav, .contact-footer {
    min-width: unset;
    font-size: 0.97rem;
  }
  .content-wrapper {
    gap: 10px;
    padding: 0;
  }
  .features-grid, .services-list, .testimonials-slider, .team-list, .topics-grid, .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .topic, .service-card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 18px 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 12px;
  }
  .logo, .logo-footer {
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  .section {
    padding: 18px 2px;
    margin-bottom: 30px;
  }
  .logo img, .logo-footer img {
    height: 32px;
  }
  .footer-nav, .contact-footer {
    font-size: 0.93rem;
  }
}

/* ---------- FORM, FAQ, MISC ---------- */
.text-section {
  margin-bottom: 20px;
}
.map-location {
  margin-top: 14px;
  font-size: 0.97rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #f7faf9;
  box-shadow: 0 -2px 16px 0 rgba(53, 80, 72, 0.06);
  z-index: 2100;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 18px 20px;
  gap: 32px;
  font-size: 1rem;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.7,0,0.36,1), opacity 0.17s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(140px);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 70vw;
  color: #233;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  padding: 9px 18px;
  font-size: 1rem;
  border-radius: 20px;
  background: #8DB19B;
  color: #355048;
  font-weight: 600;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.14s;
}
.cookie-banner button.primary {
  background: #355048;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #355048;
  color: #fff;
}
.cookie-banner button.settings {
  background: #e1e6e3;
  color: #355048;
}
.cookie-banner button.reject {
  background: #ccc;
  color: #355048;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner-actions {
    width: 100%;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
  }
}

/* COOKIE SETTINGS MODAL -------------------------------------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(53,80,72,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.19s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(53,80,72,0.14);
  padding: 36px 26px 26px 26px;
  max-width: 460px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 10px;
  position: relative;
  animation: modalIn 0.32s cubic-bezier(0.7,0,0.36,1);
}
@keyframes modalIn {
  from { transform: translateY(100px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-header {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #355048;
  margin-bottom: 8px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #355048;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #8DB19B;
  width: 20px;
  height: 20px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 11px;
  background: none;
  color: #355048;
  font-size: 1.3rem;
  border: none;
  border-radius: 7px;
  padding: 3px 6px;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e1e6e3;
  color: #8DB19B;
}

@media (max-width: 530px) {
  .cookie-modal-content {
    padding: 20px 4px;
    min-width: 0;
    width: 97vw;
  }
}

/* ---------- UTILITY CLASSES ---------- */
.bg-primary { background: #355048 !important; color: #fff !important; }
.bg-secondary { background: #8DB19B !important; color: #355048 !important; }
.text-primary { color: #355048 !important; }
.text-secondary { color: #8DB19B !important; }
.rustic-shadow { box-shadow: 0 4px 18px 0 rgba(53,80,72,0.09); }
.rounded { border-radius: 12px; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ---------- FOCUS STATES ---------- */
:focus {
  outline: 2px solid #8DB19B;
  outline-offset: 2px;
}
button:focus, a:focus {
  outline: 2px solid #8DB19B;
  outline-offset: 2px;
  z-index: 2;
}

/* ---------- SCROLLBAR (optional for corporate look) ---------- */
::-webkit-scrollbar {
  width: 8px;
  background: #e1e6e3;
}
::-webkit-scrollbar-thumb {
  background: #8DB19B;
  border-radius: 6px;
}

/* ---------- CUSTOM ANIMATIONS ---------- */
.cta, .cta.primary, .service-card, .feature, .testimonial-card, .topic {
  transition: box-shadow 0.21s, transform 0.18s, background 0.18s, color 0.13s;
}

/* Prevent overlapping for all content blocks and cards */
.section > *, .content-wrapper > *, .card-container > *, .features-grid > *, .services-list > *, .team-list > *, .topics-grid > *, .blog-list > *, .testimonials-slider > * {
  margin-bottom: 20px;
}
.section > *:last-child, .content-wrapper > *:last-child, .card-container > *:last-child, .features-grid > *:last-child, .services-list > *:last-child, .team-list > *:last-child, .topics-grid > *:last-child, .blog-list > *:last-child, .testimonials-slider > *:last-child {
  margin-bottom: 0;
}

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