@media (max-width: 1050px) {
  .header-inner { gap: 15px; }
  .main-nav { gap: 17px; }

  .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px 0; }
  .benefit:nth-child(even) { border-right: 0; }
  .catalog-layout { grid-template-columns: 215px minmax(0,1fr); }
  .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--maks-szerokosc)); }
  .header-inner { min-height: 70px; }
  .logo--header { width: 145px; }
  .logo--footer { width: 180px; }
  .mobile-menu-button { display: inline-flex; }
  .header-actions { margin-left: auto; gap: 9px; }
  .phone-pill { padding: 9px 11px; font-size: 0; gap: 0; }
  .phone-pill svg { width: 18px; height: 18px; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: white; box-shadow: var(--cien); padding: 13px 20px 20px; margin: 0; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-mobile-open { display: flex; }
  .main-nav > a, .nav-drop > button { padding: 11px 0; width: 100%; text-align: left; }
  .dropdown-panel { display: none; position: static; box-shadow: none; border: none; background: #f3f7fa; margin-bottom: 8px; }
  .hero, .hero--main, .hero--service { min-height: 420px; }
  .hero::before, .hero--main::before { inset: 35% 0 0 0; background-position: center; }
  .hero::after { background: linear-gradient(180deg,#f4f8fb 0%,#f4f8fb 45%,rgba(244,250,255,.7) 62%,transparent 100%); }
  .hero--service::after { background: linear-gradient(180deg,#ffffff 0%,#ffffff 44%,rgba(255,255,255,.86) 61%,rgba(255,255,255,.3) 100%); }
  .hero--main::after { background: linear-gradient(180deg,#0f5494 0%,#0f5494 39%,rgba(15,84,148,.72) 67%,transparent 100%); }
  .hero .container { align-items: flex-start; }
  .hero-content, .hero--main .hero-content { width: 100%; padding: 24px 0; }
  .hero h1 { font-size: clamp(32px, 7vw, 43px); max-width: 540px; }
  .hero p { font-size: 14px; max-width: 470px; }
  .hero-perks { flex-wrap: wrap; gap: 9px; margin-top: 14px; }
  .hero-perk { padding-right: 9px; }
  .perk-icon { width: 33px; height: 33px; }
  .perk-icon svg { width: 18px; height: 18px; }
  .hero-perk span:last-child { font-size: 10px; }
  .brands-inner { grid-template-columns: repeat(3,1fr); gap: 12px; padding-block: 20px; }
  .brands-label { grid-column: 1 / -1; text-align: center; }
  .brand-logo img { width: min(155px, 100%); height: 35px; }
  .category-grid, .service-grid, .brand-tiles { grid-template-columns: 1fr; }
  .category-image { height: 200px; }
  .benefit-grid, .service-benefits { grid-template-columns: repeat(2,1fr); }
  .benefit, .benefit:first-child { padding: 0 12px; }
  .benefit:nth-child(3) { border-right: 1px solid #d7e3ec; }
  .benefit:nth-child(even) { border-right: 0; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { min-height: auto; }
  .process-grid { grid-template-columns: repeat(2,1fr); row-gap: 25px; }
  .process-step:nth-child(2)::after { display: none; }
  .footer-top { grid-template-columns: repeat(2,1fr); }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .section { padding: 36px 0; }
  .hero-perks { gap: 6px; }
  .hero-perk span:last-child { font-size: 9px; }
  .hero-perk { gap: 5px; }
  .hero--main h1 { font-size: 33px; }
  .products-grid { grid-template-columns: 1fr; }
  .products-grid.is-list .product-card { display: flex; }
  .products-grid.is-list .product-image { width: 100%; }
  .products-grid.is-list .product-bottom { align-self: stretch; }
  .catalog-toolbar { align-items: start; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .benefit-grid, .service-benefits { grid-template-columns: 1fr; }
  .benefit, .benefit:nth-child(3), .benefit:nth-child(even), .service-benefit { border-right: 0; padding: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom-right { text-align: left; }
  .contact-banner::before { inset: 35% 0 0 0; }
  .contact-banner::after { background: linear-gradient(180deg,#0f5494 0%,#0f5494 62%,rgba(15,84,148,.65)); }
  .contact-banner .container { min-height: 310px; align-items: start; }
  .btn { padding: 10px 12px; }
}

.hero--contact { min-height: 290px; }
.hero--contact::before { background-image: url('../assets/images/hero-printers.webp'); inset: 0 0 0 42%; }
.hero--contact::after { background: linear-gradient(90deg, #0f5494 0%,#0f5494 31%,rgba(15,84,148,.93) 43%,rgba(15,84,148,.33) 71%,transparent 100%); }
.hero--contact .hero-content { width: min(58%, 620px); }
.hero--contact h1 { font-size: clamp(34px,4.5vw,53px); }
.contact-team { padding-top: 28px; padding-bottom: 30px; }
.staff-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.staff-grid:has(> .staff-card[hidden]) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.staff-card[hidden] { display: none !important; }
.staff-card { display: grid; grid-template-columns: minmax(140px, .85fr) minmax(0,1.15fr); gap: 23px; padding: 17px; border: 1px solid var(--obramowanie); border-radius: 9px; background: linear-gradient(115deg,#f7fafc,#fff); }
.staff-photo { overflow: hidden; min-height: 284px; background: #e6eaf0; border-radius: 7px; display: flex; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-info { min-width: 0; display: flex; flex-direction: column; padding: 4px 0 0; }
.staff-info h2 { margin: 0; color: var(--granat); font-size: clamp(23px,2.4vw,29px); line-height: 1.2; }
.staff-role { color: var(--granat); text-transform: uppercase; font-size: 12px; font-weight: 700; margin: 7px 0 0; letter-spacing: .02em; }
.staff-underline { width: 36px; height: 3px; background: var(--niebieski); margin: 14px 0 13px; }
.staff-details { display: grid; gap: 7px; margin-bottom: 16px; }
.staff-details p { margin: 0; display: flex; gap: 11px; align-items: baseline; font-size: 13px; overflow-wrap: anywhere; }
.staff-details strong { font-weight: 700; }
.staff-details a { color: inherit; text-decoration: none; font-weight: 600; }
.staff-details a:hover, .staff-details a:focus-visible { text-decoration: underline; }

.staff-detail-icon { color: var(--granat); font-size: 18px; width: 19px; flex-shrink: 0; text-align: center; }
.staff-hours { border-top: 1px solid var(--obramowanie); display: flex; gap: 13px; align-items: flex-start; padding-top: 13px; margin-top: auto; }
.staff-clock { font-size: 30px; color: var(--granat); line-height: 1; }
.staff-hours div { display: grid; gap: 2px; font-size: 13px; }
.staff-hours strong { color: var(--granat); font-size: 15px; }

@media (max-width: 950px) {
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card { grid-template-columns: minmax(160px,240px) 1fr; }
  .staff-photo { min-height: 255px; }
}

@media (max-width: 520px) {
  .hero--contact .hero-content { width: 100%; }
  .hero--contact::before { inset: 38% 0 0 0; background-position: center right; }
  .hero--contact::after { background: linear-gradient(180deg,#0f5494 0%,#0f5494 39%,rgba(15,84,148,.93) 58%,rgba(15,84,148,.2) 100%); }
  .staff-card { grid-template-columns: 1fr; }
  .staff-photo { min-height: 0; height: 230px; }
  .staff-photo img { object-fit: contain; }
}

main {
  animation: strona-pojawia-sie 650ms ease-out both;
}

@keyframes strona-pojawia-sie {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.page-is-leaving main {
  animation: strona-znika 420ms ease-in-out both;
  pointer-events: none;
}

@keyframes strona-znika {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  main,
  body.page-is-leaving main {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

@media (max-width: 380px) {
  .logo--header { width: 124px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
}

.detail-brand-logo {
  display: block;
  width: 170px;
  max-width: 70%;
  height: 45px;
  object-fit: contain;
  object-position: left center;
  margin: 9px 0 12px;
}

.category-card[href="kasy.html"] .category-image img,
.category-card[href="drukarki.html"] .category-image img {
  mix-blend-mode: normal;
  object-fit: contain;
  padding: 8px 18px;
}
