/* CSS RESET & BASE ------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #F7F7F7;
  color: #213E60;
  min-height: 100vh;
  line-height: 1.6;
  transition: background 0.2s;
}
img { max-width: 100%; display: block; height: auto; border: 0; }
a { color: #0E7DF7; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #65B34B; text-decoration: underline; }
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  cursor: pointer;
}
ul, ol { padding-left: 1.3em; margin-bottom: 1em; }
main { flex: 1 0 auto; }
:focus { outline: 2px solid #0E7DF7; outline-offset: 2px; }

/* UTILITIES --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(33,62,96, 0.10), 0 1.5px 5.5px rgba(101,179,75,0.07);
  margin-bottom: 24px;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TYPOGRAPHY -------------------------------------------------------------- */
h1,h2,h3,h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.16;
  color: #213E60;
  margin-bottom: 20px;
}
h2 { font-size: 2rem; color: #0E7DF7; margin-bottom: 16px; }
h3 { font-size: 1.3rem;  color: #213E60; }
h4 { font-size: 1.1rem; }
p, ul, ol, li, span { font-size: 1rem; color: #213E60; }
.text-section p,
.text-section ul, .text-section ol {
  max-width: 700px;
}
strong { color: #1EC89C; font-weight: 700; }

/* HERO SECTIONS ----------------------------------------------------------- */
.hero {
  padding: 48px 0 32px;
  background: linear-gradient(90deg, #0E7DF7 0%, #213E60 100%);
}
.hero .container {
  display: flex;
  flex-direction: column;
}
.hero .content-wrapper {
  color: #fff;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 28px rgba(33,62,96,0.08);
}
.hero p { color: #f7f7f7; margin-bottom: 22px; font-size: 1.15rem; line-height: 1.7; }

/* CALL TO ACTION BUTTON --------------------------------------------------- */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: #65B34B;
  border: none;
  border-radius: 30px;
  padding: 15px 38px;
  margin-top: 8px;
  transition: background 0.16s, transform 0.13s, box-shadow 0.16s;
  box-shadow: 0 3px 20px rgba(33,62,96, 0.13);
  letter-spacing: 0.7px;
  text-shadow: 0 0.5px 2px rgba(101,179,75,0.12);
}
.cta-btn:hover, .cta-btn:focus {
  background: #1EC89C;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 30px rgba(33,62,96,0.18);
  text-decoration: none;
}
.cta-link { margin-top: 26px; }

/* SECTIONS, CARDS & LISTS ------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section.cta {
  background: #1EC89C;
  border-radius: 20px;
  box-shadow: 0 2px 26px rgba(33,62,96,0.05);
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  padding: 42px 15px;
}
section.cta h2 {
  color: #fff;
}
section.cta p {
  color: #f7f7f7;
  margin-top: 18px;
}

ul li, ol li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
  min-height: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}
ol {
  counter-reset: num;
}
ol li:before {
  content: counter(num) ".";
  counter-increment: num;
  color: #0E7DF7;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-family: 'Montserrat', sans-serif;
}

/* COURSE LIST & CARDS ----------------------------------------------------- */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}
.course-item {
  padding: 22px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(33,62,96,0.10);
  min-width: 0;
  transition: box-shadow 0.18s, transform 0.14s;
}
.course-item:hover, .course-item:focus-within {
  box-shadow: 0 7px 32px rgba(33,62,96,0.14);
  transform: translateY(-2px) scale(1.016);
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.category-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 12px rgba(33,62,96,0.07);
  padding: 24px 18px;
  flex: 1 1 240px;
  min-width: 210px;
  transition: box-shadow 0.16s, transform 0.12s;
  margin-bottom: 0;
  text-align: center;
}
.category-grid > div:hover {
  box-shadow: 0 7px 30px rgba(33,62,96,0.11);
  transform: translateY(-3px) scale(1.022);
}
.category-grid img {
  width: 38px; height: 38px; margin-bottom: 13px;
}

.filter-options {
  margin: 10px 0 20px;
  font-size: 0.98rem;
  color: #739eec;
  font-weight: 700;
  letter-spacing: .25px;
}

.course-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 0;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.course-highlights li {
  background: #0E7DF7;
  color: #fff;
  border-radius: 13px;
  padding: 9px 19px;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  min-width: 200px;
  box-shadow: 0 1.5px 7px rgba(33,62,96,0.06);
}
.course-highlights img {
  margin-right: 11px; width: 21px; height: 21px;
}

/* TEAM --------------------------------------------------------------------- */
.team-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-member {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2.5px 13px rgba(33,62,96,0.08);
  padding: 26px 17px;
  min-width: 180px;
  flex: 1 1 220px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.team-member:hover {
  box-shadow: 0 8px 38px rgba(33,62,96,0.17);
  transform: translateY(-2px) scale(1.034);
}
.team-member h3 {
  color: #0E7DF7;
  margin-bottom: 7px;
}
.team-member p { color: #213E60; }

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  font-size: 1.1rem;
}
.trust-signals img { width: 31px; height: 31px; margin-right: 6px; }
.trust-signals span { color: #1EC89C; font-weight: 600; }

/* BLOG LIST ---------------------------------------------------------------- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-list article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(33,62,96,0.11);
  padding: 24px 22px;
  transition: box-shadow 0.15s, transform 0.12s;
}
.blog-list article:hover {
  box-shadow: 0 7px 32px rgba(101,179,75,.15);
  transform: translateY(-2px);
}

/* FAQ LIST ----------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(33,62,96,0.09);
  padding: 22px 19px;
  transition: box-shadow 0.15s, transform 0.12s;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 8px 29px rgba(33,62,96,0.13);
  transform: translateY(-2px) scale(1.012);
}
.faq-item h3 {
  color: #0E7DF7;
  margin-bottom: 6px;
}

/* TESTIMONIALS ------------------------------------------------------------- */
.testimonials {
  background: #F7F7F7;
  border-radius: 14px;
  padding-top: 38px;
  margin-bottom: 36px;
}
.testimonials h2 { color: #1EC89C; }
.testimonial-card {
  background: #fff;
  color: #213E60;
  border-left: 5px solid #65B34B;
  box-shadow: 0 3px 20px rgba(33,62,96,0.08);
  margin-bottom: 28px;
  font-size: 1.08rem;
}
.testimonial-card p {
  flex-basis: 100%;
  color: #213E60;
}
.testimonial-card span {
  color: #0E7DF7;
  font-size: 0.98rem;
  font-weight: 700;
  margin-left: 8px;
}
.testimonials .content-wrapper:last-child {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: #65B34B;
  font-weight: 600;
  font-size: 1.04rem;
}
.testimonials .content-wrapper:last-child img {
  width: 25px;
  height: 25px;
}

/* FOOTER ------------------------------------------------------------------- */
footer {
  background: #213E60;
  color: #fff;
  padding: 45px 0 30px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
footer nav a {
  color: #fffffd;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.18s;
}
footer nav a:hover { color: #1EC89C; }
.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.footer-contact span, .footer-contact a {
  color: #f7f7f7;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact img {
  width: 20px; height: 20px;
}
.footer-social {
  display: flex;
  gap: 15px; margin-top: 6px;
}
.footer-social img {
  width: 32px; height: 32px;
  transition: filter 0.12s;
  filter: grayscale(0.15);
}
.footer-social a:hover img {
  filter: brightness(1.25) saturate(1.7) drop-shadow(0 0 6px #1EC89C);
}
.footer-copy {
  font-size: 0.97rem;
  color: #d0f0e7;
  text-align: center;
  opacity: 0.88;
}

/* HEADER & NAVIGATION ------------------------------------------------------ */
header {
  position: relative;
  background: #fff;
  z-index: 50;
  box-shadow: 0 1.5px 12px rgba(33,62,96,0.04);
}
header .container {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  justify-content: space-between;
}
header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  color: #213E60;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .13px;
  padding: 8px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: #1EC89C;
  color: #fff;
}
header img {
  height: 42px;
  width: auto;
}
.mobile-menu-toggle {
  display: none;
  background: #0E7DF7;
  color: #fff;
  border: none;
  font-size: 2.3rem;
  border-radius: 12px;
  padding: 5px 17px;
  line-height: 1;
  margin-left: 10px;
  transition: background 0.18s, box-shadow 0.15s;
  box-shadow: 0 1.5px 8px rgba(33,62,96,0.08);
}
.mobile-menu-toggle:hover,.mobile-menu-toggle:focus {
  background: #1EC89C;
  color: #fff;
}

/* MOBILE MENU ------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,62,96, 0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.69,.18,.57,1.08);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  margin: 18px 24px 6px 0;
  padding: 2px 7px;
  cursor: pointer;
  transition: background 0.13s;
}
.mobile-menu-close:hover {
  background: #1EC89C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 40px;
  margin-top: 10px;
  flex: 1 0 auto;
  width: 100vw;
  max-width: 360px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: none;
  border-radius: 7px;
  padding: 11px 10px;
  width: 100%;
  display: block;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover {
  background: #65B34B;
  color: #fff;
}

/* Only show .mobile-menu-toggle on mobile, hide nav ---------------------- */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 500px) {
  .mobile-nav {
    padding: 32px 16px;
  }
}

/* CONFIRMATION SECTION ---------------------------------------------------- */
.confirmation-section {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(101,179,75,0.11);
  padding: 36px 20px 38px;
  margin-top: 25px;
}
.confirmation-section h1 {
  margin-bottom: 20px;
  color: #1EC89C;
}
.confirmation-section a {
  margin-top: 26px;
}

/* CONTACT INFO ------------------------------------------------------------ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info a { color: #0E7DF7; }
.contact-info img {
  width: 22px;
  height: 22px;
  margin-right: 0;
}
.contact-map p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-map img {
  width: 33px;
  height: 33px;
}

/* COOKIE CONSENT BANNER --------------------------------------------------- */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 12000;
  background: #213E60;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 16px 16px;
  box-shadow: 0 -5px 30px rgba(33,62,96,0.14);
  transition: transform 0.38s cubic-bezier(.46,1.35,.56,.98), opacity 0.33s;
  opacity: 1;
  transform: translateY(0);
}
#cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
#cookie-consent-banner p {
  color: #fff;
  font-size: 1rem;
  max-width: 800px;
  text-align: center;
}
#cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 17px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  background: #0E7DF7;
  color: #fff;
  border: none;
  border-radius: 27px;
  padding: 10px 28px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  margin-right: 2px;
  transition: background 0.15s, transform 0.12s;
  box-shadow: 0 1.5px 8px rgba(101,179,75,0.09);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #65B34B;
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.cookie-btn.settings {
  background: #fff;
  color: #0E7DF7;
  border: 2px solid #0E7DF7;
}
.cookie-btn.settings:hover {
  background: #1EC89C;
  color: #fff;
  border-color: #1EC89C;
}

/* COOKIE PREFERENCES MODAL ------------------------------------------------ */
#cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,62,96, 0.61);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #213E60;
  border-radius: 25px;
  box-shadow: 0 8px 38px rgba(33,62,96,0.17);
  max-width: 370px;
  width: 90vw;
  padding: 38px 26px 27px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  font-size: 1rem;
  animation: modal-in 0.42s cubic-bezier(.2,1.17,.38,.98);
  position: relative;
}
@keyframes modal-in {
  0% {transform: scale(.80) translateY(32px); opacity: 0;}
  75%{transform: scale(1.03) translateY(-5px); opacity: 1;}
  100%{transform: scale(1) translateY(0);}
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
#cookie-modal-close {
  background: none;
  color: #0E7DF7;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 13px;
  padding: 0 8px;
  border-radius: 7px;
  transition: background 0.13s;
}
#cookie-modal-close:hover { background: #e5f8f2; }
.cookie-category {
  background: #F3F9FF;
  border-radius: 10px;
  padding: 15px 12px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 7px;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #0E7DF7;
}
.cookie-category label { font-weight: 600; color: #213E60; }
.cookie-category.essential {
  color: #B7BABB;
  opacity: .70;
}
.cookie-modal-footer {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-footer .cookie-btn {
  min-width: 110px;
}

/* PROGRESS DEMO (Jak to dziala) ------------------------------------------- */
.progress-demo {
  display: flex; align-items: center; gap: 15px; margin-top: 13px;
}
.progress-demo img {
  width: 32px;
  height: 32px;
}
.progress-demo p {
  font-weight: 600;
  color: #65B34B;
  font-size: 1.01rem;
  margin-bottom: 0;
}

/* RESPONSIVE DESIGN ------------------------------------------------------- */
@media (max-width: 925px) {
  .container { max-width: 98vw; }
  .content-wrapper { padding: 0 6px; }
  section, .section { padding-left: 8px; padding-right: 8px; }
  .course-highlights ul { flex-direction: column; align-items: flex-start; }
  .category-grid { gap: 16px; }
}
@media (max-width: 768px) {
  .container { padding: 0 5px; }
  .content-wrapper { max-width: 99vw; }
  .category-grid { flex-direction: column; }
  .team-wrapper { gap: 16px; flex-direction: column; }
  .team-member { min-width: 0; }
  .footer-contact { flex-direction: column; gap: 10px; }
  .blog-list, .course-list, .faq-list { gap: 18px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 7px; }
  .section, section { padding: 25px 6px; }
  header .container { gap: 11px; min-height: 58px; }
  .content-grid { flex-direction: column; gap: 13px; }
  .text-image-section { flex-direction: column; align-items: center; gap: 19px; }
  .progress-demo { flex-direction: column; gap: 8px; }
  .trust-signals { flex-direction: column; gap: 13px; }
  .contact-info { gap: 8px; }
  .confirmation-section { padding: 28px 6px; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  .category-grid > div, .team-member, .testimonial-card, .faq-item, .blog-list article, .course-item {
    padding: 14px 7px;
    font-size: .95rem;
  }
  .section, section { padding: 12px 2px; margin-bottom: 30px; }
  .cta-btn, .cookie-btn { font-size: 1rem; padding: 11px 16px; }
  footer { padding: 28px 0 10px; }
}

/* HOVER, FOCUS AND MICRO-ANIMATIONS --------------------------------------- */
.card, .category-grid > div, .team-member, .course-item, .faq-item, .blog-list article {
  transition: box-shadow 0.13s, transform 0.13s;
}
.card:hover, .category-grid > div:hover, .team-member:hover, .course-item:hover, .faq-item:hover, .blog-list article:hover {
  box-shadow: 0 6px 24px rgba(33,62,96,0.17);
  transform: translateY(-2px) scale(1.017);
}
.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.14s, box-shadow 0.13s, transform 0.12s;
}

/* MISC -------------------------------------------------------------------- */
input[type='search'] {
  width: 100%;
  max-width: 420px;
  padding: 11px 20px;
  border-radius: 30px;
  border: 2px solid #0E7DF7;
  box-shadow: 0 1px 8px rgba(33,62,96,.07);
  font-size: 1rem;
  outline: none;
  margin-top: 12px;
  transition: border-color 0.13s, box-shadow 0.13s;
}
input[type='search']:focus {
  border-color: #1EC89C;
  box-shadow: 0 4px 13px rgba(101,179,75,0.07);
}
::-webkit-input-placeholder { color: #B7BABB; }
::-moz-placeholder { color: #B7BABB; }
:-ms-input-placeholder { color: #B7BABB; }
::placeholder { color: #B7BABB; }

/* Hide scroll bar in modal/mobile nav ------------------------------------- */
.mobile-menu, #cookie-modal {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mobile-menu::-webkit-scrollbar, #cookie-modal::-webkit-scrollbar {display:none}

/* ACCENT COLORS, BADGE-LIKE EFFECTS --------------------------------------- */
.badge {
  display: inline-block;
  background: #0E7DF7;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 22px;
  padding: 4px 14px;
  margin-right: 7px;
  font-weight: 700;
}

/* PRINT ------------------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, #cookie-consent-banner, #cookie-modal { display: none !important; }
  main, .container, .content-wrapper { background: #fff !important; color: #000 !important; }
}
