/* CSS RESET & BASE STYLES (normalize + reset) */
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;
  font-size: 16px; /* Root base */
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #212A44;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #32AFA9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E94057;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
strong, b {
  font-weight: bold;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* TYPOGRAPHY for "playful_dynamic" style */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #212A44;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1rem;
}
p, ul, ol, li, span {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
@media (min-width: 600px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  p, ul, ol, li, span {
    font-size: 1.1rem;
  }
}

/* "playful_dynamic" color palette & fun accents */
:root {
  --primary: #212A44;
  --secondary: #32AFA9;
  --accent: #F2F5FA;
  --fun-orange: #FFAF19;
  --fun-pink: #E94057;
  --fun-purple: #9B51E0;
  --fun-blue: #4C90FF;
  --white: #fff;
}

/* HEADER & NAVIGATION */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px 0 rgba(33,42,68,0.06);
  z-index: 200;
  position: relative;
  padding: 0 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  position: relative;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  transition: color 0.2s, background 0.2s;
  border-radius: 18px;
  padding: 8px 14px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--fun-pink);
  color: #fff;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 28px;
  border: none;
  border-radius: 28px;
  font-size: 1.1rem;
  box-shadow: 0 2px 14px 0 rgba(50,175,169,0.06);
  transition: background 0.2s, color 0.2s, transform 0.18s cubic-bezier(.45,1.6,.7,1);
  cursor: pointer;
  margin-top: 14px;
}
.cta-btn.primary {
  background: var(--secondary);
  color: #fff;
}
.cta-btn.primary:hover {
  background: var(--fun-blue);
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 3px 20px rgba(50,175,169,0.15);
}
.cta-btn.secondary {
  background: var(--fun-orange);
  color: var(--primary);
}
.cta-btn.secondary:hover {
  background: var(--fun-pink);
  color: #fff;
  transform: scale(1.045) rotate(2deg);
}
.cta-btn:active { transform: scale(0.99); }

/* Hamburger menu button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  background: var(--white);
  border: none;
  color: var(--fun-pink);
  padding: 6px 18px;
  border-radius: 18px;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 2px 11px 0 rgba(233,64,87,0.1);
  transition: background 0.15s, color 0.15s, transform 0.18s cubic-bezier(.45,1.6,.7,1);
  z-index: 305;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--fun-pink);
  color: #fff;
  transform: scale(1.05) rotate(-8deg);
}

/* Hide burger on desktop */
@media (min-width: 1100px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Main nav on mobile (hidden) */
@media (max-width: 1099px) {
  .main-nav {
    display: none;
  }
  .cta-btn.primary {
    display: none;
  }
}

/* MOBILE MENU SLIDEOVER */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(33,42,68,0.95);
  z-index: 5001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 0 0 0;
  transform: translateX(-104vw);
  opacity: 0;
  pointer-events: none;
  transition: all 0.36s cubic-bezier(.66,-0.04,.41,1.09);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 32px 18px 0;
  background: var(--fun-pink);
  color: #fff;
  font-size: 2.3rem;
  border: none;
  border-radius: 18px;
  padding: 9px 20px;
  cursor: pointer;
  z-index: 5002;
  box-shadow: 0 2px 10px 0 rgba(233,64,87,0.12);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--fun-orange);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 5px;
  padding: 10px 0;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--fun-orange);
  color: var(--primary);
}
@media (min-width:1100px) {
  .mobile-menu {
    display: none !important;
  }
}

/* LAYOUTS & SPACING Patterns */
.content-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 36px auto;
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 rgba(33,42,68,0.05);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.content-wrapper.text-section {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(50,175,169,0.08), 0 1.5px 6px rgba(233,64,87,0.04);
}
@media (max-width:768px) {
  .content-wrapper {
    padding: 18px 6px;
    border-radius: 14px;
  }
}

.feature-grid, .benefits-grid, .service-cards, .blog-posts-grid, .course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 24px 0 20px 0;
}
.feature, .benefit, .service-card, .blog-post, .course-card {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 18px 0 rgba(50,175,169,0.09);
  padding: 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  max-width: 330px;
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
  position: relative;
}
.feature:hover, .benefit:hover, .service-card:hover, .blog-post:hover, .course-card:hover {
  box-shadow: 0 8px 28px 0 rgba(50,175,169,0.16);
  transform: translateY(-5px) scale(1.025) rotateZ(1.5deg);
  background: #FDF0FF;
}

@media (max-width:900px) {
  .feature-grid, .benefits-grid, .service-cards, .blog-posts-grid, .course-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .benefit, .service-card, .blog-post, .course-card {
    min-width: 0;
    max-width: 100%;
  }
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 17px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 16px 0 rgba(50,175,169,0.12);
  padding: 25px 22px;
  transition: box-shadow 0.2s, background 0.2s;
}
.card:hover {
  box-shadow: 0 10px 36px 0 rgba(50,175,169,0.16) ;
  background: #FDF5F6;
}

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

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

/******** TESTIMONIALS & SPECIAL CARD SECTIONS ********/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 16px 0 rgba(50,175,169,0.09);
  margin-bottom: 22px;
  border-left: 8px solid var(--fun-pink);
  transition: box-shadow 0.16s, border-color 0.17s;
}
.testimonial-card p {
  flex: 1 1 70%;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0;
}
.testimonial-card strong {
  flex: 1 1 30%;
  color: var(--fun-pink);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-left: 10px;
}
.testimonial-card:hover {
  box-shadow: 0 7px 18px 0 rgba(233,64,87,0.16);
  border-left: 8px solid var(--fun-blue);
}

/********* MISC SECTION & SPECIAL ELEMENTS  *********/
.course-categories,
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 22px 0;
}
.course-categories span {
  background: var(--fun-blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  margin-right: 5px;
  user-select: none;
}
.categories-filter a {
  background: var(--secondary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px;
  margin-right: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.16s, color 0.17s;
}
.categories-filter a:hover {
  background: var(--fun-pink);
  color: #fff;
}
.filter-sort-options span {
  background: var(--fun-purple);
  color: #fff;
  border-radius: 9px;
  padding: 5px 12px;
  font-size: 0.99rem;
}

/********* FOOTER *********/
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 12px 0;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-top: 12px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.83;
  font-size: 0.98rem;
  transition: color 0.17s, opacity 0.11s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--fun-orange);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #fff;
}
footer p {
  margin-top: 18px;
  color: #ccc;
  font-size: 0.94rem;
}
@media (max-width:860px) {
  footer .container {
    padding: 0 8px;
    gap: 13px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}
/* ---------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 4000;
  box-shadow: 0 -2px 16px 0 rgba(33,42,68,0.20);
  padding: 26px 30px 18px 30px;
  font-size: 1rem;
  animation: cookie-slidein 0.65s cubic-bezier(.59,.02,.47,1.28);
}
@keyframes cookie-slidein {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 12px 0 0;
  flex: 1 1 60%;
}
.cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: var(--fun-orange);
  color: var(--primary);
  border: none;
  border-radius: 16px;
  padding: 9px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.02rem;
  transition: background 0.16s, color 0.16s, transform 0.15s;
  margin-bottom: 0;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--fun-pink);
  color: #fff;
  transform: scale(1.07) rotate(-2deg);
}
.cookie-btn.settings {
  background: var(--fun-blue);
  color: #fff;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    padding: 18px 6px 18px 10px;
    font-size: 0.96rem;
  }
  .cookie-actions {
    gap: 7px;
  }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -60%) scale(0.84);
  background: #fff;
  color: var(--primary);
  border-radius: 24px;
  padding: 34px 22px 22px 22px;
  min-width: 320px;
  max-width: 99vw;
  width: 370px;
  z-index: 5002;
  box-shadow: 0 10px 32px 0 rgba(33,42,68,0.19);
  opacity: 0;
  pointer-events: none;
  transition: all 0.27s cubic-bezier(.62,.13,.2,1.09);
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-modal h3 {
  font-size: 1.36rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--fun-pink);
}
.cookie-modal-close {
  font-size: 2rem;
  border: none;
  background: transparent;
  color: var(--fun-orange);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 11px;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--fun-blue);
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 30px;
  background: var(--accent);
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  margin-left: 10px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fun-pink);
  position: absolute;
  top: 0; left: 0;
  transition: left 0.16s cubic-bezier(.5,1.6,1,.87);
}
.cookie-toggle input:checked + span {
  background: var(--secondary);
  left: 16px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
.cookie-category.essential label {
  color: var(--fun-blue);
  font-weight: bold;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal-actions {
  margin-top: 9px;
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 80px;
}

/***** ANIMATIONS FOR ENERGY & PLAYFULNESS *****/
.cta-btn.primary,
.card, .feature, .benefit, .service-card, .blog-post, .testimonial-card,
.course-card {
  animation: playful-fadein 0.55s cubic-bezier(.4,1.2,.4,1.1);
}
@keyframes playful-fadein {
  from { opacity: 0; transform: scale(0.95) rotate(-2.5deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.cta-btn.primary {
  animation-delay: 0.10s;
}
.feature:nth-child(2), .benefit:nth-child(2), .service-card:nth-child(2), .blog-post:nth-child(2), .testimonial-card:nth-child(2) {
  animation-delay: 0.12s;
}
.feature:nth-child(3), .benefit:nth-child(3), .service-card:nth-child(3), .blog-post:nth-child(3), .testimonial-card:nth-child(3) {
  animation-delay: 0.22s;
}

/***** FORMS, INPUTS, & BUTTONS *****/
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #e0e6ee;
  padding: 13px 12px;
  margin-bottom: 10px;
  outline: none;
  background-color: var(--accent);
  transition: border 0.18s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
}
button {
  font-family: inherit;
}

/* LISTS & BULLETED STYLES FOR PLAYFUL LOOK */
ul li::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--fun-orange) 55%, var(--fun-pink) 100%);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.feature ul, .benefit ul, .service-card ul, .text-section ul {
  list-style: none;
  padding-left: 0;
}

/******** FAQ STYLES (jak-to-dziala) ********/
.faq {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fff;
  border-left: 6px solid var(--fun-blue);
  border-radius: 13px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px 0 rgba(76,144,255,0.08);
  margin-bottom: 8px;
  transition: box-shadow 0.15s, border-color 0.16s;
}
.faq-item:hover {
  border-left: 6px solid var(--fun-pink);
  box-shadow: 0 6px 16px 0 rgba(233,64,87,0.13);
}

/******* MISC LAYOUT & RESPONSIVE ******/
@media (max-width:580px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .cta-btn, .cta-btn.primary, .cta-btn.secondary {
    padding: 10px 14px;
    font-size: 1rem;
    min-width: 0;
  }
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    padding: 14px 2vw 12px 2vw;
  }
}
/* Visual hierarchy and spacing utility classes */
.space-8 { margin-bottom: 8px !important; }
.space-16 { margin-bottom: 16px !important; }
.space-24 { margin-bottom: 24px !important; }
.space-32 { margin-bottom: 32px !important; }

/************ Z-INDEX STACKING ORDER ************/
header { z-index: 200; }
.mobile-menu      { z-index: 5001; }
.cookie-modal     { z-index: 5002; }
.cookie-banner    { z-index: 4000; }

/************ ACCESSIBILITY & FOCUS ************/
:focus-visible {
  outline: 2px dashed var(--fun-orange);
  outline-offset: 1px;
}

/************ BRAND FONT FAMILY (web font import) ************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/************ END OF STYLE.CSS ************/
