main, .catalog-main, .filters, .category-body, .detail-text,
.footer-top > *, .staff-info, .service-card-content { min-width: 0; }
.footer-address a, .footer-address span, .footer-author,
.footer-bottom-right, .staff-details a { overflow-wrap: anywhere; }
.footer-map iframe { max-width: 100%; }
.pagination { flex-wrap: wrap; }

@media (max-width: 1120px) {
  .header-inner { min-height: 70px; gap: 12px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .mobile-menu-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 9px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px max(16px, calc((100vw - var(--maks-szerokosc))/2)) 16px;
    background: #fff;
    box-shadow: 0 18px 24px rgba(15,84,148,.14);
    border-top: 1px solid var(--obramowanie);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    max-height: min(75vh, 520px);
    overflow-y: auto;
    z-index: 30;
  }
  .main-nav.is-mobile-open { display: flex; }
  .main-nav > a { display: block; padding: 13px 12px; border-radius: 5px; white-space: normal; }
  .main-nav > a:hover, .main-nav > a.is-active { background: #edf4f8; }

  .main-nav a:focus-visible { outline-offset: -2px; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .footer-map iframe { height: 190px; }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 40px), var(--maks-szerokosc)); }
  .category-grid, .service-grid, .brand-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .brand-tile--logo-only { min-height: 124px; padding: 20px; }
  .catalog-layout { grid-template-columns: minmax(195px, .35fr) minmax(0, 1fr); gap: 16px; }
  .filters { min-height: auto; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .process-step::after { display: none; }
  .service-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-benefit:nth-child(even) { border-right: 0; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .benefit, .benefit:first-child, .benefit:nth-child(3) {
    border-right: 1px solid #d7e3ec;
    padding: 0 12px;
  }
  .benefit:nth-child(even), .benefit:last-child { border-right: 0; }
  .detail-layout { gap: 24px; }
}

@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { padding: 16px; }
  .filters form { min-width: 0; }
  .catalog-toolbar { align-items: stretch; }
  .toolbar-right { flex-wrap: wrap; }
  .products-grid.is-list .product-card {
    display: grid;
    grid-template-columns: minmax(110px, 31%) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 4px 15px;
    align-items: start;
    min-height: 0;
  }
  .products-grid.is-list .product-image {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 100%;
    height: 135px;
    align-self: center;
    object-fit: contain;
  }
  .products-grid.is-list .product-brand-logo,
  .products-grid.is-list .product-name,
  .products-grid.is-list .product-description { grid-column: 2; }
  .products-grid.is-list .product-bottom {
    grid-column: 2;
    grid-row: auto;
    align-self: end;
    justify-content: space-between;
    margin-top: 6px;
  }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-picture { min-height: 260px; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 32px), var(--maks-szerokosc)); }
  .hero, .hero--main, .hero--service, .hero--contact { min-height: 440px; }
  .hero .container { align-items: flex-start; }
  .hero-content, .hero--main .hero-content,
  .hero--contact .hero-content { width: 100%; padding: 26px 0 12px; }
  .hero h1 { font-size: clamp(30px, 7vw, 40px); line-height: 1.1; letter-spacing: -.7px; }
  .hero::before, .hero--main::before, .hero--contact::before {
    inset: 42% 0 0;
    background-position: center;
  }
  .hero::after { background: linear-gradient(180deg,#f3f8fb 0%,#f3f8fb 47%,rgba(243,250,255,.7) 66%,transparent 100%); }
  .hero--service::after { background: linear-gradient(180deg,#ffffff 0%,#ffffff 45%,rgba(255,255,255,.84) 66%,rgba(255,255,255,.28) 100%); }
  .hero--main::after { background: linear-gradient(180deg,#0f5494 0%,#0f5494 43%,rgba(15,84,148,.75) 66%,transparent 100%); }
  .hero-perks { gap: 12px; margin-top: 18px; }
  .hero-perk { flex: 0 1 auto; }
  .category-grid, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .category-image { height: 190px; }
  .service-card img { height: 185px; }
  .brand-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-right { max-width: none; text-align: left; }
  .contact-banner .container { min-height: 265px; }
  .contact-banner-content { max-width: min(100%, 560px); padding: 35px 0; }
  .contact-banner::after { background: linear-gradient(90deg,rgba(15,84,148,.98) 0%,rgba(15,84,148,.88) 60%,rgba(15,84,148,.3) 100%); }
}

@media (max-width: 560px) {
  .section { padding: 32px 0; }
  .logo--header { width: clamp(120px, 37vw, 160px); }
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .phone-pill { padding: 10px; font-size: 0; gap: 0; min-width: 43px; min-height: 43px; justify-content: center; }
  .phone-pill svg { width: 20px; height: 20px; }
  .mobile-menu-button { width: 43px; height: 43px; }
  .main-nav { padding-inline: 16px; }
  .breadcrumb { font-size: 11px; }
  .hero, .hero--main, .hero--service, .hero--contact { min-height: 475px; }
  .hero h1 { font-size: clamp(29px, 8.5vw, 37px); }
  .hero p { font-size: 13px; }
  .hero-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 11px; }
  .hero-perk { padding-right: 0; border: 0; }
  .hero-perk span:last-child { font-size: 11px; }
  .hero-perk:last-child { grid-column: 1 / -1; }
  .brands-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .brands-label { grid-column: 1 / -1; }
  .brands-inner > .brand-logo:last-child { grid-column: 1 / -1; }
  .brand-logo img { width: min(150px,100%); height: 44px; }
  .brand-tiles { grid-template-columns: minmax(0, 1fr); }
  .brand-tiles > :last-child:nth-child(odd) { grid-column: auto; }
  .brand-tile--logo-only { min-height: 115px; }
  .filter-check { min-height: 44px; padding: 8px 0; }
  .filter-check input { width: 19px; height: 19px; }
  .pagination button { min-width: 44px; height: 44px; }
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .products-grid.is-list .product-card { display: grid; }
  .products-grid.is-list .product-image { width: 100%; }
  .catalog-toolbar { gap: 11px; }
  .toolbar-right { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .sort-select { width: 100%; min-width: 0; padding-right: 10px; }
  .view-switch { margin-left: 0; }
  .view-switch button { width: 38px; height: 38px; }
  .benefit-grid, .service-benefits, .process-grid { grid-template-columns: 1fr; }
  .benefit, .benefit:first-child, .benefit:nth-child(3),
  .benefit:nth-child(even), .service-benefit { border-right: 0; padding: 0; }
  .process-step::after { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-map iframe { height: 210px; }
  .button-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .btn { width: 100%; max-width: 100%; text-align: center; white-space: normal; min-height: 44px; }
  .staff-card { padding: 12px; }
  .staff-photo { height: 200px; }
  .detail-picture { min-height: 235px; padding: 15px; }
  .detail-picture img { max-height: 280px; }
  .detail-text h1 { font-size: 30px; overflow-wrap: anywhere; }


}

@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .main-nav { padding-inline: 12px; }
  .logo--header { width: 118px; }
  .hero { min-height: 505px; }
  .hero-perks { grid-template-columns: 1fr 1fr; }
  .toolbar-right { grid-template-columns: auto minmax(0, 1fr); }
  .toolbar-right .view-switch { grid-column: 1 / -1; justify-content: flex-end; }
  .price-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .products-grid.is-list .product-card { grid-template-columns: 92px minmax(0,1fr); column-gap: 9px; padding-inline: 10px; }
  .product-price { white-space: normal; }
}
