/* ========================================================
   FLUX SHOCK EDUKACJA – Scandinavian Clean Style CSS
   Only flexbox for layout. Responsive, animated, modern.
   Brand: Montserrat/Roboto, #153447 #39A1A3 #F5FAF5
   For: All pages + mobile nav + cookie consent
   ======================================================== */

/* ===== CSS RESET & NORMALIZATION ===== */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5FAF5;
  color: #153447;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #153447;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #39A1A3;
  outline: none;
}
ul, ol {
  margin-left: 20px;
  padding-left: 0;
}
li {
  margin-bottom: 8px;
}
button {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #153447;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
  color: #153447;
  font-size: 1rem;
}
strong, b {
  font-weight: 600;
  color: #153447;
}

/* ===== CONTAINER / LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #F5FAF5;
  box-shadow: 0 2px 8px rgba(21, 52, 71, 0.05);
  position: relative;
  width: 100%;
  z-index: 20;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 24px;
}
header img {
  max-height: 48px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #153447;
  border-radius: 8px;
  padding: 8px 14px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a:focus {
  background: #39A1A3;
  color: #fff;
}
.cta-btn {
  background: #153447;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 12px 0 rgba(57, 161, 163, 0.10);
  letter-spacing: 0.04em;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-left: 18px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #39A1A3;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(57, 161, 163, 0.18);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #153447;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 60;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(21, 52, 71, 0.13);
  font-size: 2rem;
  border: none;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #39A1A3;
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21, 52, 71, 0.96);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.82,0.04,0.48,0.97);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 32px 0 0 0;
}
body.mobile-menu-open .mobile-menu {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  margin: 0 24px 0 0;
  align-items: center;
  justify-content: center;
  display: flex;
  border-radius: 50%;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(57, 161, 163, 0.18);
}
.mobile-nav {
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 12px 0;
  width: 100%;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(57, 161, 163, 0.28);
  color: #39A1A3;
}

/* ===== HERO-SECTION / MAIN CALLS ===== */
main > section:first-of-type {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 24px 0 rgba(21, 52, 71, 0.07);
  margin-top: 32px;
}
main .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}

/* ===== FLEX LAYOUTS ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  align-items: stretch;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(57, 161, 163, 0.05);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.22s, transform 0.19s;
}
.features-grid > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
}
.features-grid > div:hover, .features-grid > div:focus-within {
  box-shadow: 0 8px 32px 0 rgba(57, 161, 163, 0.13);
  transform: translateY(-4px) scale(1.017);
}

/* ---- Cards, Card Containers ---- */
.card-container {  
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(57,161,163,0.07);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.16s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 32px 0 rgba(57,161,163,0.14);
  transform: translateY(-2px) scale(1.018);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ---- Text-Image section ---- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ---- Testimonial Cards ---- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(21,52,71,0.04);
  padding: 20px 26px;
  min-width: 220px;
  max-width: 398px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  color: #153447;
  transition: box-shadow 0.18s, transform 0.17s;
}
.testimonial-card h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.testimonial-card p {
  color: #153447;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 1rem;
  font-weight: 500;
  color: #39A1A3;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(57, 161, 163, 0.16);
  transform: translateY(-3px) scale(1.011);
}

/* ---- Feature Item ---- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 7px;
}

/* ---- List Styles ---- */
ul, ol {
  list-style: disc outside;
  margin-left: 16px;
}
ul li, ol li {
  margin-bottom: 10px;  
  font-size: 1rem;
  color: #153447;
  padding-left: 0;
}

/* ===== FORMS & INPUTS (if used) ===== */
input, textarea, select {
  font: inherit;
  padding: 10px 14px;
  border: 1px solid #CBD5DB;
  border-radius: 8px;
  margin-bottom: 18px;
  background: #F5FAF5;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px 0 rgba(21,52,71,0.03);
}
input:focus, textarea:focus, select:focus {
  border-color: #39A1A3;
  box-shadow: 0 2px 8px 0 rgba(57,161,163,0.11);
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #153447;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 3px;
  display: block;
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -3px 18px 0 rgba(21,52,71,0.07);
  padding: 36px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #39A1A3;
  font-size: 0.93rem;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #39A1A3;
  font-weight: 600;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #153447;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.98rem;
  color: #153447;
  justify-content: center;
  margin-bottom: 7px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}
.footer-brand {
  text-align: center;
  font-size: 0.88rem;
  color: #A3B9C6;
  letter-spacing: 0.02em;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1.5px solid #39A1A3;
  box-shadow: 0 -2px 16px 0 rgba(21,52,71,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  padding: 24px 18px 18px 18px;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.77,0,0.18,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  color: #153447;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  padding: 9px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  outline: none;
  transition: background 0.16s, color 0.16s;
  margin: 0 3px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(57,161,163,0.04);
}
.cookie-btn.accept {
  background: #153447;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #39A1A3;
  color: #fff;
}
.cookie-btn.decline {
  background: #F5FAF5;
  color: #39A1A3;
  border: 1.2px solid #39A1A3;
}
.cookie-btn.decline:hover, .cookie-btn.decline:focus {
  background: #39A1A3;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #153447;
  border: 1.2px solid #A3B9C6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: #39A1A3;
  border-color: #39A1A3;
  background: #F5FAF5;
}


/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21, 52, 71, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 34px 24px 24px 24px;
  max-width: 400px;
  width: 90vw;
  box-shadow: 0 10px 48px 0 rgba(21,52,71,0.22);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieslide 0.5s cubic-bezier(0.36,0.72,0.37,1) 1;
}
@keyframes cookieslide {
  from { transform: translateY(60px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal-header h3 {
  margin-right: 12px;
  font-size: 1.14rem;
}
.cookie-modal-close {
  background: #F5FAF5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: #153447;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #39A1A3;
  color: #fff;
}
.cookie-modal-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-modal-section label {
  font-size: 1.04rem;
  display: inline-block;
}
.cookie-modal-section input[type=checkbox] {
  accent-color: #153447;
  width: 18px;
  height: 18px;
}
.cookie-modal-section.essential label {
  color: #39A1A3;
  font-weight: 600;
}
.cookie-modal-section.essential input[type=checkbox] {
  accent-color: #39A1A3;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding-left: 8px; padding-right: 8px;
  }
}
@media (max-width: 900px) {
  .features-grid > div {
    min-width: 160px;
    padding: 22px 12px 18px 14px;
  }
}
@media (max-width: 768px) {
  html { font-size: 98%; }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }
  nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 8px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonials {
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact, .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 500px) {
  html { font-size:95%; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.17rem; }
  .section { padding: 14px 3px; }
  .cta-btn { padding: 11px 15px; font-size: 0.95rem; }
  .cookie-banner { font-size: .98rem; padding: 14px 4px 12px 4px; }
  .cookie-modal { padding: 16px 4px 12px 4px; }
}

/* ===== MICRO-INTERACTIONS & TRANSITIONS ===== */
.cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.14s, transform 0.17s, box-shadow 0.14s;
}
.cta-btn:active, .cookie-btn:active { transform: scale(0.97); }
.features-grid > div:active, .card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px; height: 10px;
  background: #F5FAF5;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #CBD5DB;
}


/* === UTILITIES FOR MARGIN/GAP (min 20px for cards/sections) === */
.section + .section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}
.content-wrapper + .content-wrapper {
  margin-top: 18px;
}

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

/* === Z-INDEX MANAGEMENT === */
header { z-index: 20; }
.mobile-menu, .mobile-menu-toggle { z-index: 100; }
.cookie-banner { z-index: 2000; }
.cookie-modal-overlay { z-index: 3000; }

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