/* =========================
   CSS RESET & BASE STYLES
   ========================= */
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, menu, 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, 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 */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #20304C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #20304C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #000; 
  outline: none;
}
ul, ol {
  margin: 0 0 1.5em 1.25em;
}
li {
  margin-bottom: 8px;
}
strong { font-weight: 600; }

/* ===========================
     BRAND TYPOGRAPHY SCALE
   =========================== */
h1, .hero-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: #20304C;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
p, .hero-sub {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: #20304C;
}
blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #20304C;
  margin-bottom: 16px;
  line-height: 1.5;
  border-left: 3px solid #FFE27A;
  padding-left: 16px;
}
footer {
  font-size: 1rem;
  color: #888;
}

/* =========================
  LAYOUT CONTAINER & SPACING
  ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(32,48,76,0.03);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 8px;
  }
}

/* ================================
      HEADER & NAVIGATION BAR
   ================================ */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(32,48,76,0.05);
  position: relative;
  z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 48px;
}
.logo-link img {
  height: 38px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #20304C;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f7f7f7;
  color: #000;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 26px;
  border: none;
  border-radius: 32px;
  background: #FFE27A;
  color: #20304C;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(255,226,122,0.10);
  margin-left: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD633;
  color: #20304C;
  box-shadow: 0 3px 18px 0 rgba(255,226,122,0.18);
}
/* Hide mobile nav on desktop */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    background: transparent;
    border: none;
    color: #20304C;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.1s;
    z-index: 111;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #f6f6f6;
  }
}

/* =========================
    MOBILE NAVIGATION MENU
   ========================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.99);
  z-index: 1000;
  padding: 28px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.5,.1,0,1);
  box-shadow: 0 4px 28px 0 rgba(32,48,76,0.20);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: #f7f7f7;
  border: none;
  color: #20304C;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.12s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffe27a;
  color: #20304C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 12px 6px;
  color: #20304C;
  border-radius: 8px;
  font-weight: 500;
  width: 100%;
  transition: background 0.1s, color 0.08s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffe27a2b;
  color: #000;
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
      HERO SECTION
   ========================= */
.hero-title {
  color: #20304C;
  margin-top: 30px;
}
.hero-sub {
  color: #20304C;
  opacity: 0.88;
}

/* ===================================
   FLEXBOX: FEATURE & CARD SECTIONS
   =================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 28px 20px 20px 20px;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(32,48,76,0.05);
  min-width: 220px;
  flex: 1 1 260px;
  min-height: 240px;
  transition: box-shadow 0.14s;
}
.feature-item img {
  height: 38px;
  margin-bottom: 5px;
}
.feature-item:hover {
  box-shadow: 0 6px 32px 0 rgba(32,48,76,0.11);
}

@media (max-width: 950px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 16px 0;
}
.card {
  min-width: 250px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(32,48,76,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s;
  padding: 28px 20px 24px 20px;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(32,48,76,0.16);
}

@media (max-width: 650px) {
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
}
.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;
    gap: 16px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* =============================
   TESTIMONIAL SECTION CARDS
   ============================= */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  padding: 20px 22px 18px 20px;
  min-width: 200px;
  box-shadow: 0 2px 12px 0 rgba(32,48,76,0.11);
  color: #20304C;
  font-size: 1.05rem;
  margin-bottom: 18px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(32,48,76,0.18);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card blockquote {
  margin-bottom: 8px;
  border-left: 3px solid #FFE27A;
  color: #20304C;
  background: none;
  padding-left: 16px;
}
.testimonial-card footer {
  font-size: 0.97rem;
  color: #7E7E90;
}

@media (max-width: 750px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    width: 100%;
    min-width: 0;
    padding: 17px 10px 14px 10px;
  }
}

/* =============================
   BLOG FILTERS & LISTS
   ============================= */
.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.search-bar input {
  flex: 1 1 150px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #BFBFBF;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafbfc;
  color: #20304C;
  outline: none;
  transition: border-color 0.12s;
}
.search-bar input:focus {
  border-color: #FFE27A;
}
.search-bar button {
  background: #FFE27A;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  align-items: center;
}
.search-bar button:hover,
.search-bar button:focus {
  background: #FFD633;
}
.blog-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.blog-filters button {
  background: #fff;
  border: 1px solid #BFBFBF;
  border-radius: 6px;
  padding: 7px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #20304C;
  transition: background 0.14s, border 0.14s;
  cursor: pointer;
}
.blog-filters button:hover, .blog-filters button:focus {
  background: #FFE27A;
  border-color: #FFE27A;
  color: #20304C;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-list article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 8px 0 rgba(32,48,76,0.05);
  padding: 20px 18px 18px 18px;
  transition: box-shadow 0.13s;
}
.blog-list article:hover {
  box-shadow: 0 5px 16px rgba(32,48,76,0.10);
}
.blog-list article a {
  color: #20304C;
  font-weight: 600;
  text-decoration: underline;
  font-family: inherit;
  transition: color 0.14s;
}
.blog-list article a:hover, .blog-list article a:focus {
  color: #FFD633;
}

/* ===========================
    TABLE STYLES (CENNIK PAGE)
   =========================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(32,48,76,0.05);
  border-radius: 12px;
  margin: 0 0 24px 0;
  overflow: hidden;
}
thead { background: #FAF8F2; }
th, td {
  padding: 15px 12px;
  text-align: left;
  font-size: 1rem;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #20304C;
  font-weight: 600;
  background: #fafdff;
}
tbody tr {
  border-bottom: 1px solid #F2F2F2;
}
tbody tr:last-child {
  border-bottom: none;
}
td { color: #20304C; }

@media (max-width: 650px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead tr {
    display: none;
  }
  tr {
    margin-bottom: 18px;
  }
  td {
    border: none;
    padding: 10px 6px;
    position: relative;
  }
}

/* ===============================
   CONTACT INFO & MAP
   =============================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #20304C;
}
.contact-info img {
  width: 21px;
  margin-right: 7px;
  vertical-align: middle;
}
.office-hours, .location-map {
  margin-bottom: 19px;
  background: #fafbfc;
  border-radius: 10px;
  padding: 16px 18px;
}
.location-map img {
  height: 40px;
  margin-bottom: 8px;
}

/* ===============================
     FOOTER DESIGN
   =============================== */
footer {
  background: #fafbfc;
  border-top: 1px solid #eeeeee;
  padding: 44px 0 0 0;
  margin-top: 64px;
  color: #20304C;
  font-size: 1rem;
  letter-spacing: 0.09px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 38px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
  max-width: 225px;
}
.footer-logo img {
  height: 33px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 144px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #20304C;
  opacity: 0.95;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD633;
  opacity: 1;
}
.footer-contact {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #20304C;
  font-size: 0.98rem;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-social a img {
  width: 23px;
  opacity: 0.88;
  transition: opacity 0.12s, transform 0.12s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
}
@media (max-width: 920px) {
  .footer-content {
    flex-direction: column;
    gap: 18px 0;
    align-items: flex-start;
  }
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1.5px solid #f2f2f2;
  box-shadow: 0 -2px 24px 0 rgba(32,48,76,0.08);
  z-index: 1999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 12px;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 1;
  transition: opacity 0.33s cubic-bezier(.8,.2,0,1);
  pointer-events: auto;
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  font-size: 1rem;
  color: #20304C;
  margin-bottom: 7px;
  flex: 1;
}
.cookie-buttons {
  display: flex;
  gap: 15px;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  border-radius: 22px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #FFE27A;
  color: #20304C;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  box-shadow: 0 0.5px 4px rgba(255,226,122,0.12);
}
.cookie-btn.reject {
  background: #fafbfc;
  color: #20304C;
  border: 1.5px solid #BFBFBF;
}
.cookie-btn:hover, .cookie-btn:focus,
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #FFD633;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff5c2;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,48,76,0.28);
  z-index: 2222;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px 28px 28px;
  max-width: 360px;
  width: 94vw;
  box-shadow: 0 8px 38px 0 rgba(32,48,76,0.16);
  position: relative;
  animation: cookieModalUp 0.35s cubic-bezier(.6,0,.22,1);
}
@keyframes cookieModalUp {
  0% { opacity:0; transform: translateY(40px) scale(0.94); }
  100% {  opacity:1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  color: #20304C;
  cursor: pointer;
}
.cookie-toggle {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 100%;
  height: 100%;
  background: #BFBFBF;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-toggle input[type="checkbox"]:checked + span {
  background: #FFE27A;
}
.cookie-toggle .dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.14s;
}
.cookie-toggle input[type="checkbox"]:checked ~ .dot {
  left: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 13px;
  font-size: 1.35rem;
  background: #f6f6f6;
  border: none;
  border-radius: 14px;
  padding: 5px 10px;
  cursor: pointer;
  color: #20304C;
  transition: background 0.11s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFE27A;
}

/* ===============================
   MISC / UTILITIES
   =============================== */
.muted {
  color: #666;
  opacity: 0.7;
}
.confirmation-next {
  background: #fafbfc;
  border-radius: 11px;
  padding: 18px 16px 18px 18px;
  margin-top: 16px;
  box-shadow: 0 1px 10px 0 rgba(32,48,76,0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.confirmation-next h2 {
  font-size: 1.25rem;
  margin-bottom: 7px;
}
.confirmation-next ul {
  margin: 0 0 0 22px;
}
.confirmation-next a {
  margin-top: 15px;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
   ============================= */
@media (max-width: 550px) {
  html { font-size: 95%; }
  h1, .hero-title {
    font-size: 1.45rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 13px;
  }
  .cta-btn, .cookie-btn, .cookie-settings-btn {
    padding: 9px 15px;
    font-size: 0.95rem;
  }
  .footer-logo { max-width: 100%; }
}
/* =============================
   SPECIAL LAYOUTS FOR SECTIONS
   ============================= */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.process-icons {
  display: flex;
  gap: 22px;
  margin: 12px 0 12px 0;
  align-items: center;
  flex-wrap: wrap;
}
.process-icons img {
  height: 43px;
  opacity: 0.97;
  transition: filter 0.17s;
}
.process-icons img:hover {
  filter: brightness(1.1) drop-shadow(0 2px 6px #ffe07a30);
}
.expected-outcomes {
  background: #fffbe6;
  color: #20304C;
  border-radius: 8px;
  padding: 12px 18px;
  margin-top: 12px;
  font-size: 1.05rem;
  box-shadow: 0 0.5px 3px 0 rgba(255,226,122,0.09);
}
.contact-summary {
  align-items: flex-start;
}

/* =============================
   FORM ELEMENTS (Optional)
   ============================= */
input, textarea, select, button {
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #FFE27A;
  outline-offset: 1.5px;
}

/* =============================
   ANIMATIONS & MICROINTERACTIONS
   ============================= */
.cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: background 0.14s, color 0.15s, box-shadow 0.13s, transform 0.13s;
}
.cta-btn:active {
  transform: scale(0.98);
}
.main-nav a, .footer-nav a {
  transition: color 0.15s, background 0.15s, border 0.13s;
}

/* =============================
   Z-INDEX LAYERING
   ============================= */
header { z-index: 100; }
.mobile-menu { z-index: 1000; }
.cookie-consent-banner { z-index: 1999; }
.cookie-modal-overlay { z-index: 2222; }

/* =============================
   CONSISTENT SPACING
   ============================= */
.section, .card, .testimonial-card, .feature-item, .content-wrapper, .card-container, .content-grid, .testimonial-slider {
  margin-bottom: 20px;
  gap: 20px;
}

/* ===============================
   ENSURE NO OVERLAPS AND ADEQUATE SPACING
   =============================== */
section, .section {
  margin-bottom: 60px !important;
  padding: 40px 20px;
}
@media (max-width: 700px) {
  section, .section {
    margin-bottom: 36px !important;
    padding: 22px 8px;
  }
}
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px !important;
}

/* Ensure html/body always allow for the fixed cookie banner */
body {
  padding-bottom: 68px;
}

/* ===============================
   END OF CSS
   =============================== */