  /* FORCE Czytaj dalej button to always be clickable, even on Swiper clones */
  .swiper-slide { pointer-events: none !important; }
  .czytaj-wiecej-btn, .czytaj-wiecej-btn * {
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative;
  }
  /* If button is inside a .swiper-slide, make sure it is always on top */
  .swiper-slide .czytaj-wiecej-btn { z-index: 9999 !important; }
  /* Fix: Only Czytaj dalej button is clickable in news swiper, prevent Swiper from intercepting click on clones */
  .news-swiper .swiper-slide {
    pointer-events: none;
  }
  .news-swiper .czytaj-wiecej-btn {
    pointer-events: auto;
    z-index: 10;
    position: relative;
  }
  .footer-3-contact-list {
    font-size: 2.2rem !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .footer-3-contact-list li {
    font-size: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    text-align: left !important;
    gap: 18px !important;
  }
  .footer-3-contact-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-3-contact-icon svg {
    width: 40px !important;
    height: 40px !important;
  }
  .footer-3-contact-list {
    font-size: 1.6rem !important;
  }
  .footer-3-contact-list li {
    font-size: 1.45rem !important;
  }
  /* Make footer contact section and its components bigger */
  .footer-3-contact-heading {
    font-size: 2.1rem !important;
  }
  .footer-3-contact-list {
    font-size: 1.35rem !important;
  }
  .footer-3-contact-list li {
    font-size: 1.25rem !important;
  }
  .footer-3-contact-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .footer-3-contact-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  /* Center .desc-wrap vertically and horizontally inside mobile menu */
  .mobile-menu .desc-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove extra margin from nav-second and email */
  .mobile-menu .nav-second,
  .mobile-menu .email {
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Force mobile menu to center content vertically and horizontally */
  .mobile-menu, .header-mobile-menu {
    min-height: 100vh !important;
    height: 100vh !important;
    width: 100vw !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10010 !important;
    background: radial-gradient(circle at 50% 50%, var(--color-gradient-light) 0%, var(--color-primary-hover) 100%) !important;
    overflow-y: auto !important;
  }
  .mobile-menu, .header-mobile-menu {
    /* ...existing code... */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
@media (max-width: 1024px) {
  .burger-menu, .burger-menu.c-icon, .burger-menu.d-center {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    width: 48px !important;
    height: 48px !important;
    cursor: pointer !important;
  }
  .mobile-menu, .header-mobile-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 10010 !important;
    overflow-y: auto !important;
    background: radial-gradient(circle at 50% 50%, var(--color-gradient-light) 0%, var(--color-primary-hover) 100%) !important;
    box-shadow: 0 0 32px 0 rgba(0,0,0,0.18);
    transition: opacity 0.3s;
  }

  /* Prevent page scroll when menu is open (add .menu-open to body via JS when menu is open) */
  body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100vw !important;
  }
  .desktop-menu {
    display: none !important;
  }
}
@media (max-width: 600px) {
  html, body {
    min-width: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body {
    position: relative !important;
    background-attachment: scroll !important;
  }
  .container, .container-max, .container-middle, .container-fluid {
    min-width: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .mobile-menu, .header-mobile-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: 100vh !important;
    z-index: 9999 !important;
  }
  .desktop-menu {
    display: none !important;
  }
}
/* --- Footer 3 Redesign --- */
.footer-3 {
  position: relative;
  min-height: 320px;
  padding: 60px 0 0 0;
  background: radial-gradient(
    circle at 50% 50%,
    var(--color-gradient-light) 0%,
    var(--color-primary-hover) 100%
  );
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* overflow: visible !important; */
}

.footer-3-columns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
  width: 100%;
}

.footer-3-col {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-3-logo-wrap {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.footer-3-logo {
  width: 100%;
  max-width: 420px;
  min-width: 220px;
  height: auto;
  display: block;
}
.footer-3-title-line {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 18px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  /* overflow: visible !important; */
}

.footer-3-title-line {
  display: flex;
  align-items: flex-end;
  position: relative;
  margin-bottom: 18px;
}
.footer-3-title-text {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  line-height: 1.1;
  padding-bottom: 0.2em;
}
.footer-3-title-text {
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  padding-bottom: 0.2em;
  display: inline-block;
}
.footer-3-title-line--after {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.footer-3-title-text {
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  padding-bottom: 0.18em;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.footer-3-title-text {
  position: relative;
  z-index: 1;
}
.footer-3-title-text::after {
  content: "";
  position: absolute;
  left: -200vw;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #ff7a00;
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}
.footer-3-title-text {
  position: relative;
  z-index: 1;
  background: none;
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  padding-bottom: 0.18em;
  display: inline-block;
  margin-left: 0;
  margin-right: 0;
}
.footer-3-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.footer-3-contact-list li {
  margin-bottom: 14px;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.footer-3-contact-list a, .footer-3-contact-list span {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.footer-3-contact-list a:hover {
  color: #ff7a00 !important;
}

.footer-3-social-col {
  align-items: center;
}
.footer-3-social-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.footer-3-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}
.footer-3-social-icon:hover {
  background: #ff7a00;
}
.footer-3-social-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.footer-3-social-icon svg path {
  fill: #fff !important;
}

.footer-3-copyright {
  position: absolute;
  right: 40px;
  bottom: 28px;
  font-size: 1.35rem;
  color: #fff;
  background: none;
  padding: 8px 18px;
  border-radius: 8px;
  z-index: 2;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.footer-3-copyright a {
  color: #fff;
  text-decoration: underline;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .footer-3-columns {
    flex-direction: column;
    gap: 32px;
    max-width: 98vw;
    align-items: center;
  }
  .footer-3-copyright {
    position: static;
    margin-top: 32px;
    right: auto;
    bottom: auto;
    border-radius: 0;
    text-align: right;
    width: 100%;
    background: none;
  }
}
/* Ensure news section arrows are always visible and above content */
.news-controls--prev,
.news-controls--next {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  z-index: 10000 !important;
  position: absolute !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Remove background and border from custom news arrow buttons */
.news-arrow {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
}
/* Hide default Swiper arrows ::after for custom SVG arrows */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
  content: none !important;
}
@media (max-width: 1200px) {
  .uslugi-section .row {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .uslugi-section .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    padding: 0;
  }
  .uslugi-section .col-md-6:first-child {
    order: 1;
  }
  .uslugi-section .col-md-6:last-child {
    order: 2;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .uslugi-section .uslugi-image {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto 0 auto;
    left: unset;
    transform: none;
    position: static;
  }
  .uslugi-section .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (min-width: 1201px) {
  .uslugi-section .row {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .uslugi-section .col-md-6 {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
    padding: 0 24px;
    box-sizing: border-box;
  }
  .uslugi-section .col-md-6:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .uslugi-section .uslugi-image {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    left: unset;
    transform: none;
    position: static;
  }
}
/* USLUGI SECTION: Responsive mobile layout for <=1200px */
@media (max-width: 1200px) {
  .uslugi-section .row {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .uslugi-section .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    padding: 0;
  }
  .uslugi-section .uslugi-image {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto 24px auto;
  }
  .uslugi-section .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .uslugi-section .col-md-6:first-child {
    order: 2;
  }
  .uslugi-section .col-md-6:last-child {
    order: 1;
    margin-bottom: 18px;
  }
  .uslugi-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }
  .uslugi-item-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }
  .uslugi-item-desc {
    font-size: 1rem;
    margin-bottom: 18px;
      word-break: break-word;
      overflow-wrap: break-word;
      white-space: normal;
      max-width: 100%;
      box-sizing: border-box;
  }
  @media (max-width: 600px) {
    .uslugi-item-desc {
      word-break: break-word !important;
      overflow-wrap: break-word !important;
      white-space: normal !important;
      max-width: 100vw !important;
      box-sizing: border-box !important;
      padding-right: 0 !important;
      margin-right: 0 !important;
    }
  }
}
/* NEWS CONTROLS: align with cards, always visible, at sides of visible cards */
.news-container--unique {
  position: relative;
}
.news-swiper--unique {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
}
.news-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
}
.news-controls--prev {
  left: -56px !important;
}
.news-controls--next {
  right: -56px !important;
}
@media (max-width: 900px) {
  .news-controls--prev,
  .news-controls--next {
    top: auto;
    bottom: -36px;
    transform: none;
  }
  .news-controls--prev {
    left: 20%;
  }
  .news-controls--next {
    right: 20%;
  }
}
.news-arrow,
.ref-arrow {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: none !important;
}
.news-arrow:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.news-swiper--unique .swiper-wrapper {
  margin: 0 60px;
}

@media (min-width: 900px) {
  .news-swiper--unique .swiper-wrapper {
    margin: 0 80px;
  }
}
/* Absolute, hanging, radial-gradient news card effect */
.news-swiper--unique .swiper-wrapper {
  position: relative;
  min-height: 600px;
  overflow: visible !important;
  z-index: 1001 !important;
}
/* Site-wide contact CTA button style for 'Skontaktuj się' and 'Zadzwoń' */
.btn-contact {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 12px 16px !important;
  border-radius: var(--cta-border-radius, 32px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: var(--font-weight-semibold, 600) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  border: none !important;
  text-align: center !important;
  cursor: pointer !important;
}
/* Ensure news card CTA matches site-wide style */
.news-card--unique .btn-contact {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 12px 16px !important;
  border-radius: var(--cta-border-radius, 32px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: var(--font-weight-semibold, 600) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  border: none !important;
  text-align: center !important;
  cursor: pointer !important;
  margin-top: auto;
  font-size: 1rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-top: 18px !important;
}

/* Revert flex pinning, make button absolute bottom left */
  position: relative;
  border: 1.5px solid rgba(60, 80, 60, 0.13) !important;
  box-sizing: border-box;
}
.news-card-content .btn-contact {
  position: absolute;
  left: 14px;
  bottom: 10px;
  margin-top: 0 !important;
}
.news-card-content {
  padding: 14px 14px 32px 14px !important;
}

/* Equal vertical spacing for info-custom-section lines and content */
.info-custom-section__content {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Remove extra padding if background image is present (no lines) */
.info-custom-section[style*="background-image"] .info-custom-section__content {
  padding-top: 0;
  padding-bottom: 0;
}
/* Dimming overlay for sekcja_ze_zdjeciem_w_tle2.twig when background image is present */
.info-custom-section__dim-overlay {
  position: absolute;
  inset: 0;
  background: #1e321b;
  opacity: 0.75;
  z-index: 1;
  pointer-events: none;
}
/* Increase gap between the two blocks in desktop (row) layout only */
@media (min-width: 1201px) {
  .blocks .faktoring-row + .faktoring-row-bottom {
    margin-top: 96px !important; /* increased gap for desktop row layout */
  }
}
/* Toggle desktop/mobile blocks: show mobile <=1200px */
.blocks-desktop-only {
  display: block;
}
.blocks-mobile-only {
  display: none;
}

@media (max-width: 1200px) {
  .blocks-desktop-only {
    display: none;
  }
  .blocks-mobile-only {
    display: block;
  }
}

/* Mobile-specific styling for bloki_naprzemienne_mobile.twig */
.bloki-naprzemienne-mobile {
  padding: clamp(20px, 4vw, 36px);
}
.bloki-naprzemienne-mobile .mobile-block-img {
  max-width: 880px; /* match text wrapper */
  width: 100%;
  margin: 0 auto 20px;
  box-sizing: border-box;
  padding: 0 clamp(14px, 4.5vw, 36px);
}
.bloki-naprzemienne-mobile .mobile-block-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.bloki-naprzemienne-mobile .mobile-block-content {
  background: linear-gradient(180deg, #366e56, #2f6450);
  color: #fff;
  padding: clamp(20px, 4.5vw, 44px);
  border-radius: 20px;
  max-width: min(760px, 94%);
  margin: 0 auto 28px;
  box-sizing: border-box;
}
.bloki-naprzemienne-mobile .mobile-block-content .title {
  font-size: clamp(20px, 3.6vw, 28px);
  margin-bottom: 14px;
  color: #fff;
  font-weight: 700;
}
.bloki-naprzemienne-mobile .mobile-block-content .desc {
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.64;
  font-size: clamp(15px, 2.6vw, 17px);
  font-weight: 400;
}
.bloki-naprzemienne-mobile .mobile-block-2 {
  padding-top: 10px;
}
.bloki-naprzemienne-mobile .mobile-list li {
  margin-bottom: 14px;
  font-size: clamp(15px, 2.6vw, 17px);
}
.bloki-naprzemienne-mobile .mobile-block-img-small {
  max-width: 880px; /* align with text wrapper */
  width: 100%;
  margin: 22px auto 0;
  box-sizing: border-box;
  padding: 0 clamp(14px, 4.5vw, 36px);
}
.bloki-naprzemienne-mobile .mobile-block-img-small img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Ensure list and title share the same left offset inside the centered container */
.bloki-naprzemienne-mobile .mobile-block-2 .mobile-list {
  list-style: none;
  padding-left: 0; /* remove browser default */
  margin: 0 0 16px 0;
}
.bloki-naprzemienne-mobile .mobile-block-2 .mobile-list li {
  position: relative;
  padding-left: 36px; /* space for check image */
  margin-bottom: 14px;
}
.bloki-naprzemienne-mobile .mobile-block-2 .mobile-list li .check {
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-block;
}

/* Make sure the title uses the same inner padding as the list items */
.bloki-naprzemienne-mobile .mobile-block-2 .title {
  padding-left: 0; /* rely on parent padding */
}

/* Small tweaks to match screenshot spacing on narrow phones */
@media (max-width: 420px) {
  .bloki-naprzemienne-mobile {
    padding: 18px 14px;
  }
  .bloki-naprzemienne-mobile .mobile-block-img img {
    width: 170px;
    height: 170px;
  }
  .bloki-naprzemienne-mobile .mobile-block-content {
    padding: 16px;
    border-radius: 16px;
  }
  .bloki-naprzemienne-mobile .mobile-block-content .title {
    font-size: 20px;
  }
  .bloki-naprzemienne-mobile .mobile-block-content .desc {
    font-size: 14px;
  }
}

/* Fix: give mobile-block-2 breathing room and emphasize its title */
.bloki-naprzemienne-mobile .mobile-block-2 {
  padding: clamp(14px, 3.2vw, 28px);
  box-sizing: border-box;
}
.bloki-naprzemienne-mobile .mobile-block-2 .title {
  font-size: clamp(22px, 4.2vw, 32px);
  font-weight: 800;
  margin: 0 0 14px;
  color: #0b2b1f;
  text-align: left;
  padding: 0; /* rely on parent .mobile-block-2 padding so title matches desc */
  box-sizing: border-box;
}
.bloki-naprzemienne-mobile .mobile-block-2 .desc,
.bloki-naprzemienne-mobile .mobile-block-2 .faktoring-bottom-source {
  max-width: 880px;
  margin: 0 auto 12px;
  padding: 0; /* rely on the parent .mobile-block-2 padding for consistent inner spacing */
  box-sizing: border-box;
  color: #222;
  line-height: 1.66;
  font-size: clamp(15px, 2.6vw, 17px);
  text-align: left;
}

/* New wrapper for title+desc to ensure identical horizontal spacing */
.bloki-naprzemienne-mobile .mobile-block-2 .mobile-block-text {
  padding: 0 clamp(14px, 4.5vw, 36px);
  margin: 0 auto 14px;
  max-width: 880px;
  box-sizing: border-box;
}

.bloki-naprzemienne-mobile .mobile-block-2 .mobile-block-text .title {
  padding: 0; /* title already aligned via wrapper */
}

/* Ensure block content is left-aligned but the whole element stays centered */
.bloki-naprzemienne-mobile .mobile-block-content,
.bloki-naprzemienne-mobile .mobile-block-2 {
  text-align: left;
}
.bloki-naprzemienne-mobile .mobile-block-img-small {
  margin-top: 18px;
}
.bloki-naprzemienne-mobile .mobile-block-img-small img {
  max-width: 700px;
}

@media (max-width: 420px) {
  .bloki-naprzemienne-mobile .mobile-block-2 {
    padding: 14px 12px;
  }
  .bloki-naprzemienne-mobile .mobile-block-2 .title {
    font-size: 20px;
  }
  .bloki-naprzemienne-mobile .mobile-block-2 .desc {
    font-size: 14px;
    padding: 0 10px;
  }
}
@import url("overrides-info-section.css");
/* Banner-10 counter container: use padding instead of vw margins
   to avoid creating elements wider than the viewport on small screens */
.banner-10 .container-middle.counter {
  width: 100%;
  max-width: 100%;
  padding-left: 10vw;
  padding-right: 10vw;
  box-sizing: border-box;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  padding-top: 24px;
  padding-bottom: 24px;
  margin: 0;
}
/* Ensure any accidental horizontal overflow is clipped */
html,
body {

}

.banner-10-counter-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
  min-width: 180px;
  max-width: 340px;
  flex: 1 1 0;
  box-sizing: border-box;
}

.banner-10-counter-title {
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--color-text-dark);
  text-align: center;
}
.banner-10-counter-number {
  font-weight: 700;
  font-size: 52px;
  margin-bottom: 8px;
  color: var(--color-primary);
  text-align: center;
}
.banner-10-counter-desc {
  font-weight: 300;
  font-size: 20px;
  color: var(--color-text-light);
  text-align: center;
}
@media (max-width: 1024px) {
  .banner-10 .container-middle.counter {
    flex-direction: column;
    gap: 20px;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
  }
  .banner-10-counter-item {
    padding: 24px 20px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
}
/* Override styles for homepage redesign; safe from WP-SCSS recompiles. */

/* Import Roboto font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap");

/* Global font application to ALL elements */
* {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif !important;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif !important;
}

/* CSS Variables for easy theme customization */
:root {
  /* Colors */
  --color-primary: #f18a03;
  --color-primary-hover: #1e321b;
  --color-primary-gradient-start: #f18a03;
  --color-primary-gradient-end: #f18a03;
  --color-gradient-light: #4a644c;
  --color-text-dark: #0f0f0f;
  --color-text-darker: #0f0f0f;
  --color-text-light: #4a4f52;
  --color-text-muted: #969ba9;
  --color-white: #ffffff;
  --color-bg-dark: #1f3c2c;
  --color-bg-darker: #1f3727;
  --color-bg-green: #3f5f48;
  --color-social-icon: #0f0f0f;
  --color-border-light: rgba(0, 0, 0, 0.04);
  --color-shadow: rgba(0, 0, 0, 0.12);
  --color-shadow-primary: rgba(241, 138, 3, 0.25);

  /* Typography */
  --font-size-nav: 20px;
  --font-size-cta: 16px;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --nav-gap: 24px;
  --header-padding-y: 20px;
  --header-padding-x: 60px;
  --cta-padding-y: 12px;
  --cta-padding-x: 28px;
  --cta-border-radius: 8px;
}

/* Banner-10 custom layout overrides */
.banner-10-bg {
  --banner10-left-extend: calc(50vw - 50%);
  width: calc(
    100% + var(--banner10-left-extend) - 10vw
  ); /* extend left, reserve 20vw on right */
  max-width: none;
  margin-left: calc(
    -1 * var(--banner10-left-extend)
  ); /* snap to far-left of viewport */
  margin-right: 10vw;
  padding-left: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    circle at 50% 50%,
    var(--color-gradient-light) 0%,
    var(--color-primary-hover) 100%
  ) !important;
}

.banner-10-comment {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(4px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  border-radius: 32px !important;
  width: 90% !important;
  min-height: 160px !important;
  max-width: calc(100% - 40px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin: 30px auto !important;
  padding: 24px 48px 24px 48px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  z-index: 1.5 !important;
}

.banner-10-comment .banner-10-content .title {
  font-size: 42px !important;
  font-weight: 600 !important;
}

.banner-10-comment .banner-10-content .desc {
  font-size: 24px !important;
  font-weight: 300 !important;
}

.banner-10-image-left {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: auto !important;
  height: 120% !important;
  object-fit: cover !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.banner-10-image-right {
  position: absolute !important;
  right: 0 !important;
  top: -60px !important;
  width: auto !important;
  height: calc(100% + 60px) !important;
  object-fit: cover !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.banner-10-svg svg {
  width: 88px;
  height: 88px;
}

@media (max-width: 1024px) {
  .banner-10-comment {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 48px !important;
    border-radius: 20px !important;
  }
  .banner-10-svg {
    right: 24px;
    top: -24px;
  }
  .banner-10-svg svg {
    width: 72px;
    height: 72px;
  }
}

/* Increase right padding on banner-10 content for viewports below 1400px */
@media (max-width: 1400px) {
  .banner-10-comment .banner-10-content {
    padding-right: clamp(120px, 12vw, 520px) !important;
  }
}

/* Mobile layout for banner-10: remove images and make full-bleed under 1340px */
@media (max-width: 1340px) {
  .banner-10-bg {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  .banner-10-image-left,
  .banner-10-image-right {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Ensure the white comment box spans full width (no rounded corners) */
  .banner-10-comment {
    width: auto !important;
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding-left: clamp(20px, 6vw, 48px) !important;
    padding-right: clamp(20px, 6vw, 48px) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  /* make sure the content inside has enough right padding on small screens */
  .banner-10-comment .banner-10-content {
    padding-right: clamp(64px, 14vw, 520px) !important;
  }
}

/* Ensure side margin/padding persists on very small screens */
@media (max-width: 768px) {
  .banner-10-comment {
    max-width: calc(100% - 48px) !important;
    margin: 20px auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  .banner-10-comment .banner-10-content {
    padding-right: 24px !important;
  }
}

@media (max-width: 420px) {
  .banner-10-comment {
    margin: 16px auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .banner-10-comment .banner-10-content {
    padding-right: 16px !important;
  }
}

/* Add larger top margin for the alternating blocks section (`#faktoring`) with responsive values */
section.blocks#faktoring {
  margin-top: 160px !important;
}

@media (min-width: 1600px) {
  section.blocks#faktoring {
    margin-top: 220px !important;
  }
}

@media (max-width: 1024px) {
  section.blocks#faktoring {
    margin-top: 100px !important;
  }
}

@media (max-width: 768px) {
  section.blocks#faktoring {
    /* Mobile: make the green news container full-bleed and center blog cards
   also ensure arrows are visible and behave like referencje controls */
    @media (max-width: 1024px) {
      .news-section--unique .news-container--unique {
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding-left: clamp(16px, 6vw, 40px) !important;
        padding-right: clamp(16px, 6vw, 40px) !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        overflow: visible !important;
      }

      .news-section--unique .news-layout--unique {
        align-items: center !important;
        gap: 18px !important;
      }

      .news-swiper--unique .swiper {
        overflow: hidden !important;
      }
      .news-swiper--unique .swiper-wrapper {
        display: flex !important;
        align-items: stretch !important;
      }
      .news-swiper--unique .swiper-slide {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
      }

      .news-card--unique {
        max-width: 760px !important;
        margin: 0 auto !important;
        width: 100% !important;
      }

      /* Make arrow controls visible and inline like referencje */
      .news-controls {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 0 0 auto !important;
      }
      .news-controls .news-arrow {
        display: flex !important;
        width: 48px !important;
        height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
      }
    }
    margin-top: 60px !important;
  }
}

/* Header alignment to match reference */
header.header-1,
header.header-2,
header.header-3,
header.header-4 {
  width: 100vw;
  /* Banner-10 overrides to match hero design */
  section.banner-10 {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-top: 40px;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(
      circle at 50% 50%,
      var(--color-gradient-light) 0%,
      var(--color-primary-hover) 100%
    );
  }

  max-width: 100%;
  background: var(--color-white);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--header-padding-y);

}

/* Responsive: stack alternating blocks vertically on smaller screens (<=1200px) */
@media (max-width: 1200px) {
  .faktoring-row,
  .faktoring-row-bottom,
  .faktoring-row-centered,
  .faktoring-row-imgoverlap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
    position: relative !important;
  }

  .faktoring-img-abs,
  .faktoring-img-abs-overlap,
  .faktoring-bottom-right img {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 16px 0 !important;
    z-index: 1 !important;
  }

  .faktoring-col-content,
  .faktoring-col-content-imgoverlap,
  .faktoring-col-content-padimg,
  .faktoring-col-content-extra-pad {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .faktoring-row .title,
  .faktoring-bottom-left .title {
    font-size: clamp(20px, 4.2vw, 28px) !important;
  }
  .faktoring-row .desc,
  .faktoring-bottom-left .desc {
    font-size: clamp(14px, 3.6vw, 18px) !important;
  }
}

@media (max-width: 420px) {
  .faktoring-row,
  .faktoring-row-bottom {
    gap: 16px !important;
    margin-bottom: 28px !important;
  }
  .faktoring-img-abs,
  .faktoring-bottom-right img {
    margin-bottom: 12px !important;
  }
}

header.header-1 .container-max,
header.header-2 .container-max,
header.header-3 .container-max,
header.header-4 .container-max {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 32px;
  padding: var(--header-padding-y) var(--header-padding-x);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

header .logo {
  flex-shrink: 0;
}

header .logo img {
  max-height: 200px !important;
  width: auto !important;
  height: auto !important;
  min-height: 100px !important;
}

header .desktop-menu {
  flex-shrink: 0;
  width: auto;
  display: flex;
  justify-content: flex-end;
}

header .desktop-menu .nav-main {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: var(--nav-gap);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  width: auto !important;
  flex-shrink: 0;
}

header .desktop-menu .nav-main.d-center {
  justify-content: flex-end !important;
}

header .desktop-menu .nav-main-item.line {
  display: none;
}

header .desktop-menu .nav-main-link {
  font-size: var(--font-size-nav);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-dark);
  padding: 6px 0;
  transition: color 0.3s ease;
}

header .desktop-menu .nav-main-link:hover {
  color: var(--color-primary);
}

/* CTA wrapper with absolute socials */
.cta-wrapper {
  position: relative;
}

.socials-row {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  left: auto;
  transform: none;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  max-width: 100%;
  flex-wrap: wrap;
}

.socials-row .c-icon {
  display: inline-flex;
  transition: all 0.3s ease;
  cursor: pointer;
}
.socials-row .c-icon svg path {
  fill: var(--color-social-icon) !important;
  transition: fill 0.3s ease;
}
.socials-row .c-icon svg {
  width: 22px;
  height: 22px;
}
.socials-row .c-icon:hover svg path {
  fill: var(--color-primary) !important;
}

.header-cta {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: var(--cta-padding-y) var(--cta-padding-x) !important;
  border-radius: var(--cta-border-radius) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: var(--font-size-cta) !important;
  font-weight: var(--font-weight-semibold) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

.header-cta:hover {
  background: var(--color-primary-hover) !important;
}

/* Match "Zadzwon" tel CTA to header button styling */
a.tel {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: var(--cta-padding-y) var(--cta-padding-x) !important;
  border-radius: var(--cta-border-radius) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: var(--font-size-cta) !important;
  font-weight: var(--font-weight-semibold) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  filter: none !important;
  position: relative !important;
  z-index: 4 !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
  pointer-events: auto !important;
}

a.tel:hover {
  background: var(--color-primary-hover) !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Hide secondary email row for this layout */
header .email {
  display: none;
}

/* Hide burger on desktop; keep for mobile */
@media (min-width: 1025px) {
  header .burger-menu {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  header.header-1 .container-max,
  header.header-2 .container-max,
  header.header-3 .container-max,
  header.header-4 .container-max {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 16px 20px;
  }

  header .desktop-menu {
    display: none;
  }
  .socials-row {
    position: static;
    transform: none;
    justify-content: flex-start;
  }
}

/* Global buttons */
.main-btn,
.main-btn-standard {
  background: linear-gradient(
    180deg,
    var(--color-primary-gradient-start) 0%,
    var(--color-primary-gradient-end) 90%
  ) !important;
  color: var(--color-white) !important;
  border: none !important;
  box-shadow: 0 8px 18px var(--color-shadow-primary);
}

.main-btn:hover,
.main-btn-standard:hover {
  filter: brightness(0.95);
  box-shadow: 0 10px 22px rgba(242, 138, 0, 0.32);
}

/* Factoring cards (packets) */
section.packets {
  background: radial-gradient(
    circle at 20% 20%,
    var(--color-bg-green) 0%,
    var(--color-bg-darker) 65%
  );
  padding: 8rem 0 9rem;
}

section.packets .f-title {
  color: var(--color-white);
  margin-bottom: 4rem;
}
section.packets .wrap {
  gap: 2.4rem;
}
section.packets .wrap .item {
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 20px 45px var(--color-shadow);
  padding: 3.2rem 2.8rem;
  text-align: center;
  min-width: 240px;
}
section.packets .wrap .item .f-menu,
section.packets .wrap .item .f-price-name,
section.packets .wrap .item .f-price {
  color: var(--color-bg-dark);
}
section.packets .wrap .item ul li {
  color: var(--color-text-light);
  margin-bottom: 1.4rem;
}
section.packets .wrap .item .main-btn-standard {
  margin-top: 1.8rem;
  width: 100%;
}

/* Reviews slider cards */
section.reviews {
  background: #fff;
  padding: 8rem 0;
}
section.reviews .f-title {
  margin-bottom: 3.5rem;
}
section.reviews .swiper-slide .item {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  padding: 3.6rem 3rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
section.reviews .item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2.4rem;
}
section.reviews .item .f-desc {
  color: #4a4f52;
  line-height: 1.5;
  margin-top: 1.8rem;
}
section.reviews .swiper-button-prev,
section.reviews .swiper-button-next {
  color: #c5c8ce;
  top: 50%;
  width: 42px;
  height: 42px;
}

/* Blog/news slider cards */
section.news {
  padding: 8rem 0;
}
section.news .container-middle {
  background: radial-gradient(circle at 12% 20%, #3f5f48 0%, #1f3727 80%);
  border-radius: 32px;
  padding: 4.8rem 3.2rem;
  color: #fff;
}
section.news .f-title {
  color: #fff;
  margin-bottom: 2rem;
}
section.news .item {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  padding: 0 0 2.8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
section.news .item .left img {
  width: 100%;
  height: auto;
  display: block;
}
section.news .item .right {
  padding: 2.4rem 2.6rem 0;
}
section.news .item .right .f-desc {
  color: #4a4f52;
  margin: 1.4rem 0 0;
}
section.news .swiper-button-prev,
section.news .swiper-button-next {
  color: #e5e7ea;
  top: 50%;
}

/* Blog grid cards */
section.blogshort .wrap .item,
section.blog .wrap .item {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  padding-bottom: 1.6rem;
  overflow: hidden;
}
section.blogshort .wrap .item img,
section.blog .wrap .item img {
  border-radius: 22px 22px 0 0;
  transition: transform 0.25s ease;
}
section.blogshort .wrap .item:hover img,
section.blog .wrap .item:hover img {
  transform: scale(1.02);
}

/* Contact/footer block */
section.footer,
section.kontakt {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(49, 85, 63, 0.9) 0%,
      rgba(20, 38, 29, 0.9) 70%
    ),
    url("../static/images/footer-bg.jpg") center/cover no-repeat;
  color: #e7eced;
}
section.footer .f-title,
section.kontakt .f-title {
  color: #fff;
}
section.footer a,
section.kontakt a {
  color: #fff;
}
section.footer a:hover,
section.kontakt a:hover {
  color: #f9a12b;
}

/* Service text + portrait pairing */
section.standard .container-small {
  align-items: center;
  gap: 5%;
}
section.standard .img img {
  max-width: 520px;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

@media (max-width: 900px) {
  section.packets .wrap .item {
    width: calc(50% - 1.2rem);
  }
  section.news .container-middle {
    padding: 3.2rem 2.4rem;
  }
  section.standard .container-small {
    flex-direction: column-reverse;
  }
}

@media (max-width: 560px) {
  section.packets .wrap .item {
    width: 100%;
  }
  .main-btn,
  .main-btn-standard {
    width: 100%;
    text-align: center;
  }
}

/* Faktoring section overrides */
.faktoring-col-content-imgoverlap {
  position: absolute !important;
  left: 260px !important;
  right: 0 !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 0 !important;
  padding-left: 350px !important;
  width: auto !important;
  background: radial-gradient(
    circle,
    rgb(74, 100, 76) 0%,
    rgb(30, 50, 27) 100%
  ) !important;
}

.faktoring-col-content-imgoverlap .title {
  font-weight: 600 !important;
  font-size: 20px !important;
}

.faktoring-col-content-imgoverlap .desc {
  font-weight: 300 !important;
  font-size: 10px !important;
}

.faktoring-bottom-left .title {
  font-weight: 600 !important;
  font-size: 36px !important;
}

.faktoring-bottom-left .desc {
  font-weight: 300 !important;
  font-size: 18px !important;
}

.faktoring-bottom-left .desc em {
  font-weight: 300 !important;
  font-size: 14px !important;
}

@media (max-width: 1200px) {
  .faktoring-col-content-imgoverlap {
    left: 130px !important;
    padding-left: 170px !important;
    width: auto !important;
  }
  .faktoring-col-content-imgoverlap .title {
    font-size: 28px !important;
  }
  .faktoring-col-content-imgoverlap .desc {
    font-size: 14px !important;
  }
  .faktoring-bottom-left .title {
    font-size: 30px !important;
  }
  .faktoring-bottom-left .desc {
    font-size: 15px !important;
  }
  .faktoring-bottom-left .desc em {
    font-size: 12px !important;
  }
}

@media (max-width: 768px) {
  .faktoring-col-content-imgoverlap .title {
    font-size: 24px !important;
  }
  .faktoring-col-content-imgoverlap .desc {
    font-size: 12px !important;
  }
  .faktoring-bottom-left .title {
    font-size: 24px !important;
  }
  .faktoring-bottom-left .desc {
    font-size: 12px !important;
  }
  .faktoring-bottom-left .desc em {
    font-size: 10px !important;
  }
}

@media (min-width: 1440px) {
  .faktoring-col-content-imgoverlap .title {
    font-size: 34px !important;
  }
  .faktoring-col-content-imgoverlap .desc {
    font-size: 18px !important;
  }
  .faktoring-bottom-left .title {
    font-size: 36px !important;
  }
  .faktoring-bottom-left .desc {
    font-size: 18px !important;
  }
  .faktoring-bottom-left .desc em {
    font-size: 14px !important;
  }
}

/* Pakiety styles */
.pakiety-wrap {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.pakiety-wrap .item {
  flex: 1 !important;
  max-width: 25% !important;
  box-sizing: border-box !important;
  background: white !important;
  text-align: center !important;
  border-radius: 28px !important;
  padding: 20px !important;
}

/* Stack package cards vertically when the container is narrow (mobile or when they don't fit) */
@media (max-width: 1200px) {
  .pakiety-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }
  .pakiety-wrap .item {
    width: 100% !important;
    max-width: 720px !important; /* keep a comfortable max width */
    box-sizing: border-box !important;
    padding: 18px !important;
  }
}

.pakiety-wrap .item p.f-menu {
  font-weight: 500 !important;
  font-size: 24px !important;
}

.pakiety-wrap .item li.f-desc p {
  font-weight: 300 !important;
  font-size: 20px !important;
}

/* Pakiety section width */
.packets .container-middle {
  max-width: 1400px !important;
}

.pakiety-desc {
  text-align: right !important;
}

.swiper-button-next {
  display: flex !important;
  width: auto;
  height: auto;
}

.banner {
  display: none !important;
}

/* Uslugi section image adjustments */
.uslugi-section .row {
  align-items: stretch !important;
}

.uslugi-section .col-md-6:last-child {
  display: flex !important;
  align-items: center !important;
}

.uslugi-image {
  max-width: 600px !important;
  height: auto !important;
  width: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Referencje section overrides */
.referencje-block {
  background: white !important;
}

.referencje-block .container-small {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.referencje-block .referencje.swiper-button-next {
  display: block !important;
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

.referencje-block .referencje.swiper-button-prev {
  display: block !important;
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

/* Strong white background mask to neutralize upstream gradients */
section.referencje-block {
  position: relative !important;
}
section.referencje-block::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
section.referencje-block .container-small,
section.referencje-block .swiper,
section.referencje-block .item {
  position: relative !important;
  z-index: 2 !important;
}

/* Make all review cards the same fixed height and clamp description */
/* Larger fixed height and stretch to slider height */
section.referencje-block .item {
  min-height: 520px !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

section.referencje-block .item .f-desc {
  color: #4a4f52 !important;
  line-height: 1.5 !important;
  margin-top: 1.2rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 5 !important; /* show ~5 lines */
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Layout: place arrows in fixed side columns so they don't overlap cards */
.referencje-container {
  display: flex !important;
  align-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
}
.referencje-container .referencje-controls {
  flex: 0 0 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}
.referencje-container .referencje-controls .swiper-button-prev,
.referencje-container .referencje-controls .swiper-button-next {
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* ensure swiper takes remaining space */
.referencje-container .swiper {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 520px !important; /* slider height */
}

/* make wrapper/slide stretch so .item can be 100% height */
section.referencje-block .swiper .swiper-wrapper {
  height: 100% !important;
}
section.referencje-block .swiper .swiper-slide {
  height: 100% !important;
  display: flex !important;
  align-items: stretch !important;
}

/* center arrow svg vertically and remove pseudo arrows */
section.referencje-block .swiper-button-prev:after,
section.referencje-block .swiper-button-next:after {
  display: none !important;
}

/* Prevent arrows from overflowing outside the section on small screens */
@media (max-width: 900px) {
  .referencje-container {
    gap: 8px !important;
  }
  .referencje-container .referencje-controls {
    flex: 0 0 44px !important;
  }
  section.referencje-block .item {
    height: auto !important;
    min-height: 0 !important;
  }
  section.referencje-block .item .f-desc {
    -webkit-line-clamp: 6 !important;
  }
}

/* --- New styles for redesigned referencje (unique names) --- */
.ref-section--unique {
  padding: 10rem 0 8rem !important;
  background: transparent !important;
}
.ref-container--unique {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 0 4vw !important;
}
.ref-title--unique {
  text-align: center !important;
  font-size: 3.6rem !important;
  margin-bottom: 1.2rem !important;
  color: var(--title) !important;
}
.ref-container--unique {
  padding: 0 6vw !important;
}
.ref-layout--unique {
  display: flex !important;
  align-items: stretch !important;
  gap: 20px !important;
}
.ref-layout--unique {
}
.ref-controls {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-arrow {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: none;
}
.ref-arrow svg {
  display: block;
}
.ref-arrow svg path {
  fill: #7a7c84 !important;
}
.ref-arrow {
  z-index: 60 !important;
}
.ref-layout--unique {
  /* keep normal overflow to preserve swiper behavior */
}
.ref-section--unique .ref-arrow {
  z-index: 60 !important;
}
.ref-section--unique .ref-controls {
  overflow: visible !important;
}
.ref-swiper--unique {
  /* keep swiper overflow hidden for proper carousel clipping */
}
.ref-swiper--unique .swiper {
  overflow: hidden !important;
}
.ref-swiper--unique .swiper-wrapper {
  height: 100% !important;
}
.ref-swiper--unique .swiper-slide {
  height: 100% !important;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.ref-section--unique .ref-card--unique {
  overflow: visible !important;
}

/* Place nav buttons in the controls column (not absolutely on the page) */
.ref-section--unique .ref-controls .swiper-button-prev,
.ref-section--unique .ref-controls .swiper-button-next {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  width: 56px !important;
  height: 56px !important;
  background: transparent !important;
}

/* Hide Swiper's built-in font icon so only our inline SVG is visible */
.ref-section--unique .swiper-button-prev:after,
.ref-section--unique .swiper-button-next:after {
  display: none !important;
}

/* Ensure controls column shows only the SVG button appearance */
.ref-section--unique .ref-controls .swiper-button-prev,
.ref-section--unique .ref-controls .swiper-button-next {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.ref-swiper--unique {
  flex: 1 1 auto;
  width: 100%;
  height: 640px !important;
}
.ref-swiper--unique .swiper {
  overflow: hidden !important;
}
.ref-swiper--unique .swiper-wrapper {
  height: 100% !important;
}
.ref-swiper--unique .swiper-slide {
  height: 100% !important;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden !important;
}
.ref-card--unique {
  background: #fff;
  border-radius: 20px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 640px;
  height: 100% !important;
  box-sizing: border-box;
  overflow: visible !important;
}

/* Show one reference card at a time on narrow viewports (<=1000px) */
@media (max-width: 1000px) {
  .ref-swiper--unique {
    height: auto !important;
  }
  .ref-swiper--unique .swiper {
    overflow: hidden !important;
  }
  .ref-swiper--unique .swiper-wrapper {
    display: flex !important;
    transition: transform 0.3s ease !important;
  }
  .ref-swiper--unique .swiper-slide {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }
  .ref-card--unique {
    max-width: 760px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .ref-controls {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .ref-controls .ref-arrow {
    display: flex !important;
  }
}
.ref-avatar--unique img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.ref-name--unique {
  margin-top: auto !important;
}
.ref-role--unique {
  margin-bottom: 0 !important;
}

/* prevent page horizontal scroll caused by any overflow in this section */
.ref-section--unique {

}
.ref-desc--unique {
  color: #6b6f72 !important;
  text-align: center;
  line-height: 1.6 !important;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-name--unique {
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  color: var(--title);
}
.ref-role--unique {
  font-size: 1.2rem;
  color: var(--desc);
  text-align: center;
}

@media (max-width: 1100px) {
  .ref-swiper--unique {
    height: 520px !important;
  }
  .ref-card--unique {
    padding: 36px 24px;
  }
  .ref-avatar--unique img {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 700px) {
  .ref-layout--unique {
    flex-direction: column;
    gap: 12px;
  }
  .ref-controls {
    flex: 0 0 auto;
  }
  .ref-swiper--unique {
    height: auto !important;
  }
  .ref-card--unique {
    max-width: 100%;
    height: auto !important;
  }
  .ref-desc--unique {
    -webkit-line-clamp: 6;
  }
}

/* NEWS/BLOG CARD STYLES */
.news-card--unique {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 420px;
  max-width: 370px;
  margin: 0 auto;
  transition: box-shadow 0.2s;
}
.news-card--unique:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}
.news-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.news-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 18px 56px 18px;
  position: relative;
}
.news-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.news-excerpt {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.5;
  flex: 1 1 auto;
}
.news-card--unique .btn-contact {
  background: var(--color-primary, #ff6600);
  color: #fff;
  padding: 12px 20px;
  border-radius: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  border: none;
  text-align: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin-top: 0;
}
.news-card--unique .btn-contact:hover {
  background: #e65c00;
}
