/* Wspólna skala strony i lżejsza oprawa nawigacji. */
:root {
  --hmr-promien: 12px;
  --hmr-linia: #dbe3eb;
  --hmr-cien: 0 2px 5px rgba(15,43,68,.035);
  --hmr-cien-hover: 0 6px 18px rgba(15,43,68,.08);
  --hmr-wysokosc-naglowka: 74px;
  --hmr-szerokosc: 1152px;
}
.hmr-2026 #header-text-nav-container { border-bottom: 1px solid #e6ebef; }
.hmr-2026 #header-logo-image img, .hmr-2026 #header-logo-image .custom-logo { height: 49px; }
.hmr-2026 .main-navigation a { font-size: 14px; }
.hmr-2026 :is(a,button,summary):focus-visible { outline: 3px solid #508bc1; outline-offset: 3px; }
.hmr-2026 .hmr-przycisk { border-radius: 7px; font-size: 14px; box-shadow: none; }

.hmr-2026 #featured-slider {
  width: calc(100% - 40px);
  max-width: 1384px;
  margin: 16px auto 0;
  border-radius: 12px;
  --hero-gutter: clamp(32px, 5vw, 72px);
}
.hmr-2026 #featured-slider .slider-cycle { height: clamp(350px, 31vw, 432px) !important; }
.hmr-2026 #featured-slider .slides::after {
  background: linear-gradient(90deg,rgba(8,27,50,.8),rgba(8,27,50,.54) 37%,rgba(8,27,50,.04) 78%);
}
.hmr-2026 #featured-slider :is(.entry-container,.hmr-hero-akcje,.hmr-hero-nawigacja) {
  padding-inline: var(--hero-gutter); max-width: calc(var(--hmr-szerokosc) + 2 * var(--hero-gutter) - 48px);
}
.hmr-2026 #featured-slider .entry-container { bottom: 141px; text-align: left; }
.hmr-2026 #featured-slider .entry-description-container { max-width: 610px; }
.hmr-2026 #featured-slider .entry-description-container::before { display: none; }
.hmr-2026 #featured-slider .hmr-hero-etykieta {
  display: flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--hmr-font);
  letter-spacing: .12em; text-transform: uppercase; color: #f3f6fb; margin: 0 0 14px; padding: 0;
}
.hmr-hero-etykieta::before { content: ''; width: 24px; height: 3px; background: #e3495a; }
.hmr-2026 #featured-slider .slider-title-head .entry-title {
  color: white; font-size: clamp(32px,3.65vw,53px); line-height: 1.1; text-wrap: balance;
}
.hmr-hero-akcje { bottom: 70px; }
.hmr-hero-akcje__dalej { width: 38px; height: 38px; font-size: 18px; }
.hmr-hero-akcje__dalej .hmr-ikona { animation: none; }
.hmr-hero-nawigacja {
  position: absolute; inset: auto 0 14px; z-index: 501; display: flex; align-items: center; gap: 14px;
  margin: auto; box-sizing: border-box; pointer-events: none;
}
.hmr-2026 #featured-slider #controllers { position: static; width: auto; margin: 0; padding: 0; display: flex; gap: 2px; pointer-events: auto; }
.hmr-2026 #controllers button, .hmr-2026 .hmr-pause {
  display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; cursor: pointer;
}
.hmr-2026 #controllers button { width: 28px; height: 32px; }
.hmr-2026 #controllers button::after { content: ''; width: 19px; height: 3px; background: rgba(255,255,255,.54); border-radius: 2px; }
.hmr-2026 #controllers button.active::after { width: 26px; background: white; }
.hmr-2026 .hmr-pause { width: 32px; height: 32px; color: white; border: 1px solid #ffffff70; border-radius: 50%; font: 600 12px/1 var(--hmr-font); pointer-events: auto; }
.hmr-2026 .hmr-pause[hidden] { display: none; }
.hmr-2026 #featured-slider .cycle-slide-active figure img,
.hmr-2026 #featured-slider .cycle-slide-active .slider-title-head { animation: none; }
.hmr-sekcja { padding-block: clamp(38px,4.5vw,64px); }
.hmr-2026 header.hmr-naglowek-sekcji {
  display: flex; align-items: baseline; gap: 20px; margin: 0 0 24px; text-align: left;
}
.hmr-2026 header.hmr-naglowek-sekcji::before { display: none; }
.hmr-2026 header.hmr-naglowek-sekcji::after { content: ''; flex: 1; height: 1px; align-self: center; background: var(--hmr-linia); }
.hmr-2026 .hmr-naglowek-sekcji__tytul { font-size: clamp(26px,2.4vw,34px); }
.hmr-siatka, .hmr-oferta { gap: 16px; }
.hmr-karta--usluga { padding: 23px; gap: 16px; }
.hmr-karta--usluga .hmr-karta__ikona, .hmr-oferta .hmr-oferta__ikona {
  width: 43px; height: 43px; border-radius: 10px; font-size: 22px; margin: 0;
}
.hmr-karta--usluga .hmr-karta__tytul { padding: 0 !important; font-size: 18px !important; line-height: 1.35; }
.hmr-karta--usluga .hmr-karta__opis { font-size: 14px; line-height: 1.58; }
.hmr-karta--usluga .hmr-karta__strzalka { margin-top: auto; padding-top: 10px; }
.hmr-oferta:not(.hmr-oferta--kompakt) a.hmr-oferta__pozycja { padding: 22px; }
.hmr-oferta__gora { margin-bottom: 14px; }
.hmr-2026 .hmr-uslugi-lista { margin-top: 24px; }
.hmr-2026 .hmr-osoba { padding: 14px; text-align: left; }
.hmr-karuzela__tor { padding-bottom: 10px; }
.hmr-2026 .hmr-osoba__foto {
  height: 164px; align-items: center; margin-bottom: 14px; background: #f1f4f7; border-radius: 7px; overflow: hidden;
}
.hmr-2026 .hmr-osoba__foto img, .hmr-2026.page article .hmr-osoba__foto img {
  height: 100%; width: 100%; max-height: 100%; border-radius: 0; object-fit: contain; box-shadow: none;
}
.hmr-2026 .hmr-osoba__opis { line-height: 1.48; }
.hmr-czytelnia { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,29%); gap: clamp(32px,6vw,80px); align-items: start; }
.hmr-czytelnia .entry-content { font-size: 16px; line-height: 1.72; }
.hmr-2026 a.hmr-wstecz, .hmr-return a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.hmr-wstecz { margin-bottom: 18px; }
.hmr-spis { background: #f5f7fa; border: 1px solid var(--hmr-linia); border-radius: 10px; padding: 18px; }
.hmr-spis h2 { margin: 0 0 12px; padding: 0; font-size: 18px; }
.hmr-spis ul { list-style: none; margin: 0; padding: 0; }
.hmr-spis li + li { border-top: 1px solid var(--hmr-linia); }
.hmr-spis a { display: block; padding: 9px 4px; color: var(--hmr-granat); font-size: 13px; line-height: 1.42; }
.hmr-spis a[aria-current] { font-weight: 700; color: var(--hmr-niebieski); border-inline-start: 3px solid var(--hmr-czerwien); padding-inline-start: 10px; }
.hmr-2026 .entry-content { overflow-wrap: anywhere; }
.hmr-2026 .entry-content .legacy-portrait { max-width: min(150px,42%); height: auto; }
@media (min-width: 769px) {
  .hmr-2026 .main-navigation li:has(> a[href$="/kontakt/"]) > a,
  .hmr-2026 .main-navigation li:has(> a[href$="/contact/"]) > a { background: var(--hmr-granat); color: white; border-radius: 6px; }
  .hmr-2026 .main-navigation li:has(> a[href$="/kontakt/"]) > a::after,
  .hmr-2026 .main-navigation li:has(> a[href$="/contact/"]) > a::after { display: none; }
}
@media (max-width: 768px) {
  .hmr-2026 #featured-slider { --hero-gutter: 20px; margin: 8px auto 0; width: calc(100% - 16px); border-radius: 9px; }
  .hmr-2026 #featured-slider .slider-cycle { height: 330px !important; }
  .hmr-2026 #featured-slider .slides::after { background: linear-gradient(90deg,rgba(5,25,48,.86),rgba(8,27,50,.54) 65%,rgba(8,27,50,.20)); }
  .hmr-2026 #featured-slider .entry-container { bottom: 130px; }
  .hmr-2026 #featured-slider .entry-description-container { max-width: 470px; }
  .hmr-2026 #featured-slider .hmr-hero-etykieta { font-size: 10px; margin-bottom: 9px; }
  .hmr-2026 #featured-slider .hmr-hero-akcje { bottom: 61px; }
  .hmr-hero-akcje__przyciski { gap: 8px; }
  .hmr-2026 .hmr-hero-akcje .hmr-przycisk { min-height: 42px; padding: 9px 12px; font-size: 13px; }
  .hmr-hero-nawigacja { bottom: 11px; }
  .hmr-2026 #featured-slider .slider-title-head .entry-title { font-size: clamp(28px,7vw,37px); }
  .hmr-karta--usluga { grid-template-columns: auto minmax(0,1fr); gap: 13px; padding: 17px; }
  .hmr-karta--usluga .hmr-karta__tytul { font-size: 16px !important; }
  .hmr-karta--usluga .hmr-karta__ikona { width: 35px; height: 35px; font-size: 18px; margin: 0; }
  .hmr-czytelnia { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .hmr-2026 .entry-content p[style*="justify"] { text-align: left !important; }
  body.hmr-2026.better-responsive-menu #header-text-nav-container { margin-bottom: 0; }
  body.hmr-2026.better-responsive-menu #header-text-nav-wrap { position: relative; min-height: 60px; }
  body.hmr-2026.better-responsive-menu #header-logo-image { padding: 5px 0; }
  body.hmr-2026.better-responsive-menu #header-right-section { position: static; margin: 0; }
  body.hmr-2026.better-responsive-menu #site-navigation .menu-toggle {
    position: static; display: inline-flex; align-items: center; gap: 8px; width: auto; height: 38px;
    padding: 0 12px; border-radius: 6px; background: var(--hmr-granat); color: white; font: 600 13px/1 var(--hmr-font);
  }
  body.hmr-2026.better-responsive-menu #site-navigation .menu-toggle::before { content: '☰'; position: static; transform: none; font: 16px/1 sans-serif; }
  body.hmr-2026.better-responsive-menu #site-navigation .menu-toggle::after { display: none; }
  body.hmr-2026.better-responsive-menu #site-navigation.main-small-navigation .menu-primary-container { position: absolute; inset: 100% 0 auto; width: auto; max-height: 78vh; overflow: auto; }
}
@media (max-width: 360px) {
  .hmr-2026 #featured-slider { --hero-gutter: 15px; }
  .hmr-2026 .hmr-hero-akcje .hmr-przycisk { padding-inline: 9px; font-size: 12px; }
}
/* Na podstronach tytuł ma tę samą oś co tekst i logo. */
.hmr-2026 .header-post-title-container { width: calc(100% - 40px); max-width: 1384px; margin: 16px auto 0; border-radius: 12px; }
.hmr-2026 .header-post-title-container .inner-wrap { padding-block: clamp(26px,3vw,42px); }
.hmr-2026 .header-post-title-container .post-title-wrapper::before { width: 28px; margin-bottom: 12px; }
.hmr-2026 :is(h1,h2).header-post-title-class { font-size: clamp(25px,2.65vw,38px); text-wrap: balance; }
.hmr-2026:not(.home) #main { padding-block: clamp(28px,3.5vw,52px) clamp(40px,5vw,72px); }
.hmr-2026 .hmr-przycisk--obrys { box-shadow: inset 0 0 0 1px var(--hmr-niebieski); }
.hmr-2026:is(.page-id-8,.page-id-1241) .entry-content > ul { border-top: 1px solid var(--hmr-linia); }
.hmr-2026:is(.page-id-8,.page-id-1241) .entry-content > ul > li {
  margin: 0; border-bottom: 1px solid var(--hmr-linia); padding: 12px 8px 12px 24px; font-size: 16px; line-height: 1.58;
}
.hmr-2026:is(.page-id-8,.page-id-1241) .entry-content > ul > li::before { top: 22px; width: 6px; height: 6px; }
.hmr-2026:is(.page-id-10,.page-id-1249) .entry-content > :is(.one_third,.one_third_last) {
  min-height: 188px; padding: 17px; box-sizing: border-box; border: 1px solid var(--hmr-linia); border-radius: 10px; background: #f7f9fb;
}
.hmr-2026:is(.page-id-10,.page-id-1249) .entry-content > :is(.one_third,.one_third_last)::before {
  content: ''; display: block; width: 23px; height: 23px; margin-bottom: 12px; background: var(--hmr-niebieski);
  mask: url(../icons/building-2.svg) center / contain no-repeat;
}
.hmr-2026:is(.page-id-10,.page-id-1249) .one_third + .one_third::before { mask-image: url(../icons/map-pin.svg); }
.hmr-2026:is(.page-id-10,.page-id-1249) .entry-content > .one_third_last::before { mask-image: url(../icons/mail.svg); }
.hmr-2026:is(.page-id-10,.page-id-1249) .entry-content :is(.one_third,.one_third_last) p { text-align: left !important; }
@media (max-width: 768px) {
  .hmr-2026 .header-post-title-container { width: calc(100% - 16px); margin-top: 8px; border-radius: 9px; }
  .hmr-2026:is(.page-id-10,.page-id-1249) .entry-content > :is(.one_third,.one_third_last) { min-height: auto; }
}
