:root {
    --primary: #174b7a;
    --primary-dark: #10395f;
    --primary-darker: #0a2947;
    --primary-light: #eaf1f7;

    --text: #263442;
    --text-muted: #566574;
    --heading: #172533;

    --surface: #f4f7fa;
    --border: #d4dde5;
    --white: #ffffff;

    --focus: #ffbf47;
}


/* =========================
   PODSTAWOWE
========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    border-radius: 0;
    font-weight: 600;
    padding: .7rem 1.2rem;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-darker);
    --bs-btn-active-border-color: var(--primary-darker);
}


/* =========================
   FOCUS / WCAG
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}


/* =========================
   SKIP LINKS
========================= */

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: .75rem 1rem;
    color: #000;
    background: #fff;
    border: 2px solid #000;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}


/* =========================
   TOPBAR
========================= */

.topbar {
    padding: .55rem 0;
    color: var(--text);
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
}

.topbar a {
    color: var(--primary-dark);
    font-weight: 600;
}

.topbar a:hover {
    color: var(--primary-darker);
}

.topbar-contact .list-inline-item {
    margin-right: 1.5rem;
}

.topbar-contact .icon-svg {
    margin-right: .35rem;
    color: var(--primary);
}

.wcag-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .35rem;
}

.wcag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--primary-dark);
    font-weight: 700;
}

.wcag-icon:hover,
.wcag-icon:focus-visible {
    color: #fff;
    background: var(--primary-dark);
}

.wcag-icon .icon {
    width: 18px;
    height: 18px;
}
/* =========================
   NAVBAR
========================= */

.main-navbar {
    min-height: 82px;
    background: var(--primary);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    color: #fff;
    line-height: 1.1;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #fff;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.brand-subtitle {
    margin-top: .25rem;
    font-size: .78rem;
    font-weight: 400;
}

.main-navbar .nav-link {
    margin-left: .3rem;
    padding: .7rem .8rem !important;
    color: #fff;
    font-weight: 600;
     transition: color .2s ease, background-color .2s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus-visible,
.main-navbar .nav-link.active {
    color: var(--primary-darker);
    background: #fff;
}

.main-navbar .dropdown-menu {
    margin-top: 0;
    padding: .5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
}

.main-navbar .dropdown-item {
    padding: .65rem .75rem;
    color: var(--heading);
    font-weight: 600;
    white-space: normal;
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus-visible,
.main-navbar .dropdown-item.active {
    color: var(--primary-darker);
    background: var(--primary-light);
}

.navbar-toggler {
    border: 2px solid #fff;
    border-radius: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}
.icon-svg {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
}
.offer-box > .icon-svg {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
}

.clinic-card .clinic-content {
    flex: 1;
}

.clinic-card h3 {
    margin: 0 0 .35rem;
    color: var(--heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.clinic-card .clinic-content > span {
    display: block;
    color: var(--text-muted);
    font-size: .92rem;
}

.clinic-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.clinic-arrow {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
    padding: 5rem 0;
    color: #fff;
    background: var(--primary-dark);
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 3.8rem);
}

.hero-overline {
    margin-bottom: .8rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 720px;
    margin-bottom: 2rem;
    font-size: 1.18rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hero .btn-outline-light:hover {
    color: var(--primary-dark);
}

.hero-info {
    padding: 2rem;
    border-left: 4px solid #fff;
    background: rgba(0,0,0,.14);
}

.hero-info span,
.hero-info strong,
.hero-info a {
    display: block;
}

.hero-info-title {
    margin-top: 1.25rem;
    margin-bottom: .2rem;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-info-title:first-child {
    margin-top: 0;
}

.hero-info a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}


/* =========================
   3 BLOKI OFERTOWE
========================= */

.offer-boxes {
    position: relative;
    z-index: 2;
    margin-top: -1px;
}

.offer-box {
    display: flex;
    gap: 1.3rem;
    height: 100%;
    min-height: 230px;
    padding: 2.2rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
}

.offer-box-alt {
    background: var(--primary-light);
}

.offer-box-dark {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.offer-box h3 {
    margin-bottom: .8rem;
    font-size: 1.3rem;
}

.offer-box-dark h3 {
    color: #fff;
}

.offer-box p {
    margin-bottom: .8rem;
}

.offer-box a {
    font-weight: 700;
}

.offer-box-dark a {
    color: #fff;
}

.offer-icon {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 2.3rem;
}

.offer-box-dark .offer-icon {
    color: #fff;
}


/* =========================
   SEKCJE
========================= */

.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--surface);
}

.section-overline {
    margin-bottom: .5rem;
    color: var(--primary);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.section-heading h2,
.section h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-footer {
    margin-top: 2.5rem;
}


/* =========================
   O NAS
========================= */

.about-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.about-item {
    min-height: 160px;
    padding: 2rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-item strong {
    display: block;
    margin-bottom: .35rem;
    color: var(--primary);
    font-size: 2rem;
}

.about-item span {
    color: var(--text-muted);
}


/* =========================
   PORADNIE
========================= */

.clinic-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    min-height: 130px;
    padding: 1.5rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.clinic-card:hover {
    color: var(--text);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* =========================
   LEKARZE
========================= */

.doctor-card {
    height: 100%;
    border: 1px solid var(--border);
    background: #fff;
}

.doctor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 5rem;
}

.doctor-content {
    padding: 1.5rem;
}

.doctor-content h3 {
    margin-bottom: .4rem;
    font-size: 1.15rem;
}

.doctor-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.doctor-content a {
    font-weight: 700;
}


/* =========================
   AKTUALNOŚCI
========================= */

.news-card {
    height: 100%;
    padding: 1.8rem;
    background: #fff;
    border-top: 4px solid var(--primary);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.news-card time {
    display: block;
    margin-bottom: .8rem;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 600;
}

.news-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.news-card h3 a {
    color: var(--heading);
    text-decoration: none;
}

.news-card h3 a:hover,
.news-card h3 a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

.news-more {
    font-weight: 700;
}


/* =========================
   KONTAKT
========================= */

.contact-section {
    padding: 4.5rem 0;
    color: #fff;
    background: var(--primary);
}

.contact-section h2,
.contact-section h3 {
    color: #fff;
}

.section-overline-light {
    color: #fff;
}

.contact-item {
    height: 100%;
    padding-left: 1.3rem;
    border-left: 2px solid rgba(255,255,255,.65);
}

.contact-item > .icon-svg {
    display: block;
    width: 1.7rem;
    height: 1.7rem;
    margin-bottom: .7rem;
}

.contact-item h3 {
    margin-bottom: .5rem;
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #fff;
    font-weight: 700;
}

/* PODSTRONY */

.page-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--primary-light);
}

.breadcrumb-nav {
  margin-bottom: 1.75rem;
}

.breadcrumb {
  margin: 0;
  font-size: .9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus-visible {
  color: var(--heading);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.page-header .eyebrow {
  margin-bottom: .6rem;
}

.page-header h1 {
  max-width: 52rem;
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.page-lead {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.page-content {
  padding: 2.75rem 0 4rem;
}


.content-main h2 {
  margin: 2.75rem 0 0.5rem;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  line-height: 1;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main h3 {
  margin: 2rem 0 .75rem;
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1.35;
}

.content-main p,
.content-main li {
  line-height: 1.75;
}

.content-main p {
  margin-bottom: 1.25rem;
}

.content-main ul,
.content-main ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.content-main li + li {
  margin-top: .5rem;
}

.content-main a:not(.btn) {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-main a:not(.btn):hover,
.content-main a:not(.btn):focus-visible {
  color: var(--heading);
  text-decoration-thickness: 2px;
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 2.25rem 0 2rem;
  }

  .breadcrumb-nav {
    margin-bottom: 1.25rem;
  }

  .page-lead {
    font-size: 1rem;
  }

  .page-content {
    padding: 2.75rem 0 3.5rem;
  }

  .content-main h2 {
    margin-top: 2.25rem;
  }
}
/* Sekcje treści na podstronach */

.page-content .content-section {
  margin-top: 2.75rem;
}

.page-content .content-section:first-child {
  margin-top: 0;
}
.content-section-columns h2 {
  margin: 0 0 1.5rem;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.content-section-columns p,
.content-section-columns li {
  line-height: 1.75;
}

.content-section-columns p {
  margin-bottom: 1.25rem;
}

.content-section-columns ul,
.content-section-columns ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.content-section-columns li + li {
  margin-top: .5rem;
}
/* CTA */

.content-section-cta {
  margin-top: 3.5rem !important;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;

  padding: 2.25rem 2.5rem;

  border-left: .35rem solid var(--primary);
  background: var(--primary-light);
}

.cta-content {
  max-width: 46rem;
}

.cta-box h2 {
  margin: 0 0 .75rem;
  color: var(--heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.25;
}

.cta-text > :last-child {
  margin-bottom: 0;
}

.cta-action {
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {

  .content-section-cta {
    margin-top: 2.75rem !important;
  }

  .cta-box {
    display: block;
    padding: 1.75rem;
  }

  .cta-action {
    margin-top: 1.5rem;
  }

}


/* =========================
   AKTUALNOŚCI - LISTA PODSTRONY
========================= */

.news-page {
    max-width: none;
}

.news-list-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-list-page .news-item {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #fff;
    border-top: 4px solid var(--primary);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

/* Aktualność bez zdjęcia */
.news-list-page .news-content:only-child {
    grid-column: 1 / -1;
}

.news-list-page .news-thumbnail {
    min-width: 0;
    background: var(--primary-light);
}

.news-list-page .news-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-list-page .news-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.news-list-page .news-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem 2rem;
}

.news-list-page .news-content time {
    display: block;
    margin-bottom: .8rem;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 600;
}

.news-list-page .news-content h2,
.news-list-page .news-content h3 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.news-list-page .news-content h2 a,
.news-list-page .news-content h3 a {
    color: var(--heading);
    text-decoration: none;
}

.news-list-page .news-content h2 a:hover,
.news-list-page .news-content h2 a:focus-visible,
.news-list-page .news-content h3 a:hover,
.news-list-page .news-content h3 a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

.news-list-page .news-content p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

.news-list-page .news-content .btn {
    margin-top: auto;
}


/* brak zdjęcia */

.news-list-page .news-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 230px;
    color: var(--primary);
    background: var(--primary-light);
}


/* tablet / telefon */

@media (max-width: 767.98px) {

    .news-list-page .news-item {
        grid-template-columns: 1fr;
    }

    .news-list-page .news-thumbnail img,
    .news-list-page .news-thumbnail-placeholder {
        height: 220px;
        min-height: 220px;
    }

    .news-list-page .news-content {
        padding: 1.5rem;
    }

    .news-list-page .news-content h2,
    .news-list-page .news-content h3 {
        font-size: 1.25rem;
    }
}
/* =========================================================
   AKTUALNOŚCI - POJEDYNCZY WPIS
   ========================================================= */

.news-date {
  margin: 0 0 .75rem;
}

.news-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.7;
}

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

.news-featured-image img {
  width: 100%;
  height: auto;
}

.news-body {
  margin-top: 0;
}

.news-body > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {

  .news-lead {
    font-size: 1.05rem;
  }

  .news-featured-image {
    margin-bottom: 1.5rem;
  }

}
/* FORMULARZE */

.content-form {
    padding: 3rem 0;
}

.content-form .content-main {
    background: #f5f6f6;
    border: 1px solid #d9dddd;
    padding: 2rem;
}

.content-form .form-label {
    font-weight: 600;
    color: #212529;
}

.content-form .form-control,
.content-form .form-select {
    background-color: #fff;
    border-color: #aeb5b5;
}

.content-form .form-control:focus,
.content-form .form-select:focus,
.content-form .form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(23, 75, 122, .18);
}

.content-form fieldset {
    background: #fff;
    border: 1px solid #cfd4d4 !important;
    padding: 1.5rem !important;
}

.content-form fieldset legend {
    background: #fff;
    font-weight: 600;
}

.content-form .form-text {
    color: #5b6363;
}

.content-form .form-check {
    padding-top: .25rem;
    padding-bottom: .25rem;
}

@media (max-width: 767.98px) {
    .content-form {
        padding: 2rem 0;
    }

    .content-form .content-main {
        padding: 1.25rem;
    }

    .content-form fieldset {
        padding: 1rem !important;
    }
}
/* =========================
   LEKARZE - LISTA PODSTRONY
========================= */

.people-list .person-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    transition: border-color .2s ease, transform .2s ease;
}

.people-list .person-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.people-list .person-photo {
    display: flex;
    flex: 0 0 220px;
    align-items: center;
    justify-content: center;
    height: 220px;
    margin-bottom: 0 !important;
    overflow: hidden;
    color: var(--primary);
    background: var(--primary-light);
}

.people-list .person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.people-list .person-placeholder-icon {
    width: 5rem;
    height: 5rem;
    color: var(--primary);
}

.people-list .person-card > h2 {
    margin: 0;
    padding: 1.5rem 1.5rem .4rem;
    color: var(--heading);
    font-size: 1.2rem;
    line-height: 1.3;
}

.people-list .person-roles {
    margin: 0;
    padding: 0 1.5rem 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.people-list .person-availability {
    margin: auto 1.5rem 1.5rem;
    padding: 1rem;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.people-list .person-availability p {
    color: var(--text);
}

.people-list .person-availability .fw-semibold {
    color: var(--heading);
}

@media (max-width: 767.98px) {

    .people-list .person-photo {
        flex-basis: 260px;
        height: 260px;
    }

}


/* telefon */

@media (max-width: 767.98px) {

    .people-list .person-photo {
        height: 260px;
    }

}

/* =========================
   PORADNIE - LISTA PODSTRONY
========================= */

.clinic-card-page {
    align-items: stretch;
    min-height: 180px;
    padding: 0;
    overflow: hidden;
}

.clinic-card-page .clinic-card-image {
    flex: 0 0 150px;
    min-width: 150px;
}


.clinic-card-page .clinic-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.clinic-card-page .clinic-content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

.clinic-card-page .clinic-content h2 {
    margin: 0 0 .5rem;
    color: var(--heading);
    font-size: 1.15rem;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.clinic-card-page .clinic-description {
    display: block;
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.clinic-card-page .clinic-arrow {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin: auto 1.25rem auto 0;
}

@media (max-width: 767.98px) {

    .clinic-card-page {
        display: block;
    }

    .clinic-card-page .clinic-card-image {
        display: block;
        width: 100%;
        min-width: 0;
        height: 180px;
    }

    .clinic-card-page .clinic-card-image img {
        height: 180px;
        min-height: 180px;
    }

    .clinic-card-page .clinic-content {
        padding: 1.4rem;
    }

    .clinic-card-page .clinic-arrow {
        display: none;
    }
}
/* =========================
   FOOTER
========================= */

.footer {
    padding: 4rem 0 1.5rem;
    color: #e7ece9;
    background: var(--primary-darker);
}

.footer h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.1rem;
}

.footer-brand {
    display: block;
    margin-bottom: .8rem;
    color: #fff;
    font-size: 1.5rem;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer li {
    margin-bottom: .5rem;
}

.footer a {
    color: #fff;
}

.footer address {
    font-style: normal;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.25);
}

.footer-bottom p {
    margin: 0;
    font-size: .9rem;
}


/* =========================
   WYSOKI KONTRAST
========================= */

body.high-contrast {
    color: #fff;
    background: #000;
}

body.high-contrast .topbar,
body.high-contrast .main-navbar,
body.high-contrast .hero,
body.high-contrast .section,
body.high-contrast .section-light,
body.high-contrast .contact-section,
body.high-contrast .footer,
body.high-contrast .page-header,
body.high-contrast .page-content,
body.high-contrast .content-form {
    color: #fff;
    background: #000;
    border-color: #fff;
}

body.high-contrast .offer-box,
body.high-contrast .about-item,
body.high-contrast .clinic-card,
body.high-contrast .doctor-card,
body.high-contrast .news-card,
body.high-contrast .news-list-page .news-item,
body.high-contrast .clinic-card-page,
body.high-contrast .people-list .person-card,
body.high-contrast .people-list .person-availability,
body.high-contrast .content-form .content-main,
body.high-contrast .content-form fieldset,
body.high-contrast .content-form fieldset legend,
body.high-contrast .cta-box {
    color: #fff;
    background: #000;
    border-color: #fff !important;
}

body.high-contrast .news-list-page .news-thumbnail,
body.high-contrast .news-list-page .news-thumbnail-placeholder,
body.high-contrast .clinic-card-page .clinic-card-image,
body.high-contrast .people-list .person-photo,
body.high-contrast .doctor-icon {
    color: #fff;
    background: #000;
    border-color: #fff;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p,
body.high-contrast span,
body.high-contrast strong,
body.high-contrast small,
body.high-contrast time,
body.high-contrast address,
body.high-contrast .breadcrumb-item.active,
body.high-contrast .form-text,
body.high-contrast .form-label {
    color: #fff;
}

body.high-contrast a,
body.high-contrast .icon-svg,
body.high-contrast .clinic-arrow {
    color: #ff0;
}

body.high-contrast .clinic-card h3,
body.high-contrast .clinic-card .clinic-content > span,
body.high-contrast .clinic-card-page .clinic-content h2,
body.high-contrast .clinic-card-page .clinic-description {
    color: #ff0;
}

body.high-contrast a:hover,
body.high-contrast a:focus-visible {
    color: #fff;
}

body.high-contrast .main-navbar .nav-link {
    color: #fff;
    background: #000;
}

body.high-contrast .main-navbar .nav-link:hover,
body.high-contrast .main-navbar .nav-link:focus-visible,
body.high-contrast .main-navbar .nav-link.active {
    color: #000 !important;
    background: #ff0 !important;
}

body.high-contrast .main-navbar .dropdown-menu {
    color: #fff;
    background: #000;
    border-color: #fff;
}

body.high-contrast .main-navbar .dropdown-item {
    color: #ff0;
    background: #000;
}

body.high-contrast .main-navbar .dropdown-item:hover,
body.high-contrast .main-navbar .dropdown-item:focus-visible,
body.high-contrast .main-navbar .dropdown-item.active {
    color: #000 !important;
    background: #ff0 !important;
}

body.high-contrast .contact-section .icon-svg,
body.high-contrast .footer .icon-svg {
    color: #fff;
}

body.high-contrast .btn {
    color: #000;
    background: #ff0;
    border-color: #ff0;
}

body.high-contrast .btn:hover,
body.high-contrast .btn:focus-visible {
    color: #000;
    background: #fff;
    border-color: #fff;
}

body.high-contrast .content-form .form-control,
body.high-contrast .content-form .form-select,
body.high-contrast .content-form .form-check-input {
    color: #fff;
    background-color: #000;
    border-color: #fff;
}

body.high-contrast .content-form .form-control::placeholder {
    color: #fff;
    opacity: .85;
}

body.high-contrast a:focus-visible,
body.high-contrast button:focus-visible,
body.high-contrast input:focus-visible,
body.high-contrast select:focus-visible,
body.high-contrast textarea:focus-visible {
    outline-color: #ff0;
}

.contrast-icon-bg {
    fill: #fff;
    stroke: currentColor;
    stroke-width: 1;
}

.wcag-icon:hover .contrast-icon-bg,
.wcag-icon:focus-visible .contrast-icon-bg {
    fill: #fff;
}
/* PERSONEL - wysoki kontrast */

body.high-contrast .people-list .person-card > h2,
body.high-contrast .people-list .person-roles,
body.high-contrast .people-list .person-availability p,
body.high-contrast .people-list .person-availability .fw-semibold {
    color: #fff !important;
}

body.high-contrast .people-list .person-placeholder-icon {
    color: #ff0 !important;
}


/* AKTUALNOŚCI - wysoki kontrast */

body.high-contrast .news-list-page .news-content time,
body.high-contrast .news-list-page .news-content p {
    color: #fff !important;
}

body.high-contrast .news-list-page .news-content h2,
body.high-contrast .news-list-page .news-content h3 {
    color: #fff !important;
}

body.high-contrast .news-list-page .news-content h2 a,
body.high-contrast .news-list-page .news-content h3 a {
    color: #ff0 !important;
}

body.high-contrast .news-list-page .news-content h2 a:hover,
body.high-contrast .news-list-page .news-content h2 a:focus-visible,
body.high-contrast .news-list-page .news-content h3 a:hover,
body.high-contrast .news-list-page .news-content h3 a:focus-visible {
    color: #fff !important;
}


/* TREŚCI PODSTRON */

body.high-contrast .content-main h2,
body.high-contrast .content-main h3,
body.high-contrast .content-main p,
body.high-contrast .content-main li,
body.high-contrast .news-lead {
    color: #fff !important;
}

body.high-contrast .content-main a:not(.btn) {
    color: #ff0 !important;
}

body.high-contrast .content-main a:not(.btn):hover,
body.high-contrast .content-main a:not(.btn):focus-visible {
    color: #fff !important;
}
/* WCAG TOOLS - wysoki kontrast */

body.high-contrast .wcag-icon {
    color: #000 !important;
    background: #fff !important;
    border-color: #fff !important;
}

body.high-contrast .wcag-icon:hover,
body.high-contrast .wcag-icon:focus-visible {
    color: #000 !important;
    background: #ff0 !important;
    border-color: #ff0 !important;
}

body.high-contrast .wcag-icon[aria-pressed="true"] {
    color: #000 !important;
    background: #ff0 !important;
    border-color: #ff0 !important;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {

    .main-navbar {
        min-height: 70px;
    }

    .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .main-navbar .nav-link {
        margin-left: 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .section {
        padding: 4rem 0;
    }

    .offer-box {
        min-height: auto;
    }

}


@media (max-width: 767.98px) {

    .hero {
        padding: 3.5rem 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 3.5rem 0;
    }

    .about-panel {
        grid-template-columns: 1fr;
    }

    .doctor-icon {
        height: 140px;
    }

    .contact-item {
        padding-bottom: 1rem;
    }

}
