/* --------------------- CSS RESET & NORMALIZE --------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F7FA;
  color: #24292f;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.3em;
  margin: 0.7em 0 1.3em 0;
}
ul ul, ol ol, ul ol, ol ul {
  margin: 0.4em 0 0.8em 0.7em;
}
a {
  color: #386150;
  text-decoration: none;
  transition: color 0.16s;
}
a:hover, a:focus { color: #1c3b30; text-decoration: underline; }
button, [type=button], [type=submit] {
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, border-color 0.16s;
}
code, pre { font-family: monospace, monospace; }
table { border-collapse: collapse; }

/* --------------------- BRAND COLORS AND FONTS --------------------- */
:root {
  --primary: #386150;
  --primary-dark: #28473d;
  --secondary: #ADC9A6;
  --secondary-light: #E3EFDF;
  --accent: #E9DBCE;
  --gray: #8395a7;
  --light-gray: #f5f7fa;
  --text-dark: #24292f;
  --text-light: #fff;
  --card-shadow: 0 2px 12px 0 rgba(51,61,75,0.08);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; margin-bottom: 0.7em; }
h2 { font-size: 2rem; margin-bottom: 0.6em; }
h3 { font-size: 1.4rem; margin-bottom: 0.35em; }
h4 { font-size: 1.1rem; margin-bottom: 0.25em; }
p, li, ul, ol { font-size: 1rem; margin-bottom: 1.1em; color: var(--text-dark); }
strong { font-weight: 700; }
.tagline {
  color: var(--gray);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-top: 0.15em;
}

/* --------------------- LAYOUT: CONTAINER & WRAPPER --------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

@media (max-width: 1024px) {
  .container { max-width: 95vw; }
}
@media (max-width: 768px) {
  .container, .section { padding-left: 10px; padding-right: 10px; }
}

/* --------------------------------- HEADER & NAV ---------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 101;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}
.main-nav > a img {
  height: 54px;
  width: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.main-nav ul li a {
  font-weight: 500;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}
.main-nav ul li a:hover, .main-nav ul li a.active {
  color: var(--primary-dark);
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--text-light) !important;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.04rem;
  box-shadow: 0 1px 4px 0 rgba(56,97,80,0.14);
  transition: background 0.18s, box-shadow 0.18s;
  border: none;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  box-shadow: 0 3px 12px 0 rgba(56,97,80,0.18);
  color: #fff;
}
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--primary) !important;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  font-size: 1.01rem;
  box-shadow: 0 1px 4px 0 rgba(173,201,166,0.10);
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #94b28b;
  color: #fff;
  box-shadow: 0 4px 12px 0 rgba(173,201,166,0.18);
}

/* Burger menu button (mobile) */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 2.1rem;
  line-height: 1;
  border: none;
  box-shadow: 0 1px 6px 0 rgba(56,97,80,0.12);
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary-dark);
}

@media (max-width: 1000px) {
  .main-nav ul { gap: 20px; }
}
@media (max-width: 850px) {
  .main-nav ul { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --------------------------------- MOBILE MENU ---------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(44,58,54,0.98);
  z-index: 200;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(.57,-0.01,.43,1.01);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  border-radius: 50%;
  padding: 4px 13px;
  border: none;
  z-index: 222;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  flex-direction: column;
  gap: 24px;
  width: 90vw;
  margin: 90px auto 0 auto;
  align-items: flex-start;
  display: flex;
}
.mobile-nav a {
  font-size: 1.23rem;
  font-family: 'Merriweather', serif;
  color: #fff;
  font-weight: 500;
  padding: 12px 0 12px 12px;
  border-radius: 6px;
  transition: color 0.17s, background 0.15s;
  min-width: 85vw;
  display: flex;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 850px) {
  .main-nav { padding: 14px 10px; }
  .main-nav > a img { height: 44px; }
}

/* --------------------------------- FOOTER ---------------------------------- */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 0 0 1.7em 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 0 20px 0;
}
.footer-nav > div, .footer-nav nav {
  min-width: 180px;
}
.footer-nav > div img {
  height: 42px;
  margin-bottom: 6px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav nav a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.15s;
}
.footer-nav nav a:hover {
  color: var(--accent);
}
.footer-nav .social-links {
  display: flex;
  gap: 14px;
  padding-top: 8px;
}
.footer-nav .social-links img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1) saturate(0.6);
  transition: filter 0.17s;
}
.footer-nav .social-links img:hover {
  filter: brightness(2) saturate(2);
}
.footer-nav .tagline {
  margin-top: 6px;
  color: var(--secondary);
  font-size: 1.03rem;
}
.footer-bottom {
  text-align: center;
  font-size: 0.99rem;
  margin-top: 18px;
  color: var(--accent);
  opacity: 0.85;
}
@media (max-width: 850px) {
  .footer-nav {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 32px 0 10px 0;
  }
}

/* --------------------------------- FLEXBOX COMPONENTS ---------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--card-shadow);
  padding: 28px 20px;
  flex: 1 1 285px;
}

.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) {
  .text-image-section { flex-direction: column; gap: 18px; }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 215px;
  min-width: 215px;
  background: var(--secondary-light);
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(67,91,80,0.07);
  padding: 22px 16px 18px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature-item:hover {
  box-shadow: 0 4px 18px 0 rgba(67,91,80,0.13);
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--card-shadow);
  flex: 1 1 215px;
  min-width: 225px;
  padding: 28px 18px 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.19s;
}
.service-card:hover {
  box-shadow: 0 8px 28px 0 rgba(56,97,80,0.13);
  transform: translateY(-2px) scale(1.02);
}
.service-card h3 {
  font-size: 1.18rem;
  color: var(--primary);
}
.service-card .service-price {
  margin-top: 8px;
  font-size: 1.07rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0 0 0 0;
  padding: 0;
}
.process-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 22px 16px 22px 16px;
  flex: 1 1 203px;
  min-width: 200px;
  margin-bottom: 16px;
  transition: box-shadow 0.18s;
}
.process-steps li img {
  width: 36px;
  height: 36px;
}
.process-steps li strong {
  font-size: 1.11rem;
  color: var(--primary);
  font-family: 'Merriweather', serif;
  letter-spacing: 0.01em;
}
.process-steps li:hover {
  box-shadow: 0 8px 18px 0 rgba(56,97,80,0.14);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(51,61,75,0.09);
  flex: 1 1 300px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.17s;
  border: 1.5px solid var(--secondary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px 0 rgba(56,97,80,0.13);
  transform: scale(1.025);
  border-color: var(--primary);
}
.testimonial-card p {
  color: #133f2c;
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.8em;
}
.testimonial-author {
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  margin-top: 0.1em;
  font-weight: 700;
}

.case-study {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px 0 rgba(56,97,80,0.07);
  margin-bottom: 24px;
  padding: 26px 18px 20px 18px;
  border-left: 6px solid var(--primary);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 1.1em 0;
  list-style: none;
}
.article-list li {
  background: #fff;
  padding: 20px 18px 18px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(90,110,120,0.07);
  margin-bottom: 6px;
  transition: box-shadow 0.16s;
}
.article-list li:hover {
  box-shadow: 0 5px 17px 0 rgba(56,97,80,0.15);
}
.article-list h3 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.13rem;
}
.article-list span {
  color: var(--gray);
  font-size: 0.99rem;
}

.topic-categories h4 { color: var(--primary); font-size: 1.08rem; margin-bottom: 0.8em; }
.topic-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
}
.topic-categories li {
  background: var(--secondary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.99rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(56,97,80,0.07);
  padding: 18px 16px;
  margin-bottom: 2px;
}
.faq-item h3 {
  margin-bottom: 0.5em;
  color: var(--primary);
  font-size: 1.08rem;
  font-family: "Merriweather", serif;
}
.faq-item p {
  color: var(--text-dark);
}

/* Thank You/Dziękujemy Page */
.text-section {
  align-items: flex-start;
}

/* --------------------------------- SPACING ---------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 650px) {
  section { padding: 24px 6px; margin-bottom: 36px; }
  .section { padding: 24px 6px; margin-bottom: 36px; border-radius: 7px; }
}

/* --------------------------------- MISC ---------------------------------- */
::-webkit-input-placeholder { color: #bfcad8; }
:-moz-placeholder { color: #bfcad8; }
::-moz-placeholder { color: #bfcad8; }
:-ms-input-placeholder { color: #bfcad8; }

/* --------------------------------- COOKIE BANNER & MODAL ---------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  padding: 26px 14px 18px 14px;
  box-shadow: 0 -2px 14px 0 rgba(51,61,75,0.13);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(.57,-0.01,.43,1.01), opacity 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner p {
  color: var(--primary);
  text-align: center;
  margin-bottom: 3px;
  font-size: 1.07rem;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.17s, color 0.15s;
}
.cookie-btn.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accent {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}
.cookie-btn.secondary:focus, .cookie-btn.secondary:hover {
  background: #94b28b;
  color: #fff;
}
.cookie-btn.accent:focus, .cookie-btn.accent:hover {
  background: #dfc5a1;
  color: var(--primary);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 58, 54, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 36px 0 rgba(56,97,80,0.12);
  padding: 38px 26px 28px 26px;
  width: 96vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-modal-appear 0.35s cubic-bezier(.57,-0.01,.43,1.01);
}
@keyframes cookie-modal-appear {
  0% { transform: scale(0.8) translateY(50px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
  text-align: left;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-category-label {
  font-size: 1.03rem;
  color: var(--primary);
  flex: 1;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 4px 0 rgba(56,97,80,0.08);
  appearance: none;
  background: #E9DBCE;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.cookie-toggle:checked {
  background: var(--primary);
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px; top: 2.5px;
  transition: transform 0.19s;
  box-shadow: 0 1px 4px 0 rgba(56,97,80,0.12);
}
.cookie-toggle:checked::before {
  transform: translateX(18px);
}

.cookie-modal .cookie-btn {
  margin-top: 12px;
  width: 100%;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2em;
  background: none;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  padding: 2px 10px 2px 10px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary-light);
}

.cookie-category-essential .cookie-toggle {
  pointer-events: none;
  opacity: 0.48;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 3vw 18px 3vw;
    gap: 14px;
  }
}

/* ----------------------- RESPONSIVE: FLEX CONTAINERS  ---------------------- */
@media (max-width: 1020px) {
  .feature-grid, .service-list, .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 650px) {
  .service-card, .feature-item, .testimonial-card, .case-study, .card {
    min-width: 0;
    width: 100%;
    padding: 18px 10px;
  }
  .footer-nav > div img { height: 32px; }
}

/* Micro animations and transitions for cards */
.card, .feature-item, .service-card, .testimonial-card, .case-study, .article-list li, .faq-item {
  transition: box-shadow 0.16s, transform 0.15s, border-color 0.12s;
}
.card:hover, .feature-item:hover, .service-card:hover, .testimonial-card:hover, .case-study:hover, .article-list li:hover {
  box-shadow: 0 8px 24px 0 rgba(56,97,80,0.19);
  transform: translateY(-2px) scale(1.017);
  border-color: var(--primary);
}

/* --------------------------------- UTILITIES ---------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .35rem !important; }
.mt-2 { margin-top: .70rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .35rem !important; }
.mb-2 { margin-bottom: .70rem !important; }

/* --------------------------------- SCROLLBAR ---------------------------------- */
body::-webkit-scrollbar { width: 10px; background: #E9DBCE; }
body::-webkit-scrollbar-thumb { background: #adc9a6; border-radius: 6px; }

/* --------------------------------- FOCUS STATES ---------------------------------- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

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