/*
Theme Name: Astra Child
Description: Motyw potomny Astra dla strony szpitala
Author: Internet Arts
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Własne style CSS */

#masthead {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease, max-height 0.3s ease;
}

#masthead.is-sticky-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    max-height: 170px;
}

/* Animacja chowania górnego paska zamiast display:none */
.ast-above-header-wrap {
    max-height: 60px; /* ustaw realną wysokość paska - sprawdź w devtools */
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

#masthead.is-sticky-scrolled .ast-above-header-wrap {
    max-height: 0;
    opacity: 1;
    padding-top: 0;
    padding-bottom: 0;
}

.ast-primary-header-bar {
    transition: height 0.3s ease;
}

#masthead.is-sticky-scrolled .ast-primary-header-bar {
    height: 170px;
}

.ast-primary-header-bar .site-primary-header-wrap {
    transition: max-height 0.3s ease, height 0.3s ease;
}

#masthead.is-sticky-scrolled .ast-primary-header-bar .site-primary-header-wrap {
    max-height: 130px;
    height: 135px;
}

.site-header-section-left #block-9 a {
    color: #E50000;
    font-weight: 500;
    margin-top: 3px;
}

@media (max-width: 921.99px) {
    
    .ast-hide-on-mobile {
        display: none !important;
    }
    
    .ast-icon.icon-search svg {
        margin-top: 5px;
    }
    
    #ast-desktop-header {
        display: block !important;
    }

    #ast-desktop-header .ast-main-header-wrap,
    #ast-desktop-header .ast-below-header-wrap {
        display: none !important;
    }
    
    
    .ast-header-break-point .ast-above-header-bar .ast-builder-grid-row {
        grid-column-gap: 0;
    }
}

.header-widget-area {
    padding: 9px 0;
}

.header-widget-area .widget_block {
    display: flex;
    column-gap: 30px;
    margin-right: 15px;
}

.ast-icon.icon-search svg {
    margin-top: 8px;
}
.header-widget-area .widget_block a {
    font-size: 14px;
    display: flex;
    column-gap: 8px;
    align-items: center;
}

.header-widget-area .widget_block img {
    height: 27px;
    width: auto;
}

.ast-header-search .ast-search-menu-icon.slide-search .search-form label,
.ast-header-search .ast-search-menu-icon.slide-search .search-form {
    border-radius: 6px;
}
.entry-content strong {
    font-weight: 600;
}

.entry-meta, .entry-meta * {
    font-weight: 400;
}

.entry-content :where(h1,h2,h3,h4,h5,h6) {
    margin-top: 1.5em;
    margin-bottom: calc(0.3em + 10px);
}

.entry-content p {
    margin-bottom: 1.0em;
}

@media (min-width: 993px) {
    .ast-separate-container #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary {
        margin: 2em 0 1em;
        padding: 0;
    }
}


nav.onetap-accessibility.onetap-plugin-onetap .onetap-container .onetap-accessibility-settings header.onetap-header-top .onetap-site-container .onetap-site-info .onetap-information,
nav.onetap-accessibility.onetap-plugin-onetap .onetap-container .onetap-accessibility-settings header.onetap-header-top .onetap-site-container .onetap-site-info .onetap-image {
    display: none !important;
}

nav.onetap-accessibility.onetap-plugin-onetap .onetap-container .onetap-accessibility-settings header.onetap-header-top .onetap-site-container .onetap-site-info {
    padding-top: 65px !important;
    min-height: 220px !important;
}


body.home .eael-entry-media {
    border-radius: 15px;
}

.ast-page-builder-template .entry-header.ast-header-without-markup {
    margin-top: 35px;
    max-width: 1320px;
}

.ast-separate-container .post-navigation {
    border-top: 1px solid #f1f1f1;
    margin-top: 55px;
}

.eael-grid-post-holder {
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.elementor-widget-eael-post-grid .eael-entry-meta > span {
    font-size: 13px;
    color: #a4a4a4;
}
.eael-grid-post-holder:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.ast-primary-header-bar {
    height: 195px;
    background: url(/wp-content/uploads/2026/07/top-bg.png) #fff;
    background-position: 50% 0;
}

.ast-primary-header-bar .site-primary-header-wrap {
    max-height: 155px;
    height: 155px;
}

.ast-builder-menu-1 .menu-item > .menu-link {
    color: #fff;
    font-weight: 600;
    font-size: 19px;
    padding: 0 11px;
}

.ast-builder-menu-1 .menu-link:hover, .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link {
   color: #f0ecce; 
}

/* Logo i nazwa szpitala */
.site-branding.ast-site-identity {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0;
}

/* Herb */
.site-branding .site-logo-img {
	flex: 0 0 auto;
    padding: 0;
}

.site-branding .custom-logo-link {
	display: block;
	line-height: 0;
}

.site-branding .custom-logo {
	display: block;
	width: 109px !important;
	height: auto;
}

/* Kontener nazwy */
.site-branding .ast-site-title-wrap {
	margin: 0;
}

.site-branding .site-title {
	margin: 0;
	line-height: 1;
}

/*
 * Ukrywamy wizualnie tekst pochodzący z WordPressa,
 * ale pozostawiamy go w kodzie dla czytników ekranowych.
 */
.site-branding .site-title a {
	display: block;
	color: #000;
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
/* Pierwszy, pogrubiony wiersz */
.site-branding .site-title a::before {
	content: "Szpital Specjalistyczny";
	display: block;
	margin-bottom: 3px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}

/* Dwa mniejsze wiersze */
.site-branding .site-title a::after {
	content: "im. Jędrzeja Śniadeckiego\A w Nowym Sączu";
	display: block;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.42;
	white-space: pre;
}

/* Tablet */
@media (max-width: 921px) {
	.site-branding.ast-site-identity {
		gap: 16px;
	}

	.site-branding .custom-logo {
		width: 90px !important;
	}

	.site-branding .site-title a::before {
		font-size: 23px;
	}

	.site-branding .site-title a::after {
		font-size: 17px;
	}
}

/* Telefon */
@media (max-width: 544px) {
    
    .ast-hfb-header .ast-builder-menu-mobile .main-header-menu, 
    .ast-hfb-header .ast-builder-menu-mobile .main-navigation .menu-item .menu-link, 
    .ast-hfb-header .ast-builder-menu-mobile .main-navigation .menu-item .sub-menu .menu-link {
        font-size: 17px;
        font-family: "Quicksand";
        font-weight: 600;
    }
    
    .ast-hfb-header .ast-builder-menu-mobile .main-navigation .menu-item .sub-menu .menu-link {
        font-size: 15px;
        font-weight: 400
    }
    
	.site-branding.ast-site-identity {
		gap: 10px;
	}

	.site-branding .custom-logo {
		width: 70px !important;
	}

	.site-branding .site-title a::before {
		margin-bottom: 3px;
		font-size: 17px;
		letter-spacing: -0.3px;
	}

	.site-branding .site-title a::after {
		font-size: 13px;
		line-height: 1.35;
	}
}

/* Bardzo wąskie telefony */
@media (max-width: 380px) {
	.site-branding .custom-logo {
		width: 60px !important;
	}

	.site-branding .site-title a::before {
		font-size: 15px;
	}

	.site-branding .site-title a::after {
		font-size: 13px;
	}
}

.site-branding.ast-site-identity {
	transition: transform 0.3s ease;
}

.site-branding.ast-site-identity:hover {
	transform: translateY(-4px);
}

.site-header-primary-section-right .ast-header-html-2 .header-logos-wrapper {
    display: flex;
    column-gap: 32px;
    align-items: center;
}


.site-header-primary-section-right .ast-header-html-2 .header-logos-wrapper a,
.ast-header-html-1 .ast-builder-html-element a img {
	transition: transform 0.3s ease;
}

.site-header-primary-section-right .ast-header-html-2 .header-logos-wrapper a:hover,
.ast-header-html-1 .ast-builder-html-element a:hover img {
	transform: translateY(-4px);
}

.ast-below-header-bar .site-below-header-wrap {
    margin-top: -35px;
}

.ast-builder-grid-row.ast-grid-center-col-layout-only {
    background: #216aa4;
    border-radius: 15px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.quick-contact {
    color: #343434;
    font-size: 18px;
    padding-left: 20px;
    line-height: 1.45;
}

.quick-contact__title {
    margin: 0 0 25px;
    color: #176aa5;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.quick-contact__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-contact__item {
    position: relative;
    min-height: 28px;
    padding-left: 40px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.quick-contact__item::before {
    content: "";
    position: absolute;
    left: 2px;
    width: 21px;
    height: 21px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Lokalizacja */

.quick-contact__item--address::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e60000' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
}

/* Telefon */

.quick-contact__item--phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e60000' d='M20.5 15.5c-1.2 0-2.4-.2-3.5-.6-.4-.1-.8 0-1.1.3l-2.2 2.2a16.1 16.1 0 0 1-7.1-7.1l2.2-2.2c.3-.3.4-.7.3-1.1-.4-1.1-.6-2.3-.6-3.5A1.5 1.5 0 0 0 7 2H3.5A1.5 1.5 0 0 0 2 3.5C2 13.7 10.3 22 20.5 22a1.5 1.5 0 0 0 1.5-1.5V17a1.5 1.5 0 0 0-1.5-1.5z'/%3E%3C/svg%3E");
}

/* E-mail */

.quick-contact__item--email::before {
    width: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e60000' d='M20 4H4a2 2 0 0 0-2 2v1l10 6 10-6V6a2 2 0 0 0-2-2zm2 5.3-9.5 5.7a1 1 0 0 1-1 0L2 9.3V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9.3z'/%3E%3C/svg%3E");
}

.quick-contact a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.quick-contact a:hover {
    color: #176aa5;
}

.quick-contact__details {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.55;
}

.quick-contact__details p {
    margin: 0 0 14px;
}

.quick-contact__details p:last-child {
    margin-bottom: 0;
}

.quick-contact__details strong {
    font-weight: 600;
}

@media (max-width: 1350px) {
    
    .quick-contact {
        font-size: 17px;
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    
    .quick-contact {
        font-size: 15px;
        padding: 0 15px;
    }

    .quick-contact__title {
        font-size: 22px;
        margin-bottom: 22px;
    }
    
    #nav_menu-2 {
        padding: 35px 15px 0 15px;
    }

    .quick-contact__list {
        gap: 17px;
    }

    .quick-contact__item {
        min-height: 24px;
        padding-left: 34px;
        align-items: flex-start;
    }

    .quick-contact__item::before {
        top: 2px;
        width: 20px;
        height: 20px;
        transform: none;
    }

    .quick-contact__details {
        margin-top: 28px;
        font-size: 15px;
    }
}

.ast-hfb-header .site-footer {
    border-top: 1px solid #e3e3e3;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row {
    background: #216aa4;
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}


.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row a {
    color: #fff;
    font-weight: 600;
    font-family: "Quicksand";
    font-size: 18px;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row a:hover {
    color: #f0ecce; 
}

.footer-widget-area[data-section="section-footer-menu"] .astra-footer-horizontal-menu {
    justify-content: center;
}

@media (min-width: 769px) {
    .footer-nav-wrap .astra-footer-horizontal-menu a {
        padding: 0 0.6em;
    }
}

footer h2.widget-title {
    margin-bottom: 15px;
}

ul#menu-dodatkowe-informacje li {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 9px;
}

ul#menu-dodatkowe-informacje li a{
    color: #2d2d2d;
}

ul#menu-dodatkowe-informacje li a:hover {
    color: #176aa5
}

.hospital-card {
	display: block;
	width: 100%;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: #60a9dd;
	border-radius: 15px;
	box-shadow: 0 3px 10px rgba(20, 65, 95, 0.12);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.hospital-card__image {
	display: block;
	width: 100%;
	overflow: hidden;
	background: #e8eef2;
}

.hospital-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.hospital-card__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 55px;
	padding: 10px 16px;
	color: #fff;
	font-size: clamp(18px, 1.8vw, 23px);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hospital-card:hover {
	color: #fff;
	text-decoration: none;
	transform: translateY(-5px);
	box-shadow: 0 10px 22px rgba(20, 65, 95, 0.24);
}

.hospital-card:hover .hospital-card__image img {
	transform: scale(1.025);
}

.hospital-card:focus-visible {
	color: #fff;
	outline: 3px solid #fff;
	outline-offset: 4px;
	transform: translateY(-5px);
	box-shadow: 0 10px 22px rgba(20, 65, 95, 0.24);
}

@media (prefers-reduced-motion: reduce) {
	.hospital-card,
	.hospital-card__image img {
		transition: none;
	}
}

.eael-post-grid .eael-entry-wrapper>.eael-entry-header-after .eael-entry-meta span.eael-posted-by {
    display: none;
}

.ast-footer-copyright a {
    color: #2c2c2c;
}

.obraz-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.obraz-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.ast-builder-menu-1 .main-header-menu .sub-menu {
    background-color: #3279B2;
    padding: 10px 15px;
    width: 250px;
}

.ast-builder-menu-1 .main-header-menu .menu-wide .sub-menu {
    width: 300px;
}

.ast-builder-menu-1 .main-header-menu .menu-extra-wide .sub-menu {
    width: 370px;
}

.ast-builder-menu-1 .main-header-menu .sub-menu li {
    padding: 7px 0;
    line-height: 1.35em;
    border-bottom: 1px solid RGB(255,255,255,0.2)
}

.ast-builder-menu-1 .main-header-menu .sub-menu li:last-child {
    border-bottom: none
}

.ast-builder-menu-1 .main-header-menu .sub-menu li a {
    font-weight: 400;
    font-size: 17px;
    padding: 0;
}



/* Kafelki kontaktowe */

.contact-card {
    height: 100%;
    padding: 34px 28px;
    background: #fff;
    border: 1px solid #e5e9ed;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(15, 43, 68, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #b9ccd9;
    box-shadow: 0 16px 38px rgba(15, 43, 68, 0.12);
}

.contact-card a {
    color: inherit;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Dane rejestrowe */

.hospital-data {
    padding: 48px;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(19, 48, 71, 0.07);
}

.hospital-data__heading {
    max-width: 720px;
    margin-bottom: 32px;
}

.hospital-data__eyebrow,
.hospital-map__heading span {
    display: block;
    margin-bottom: 8px;
    color: #1476a8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hospital-data__heading h2,
.hospital-map__heading h2 {
    margin: 0 0 12px;
}

.hospital-data__heading p {
    margin: 0;
    color: #5b6872;
}

.hospital-data__list {
    border-top: 1px solid #e4e9ed;
}

.hospital-data__row {
    display: grid;
    grid-template-columns: minmax(220px, 35%) 1fr;
    gap: 30px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #e4e9ed;
}

.hospital-data__label {
    color: #4f5e68;
    font-weight: 600;
}

.hospital-data__value {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.hospital-data__value strong {
    color: #173a52;
    font-size: 18px;
}

.hospital-data__value a,
.hospital-unit a {
    color: #0876ad;
    font-weight: 600;
    text-decoration: none;
}

.hospital-data__value a:hover,
.hospital-unit a:hover {
    text-decoration: underline;
}

.hospital-data__note {
    padding: 4px 9px;
    background: #eef5f8;
    border-radius: 5px;
    color: #405966;
    font-size: 13px;
}

/* Jednostki organizacyjne */

.hospital-units {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hospital-unit {
    padding: 32px;
    background: #f5f8fa;
    border-left: 4px solid #1678a8;
    border-radius: 10px;
}

.hospital-unit h3 {
    margin: 0 0 8px;
    color: #173a52;
}

.hospital-unit p {
    margin: 0 0 24px;
    color: #5b6872;
}

.hospital-unit dl {
    margin: 0 0 22px;
}

.hospital-unit dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #dce5ea;
}

.hospital-unit dt {
    color: #5b6872;
}

.hospital-unit dd {
    margin: 0;
    color: #173a52;
    font-weight: 700;
}

.hospital-unit--wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hospital-unit--wide p {
    margin-bottom: 0;
}

.hospital-unit--wide > strong {
    color: #173a52;
    font-size: 26px;
}

/* Książka telefoniczna */

.phonebook-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 32px 38px;
    color: #fff;
    background: linear-gradient(135deg, #133c59 0%, #0878ad 100%);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(12, 74, 108, 0.2);
}

.phonebook-cta__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #123f59;
    background: #fff;
    border-radius: 50%;
    font-size: 25px;
}

.phonebook-cta h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 24px;
}

.phonebook-cta p {
    margin: 0;
    color: rgba(255,255,255,.85);
}

.phonebook-cta__button {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 14px 20px;
    color: #173a52;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.phonebook-cta__button:hover {
    color: #fff;
    background: transparent;
}

/* Plan szpitala */

.hospital-map {
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(20, 50, 70, 0.08);
}

.hospital-map__heading {
    padding: 28px 30px 18px;
}

.hospital-map a {
    position: relative;
    display: block;
    overflow: hidden;
}

.hospital-map img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .35s ease;
}

.hospital-map a:hover img {
    transform: scale(1.02);
}

.hospital-map__zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 15px;
    color: #fff;
    background: rgba(15, 52, 75, .9);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}


/* Wersja mobilna */

@media (max-width: 767px) {
    .hospital-data {
        padding: 28px 22px;
    }

    .hospital-data__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hospital-data__value {
        align-items: flex-start;
        flex-direction: column;
    }

    .hospital-units {
        grid-template-columns: 1fr;
    }

    .hospital-unit--wide {
        grid-column: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .phonebook-cta {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .phonebook-cta__button {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 921px) {
    
    .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu .menu-link {
        background: #3279b2
    }
    
    .ast-button-wrap .menu-toggle.main-header-menu-toggle {
        padding: .35em;
    }
    
    .ast-primary-header-bar {
        height: 100px;
    }
    
    .hospital-card {
        height: 185px;
    }
    
    .hospital-card__image {
        height: 135px;
    }
    
}


/* Formularz kontaktowy Contact Form 7 */

.hospital-contact-form {
    --form-primary: #176aa5;
    --form-primary-hover: #125681;
    --form-text: #29343b;
    --form-muted: #667681;
    --form-border: #d7e0e6;
    --form-focus: rgba(23, 106, 165, 0.16);

    width: 100%;
}

.hospital-contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 30px;
}

.hospital-contact-form__field {
    margin-bottom: 24px;
}

.hospital-contact-form__grid .hospital-contact-form__field {
    margin-bottom: 0;
}

.hospital-contact-form__field--message {
    margin-top: 28px;
}

.hospital-contact-form__field--message p {
    width: 100%
}

.hospital-contact-form__field label {
    display: block;
    margin-bottom: 8px;
    color: var(--form-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.hospital-contact-form__field label span[aria-hidden="true"] {
    color: #c72525;
}

.hospital-contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.hospital-contact-form input[type="text"],
.hospital-contact-form input[type="email"],
.hospital-contact-form input[type="tel"],
.hospital-contact-form textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 16px;
    color: var(--form-text);
    background: #fff;
    border: 1px solid var(--form-border);
    border-radius: 10px;
    outline: none;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.hospital-contact-form textarea {
    height: 145px;
    width: 100%;
    resize: vertical;
}

.hospital-contact-form input::placeholder,
.hospital-contact-form textarea::placeholder {
    color: #89969e;
    opacity: 1;
}

.hospital-contact-form input[type="text"]:focus,
.hospital-contact-form input[type="email"]:focus,
.hospital-contact-form input[type="tel"]:focus,
.hospital-contact-form textarea:focus {
    border-color: var(--form-primary);
    box-shadow: 0 0 0 4px var(--form-focus);
}

.hospital-contact-form__consent {
    margin-top: 22px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    color: #000;
    font-size: 14px;
    line-height: 1.55;
}

.hospital-contact-form__consent .wpcf7-list-item {
    margin: 0;
}

.hospital-contact-form__consent label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.hospital-contact-form__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: var(--form-primary);
    cursor: pointer;
}

.hospital-contact-form__consent a {
    color: var(--form-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hospital-contact-form__consent a:hover {
    color: var(--form-primary-hover);
}

.hospital-contact-form__required {
    margin: 14px 0 0;
    color: var(--form-muted);
    font-size: 13px;
}

.hospital-contact-form__submit {
    margin-top: 24px;
}

.hospital-contact-form input[type="submit"] {
    min-height: 52px;
    padding: 13px 28px;
    color: #fff;
    background: #E50000;
    border: 2px solid #E50000;
    border-radius: 20px;
    box-shadow: 0 7px 18px rgba(23, 106, 165, 0.2);
    font-size: 18px;
    font-weight: 700 !important;
    line-height: 1.3;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hospital-contact-form input[type="submit"]:hover {
    color: #E50000;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 106, 165, 0.25);
}

.hospital-contact-form input[type="submit"]:focus-visible {
    outline: 3px solid var(--form-focus);
    outline-offset: 3px;
}

/* Komunikaty walidacji */

.hospital-contact-form .wpcf7-not-valid {
    border-color: #c72525 !important;
}

.hospital-contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
    margin: 22px 0 0;
    padding: 14px 18px;
    border-width: 1px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.hospital-contact-form .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

/* Wersja mobilna */

@media (max-width: 767px) {
    .hospital-contact-form {
        padding: 26px 20px;
    }

    .hospital-contact-form__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hospital-contact-form__field--message {
        margin-top: 20px;
    }

    .hospital-contact-form textarea {
        min-height: 150px;
    }

    .hospital-contact-form__submit input[type="submit"] {
        width: 100%;
    }
}

/* Winieta „Strona w budowie” */

.page-under-construction {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    width: 100%;
    padding: 38px 42px;
    overflow: hidden;
    color: #29343b;
    background:
        linear-gradient(135deg, rgba(23, 106, 165, 0.06), rgba(96, 169, 221, 0.12)),
        #fff;
    border: 1px solid #dce7ed;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(19, 48, 71, 0.08);
}

.page-under-construction::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #176aa5;
}

.page-under-construction__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    color: #176aa5;
    background: #fff;
    border: 1px solid #dce7ed;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(23, 106, 165, 0.12);
}

.page-under-construction__icon svg {
    display: block;
}

.page-under-construction__content {
    max-width: 680px;
}

.page-under-construction__label {
    display: block;
    margin-bottom: 7px;
    color: #176aa5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.page-under-construction h2 {
    margin: 0 0 8px;
    color: #173a52;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.page-under-construction p {
    margin: 0;
    color: #5b6872;
    font-size: 16px;
    line-height: 1.65;
}

.page-under-construction__button {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    color: #fff;
    background: #176aa5;
    border: 2px solid #176aa5;
    border-radius: 20px;
    box-shadow: 0 7px 18px rgba(23, 106, 165, 0.2);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.page-under-construction__button:hover {
    color: #176aa5;
    background: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 106, 165, 0.24);
}

.page-under-construction__button span {
    transition: transform 0.2s ease;
}

.page-under-construction__button:hover span {
    transform: translateX(4px);
}

.page-under-construction__button:focus-visible {
    outline: 3px solid rgba(23, 106, 165, 0.25);
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .page-under-construction {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 25px;
        text-align: center;
    }

    .page-under-construction__icon {
        width: 68px;
        height: 68px;
        margin: 0 auto;
    }

    .page-under-construction__button {
        width: 100%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-under-construction__button,
    .page-under-construction__button span {
        transition: none;
    }
}

.ast-header-breadcrumb {
    padding: 0;
    width: 100%;
    border: none;
}

.ast-header-breadcrumb .ast-breadcrumbs-wrapper {
    border-bottom: 1px solid #f1f1f1;
    padding-top: 20px;
    padding-bottom: 19px;
}


/* Galerie wpisów */
.entry-content figure.wp-block-gallery.has-nested-images {
    margin-top: 50px !important;
    gap: 14px !important;
}

/* Desktop – 5 kolumn */
@media (min-width: 1100px) {
    .entry-content figure.wp-block-gallery.has-nested-images {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Tablet – 3 kolumny */
@media (min-width: 700px) and (max-width: 1099px) {
    .entry-content figure.wp-block-gallery.has-nested-images {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Telefon – 2 kolumny */
@media (max-width: 699px) {
    .entry-content figure.wp-block-gallery.has-nested-images {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Reset szerokości nadawanych przez WordPress */
.entry-content figure.wp-block-gallery.has-nested-images > figure.wp-block-image {
    width: 100% !important;
    max-width: none !important;
    flex-basis: auto !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* Jednolite, docinane miniatury */
.entry-content figure.wp-block-gallery.has-nested-images > figure.wp-block-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Kontener galerii – bez cienia */
.entry-content figure.wp-block-gallery.has-nested-images {
    box-shadow: none !important;
}

/* Cień tylko na miniaturkach */
.entry-content figure.wp-block-gallery.has-nested-images > figure.wp-block-image {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Delikatny efekt po najechaniu */
.entry-content figure.wp-block-gallery.has-nested-images > figure.wp-block-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.18);
}



/* Tabele w treści podstron i wpisów */
.entry-content table {
    width: 100%;
    margin: 0;
    border: 1px solid #e1e6ea;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
}

.etw-posts-table-wrap {
margin: 20px 0 30px 0;
}

/* Komórki */
.entry-content table th,
.entry-content table td {
    padding: 13px 16px;
    border: 0;
    border-right: 1px solid #e1e6ea;
    border-bottom: 1px solid #e1e6ea;
    vertical-align: middle;
}

/* Usunięcie zbędnych krawędzi */
.entry-content table th:last-child,
.entry-content table td:last-child {
    border-right: 0;
}

.entry-content table tr:last-child th,
.entry-content table tr:last-child td {
    border-bottom: 0;
}

/* Akapity wewnątrz tabel */
.entry-content table p {
    margin: 0;
}

/* Prawidłowy nagłówek zapisany jako thead */
.entry-content table thead th,
.entry-content table thead td {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: #216aa4;
}

/*
 * Obsługa starych tabel bez <thead>.
 * Pierwszy wiersz zostanie uznany za nagłówek tylko wtedy,
 * gdy jego druga komórka zawiera pogrubiony tekst.
 */
.entry-content table tbody tr:first-child:has(> td:nth-child(2) strong) > td {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: #216aa4;
}

/* Nagłówki działów, np. BIOCHEMIA */
.entry-content table td[colspan] {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: #216aa4;
}

/* Co drugi wiersz */
.entry-content table tbody tr:nth-child(even) > td {
    background-color: #f7f8f9;
}

/* Zachowanie niebieskiego tła nagłówków działów */
.entry-content table tbody tr:nth-child(even) > td[colspan] {
    background-color: #216aa4;
    color: #fff;
}

/* Zachowanie tła pierwszego wiersza będącego nagłówkiem */
.entry-content table tbody tr:first-child:has(> td:nth-child(2) strong) > td {
    background-color: #216aa4;
    color: #fff;
}

/* Delikatny hover */
.entry-content table tbody tr:hover > td:not([colspan]) {
    background-color: #eef5fa;
}

/* Nagłówki nie zmieniają koloru po najechaniu */
.entry-content table tbody tr:first-child:has(> td:nth-child(2) strong):hover > td {
    background-color: #216aa4;
}

/* Urządzenia mobilne */
@media (max-width: 767px) {
    .entry-content table {
        font-size: 14px;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 10px 12px;
    }
}

/* ==========================================================================
   Książka telefoniczna — style strony /kontakt/
   Kolory: główny #216aa4, dodatkowy #e50000
   Czcionka: dziedziczona z globalnych stylów strony (Quicksand)
   ========================================================================== */


/* ==========================================================================
   Książka telefoniczna — spis działów z kotwicami
   Dopisz ten blok na końcu obecnego CSS strony /kontakt/.
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Box spisu */
.kontakt-spis {
    position: relative;
    overflow: hidden;
    margin: 0 0 10px;
    padding: 30px;
    background: linear-gradient(135deg, #f3f8fc 0%, #ffffff 68%);
    border: 1px solid #d7e4ee;
    border-top: 4px solid #216aa4;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(33, 106, 164, 0.09);
}

.kontakt-spis::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    background: rgba(229, 0, 0, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.kontakt-spis-naglowek {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.kontakt-spis-ikona {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #ffffff;
    background: #e50000;
    border-radius: 14px;
    font-size: 25px;
    line-height: 1;
    box-shadow: 0 7px 18px rgba(229, 0, 0, 0.2);
}

.kontakt-spis-naglowek h2 {
    margin: 0 0 4px;
    padding: 0;
    color: #216aa4;
    border: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.kontakt-spis-naglowek p {
    margin: 0;
    color: #4a5560;
    font-size: 15px;
    line-height: 1.5;
}

/* Dwie jawne kolumny pozwalają równomiernie rozłożyć grupy. */
.kontakt-spis-kolumny {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.kontakt-spis-kolumna {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kontakt-spis-grupa {
    display: block;
    width: 100%;
    height: fit-content;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe8ef;
    border-radius: 13px;
    line-height: 0;
    box-shadow: 0 4px 14px rgba(33, 106, 164, 0.055);
}

.kontakt-spis-glowny {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: #ffffff;
    background: #216aa4;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.kontakt-spis-glowny::after {
    content: "↓";
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 18px;
}

.kontakt-spis-glowny:hover {
    color: #ffffff;
    background: #e50000;
}

.kontakt-spis-grupa ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px;
    list-style: none;
}

.kontakt-spis-grupa li {
    margin: 0;
    padding: 0;
}

.kontakt-spis-grupa li a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 8px;
    color: #314454;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.kontakt-spis-grupa li a::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: 6px;
    background: #e50000;
    border-radius: 50%;
}

.kontakt-spis-grupa li a:hover {
    color: #216aa4;
    background: #edf5fa;
    transform: translateX(2px);
}

/* Śródtytuły „Oddziały zabiegowe / niezabiegowe”. */
.kontakt-spis-grupa li.kontakt-spis-kategoria a {
    margin-top: 5px;
    color: #e50000;
    background: #fff3f3;
    font-weight: 700;
}

.kontakt-spis-grupa li.kontakt-spis-kategoria a::before {
    width: 3px;
    height: 16px;
    margin-top: 1px;
    border-radius: 3px;
}

/* Widoczny fokus dla obsługi klawiaturą. */
.kontakt-spis a:focus-visible {
    outline: 3px solid rgba(229, 0, 0, 0.42);
    outline-offset: 2px;
}

/*
 * Astra przechwytuje kliknięcia kotwic i pomija scroll-margin-top.
 * Faktyczny cel linku jest więc przesunięty nad nagłówek o 205 px.
 */
.kontakt-dzial h2,
.kontakt-dzial h3 {
    position: relative;
}

.kontakt-kotwica {
    position: absolute;
    top: -205px;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 767px) {
    .kontakt-spis {
        margin-top: 22px;
        padding: 20px 16px;
        border-radius: 15px;
    }

    .kontakt-spis-naglowek {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .kontakt-spis-ikona {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 21px;
    }

    .kontakt-spis-naglowek h2 {
        font-size: 25px;
    }

    .kontakt-spis-kolumny {
        grid-template-columns: 1fr;
    }

    .kontakt-spis-kolumna {
        gap: 14px;
    }

    .kontakt-kotwica {
        top: -105px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .kontakt-spis a {
        transition: none;
    }
}



.kontakt-ksiazeczka-telefoniczna {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* --- Box z instrukcją wybierania numerów wewnętrznych --- */
.kontakt-intro {
    background-color: #f7f8f9;
    border: 1px solid #e1e6ea;
    border-left: 4px solid #e50000;
    border-radius: 15px;
    padding: 20px 24px;
}

.kontakt-intro p {
    margin: 0 0 10px 0;
    color: #216aa4;
    font-weight: 700;
}

.kontakt-intro ul {
    margin: 0;
    padding-left: 20px;
}

.kontakt-intro li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.kontakt-intro li:last-child {
    margin-bottom: 0;
}

.kontakt-intro strong {
    color: #e50000;
}

/* --- Główne działy (Dyrekcja, Administracja, Ośrodki...) --- */
.kontakt-dzial {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kontakt-dzial h2 {
        color: #e50000;
    font-weight: 700;
    font-size: 35px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dfdfdf;
    margin: 50px 0 4px 0;
}
.kontakt-dzial ul {
    margin-bottom: 0;
}

/* Podtytuł typu "Oddziały zabiegowe" / "Oddziały niezabiegowe" — wyróżniony inaczej niż h2 główne */
.kontakt-dzial h2.kontakt-podtytul {
    color: #e50000;
    margin-top: 60px;
}

.kontakt-dzial h3 {
    color: #216aa4;
    font-weight: 700;
    font-size: 30px;
    padding-bottom: 7px;
    border-bottom: 1px solid #dfdfdf;
    margin: 35px 0 2px 0;
}

/* --- Informacje pomocnicze pod nagłówkiem (prefiksy numerów) --- */
.kontakt-info {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #4a5560;
}

.kontakt-info strong {
    color: #e50000;
}

/* --- Adresy e-mail --- */
.kontakt-email {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.kontakt-email a {
    color: #216aa4;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.kontakt-email a:hover {
    color: #e50000;
}

/* --- Odstępy między tabelami w obrębie tego samego działu --- */
.kontakt-dzial table {
    margin-bottom: 4px;
}

/* --- Urządzenia mobilne --- */
@media (max-width: 767px) {
    
    #masthead.is-sticky-scrolled .ast-primary-header-bar {
        height: 75px;
    }
    
    .site-header-section-left #block-9 a {
        display: none;
    }

    .kontakt-ksiazeczka-telefoniczna {
        gap: 36px;
    }

    .kontakt-dzial {
        gap: 20px;
    }

    .kontakt-intro {
        padding: 16px 18px;
    }
    
    .eael-grid-post .eael-entry-wrapper {
        padding: 15px 5px 5px;
    }
    
        .ast-header-search .astra-search-icon {
        font-size: 29px;
    }
    
    .site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row {
        max-width: 90%;
        padding: 20px 15px 10px;
    }
    
}

ul#menu-dodatkowe-informacje li a {
    font-weight: 400;
}

