/*
 * Bloki w treści strony.
 */

/* Strona "Mediraty": zaproszenie do formularza MediRaty (otwierany w nowej karcie) */
.mediraty-cta {
    margin: 24px 0 40px;
    padding: 28px 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #085a8f, #0a6ca8);
    color: #fff;
    text-align: center;
}
.mediraty-cta p {
    color: #fff;
    margin: 0 0 10px;
}
.mediraty-cta__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}
.mediraty-cta__text {
    font-size: 16px;
    opacity: .95;
}
.mediraty-cta a.mediraty-cta__button {
    display: inline-block;
    min-height: 48px;
    margin-top: 10px;
    padding: 12px 32px;
    border-radius: 24px;
    background: #d81b60;
    color: #fff;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
}
.mediraty-cta a.mediraty-cta__button:hover,
.mediraty-cta a.mediraty-cta__button:focus {
    background: #b0164e;
    color: #fff;
}

/* Listy w treści stron: punkty wyrównane do tekstu akapitów (bez wcięć wpisywanych w HTML) */
.main-container > .container .frame-type-text ul,
.main-container > .container .frame-type-text ol {
    padding-left: 1.4em;
}

/*
 * Dostępność (WCAG 2.1 AA)
 */

/* Linki na ciemnej stopce: kontrast min. 4,5:1 (#63b3ed na #15191c = 7,8:1) */
.footer-main a,
.bottom-footer a {
    color: #63b3ed;
}
/* Linki w tekście stopki odróżnione nie tylko kolorem (WCAG 1.4.1) */
.footer-main p a,
.bottom-footer p a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-main a:hover,
.footer-main a:focus,
.bottom-footer a:hover,
.bottom-footer a:focus {
    color: #a9d6f7;
}

/* Widoczny fokus przy nawigacji klawiaturą: biała obwódka z ciemnym obrysem
   jest widoczna zarówno na jasnym, jak i na niebieskim/ciemnym tle */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #1a1a1a;
}

/*
 * Stopka: trzy równe kolumny (kontakt, godziny NFZ, wizyty prywatne)
 */
.footer-main {
    padding-top: 48px;
}
.footer-main .widget {
    padding-right: 30px;
    margin-bottom: 32px;
    color: #e6e9ec;
}
.footer-main .footer-contact img {
    display: block;
    margin-bottom: 20px;
    max-width: 180px;
    height: auto;
}
.footer-main address {
    margin: 0 0 12px;
    font-style: normal;
    line-height: 1.6;
    color: #e6e9ec;
}
.footer-main address strong {
    color: #fff;
}
.footer-main .footer-contact-links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-main .footer-contact-links li {
    margin: 0 0 4px;
}
.footer-main .footer-contact-links a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Nagłówki kolumn z godzinami (z elementów treści) */
.footer-main .footer-hours h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    position: relative;
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
}
.footer-main .footer-hours h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background-color: #63b3ed;
}

/* Godziny: zwarte wiersze zamiast dużych odstępów */
.footer-main .footer-hours p {
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    line-height: 1.5;
    font-size: 15px;
    color: #e6e9ec;
}
.footer-main .footer-hours p:last-child {
    border-bottom: 0;
    padding-top: 12px;
    font-size: 14px;
    color: #c9d1d8;
}
.footer-main .footer-private p {
    border-bottom: 0;
}

.bottom-footer {
    margin-top: 24px;
    padding: 20px 0;
}
.bottom-footer p {
    text-transform: none;
    color: #b0b8bf;
}

@media (max-width: 991px) {
    .footer-main .widget {
        padding-right: 0;
    }
}
.footer-main a[href^="tel"] {
    white-space: nowrap;
}

/*
 * Menu główne: rozwijane podmenu
 */
@media (min-width: 992px) {
    .ow-navigation .navbar-nav > li > .dropdown-menu {
        min-width: 290px;
        padding: 8px 0;
        border-top: 3px solid #63b3ed;
        background: #fff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
        text-align: left;
    }
    .ow-navigation .navbar-nav > li .dropdown-menu li {
        padding-left: 0;
    }
    .ow-navigation .navbar-nav > li .dropdown-menu li a {
        display: block;
        padding: 11px 22px;
        border-left: 3px solid transparent;
        color: #1f2d3a;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1.35;
        text-align: left;
        text-transform: none;
        white-space: nowrap;
    }
    .ow-navigation .navbar-nav > li .dropdown-menu li a:hover,
    .ow-navigation .navbar-nav > li .dropdown-menu li a:focus,
    .ow-navigation .navbar-nav > li .dropdown-menu li.active > a {
        border-left-color: #0a6ca8;
        background: #eef6fc;
        color: #085a8f;
    }
    .ow-navigation .navbar-nav > li .dropdown-menu li + li a {
        border-top: 1px solid #eef1f4;
    }
}

@media (max-width: 991px) {
    .ow-navigation .navbar-nav > li {
        position: relative;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }
    .ow-navigation .navbar-collapse > .nav.navbar-nav > li > a {
        padding: 13px 64px 13px 20px;
        text-align: left;
        font-size: 13px;
    }
    .ow-navigation .navbar-nav > li > .dropdown-menu {
        padding: 0;
        background: rgba(0, 0, 0, .18);
    }
    .ow-navigation .nav.navbar-nav .dropdown-menu li a {
        display: block;
        padding: 12px 20px 12px 36px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        font-size: 15px;
        letter-spacing: 0;
        text-align: left;
        text-transform: none;
    }
    .ow-navigation .nav.navbar-nav .dropdown-menu li.active > a {
        font-weight: 700;
    }
    /* Przycisk rozwijania podmenu: bez białego kwadratu, pole dotyku 48 x 46 px */
    .ow-navigation .ddl-switch {
        top: 0;
        width: 48px;
        height: 46px;
        padding: 0;
        line-height: 46px;
        text-align: center;
        background: transparent;
        color: #fff;
        border-left: 1px solid rgba(255, 255, 255, .14);
    }
}

/*
 * Układ "Zdjęcie po lewej, tekst po prawej" (pole Layout = 10, np. strony usług).
 * Komputer: zdjęcie ~40% szerokości po lewej, tekst obok (bez oblewania).
 * Telefon: zdjęcie nad tekstem.
 */
.frame-layout-10 .ce-textpic {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: start;
}
.frame-layout-10 .ce-textpic::before,
.frame-layout-10 .ce-textpic::after {
    content: none;
}
.frame-layout-10 .ce-gallery {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.frame-layout-10 .ce-gallery .ce-outer,
.frame-layout-10 .ce-gallery .ce-inner,
.frame-layout-10 .ce-gallery .ce-row,
.frame-layout-10 .ce-gallery .ce-column {
    float: none;
    right: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}
.frame-layout-10 .ce-gallery figure {
    display: block;
    width: 100%;
    margin: 0 0 16px;
}
.frame-layout-10 .ce-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.frame-layout-10 .ce-bodytext {
    overflow: visible;
    margin: 0;
}
.frame-layout-10 .ce-bodytext h2 {
    margin: 28px 0 10px;
    font-size: 22px;
}
.frame-layout-10 .ce-bodytext > p:first-child {
    font-size: 17px;
    line-height: 1.6;
}
.frame-layout-10 header h1 {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.25;
}

/* Wezwanie do umówienia wizyty na końcu tekstu */
.service-cta {
    margin-top: 28px;
    padding: 16px 20px;
    border-left: 4px solid #0a6ca8;
    background: #eef6fc;
    font-size: 17px;
}
.service-cta a {
    color: #085a8f;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .frame-layout-10 .ce-textpic {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .frame-layout-10 header h1 {
        font-size: 26px;
    }
}

/* Nagłówek H1 strony z szablonu (strony bez własnego H1 w treści) */
.page-heading {
    margin: 32px 0 24px;
    font-size: 32px;
    line-height: 1.25;
}
@media (max-width: 767px) {
    .page-heading {
        margin: 20px 0 16px;
        font-size: 26px;
    }
}
