/* ===================================================================
   Reset & Base Styles (Normalize + Elegant Classic Foundation)
   =================================================================== */

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  background: #f7f8fa;
  color: #222;
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul,ol {
  padding-left: 1.3em;
}
ul li, ol li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', "Georgia", serif;
  font-weight: 700;
  color: #25425b;
  margin-bottom: 0.8em;
  line-height: 1.2;
}
h1 { font-size: 2.7rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem;  }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 500; }
a {
  color: #25425b;
  text-decoration: underline;
  transition: color 0.2s;
}
a:focus, a:hover { color: #203445; text-decoration: none; }
strong { font-weight: bold; }
section {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(37,66,91,0.06);
}
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Georgia, serif;
  cursor: pointer;
  border: none;
  outline: none;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #e2e7ef;
  padding: 10px 16px;
}
small {font-size: 0.92em;color: #444;}

/* =============================================
   Layout Containers & Spacing
   ============================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 20px;
  background: #fff;
}

.card-container, .service-cards, .team-cards, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.card, .service-card, .team-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px 0 rgba(37,66,91,0.05);
  padding: 28px 22px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  position: relative;
  min-width: 260px;
  max-width: 350px;
  transition: box-shadow 0.3s;
}
.card:hover, .service-card:hover, .team-card:hover {
  box-shadow: 0 6px 24px 0 rgba(37,66,91,0.13);
  z-index: 1;
}
.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: #e2e7ef;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(37,66,91,0.09);
  margin-bottom: 20px;
  max-width: 640px;
  color: #253544;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================================
   Header & Navigation (Desktop & Mobile)
   ============================================= */
header {
  background: #fff;
  box-shadow: 0 3px 22px 0 rgba(37,66,91,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: #25425b;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
nav a:focus, nav a:hover {
  background: #e2e7ef;
  color: #1b3048;
}
nav a.cta-btn {
  background: #25425b;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  padding: 11px 24px;
  margin-left: 16px;
  box-shadow: 0 2px 5px 0 rgba(37,66,91,0.08);
  text-decoration: none;
  transition: background 0.24s, color 0.15s;
}
nav a.cta-btn:focus, nav a.cta-btn:hover {
  background: #7ea3c6;
  color: #25425b;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: #25425b;
  font-size: 2rem;
  border: none;
  padding: 8px 10px;
  margin-left: 18px;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 1100;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e2e7ef;
}

/* ================
   Mobile Menu Overlay
   ================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f7f8fa;
  box-shadow: -7px 0 25px rgba(37,66,91,0.19);
  z-index: 2000;
  transform: translateX(-102%);
  transition: transform 0.28s cubic-bezier(.67,.09,.33,1.16);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #25425b;
  font-size: 2.1rem;
  padding: 14px 18px 8px 0;
  border-radius: 6px;
  margin: 12px 16px 0 0;
  cursor: pointer;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #e2e7ef;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 38px 20px 28px;
  margin-top: 16px;
}
.mobile-nav a {
  color: #25425b;
  background: none;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.16rem;
  font-weight: 500;
  padding: 13px 0;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.21s, color 0.12s;
  width: 100%;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #e2e7ef;
  color: #1b3048;
}

/* =============================================
   Hero Section, Features, About, Process, etc.
   ============================================= */
.hero {
  background: #e2e7ef;
  padding: 60px 0 46px 0;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 8px 32px 0 rgba(37,66,91,0.07);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 720px;
  gap: 28px;
}
.hero h1 {
  color: #25425b;
  font-size: 2.3rem;
  line-height: 1.15;
}
.hero p {
  font-size: 1.20rem;
  color: #304151;
  margin-bottom: 16px;
}
.hero .cta-btn {
  margin-top: 12px;
}

.features, .values, .benefits, .resources, .learning-paths, .news-feed, .updates, .team-snippet, .about-snippet, .process, .faq {
  margin-bottom: 60px;
  background: #fff;
}
.features ul, .values ul, .benefits ul, .resources ul, .learning-paths ul, .updates ul, .news-feed ul  {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features ul li, .values ul li, .benefits ul li, .resources ul li, .learning-paths ul li, .updates ul li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #e2e7ef;
  border-radius: 13px;
  padding: 24px 20px 18px 20px;
  min-width: 210px;
  font-size: 1.07rem;
  color: #294168;
  box-shadow: 0 1px 5px 0 rgba(37,66,91,0.03);
}
.features ul li img, .values ul li img, .benefits ul li img, .resources ul li img, .learning-paths ul li img, .updates ul li img {
  width: 36px;
  height: 36px;
}

.process ol {
  padding-left: 1.3em;
}
.process li {
  font-size: 1.1rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #e2e7ef;
  border-radius: 11px;
  padding: 18px 22px;
  color: #25425b;
  box-shadow: 0 1px 8px 0 rgba(37,66,91,0.06);
}
.faq-item h3 {
  font-size: 1.16rem;
  font-family: 'Montserrat', Georgia, serif;
  margin-bottom: 6px;
}
.faq-item p {
  color: #2a3c50;
  font-size: 1.04rem;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
}
.comparison th, .comparison td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e7ef;
  font-size: 1rem;
}
.comparison th {
  background: #e2e7ef;
  font-weight: 600;
  color: #25425b;
}
.comparison tbody tr:last-child td {
  border-bottom: none;
}

.cta-strip {
  background: #25425b;
  color: #fff;
  border-radius: 16px;
  padding: 44px 20px 44px 20px;
  box-shadow: 0 6px 24px 0 rgba(37,66,91,0.15);
  margin-bottom: 48px !important;
}
.cta-strip .content-wrapper {
  align-items: center;
  gap: 12px;
  text-align: center;
}
.cta-strip h2 {
  color: #fff;
}
.cta-strip p {
  color: #e2e7ef;
}
.cta-strip .cta-btn {
  margin-top: 10px;
  background: #7ea3c6;
  color: #25425b;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 34px;
  text-decoration: none;
  transition: background 0.2s,color 0.2s;
}
.cta-strip .cta-btn:focus,
.cta-strip .cta-btn:hover {
  background: #fff;
  color: #25425b;
}

/* =============
   Testimonials/Opinie
   ============= */
.testimonials {
  margin-bottom: 60px;
  background: #f5f8fc;
  padding: 40px 0 25px 0;
  border-radius: 18px;
}
.testimonials .testimonial-card {
  background: #fff;
  color: #222;
  border-left: 5px solid #7ea3c6;
  border-radius: 13px;
  margin-bottom: 24px;
  box-shadow: 0 6px 26px 0 rgba(37,66,91,0.06);
  font-size: 1.05rem;
}
.testimonials blockquote {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.14rem;
  color: #304151;
  margin-bottom: 7px;
}
.testimonials strong {
  font-size: 1.02rem;
  color: #25425b;
}

/* =============
   Cards/Service Cards/Team Cards
   ============= */
.card, .service-card, .team-card {
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 15px;
  box-shadow: 0 2px 9px 0 rgba(37,66,91,0.09);
  padding: 26px 20px 22px 20px;
  transition: box-shadow 0.17s;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 360px;
  position: relative;
}
.card h3, .service-card h3, .team-card h3 {
  margin-bottom: 0.8em;
  font-size: 1.22rem;
  color: #294168;
}
.card:hover, .service-card:hover, .team-card:hover {
  box-shadow: 0 10px 36px -4px rgba(37,66,91,0.15);
  border-color: #7ea3c6;
}
.team-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 7px;
}

/* =============
   Contact/Map Block
   ============= */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
.address-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.address-block img {
  width: 23px;
  height: 23px;
  margin-right: 8px;
}
.map-embed {
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 13px;
  padding: 18px;
  flex: 1 1 250px;
  text-align: center;
  box-shadow: 0 2px 9px 0 rgba(37,66,91,0.05);
}

/* =============
   Footer
   ============= */
footer {
  background: #f1f4f8;
  border-top: 2px solid #e2e7ef;
  padding: 30px 0 8px 0;
  margin-top: 60px;
  font-size: 0.98rem;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #25425b;
  font-size: 1rem;
  text-decoration: underline;
  padding: 0;
  font-weight: 400;
  background: none;
}
footer nav a:focus, footer nav a:hover {
  background: none;
  color: #203445;
  text-decoration: none;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #25425b;
  font-size: 0.99em;
}
footer .contact-info img {
  width: 17px;
  height: 17px;
  margin-right: 7px;
}

/* =============
   Legal/Policy Pages
   ============= */
.legal {
  margin-bottom: 60px;
  background: #fff;
  padding: 43px 20px 43px 20px;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(37,66,91,0.05);
}
.legal h1, .legal h2 {
  color: #25425b;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 28px;
}
.legal ul {
  padding-left: 24px;
}
.legal li {
  margin-bottom: 11px;
  list-style-type: disc;
}

.confirmation {
  text-align: center;
  background: #fff;
  padding: 78px 16px 78px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(37,66,91,0.10);
  margin-bottom: 48px;
}

/* ====================================================
   Button Styles, Link Hover, Transitions
   ==================================================== */
.cta-btn,
button,
.mobile-menu-toggle,
.mobile-menu-close {
  outline: none;
  border: none;
  box-shadow: none;
  font-family: 'Montserrat', 'Georgia', serif;
}
.cta-btn {
  background: #25425b;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.12rem;
  padding: 12px 32px;
  margin-top: 16px;
  box-shadow: 0 2px 5px 0 rgba(37,66,91,0.08);
  text-align: center;
  transition: background 0.17s, color 0.13s, box-shadow 0.19s;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #7ea3c6;
  color: #25425b;
  box-shadow: 0 8px 25px 0 rgba(37,66,91,0.18);
}
button[disabled], .cta-btn[disabled] {
  background: #e2e7ef !important;
  color: #888 !important;
  cursor: not-allowed;
}

/* ====================================================
   Cookie Banner & Cookie Modal Styles
   ==================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #25425b;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 24px 18px 24px 30px;
  z-index: 3000;
  box-shadow: 0 -4px 24px 0 rgba(37,66,91,0.11);
  font-size: 1.08em;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(.67,.11,.38,1), opacity 0.23s;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.04rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  margin: 0 0 0 0;
  transition: background 0.18s, color 0.12s;
}
.cookie-banner .accept-btn {
  background: #7ea3c6;
  color: #25425b;
}
.cookie-banner .accept-btn:hover {
  background: #fff;
  color: #25425b;
}
.cookie-banner .reject-btn {
  background: #e2e7ef;
  color: #25425b;
}
.cookie-banner .reject-btn:hover {
  background: #fff2f2;
}
.cookie-banner .settings-btn {
  background: none;
  color: #fff;
  border: 1.5px solid #fff;
  padding: 10px 16px;
}
.cookie-banner .settings-btn:hover {
  background: #fff;
  color: #25425b;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 36px 0 rgba(37,66,91,0.22);
  padding: 32px 26px 26px 26px;
  z-index: 4000;
  transform: translate(-50%, -46%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.2s;
  font-size: 1.07em;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -52%) scale(1.0);
}
.cookie-modal h3 {
  color: #25425b;
  font-size: 1.21em;
  margin-bottom: 9px;
  font-family: 'Montserrat', Georgia, serif;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal label {
  color: #253544;
  font-family: 'Roboto', Georgia, serif;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal input[type=checkbox] {
  accent-color: #25425b;
  width: 16px;
  height: 16px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal button {
  font-family: 'Montserrat', Georgia, serif;
  border-radius: 7px;
  padding: 8px 18px;
  border: none;
  background: #7ea3c6;
  color: #25425b;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
}
.cookie-modal button:hover {
  background: #25425b;
  color: #fff;
}
.cookie-modal .close-modal {
  background: none;
  color: #b7c3d6;
  border: none;
  font-size: 1.5em;
  position: absolute;
  right: 26px;
  top: 17px;
  cursor: pointer;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,24,31,0.24);
  z-index: 3980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* =============================
   Responsive Flexbox Layouts
   ============================= */
@media (max-width: 1160px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 992px) {
  .content-wrapper, footer .content-wrapper, .contact-block {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .service-cards, .content-grid, .team-cards {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .features ul, .values ul, .benefits ul, .resources ul, .learning-paths ul, .updates ul {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  header .container, footer .content-wrapper {
    flex-direction: row;
    gap: 6px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 37px 0 26px 0;
    border-radius: 0 0 19px 19px;
  }
  .section {
    margin-bottom: 36px;
    padding: 25px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    font-size: 1em;
  }
  .card, .service-card, .team-card, .map-embed {
    min-width: 90vw;
    max-width: 100vw;
    padding: 18px 10px;
  }
  .cta-strip {
    padding: 24px 8px 26px 8px;
    border-radius: 9px;
  }
  .faq-item {
    padding: 13px 11px;
  }
  .legal, .confirmation {
    padding: 28px 6px 29px 6px;
    border-radius: 11px;
  }
}
@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 17px 8px 17px 7px;
    font-size: 0.98em;
  }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
}

/* =============================
   Animations & Microinteractions
   ============================= */
.cta-btn, .cookie-modal button, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.15s, box-shadow 0.15s, transform 0.13s;
}
.card, .service-card, .team-card, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.16s, transform 0.11s;
}
.card:hover, .service-card:hover, .team-card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.012);
}
.mobile-menu,
.cookie-banner,
.cookie-modal {
  will-change: transform, opacity;
}

/* =============================
   Miscellaneous
   ============================= */
::-webkit-scrollbar {width:10px;background:#e2e7ef;}
::-webkit-scrollbar-thumb {background:#c2cfe1;border-radius:6px;}
body {scrollbar-color:#c2cfe1 #e2e7ef;}

/* Hide visually */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Space after last content section */
main > section:last-child {
  margin-bottom: 48px;
}

/* Error & Success messages (if used) */
.alert {
  background: #fffbe7;
  border-left: 4px solid #ffd960;
  color: #936900;
  border-radius: 6px;
  padding: 14px 19px;
  margin-bottom: 20px;
}
.alert-success {
  background: #eaffe8;
  border-left-color: #5edc84;
  color: #246439;
}

/* Focus Accessibility Outline */
:focus {
  outline: 2px solid #7ea3c6;
  outline-offset: 1px;
}

/* =============================
   End of CSS
   ============================= */
