/* ================================================== */
/* ====== FLUX SHADOW BIURO RACHUNKOWE CSS ========= */
/* = Sophisticated Monochrome w/Brand Accents = */
/* = Mobile-first | Flexbox-only Layouts | No CSS Grid  = */
/* = brand: Montserrat display, Open Sans body        = */
/* ================================================== */

/* CSS RESET & BASE ============================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #181818;
  background-color: #FFFFFF;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: #181818;
}
h1 { font-size: 2.4rem; letter-spacing: -0.01em; margin-bottom: 0.8em; }
h2 { font-size: 2rem; margin-bottom: 0.65em; }
h3 { font-size: 1.3rem; margin-bottom: 0.6em; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 0.5em; }
p, ul, ol, li { margin-top: 0; margin-bottom: 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
strong, b { font-weight: 700; }
a {
  color: #20405E; text-decoration: none; transition: color .18s cubic-bezier(.53,.13,.17,.99), border-color .18s;}
a:hover, a:focus { color: #000; text-decoration: underline; }

/* Remove link styles for nav/cta */
nav a, .footer-nav a, .mobile-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
nav a.active, nav a:hover, .footer-nav a:hover, .mobile-nav a:focus { border-bottom: 2px solid #20405E; color: #181818; }

/* ================================================================ */
/* === LAYOUT CONTAINER & GLOBAL SPACING =========================  */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px 0 20px;
  background: #fff;
  border-radius: 20px 20px 0 0;
}
.content-wrapper {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  main > section, .section { padding: 32px 6px 0 6px; margin-bottom: 32px; border-radius: 0; }
  .content-wrapper { gap: 16px; }
}

/* ================= HEADER ================================ */
header {
  background: #fff;
  border-bottom: 1px solid #EAEDF3;
  box-shadow: 0 2px 12px rgba(0,0,0,.035);
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
nav img {
  height: 40px;
  margin-right: 30px;
}
nav a {
  font-size: 1rem;
  color: #181818;
  font-weight: 500;
  padding: 7px 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color .19s, background .18s;
}
nav a.cta.primary {
  margin-left: 30px;
}

/* HIDE mobile menu toggler on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 950px) {
  nav {
    gap: 18px;
  }
  nav a.cta.primary { margin-left: 10px; }
}
@media (max-width: 820px) {
  header .container {
    height: 64px;
  }
  nav img {
    height: 30px;
    margin-right: 14px;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #181818;
    margin-left: auto;
    z-index: 22;
    transition: color .18s;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
  }
}

/* ================= MOBILE MENU ========================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(12,12,12,0.98);
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.37s cubic-bezier(.31,1.57,.47,.99), opacity 0.22s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  align-self: flex-end;
  margin: 24px 24px 16px 0;
  cursor: pointer;
  transition: color .16s;
  z-index: 1002;
}
.mobile-menu-close:hover {
  color: #bbb;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 32px 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  padding: 10px 0;
  font-weight: 600;
  border-radius: 6px;
  transition: background .20s;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:hover {
  background: #222;
  border-bottom: 2px solid #6EC1B7;
  color: #6EC1B7;
}
@media (max-width: 480px) {
  .mobile-nav {
    padding-left: 16px; padding-right: 4px;
    gap: 18px;
  }
}

/* ================= FOOTER ===================================== */
footer {
  background: #181818;
  color: #fff;
  padding: 0;
  margin-top: 40px;
  letter-spacing: 0.02em;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-radius: 0 0 20px 20px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.85;
  padding: 7px 2px;
  transition: opacity .19s, border-color .19s;
  border-bottom: 2px solid transparent;
}
.footer-nav a:hover { opacity: 1; border-bottom: 2px solid #6EC1B7; color: #cacaca;}
.footer-info {
  font-size: 0.92rem;
  opacity: 0.7;
  text-align: center;
}
@media (max-width: 600px) {
  footer .container { padding: 23px 8px 19px 8px; border-radius: 0; }
  .footer-nav { gap: 16px; }
}

/* ==== SECTION & CARD SPACING PATTERNS ======================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #FAFAFA;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(40,40,40,0.07);
  padding: 28px 22px;
  min-width: 250px;
  flex: 1 1 280px;
  transition: box-shadow .2s, transform .17s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(32,64,94,0.11);
  transform: translateY(-2px) scale(1.015);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #F2F2F3;
  color: #1a1a1a;
  padding: 24px 30px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(40,40,40,0.05);
  min-width: 220px;
  min-height: 148px;
  transition: box-shadow .18s;
}
.testimonial-card strong {
  font-family: inherit;
  color: #20405E;
  letter-spacing: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .card-container, .content-grid { gap: 12px; }
  .testimonial-card { padding: 18px 10px; font-size: .97rem; min-width: 0; }
  .feature-item { gap: 10px; }
  .section { padding: 24px 6px; margin-bottom: 34px; }
  .content-grid { flex-direction: column; }
  .text-image-section { flex-direction: column; gap: 16px; }
}

/* ======================== BUTTONS + CTA ===================== */
.cta, button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #181818;
  color: #fff;
  border: none;
  border-radius: 27px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.11rem;
  padding: 13px 32px;
  margin-top: 8px;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(20,20,20,0.06);
  transition: background .18s, color .18s, box-shadow .20s, transform .16s;
  outline: none;
  min-width: 150px;
}
.cta.primary, .button.primary {
  background: #20405E;
  color: #fff;
  border: 2px solid #20405E;
}
.cta.primary:hover, .button.primary:hover, .cta.primary:focus {
  background: #fff;
  color: #20405E;
  box-shadow: 0 4px 15px rgba(33,63,94,0.12);
  border-color: #20405E;
}
.cta:hover, .button:hover, .cta:focus, .button:focus {
  background: #fff;
  color: #181818;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 9px rgba(32,32,32,0.09);
}
.button.secondary {
  background: #fff;
  color: #20405E;
  border: 2px solid #6EC1B7;
}
.button.secondary:hover, .button.secondary:focus {
  background: #6EC1B7;
  color: #fff;
  border-color: #20405E;
}

/* TABLES ================================================ */
table {
  width: 100%; max-width: 100%; border-collapse: collapse;
  margin-bottom: 24px;
  background: #FCFCFC;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(40,40,40,0.04);
  overflow: hidden;
}
thead {
  background: #20405E;
  color: #fff;
}
td, th {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #e6e6ea;
}
th { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.01rem; font-weight: 700; }
tr:last-child td { border-bottom: none; }
@media (max-width: 600px) {
  td, th { padding: 10px 6px; font-size: .97rem; }
}

/* TEXT SECTION STYLES =================================== */
.text-section {
  margin-bottom: 8px;
  max-width: 740px;
}
.text-section h3 {
  margin-top: 18px;
  font-size: 1.17rem;
  font-weight: 600;
}
.newsletter-section { background: #F6F6F7; border-radius: 15px; padding: 28px 14px; }

/* ARTICLES / BLOG LIST */
.articles-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.articles-grid > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(40,40,40,0.06);
  padding: 22px 18px;
  min-width: 210px;
  flex: 1 1 285px;
  margin-bottom: 20px;
  color: #1a1a1a;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .articles-grid { flex-direction: column; gap: 12px; }
}

/* ================== FEATURES ====================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(40,40,40,0.06);
  padding: 24px 20px 20px 20px;
  flex: 1 1 210px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  color: #181818;
  transition: box-shadow .16s, transform .13s;
}
.feature img {
  width: 40px; height: 40px;
  filter: grayscale(0%) brightness(0.15);
  margin-bottom: 8px;
}
.feature:hover {
  box-shadow: 0 8px 28px rgba(36,64,90,0.11);
  transform: translateY(-3px) scale(1.015);
}
@media (max-width: 900px) {
  .feature-grid { flex-direction: column; gap: 11px; }
  .feature { min-width: 120px; }
}

/* ================== TESTIMONIALS ===================== */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 5px;
}
@media (max-width: 900px) {
  .testimonial-slider, .testimonial-list { flex-direction: column; gap: 13px; }
}

/* PARTNERS LIST ======================================== */
.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  margin: 18px 0 8px 0;
}
.partners-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F2F2F3;
  border-radius: 10px;
  padding: 10px 20px 10px 10px;
  min-width: 170px;
  font-size: 1.01rem;
}
.partners-list img {
  width: 36px; height: 36px;
  filter: grayscale(100%) brightness(0.13);
  border-radius: 7px;
}
@media (max-width: 700px) {
  .partners-list { flex-direction: column; gap: 12px; }
  .partners-list li { min-width: 0; width: 100%; }
}

/* === CONTACT LIST ICONS === */
.content-wrapper ul, .content-wrapper ol {
  padding-left: 1.5em;
}
.content-wrapper ul li, .content-wrapper ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.content-wrapper ul li img {
  width: 22px; height: 22px; vertical-align: middle;
  filter: grayscale(100%) brightness(0.11);
}
.content-wrapper ul li a {
  color: #20405E;
  text-decoration: none;
  border-bottom: 1px dotted #20405E;
  transition: color .16s, border-color .16s;
  word-break: break-all;
}
.content-wrapper ul li a:hover { color: #6EC1B7; border-color: #6EC1B7; }

/* ======== LOCATION MAP Mini-Embed =========== */
.location-map {
  margin-top: 14px;
  background: #F8F8F8;
  border-radius: 14px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.location-map img {
  width: 100px;
  height: auto;
  filter: grayscale(100%) brightness(0.14);
}

/* =========== UTILITIES ========== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }

/* ======================= COOKIE BANNER ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(248,248,248,0.98);
  color: #181818;
  box-shadow: 0 -4px 20px rgba(70,70,70,0.08);
  z-index: 2001;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px;
  font-size: 1.06rem;
  line-height: 1.5;
  transition: transform .33s cubic-bezier(.51,.34,.18,1.01);
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-banner .button,
.cookie-banner .cta {
  min-width: 115px;
  padding: 8px 22px;
  font-size: 1.01rem;
  border-radius: 22px;
  margin: 0 0 0 4px;
}
.cookie-banner .button.secondary { background: #fff; color: #20405E; border: 2px solid #20405E; }
.cookie-banner .button.secondary:hover { background: #20405E; color: #fff; }

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-buttons { gap: 8px; }
}

/* === Cookie Preferences Modal === */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  color: #181818;
  border-radius: 18px;
  box-shadow: 0 8px 50px rgba(25,25,25,0.23);
  z-index: 2011;
  max-width: 98vw;
  width: 420px;
  padding: 34px 33px 28px 33px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transition: opacity .25s, transform .23s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.32rem;
  color: #20405E;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 9px 0;
}
.cookie-modal label {
  font-weight: 600; font-size: 1.05rem; cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #20405E;
  width: 1.2em; height:1.2em;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px; justify-content: flex-end;
}
.cookie-modal .button, .cookie-modal .cta {
  min-width: 98px;
  padding: 7px 16px;
  font-size: 1rem;
  border-radius: 17px;
  margin-left: 3px;
}
@media (max-width: 540px) {
  .cookie-modal { width: 98vw; max-width: 98vw; padding: 15px 4vw 16px 4vw; }
}

/* ======= MICRO-INTERACTIONS & ANIMATIONS ========== */
.cta, .button, .card, .testimonial-card, .feature {
  transition: box-shadow .22s cubic-bezier(.22,.67,.66,1.13),
    background .18s, color .18s, transform .18s;
}
.card:active, .feature:active {
  transform: scale(.98);
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 30px rgba(32,64,94,0.16);
  transform: translateY(-2px) scale(1.01);
}

/* form, input, select, textarea fallbacks (if present in other pages) */
input, textarea, select {
  font-family: inherit; font-size: 1rem;
  padding: 11px 16px;
  margin-bottom: 10px;
  border-radius: 7px;
  border: 1px solid #cacaca;
  background: #F8F8F9;
  color: #181818;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #20405E;
  border-color: #20405E;
  background: #fff;
}

/* ================= RESPONSIVE TYPOGRAPHY SCALE ================= */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.12rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.11rem; }
  h3 { font-size: 1rem; }
  body, .content-wrapper, p, li, th, td { font-size: .98rem; }
}

/* MONOCHROME COLOR PALETTE APPLICATION ========================= */
body {
  background: #FAFBFC;
  color: #181818;
}
header, nav, main, .content-wrapper, .section, .feature, .card { background: #fff; }
.feature, .card, .testimonial-card, .partners-list li, .articles-grid > div {
  border: 1px solid #EAEDF3;
}
.testimonial-card {
  background: #F2F2F3;
  color: #1a1a1a;
  border: 1px solid #E5E6E8;
}

/* DARK BACKGROUNDS for contrast accents (footer, overlays) */
footer, .mobile-menu {
  background: #181818;
  color: #fff;
}

/* SCROLLBARS (subtle, monochrome) */
::-webkit-scrollbar { width: 9px; background: #f3f3f6; }
::-webkit-scrollbar-thumb { background: #d0d4d9; border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: #babcc1; }

/* ================ END FLUX SHADOW CSS ================ */

