/* ===================================================
   RESET & BASE TYPOGRAPHY
   =================================================== */
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,
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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #171717;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1A2421;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #497057;
  outline: none;
}
ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
  background: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.16; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.18; }
h3 { font-size: 1.3rem; margin-bottom: 16px; line-height: 1.18; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

strong { font-weight: 700; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #222;
}

.map-placeholder {
  color: #bababa;
  font-style: italic;
  padding: 8px 0 0 0;
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #EBEBEB;
  box-shadow: 0 1px 8px 0 rgba(26,36,33,0.07);
  padding: 0;
  z-index: 90;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 38px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #171717;
  position: relative;
  padding: 3px 0;
  transition: color 0.2s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  color: #497057;
}
.cta-primary {
  background: #1A2421;
  color: #fff;
  border-radius: 8px;
  padding: 12px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 2px 16px 0 rgba(26,36,33,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: none;
  display: inline-block;
  margin-left: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #497057;
  color: #fff;
  box-shadow: 0 3px 20px 0 rgba(73,112,87,0.14);
  outline: none;
}
.cta-secondary {
  background: #fff;
  color: #1A2421;
  border: 2px solid #1A2421;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 11px 26px;
  margin-top: 16px;
  transition: border 0.16s, color 0.16s, background 0.16s;
}
.cta-secondary:hover {
  color: #fff;
  background: #1A2421;
  border-color: #497057;
}

/* Mobile Nav Button */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #1A2421;
  font-size: 2.2rem;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 120;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px #0000001a;
  border: 1px solid #e6e6e6;
  transition: box-shadow 0.16s, border 0.18s;
}
.mobile-menu-toggle:active {
  box-shadow: 0 4px 24px #49705733;
  border: 1px solid #497057;
}
/* Show burger only on mobile */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  nav.main-nav, .cta-primary {
    display: none !important;
  }
  header .container {
    justify-content: flex-start;
  }
}

/* ===================================================
   MOBILE MENU OVERLAY
   =================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,36,33,0.96);
  z-index: 130;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(.44,.13,.48,.87);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 70px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  color: #fff;
  font-size: 2.5rem;
  border: none;
  cursor: pointer;
  z-index: 135;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #497057;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin-top: 30px;
  padding-left: 34px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 0 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  line-height: 1.12;
  transition: color 0.18s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F2F2F2;
  background: #49705716;
  border-radius: 4px;
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ===================================================
   HERO BANNER & SECTION LAYOUT
   =================================================== */
.hero {
  background: linear-gradient(120deg, #fcfcfc 70%, #ededed 100%);
  border-bottom: 1px solid #ececec;
}
.hero .container {
  min-height: 350px;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
  padding: 40px 0 30px 0;
}
.hero p {
  font-size: 1.12rem;
  color: #404040;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 24px;
  max-width: 600px;
}

/* ===================================================
   FEATURE/CARD/GRID LAYOUTS
   =================================================== */
.feature-grid, .service-cards, .blog-list, .case-studies {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-cards {
  flex-wrap: wrap;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(34,34,34,0.06);
  border: 1px solid #e8e8e8;
  padding: 32px 24px 24px 24px;
  margin-bottom: 20px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.21s, border 0.14s, transform 0.15s;
}
.service-card:hover {
  box-shadow: 0 12px 36px 0 rgba(73,112,87,0.10);
  border-color: #497057;
  transform: translateY(-3px) scale(1.012);
}
.price {
  color: #1A2421;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 10px;
}
.feature-list, .features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}
.feature-list li, .features-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
  color: #202020;
}
.feature-list img, .features-list img {
  height: 28px;
  width: 28px;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0.15);
}

@media (min-width: 769px) {
  .feature-grid, .service-cards, .blog-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
  }
  .service-card {
    width: calc((100% - 64px) / 3);
    min-width: 270px;
    flex: 1 1 270px;
    margin-bottom: 0;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 18px 0 rgba(34,34,34,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  transition: box-shadow 0.14s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(26,36,33,0.09);
  transform: translateY(-2px) scale(1.01);
}

.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;
}

@media (max-width: 768px) {
  .feature-grid, .service-cards, .blog-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===================================================
   BLOG CARD & LIST
   =================================================== */
.blog-list {
  margin-top: 16px;
}
.post-teaser {
  background: #f6f6f6;
  border-radius: 10px;
  box-shadow: 0 1px 7px 0 rgba(34,34,34,0.04);
  padding: 30px 22px 21px 22px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  min-height: 200px;
  transition: box-shadow 0.14s, background 0.17s;
}
.post-teaser:hover {
  background: #fff;
  box-shadow: 0 12px 32px 0 rgba(26,36,33,0.10);
}
.post-teaser h3 {
  font-weight: 700;
  color: #1A2421;
  margin-bottom: 8px;
}
.category {
  background: #1A2421;
  color: #fff;
  border-radius: 16px;
  font-size: 0.96rem;
  padding: 4px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  align-self: flex-start;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonial-slider {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F2F2F2;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(73, 112, 87, 0.09);
  font-size: 1.07rem;
  color: #131313;
  margin-bottom: 22px;
  max-width: 800px;
  transition: box-shadow 0.2s, background 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(73,112,87,0.14);
  background: #e8e8e8;
}
.testimonial-card strong {
  color: #1A2421;
  font-size: 1rem;
}
.testimonial-card img {
  height: 22px;
  width: 22px;
  display: inline-block;
  margin: 0 0 -3px 2px;
}

@media (max-width: 768px) {
  .testimonial-slider, .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* ===================================================
   CTA SECTIONS
   =================================================== */
.section.cta, section.cta, .thank-you {
  background: #1A2421;
  color: #fff;
  border-radius: 16px;
  margin: 46px 0 20px 0;
  padding: 40px 20px;
  box-shadow: 0 6px 20px #1A242120;
}
section.cta h2, .thank-you h1 {
  color: #fff;
  font-size: 2.1rem;
}
section.cta p, .thank-you p {
  color: #D7D7D7;
  max-width: 700px;
}
.cta-primary {
  margin-top: 18px;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: #0D1211;
  color: #fff;
  padding: 60px 0 36px 0;
  margin-top: 70px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand img {
  height: 52px;
  filter: grayscale(1) brightness(1.8);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #ECECEC;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: #497057;
}
.footer-contact {
  font-size: 0.98rem;
  color: #E7E7E7;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact strong {
  color: #fff;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  display: inline-block;
  margin: 0 5px -2px 0;
  filter: grayscale(1) brightness(1.2);
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.footer-social a img {
  height: 36px;
  filter: grayscale(1) contrast(0.4) brightness(2.6);
  transition: filter 0.18s;
}
.footer-social a:hover img {
  filter: grayscale(0) brightness(1.2) contrast(1.4);
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 30px;
  }
}

/* ===================================================
   CONTACT PAGE STYLES
   =================================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.06rem;
  color: #222;
}
.contact-info img {
  height: 18px;
  width: 18px;
  display: inline-block;
  margin: 0 8px -4px 0;
  filter: grayscale(1) brightness(0.3);
}
.contact-info a {
  color: #1A2421;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s;
}
.contact-info a:hover {
  color: #497057;
}

/* ===================================================
   MISC UTILS
   =================================================== */
::-webkit-scrollbar {
  width: 10px;
  background: #F2F2F2;
}
::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #497057;
}

/* Blockquote & code highlight (for blog) */
blockquote {
  padding: 14px 22px;
  background: #ebebeb;
  border-left: 4px solid #1A2421;
  font-style: italic;
  color: #191919;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
}
code {
  background: #f2f2f2;
  padding: 1px 6px 2px 7px;
  border-radius: 4px;
  font-size: 1.01em;
}

/* Table Styling */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 8px; border-bottom: 1px solid #dadada; }
th { background: #f5f5f5; }

/* ===================================================
   COOKIE CONSENT BANNER
   =================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 22px 16px 30px 16px;
  box-shadow: 0 -2px 24px #1A2421a0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  transition: transform 0.35s cubic-bezier(.5,1.4,.19,.96), opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-consent-banner p {
  color: #f8f8f8;
  font-size: 1.02rem;
  max-width: 500px;
  margin-right: 28px;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  border: none;
  transition: background 0.17s, color 0.16s, border 0.15s;
}
.cookie-btn.accept {
  background: #497057;
  color: #fff;
  border: 1px solid #497057;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff;
  color: #1A2421;
  border: 1px solid #1A2421;
}
.cookie-btn.reject {
  background: #fff;
  color: #1A2421;
  border: 1px solid #b3b3b3;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d6d6d6;
}
.cookie-btn.settings {
  background: #111;
  color: #fff;
  border: 1px solid #3c3c3c;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #23513c;
  color: #fff;
  border-color: #497057;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
    padding: 15px 10px 18px 10px;
  }
  .cookie-consent-banner p {
    margin-right: 0;
    font-size: 0.99rem;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24, 28, 28, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #1A2421;
  padding: 38px 27px 26px 27px;
  border-radius: 20px;
  box-shadow: 0 8px 48px 0 #1A242155;
  max-width: 420px;
  min-width: 270px;
  width: 95%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal h2 {
  color: #1A2421;
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  appearance: none;
  border: 1.5px solid #1A2421;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #F2F2F2;
  cursor: pointer;
  position: relative;
  margin-right: 7px;
  transition: border 0.14s, background 0.13s;
}
.cookie-modal input[type="checkbox"]:checked {
  background: #497057;
  border: 1.5px solid #497057;
}
.cookie-modal input[type="checkbox"]:checked:after {
  content: '\2713';
  display: block;
  color: #fff;
  font-size: 1.3rem;
  position: absolute;
  left: 2px;
  top: -3px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  color: #1A2421;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 8px 14px 14px;
    min-width: 100px;
    max-width: 98vw;
  }
}

/* ===================================================
   MONOCHROME SOPHISTICATED COMMONS & EFFECTS
   =================================================== */
/* Dramatic contrast and gentle monochrome transitions */
body {
  background: #fff;
  color: #1A2421;
}
section, .section {
  background: #fff;
  box-shadow: 0 2px 16px 0 #1a24211a;
  border-radius: 18px;
}
section .container {
  background: none;
  box-shadow: none;
}

/* Subtle interactive shadow/movement for cards & teasers */
.card, .service-card, .post-teaser, .testimonial-card {
  transition: box-shadow 0.18s, background 0.17s, transform 0.13s;
}
.card:hover, .service-card:hover, .post-teaser:hover {
  box-shadow: 0 10px 30px 0 rgba(26,36,33,0.12);
  background: #fcfcfc;
  transform: translateY(-2px) scale(1.017);
}

/* Subtle section divider for clarity */
.section:not(:last-child), main > section:not(:last-child) {
  margin-bottom: 60px;
}

/* ===================================================
   RESPONSIVE ADJUSTMENTS
   =================================================== */
@media (max-width: 900px) {
  .service-card, .post-teaser {
    min-width: 98vw;
    width: 99%;
  }
}
@media (max-width: 650px) {
  header .container, .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .section, section, .cta {
    padding: 24px 8px;
  }
  footer {
    padding: 40px 0 23px 0;
  }
}

/* Extra: Visual hierarchy for forms & lists */
ul, ol {
  margin: 0 0 14px 0;
  padding-left: 23px;
}
li { margin-bottom: 7px; }

/* Ensures NO overlap - extra margin for section stacking */
section + section, .section + .section {
  margin-top: 20px;
}
@media (max-width: 768px) {
  section + section, .section + .section {
    margin-top: 12px;
  }
}

/* SUBTLE ANIMATION for cta-primary */
.cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.23s cubic-bezier(.53,.01,.33,1.69),
              color 0.13s,
              box-shadow 0.17s,
              transform 0.16s;
}
.cta-primary:active, .cookie-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px #49705755;
}

/* Accessibility focus ring */
*:focus:not(.cookie-modal-close):not(.mobile-menu-close) {
  outline: 2px solid #497057;
  outline-offset: 2px;
}

/* Hide visually but keep accessible (for modals) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===================================================
   END CSS –– Mroczna Przestrzeń, monochrome_sophisticated
   =================================================== */