/* === CSS RESET & BASE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9FAF6;
  color: #1A2730;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #385C3B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2c472e;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.5em;
}
li+li {
  margin-top: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #25363B;
  margin-bottom: 0.6em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.125rem;
}
h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 1.25em;
  font-size: 1.0625rem;
}
strong {
  font-weight: 700;
}
blockquote {
  border-left: 4px solid #B7C8A4;
  padding-left: 1em;
  background: #F3F7F2;
  color: #385C3B;
  font-style: italic;
  margin: 2em 0;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #2B3E46;
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 10px rgba(36,54,59,0.03);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 32px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #F9FAF6;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.15s;
}
header nav a.cta-nav {
  color: #B7C8A4;
  font-weight: 800;
  border-bottom: 2px solid #B7C8A4;
}
header nav a:hover, header nav a:focus {
  color: #B7C8A4;
  border-bottom: 2px solid #B7C8A4;
}
header img[alt="Mild Build"] {
  height: 44px;
  width: auto;
  margin-right: 32px;
}
.button-primary {
  display: inline-block;
  background: #385C3B;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 12px 32px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 10px rgba(56, 92, 59, 0.08);
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.21s, color 0.21s, transform 0.13s;
  margin-left: 18px;
  text-align: center;
}
.button-primary:hover, .button-primary:focus {
  background: #25363B;
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 92, 59, 0.11);
  transform: translateY(-2px) scale(1.026);
  outline: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #B7C8A4;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  z-index: 104;
  transition: color 0.22s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #fff;
}

@media (max-width: 1020px) {
  header nav {
    gap: 18px;
  }
  .button-primary {
    padding: 11px 20px;
    font-size: 1rem;
    margin-left: 8px;
  }
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #2B3E46;
  padding: 0 0 0 0;
  z-index: 999;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.6,0,.45,1.1), opacity 0.27s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #B7C8A4;
  font-size: 2rem;
  margin: 20px 18px 0 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 40px;
  gap: 14px;
  align-items: center;
}
.mobile-nav a {
  color: #F9FAF6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B7C8A4;
  color: #25363B;
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === HERO, SECTIONS, FLEX STRUCTURES === */
main {
  min-height: 56vh;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(30,40,50,.04);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero {
  padding-top: 32px;
  padding-bottom: 32px;
  background: #B7C8A4;
  color: #25363B;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 2px 24px rgba(72, 92, 66, 0.04);
}
.hero .content-wrapper {
  gap: 30px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.3rem;
  color: #25363B;
}
.hero p {
  font-size: 1.18rem;
  color: #2B3E46;
  margin-bottom: 1.4em;
}
.hero .button-primary {
  margin-left: 0;
  margin-top: 0.4em;
}
@media (min-width: 700px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero {
    padding-top: 45px;
    padding-bottom: 48px;
  }
}

.section:not(.hero):not(.cta-section) {
  background: #fff;
  box-shadow: 0 1px 10px rgba(30,40,50,.04);
}

.cta-section {
  margin-bottom: 0;
  background: #385C3B;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(46,78,66,0.12);
  padding: 44px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section h2 {
  color: #fff;
}
.cta-section p {
  color: #F9FAF6;
}
.cta-section .button-primary {
  background: #B7C8A4;
  color: #25363B;
  font-weight: bold;
  margin-top: 12px;
}
.cta-section .button-primary:hover,
.cta-section .button-primary:focus {
  background: #fff;
  color: #385C3B;
  box-shadow: 0 6px 20px rgba(56, 92, 59, 0.16);
}


/* === FLEX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(70,100,80,0.03);
  padding: 24px;
  flex: 1 1 320px;
  min-width: 230px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(56,92,59,0.13);
  transform: translateY(-3px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 200px;
}
/* Feature grid (used for index, produkty, marki, porady) */
.feature-grid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 18px;
}
.feature-grid > div {
  background: #F3F7F2;
  padding: 24px 20px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(43,94,88,0.05);
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 23px rgba(56, 92, 59, 0.12);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img {
  margin-bottom: 18px;
  width: 48px;
  height: 48px;
}
.feature-grid h3, .feature-grid h4 {
  margin-bottom: 6px;
  color: #385C3B;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-grid > div { min-width: 170px; padding: 18px 12px; }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #EBF0ED;
  border-radius: 12px;
  box-shadow: 0 1.5px 12px rgba(43,92,90,0.07);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 700px;
  flex: 1 1 360px;
  flex-wrap: wrap;
}
.testimonial-card p {
  color: #24363B;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0;
  margin-right: 10px;
}
.testimonial-meta {
  font-size: 1rem;
  color: #385C3B;
  display: flex;
  align-items: center;
  gap: 3px;
}
.testimonial-meta img {
  margin-left: 2px;
  width: 22px;
  height: 22px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === BLOG === */
.blog-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 22px;
}
.blog-post-list li {
  background: #F3F7F2;
  padding: 22px 20px;
  border-radius: 10px;
  box-shadow: 0 1.5px 8px rgba(43,78,66,0.04);
  transition: box-shadow 0.14s, transform 0.13s;
}
.blog-post-list li:hover, .blog-post-list li:focus-within {
  box-shadow: 0 4px 18px rgba(46,78,66,.09);
  transform: translateY(-1.5px) scale(1.005);
}
.blog-post-list h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}
.blog-post-list span {
  color: #385C3B;
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.blog-post-list p {
  font-size: 1.05rem;
  color: #25363B;
}
.categories-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.03rem;
  margin-bottom: 14px;
}
.categories-filter strong {
  color: #385C3B;
}
.categories-filter a {
  color: #385C3B;
  font-weight: 600;
  padding: 0 2px;
  border-bottom: 1.5px solid transparent;
  transition: border 0.16s, color 0.13s;
}
.categories-filter a:hover {
  border-bottom: 1.5px solid #385C3B;
  color: #1A2730;
}
.featured-post {
  background: #B7C8A4;
  color: #25363B;
  padding: 18px 15px;
  border-radius: 10px;
  margin-top: 8px;
  box-shadow: 0 1.5px 6px rgba(56,92,59,0.08);
}
.featured-post h4 {
  color: #25363B;
  margin-bottom: 6px;
}

/* === TEAM BIOS === */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-bios > div {
  background: #F3F7F2;
  padding: 18px 14px;
  border-radius: 10px;
  box-shadow: 0 1.5px 8px rgba(43,78,66,0.04);
  flex: 1 1 240px;
  min-width: 160px;
}

/* === FOOTER === */
footer {
  background: #2B3E46;
  color: #fff;
  padding: 38px 0 12px 0;
  width: 100%;
}
footer .container {
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}
footer nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
footer nav a {
  color: #B7C8A4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #F9FAF6;
}
footer .contact-info {
  list-style: none;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 8px 0;
  padding: 0;
}
footer .contact-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
footer .contact-info li a {
  color: #B7C8A4;
  text-decoration: underline;
  transition: color 0.14s;
}
footer .contact-info li a:hover {
  color: #fff;
}
footer .contact-info img {
  width: 24px;
  height: 24px;
}
footer .social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
footer .social-links a img {
  width: 32px;
  height: 32px;
  filter: grayscale(100%) brightness(1.7);
  transition: filter 0.19s;
}
footer .social-links a:hover img {
  filter: grayscale(0%) brightness(1.01) drop-shadow(0 2px 8px #B7C8A4);
}
.copyright {
  color: #96a09d;
  font-size: 0.96rem;
  margin-top: 16px;
}
@media (max-width: 1020px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
  }
  .copyright { margin-top: 10px; }
}

/* === FORM ELEMENTS (future-proof) === */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #B7C8A4;
  padding: 10px 12px;
  background: #fff;
  color: #25363B;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.16s, box-shadow 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: #385C3B;
  box-shadow: 0 1.5px 8px rgba(56,92,59,0.12);
  outline: none;
}
button[type=submit]:not(.button-primary) {
  background: #385C3B;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.18s box-shadow 0.17s;
}
button[type=submit]:hover { background: #25363B; }

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1600;
  background: #385C3B;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  box-shadow: 0 -2px 24px rgba(56,92,59,0.18);
  font-size: 1rem;
  animation: slideUp 0.5s cubic-bezier(.605,.055,.44,1.16);
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 220px;
  color: #fff;
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, box-shadow 0.15s;
}
.cookie-btn.accept {
  background: #B7C8A4;
  color: #25363B;
  margin-right: 4px;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff;
  color: #385C3B;
  box-shadow: 0 4px 12px #96a09d33;
}
.cookie-btn.reject {
  background: #fff;
  color: #385C3B;
  border: 1.5px solid #B7C8A4;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #B7C8A4;
  color: #25363B;
  box-shadow: 0 6px 22px #B7C8A422;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  padding: 8px 18px;
}
.cookie-btn.settings:hover { color: #B7C8A4; }

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1650;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(56,92,59,0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeIn 0.24s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(56,92,59,0.22);
  max-width: 410px;
  width: 92vw;
  padding: 28px 22px 24px 22px;
  color: #24363B;
  position: relative;
  animation: modalPop 0.22s cubic-bezier(.78,1.93,.79,1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@keyframes modalPop {
  from { transform: scale(0.87); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: #385C3B;
  margin-bottom: 6px;
  font-size: 1.21rem;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  color: #25363B;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  accent-color: #385C3B;
  cursor: pointer;
}
.cookie-modal .cookie-toggle input[disabled] {
  accent-color: #B7C8A4;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.42rem;
  color: #2B3E46;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.13s;
}
.cookie-modal .close-cookie-modal:hover {
  color: #385C3B;
}

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 16px;
    font-size: 0.97rem;
  }
  .cookie-banner-buttons {
    gap: 7px;
  }
}

/* === RESPONSIVE LAYOUTS === */
@media (max-width: 1020px) {
  .container { max-width: 96vw; }
  .section { padding: 30px 8px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.48rem; }
  h3 { font-size: 1.18rem; }
  .content-grid { flex-direction: column; gap: 15px; }
  .card-container { gap: 15px; }
  .section { padding: 22px 3vw; margin-bottom: 38px; }
  .cta-section { padding: 28px 3vw; border-radius: 12px; }
}
@media (max-width: 480px) {
  .section { padding: 14px 2vw; margin-bottom: 30px;   }
  .hero { padding: 20px 2vw; }
  .cta-section { padding: 18px 2vw; }
  h1 { font-size: 1.31rem; }
}

/* === UTILITIES & TRANSITIONS === */
.fade-in {
  animation: fadeIn 0.41s;
}
.fade-out {
  animation: fadeOut 0.28s forwards;
}
@keyframes fadeOut {
  to { opacity: 0; }
}
.shadow-sm { box-shadow: 0 1px 10px rgba(30,40,50,.04); }
.shadow-lg { box-shadow: 0 6px 32px rgba(56, 92, 59, 0.15); }
.rounded-lg { border-radius: 14px; }

/* === OVERRIDES FOR MISC PAGE ELEMENTS === */
ul strong, ol strong { color: #25363B; }
main ul, main ol {
  margin-bottom: 1.25em;
  color: #24363B;
}

/* === FOCUS STATES === */
a:focus, button:focus, input:focus, .button-primary:focus {
  outline: 2.5px solid #B7C8A4;
  outline-offset: 1.5px;
}

/* === ACCESSIBILITY === */
[tabindex="0"]:focus { outline: 3px solid #B7C8A4; }

/* === Z-INDEX LAYERS === */
header { z-index: 101; }
.mobile-menu { z-index: 999; }
.cookie-banner { z-index: 1600; }
.cookie-modal-backdrop { z-index: 1650; }

/* === END === */