/* Responsive refinements and the compact mobile navigation. */
.bb-mobile-toggle { display: none; }
.bb-cookie-banner[hidden], .bb-cookie-reopen[hidden] { display: none !important; }
.bb-cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10020;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  width: min(760px, calc(100vw - 36px));
  max-height: min(82vh, 620px);
  overflow: auto;
  padding: 22px 24px;
  border-top: 5px solid #fde401;
  background: #fff;
  color: #171717;
  box-shadow: 0 10px 42px rgba(0,0,0,.3);
  font: 15px/1.5 Arial, sans-serif;
}
.bb-cookie-banner__copy p { margin: 0 0 10px; }
.bb-cookie-banner__copy .bb-cookie-banner__eyebrow { margin: 0 0 5px; color: #665c00; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.bb-cookie-banner h2 { margin: 0 0 8px; color: #111; font: 700 21px/1.25 Arial, sans-serif; }
.bb-cookie-banner a { color: #222; text-decoration: underline; text-underline-offset: 2px; }
.bb-cookie-banner__actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 174px; }
.bb-cookie-button { min-height: 40px; padding: 9px 12px; border: 1px solid #222; border-radius: 2px; background: #fff; color: #161616; font: 700 13px/1.2 Arial, sans-serif; cursor: pointer; }
.bb-cookie-button--accept { border-color: #111; background: #fde401; }
.bb-cookie-button--accept:hover { background: #f2d900; }
.bb-cookie-button--reject:hover, .bb-cookie-button--settings:hover { background: #f4f4f4; }
.bb-cookie-button--save { border-color: #111; background: #fde401; }
.bb-cookie-settings { grid-column: 1 / -1; margin-top: 16px; border-top: 1px solid #ddd; }
.bb-cookie-setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #e7e7e7; }
.bb-cookie-setting strong, .bb-cookie-setting small { display: block; }
.bb-cookie-setting small { margin-top: 3px; color: #555; font-size: 12px; }
.bb-cookie-switch { position: relative; flex: 0 0 42px; width: 42px; height: 24px; }
.bb-cookie-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bb-cookie-switch span { position: absolute; inset: 0; border-radius: 20px; background: #bbb; cursor: pointer; transition: background .15s ease; }
.bb-cookie-switch span::before { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; content: ""; transition: transform .15s ease; }
.bb-cookie-switch input:checked + span { background: #171717; }
.bb-cookie-switch input:checked + span::before { transform: translateX(18px); }
.bb-cookie-switch input:disabled + span { background: #777; cursor: not-allowed; }
.bb-cookie-switch input:focus-visible + span { outline: 3px solid #d5b900; outline-offset: 2px; }
.bb-cookie-reopen { position: fixed; bottom: 12px; left: 12px; z-index: 10019; padding: 9px 12px; border: 1px solid #222; border-radius: 2px; background: #fde401; color: #111; font: 700 12px/1.2 Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
@media (min-width: 992px) {
  .homebaner #text-2 .textwidget > .su-row {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 42px;
  }
  .homebaner #text-2 .textwidget > .su-row > br { display: none; }
  .homebaner #text-2 .su-row > .su-column {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
  }
  .homebaner #text-2 .su-column-inner { padding: 0; }
  .homebaner #text-2 .su-column-size-2-5 img {
    display: block;
    width: 100% !important;
    height: auto;
    max-height: 360px;
    margin: 0 !important;
    object-fit: cover;
  }
  .homebaner #text-2 .su-column-size-3-5 p { margin-top: 0; }
}
@media (max-width: 991px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body { padding-top: 0; }

  .top2 { background-size: auto 190px; background-position: top center; }
  .top2 > .col-md-12 { padding-left: 0; padding-right: 0; }
  .row.top {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "contact";
    align-items: start;
    justify-items: stretch;
    gap: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 0 10px;
    background: #fff;
    box-shadow: none;
  }
  .row.top > .col-md-3:first-child {
    grid-area: brand;
    float: none;
    width: auto;
    padding: 7px 12px 6px;
    text-align: center;
  }
  .row.top > .mobildhdbjhd {
    grid-area: contact;
    float: none;
    width: auto;
    padding: 0 14px;
  }
  .row.top .logo img {
    width: clamp(210px, 70vw, 250px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .row.top .telefon {
    margin: 0;
    padding: 7px 10px 8px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
  }
  .row.top .telefon ul { margin: 0; padding: 0; }
  .row.top .telefon li { display: block; margin: 2px 0; }
  .row.top .telefon li + li { display: block; }
  .row.top .telefon img { width: 20px; margin-right: 5px; }

  .bb-mobile-nav {
    position: sticky;
    top: 0;
    z-index: 10001;
    float: none;
    width: 100%;
    min-height: 54px;
    padding: 0;
    background: #fde401;
  }
  .bb-mobile-toggle {
    position: absolute;
    top: 9px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 3px;
    background: #111;
    color: #fff;
    font: 700 14px/1 Arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
  }
  .bb-mobile-toggle__icon,
  .bb-mobile-toggle__icon::before,
  .bb-mobile-toggle__icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    content: "";
  }
  .bb-mobile-toggle__icon { position: relative; }
  .bb-mobile-toggle__icon::before { position: absolute; top: -6px; left: 0; }
  .bb-mobile-toggle__icon::after { position: absolute; top: 6px; left: 0; }
  .bb-mobile-toggle[aria-expanded="true"] .bb-mobile-toggle__icon { background: transparent; }
  .bb-mobile-toggle[aria-expanded="true"] .bb-mobile-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .bb-mobile-toggle[aria-expanded="true"] .bb-mobile-toggle__icon::after { top: 0; transform: rotate(-45deg); }

  .bb-mobile-nav .menu_top1 { position: relative; height: 54px; background: #fde401; }
  .bb-mobile-nav .menu_top1 > ul,
  .bb-mobile-nav .menu_top1 .menu-menu-1-container > ul {
    display: none;
    position: absolute;
    top: 54px;
    right: 0;
    left: 0;
    z-index: 10000;
    margin: 0;
    padding: 6px 14px;
    border-top: 3px solid #111;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
    text-align: left;
  }
  .bb-mobile-nav .menu_top1.is-open > ul,
  .bb-mobile-nav .menu_top1.is-open .menu-menu-1-container > ul { display: block; }
  .bb-mobile-nav .menu_top1 li {
    float: none;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e9e9e9;
  }
  .bb-mobile-nav .menu_top1 li:last-child { border-bottom: 0; }
  .bb-mobile-nav .menu_top1 li a {
    display: block;
    padding: 13px 4px;
    border: 0;
    color: #111;
    font-size: 15px;
  }
  .bb-mobile-nav .menu_top1 li a:hover,
  .bb-mobile-nav .menu_top1 .active a { border: 0; background: #fff9bd; }

  .bialo > .container { width: 100%; padding-right: 18px; padding-left: 18px; }
  .tytulpage, .srodekpage { width: 100%; margin-right: 0; margin-left: 0; }
  .tytulpage h1 { width: 100%; margin-top: 30px; font-size: clamp(30px, 7vw, 42px); }
  .tolsypage { padding-top: 24px; padding-bottom: 60px; }
  .srodekpage { margin-bottom: 60px; }
  .srodekpage img, .srodekpage video, .srodekpage iframe { max-width: 100%; }
  .srodekpage video, .srodekpage iframe { height: auto; }
  .su-row { display: flex; flex-wrap: wrap; gap: 18px 0; }
  .homebaner #text-2 .textwidget > .su-row > br { display: none; }
  .su-column { float: none !important; width: 100% !important; margin-left: 0 !important; }
  .slider { top: 0; margin-bottom: 0; }
  .carousel-inner > .item > img { width: 100%; height: auto; }
  .footer { margin-top: 0; background-size: cover; }
  .footerlok { margin-top: 54px; }
  .footerlok img { padding-bottom: 0; }
  .footerlok2 { margin-top: 28px; }
}

@media (max-width: 600px) {
  .top2 { background-size: auto 160px; }
  body { padding-top: 0; }
  .row.top { padding-bottom: 10px; }
  .row.top > .col-md-3:first-child { padding: 7px 10px 6px; }
  .row.top .logo img { width: clamp(210px, 70vw, 250px); }
  .row.top .telefon { padding: 7px 10px 8px; font-size: 16px; }
  .row.top .telefon img { width: 18px; }
  .bb-mobile-toggle { min-height: 42px; padding: 0 12px; }
  .bialo > .container { padding-right: 14px; padding-left: 14px; }
  .tytulpage h1 { margin-top: 24px; margin-bottom: 20px; }
  .srodekpage { font-size: 16px; line-height: 1.65; }
  .srodekpage img { height: auto; }
  .bb-cookie-banner { right: 10px; bottom: 10px; grid-template-columns: 1fr; gap: 14px; width: calc(100vw - 20px); max-height: 86vh; padding: 18px 16px; }
  .bb-cookie-banner h2 { font-size: 19px; }
  .bb-cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
  .bb-cookie-button { min-height: 42px; padding: 8px; font-size: 12px; }
  .bb-cookie-button--accept { grid-column: 1 / -1; }
  .bb-cookie-settings { grid-column: 1; }
  .bb-cookie-reopen { bottom: 8px; left: 8px; }
}

@media (max-width: 991px) {
  .bb-services { margin-right: -15px; margin-left: -15px; }
  .bb-service-hero { margin-right: 0; margin-left: 0; }
}
/* Homepage service rows: independent of the legacy WordPress shortcode grid. */
.homebaner { padding: 0 !important; background: #fff; }
.homebaner-content { width: min(1140px, calc(100% - 30px)); margin: 0 auto; }
.bb-home-services { display: block; padding: 10px 0 0; background: #fff; }
.bb-home-service { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 32px; margin: 0; padding: 30px 0; border-bottom: 1px solid #e5e5e5; }
.bb-home-service > img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.bb-home-service__text h2 { margin: 0 0 8px; color: #111; font-size: 19px; font-weight: 700; line-height: 1.35; }
.bb-home-service__text p { margin: 0 0 10px; color: #111; font-size: 16px; line-height: 1.55; }
.bb-home-service__text .bb-home-service__contact { margin: 0; font-weight: 700; }
.bb-home-service__contact a { color: #111; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) {
  .homebaner-content { width: calc(100% - 28px); }
  .bb-home-services { padding-top: 0; }
  .bb-home-service { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .bb-home-service > img { width: 100%; max-height: 280px; object-fit: cover; }
  .bb-home-service__text h2 { font-size: 18px; }
  .bb-home-service__text p { font-size: 15px; line-height: 1.6; }
}
/* Keep the company background inside its own row; prevent the legacy negative overlap. */
.tolhome { margin-bottom: 0 !important; }
.bb-home-service { box-sizing: border-box; width: 100%; max-width: none; }

/* Center the “Dlaczego Właśnie My” title inside the yellow ribbon. */
.tolzlotytrojkont h1 { margin-top: 16px; }
