/* ===================== 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  min-height: 100%;
  background: #F6F7F9;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #2C302A;
  background: #F6F7F9;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================== FONT-FACE - fallback ========================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ===================== COLORS ========================= */
:root {
  --color-primary: #24416D;
  --color-secondary: #8EC3B0;
  --color-accent: #F6F7F9;
  --color-dark-green: #43634e;
  --color-earth-brown: #bf9c6a;
  --color-earth-tan: #ECE6D7;
  --color-off-white: #F8F5F1;
  --color-green-accent: #A5C49F;
  --color-grey-text: #444E41;
  --color-shadow: rgba(67, 99, 78, 0.07);
  --color-btn-hover: #43634e;
  --color-card-border: #DBE4D4;
  --border-radius: 20px;
  --shadow-lg: 0 8px 32px rgba(67, 99, 78, 0.08);
}

/* ===================== TYPOGRAPHY ========================= */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-dark-green);
  margin-bottom: 24px;
  line-height: 1.12;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark-green);
  margin-bottom: 16px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark-green);
  margin-bottom: 8px;
}
p, ul, ol, blockquote, cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--color-grey-text);
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: var(--color-dark-green);
  border-left: 4px solid var(--color-secondary);
  background: var(--color-off-white);
  padding: 12px 22px;
  border-radius: var(--border-radius);
  margin-bottom: 8px;
}
cite {
  display: block;
  font-size: 15px;
  font-style: normal;
  color: var(--color-primary);
  font-weight: 500;
  margin-top: 2px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
a {
  color: var(--color-dark-green);
  text-decoration: underline;
  transition: color .18s cubic-bezier(.55,0,.1,1);
}
a:hover, a:focus {
  color: var(--color-secondary);
}

/* ===================== LAYOUT WRAPPERS & CONTAINERS ========================= */
.container {
  width: 100%;
  max-width: 1150px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  max-width: 700px;
}

/* ===================== HEADER & NAVIGATION ========================= */
header {
  background: var(--color-off-white);
  box-shadow: 0 2px 12px var(--color-shadow);
}
.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 0 18px 0;
  position: relative;
  z-index: 12;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--color-dark-green);
  padding: 7px 14px;
  border-radius: 14px;
  text-decoration: none;
  transition: background .17s, color .18s;
  font-size: 16px;
}
.main-nav > a:hover,
.main-nav > a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.main-nav img {
  height: 42px;
  margin-right: 16px;
}
.cta-primary {
  background: var(--color-dark-green);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  padding: 11px 32px;
  border-radius: 40px;
  font-size: 18px;
  box-shadow: 0 3px 14px var(--color-shadow);
  margin-left: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .16s, box-shadow .16s, color .16s;
  outline: none;
  letter-spacing: .4px;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ===================== MOBILE BURGER & MOBILE NAV ========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 28px;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  margin-left: 16px;
  z-index: 50;
  cursor: pointer;
  transition: background .14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-dark-green);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 350px;
  height: 100%;
  background: var(--color-off-white);
  box-shadow: -8px 0 32px rgba(36,65,109,0.19);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.8,0,.2,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--color-primary);
  font-size: 30px;
  border: none;
  margin: 0 24px 8px 0;
  cursor: pointer;
  transition: color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-dark-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 32px 32px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  color: var(--color-dark-green);
  text-decoration: none;
  padding: 12px 0 12px 4px;
  border-radius: 10px;
  margin-bottom: 2px;
  transition: background .17s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================== HERO & SECTION STYLES ========================= */
.hero {
  background: var(--color-earth-tan);
  background-image:
    radial-gradient(circle at 78% 21%, rgba(165,196,159,0.18) 0, transparent 60%),
    radial-gradient(ellipse at 12% 93%, rgba(187,171,140,0.12) 0, transparent 70%);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-bottom: 60px;
  padding: 40px 0 44px 0;
  box-shadow: 0 2px 28px var(--color-shadow);
  min-height: 200px;
}
.hero .text-section {
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--border-radius);
}
.cta-section {
  margin-bottom: 0;
  padding: 45px 0 40px 0;
  background: var(--color-green-accent);
  background-image: radial-gradient(ellipse at 90% 10%, rgba(36,65,109,0.04) 2%, transparent 60%);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ===================== FLEXBOX LAYOUTS ========================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.feature-grid > li, .feature-grid > div {
  background: var(--color-off-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px var(--color-shadow);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  padding: 24px 22px 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--color-card-border);
  transition: box-shadow .17s;
  position: relative;
}
.feature-grid > li:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 28px var(--color-shadow);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-off-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px var(--color-shadow);
  border: 1px solid var(--color-card-border);
  padding: 22px 20px 22px 20px;
  min-width: 220px;
  transition: box-shadow .16s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
}
.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 {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  border-left: 8px solid var(--color-green-accent);
  max-width: 630px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 18px 0 6px 0;
}
.faq > div {
  background: var(--color-off-white);
  padding: 20px 22px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-secondary);
  box-shadow: 0 2px 12px var(--color-shadow);
}

/* ===================== BUTTONS ========================= */
button, .button, input[type=button], input[type=submit], input[type=reset] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--color-dark-green);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 11px 34px;
  font-size: 17px;
  cursor: pointer;
  transition: background .19s, box-shadow .19s, color .13s;
  box-shadow: 0 4px 16px var(--color-shadow);
  outline: none;
  margin-right: 10px;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 8px 24px var(--color-shadow);
}

/* Various Button Sizes */
.button-small {
  padding: 7px 20px;
  font-size: 15px;
}
.button-secondary {
  background: var(--color-secondary);
  color: #fff;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-dark-green);
  color: #fff;
}

/* ===================== TABLES, FORMS, IMAGES ========================= */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 26px;
}
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-card-border);
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
input, textarea, select {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 13px;
  border: 1px solid #D0D8C3;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  transition: border .156s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-dark-green);
}
label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

/* ===================== FOOTER ========================= */
footer {
  background: var(--color-earth-tan);
  margin-top: 52px;
  padding: 36px 0 24px 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  border-top: 1px solid #e6dfc4;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color .16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer img {
  height: 48px;
  margin-bottom: 8px;
}
.company-details {
  font-size: 15px;
  color: var(--color-grey-text);
  line-height: 1.57;
}
.company-details img {
  height: 22px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ===================== COOKIE CONSENT BANNER & MODAL ========================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: var(--color-earth-tan);
  border: 1.5px solid var(--color-card-border);
  box-shadow: 0 6px 28px rgba(36,65,109,0.07);
  border-radius: var(--border-radius);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 28px 20px 28px;
  max-width: 440px;
  font-size: 15px;
  animation: fadeInUp .42s .08s both cubic-bezier(.37,1.12,.61,1.06);
}
@keyframes fadeInUp {
  0% {opacity:0; transform: translateY(50px);}
  100% {opacity:1; transform: translateY(0);}
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-banner-buttons button {
  min-width: 110px;
  font-size: 15px;
  padding: 8px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background .16s;
}
.cookie-banner .accept {
  background: var(--color-dark-green);
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-dark-green);
  border: 1.5px solid var(--color-dark-green);
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-secondary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-green-accent);
  color: var(--color-dark-green);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-dark-green);
}
.cookie-banner strong {
  color: var(--color-primary);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(68, 78, 65, 0.28);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .32s);
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% {opacity:1;}
}
.cookie-modal {
  background: var(--color-off-white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(36,65,109,.13);
  max-width: 375px;
  width: 92vw;
  padding: 42px 28px 28px 28px;
  position: relative;
  animation: fadeInUp .29s;
}
.cookie-modal h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--color-primary);
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.cookie-modal .category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.cookie-modal .category label {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-grey-text);
}
.cookie-modal .category input[type=checkbox] {
  accent-color: var(--color-dark-green);
  width: 22px;
  height: 22px;
  margin-right: 0;
}
.cookie-modal .category.essential label:after {
  content: "(wymagane)";
  color: var(--color-secondary);
  font-weight: 400;
  margin-left: 6px;
  font-size: 13px;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  color: var(--color-primary);
  font-size: 28px;
  border: none;
  cursor: pointer;
  border-radius: 0;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-dark-green);
}

/* ===================== LIST & CARD SPACING, CARD LAYOUTS ========================= */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ===================== RESPONSIVE DESIGN ========================= */
@media (max-width: 991px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .main-nav {
    display: none;
  }
  .hero,
  .cta-section,
  .section {
    padding: 30px 2vw;
    margin-bottom: 40px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1,.h1 {font-size: 26px;}
  h2,.h2 {font-size: 20px;}
  h3,.h3 {font-size: 17px;}
  .container {
    padding: 0 7px;
    max-width: 100vw;
  }
  .section,
  .cta-section {
    padding: 26px 0px;
    margin-bottom: 30px;
  }
  .content-wrapper,
  footer .content-wrapper {
    gap: 14px;
  }
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
    gap: 10px;
    max-width: 98vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: 98vw;
    padding: 20px 8px 16px 12px;
  }
  .cookie-modal {
    padding: 28px 8px 12px 8px;
    min-width: 0;
  }
}

/* ===================== ANIMATIONS & MICRO-INTERACTIONS ========================= */
.cta-primary:active, button:active,
.button:active {
  transform: scale(.98);
}
.feature-grid > li, .feature-grid > div, .card {
  transition: box-shadow .18s, transform .15s;
}
.feature-grid > li:hover, .feature-grid > div:hover, .card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 32px var(--color-shadow);
}

/* ===================== SCROLLBARS (SUBTLE) ========================= */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-earth-tan);
}
::-webkit-scrollbar-thumb {
  background: var(--color-green-accent);
  border-radius: 8px;
}

/* ===================== CUSTOM ORGANIC SHAPES (ACCENTS) ========================= */
.hero:after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 170px;
  height: 94px;
  right: -44px;
  top: 16px;
  background: rgba(142,195,176,.12);
  border-radius: 130px 420px 210px 90px/110px 180px 110px 120px;
  transform: rotate(20deg);
  pointer-events: none;
  display: none;
}
@media (min-width: 992px) {
  .hero { position: relative; }
  .hero:after { display: block; }
}

/* ===================== PRINT READY ========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay {display:none !important;}
  main {padding-top:0;}
  .container {max-width: 100vw;}
}

/* ===================== UTILITY ========================= */
.hide { display: none !important; }

/* ===================== END ========================= */
