/* --- 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,
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8FAFC;
  color: #232B34;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.20s;
}
ul, li {
  list-style: none;
}

/* --- CUSTOM PROPERTIES (with fallback) --- */
:root {
  --primary: #20497A;
  --secondary: #F1F5FB;
  --accent: #F7B32B;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 3px 18px rgba(32, 73, 122, 0.045);
  --shadow-card: 0 2px 5px rgba(32, 73, 122, 0.08);
  --gap: 20px;
  --container-max: 1160px;
}


/* --- LAYOUT COMPONENTS --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.text-section {
  max-width: 820px;
  margin: 0 auto;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(32,73,122,0.10);
}

.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 {
  background: #F1F5FB;
  color: #232B34;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 16px;
  transition: box-shadow 0.16s, background 0.16s;
}
.testimonial-card strong {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--heading-font);
  margin-left: 12px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(32,73,122,0.13);
  background: #e5ebf7;
}

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

.footer-brand,
.footer-contact,
.footer-social,
footer nav {
  margin-bottom: 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.18;
  letter-spacing: -.015em;
}
h1 { font-size: 2.2rem; margin-bottom: 18px; }
h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
h4 { font-size: 1.08rem; }
h5, h6 { font-size: 1rem; }
p {
  font-family: var(--body-font);
  color: #232B34;
  font-size: 1rem;
}
strong {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary);
}

ul li, ol li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.update-date {
  color: #6a7892;
  font-size: 0.97em;
  margin-top: 1em;
}

/* --- BUTTONS & INTERACTIVES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-width: 120px;
  font-family: var(--heading-font);
  font-size: 1.04rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  outline: none;
  margin: 8px 0;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(32,73,122,0.11);
}
.btn-primary:hover, 
.btn-primary:focus {
  background: #174065;
  box-shadow: 0 6px 24px rgba(32,73,122,0.19);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-link {
  background: none;
  color: var(--primary);
  text-decoration: underline;
  padding: 0; min-width: 0;
  box-shadow: none;
  border: none;
  transition: color .15s;
}
.btn-link:hover, .btn-link:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* --- BADGES & SPECIAL ELEMENTS --- */
.course-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--heading-font);
  font-size: 0.95em;
  border-radius: 999px;
  padding: 3px 14px;
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.certifications {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0 0 0;
}

.address-map {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* --- HEADER / NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #e0e7f4;
  box-shadow: 0 1px 8px rgba(32,73,122,0.03);
  position: relative;
  z-index: 50;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 18px 0;
  position: relative;
}
header nav > a img {
  height: 48px;
}

header nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: 20px;
}
header nav ul li a {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--primary);
  border-radius: 6px;
  padding: 6px 14px;
  transition: background .13s, color .13s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--secondary);
  color: #174065;
}

header .btn-primary {
  margin-left: 18px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 32px;
  cursor: pointer;
  margin-left: 16px;
  transition: background .13s, color .13s;
  z-index: 100;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(241, 245, 251, 0.97);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.56,.09,.43,.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 34px;
  font-weight: 700;
  padding: 14px 14px 8px 26px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 18px;
  transition: color .18s;
  z-index: 2001;
}
.mobile-menu .mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding-left: 48px;
}
.mobile-menu nav.mobile-nav a {
  font-size: 1.18rem;
  font-family: var(--heading-font);
  padding: 14px 0 14px 4px;
  color: var(--primary);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.13s, color .18s;
}
.mobile-menu nav.mobile-nav a:hover {
  background: var(--secondary);
  color: #174065;
}


/* --- BLOG LIST GRID --- */
.blog-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.blog-list-grid article {
  background: #F1F5FB;
  border-radius: var(--radius);
  flex: 1 1 310px;
  min-width: 270px;
  padding: 26px 20px 22px 20px;
  margin-bottom: 0;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .15s;
}
.blog-list-grid article:hover {
  box-shadow: 0 6px 22px rgba(32,73,122,0.12);
}

.categories {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.categories a {
  color: var(--primary);
  font-weight: 500;
  font-family: var(--heading-font);
  text-decoration: none;
  transition: color .14s;
  border-radius: 4px;
  padding: 2px 5px;
}
.categories a:hover {
  background: var(--primary);
  color: #fff;
}

/* --- TABLE STYLES (Cennik) --- */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
thead tr {
  background: var(--secondary);
  font-family: var(--heading-font);
}
th, td {
  text-align: left;
  padding: 13px 14px;
  font-size: 1rem;
}
th {
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid #e0e7f4;
}
tbody tr {
  border-bottom: 1px solid #e0e7f4;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody td {
  color: #232B34;
  font-family: var(--body-font);
}
tr:hover td {
  background: #f6faff;
}

/* --- FOOTER --- */
footer {
  background: #20497A;
  color: #fff;
  margin-top: 42px;
  padding: 36px 0 30px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -3px 16px rgba(32,73,122,0.13);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 14px;
}
.footer-brand p {
  color: #f1f5fb;
  font-size: 1.02rem;
  max-width: 260px;
}
footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav ul li a {
  color: #fff;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 2px 0;
  transition: color .13s, background .13s;
}
footer nav ul li a:hover, 
footer nav ul li a:focus {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact p {
  font-size: .98rem;
  color: #d3def0;
  margin-bottom: 6px;
}
.footer-contact strong {
  color: #fff;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  opacity: 0.95;
  transition: filter 0.13s, opacity .12s;
  cursor: pointer;
}
.footer-social img:hover {
  filter: brightness(1.1) saturate(1.18);
  opacity: 1;
}


/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1.5px solid #dde6f4;
  box-shadow: 0 8px 32px rgba(32,73,122,0.10);
  padding: 26px 22px 18px;
  border-radius: 16px 16px 0 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.36s cubic-bezier(.56,.09,.43,.98);
}
.cookie-banner.active {
  transform: translateX(-50%) translateY(0%);
}
.cookie-banner p {
  color: #20497A;
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cookie-banner button {
  padding: 7px 22px;
  font-family: var(--heading-font);
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  margin-right: 5px;
  margin-top: 0;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background .13s, color .14s;
}
.cookie-banner .accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .accept:hover { background: #174065; }
.cookie-banner .reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .reject:hover { background: var(--primary); color: #fff; }
.cookie-banner .settings {
  background: none;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--secondary);
  color: #174065;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%,-50%) scale(0.96);
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #dde6f4;
  box-shadow: 0 12px 64px rgba(32,73,122,0.15);
  z-index: 5000;
  width: 95%;
  max-width: 430px;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 34px 28px 22px 28px;
  animation: cookie-modal-in .26s cubic-bezier(.56,.09,.43,.98);
}
.cookie-modal.active {
  display: flex;
}
@keyframes cookie-modal-in {
  0% { transform: translate(-50%,-64%) scale(.85); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.16rem; color: var(--primary);
  margin-bottom: 3px;
}
.cookie-modal .modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  width: 24px; height: 24px;
  accent-color: var(--primary);
}
.cookie-modal .modal-btns {
  display: flex; gap: 10px; margin-top: 6px;
}
.cookie-modal .save {
  background: var(--primary); color: #fff;
}
.cookie-modal .save:hover {
  background: #174065;
}
.cookie-modal .cancel {
  background: var(--secondary); color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-modal .cancel:hover { background: var(--primary); color: #fff; }

.modal-overlay {
  position: fixed; z-index: 4999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(44, 52, 66, 0.18);
  display: none;
}
.modal-overlay.active { display: block; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1000px) {
  .container {
    max-width: 94vw;
  }
  .footer-brand p { max-width: 210px; }
}

@media (max-width: 900px) {
  .footer-brand p, .footer-contact p { font-size: .97rem; }
  .blog-list-grid article { min-width: 170px; }
  .footer-contact p { font-size: .95rem; }
}
@media (max-width: 768px) {
  section {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper, .content-grid {
    gap: 16px;
  }
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  header nav ul {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .footer-contact p { font-size: .93rem; }
  .blog-list-grid {
    flex-direction: column;
    gap: 17px;
  }
  .blog-list-grid article {
    min-width: 70vw;
    font-size: 1rem;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 650px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-brand img { margin-bottom: 7px; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.13rem; }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex-direction: column;
    gap: 11px;
    font-size: 15px;
    padding: 13px;
  }
  .certifications {
    flex-direction: column;
    gap: 12px;
    padding: 3px 0 0 0;
  }
  .footer-social img {
    width: 22px; height: 22px;
  }
  .cookie-banner, .cookie-modal {
    max-width: 92vw;
    padding: 20px 8px 12px 8px;
  }
  .mobile-menu nav.mobile-nav { padding-left: 18px; }
}

/* --- FOCUS STATES for ACCESSIBILITY --- */
a:focus, button:focus, .btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-banner button:focus, .cookie-modal button:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  background: #fdecd3;
  color: var(--primary);
}

/* --- MICRO-INTERACTIONS --- */
.btn, .btn-primary, .btn-secondary, .btn-link, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal button, footer nav ul li a {
  transition-property: background, color, box-shadow, transform;
  transition-duration: 0.16s;
  transition-timing-function: cubic-bezier(.54,.14,.36,.93);
}
.btn:active, .btn-primary:active, .btn-secondary:active, .btn-link:active {
  transform: translateY(1px) scale(0.98);
}
.mobile-menu.active, .cookie-banner.active, .cookie-modal.active {
  transition-timing-function: cubic-bezier(.56,.09,.43,.98);
}

/* --- MISC & UTILITY --- */
::-webkit-input-placeholder { color: #a3b5d2; opacity: 1; }
::-moz-placeholder { color: #a3b5d2; opacity: 1; }
:-ms-input-placeholder { color: #a3b5d2; opacity: 1; }
::placeholder { color: #a3b5d2; opacity: 1; }

/* Hide scroll when mobile menu/cookie modal active (handle in JS as needed) */
body.menu-open, body.cookie-modal-open { overflow: hidden; }
