/* ---------------- CSS RESET & NORMALIZATION ---------------- */
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,main,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  height: 100%;
  line-height: 1.6;
  background: #fff;
  color: #21395C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img,svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button,input,select,textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
  box-shadow: none;
}
ul,ol {
  margin-left: 24px;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #21395C;
}
::selection {
  background: #5E8CB0;
  color: #fff;
}
hr {
  border: none;
  border-bottom: 1.5px solid #E2E6EB;
  margin: 32px 0;
}

/* ---- CSS VARIABLES FALLBACKS ---- */
:root {
  --primary: #21395C;
  --secondary: #5E8CB0;
  --accent: #E2E6EB;
  --bg: #fff;
  --text: #21395C;
  --link-hover: #5E8CB0;
  --danger: #f44336;
  --success: #1bb36e;
}

/* ---------------- LAYOUT ---------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* inner content wrapper for main sections */
.content-wrapper {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 18px;
  color: #21395C;
  margin-top: 12px;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ---------------- TYPOGRAPHY ---------------- */
h1 {
  font-size: 40px;
  margin-bottom: 16px;
  color: #21395C;
}
@media (max-width: 900px) {
  h1 {
    font-size: 32px;
  }
}
h2 {
  font-size: 28px;
  margin-bottom: 14px;
  color: #21395C;
}
h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #21395C;
}
h4,h5,h6 {
  font-size: 18px;
  color: #21395C;
}
p, ul, ol, li {
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
}
strong {
  font-weight: 800;
  color: #21395C;
  letter-spacing: 0.01em;
}
em {
  color: #5E8CB0;
  font-style: normal;
  font-weight: 600;
}

a:hover, .mobile-nav a:hover, nav a:hover {
  color: var(--secondary);
}

/* ---------------- NAV ---------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #E2E6EB;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
header nav a {
  color: #21395C;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.15s;
}
header nav a:hover {
  background: #5E8CB0;
  color: #fff;
  text-decoration: none;
}
header img {
  height: 40px;
  width: auto;
  display: block;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  background: #21395C;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(33,57,92,0.09);
  cursor: pointer;
  transition: background 0.2s, transform 0.17s, box-shadow 0.22s;
  margin-left: 24px;
  margin-top: 0;
  margin-bottom: 0;
}
.cta-btn.secondary {
  background: #5E8CB0;
  color: #fff;
}
.cta-btn:hover, .cta-btn:focus {
  background: #5E8CB0;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px 0 rgba(33,57,92,0.20);
}

/* Hide default menu on small screens */
@media (max-width: 900px) {
  header nav,
  .cta-btn {
    display: none;
  }
}


/* ---------------- MOBILE NAVIGATION ---------------- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #21395C;
  background: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  border: 2px solid #E2E6EB;
  position: relative;
  cursor: pointer;
  z-index: 2001;
  box-shadow: 0 3px 12px 0 rgba(33,57,92,0.08);
  transition: box-shadow 0.2s, background 0.25s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: #E2E6EB;
  box-shadow: 0 5px 22px 0 rgba(33,57,92,0.15);
}
@media (min-width: 901px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,57,92,0.89);
  box-shadow: 0 0 0 9999px rgba(33,57,92,0.85);
  z-index: 3000;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.28s cubic-bezier(.4,.4,.25,1), transform 0.38s cubic-bezier(.44,1.21,.27,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 38px;
  color: #fff;
  background: none;
  border-radius: 50%;
  border: 2px solid #fff;
  margin: 22px 22px 0 0;
  width: 44px; height: 44px;
  align-self: flex-end;
  cursor: pointer;
  transition: border 0.2s, background 0.22s;
}
.mobile-menu-close:hover {
  background: #5E8CB0;
  border: 2px solid #5E8CB0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 54px 48px 36px 48px;
  min-width: 260px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  padding: 10px 0 10px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.18s;
}
.mobile-nav a:hover {
  background: rgba(94,140,176, 0.6);
  color: #E2E6EB;
}
.mobile-menu.open {
  animation: mobileMenuIn 0.38s cubic-bezier(.44,1.21,.27,1);
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

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

/* ---------------- MAIN LAYOUT FLEXBOX ---------------- */
main {
  flex: 1 0 auto;
  width: 100%;
  background: #fff;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 2px solid #E2E6EB;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(33,57,92,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  transition: box-shadow 0.2s, border-color 0.17s, transform 0.18s;
}
.card:hover {
  border-color: #5E8CB0;
  box-shadow: 0 4px 28px 0 rgba(33,57,92,0.15);
  transform: translateY(-3px) scale(1.03);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 2.5px solid #5E8CB0;
  border-radius: 22px;
  padding: 20px 26px;
  margin-bottom: 24px;
  margin-top: 10px;
  box-shadow: 0 4px 18px 0 rgba(33,57,92,.08);
  font-size: 17px;
  color: #21395C;
  transition: box-shadow 0.18s, border-color 0.2s;
  min-width: 230px;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #5E8CB0;
  margin-top: 8px;
}
.testimonial-card:hover {
  border-color: #21395C;
  box-shadow: 0 6px 32px 0 rgba(33,57,92,0.14);
}

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

/* FAQ, Card-grid, Feature list */
dl, ul {
  margin-top: 6px;
  margin-bottom: 22px;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #21395C;
  margin-top: 18px;
}
dd {
  font-size: 16px;
  color: #5E8CB0;
  margin-top: 5px;
  margin-left: 0;
  margin-bottom: 9px;
}


/* ---------------- FOOTER ---------------- */
footer {
  background: #21395C;
  color: #fff;
  padding: 36px 0 18px 0;
  width: 100%;
  min-height: 120px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  color: #E2E6EB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.18s;
}
footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}
footer img {
  height: 38px;
  width: auto;
  margin-bottom: 10px;
}
footer div:last-child {
  font-size: 15px;
  color: #E2E6EB;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  footer nav {
    gap: 15px;
  }
}

/* ---------------- BUTTONS & INTERACTIONS ---------------- */
button, .cta-btn {
  outline: none;
  border: none;
  cursor: pointer;
}
button:active, .cta-btn:active {
  transform: scale(0.98);
}

/* Micro-interactions for links */
a, .cta-btn, .mobile-nav a {
  transition: color 0.15s, background 0.19s, box-shadow 0.20s;
}

/* ---------------- RESPONSIVE DESIGN ---------------- */
@media (max-width: 900px) {
  .container {
    padding: 0 13px;
  }
  .section {
    padding: 30px 7px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    padding: 0;
    gap: 14px;
  }
  h1 { font-size: 29px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
}
@media (max-width: 600px) {
  .card, .testimonial-card {
    padding: 15px 8px;
    border-radius: 12px;
  }
  .card-container, .content-grid {
    gap: 11px;
  }
}

/* ---------------- ADDITIONAL COMPONENTS ---------------- */
/* Feature/Offer Cards List */
ul > li {
  margin-bottom: 18px;
  padding-left: 0;
}
ul > li:last-child { margin-bottom: 0; }

/* Decorative geometric underline (modern_bold accent) */
h1, h2 {
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  border-radius: 2px;
  background: #5E8CB0;
  margin-top: 9px;
}

hr {
  border: none;
  border-bottom: 2px solid #E2E6EB;
  margin: 20px 0;
}

/* ---------------- ICONS & BADGES ---------------- */
.content-wrapper img[alt="Certyfikat"],
.content-wrapper img[alt^="PFRN"],
.content-wrapper img[alt^="ISO"],
.content-wrapper img[alt*="Certyfikat"] {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 14px 0 0;
  height: 52px;
  width: auto;
}
@media (max-width: 600px) {
  .content-wrapper img[alt="Certyfikat"],
  .content-wrapper img[alt^="PFRN"],
  .content-wrapper img[alt^="ISO"],
  .content-wrapper img[alt*="Certyfikat"] {
    height: 32px;
    margin-right: 7px;
  }
}

/* ------ Spacing and alignment for critical layout ------- */
.section,
.card-container,
.card,
.content-grid,
.text-image-section,
.testimonial-card,
.feature-item {
  /* Provided by layout section(s) above */
}

/* ---------------- COOKIE CONSENT BANNER ---------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #21395C;
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -3px 18px 0 rgba(33,57,92,0.14);
  animation: cookieBannerIn 0.27s cubic-bezier(.46,1.95,.47,0.92);
}
@keyframes cookieBannerIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  font-size: 15px;
  color: #fff;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 5px;
}
.cookie-consent-banner button {
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  box-shadow: 0 1.5px 7px 0 rgba(33,57,92,.10);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
.cookie-consent-banner .accept {
  background: #5E8CB0;
  color: #fff;
}
.cookie-consent-banner .accept:hover {
  background: #1bb36e;
}
.cookie-consent-banner .reject {
  background: #fff;
  color: #21395C;
  border: 2px solid #5E8CB0;
}
.cookie-consent-banner .reject:hover {
  background: #f44336;
  border-color: #f44336;
  color: #fff;
}
.cookie-consent-banner .settings {
  background: #21395C;
  color: #fff;
  border: 2px solid #5E8CB0;
}
.cookie-consent-banner .settings:hover {
  background: #5E8CB0;
  color: #fff;
}
@media (min-width: 500px) {
  .cookie-consent-banner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding: 19px 42px;
  }
}

/* ---------------- COOKIE MODAL ---------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4010;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,57,92,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #21395C;
  border-radius: 20px;
  padding: 36px 30px 26px 30px;
  min-width: 310px;
  max-width: 94vw;
  box-shadow: 0 8px 36px 0 rgba(33,57,92,0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: cookieModalIn 0.31s cubic-bezier(.43,1.64,.46,1.01);
  position: relative;
}
@keyframes cookieModalIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 7px;
  color: #21395C;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #E2E6EB;
  border-radius: 12px;
  padding: 13px 17px;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100%;
}
.cookie-category label {
  font-weight: 600;
  color: #21395C;
}
.cookie-category .switch {
  margin-left: 18px;
  display: flex;
}
.cookie-category input[type="checkbox"] {
  width: 36px;
  height: 20px;
  appearance: none;
  border-radius: 14px;
  background: #d1d5db;
  position: relative;
  outline: none;
  transition: background 0.16s;
  margin: 0 0 0 7px;
}
.cookie-category input[type="checkbox"]:checked {
  background: #5E8CB0;
}
.cookie-category input[type="checkbox"]:disabled {
  opacity: 0.4;
}
.cookie-category input[type="checkbox"]:before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1.7px;
  box-shadow: 0 1px 3px 0 rgba(33,57,92,0.16);
  transition: transform 0.20s;
}
.cookie-category input[type="checkbox"]:checked:before {
  transform: translateX(15px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-actions button {
  padding: 9px 18px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 26px;
  color: #5E8CB0;
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transition: background 0.15s;
}
.cookie-modal-close:hover {
  background: #E2E6EB;
}
.cookie-modal-actions .accept {
  background: #5E8CB0;
  color: #fff;
}
.cookie-modal-actions .accept:hover {
  background: #1bb36e;
}
.cookie-modal-actions .reject {
  background: #fff;
  color: #21395C;
  border: 2px solid #5E8CB0;
}
.cookie-modal-actions .reject:hover {
  background: #f44336;
  color: #fff;
  border-color: #f44336;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 20px 6vw 15px 6vw;
    min-width: 0;
  }
}

/* -------- UTILS --------- */
.mt-0 { margin-top:0; }
.mb-0 { margin-bottom:0; }
.mt-16 { margin-top:16px; }
.mb-16 { margin-bottom:16px; }
.mt-32 { margin-top:32px; }
.mb-32 { margin-bottom:32px; }

/* Hide visually-only (e.g., cookie modal hidden by default) */
[hidden] { display: none !important; }

/* ---------------- END CSS ---------------- */
