/* RESET & BASE STYLES */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #25313A;
  background: #fff;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #8DBB7E;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover, a:focus {
  color: #25313A;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, .btn-primary {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  outline: none;
}
:focus {
  outline: 2px solid #8DBB7E;
  outline-offset: 2px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  text-transform: uppercase;
}
p, li {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
strong {
  font-weight: 700;
  letter-spacing: .02em;
}

/* CONTAINERS & SPACING */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.text-section {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(37, 49, 58, 0.08);
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  gap: 10px;
}
.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 {
  background: #F0E8CC;
  color: #25313A;
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(37, 49, 58, 0.09);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(37,49,58,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(37, 49, 58, 0.06);
  padding: 24px;
  min-width: 220px;
  margin-bottom: 20px;
}

/* HEADER / NAVIGATION */
header {
  background: #fff;
  border-bottom: 3px solid #8DBB7E;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(37,49,58,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  color: #25313A;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8DBB7E;
  border-bottom: 2px solid #8DBB7E;
}
.btn-primary {
  background: #8DBB7E;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 1px 8px rgba(141,187,126,0.06);
  transition: background .20s, color .18s, box-shadow .22s;
  margin-left: 20px;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #25313A;
  color: #fff;
  box-shadow: 0 2px 14px rgba(37,49,58,0.13);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #25313A;
  margin-left: 20px;
  padding: 8px 12px;
  line-height: 1;
  border-radius: 8px;
}
.mobile-menu-toggle:focus {
  background: rgba(141,187,126,0.12);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #25313A;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.74,-0.02,.46,1.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 26px 0 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F0E8CC;
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2020;
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(141,187,126,0.20);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 44px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F0E8CC;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 0;
  width: 100%;
  border-radius: 8px;
  transition: background .17s, color .14s;
  letter-spacing: 0.06em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8DBB7E;
  color: #25313A;
}

/* HERO/BANNERS & FEATURE GRIDS */
.feature-grid, .service-cards, .post-list, .project-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div, .service-cards > div, .post-list > div, .project-carousel > .text-section {
  flex: 1 1 230px;
  min-width: 210px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(37, 49, 58, 0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 22px;
  margin-bottom: 20px;
  transition: box-shadow .18s, border-color .12s;
  border: 2px solid transparent;
}
.feature-grid > div:hover, .service-cards > div:hover, .post-list > div:hover, .project-carousel > .text-section:hover {
  border-color: #8DBB7E;
  box-shadow: 0 4px 20px rgba(141,187,126,.16);
  z-index: 2;
}
.feature-grid img, .service-cards img, .feature-item img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F0E8CC;
  padding: 8px;
  box-shadow: 0 2px 8px 0 rgba(37,49,58,0.07);
}

/* SERVICE LIST (oferta.html) */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 26px;
}
.service-list li {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px 0 rgba(37,49,58,0.06);
  padding: 26px 20px;
  margin-bottom: 20px;
  border-left: 6px solid #8DBB7E;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.service-list strong {
  color: #8DBB7E;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.faq-accordion > div {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 12px 0 rgba(37, 49, 58, 0.07);
  padding: 18px 22px;
  border-left: 4px solid #25313A;
  transition: box-shadow .14s;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 20px rgba(37,49,58,0.15);
}

/* LIST STYLES WITH ICONS (about, oferta, realizacje, kontakt) */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
ul li img, ol li img {
  margin-top: 2px;
  width: 24px;
  min-width: 24px;
  height: 24px;
}

/* BLOCKQUOTE, QUOTES */
blockquote {
  font-style: italic;
  color: #25313A;
  font-size: 1.06rem;
  background: #F0E8CC;
  padding: 18px 22px;
  border-radius: 12px;
  border-left: 4px solid #8DBB7E;
  margin: 14px 0 0 0;
  position: relative;
  transition: background .14s;
}
blockquote span {
  display: inline-block;
  font-style: normal;
  color: #8DBB7E;
  font-weight: 600;
  margin-left: 16px;
}

/* FOOTER */
footer {
  background: #25313A;
  color: #F0E8CC;
  padding: 44px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #F0E8CC;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .04em;
  transition: color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8DBB7E;
}
.footer-contact {
  font-size: .98rem;
  line-height: 1.65;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: -3px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.footer-logo img {
  height: 32px;
  width: auto;
}
.footer-logo span {
  font-size: .93rem;
  color: #8DBB7E;
}

/* BUTTONS & LINKS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* CTA and FINAL CALLS */
.text-section .btn-primary, .text-section a.btn-primary {
  margin: 10px 0 0 0;
  align-self: flex-start;
}

/* UTILITY / STRUCTURE CLASSES */
.mission {
  font-size: 1.08rem;
  color: #8DBB7E;
  font-weight: 700;
  margin-top: 18px;
  letter-spacing: 0.03em;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #25313A;
  color: #F0E8CC;
  padding: 24px 20px 18px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: center;
  z-index: 3000;
  box-shadow: 0 -2px 20px 0 rgba(37,49,58,0.14);
  font-size: 1rem;
  transition: transform .26s cubic-bezier(.81,0,.22,1);
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(120%);
}
.cookie-banner p {
  margin: 0;
  max-width: 540px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: background .15s;
}
.cookie-banner .accept {
  background: #8DBB7E;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #80a96f;
}
.cookie-banner .reject {
  background: #fff;
  color: #25313A;
  border: 1.5px solid #8DBB7E;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #f3f7f3;
  color: #8DBB7E;
}
.cookie-banner .settings {
  background: none;
  border: 1.5px solid #8DBB7E;
  color: #8DBB7E;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #8DBB7E;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(37,49,58,0.62);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .23s;
}
.cookie-modal {
  background: #fff;
  color: #25313A;
  border-radius: 16px;
  padding: 36px 30px 22px 30px;
  min-width: 340px;
  max-width: 92vw;
  box-shadow: 0 6px 42px rgba(37,49,58,0.23);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeIn .3s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal .cookie-switch {
  width: 42px;
  height: 25px;
  border-radius: 14px;
  background: #E0E0E0;
  position: relative;
  transition: background .18s;
  flex-shrink: 0;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 42px;
  height: 25px;
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  cursor: pointer;
}
.cookie-modal .cookie-switch span {
  display: block;
  width: 20px;
  height: 20px;
  background: #8DBB7E;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2.5px;
  transition: left .18s, background .18s;
}
.cookie-modal .cookie-switch input:checked + span {
  left: 20px;
  background: #25313A;
}
.cookie-modal .cookie-category.essential label {
  color: #8DBB7E;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal .close {
  position: absolute;
  right: 15px;
  top: 13px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #8DBB7E;
  cursor: pointer;
  transition: background .13s;
  border-radius: 8px;
  padding: 2px 6px;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  background: rgba(141,187,126,0.08);
}

/* RESPONSIVE DESIGN (MOBILE FIRST) */
@media (max-width: 1100px) {
 .feature-grid > div, .service-cards > div, .post-list > div, .project-carousel > .text-section {
    min-width: 170px;
 }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 800px) {
  .container {
    padding: 0 10px;
  }
  .card-content {
    padding: 26px 10px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  .feature-grid, .service-cards, .post-list, .project-carousel {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .service-cards, .post-list, .project-carousel {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div, .service-cards > div, .post-list > div, .project-carousel > .text-section {
    width: 100%;
    min-width: unset;
    margin-bottom: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 12px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-contact {
    padding-left: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.13rem; }
  .cookie-modal {
    min-width: unset;
    padding: 22px 8px 16px 12px;
  }
  .footer-logo img { height: 22px; }
}

/* GEOMETRIC & STRUCTURED FLAIR */
.section, .card, .feature-item, .testimonial-card, .service-list li, .faq-accordion > div, .project-carousel > .text-section {
  border-radius: 12px 32px 18px 32px;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card, .feature-item, .service-list li, .faq-accordion > div {
  border: 2px solid #F0E8CC;
}
.section {
  background: #fafbfa;
}

/* MICRO-ANIMATIONS & TRANSITIONS */
.btn-primary, .feature-grid > div, .service-cards > div, .post-list > div, .testimonial-card, .faq-accordion > div, .card {
  transition: box-shadow .25s linear, border-color .19s, background .16s;
}
.btn-primary:active {
  transform: translateY(1.5px) scale(0.99);
}
.feature-grid > div:hover, .service-cards > div:hover, .post-list > div:hover, .testimonial-card:hover, .faq-accordion > div:hover {
  box-shadow: 0 6px 20px rgba(141,187,126,0.18);
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 12px;
  background: #F0E8CC;
}
::-webkit-scrollbar-thumb {
  background: #8DBB7E;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #25313A;
}

/* Hide cookie modal and banner by default for JS toggling */
.cookie-modal-overlay { display: none; }
.cookie-modal-overlay.open { display: flex; }

/* UTILITY HELPER CLASSES */
.d-none { display: none!important; }
.d-flex { display: flex!important; }

/* Prevent image overflow in lists */
ul li img, ol li img {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

/* Prevent overlapping: add spacing for all major block elements */
section, .section, .testimonial-card, .feature-item, .card, .content-wrapper, .text-section, .service-list li, .faq-accordion > div {
  margin-bottom: 24px;
}

/* Consistent padding for geometric look */
.card, .feature-item, .service-list li, .testimonial-card, .faq-accordion > div, .content-wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Visual Hierarchy - add accent bar for headings */
h1, h2 {
  position: relative;
}
h1:before, h2:before {
  content: '';
  display: block;
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 28px;
  border-radius: 3px;
  background: #8DBB7E;
  opacity: 0.23;
}
@media (max-width:600px) {
  h1:before, h2:before { left: -6px; width: 6px; height: 16px; }
}

/* FORM ELEMENTS (native support if needed) */
input, select, textarea {
  border: 2px solid #F0E8CC;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fafbfa;
  transition: border-color .16s;
}
input:focus, select:focus, textarea:focus {
  border-color: #8DBB7E;
}
