/* Reset & Normalize (mobile-first) */
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;vertical-align:baseline;box-sizing:border-box;
}
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F7FA;
  color: #154870;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #154870; text-decoration: none; font-weight: 500; transition: color 0.2s; }
a:hover, a:focus { color: #56A3C9; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    color: #154870;
    margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; }
p, ul, ol { font-size: 1rem; margin-bottom: 10px; }
ul,ol{ padding-left: 24px; }
strong { font-weight: bold; }

input[type="search"] {
  font-size: 1rem;
  padding: 12px 16px;
  width: 100%;
  border-radius: 24px;
  border: 2px solid #56A3C9;
  margin-top: 10px;
  background: #fff;
  transition: border 0.2s;
  outline: none;
}
input[type="search"]:focus {
  border-color: #154870;
}

/* Container Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
section,
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(86,163,201,0.07);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-grid, .service-preview, .service-list, .value-list, .testimonials-preview, .testimonials-list, .course-list, .post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  flex-direction: row;
}
.feature, .service-preview > div, .service-list > div, .value-list > div, .course-list > div, .post-list > div {
  background: #F5F7FA;
  flex: 1 1 calc(50% - 12px);
  border-radius: 16px;
  padding: 26px 22px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 2px 8px 0 rgba(21,72,112,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature:hover, .service-list > div:hover, .course-list > div:hover, .post-list > div:hover, .value-list > div:hover {
  box-shadow: 0 6px 18px 0 rgba(86,163,201,0.26);
  transform: translateY(-2px) scale(1.03);
  z-index: 2;
}
.feature img, .service-preview img, .service-list img, .value-list img, .course-list img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(21,72,112,0.12);
  padding: 32px 24px 22px 24px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
}

.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;
  background: #fff;
  color: #154870;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(21,72,112,0.15);
  flex: 1 1 340px;
  min-width: 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px 0 rgba(86,163,201,0.20);
  transform: scale(1.03) translateY(-3px);
}
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
}
.stars img {
  width: 20px; height: 20px; display: inline-block;
}

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

.value-list {
  margin-bottom: 0;
}
.timeline ul { list-style: none; padding: 0; }
.timeline li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  font-weight: 500;
  color: #154870;
  font-size: 1.07rem;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  background: #56A3C9;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #F5F7FA;
}

.category {
  display: inline-block;
  margin-top: 12px;
  background: #56A3C9;
  color: #fff;
  border-radius: 18px;
  padding: 4px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
  background: #56A3C9;
  padding: 62px 0 42px 0;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 24px 0 rgba(21,72,112,0.13);
  color: #fff;
  margin-bottom: 60px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section h1,
.hero-section p {
  color: #fff;
}
.hero-section h1 {
  font-size: 2.7rem;
  text-shadow: 0 2px 10px rgba(21,72,112,0.13);
}
.hero-section .cta-button {
  background: #fff;
  color: #154870;
  border: 2px solid #fff;
  margin-top: 18px;
}
.hero-section .cta-button:hover { background: #F5F7FA; color: #56A3C9; border: 2px solid #154870; }

/* Call To Action Button */
.cta-button {
  display: inline-block;
  background: #154870;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 700;
  border: none;
  border-radius: 32px;
  padding: 14px 36px;
  box-shadow: 0 2px 12px 0 rgba(21,72,112,0.13);
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.15s, color 0.15s, transform 0.13s, box-shadow 0.21s;
}
.cta-button:hover, .cta-button:focus {
  background: #56A3C9;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 7px 24px rgba(86,163,201, 0.15);
  outline: none;
}

/* Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 5px 24px 0 rgba(21,72,112,0.09);
  position: sticky; top: 0; z-index: 100;
  min-height: 74px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.7px;
  font-size: 1rem;
  color: #154870;
  padding: 8px 16px;
  border-radius: 21px;
  transition: background 0.11s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #56A3C9;
  color: #fff;
}
header img[alt="CzasPlus"] { height: 42px; margin-right: 14px; }

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: #56A3C9;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.16s, transform 0.16s;
  z-index: 205;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #154870;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: -100%;
  width: 100vw; height: 100vh;
  background: #56A3C9;
  box-shadow: -8px 0 28px rgba(21,72,112,0.14);
  z-index: 2000;
  transition: transform 0.38s cubic-bezier(.38,1.31,.57,.96);
  transform: translateX(100%);
}
.mobile-menu.open {
  transform: translateX(0) !important;
  right: 0;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #fff;
  padding: 20px 24px 10px 24px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 2010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5F7FA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1.1px;
  padding: 10px 30px;
  border-radius: 20px;
  transition: background 0.12s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: #154870;
}

/* Footer */
footer {
  background: #154870;
  color: #fff;
  padding: 50px 0 32px 0;
  box-shadow: 0 -5px 26px 0 rgba(21,72,112,.09);
  margin-top: 60px;
  border-radius: 38px 38px 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F5F7FA;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 16px;
  transition: background 0.13s,color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #56A3C9;
  color: #fff;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 3px;
}
.social-icons img { width: 38px; height: 38px; filter: brightness(1.15);}
.footer-info { margin-top: 18px; font-size: 0.95rem; color: #F5F7FA; }

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw; z-index: 3000;
  background: #154870;
  color: #fff;
  padding: 25px 20px 19px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px 18px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 30px 0 rgba(21,72,112,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  flex: 2 0 280px;
  font-size: 1rem;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 18px;
  padding: 9px 22px;
  border: none;
  background: #56A3C9;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-left: 19px;
  box-shadow: 0 2px 8px rgba(21,72,112,0.07);
  transition: background 0.17s, color 0.15s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: #154870;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #154870;
  border: 1.5px solid #56A3C9;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #56A3C9;
  color: #fff;
}

.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,72,112,0.78);
  z-index: 3200;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.35s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  width: 98%;
  max-width: 420px;
  background: #fff;
  color: #154870;
  border-radius: 20px;
  box-shadow: 0 6px 40px 0 rgba(21,72,112,0.24);
  padding: 32px 19px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.35rem;
  margin-bottom: 9px;
}
.cookie-modal-content label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 0 9px 0;
}
.cookie-modal-content input[type='checkbox'] {
  accent-color: #56A3C9;
  width: 22px;
  height: 22px;
}
.cookie-modal-content .cookie-btn {
  width: 100%;
  margin: 8px 0 0 0;
}
.cookie-modal-content .cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #154870;
  position: absolute;
  top: 16px; right: 16px;
  cursor: pointer;
}
.cookie-modal-content .cookie-modal-close:hover {
  color: #56A3C9;
}

/* Utility Classes */
.hide { display: none!important; }
.text-center { text-align: center!important; }
.text-right { text-align: right!important; }
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-24 { margin-top: 24px!important; }
.mb-24 { margin-bottom: 24px!important; }

/* Responsive (Mobile First, Expand for >= 768px) */
@media (max-width: 1000px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid, .service-preview, .service-list, .value-list, .testimonials-preview, .content-wrapper, .testimonials-list, .course-list, .post-list, .footer .container {
    flex-direction: column;
    align-items: stretch!important;
    gap: 24px;
  }
  .feature, .service-preview > div, .service-list > div, .value-list > div, .course-list > div, .post-list > div {
    max-width: 100%; min-width: 0;
  }
}
@media (max-width: 830px) {
  .main-nav { gap: 8px; }
  .footer .container { gap: 18px 10px; padding: 0 10px; }
  .footer-nav, .social-icons { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .section, section, .hero-section {
    padding: 32px 6px;
    margin-bottom: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(21,72,112,0.09);
  }
  .testimonial-card, .feature, .service-list > div, .course-list > div {
    padding: 18px 11px;
    font-size: 0.98rem;
  }
  .hero-section { border-radius: 0 0 20px 20px; }
  header .container { padding: 0 6px; gap: 12px; }
  .footer .container { flex-direction: column; gap: 20px; alignment: center; }
  .social-icons { margin-bottom: 15px; }
}
@media (max-width: 650px) {
  .main-nav {
    display: none;
  }
  .cta-button { margin: 8px 0 0 0; }
  .mobile-menu-toggle { display: flex!important; }
}
@media (max-width: 470px) {
  body { font-size: 14px; }
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.08rem; }
  .footer .container, .container { padding: 0 4px; }
  .hero-section { padding: 16px 0 10px 0; }
  .feature-grid, .service-list, .testimonials-preview, .course-list, .post-list { gap: 12px; }
}

/* Animations */
.cta-button, .feature, .testimonial-card, .service-list > div,
.value-list > div, .course-list > div, .post-list > div {
  transition: box-shadow 0.17s, transform 0.18s;
}
.feature:hover, .testimonial-card:hover, .service-list > div:hover, .course-list > div:hover, .post-list > div:hover {
  box-shadow: 0 7px 22px 0 rgba(86,163,201,0.22);
  transform: translateY(-3px) scale(1.04);
}

/* Accessibility & Visual Focus */
a:focus, .cta-button:focus, .main-nav a:focus, .footer-nav a:focus, .cookie-btn:focus, .mobile-nav a:focus {
    outline: 2px solid #56A3C9;
    outline-offset: 2px;
    box-shadow:0 2px 8px #56A3C980;
    background: #F5F7FA;
    color: #154870;
}

/* --- Vibrant Energetic Card Border Accents --- */
.feature, .testimonial-card, .service-list > div, .course-list > div, .post-list > div {
    border-left: 6px solid #56A3C9;
}
.feature:nth-child(2), .service-list > div:nth-child(2), .course-list > div:nth-child(2), .post-list > div:nth-child(2) { border-left: 6px solid #154870; }
.feature:nth-child(3), .service-list > div:nth-child(3), .course-list > div:nth-child(3), .post-list > div:nth-child(3) { border-left: 6px solid #FDC500; }
/* (FDC500 added as extra accent for vibrancy) */

/* --- Unique for Blog search input --- */
input[type="search"] {
  border: 2px solid #56A3C9;
  background: #fff;
  border-radius: 22px;
  font-size: 1rem;
  transition: border 0.23s;
}
input[type="search"]:hover, input[type="search"]:focus {
  border: 2.5px solid #154870;
  box-shadow: 0 4px 16px 0 rgba(21,72,112,0.13);
}

/* --- List and Timeline steps adjustments --- */
.timeline li:before {
  background: linear-gradient(135deg, #56A3C9 60%, #FDC500 100%);
  box-shadow: 0 0 0 4px #F5F7FA;
}
ul > li::marker, ol > li::marker {
  color: #56A3C9;
  font-weight: bold;
}

/* --- Toast-like notifications --- */
.toast-message {
  position: fixed; right: 16px; bottom: 24px;
  min-width: 180px;
  padding: 19px 24px;
  background: #fff;
  color: #154870;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(21,72,112,0.14);
  z-index: 4200;
  font-size: 1.03rem;
  opacity: 0; pointer-events: none; transition: opacity 0.7s;
}
.toast-message.active {
  opacity: 1; pointer-events: auto;
}

/* High contrast for testimonials text */
.testimonial-card p, .testimonial-card h4 {
  color: #154870;
}

/* Misc: visually separate multiple content-wrapper sections under one .container */
.container > .content-wrapper + .content-wrapper {
  margin-top: 24px;
}

/* Ensure all cards, features, testimonials minimum spacing */
.feature, .service-list > div, .value-list > div, .testimonials-list > .testimonial-card,
.course-list > div, .post-list > div {
  margin-right: 0;
  margin-bottom: 20px;
}

/* Form elements and buttons base */
button, .cookie-btn {
  font-family: inherit;
  background: #154870;
  color: #fff;
  border-radius: 18px;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
button:hover, button:focus { background: #56A3C9; color: #fff; }

/* For header z-index stacking with burger/cookie-banner */
header { z-index: 1010; }

/* Hide mobile menu by default */
@media (min-width:651px) { .mobile-menu-toggle, .mobile-menu { display: none!important; } }

/* Hamburger always on top */
@media (max-width: 650px) {
  .mobile-menu-toggle { display: flex!important; align-items: center; justify-content: center; }
  .main-nav { display: none !important; }
}
/* --- End CSS --- */

/* Font Face for fallback if not loaded by browser link 
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
*/
