/* 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 { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Lato', Arial, sans-serif;
  background: #F9F9F9;
  color: #205539;
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: #205539; text-decoration: none; transition: color 0.21s; }
a:hover, a:focus { color: #FFC300; }
ul, ol { list-style: none; }

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Lato:400,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #205539;
}
h1 { font-size: 2.4rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p, li, dl, dd { font-family: 'Lato', Arial, sans-serif; font-size: 1rem; }
strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* GLOBAL SPACING & SECTIONS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 5px 28px 0 rgba(44, 106, 79, 0.07), 0 1.5px 4px 0 rgba(255,195,0,0.06);
  position: relative;
  transition: box-shadow 0.25s;
}
.section:hover {
  box-shadow: 0 10px 44px 0 rgba(44,106,79,0.15), 0 3px 10px 0 rgba(255,195,0,0.10);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 13px 0 rgba(44,106,79,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(44,106,79,0.12);
  transform: translateY(-2px) scale(1.03);
}

.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;
  background: #FFF9EA;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px 0 rgba(32,85,57,0.07);
  flex: 1 1 320px;
}
.testimonial-card p {
  color: #205539;
  font-size: 1.1rem;
  flex: 1;
  margin-right: 8px;
}
.testimonial-card strong {
  min-width: 120px;
  color: #205539;
  font-size: 1em;
  font-weight: 700;
}
.testimonial-card div {
  display: flex;
  align-items: center;
  gap: 2px;
}

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

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 3px 24px 0 rgba(32,85,57,0.10);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 20px;
  gap: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: #205539;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
header nav a:hover, header nav a:focus {
  background: #FFC300;
  color: #205539;
}
.cta-button {
  display: inline-block;
  background: #FFC300;
  color: #205539;
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.08rem;
  padding: 11px 32px;
  margin-left: 14px;
  box-shadow: 0 0.5px 8px 0 rgba(32,85,57,0.08);
  cursor: pointer;
  transition: background 0.20s, color 0.22s, box-shadow 0.21s, transform 0.21s;
  position: relative;
  outline: none;
}
.cta-button:active {
  transform: scale(0.97);
}
.cta-button:hover, .cta-button:focus {
  background: #205539;
  color: #FFF9EA;
  box-shadow: 0 3px 18px 0 rgba(255,195,0,0.12);
}

/* HAMBURGER MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #fff;
  border: 2px solid #FFC300;
  color: #205539;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: border 0.18s, background 0.2s;
  margin-left: 16px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFF9EA;
  border-color: #205539;
  outline: none;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(255,249,234,0.97);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.61,0.01,0.56,1.0);
  box-shadow: 0 0 80px 0 rgba(44,106,79,0.10);
  padding: 36px 20px 30px 20px;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.25rem;
  background: #FFC300;
  color: #205539;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #205539;
  color: #FFC300;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #205539;
  padding: 15px 0;
  border-bottom: 1px solid #EEE8C2;
  border-radius: 0;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFC300;
  color: #205539;
}

/* LAYOUT FLEX CONTAINERS (MANDATORY CLASSES) */
.content-grid, .card-container, .features, .card-grid, .section, .text-image-section, .testimonial-card, .feature-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.text-image-section, .testimonial-card {
  align-items: center;
}
.feature-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SPACING, CARDS, & VISUALS */
ul > li img, ul > li > img {
  width: 32px;
  height: 32px;
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
  background: #FFC30011;
  border-radius: 8px;
  box-shadow: 0 1.5px 5px 0 rgba(44,106,79,0.04);
}
ul > li {
  margin-bottom: 20px;
  padding-left: 4px;
}

/* ACCORDION & FAQ styles (for FAQ section) */
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.17rem;
  color: #205539;
  margin-top: 22px;
  margin-bottom: 7px;
}
dd {
  font-size: 1rem;
  color: #2D6A4F;
  margin-bottom: 10px;
  margin-left: 0;
}

/* BUTTONS, BADGES, TAGS */
button, .cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  cursor: pointer;
  outline: none;
  border: none;
}
button:focus-visible {
  outline: #FFC300 3px solid;
}

/* FOOTER */
footer {
  background: #205539;
  color: #FFC300;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1em;
  padding: 44px 0 30px 0;
  margin-top: 32px;
}
footer a {
  color: #FFF9EA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
footer a:hover, footer a:focus {
  color: #205539;
  background: #FFC300;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #FFC300;
  font-size: 1.35rem;
  margin-bottom: 26px;
}
.footer-contact {
  margin-top: 20px;
  line-height: 1.7;
  color: #FFF9EA;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.97em;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #FFF9EA;
  color: #205539;
  box-shadow: 0 0 16px 0 rgba(44,106,79,0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 20px 20px 20px;
  align-items: center;
  animation: cookieBannerIn 0.6s cubic-bezier(.7,.3,.21,1.04);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}
.cookie-banner button {
  padding: 8px 22px;
  border-radius: 19px;
  font-size: 1rem;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  transition: background 0.18s, color 0.16s, box-shadow 0.15s;
  background: #FFC300;
  color: #205539;
}
.cookie-banner .cookie-accept {
  background: #205539;
  color: #FFC300;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #26B25F;
}
.cookie-banner .cookie-reject {
  background: #FFF;
  color: #2D6A4F;
  border: 2px solid #FFC300;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #FFC30022;
}
.cookie-banner .cookie-settings {
  background: #FFC300;
  color: #205539;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FFF9EA;
  color: #205539;
}

/* COOKIE MODAL */
.cookie-modal-bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,85,57,0.35);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.38s cubic-bezier(0.6,0,0.58,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 0 36px 0 rgba(44,106,79,0.13);
  padding: 38px 24px 12px 24px;
  min-width: 275px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal h2 {
  color: #205539;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 900;
  line-height: 1.1;
}
.cookie-modal label {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.06rem;
  margin-right: 10px;
  cursor: pointer;
}
.cookie-modal .toggle {
  accent-color: #FFC300;
  margin-right: 8px;
  transform: scale(1.15);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 14px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #FFC300;
  color: #205539;
  border-radius: 12px;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #FFF9EA;
}

/* FUN MICRO-INTERACTIONS (for playful/dynamic feel) */
.cta-button, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal .close-modal {
  transition: transform .12s cubic-bezier(0.42,0.48,0.51,1.45);
}
.cta-button:active, .mobile-menu-toggle:active, .mobile-menu-close:active, .cookie-banner button:active, .cookie-modal .close-modal:active {
  transform: scale(0.94) rotate(-2deg);
}

/* ENERGETIC HIGHLIGHTS - fun colored shapes */
.section:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  top: -40px;
  left: -38px;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: #FFC30022;
  pointer-events: none;
  animation: playful1 4s infinite alternate cubic-bezier(.37,.91,.72,.97);
}
@keyframes playful1 { 
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(12deg) scale(1.14); }
}
.section:nth-child(even):after {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  bottom: -26px;
  right: -34px;
  width: 55px;
  height: 55px;
  background: #FFC30011;
  border-radius: 55px 6px 45px 15px/ 50px 12px 60px 19px;
  pointer-events: none;
  animation: playful2 4.8s infinite alternate-reverse cubic-bezier(.51,.7,.54,1);
}
@keyframes playful2 { 
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.09) rotate(-13deg); }
}

/* BADGE/TAG (for prices and other fun elements) */
span {
  background: #FFC300;
  color: #205539;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 0.97em;
  margin-left: 8px;
}

/* INPUTS FORMS (if used in future) */
input[type="text"],input[type="email"],textarea{
  border: 2px solid #E6DE91;
  border-radius: 12px;
  font-size: 1.05rem;
  padding: 12px 12px;
  margin-bottom: 14px;
  width: 100%;
  font-family: 'Lato', Arial, sans-serif;
  background: #FFF9EA;
  color: #205539;
  transition: border-color .15s;
}
input[type="text"]:focus,input[type="email"]:focus,textarea:focus{
  border-color: #FFC300;
  outline: none;
}

/* PLAYFUL CHECKMARKS & STARS */
img[alt="Ocena"], img[alt~="Ocena"] {
  width: 22px; height: 22px;
  margin: 0 1.5px;
  filter: drop-shadow(0 1.5px 3px rgba(44,106,79,0.07));
  vertical-align: middle;
}
img[alt="Ocena połówkowa"] {
  width: 22px; height: 22px;
  margin: 0 1.5px;
  vertical-align: middle;
}

/* VISUAL HIERARCHY & TYPOGRAPHY SCALE */
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
}
@media (max-width: 1024px){
  header .container { flex-direction: column; gap: 9px; }
  .footer-contact { font-size: 0.92em; }
}
@media (max-width: 850px){
  .section, .content-wrapper { padding: 32px 8px; }
  .footer-brand { font-size:1.13rem; }
}
@media (max-width: 768px){
  .content-grid, .card-container, .features, .card-grid, .section, .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section, .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    padding: 18px 10px;
  }
  header nav { display: none !important; }
  .cta-button { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .footer-nav { gap: 7px; font-size:1.01em; }
  .container { padding: 0 8px; }
}
@media (max-width: 520px){
  h1{ font-size:1.45rem; }
  h2{ font-size:1.15rem; }
  .footer-brand{ font-size:0.98rem; }
  .footer-contact { font-size:0.85em; }
  .section{ padding:18px 3px; }
  .card, .testimonial-card, .section { border-radius:14px; }
}

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

/* Ensure adequate spacing between all content cards/sections */
.card, .testimonial-card, .section, .feature-item, .card-container > *, .content-grid > * {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .section:last-child, .feature-item:last-child {
  margin-bottom: 0;
}

/* --------- PLAYFUL/DYNAMIC ANIMATIONS --------- */
.cta-button, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  box-shadow: 0 2.5px 12px 0 rgba(32,85,57,0.09);
}
.cta-button::after {
  content: '';
  display: block;
  position: absolute;
  left: 42%; top: 50%;
  width: 13px; height: 13px;
  background: #FFC300cc;
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
  animation: ctaPulse 2.4s infinite cubic-bezier(.58,.19,.01,.85);
  pointer-events:none;
}
@keyframes ctaPulse {
  0% { transform: scale(1); opacity:0.22; }
  33% { transform: scale(1.2); opacity:0.12; }
  100% { transform: scale(1); opacity:0.22; }
}

/* --- Custom playful fun = fun font sizes for headings --- */
h1, h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1.5px;
}

/* Accessible focus for all clickable elements */
a:focus, button:focus, .cta-button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-banner button:focus, .cookie-modal .close-modal:focus {
  outline: 2.5px dashed #FFC300;
  outline-offset: 2px;
  background: #FFF9EA;
}

/* Hide cookie banner when not active (class .hide on JS toggle) */
.cookie-banner.hide { display: none !important; }
.cookie-modal-bg.hide { display: none !important; }

/* Z-indexes for proper stacking (mobile menu and cookie banner above all) */
header, footer, main, .section, .card, .testimonial-card { z-index: 1; position: relative; }
.mobile-menu, .cookie-banner, .cookie-modal-bg { z-index: 5999; }

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