/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFD;
  color: #1C2637;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #146C94;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #104665;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #1C2637;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

p, li, dd, dt {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #1C2637;
}

strong, b { font-weight: 600; }

/* Typography scale for modern, clear hierarchy */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

button, .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  padding: 12px 32px;
  background: linear-gradient(90deg, #146C94 30%, #1C2637 100%);
  color: #fff;
  transition: background 0.25s, box-shadow 0.2s, color 0.2s;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(28,38,55,.06);
  letter-spacing: 0.02em;
  display: inline-block;
}
button:hover, .cta:hover, .cta:focus {
  background: linear-gradient(90deg, #205675 15%, #232D3F 100%);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(20,108,148,.10);
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(120deg, #146C94 0%, #78B4D6 100%);
  color: #fff;
  padding: 84px 0 64px;
  margin-bottom: 0;
}
.hero .container { justify-content: center; align-items: center; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1, .hero p {
  color: #fff;
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 32px; }
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 108, 148, 0.07);
  position: sticky;
  top: 0; left: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 18px;
}
header img {
  height: 40px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  color: #1C2637;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
nav a.cta {
  margin-left: 14px;
  background: linear-gradient(90deg, #146C94 30%, #1C2637 100%);
  color: #fff;
}
nav a:hover, nav a:focus {
  background: #E9ECEF;
  color: #146C94;
}
nav a.cta:hover, nav a.cta:focus {
  background: linear-gradient(90deg, #3190C6 30%, #1C2637 100%);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #146C94;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

@media (max-width: 1020px) {
  nav { gap: 14px; }
}
@media (max-width: 900px) {
  nav { gap: 8px; }
  header .container {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 768px) {
  nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #1C2637;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.85,0,.16,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 24px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  width: 48px; height: 48px;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  align-items: center;
  padding: 12px 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  color: #fff;
  padding: 12px 32px;
  border-radius: 12px;
  width: 90vw;
  text-align: center;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #146C94;
  color: #E9ECEF;
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* --- GENERIC CARDS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(20,108,148,.07);
  padding: 26px 26px 18px 26px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(20,108,148,.18);
  transform: translateY(-2px) scale(1.014);
}

.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;
  }
}

.feature-grid, .service-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.feature-grid li, .service-categories-grid > div {
  flex: 1;
  min-width: 260px;
  max-width: 350px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 18px 0 rgba(28,38,55,.06);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  transition: transform 0.17s, box-shadow 0.18s;
}
.feature-grid li:hover, .service-categories-grid > div:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(20,108,148,.12);
}
.feature-grid img, .service-categories-grid img {
  width: 40px; height: 40px; margin-bottom: 8px;
}

@media (max-width: 992px) {
  .feature-grid, .service-categories-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li, .service-categories-grid > div {
    max-width: 100%;
  }
}

/* --- TESTIMONIALS --- */
.testimonials, .testimonial-slider {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  background: #E9ECEF;
  color: #1C2637;
  border-radius: 18px;
  box-shadow: 0 4px 14px 0 rgba(20,108,148,.09);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: #146C94;
  font-weight: 700;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(20,108,148,.14);
  transform: translateY(-3px) scale(1.012);
}

@media (max-width: 700px) {
  .testimonial-card {
    padding: 16px 14px;
    font-size: 0.98rem;
  }
}

.client-brands-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 20px;
}
.client-brands-strip img {
  height: 36px;
  filter: grayscale(0.2) contrast(1.07);
  opacity: 0.85;
}

/* --- CTA SECTION --- */
.cta {
  background: linear-gradient(100deg, #146C94 0%, #1C2637 88%);
  color: #fff;
  text-align: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.cta .content-wrapper {
  align-items: center;
}
.cta h2, .cta p {
  color: #fff;
}

/* --- FEATURES LIST / ITEMS --- */
.features {
  background: #fff;
  margin-bottom: 44px;
}
.features .content-wrapper > h2 {
  align-self: flex-start;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 10px 0;
  padding: 0;
  list-style: none;
}
.features ul > li {
  min-width: 240px;
  background: #F7F9FD;
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(20,108,148,.04);
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

/* --- SECTION & CARD LAYOUTS (MANDATORY CLASSES) --- */
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- CONTACT / MAP --- */
.company-details, .map-placeholder {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.company-details p, .map-placeholder p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.company-details img, .map-placeholder img {
  width: 22px; height: 22px;
}

/* --- UTILITY / THANK YOU --- */
.utility .next-steps ul {
  list-style: disc inside;
  margin-bottom: 20px;
  color: #1C2637;
}
.utility .content-wrapper {
  align-items: flex-start;
}

/* --- LEGAL PAGES --- */
.legal .content-wrapper {
  max-width: 700px;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(20,108,148,.04);
  padding: 28px 32px 28px 32px;
  gap: 22px;
}
.text-section h2 { margin-top: 24px; }
.text-section ul {
  margin-top: 10px;
  margin-bottom: 12px;
}
.text-section ul li {
  font-size: 1rem;
  margin-bottom: 7px;
}

/* --- FAQ (DORADZTWO) --- */
.faq dl {
  width: 100%;
  margin-top: 16px;
}
.faq dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 1.1rem;
  color: #146C94;
}
.faq dd {
  margin-bottom: 14px;
  margin-left: 13px;
  color: #232D40;
  font-size: 1rem;
}

/* --- FOOTER --- */
footer {
  background: #232D3F;
  color: #fff;
  padding: 36px 0 0 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: flex-end;
}
.footer-nav a {
  color: #B7C6D1;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  border-top: 1px solid #354263;
  padding-top: 22px;
  margin-bottom: 18px;
}
.footer-contact img {
  height: 40px;
  margin-right: 8px;
}
.footer-contact div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}
.footer-contact a {
  color: #63AAD9;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-contact a:hover, .footer-contact a:focus, .footer-contact p {
  color: #fff;
}
@media (max-width: 800px) {
  .footer-contact {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-nav {
    justify-content: flex-start;
    gap: 16px;
  }
}


/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { gap: 16px; }
  .section { padding: 20px 8px; margin-bottom: 32px; }
  .features, .cta, .hero { padding-left: 0; padding-right: 0; }
  .legal .content-wrapper { padding: 10px 8px; }
  .footer-contact { padding-top: 12px; }
  .card, .feature-grid li, .service-categories-grid > div {
    padding: 12px 10px;
  }
}


/* --- ANIMATIONS & MICRO INTERACTIONS --- */
.cta, .hero, .feature-grid li, .service-categories-grid > div,
.card, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.21s, background 0.22s, color 0.18s;
  will-change: box-shadow, transform;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 10900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #232D3F;
  color: #fff;
  box-shadow: 0 -2px 12px 0 rgba(20,108,148,.11);
  font-size: 1rem;
  gap: 22px;
  transition: transform 0.33s ease;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner p { margin-bottom: 0; color: #fff; }
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  background: linear-gradient(90deg, #146C94 30%, #1C2637 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.13s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-banner .cookie-settings-btn { background: #E9ECEF; color: #146C94; border: none; }
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #fff;
  color: #1C2637;
  box-shadow: 0 2px 8px 0 rgba(20,108,148,.08);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: linear-gradient(90deg, #205675 30%, #1C2637 100%);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 10px;
    align-items: flex-start;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28, 38, 55, 0.82);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 380px;
  min-width: 290px;
  box-shadow: 0 6px 20px 0 rgba(20,108,148,.19);
  padding: 36px 30px 24px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: bouncein 0.34s;
}
@keyframes bouncein {
  0% { transform: scale(.75) translateY(50px); opacity: 0; }
  80% { transform: scale(1.06) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #146C94;
  margin-bottom: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 10px;
  margin: 12px 0 6px 0;
}
.cookie-modal .cookie-category { font-weight: 600; margin-right: 8px; }
.cookie-modal .cookie-list {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  color: #1C2637;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 12px 3vw 10px 3vw; min-width: 0; width: 94vw;
  }
}

/* --- INPUT STYLES (for toggles, forms) --- */
input[type="checkbox"], input[type="radio"] {
  accent-color: #146C94;
}

/* --- MISC + Z-INDEX CONSISTENCY --- */
header { z-index: 101; }
.mobile-menu { z-index: 9999; }
.cookie-modal-overlay { z-index: 12000; }
.cookie-banner { z-index: 10900; }

/* --- VISUAL ENHANCEMENTS / GRADIENTS --- */
.gradient-bg {
  background: linear-gradient(120deg, #146C94 0%, #1C2637 100%);
}

/* --- ACCESSIBILITY FOCUS STYLES --- */
button:focus, .cta:focus, a:focus, .mobile-menu-close:focus {
  outline: 2px solid #3190C6;
  outline-offset: 2px;
}

/* --- SPACING BETWEEN ALL MAJOR ELEMENTS (MANDATORY) --- */
.section, .services, .features, .cta, .testimonials, .utility, .contact, .legal {
  margin-bottom: 60px;
}

.card, .feature-grid li, .service-categories-grid > div, .testimonial-card, .company-details, .map-placeholder {
  margin-bottom: 20px;
}

/* Ensure all layouts use flex; NO grid or columns anywhere */
/* (Already handled above and verified) */