/* --- CSS Reset & Normalize (Base) --- */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F2F7EB;
  color: #233145;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #233145;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #82C46C;
  outline: none;
}
ul, ol {
  margin-left: 20px;
  margin-bottom:16px;
}
li {
  margin-bottom: 8px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #233145;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height:1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom:12px;
  color: #233145;
  font-family: 'Roboto', Arial, sans-serif;
}
strong, b {
  font-weight: 700;
  color: #233145;
}
blockquote {
  font-style: italic;
  color: #233145;
  border-left: 4px solid #82C46C;
  background: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin: 0 0 8px 0;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width:100%;
  padding:0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width:768px) {
  .section {
    padding: 28px 8px;
    margin-bottom:32px;
  }
}

/* --- Header & Nav --- */
header {
  background: #233145;
  color: #fff;
  width: 100vw;
  box-shadow: 0 2px 20px 0 rgba(26,40,66,0.1);
  z-index: 30;
  position: relative;
}
header .container {
  display: flex;
  flex-wrap:wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  min-height: 72px;
}
header nav {
  display: flex;
  flex-wrap:wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 4px;
  transition: color .18s;
}
header nav a:hover, header nav a:focus {
  color: #82C46C;
}
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  background: #82C46C;
  color: #233145;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(130,196,108,0.16);
  border: none;
  cursor: pointer;
  letter-spacing:0.06em;
  transition: background 0.18s, color 0.18s, transform .12s, box-shadow .18s;
  margin-left:16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #F2F7EB;
  color: #233145;
  box-shadow: 0 6px 24px rgba(130,196,108,0.30);
  transform: translateY(-2px) scale(1.04);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  background: #82C46C;
  color: #233145;
  border: none;
  font-size: 1.85rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s, box-shadow 0.2s;
  z-index:1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F2F7EB;
  color: #82C46C;
  outline: none;
  box-shadow: 0 0 0 2px #82C46C;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 0 24px;
  background: #233145;
  box-shadow: -6px 0 56px 0 rgba(35,49,69,.48);
  position: fixed;
  height: 100vh;
  width: 82vw;
  max-width: 340px;
  top: 0;
  right: 0;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.7,.1,.42,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #82C46C;
  color: #233145;
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  display: flex;
  cursor: pointer;
  margin-bottom: 28px;
  margin-left: auto;
  margin-right: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F2F7EB;
  color: #233145;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 4px;
  border-radius: 7px;
  text-transform: uppercase;
  transition: background .18s, color .18s;
  margin-bottom: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #82C46C;
  color: #233145;
}

/* Hide the mobile menu on desktop, show burger on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:1025px) {
  .mobile-menu {
    display:none!important;
  }
}

/* --- Hero Section Styling --- */
.hero {
  background: linear-gradient(96deg,#F2F7EB 72%,#82C46C 180%);
  padding: 60px 0 64px 0;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 700px;
  background:rgba(255,255,255,0.96);
  padding:36px 32px;
  border-radius: 24px;
  box-shadow: 0 6px 32px rgba(35,49,69,0.12);
  z-index:1;
}
@media (max-width: 768px) {
  .hero {
    padding: 34px 0 35px 0;
  }
  .hero .container {
    gap:0;
  }
  .hero .content-wrapper {
    padding:18px 6px;
    border-radius: 14px;
  }
}

/* --- Feature Grid / Card Containers --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 24px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 200px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 18px 22px 18px;
  box-shadow: 0 2px 18px 0 rgba(35,49,69,0.06);
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 44px 0 rgba(130,196,108,0.22), 0 2px 18px rgba(35,49,69,0.11);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction:column;
    gap:18px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(35,49,69,0.09);
  overflow: hidden;
  padding: 24px 18px;
  transition: box-shadow .18s, transform .16s;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 22px 0 rgba(130,196,108,0.1), 0 0px 11px rgba(35,49,69,.18);
  transform:translateY(-2px);
  z-index:2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction:column;
    gap:14px;
    align-items: flex-start;
  }
}

.text-section {
  margin-bottom: 24px;
}
.text-section ul {
  margin-bottom: 10px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin: 18px 0 24px 0;
}
.partner-logos img {
  height: 56px;
  width: auto;
  padding:10px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 0 7px rgba(35,49,69,.07);
}

/* --- Spacing & Misc Layout Rules --- */
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main > section:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .section, main > section {
    padding:16px 2vw;
    margin-bottom:32px;
  }
}

/* --- Card Design Patterns --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(35,49,69,.080),0 1px 2px 0 rgba(130,196,108,.13);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s, transform .16s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 38px 0 rgba(130,196,108,0.18), 0 4px 8px rgba(35,49,69,.13);
  transform: scale(1.015);
  z-index: 2;
}
.testimonial-card blockquote {
  margin: 0 0 6px 0;
  color: #233145;
  font-family: 'Montserrat', Arial, sans-serif;
  background: none;
  border-left: 4px solid #82C46C;
  border-radius: 0;
}
.testimonial-card p {
  margin: 0;
  color: #233145;
  font-family: 'Roboto', Arial, sans-serif;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Contact Details and Footer --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  font-size: 1rem;
  color: #233145;
}
.contact-details img {
  height:1.4em;
  width:auto;
  margin-right:7px;
  vertical-align: middle;
  filter:brightness(.9);
  margin-bottom: -2px;
}
.map {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  margin-top: 9px;
}
footer {
  background: #233145;
  color: #fff;
  padding: 36px 0 32px 0;
  border-top: 4px solid #82C46C;
  font-size: 1rem;
  margin-top: 34px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 33px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: #F2F7EB;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.97rem;
  padding: 3px 0;
  transition:color.18s;
}
footer nav a:hover,footer nav a:focus{color:#82C46C}
.footer-logo img {
  height:48px;
  width:48px;
  filter: drop-shadow(0 2px 6px #82C46C44);
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* --- Lists --- */
ul,ol{margin-bottom:14px;}
ul li,ol li{margin-bottom:8px;}

/* --- Buttons & Interactive --- */
button,
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  outline: none;
  cursor: pointer;
  background: #82C46C;
  color: #233145;
  border-radius: 30px;
  padding: 12px 22px;
  transition: background 0.18s, color 0.18s, box-shadow.17s, transform.17s;
}
button:active, .btn-primary:active {
  transform: scale(0.96);
}

/* --- Forms (if any in the future) --- */
input, textarea, select{
  border: 2px solid #82C46C;
  border-radius: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 9px 14px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  margin-bottom: 18px;
  width:100%;
  transition:border.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #233145;
}

/* --- Animations & Micro-interactions --- */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.btn-primary, button {
  transition: background .16s, color .16s, transform .14s, box-shadow .14s;
}

/* --- Responsive Sizing / Headings --- */
@media (max-width: 600px) {
  h1{font-size:1.7rem;}
  h2{font-size:1.22rem;}
  h3{font-size:1.08rem;}
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #233145;
  color: #fff;
  z-index: 3002;
  box-shadow: 0 -2px 32px 0 rgba(35,49,69,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 22px 12vw 22px 12vw;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.34s cubic-bezier(.7,.1,.42,1), opacity 0.34s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  color: #fff;
  margin: 0 12px 0 0;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner .cookie-btn {
  background: #82C46C;
  color: #233145;
  border-radius: 20px;
  border: none;
  padding: 10px 22px;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  margin-right:7px;
  margin-bottom: 3px;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(130,196,108,0.11);
  transition: background .16s, color .16s, transform .13s, box-shadow .18s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #F2F7EB;
  color: #233145;
  box-shadow:0 2px 16px rgba(130,196,108,0.22);
  outline:none;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #233145;
  border: 1px solid #82C46C;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #82C46C;
  color:#233145;
}
@media (max-width:700px){
  .cookie-banner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding: 14px 2vw 18px 2vw;
    font-size:0.96rem;
  }
}

/* --- Cookie Modal --- */
.cookie-modal {
  display:none;
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-55%) scale(0.98);
  background:#fff;
  color:#233145;
  z-index:4001;
  width:90vw;
  max-width:440px;
  border-radius:18px;
  box-shadow:0 4px 32px 0 rgba(35,49,69,.23);
  padding:38px 28px 22px 28px;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s, transform .24s;
}
.cookie-modal.open {
  display:block;
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%,-50%) scale(1);
}
.cookie-modal h2{
  font-size:1.18rem;
  margin-bottom:16px;
}
.cookie-modal ul {
  list-style: none;
  margin:0 0 14px 0;
  padding:0;
}
.cookie-modal li {
  margin-bottom:11px;
  display:flex;
  align-items: center;
  gap:11px;
}
.cookie-modal label {
  user-select:none;
  font-size:1rem;
}
.cookie-modal .toggle {
  display:inline-flex;
  align-items:center;
  width:46px;
  height:24px;
  background:#82C46C;
  border-radius:12px;
  position:relative;
  cursor:pointer;
  margin-right:6px;
  border:2px solid #82C46C;
  transition:background .13s, border .13s;
}
.cookie-modal .toggle input {
  display:none;
}
.cookie-modal .toggle .slider {
  display:block;
  background:#fff;
  width:20px;
  height:20px;
  border-radius:50%;
  position:absolute;
  left:2px;
  top:1.5px;
  transition:left .15s cubic-bezier(.65,.02,.48,1);
  box-shadow: 0 1px 6px rgba(130,196,108,.16);
}
.cookie-modal .toggle input:checked + .slider {
  left:24px;
  background:#233145;
}
.cookie-modal .modal-actions {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:12px;
}
.cookie-modal .cookie-btn{
  font-size:1rem;
  border-radius:19px;
  padding:10px 20px;
  background:#82C46C;
  color:#233145;
  border:none;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus{
  background:#F2F7EB;
  color:#233145;
}
.cookie-modal .cookie-btn.close{
  background:#F2F7EB;
  color:#233145;
  border:1px solid #82C46C;
}
.cookie-modal .cookie-btn.close:hover{background:#82C46C; color:#233145;}

/* --- Vibrant/Energetic Electric Color Effects --- */
.hero h1,
.hero h2 {
  color: #233145;
  text-shadow: 1px 2px 18px #82C46C99, 0 1px 0 #fff;
}
.feature-grid > div h3 {
  color: #233145;
  font-weight: 700;
  font-size:1.12rem;
  letter-spacing: 0.03em;
}
.feature-grid > div:hover h3,
.card:hover h3 {
  color: #82C46C;
}
.testimonial-card blockquote {
  border-left: 4px solid #233145;
  background: #F2F7EB;
}
.btn-primary {
  background: linear-gradient(89deg, #82C46C 75%, #F2F7EB 150%);
  box-shadow: 0 1px 12px 0 #82C46C55;
}
.btn-primary:hover {
  background: linear-gradient(89deg,#F2F7EB 55%,#82C46C 180%);
  color: #233145;
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero .content-wrapper,
.feature-grid > div,
.card,
.testimonial-card {
  animation: fadeInUp .6s cubic-bezier(.1,.8,.33,1.15) both;
}

/* --- Utilities --- */
.d-none { display: none !important; }

/* --- Overlap Prevention --- */
main > section, .section, .feature-grid, .card-container, .testimonial-card, .content-wrapper, .partner-logos {
  z-index:1;
  position:relative;
}

/* --- Polskie znaki diakrytyczne patch --- */
html[lang="pl"] body {
  word-break: break-word;
}

/* --- Override for .section > .container > .content-wrapper for proper spacing --- */
.section > .container > .content-wrapper, main > section > .container > .content-wrapper {
  margin-left: auto;
  margin-right: auto;
  padding:0;
}

/* --- Remove absolute for content, reserved for decorative only --- */

/* --- Hide scrollbars on mobile menu --- */
.mobile-menu {
  overflow-y: auto;
}

/* --- Focus visible for accessibility --- */
:focus-visible {
  outline: 2px dashed #82C46C;
  outline-offset: 2px;
}

/* --- Ensure spacing for all cards --- */
.card + .card, .testimonial-card + .testimonial-card,
.feature-grid > div + div {
  margin-top: 20px;
}

/* --- Miscellaneous adjustments --- */
@media (max-width:500px){
  .footer-logo img{height:32px;width:32px;}
}
