:root {
  --mazbit-blue: #078ed8;
  --mazbit-blue-dark: #092a67;
  --mazbit-pink: #e90065;
  --mazbit-pink-dark: #cf0059;
  --mazbit-text: #173b76;
  --mazbit-line: #d6e8f4;
  --mazbit-white: #fff;
  --mazbit-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mazbit-text);
  background: #fff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.mazbit-container {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
}
.screen-reader-text { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* =========================================================
   HEADER — desktop project width: 1200 px
   ========================================================= */
.mazbit-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(8,142,216,.08);
}
.mazbit-header-inner {
  height: 88px;
  display: grid;
  grid-template-columns: 250px minmax(0,1fr) 174px;
  align-items: center;
  column-gap: 26px;
}
.mazbit-logo-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}
.mazbit-logo {
  width: 235px;
  height: auto;
  max-height: 67px;
  object-fit: contain;
  object-position: left center;
}
.mazbit-primary-nav { width: 100%; min-width: 0; }
.mazbit-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mazbit-nav-list li { position: relative; }
.mazbit-nav-list a {
  display: block;
  padding: 34px 0 28px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: #102a62;
  white-space: nowrap;
}
.mazbit-nav-list > li.current-menu-item > a,
.mazbit-nav-list > li.current_page_item > a,
.mazbit-nav-list > li > a:hover {
  color: var(--mazbit-blue);
  font-weight: 600;
}
.mazbit-nav-list > li.current-menu-item > a::after,
.mazbit-nav-list > li.current_page_item > a::after,
.mazbit-nav-list > li > a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  border-radius: 5px;
  background: var(--mazbit-blue);
}
.mazbit-header-cta {
  justify-self: end;
  width: 174px;
  height: 48px;
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, #ec0068, #df005f);
  box-shadow: 0 12px 28px rgba(231,0,99,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mazbit-header-cta:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(231,0,99,.28); }
.mazbit-header-cta svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.mazbit-arrow { justify-self: end; font-size: 20px; line-height: 1; }
.mazbit-menu-toggle { display: none; }

/* CONTENT */
.mazbit-site-main { min-height: 0; }
.mazbit-content-shell { padding: 0; }
.mazbit-content { min-height: 0; }
.mazbit-content h1 { color: var(--mazbit-blue-dark); }

/* =========================================================
   FOOTER — proportions rebuilt from supplied graphic
   ========================================================= */
.mazbit-footer {
  background:
    radial-gradient(circle at 76% 7%, rgba(40,166,227,.10), transparent 27%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border-top: 1px solid #eef6fb;
  padding: 24px 0 12px;
  overflow: hidden;
}
.mazbit-footer-grid {
  display: grid;
  grid-template-columns: 250px 132px 162px 164px minmax(0,1fr);
  column-gap: 20px;
  align-items: start;
}
.mazbit-footer-brand,
.mazbit-footer-col,
.mazbit-footer-cta { min-width: 0; }
.mazbit-footer-brand { padding-top: 4px; }
.mazbit-footer-logo {
  width: 235px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 15px;
}
.mazbit-footer-description {
  max-width: 232px;
  color: #21477f;
  font-size: 12.5px;
  line-height: 1.48;
}
.mazbit-handwriting {
  max-width: 230px;
  margin: 24px 0 16px;
  color: var(--mazbit-blue);
  font-family: "Caveat", cursive;
  font-size: 30px;
  font-weight: 700;
  line-height: .96;
  transform: rotate(-5deg);
  transform-origin: left center;
}
.mazbit-socials { display: flex; gap: 9px; margin-top: 24px; }
.mazbit-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--mazbit-blue);
  font-weight: 800;
  font-size: 13px;
}
.mazbit-socials a:hover { background: var(--mazbit-blue); color: #fff; }
.mazbit-footer-col {
  min-height: 285px;
  border-left: 1px solid var(--mazbit-line);
  padding-left: 19px;
}
.mazbit-footer-col h3 {
  margin: 5px 0 7px;
  color: #071d50;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}
.mazbit-title-line {
  width: 28px;
  height: 3px;
  margin: 0 0 18px;
  border-radius: 6px;
  background: var(--mazbit-blue);
}
.mazbit-footer-menu { list-style: none; padding: 0; margin: 0; }
.mazbit-footer-menu li + li { margin-top: 13px; }
.mazbit-footer-menu a {
  color: #21477f;
  font-size: 12.5px;
  line-height: 1.3;
  text-decoration: none;
}
.mazbit-footer-menu a:hover { color: var(--mazbit-blue); }
.mazbit-contact-item {
  display: grid;
  grid-template-columns: 35px minmax(0,1fr);
  align-items: start;
  gap: 8px;
  margin-bottom: 13px;
  color: #21477f;
  font-size: 11.5px;
  line-height: 1.35;
}
.mazbit-contact-address-text { min-width: 0; }
.mazbit-contact-address-line { display: block; white-space: nowrap; }
.mazbit-contact-item a { text-decoration: none; }
.mazbit-contact-item a:hover { color: var(--mazbit-blue); }
.mazbit-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6f6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mazbit-blue);
}
.mazbit-contact-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.mazbit-footer-cta {
  position: relative;
  height: 322px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 150px;
  gap: 0;
  padding: 26px 10px 18px 20px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(91,190,235,.16), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(235,248,255,.98));
  box-shadow: 0 12px 38px rgba(15,91,145,.08);
  border: 1px solid rgba(7,139,212,.06);
}
.mazbit-cta-copy { position: relative; z-index: 3; min-width: 0; }
.mazbit-cta-copy h3 {
  max-width: 245px;
  margin: 0 0 14px;
  color: #071e54;
  font-size: 23px;
  line-height: 1.02;
  letter-spacing: -.45px;
  font-weight: 800;
}
.mazbit-cta-copy h3 strong,
.mazbit-cta-copy h3 em { color: var(--mazbit-blue); font-style: normal; }
.mazbit-cta-copy p {
  max-width: 248px;
  margin: 0 0 20px;
  color: #21477f;
  font-size: 11.5px;
  line-height: 1.35;
}
.mazbit-btn-primary,
.mazbit-btn-secondary {
  width: 228px;
  min-height: 48px;
  border-radius: 10px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
}
.mazbit-btn-primary { color: #fff; background: var(--mazbit-pink); box-shadow: 0 9px 20px rgba(231,0,99,.18); }
.mazbit-btn-primary:hover { background: var(--mazbit-pink-dark); }
.mazbit-btn-secondary { margin-top: 10px; color: var(--mazbit-blue); background: #fff; border: 1.5px solid #22a4eb; }
.mazbit-btn-secondary.is-disabled { opacity: .7; cursor: default; }
.mazbit-btn-secondary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.mazbit-display-image {
  position: absolute;
  z-index: 2;
  right: -8px;
  top: 3px;
  width: 158px;
  max-width: none;
  height: 314px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 15px 17px rgba(26,72,112,.15));
}

.mazbit-benefits-bar {
  height: 118px;
  margin-top: 24px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 205px 180px 180px 265px minmax(0,1fr);
  overflow: hidden;
  background: linear-gradient(90deg,#effaff 0%,#e7f6fd 68%,#eef9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(7,139,212,.045);
}
.mazbit-benefit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
}
.mazbit-benefit::after {
  content: '';
  position: absolute;
  right: 0;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: #d3e9f6;
}
.mazbit-benefit-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mazbit-blue);
  background: rgba(255,255,255,.70);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 7px 15px rgba(20,106,165,.06);
}
.mazbit-benefit-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mazbit-benefit > span:last-child {
  color: #173d77;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 700;
}
.mazbit-benefit-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 28px;
  /*
   * Zdjęcie źródłowe zawiera fragment starego napisu po lewej stronie.
   * Kryjemy go pełnym tłem i zostawiamy wyłącznie stopy po prawej,
   * dzięki czemu napis HTML nie nakłada się na napis w grafice.
   */
  background:
    linear-gradient(90deg, #e8f7ff 0%, #e8f7ff 54%, rgba(232,247,255,.96) 62%, rgba(232,247,255,.62) 70%, rgba(232,247,255,0) 84%),
    url('../images/footer-feet.jpg') calc(100% + 14px) center / auto 100% no-repeat,
    #e9f7ff;
}
.mazbit-benefit-tagline {
  position: relative;
  z-index: 2;
  color: var(--mazbit-blue);
  font-family: "Caveat", cursive;
  font-size: 29px;
  line-height: .93;
  font-weight: 700;
  transform: rotate(-4deg);
  text-align: center;
}

.mazbit-footer-bottom {
  margin-top: 28px;
  padding: 24px 0 8px;
  border-top: 1px solid #cfe2ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #23477f;
  font-size: 11.5px;
}
.mazbit-legal-links { display: flex; align-items: center; gap: 15px; }
.mazbit-legal-links a { text-decoration: none; }
.mazbit-legal-links a:hover { color: var(--mazbit-blue); }

/* Desktop: keep exact 1200px composition until tablet breakpoint */
@media (max-width: 1240px) {
  .mazbit-container { width: calc(100% - 32px); }
  .mazbit-header-inner { grid-template-columns: 220px minmax(0,1fr) 164px; column-gap: 16px; }
  .mazbit-logo { width: 210px; }
  .mazbit-nav-list { gap: 17px; }
  .mazbit-nav-list a { font-size: 12px; }
  .mazbit-header-cta { width: 164px; }

  .mazbit-footer-grid { grid-template-columns: 220px 120px 145px 150px minmax(0,1fr); column-gap: 14px; }
  .mazbit-footer-logo { width: 210px; }
  .mazbit-footer-description { font-size: 11.5px; }
  .mazbit-footer-col { padding-left: 14px; }
  .mazbit-footer-col h3 { font-size: 15.5px; }
  .mazbit-footer-menu a { font-size: 11.5px; }
  .mazbit-footer-cta { grid-template-columns: minmax(0,1fr) 130px; padding-left: 16px; }
  .mazbit-cta-copy h3 { font-size: 20px; max-width: 220px; }
  .mazbit-cta-copy p { font-size: 10.5px; max-width: 220px; }
  .mazbit-btn-primary, .mazbit-btn-secondary { width: 205px; font-size: 11.5px; }
  .mazbit-display-image { width: 142px; }
  .mazbit-benefits-bar { grid-template-columns: 185px 160px 160px 235px minmax(0,1fr); }
  .mazbit-benefit { padding: 14px 14px; }
  .mazbit-benefit > span:last-child { font-size: 11.5px; }
}

@media (max-width: 1024px) {
  .mazbit-header-inner { height: 80px; grid-template-columns: 1fr auto auto; }
  .mazbit-logo { width: 205px; }
  .mazbit-menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    background: #edf8ff;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 11px;
    cursor: pointer;
  }
  .mazbit-menu-toggle span:not(.screen-reader-text) { width: 100%; height: 2px; background: var(--mazbit-blue-dark); border-radius: 5px; }
  .mazbit-primary-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: .25s ease;
    border-top: 1px solid #edf5fa;
  }
  .mazbit-primary-nav.is-open { max-height: 70vh; opacity: 1; pointer-events: auto; padding-bottom: 18px; box-shadow: 0 20px 35px rgba(20,62,95,.08); }
  .mazbit-nav-list { display: block; }
  .mazbit-nav-list a { padding: 14px 6px; border-bottom: 1px solid #edf5fa; font-size: 13px; }
  .mazbit-nav-list > li.current-menu-item > a::after,
  .mazbit-nav-list > li.current_page_item > a::after,
  .mazbit-nav-list > li > a:hover::after { display: none; }
  .mazbit-header-cta { width: 156px; height: 46px; font-size: 12px; }

  .mazbit-footer-grid { grid-template-columns: 1.1fr .8fr .9fr; row-gap: 28px; }
  .mazbit-footer-col { min-height: 0; }
  .mazbit-contact-col { grid-column: 2 / 4; }
  .mazbit-footer-cta { grid-column: 1 / -1; height: 270px; }
  .mazbit-display-image { width: 180px; height: 268px; }
  .mazbit-benefits-bar { height: auto; grid-template-columns: repeat(2,1fr); }
  .mazbit-benefit { min-height: 90px; }
  .mazbit-benefit-photo { min-height: 125px; grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .mazbit-container { width: calc(100% - 28px); }
  .mazbit-header-inner { grid-template-columns: 1fr auto; gap: 10px; }
  .mazbit-logo { width: 190px; }
  .mazbit-header-cta { display: none; }
  .mazbit-footer { padding-top: 26px; }
  .mazbit-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .mazbit-footer-col { border-left: 0; border-top: 1px solid var(--mazbit-line); padding: 20px 0 0; }
  .mazbit-contact-col { grid-column: auto; }
  .mazbit-footer-logo { width: 220px; }
  .mazbit-footer-description { max-width: 100%; font-size: 12.5px; }
  .mazbit-footer-cta { grid-column: auto; height: 300px; padding: 24px 18px; }
  .mazbit-display-image { width: 135px; height: 210px; right: -10px; bottom: 0; top: auto; opacity: .92; }
  .mazbit-btn-primary, .mazbit-btn-secondary { width: min(100%, 225px); }
  .mazbit-benefits-bar { grid-template-columns: 1fr; }
  .mazbit-benefit { min-height: 84px; }
  .mazbit-benefit::after { left: 18px; right: 18px; top: auto; bottom: 0; width: auto; height: 1px; }
  .mazbit-benefit-photo { grid-column: auto; min-height: 130px; }
  .mazbit-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mazbit-legal-links { flex-wrap: wrap; gap: 9px 12px; }
}
.mazbit-cta-copy h3 span { color: var(--mazbit-blue); }
