/* ===================================================
   CSS RESET & NORMALIZE
=================================================== */
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,
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,
main, 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;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

body {
  line-height: 1.6;
  background: #fcfaff;
  color: #222a35;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s ease;
}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* ===================================================
   BRAND COLORS & PASTEL PALETTE
=================================================== */
:root {
  --sas-primary: #23395d;
  --sas-secondary: #ffffff;
  --sas-accent: #f5b14c;
  --pastel-blue: #bdd7ee;
  --pastel-lilac: #e3daf7;
  --pastel-peach: #ffe3cf;
  --pastel-mint: #b8e2dc;
  --pastel-pink: #ffe4eb;
  --pastel-yellow: #fff6ce;
  --pastel-gray: #f7f8fa;
  --gray-light: #eef2fb;
  --gray-medium: #bfcad6;
  --text-dark: #222a35;
  --text-soft: #656d83;
  --shadow: 0 2px 24px rgba(51,56,85,.08);
  --radius: 18px;
}

/* ===================================================
   TYPOGRAPHY
=================================================== */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: linear-gradient(180deg, #fcfaff 0%, #f7f8fa 100%);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--sas-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  line-height: 1.1;
}
@media (min-width: 480px) {
  h1 {
    font-size: 3.2rem;
  }
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

p, ul li, ol li {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
}
strong {
  color: var(--text-dark);
}
blockquote {
  background: var(--pastel-blue);
  margin: 24px 0;
  padding: 24px 30px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  color: var(--sas-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-left: 7px solid var(--sas-accent);
  box-shadow: var(--shadow);
  position: relative;
}

/* ===================================================
   GENERIC LAYOUTS & CONTAINERS
=================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-gray);
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .section {
    padding: 60px 40px;
  }
  .content-wrapper {
    gap: 28px;
  }
}

/************  CARD & GRID FLEX CONTAINERS  ***********/
.card-container,
.card-grid,
.feature-grid,
.values-grid,
.course-cards,
.testimonial-cards,
.blog-preview-cards,
.steps-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

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

.card {
  margin-bottom: 20px;
  position: relative;
}

.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: center;
  gap: 20px;
  padding: 24px 24px 18px;
  background: var(--pastel-pink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 230px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 4px 32px rgba(51,56,85,.12);
  background: var(--pastel-lilac);
}
.testimonial-author {
  color: var(--sas-primary) !important;
  margin-top: 8px;
  font-size: 0.96rem;
}
.star-rating {
  font-size: 1.3em;
  letter-spacing: 2px;
  color: #facc36;
}

.card, .course-card, .blog-card, .step, .values-grid > div, .feature-grid > div {
  background: var(--sas-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px 20px;
  min-width: 220px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .2s, background .22s;
  margin-bottom: 20px;
}
.card:hover, .course-card:hover, .blog-card:hover,
.values-grid > div:hover, .feature-grid > div:hover {
  box-shadow: 0 4px 32px rgba(35,57,93,.13);
  background: var(--pastel-peach);
}

/* Special: Hero section styling */
.hero {
  background: linear-gradient(150deg, #e3daf7 0%, #ffe4eb 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 40px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--sas-primary);
  font-size: 2.2rem;
}
@media (min-width: 680px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

/* CTA Sections */
.cta {
  background: linear-gradient(95deg, #b8e2dc 0%, #ffe3cf 100%);
  border-radius: var(--radius);
  margin: 36px 0 0 0;
  padding: 50px 16px 46px;
  box-shadow: 0 1px 16px rgba(35,57,93,.08);
  text-align: center;
}
.cta h2 {
  color: var(--sas-primary);
  margin-bottom: 16px;
}
.cta p {
  color: var(--text-soft);
  margin-bottom: 24px;
}
.cta .btn-primary {
  margin: 0 auto;
}

/************  FLEX-BOX ONLY RESPONSIVE ADJUSTMENTS  ************/
@media (max-width: 768px) {
  .feature-grid,
  .course-cards,
  .testimonial-cards,
  .steps-timeline,
  .values-grid,
  .blog-preview-cards {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .content-grid,
  .card-grid,
  .card-container {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/****************************************************
   HEADER, NAV, MOBILE MENU
****************************************************/
header {
  background: var(--sas-secondary);
  box-shadow: 0 2px 16px rgba(35,57,93,.06);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 7px 2px;
  font-size: 1rem;
  color: var(--sas-primary);
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  transition: color .13s, border-bottom-color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--sas-accent);
  border-bottom: 2px solid var(--sas-accent);
  background: var(--pastel-blue);
}
.btn-primary {
  background: var(--sas-accent);
  color: #222a35;
  border: none;
  padding: 12px 32px;
  border-radius: 32px;
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(245,177,76,0.13);
  cursor: pointer;
  transition: background .17s, color .17s, box-shadow .2s;
  outline: none;
  margin-left: 18px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffe3cf;
  color: var(--sas-primary);
  box-shadow: 0 4px 32px rgba(245,177,76,0.20);
}
.btn-secondary {
  border: 2px solid var(--sas-accent);
  background: var(--pastel-mint);
  color: var(--sas-primary);
  border-radius: 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 28px;
  cursor: pointer;
  transition: border-color .13s, background .13s, color .18s;
  margin-bottom: 6px;
  margin-top: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--sas-accent);
  color: #222a35;
  border-color: var(--sas-accent);
}

/***** MOBILE MENU *****/
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-blue);
  color: var(--sas-primary);
  border-radius: 10px;
  border: none;
  font-size: 2.2rem;
  padding: 3px 17px 1px 17px;
  margin-left: 12px;
  cursor: pointer;
  transition: background .12s, color .12s;
  z-index: 121;
}
.mobile-menu-toggle:focus {
  background: var(--sas-accent);
  color: #222a35;
}

/***** Responsive header navigation *****/
@media (max-width: 992px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, var(--pastel-pink) 0%, var(--pastel-lilac) 100%);
  box-shadow: 0 12px 42px rgba(35,57,93,0.16);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 18px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--pastel-mint);
  color: var(--sas-primary);
  font-size: 2rem;
  align-self: flex-end;
  border-radius: 12px;
  border: none;
  margin: 30px 0 12px 0;
  padding: 0 13px 0 13px;
  cursor: pointer;
  transition: background .12s, color .12s;
  z-index: 2100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--sas-accent);
  color: #222a35;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--sas-primary);
  padding: 15px 10px;
  border-radius: 12px;
  transition: background .13s, color .13s;
  margin-left: 0;
  margin-right: 0;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--pastel-blue);
  color: var(--sas-accent);
}

/****************************************************
   FOOTER
****************************************************/
footer {
  background: linear-gradient(95deg, #e3daf7 0%, #b8e2dc 100%);
  padding: 30px 0 20px 0;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -2px 20px rgba(35,57,93,.08);
  font-size: 0.98rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--sas-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background .13s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--sas-accent);
  background: var(--pastel-blue);
}
.brand-contact {
  color: var(--text-soft);
  line-height: 1.7;
  margin-top: 8px;
  font-size: 0.98rem;
}

/****************************************************
   BLOG & COURSES
****************************************************/
.blog-preview-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.blog-card {
  background: var(--pastel-peach);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 18px 14px;
  min-width: 220px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .2s, box-shadow .18s;
}
.blog-card:hover {
  background: var(--pastel-blue);
  box-shadow: 0 2px 32px rgba(180,149,243,.12);
}
.blog-card a {
  color: var(--sas-accent);
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  margin-top: 6px;
  transition: color .13s;
}
.blog-card a:hover {
  color: var(--sas-primary);
}
.categories-filter {
  margin-top: 16px;
  font-size: 0.98rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.categories-filter a {
  color: var(--sas-accent);
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .13s, background .13s;
}
.categories-filter a:hover {
  color: var(--sas-primary);
  background: var(--pastel-mint);
}

.course-card {
  background: var(--pastel-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px;
  min-width: 220px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .18s, box-shadow .18s;
}
.course-card:hover {
  background: var(--pastel-yellow);
  box-shadow: 0 2px 32px rgba(254,216,98,0.11);
}
.levels-overview {
  color: var(--text-soft);
  font-size: 1.07rem;
  margin: 18px 0 10px 0;
  padding-left: 5px;
}

/****************************************************
   TESTIMONIALS
****************************************************/
.testimonials,
.testimonials-teaser {
  background: linear-gradient(90deg, #b8e2dc 0%, #ffe3cf 100%);
  border-radius: var(--radius);
  margin: 38px 0;
  padding: 32px 0;
  box-shadow: 0 1px 18px rgba(251, 186, 210, .18);
}
.testimonial-slider, .testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

.video-testimonial-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/****************************************************
   MISCELLANEOUS COMPONENTS & UTILITIES
****************************************************/
ul, li {
  margin-bottom: 5px;
  font-size: 1rem;
}
.section ul {
  margin-top: 8px;
  gap: 12px;
}
a {
  transition: color .13s, background .13s;
  outline: none;
}
a:focus {
  color: var(--sas-accent);
  background: var(--pastel-mint);
  border-radius: 5px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 12px 0;
}
.social-links span {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-right: 6px;
}
.social-links a img {
  width: 30px;
  height: 30px;
  background: var(--pastel-mint);
  border-radius: 50%;
  padding: 5px;
  transition: background .16s;
}
.social-links a:hover img {
  background: var(--sas-accent);
}

.map-embed {
  background: var(--pastel-gray);
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--sas-primary);
  margin-bottom: 18px;
  margin-top: 12px;
  font-size: 1.06rem;
}
.contact-info p {
  color: var(--text-soft);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}

/****************************************************
   LEGAL PAGES (Policy, Cookies, GDPR, Regulamin)
****************************************************/
.legal {
  background: var(--pastel-lilac);
  border-radius: var(--radius);
  padding: 46px 20px 46px;
  margin: 38px 0 38px 0;
  box-shadow: var(--shadow);
}
.legal h1, .legal h2 {
  margin-bottom: 17px;
}
.legal ul {
  margin-bottom: 22px;
  margin-left: 20px;
}

/****************************************************
   COOKIE CONSENT BANNER & MODAL
****************************************************/
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(95deg, #e3daf7 0%, #ffe3cf 100%);
  box-shadow: 0 -2px 24px rgba(35,57,93,0.08);
  z-index: 3000;
  padding: 22px 18px;
  gap: 18px;
  font-size: 1rem;
  animation: cookieBannerAppear .44s cubic-bezier(.68,-0.3,.32,1.17);
}
@keyframes cookieBannerAppear { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1;} }
.cookie-banner .cookie-text {
  flex: 1;
  color: var(--sas-primary);
}
.cookie-banner .cookie-btn {
  min-width: 120px;
  border-radius: 28px;
  border: none;
  font-size: 1rem;
  padding: 9px 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 0;
  margin-top: 0;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.cookie-banner .cookie-accept {
  background: var(--sas-accent);
  color: var(--sas-primary);
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus {
  background: #ffe3cf;
  color: #1a1d25;
}
.cookie-banner .cookie-reject {
  background: var(--pastel-blue);
  color: var(--sas-primary);
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: var(--pastel-mint);
  color: var(--sas-accent);
}
.cookie-banner .cookie-settings {
  background: var(--pastel-mint);
  color: var(--sas-primary);
  border: 2px solid var(--sas-accent);
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: var(--pastel-peach);
  color: var(--sas-accent);
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 5000;
  transform: translate(-50%,-50%) scale(0.98);
  min-width: 340px;
  width: 88vw;
  max-width: 410px;
  background: var(--sas-secondary);
  border-radius: var(--radius);
  box-shadow: 0 8px 36px rgba(51,56,85,0.20);
  padding: 28px 22px 22px;
  font-size: 1rem;
  color: var(--sas-primary);
  animation: modalAppear .33s cubic-bezier(.68,-0.3,.32,1.17);
}
@keyframes modalAppear { from { opacity:0; transform: translate(-50%,42%) scale(.9);} to{ opacity:1; transform: translate(-50%,-50%) scale(1);}}
.cookie-modal.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal h3 {
  margin-bottom: 9px;
  font-size: 1.22rem;
  color: var(--sas-primary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 7px;
  margin-bottom: 10px;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--sas-accent);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-modal .cookie-save {
  background: var(--sas-accent);
  color: var(--sas-primary);
  border-radius: 28px;
  border: none;
  font-size: 1rem;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background .14s, color .15s;
}
.cookie-modal .cookie-save:hover {
  background: var(--pastel-peach);
  color: var(--sas-primary);
}
.cookie-modal .cookie-close {
  background: var(--pastel-pink);
  color: var(--sas-primary);
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  padding: 8px 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.cookie-modal .cookie-close:hover {
  background: var(--pastel-lilac);
  color: var(--sas-accent);
}

/****************************************************
   UTILITY CLASSES & MEDIA QUERIES
****************************************************/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.center {
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}

/****************************************************
   RESPONSIVE FONTS & SPACING
****************************************************/
@media (max-width: 550px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  .section { padding: 30px 8px; }
}

/****************************************************
   FOCUS & ACCESSIBILITY
****************************************************/
:focus-visible {
  outline: 2px solid var(--sas-accent);
  outline-offset: 2px;
}

/****************************************************
   ANIMATIONS & MICRO-INTERACTIONS
****************************************************/
.btn-primary, .btn-secondary, .cookie-btn, .cookie-save, .cookie-close {
  transition: background .16s, color .14s, box-shadow .16s;
}
.card, .course-card, .blog-card, .testimonial-card {
  transition: box-shadow .18s, background .17s, transform .22s;
}
.card:hover, .course-card:hover, .blog-card:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 6px 36px rgba(35,57,93,.15);
}

/****************************************************
   PRINT & FORMATTING
****************************************************/
@media print { 
  * { background: #fff !important; color: #222 !important; box-shadow: none !important; }
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
}

/* END OF STYLE */
