/* ------------------------------
   RESET & BASE NORMALIZE RULES
------------------------------ */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFF;
  color: #28426B;
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  min-width: 100vw;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
ul, ol {
  margin: 0;
  padding-left: 1.2em;
}
ul { list-style-type: none; }
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; margin: 0 0 16px 0; }
h1 { font-size: 2.3rem; font-weight: 900; color: #28426B; letter-spacing: -1px; margin-bottom: 20px; }
h2 { font-size: 1.7rem; font-weight: 900; color: #50C3A3; margin-bottom: 18px; }
h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 14px; }
strong { font-weight: 800; }
a { color: #28426B; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #FFD547; }
p { margin: 0 0 16px 0; }
.text-section { margin-bottom: 16px; }

/* ---------------------------
    BRAND COLOR VARIABLES
--------------------------- */
:root {
  --primary: #28426B;
  --secondary: #50C3A3;
  --accent: #FFD547;
  --bg-muted: #F5F9FF;
  --cta-gradient: #50C3A3;
  --danger: #E05B82;
  --success: #4eee90;
  --text-dark: #28426B;
  --text-light: #fff;
  --shadow: 0 2px 12px rgba(70,80,150,0.08);
  --shadow-card: 0 6px 20px rgba(40,66,107,0.11);
  --radius-lg: 32px;
  --radius: 16px;
  --radius-sm: 10px;
  --focus-outline: 2px solid #FFD547;
  --menu-bg: #FFF;
  --menu-overlay: rgba(40,66,107,0.95);
  --cookie-bg: #28426B;
  --cookie-text: #fff;
}

/* --------------------------------
    LAYOUT & CONTAINER CLASSES
-------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
/* Remove bg-muted for first section (hero) */
main > section:first-of-type .container > .content-wrapper {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; padding: 24px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); transition: box-shadow 0.25s, transform 0.25s; }
.card:hover { box-shadow: 0 12px 32px rgba(40,66,107,0.18); transform: translateY(-7px) scale(1.04) rotate(-2deg); }

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  color: #28426B;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 14px 46px rgba(80,195,163,0.14);
  transform: translateY(-4px) scale(1.01) rotate(1deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----------------------------------------------
   NAVIGATION BAR & HEADER - DESKTOP & MOBILE
---------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #FFD54710;
  box-shadow: 0 3px 8px rgba(40,66,107,0.04);
  position: relative;
  z-index: 100;
  min-height: 56px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 12px 20px 12px 0;
  margin: 0 auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header nav a.cta-btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: bold;
  box-shadow: 0 2px 8px #FFD54740;
  font-size: 1.04em;
  border-radius: 24px;
  padding: 8px 24px;
  text-shadow: 0 1px 0 #fff9;
  margin-left: 16px;
  animation: popInCta 0.7s cubic-bezier(0.48,1.7,0.46,0.74);
}
header nav a.cta-btn:hover, .cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 14px #28426b50;
  transform: translateY(-2px) scale(1.05) rotate(-3deg);
}
header nav img {
  height: 34px;
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes popInCta {
  0% { opacity: 0; transform: scale(0.8) translateY(-25px); }
  60% { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 15px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 2.2rem;
  width: 46px;
  height: 46px;
  cursor: pointer;
  box-shadow: 0 2px 10px #FFD54750;
  transition: background 0.20s, color 0.15s, transform 0.15s;
  z-index: 1050;
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
  background: var(--primary);
  color: #FFD547;
}
/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--menu-overlay);
  transform: translateX(-120%);
  z-index: 10010;
  transition: transform 0.35s cubic-bezier(.14,.88,.62,1.08);
  opacity: 0.98;
  box-shadow: 5px 0 16px #28426b33;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 22px;
  right: 26px;
  cursor: pointer;
  z-index: 10101;
  box-shadow: 0 2px 8px #FFD54750;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 80px auto 0 auto;
  width: 85%;
  align-items: flex-start;
}
.mobile-menu nav.mobile-nav a {
  font-size: 1.30rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  padding: 17px 0 10px 4px; 
  border-radius: 0 24px 24px 0;
  background: none;
  transition: background 0.18s, color 0.18s, transform 0.2s;
  font-weight: 700;
}
.mobile-menu nav.mobile-nav a:hover, .mobile-menu nav.mobile-nav a:focus {
  background: #FFD54733;
  color: #FFD547;
  transform: translateX(8px) scale(1.10);
}
.mobile-menu-close:focus { outline: var(--focus-outline); }

/* HIDE ON DESKTOP: mobile menu toggle + show mobile menu ON MOBILE */
@media (max-width: 1100px) {
  header nav {
    gap: 6px;
  }
}
@media (max-width: 950px) {
  header nav a:not(.cta-btn):not(:first-child) {
    font-size: 0.98em;
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 820px) {
  header nav { gap: 2px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* -------------------
     MAIN CTA BUTTONS
-------------------- */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.10em;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 28px;
  border: none;
  margin-top: 5px;
  margin-bottom: 5px;
  box-shadow: 0 4px 14px #FFD54725;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.58,1.22,0.38,1);
  outline: none;
  position: relative;
  z-index: 1;
  min-width: 130px;
}
.cta-btn:focus {
  outline: var(--focus-outline);
}

/* Fun floating micro-animation for CTA */
.cta-btn {
  animation: floatingBtn 6s ease-in-out infinite alternate;
}
@keyframes floatingBtn {
  0% { transform: translateY(0) rotate(0); }
  80% { transform: translateY(-2px) rotate(-2deg); }
  90% { transform: translateY(3px) rotate(2deg); }
  100% { transform: translateY(0); }
}

/* -------------------
     SECTION STYLES
-------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
}
main > section:first-of-type {
  background: #FFD54720;
  box-shadow: none;
}
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}
section ul li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  font-size: 1.04rem;
  transition: box-shadow 0.20s, transform 0.18s;
}
section ul li img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  margin-bottom: 5px;
}
section ul li strong { color: var(--secondary); font-family: 'Montserrat', Arial, sans-serif; }
section ul li .text-section { color: var(--primary); font-size: 0.97em; margin-bottom: 0; }
section ul li a {
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding-top: 5px;
  transition: color 0.17s;
}
section ul li a:hover { color: #E05B82; text-decoration: underline; }
section ul li:hover {
  box-shadow: 0 10px 38px #50C3A320;
  background: #FFD54711;
  transform: translateY(-4px) scale(1.022) rotate(-1.5deg);
}

/* --------------------------------------------
     TESTIMONIAL CARDS - OPINIE RODZICÓW
--------------------------------------------- */
.testimonial-card {
  background: #fff;
  border-left: 7px solid var(--accent);
  color: #28426B;
  font-size: 1.05rem;
  min-width: 220px;
  max-width: 600px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12em;
  line-height: 1.6;
  color: var(--primary);
  margin-bottom: 13px;
}
.testimonial-card strong {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01em;
}
.testimonial-card div:last-child {
  display: flex;
  gap: 2px;
}
.testimonial-card img {
  height: 22px;
  width: 22px;
}

/* ----------------------------------------
      TEXT IMAGE FLEX SECTIONS
---------------------------------------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.text-image-section > * {
  flex: 1 1 240px;
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0 0;
  padding-left: 14px;
}
.text-section ul li {
  background: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}

/* -------------------------------------
      FOOTER STYLES
------------------------------------- */
footer {
  background: #28426B;
  color: #fff;
  padding: 36px 18px 16px 18px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -5px 28px #28426b13;
  margin-top: 64px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}
footer nav a {
  color: #FFD547;
  font-size: 0.98em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 14px;
  background: none;
  transition: background 0.16s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: #FFD547;
  color: #28426B;
}
footer .text-section {
  color: #fff;
  font-size: 0.97em;
  word-break: break-word;
}
footer .text-section a {
  color: #FFD547;
  text-decoration: underline;
  transition: color 0.18s;
}
footer .text-section a:hover { color: #fff; }

/* --------------------------------------
   COOKIE BANNER + COOKIE SETTINGS MODAL
-------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--cookie-bg);
  color: var(--cookie-text);
  z-index: 20000;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 20px 20px 19px;
  box-shadow: 0 -8px 28px #28426b51;
  font-size: 1.04em;
  animation: cookieSlideIn 0.7s cubic-bezier(.50,1.16,.58,.96);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); opacity: 0.7; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-text {
  flex: 2 1 280px;
  margin-bottom: 8px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  min-width: 210px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 8px 27px;
  font-size: 1em;
  font-weight: 700;
  margin: 0;
  transition: background 0.15s, color 0.13s, box-shadow 0.13s, transform 0.14s;
  box-shadow: 0 2px 16px #FFD54733;
  outline: none;
  cursor: pointer;
}
.cookie-consent-banner .cookie-accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-consent-banner .cookie-accept:hover,
.cookie-consent-banner .cookie-accept:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-consent-banner .cookie-reject {
  background: #E05B82;
  color: #fff;
}
.cookie-consent-banner .cookie-reject:hover,
.cookie-consent-banner .cookie-reject:focus {
  background: #ff91b0;
  color: var(--primary);
}
.cookie-consent-banner .cookie-settings {
  background: #fff;
  color: var(--primary);
  border: 1.2px dashed var(--accent);
  box-shadow: none;
}
.cookie-consent-banner .cookie-settings:hover,
.cookie-consent-banner .cookie-settings:focus {
  background: #FFD54733;
  color: var(--primary);
  border-style: solid;
}
/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,66,107,0.7);
  z-index: 30000;
  display: flex;
  justify-content: center; align-items: center;
  animation: cookieModalSlideIn 0.4s cubic-bezier(.35,1.13,.45,1.07);
}
@keyframes cookieModalSlideIn {
  0% { transform: scale(0.92) translateY(100px); opacity:0.7; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: #28426B;
  border-radius: 22px;
  box-shadow: 0 16px 64px #28426b65;
  min-width: 360px;
  max-width: 95vw;
  padding: 38px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  font-size: 1rem;
  position: relative;
}
.cookie-modal h2 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1.23em;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05em;
}
.cookie-modal label {
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  width: 36px; height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal .cookie-toggle input[type=checkbox] { display: none; }
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  background: #ddd;
  border-radius: 14px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.18s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  background: var(--secondary);
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-modal .cookie-toggle input:checked + .slider:before {
  transform: translateX(13px);
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 700;
  border-radius: 22px;
  padding: 9px 24px;
  background: var(--accent);
  color: var(--primary);
  outline: none;
  border: none;
  transition: background 0.16s, color 0.14s;
  box-shadow: 0 1px 10px #FFD54716;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal .cookie-close-modal {
  position: absolute;
  top: 22px; right: 22px;
  background: #fff;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 38px; height:38px;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.cookie-modal .cookie-close-modal:hover { background: #FFD54799; color: #fff; }

/* ------------------------------
    RESPONSIVE ADJUSTMENTS
------------------------------ */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 950px) {
  .content-wrapper, .section {
    padding-left: 6px;
    padding-right: 6px;
  }
  section ul li {
    flex-basis: 340px;
    min-width: 180px;
  }
}
@media (max-width: 810px) {
  section, .section {
    padding: 26px 10px 32px 10px;
    margin-bottom: 38px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 4px;
  }
  .content-wrapper {
    gap: 16px;
  }
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.13rem; }
  section ul {
    flex-direction: column;
    gap: 14px;
  }
  section ul li {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 98vw;
    padding: 14px 8px;
  }
  .section {
    padding: 20px 2px 20px 2px;
  }
}
@media (max-width: 600px) {
  .content-grid, .card-container, .feature-item { flex-direction: column !important; gap: 14px; }
  .text-image-section { flex-direction: column !important; gap: 16px; }
  section, .section {
    padding: 12px 0px 18px 0px;
    border-radius: 4vw;
    margin-bottom: 23px;
  }
  .container {
    padding: 0 2px;
  }
  h1 { font-size: 1.14rem; }
  h2 { font-size: 0.97rem; }
}

/* -------------------------------
   MISC: TYPOGRAPHY/FUN FONTS
------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

body,
p,
.text-section {
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.02em;
}
h1, h2, h3, .cta-btn, header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card p {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Micro animated borders for fun */
section ul li:before {
  content: '';
  display: block;
  position: absolute;
  top: -7px; left: -7px;
  height: 20px; width: 20px;
  background: var(--accent);
  border-radius: 60% 30% 40% 60%;
  z-index: 0;
  opacity: 0.11;
  animation: cornerBlob 14s infinite alternate-reverse cubic-bezier(0.56,1.1,0.4,1);
}
@keyframes cornerBlob {
  0% { border-radius: 60% 30% 40% 60%; }
  50% { border-radius: 25% 70% 55% 42%; }
  100% { border-radius: 60% 30% 40% 60%; }
}
section ul li:hover:before { opacity: 0.18; }

/* Tiny fun confetti on CTA hover */
.cta-btn:after {
  content: '';
  display: block;
  position: absolute;
  right: 8px; bottom: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #50C3A3;
  box-shadow:
    0 -12px 0 0 #FFD547,
    -16px 0 0 0 #50C3A3,
    12px -8px 0 0 #E05B82;
  opacity: 0;
  transition: opacity 0.17s;
}
.cta-btn:hover:after { opacity: 1; animation: confettiPop 0.62s cubic-bezier(.64,.16,.45,.82); }
@keyframes confettiPop {
  0% { transform: scale(0.2) translateY(22px); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scale(1.6) translateY(-8px); opacity: 0; }
}

/* -------------
   FORMS/INPUTS
--------------- */
input, textarea, select, button {
  font-family: 'Open Sans', Arial, sans-serif;
  outline: none;
  border-radius: var(--radius-sm);
}
input:focus, textarea:focus, select:focus {
  border: 1.4px solid var(--secondary);
  box-shadow: 0 0 0 2px #50C3A345;
}

/* --------------------------------------
   MISC MARGINS/GAPS/CARD SPACING
-------------------------------------- */
.card-container, .content-grid, .feature-item, .text-image-section, section ul, .testimonial-card {
  gap: 20px;
}
.card { margin-bottom: 20px; }
.section { margin-bottom: 60px; }

/* ----------------------------------
   SCROLLBAR THEMING FOR FUN
---------------------------------- */
::-webkit-scrollbar { width: 10px; background: #F5F9FF; }
::-webkit-scrollbar-thumb { background: #FFD54788; border-radius: 8px; }

/* ----------------------------------
   PRINT CLEANUP
---------------------------------- */
@media print {
  header, footer, .cookie-consent-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
}
