/* SANA-MED Olkusz | Bootstrap 5 | bez Google Fonts */
:root {
  --primary: #175b87;
  --primary-dark: #12486c;
  --primary-darker: #0f4265;
  --primary-mid: #1c6899;
  --primary-soft: #edf6fb;
  --primary-soft-2: #f6fafc;
  --body-text: #263746;
  --muted-text: #566879;
  --heading: #143a58;
  --border-color: #d9e4eb;
  --danger: #a61b2b;
  --white: #fff;
  --shadow-soft: 0 16px 42px rgba(15, 66, 101, .09);

  --bs-primary: #175b87;
  --bs-primary-rgb: 23, 91, 135;
  --bs-body-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #263746;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.65;
  --bs-link-color: #175b87;
  --bs-link-hover-color: #12486c;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--body-text); }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; }
h1,h2,h3,h4,h5,h6 { color: var(--heading); line-height: 1.2; }

/* Klasy używane przez edytor CMS */
.cms-color-primary { color: #0d6efd; }
.cms-color-secondary { color: #6c757d; }
.cms-color-success { color: #198754; }
.cms-color-danger { color: #dc3545; }
.cms-color-dark { color: #212529; }

.cms-img-25 { width: 25%; }
.cms-img-50 { width: 50%; }
.cms-img-75 { width: 75%; }
.cms-img-100 { width: 100%; }

img.cms-img-right {
  float: right;
  display: block;
  margin: 0 0 20px 25px;
  max-width: 50%;
  height: auto;
}

img.cms-img-left {
  float: left;
  display: block;
  margin: 0 25px 20px 0;
  max-width: 50%;
  height: auto;
}

img.cms-img-center {
  float: none;
  display: block;
  margin: 20px auto;
}

/* Skip links + focus */
.page-skip-links {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99999;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-skip-links a {
  position: absolute;
  left: -10000px;
  top: 0;
  white-space: nowrap;
  padding: .75rem 1rem;
  background: #000;
  color: #fff;
  font-weight: 700;
}

.page-skip-links a:focus {
  left: .75rem;
  top: .75rem;
  outline: 3px solid #ffe900;
  outline-offset: 2px;
}

:where(a,button,input,textarea,select,[tabindex]):focus-visible {
  outline: 3px solid #0f4265 !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

/* Topbar */
.topbar {
  background: var(--primary-darker);
  color: #fff;
  font-size: .92rem;
}

.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  text-decoration: none;
}

.topbar-contact a:hover { text-decoration: underline; color: #fff; }

.wcag-tools { display: flex; align-items: center; gap: .4rem; }
.wcag-icon {
  width: 40px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}
.wcag-icon:hover,
.wcag-icon:focus,
.wcag-icon[aria-pressed="true"] {
  background: #fff;
  color: var(--primary-darker);
}

/* Logo */
.brandbar { background: #fff; }
.brandbar-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .4rem;
  padding-bottom: .4rem;
}
.brand-link { display: inline-flex; min-width: 0; }
.brand-logo { display: block; width: auto; height: 69px; max-width: min(320px, 100%); object-fit: contain; object-position: left center; }

/* Przyciski */
.btn { border-radius: 0; font-weight: 650; }
.btn-primary-custom {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  padding: .72rem 1.15rem;
}
.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-outline-custom {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  padding: .72rem 1.15rem;
}
.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* Menu */
.site-navbar {
  padding: 0;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid var(--primary-dark);
}
.site-navbar .navbar-nav {
    gap: 0;
}

@media (min-width: 992px) {
    .site-navbar .navbar-nav {
        gap: 25px;
    }
}
.site-navbar .nav-link {
  padding: 1rem 1.05rem;
  color: #fff;
  font-weight: 650;
  text-transform: uppercase;
  font-size: .92rem;
  letter-spacing: .02em;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
  background: var(--primary-dark);
  color: #fff;
}
.site-navbar .navbar-toggler {
  margin: .55rem 0;
  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
}
.navbar-mobile-label { color: #fff; font-weight: 700; text-transform: uppercase; }

/* Hero */

/* Nie korzystamy z dawnego tła slidera. */
.hero { padding: 0; background: #f6fafc; background-image: none;   border-bottom: 1px solid var(--border-color);} 
.hero-card { box-shadow: 0 8px 26px rgba(15,66,101,.06); } 
.hero-copy { padding: 1.4rem clamp(1.3rem, 2.3vw, 2.3rem); }
.hero-kicker { font-size: .72rem; margin-bottom: .35rem; letter-spacing: .055em; }
.hero h1 { font-size: clamp(1.55rem, 2.25vw, 2.1rem); line-height: 1.16; margin-bottom: .55rem; font-weight: 750; }
.hero-lead { font-size: clamp(.97rem, 1.1vw, 1.075rem); line-height: 1.45; margin-bottom: 1.05rem; }
.hero .btn { padding: .55rem .85rem; font-size: .91rem; }
.hero-accreditation { margin-top: 3rem; }
.hero-accreditation img { max-width: 148px; max-height: 148px; }
.hero-image-wrap { min-height: 0; background: #f2f7fa; display: flex; align-items: center; justify-content: center; }
.hero-image { display: block; width: 100%; height: 100%;  }
   

/* Sekcje */
.section-padding { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.7rem;
}
.section-kicker {
  display: inline-block;
  margin-bottom: .35rem;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-title {
  margin-bottom: 1rem;
  color: var(--heading);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 750;
}

/* Aktualności na SG */
.news-home { background: #fff; }
.news-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 28px rgba(15, 66, 101, .06);
}
.news-card-body { height: 100%; display: flex; flex-direction: column; padding: 1.6rem; }
.news-card time { display: block; margin-bottom: .65rem; color: var(--primary-dark); font-size: .88rem; font-weight: 750; }
.news-card h3 { margin-bottom: .85rem; font-size: 1.25rem; font-weight: 700; line-height: 1.42; }
.news-card h3 a { color: var(--heading); text-decoration: none; }
.news-card h3 a:hover { color: var(--primary-dark); text-decoration: underline; }
.news-card p { color: var(--muted-text); line-height: 1.7; }
.news-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--primary-dark); font-weight: 700; }
/* ====================================
   FORMULARZ ZAMAWIANIA RECEPT
==================================== */

/* Tło całego formularza */
.content-form-prescription form[data-prescription-form] {
    background: #f3f7fc;
    border: 1px solid #e0e9f4;
    padding: 30px;
}

/* Osobne bloki poszczególnych leków */
.content-form-prescription [data-medicine] {
    background: #e8f1fb;
    border: 1px solid #c5d8ed !important;
    border-left: 4px solid #244b7c !important;
    padding: 24px !important;
    margin-bottom: 30px !important;
}

/* Nagłówek Lek 1, Lek 2 itd. */
.content-form-prescription [data-medicine] legend {
    color: #244b7c;
    font-size: 1.1rem;
    font-weight: 700;
    background: #e8f1fb;
    padding: 0 12px;
}

/* Etykiety pól leków */
.content-form-prescription [data-medicine] .form-label {
    font-weight: 600;
}

/* Przycisk dodawania leku */
.content-form-prescription [data-medicine-add] {
    font-weight: 600;
    padding: 12px 24px;
}

/* Mniejsze marginesy na smartfonach */
@media (max-width: 767px) {
    .content-form-prescription form[data-prescription-form] {
        padding: 18px;
    }

    .content-form-prescription [data-medicine] {
        padding: 16px !important;
    }
}

/* Komunikat + kontakty */
.patient-info { background: var(--primary-soft-2); border-top: 1px solid #e6eef3; border-bottom: 1px solid #e6eef3; }
.notice-box,
.prescription-box,
.contact-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 28px rgba(15, 66, 101, .05);
}
.notice-box,
.prescription-box { padding: 1.5rem; }
.notice-box ul,
.prescription-box ul { margin-bottom: 0; padding-left: 1.25rem; }
.notice-box li,
.prescription-box li { margin-bottom: .55rem; }
.prescription-box h3 { font-size: 1.25rem; font-weight: 700; color: var(--heading); }
.text-danger-emphasis { color: var(--danger) !important; }
.two-column-list { columns: 2; column-gap: 2.5rem; }

.contact-panel { padding: 1.7rem; border-top: 5px solid var(--primary); }
.contact-panel h2 { margin-bottom: 1.4rem; font-size: 1.7rem; font-weight: 750; }
.contact-panel h3 { margin: 1.35rem 0 .5rem; font-size: 1.08rem; font-weight: 750; }
.contact-label { margin-bottom: .4rem; color: var(--muted-text); }
.contact-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.contact-list li { margin-bottom: .45rem; }
.contact-list a,
.contact-list span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.contact-email { overflow-wrap: anywhere; font-size: 1.12rem; font-weight: 700; }

/* Kafle z oryginalnej strony */
.services-section { background: #fff; }
.service-tile {
  position: relative;
  display: flex;
  min-height: 240px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 66, 101, .06);
}
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,66,101,.05) 20%, rgba(15,66,101,.94) 100%);
}
.service-tile span,
.service-tile h3 {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 100%;
  margin: 0;
  padding: 1.15rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
  text-transform: uppercase;
}
.service-tile:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.service-tile-empty { flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid)); }
.service-tile-empty::after { display: none; }
.service-tile-empty h3 { align-self: auto; text-align: center; }
.service-icon { color: #fff; font-size: 3rem; }

/* Podstrony – jasny, kompaktowy nagłówek ze zdjęciem po prawej */
.subpage-hero {
  padding: 2rem 0;
  min-height: 190px;
  display: flex;
  align-items: center;
  background: #f5f9fc url('/assets/img/tlo_podstrona.png') right center / auto 100% no-repeat;
  border-bottom: 1px solid var(--border-color);
  color: var(--body-text);
}
.subpage-hero-content {
  max-width: min(660px, 68%);
}
.subpage-hero h1 {
  margin: 0 0 .45rem;
  color: var(--heading);
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 750;
  line-height: 1.2;
}
.subpage-hero p {
  margin: 0;
  color: var(--body-text);
  font-size: 1rem;
  line-height: 1.55;
}
.subpage-hero .breadcrumb {
  --bs-breadcrumb-divider-color: #60758a;
  margin-bottom: .7rem !important;
  font-size: .9rem;
}
.subpage-hero .breadcrumb a { color: var(--primary-dark); }
.subpage-hero .breadcrumb-item.active { color: #526578; }
.subpage-hero .breadcrumb-item + .breadcrumb-item::before { color: #60758a; }
@media (max-width: 767.98px) {
  .subpage-hero {
    min-height: 0;
    padding: 1.5rem 0;
    background-size: auto 100%;
    background-position: right center;
    /* Jasne tło za tekstem, nawet gdy grafika jest szeroka */
    background-image: linear-gradient(90deg, #f5f9fc 0%, rgba(245,249,252,.97) 55%, rgba(245,249,252,.80) 100%),
                      url('../images/tlo_podstrona.png');
  }
  .subpage-hero-content { max-width: 100%; }
  .subpage-hero h1 { font-size: 1.65rem; }
}
.subpage-section { padding: 2rem 0 5rem; background: #fff; }

.sidebar-menu { border: 1px solid var(--border-color); background: #fff; }
.sidebar-menu h2 { margin: 0; padding: 1rem 1.1rem; background: var(--primary-dark); color: #fff; font-size: 1.05rem; font-weight: 750; }
.sidebar-menu ul { margin: 0; padding: 0; list-style: none; }
.sidebar-menu li + li { border-top: 1px solid var(--border-color); }
.sidebar-menu a { display: block; padding: .78rem 1rem; color: var(--body-text); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.sidebar-menu a:hover,
.sidebar-menu a:focus,
.sidebar-menu a.active { background: var(--primary-soft); color: var(--primary-dark); }

/* Treść podstron z CMS / WYSIWYG */
.subpage-content {
  min-width: 0;
  color: var(--body-text);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.subpage-content::after { content: ""; display: table; clear: both; }
.subpage-content p { margin-bottom: 1.15rem; }
.subpage-content h2,
.subpage-content h3,
.subpage-content h4 { margin-top: 1.7rem; margin-bottom: .85rem; color: var(--heading); }
.subpage-content ul,
.subpage-content ol { margin-bottom: 1.25rem; padding-left: 1.4rem; }
.subpage-content table { width: 100%; }
.subpage-content .table {
    width: 100%;
    table-layout: auto;
}
.subpage-content .table td:nth-child(1) {
    width: 5%;
}
.subpage-content .table td:nth-child(2) {
    width: 75%;
}
.subpage-content .table td:nth-child(3) {
    width: 20%;
    word-break: normal;
    overflow-wrap: normal;
}
.subpage-content .table td p {
    margin-bottom: 0;
}
/* Lista aktualności */
.news-list-page { min-width: 0; }
.news-list-page .news-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.7rem;
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}
/* Aktualności bez zdjęcia - pełna szerokość */

.news-list-page .news-item.no-image {
    grid-template-columns: minmax(0, 1fr);
}
.news-list-page .news-thumbnail { min-width: 0; }
.news-list-page .news-thumbnail a { display: block; }
.news-list-page .news-thumbnail img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: center; border: 1px solid var(--border-color); }
.news-list-page .news-content { min-width: 0; }
.news-list-page .news-content time { display: block; margin-bottom: .55rem; color: var(--primary-dark); font-size: .88rem; font-weight: 750; }
.news-list-page .news-content h2 { margin: 0 0 .85rem; color: var(--heading); font-size: 1.45rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.news-list-page .news-content h2 a { color: var(--heading); text-decoration: none; }
.news-list-page .news-content h2 a:hover { color: var(--primary-dark); text-decoration: underline; }
.news-list-page .news-content p { margin: 0 0 1.1rem; color: var(--muted-text); line-height: 1.75; }
.news-read-more { display: inline-flex; }

/* Pojedyncza aktualność */

.news-article {
    width: 100%;
    min-width: 0;
}

.news-article .news-date {
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.news-article .news-lead {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--body-text);
}

.news-article .news-featured-image {
    margin: 0 0 2rem;
}

.news-article .news-featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.news-article .news-body {
    line-height: 1.8;
}

.news-article .news-read-more {
    margin-top: 1rem;
}

/* Stopka */
.site-footer { background: var(--primary-darker); color: rgba(255,255,255,.9); }
.footer-main { padding-top: 2.1rem; padding-bottom: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-weight: 750; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer address { font-size: .92rem; line-height: 1.65; }
.footer-bottom { padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,.22); font-size: .88rem; }

/* Formularze CMS / recepty */
.subpage-section form { width: 100%; min-width: 0; }
.subpage-section form label:not(.form-check-label) { display: inline-block; margin-bottom: .45rem; font-weight: 650; color: var(--heading); }
.subpage-section form .form-control,
.subpage-section form .form-select {
  min-height: 46px;
  padding: .65rem .85rem;
  border: 1px solid #aebfca;
  border-radius: 0;
  background-color: #fff;
  color: var(--body-text);
  box-shadow: none;
}
.subpage-section form textarea.form-control { min-height: 130px; resize: vertical; }
.subpage-section form .form-control:focus,
.subpage-section form .form-select:focus { border-color: var(--primary-dark); box-shadow: 0 0 0 .2rem rgba(23,91,135,.13); }
.subpage-section form .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Wysoki kontrast */
body.high-contrast,
body.high-contrast :is(.topbar,.brandbar,.site-navbar,.hero,.news-home,.patient-info,.services-section,.subpage-section,.site-footer,.subpage-hero) {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
}
body.high-contrast :is(.hero-card,.hero-copy-wrap,.news-card,.notice-box,.prescription-box,.contact-panel,.sidebar-menu,.service-tile,.form-control,.form-select) {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}
body.high-contrast :is(h1,h2,h3,h4,h5,h6,p,span,small,strong,li,time,.section-kicker,.hero-kicker,.hero-lead,.news-card time,.contact-label,.navbar-mobile-label) {
  color: #fff !important;
}
body.high-contrast :is(.cms-color-primary,.cms-color-secondary,.cms-color-success,.cms-color-danger,.cms-color-dark) { color: #fff !important; }
body.high-contrast a:not(.btn):not(.page-skip-links a) { color: #ffe900 !important; }
body.high-contrast a:not(.btn):hover { color: #fff !important; }
body.high-contrast :is(.btn,.wcag-icon,.navbar-toggler) { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
body.high-contrast :is(.btn,.wcag-icon,.navbar-toggler):hover { background: #fff !important; color: #000 !important; }
body.high-contrast .site-navbar .nav-link { color: #fff !important; }
body.high-contrast .site-navbar .nav-link:hover,
body.high-contrast .site-navbar .nav-link:focus,
body.high-contrast .site-navbar .nav-link.active { background: #222 !important; color: #ffe900 !important; }
body.high-contrast .sidebar-menu a { background: #000 !important; color: #ffe900 !important; border-color: #fff !important; }
body.high-contrast .sidebar-menu a:hover,
body.high-contrast .sidebar-menu a:focus { background: #222 !important; color: #fff !important; }
body.high-contrast .service-tile::after { background: rgba(0,0,0,.72) !important; }
body.high-contrast img { filter: grayscale(1) contrast(1.1); }
body.high-contrast :where(a,button,input,textarea,select,[tabindex]):focus-visible { outline: 3px solid #ffe900 !important; outline-offset: 3px; }

/* ============================================
   WYSOKOŚĆ HERO NA PC (od 992 px)
   Zmieniaj 295px; to MINIMUM, nie sztywna wysokość.
   Wysokość może wzrosnąć, jeśli tekst potrzebuje miejsca.
   ============================================ */
@media (min-width: 992px) {
  .hero-card .row { min-height: 285px; }
  .hero-image-wrap { height: auto; }
  .hero-image { max-height: 300px; }
}

/* Responsywność */
@media (max-width: 991.98px) {
  /* Górny biały pasek: logo po lewej, rejestracja po prawej */
  .brandbar-inner {
    min-height: 78px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 0;
  }
  .brand-link { display: flex; flex: 1 1 auto; min-width: 0; }
  .brand-logo { display: block; width: 100%; max-width: 220px; height: auto; object-fit: contain; }
  .brandbar .btn-primary-custom { flex: 0 0 auto; width: auto; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .hero-image-wrap { min-height: 0; }
  .hero-image { min-height: 0; max-height: 360px; }
  .topbar-inner { padding: .45rem 0; align-items: flex-start; }
  .topbar-contact { gap: .55rem 1rem; }
  .site-navbar .container { justify-content: space-between; }
  .site-navbar .navbar-collapse { width: 100%; padding-bottom: .65rem; }
  .site-navbar .nav-link { padding: .72rem .8rem; }
  .sidebar-menu { margin-bottom: 1rem; }
}

@media (max-width: 767.98px) {
  .hero { padding: .75rem 0 1.1rem; }
  .hero-copy { padding: 1.4rem 1.2rem; }
  .hero-image-wrap { padding: .5rem; }
  .hero-image { max-height: 260px; }
  .home-updates { padding: 2rem 0 2.6rem; }
  .topbar-contact a span { display: none; }
  .topbar-contact a { width: 36px; height: 36px; justify-content: center; border: 1px solid rgba(255,255,255,.55); }
  .hero-accreditation img { max-width: 125px; }
  .two-column-list { columns: 1; }
  .news-list-page .news-item { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .news-list-page .news-thumbnail { max-width: 260px; }
  .news-list-page .news-thumbnail img { height: 170px; }
  .footer-links { flex-direction: column; gap: .55rem; }
}

/* Bardzo małe smartfony */
@media (max-width: 420px) {
  .brand-logo { max-width: 175px; }
  .brandbar .btn-primary-custom { padding: 9px 8px; font-size: 12px; }
  .brandbar .btn-primary-custom i { display: none; }
}

@media (max-width: 575.98px) {
  img.cms-img-right,
  img.cms-img-left {
    float: none;
    max-width: 100%;
    margin: 15px auto;
  }
}

@media (max-width: 767.98px) {
  .cms-img-25,
  .cms-img-50,
  .cms-img-75 { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
 
/* Dwie kolumny: aktualności / ważne informacje */
.home-updates { background: #fff; padding: 2.5rem 0 3rem; }
.home-section-heading { margin-bottom: 1rem; }
.home-updates .section-title { font-size: clamp(1.5rem, 2.1vw, 1.95rem); }
.home-news-list { border-top: 2px solid var(--primary); }
.home-news-item { padding: 1.05rem 0 1.1rem; border-bottom: 1px solid var(--border-color); }
.home-news-item time { display: block; font-size: .78rem; font-weight: 750; color: var(--primary-dark); margin-bottom: .25rem; }
.home-news-item h3 { font-size: 1.055rem; line-height: 1.38; margin: 0 0 .4rem; font-weight: 700; }
.home-news-item h3 a { color: var(--heading); text-decoration: none; }
.home-news-item h3 a:hover { color: var(--primary-dark); text-decoration: underline; }
.home-news-item p { font-size: .91rem; line-height: 1.55; color: var(--muted-text); margin: 0 0 .35rem; }
.home-news-item .news-more { font-size: .84rem; }
.important-info { border-top: 2px solid var(--primary); }
.important-info-title { font-size: 1.07rem; font-weight: 750; margin: 1rem 0 .7rem; }
.important-info .notice-box, .important-info .prescription-box { padding: 1.1rem 1.2rem; box-shadow: none; }
.important-info p, .important-info li { font-size: .92rem; line-height: 1.55; }
.important-info .prescription-box h3 { font-size: 1.045rem; margin-bottom: .7rem; }
.important-info .two-column-list { column-gap: 1.6rem; }

/* Zamiast menu linków w stopce – kontakty, rozłożone na dwie kolumny. */
.footer-contacts h3 { font-size: .99rem; font-weight: 750; color: #fff; margin-bottom: .4rem; }
.footer-contacts h3:not(:first-child) { margin-top: 1.15rem; }
.footer-contacts p { margin: 0 0 .65rem; line-height: 1.52; font-size: .91rem; overflow-wrap: anywhere; }
.footer-contact-label { color: #fff; font-weight: 650; }

body.high-contrast .home-updates, body.high-contrast .home-news-item,
body.high-contrast .important-info { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.high-contrast .home-news-item h3 a { color: #ffe900 !important; }
body.high-contrast .home-news-item time, body.high-contrast .home-news-item p,
body.high-contrast .important-info-title { color: #fff !important; }

/* MENU BOCZNE – WERSJA MOBILNA */

.sidebar-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.1rem;
    border: 0;
    background: var(--primary-dark);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.sidebar-mobile-toggle i {
    font-size: 1.1rem;
    transition: transform .2s ease;
}

/* Obracanie strzałki po rozwinięciu */
.sidebar-mobile-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Focus klawiatury */
.sidebar-mobile-toggle:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

/* Wysoki kontrast */
body.high-contrast .sidebar-mobile-toggle {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff;
}

body.high-contrast .sidebar-mobile-toggle:focus-visible {
    outline-color: #ffe900;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-mobile-toggle i {
        transition: none;
    }
}
/* Zdjęcia w kafelkach - Nasza przychodnia */

.blok1 .service-tile {
    background: url('/assets/img/blok1.jpg') center center / cover no-repeat;
}

.blok2 .service-tile {
    background: url('/assets/img/blok2.jpg') center center / cover no-repeat;
}

.blok3 .service-tile {
    background: url('/assets/img/blok3.jpg') center center / cover no-repeat;
}

.blok4 .service-tile {
    background: url('/assets/img/blok4.jpg') center center / cover no-repeat;
} 