/* css/pages/rehabilitacja-erekcji.css - REHABILITACJA EREKCJI */
/* ===================== HERO SECTION WITH BACKGROUND IMAGE ===================== */
.specialization-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    width: 100%;
    margin-top: -70px;
    padding-top: 70px;
}

.specialization-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../zdj/edited/druk/GC034.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: brightness(0.8) saturate(0.8) contrast(0.95);
}

.specialization-hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 47, 97, 0.7) 0%, rgba(10, 51, 94, 0.8) 50%, rgba(8, 47, 97, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.specialization-hero .container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

.specialization-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.1em;
}

/* Jasny równoległobok dla smaczku */
.specialization-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 100%);
    transform: skewX(-15deg);
    z-index: 2;
}

/* Responsywność */
@media (max-width: 768px) {
    .specialization-hero {
        height: auto;
        min-height: unset;
        padding: 140px 0 40px;
    }

    .specialization-hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

.specialization-hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================== ERECTION REHABILITATION HEADER WCAG AAA ===================== */
.erection-rehab-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    position: relative;
}

.erection-rehab-header h1 {
    font-size: 2.8rem;
    margin-bottom: 25px; /* Zwiększony z 20px */
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 18px; /* Zwiększony z 15px */
    line-height: 1.3; /* Dodany line-height */
    font-weight: 800; /* Zwiększony kontrast */
}

.erection-rehab-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px; /* Zwiększony z 100px */
    height: 4px; /* Zwiększony z 3px */
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ===================== PROSTY MINIMALISTYCZNY LAYOUT ===================== */

/* Główny kontener */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Styling dla głównego tytułu strony */
.content h1 {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    position: relative;
    font-size: 2.8rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Proste sekcje */
.content-section {
    background: var(--white);
    border-radius: 15px;
    margin: 40px 0;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(8,47,97,0.1);
}

/* Nagłówki sekcji */
.content h2 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Nagłówki podsekcji */
.content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

/* Treść */
.content p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: justify;
}

.content strong {
    color: var(--primary);
    font-weight: 600;
}

.pump-tiles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pump-types-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.pump-types-content {
    flex: 1;
}

.pump-types-media {
    flex: 0 0 240px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    height: auto;
    align-self: flex-start;
}

.pump-types-media img {
    width: 100%;
    height: auto;
    margin-left: 0;
    object-fit: contain;
    max-width: 100%;
    display: block;
}

.eswt-block {
    position: relative;
    padding-bottom: 72px;
}

.eswt-block .btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    margin-top: 0;
}
/* Listy */
.content ul,
.asymmetric-content ul,
.accordion-body ul,
.pump-tile ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.content li,
.asymmetric-content li,
.accordion-body li,
.pump-tile li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    list-style: none;
}

.content li::before,
.asymmetric-content li::before,
.accordion-body li::before,
.pump-tile li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Prosty przycisk */
.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8,47,97,0.3);
}

/* ===================== RESPONSIVE DESIGN ===================== */

@media (max-width: 768px) {
    .content {
        padding: 0 15px;
    }

    .content-section {
        margin: 30px 0;
        padding: 30px 20px;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content h3 {
        font-size: 1.2rem;
    }

    .pump-types-layout {
        flex-direction: column;
    }

    .pump-types-media {
        flex: none;
        width: 100%;
        height: auto;
    }

    .pump-types-media img {
        height: auto;
        width: 100%;
        margin-left: 0;
    }

    .pump-inline-image {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 16px 0;
    }

    .eswt-block {
        padding-bottom: 0;
    }

    .eswt-block .btn {
        position: static;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .specialization-hero h1 {
        font-size: 2.5rem;
    }

    .specialization-hero p {
        font-size: 1.1rem;
    }

    .erection-rehab-header h1 {
        font-size: 2.2rem;
    }

    .content h1 {
        font-size: 2.2rem;
    }

    .content h2 {
        font-size: 1.4rem;
    }

    .content h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* System kart jak w chorobie Peyroniego */
.cards {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Wspólne style dla kart */
.card {
    border-radius: 1em;
    box-shadow: 0 0.25em 0.375em hsla(0, 0%, 0%, 0.1);
    width: 100%;
    transition: var(--transition);
    overflow: hidden;
}

/* Karta z gradientem (tło) */
.card-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Karta glass (z treścią) - na wierzchu z gradientową ramką */
.card--glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    border: none; /* Usuwamy zwykłą ramkę */
}

/* Gradientowa ramka - wzorowana na przykładzie */
.card--glass::before,
.card--glass::after {
    border-radius: inherit;
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.card--glass::before {
    border: 1px solid var(--white);
    mask-image: linear-gradient(135deg, var(--white), var(--white0) 50%);
}

.card--glass::after {
    border: 1px solid var(--primary);
    mask-image: linear-gradient(135deg, var(--white0) 50%, var(--white));
}

/* Styl dla tekstu w karcie glass */
.card--glass .card__content {
    padding: 2.5em;
    color: var(--dark);
    width: 100%;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    border-radius: inherit;
}

.card--glass .card__title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.card--glass ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.card--glass li,
.card--glass p {
    color: var(--dark);
}

.card--glass li {
    margin-bottom: 0.5rem;
}

.card--glass h2 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

/* Klasy pomocnicze dla offsetów gradientu - zmniejszony offset */
.offset-left .card-gradient {
    transform: translate(1.2em, 1.2em);
}

.offset-right .card-gradient {
    transform: translate(-1.2em, 1.2em);
}

/* ===================== ASYMETRYCZNE SEKCJE - JAK W CHOROBIE PEYRONIEGO ===================== */
.asymmetric-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 30px;
    position: relative;
}

.asymmetric-section:nth-child(even) {
    flex-direction: row-reverse;
}

/* Obrazy po bokach */
.asymmetric-image {
    flex: 0 0 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
}

.asymmetric-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nakładka gradientowa na obrazach */
.asymmetric-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    z-index: 1;
}

/* Treść asymetryczna */
.asymmetric-content {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.95) 100%);
    border-radius: 15px;
    border: 1px solid rgba(8,47,97,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.asymmetric-content::after {
    content: '';
    display: table;
    clear: both;
}

.asymmetric-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Efekty hover dla asymetrycznych sekcji */
.asymmetric-section:hover .asymmetric-content {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.asymmetric-section:hover .asymmetric-image {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.asymmetric-content .card__title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.asymmetric-content .card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.asymmetric-content p {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.asymmetric-content h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.asymmetric-content > h3:first-child {
    margin-top: 0;
}

.asymmetric-content > h1.card__title:first-child {
    margin-top: 0;
}

.asymmetric-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.asymmetric-content h4 {
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.asymmetric-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.asymmetric-content .btn {
    margin-top: 12px;
}

.asymmetric-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive asymmetric sections */
@media (max-width: 768px) {
    .asymmetric-section {
        flex-direction: column !important;
        gap: 30px;
        margin: 50px auto;
        padding: 0 20px;
    }

    .asymmetric-image {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 250px;
    }

    .asymmetric-content {
        padding: 25px 20px;
        min-height: auto;
    }

    .asymmetric-content .card__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .asymmetric-section {
        gap: 20px;
        margin: 35px auto;
        padding: 0 15px;
    }

    .asymmetric-image {
        height: 200px;
    }

    .asymmetric-content {
        padding: 20px 15px;
    }

    .asymmetric-content .card__title {
        font-size: 1.3rem;
    }
}

.pump-inline-image {
    float: right;
    width: 260px;
    height: 220px;
    object-fit: cover;
    margin: 0 0 20px 24px;
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* ===================== ACCORDION DLA PYTAŃ (JAK W BADANIU NASIENIA) ===================== */
.accordion-container {
    margin: 10px auto 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.accordion-container h2 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.accordion-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.accordion-item {
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid rgba(8,47,97,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: rgba(8,47,97,0.2);
}

.accordion-header {
    background: linear-gradient(135deg, rgba(8,47,97,0.05) 0%, rgba(10,51,94,0.08) 100%);
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(8,47,97,0.08) 0%, rgba(10,51,94,0.12) 100%);
}

.accordion-header h2 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.accordion-header h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-header:hover h2::after {
    opacity: 1;
}

.accordion-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.accordion-icon::before {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon::before {
    content: '\f077';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 30px;
    position: relative;
}

.accordion-body p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.accordion-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===================== HIGHLIGHT BOX STYLES ===================== */
.content-section {
    padding: 40px 30px;
    margin: 40px 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--white) 0%, rgba(0,163,224,0.02) 100%);
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.highlight-box h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.highlight-box p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark);
}

/* Ikona wyróżnionego boxa */
.highlight-icon {
    text-align: center;
    margin-bottom: 20px;
}

/* Przycisk CTA */
.cta-button {
    text-align: center;
    margin-top: 20px;
}

.cta-button .btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
}

.cta-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8,47,97,0.3);
}

/* Responsywność dla highlight-box */
@media (max-width: 768px) {
    .content-section {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .highlight-box {
        padding: 30px 20px;
    }

    .highlight-box h3 {
        font-size: 1.2rem;
    }

    .highlight-box p {
        font-size: 1rem;
    }
}

/* ================================================================== */
/* ============== COMPACT LAYOUT — fit more content =============== */
/* ================================================================== */

.page-template-template-rehabilitacja-erekcji .asymmetric-section {
    gap: 40px;
    margin: 32px auto;
    max-width: 1320px;
    padding: 0 48px;
    align-items: stretch;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-image {
    flex: 0 0 320px;
    height: auto;
    min-height: 240px;
    align-self: stretch;
    border-radius: 14px;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content {
    padding: 24px 30px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(8, 47, 97, 0.1);
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content .card__title,
.page-template-template-rehabilitacja-erekcji .asymmetric-content h1.card__title,
.page-template-template-rehabilitacja-erekcji .asymmetric-content h2 {
    font-size: 1.35rem !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    line-height: 1.3;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content h3 {
    font-size: 1.05rem;
    margin: 14px 0 6px 0;
    line-height: 1.35;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content h4 {
    font-size: 0.98rem;
    margin: 10px 0 4px 0;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 8px;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content ul,
.page-template-template-rehabilitacja-erekcji .asymmetric-content ol {
    margin: 8px 0 12px 0;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content li {
    font-size: 0.93rem;
    line-height: 1.5;
    margin-bottom: 4px;
    padding-left: 18px;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-content li::before {
    top: 7px;
    width: 5px;
    height: 5px;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-intro {
    margin: 20px auto 28px auto;
    padding: 0 48px;
    max-width: 1320px;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-intro .asymmetric-content {
    padding: 24px 32px;
}

/* Card system compact */
.page-template-template-rehabilitacja-erekcji .card--glass .card__content {
    padding: 24px 30px;
}

.page-template-template-rehabilitacja-erekcji .card--glass .card__title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.page-template-template-rehabilitacja-erekcji .card--glass h2 {
    font-size: 1.15rem;
    margin-top: 14px;
}

.page-template-template-rehabilitacja-erekcji .card--glass li,
.page-template-template-rehabilitacja-erekcji .card--glass p {
    font-size: 0.95rem;
    line-height: 1.55;
}

.page-template-template-rehabilitacja-erekcji .card--glass li {
    margin-bottom: 4px;
}

/* Description blocks (chirurgia) */
.page-template-template-rehabilitacja-erekcji .description-block {
    padding: 22px 28px !important;
    margin-bottom: 20px !important;
}

.page-template-template-rehabilitacja-erekcji .description-block h2 {
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
}

.page-template-template-rehabilitacja-erekcji .description-block p,
.page-template-template-rehabilitacja-erekcji .description-block li {
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Container side margins */
.page-template-template-rehabilitacja-erekcji .content,
.page-template-template-rehabilitacja-erekcji .specialization-description {
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 1024px) {
    .page-template-template-rehabilitacja-erekcji .asymmetric-section {
        padding: 0 32px;
        gap: 32px;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-image {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    .page-template-template-rehabilitacja-erekcji .asymmetric-section {
        flex-direction: column !important;
        padding: 0 16px;
        gap: 20px;
        margin: 24px auto;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-image {
        flex: none;
        width: 100%;
        min-height: 200px;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-content {
        padding: 20px 22px;
    }
}

/* ================================================================== */
/* ====== FLOAT LAYOUT — image flows inside text block ============== */
/* ================================================================== */
.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout {
    display: block !important;
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 48px;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-image {
    flex: none !important;
    width: 340px;
    height: 280px;
    min-height: unset !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(8, 47, 97, 0.18);
    margin-bottom: 12px;
    align-self: auto !important;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout.float-left .asymmetric-image {
    float: left;
    margin: 6px 28px 14px 0;
    shape-outside: inset(0 round 14px);
}

.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout.float-right .asymmetric-image {
    float: right;
    margin: 6px 0 14px 28px;
    shape-outside: inset(0 round 14px);
}

.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-content {
    flex: none !important;
    display: block !important;
    padding: 28px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.98) 100%);
    border: 1px solid rgba(8, 47, 97, 0.08);
    box-shadow: 0 6px 22px rgba(8, 47, 97, 0.1);
    overflow: hidden;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-content::after {
    content: '';
    display: block;
    clear: both;
}

.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-content .card__title,
.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-content h1.card__title,
.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-content h2,
.page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-content h3 {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout {
        padding: 0 16px;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-image {
        float: none !important;
        width: 100%;
        height: 220px;
        margin: 0 0 14px 0 !important;
    }
}

/* === MOBILE: stack everything cleanly + lists single column === */
@media (max-width: 768px) {
    .page-template-template-rehabilitacja-erekcji {
        overflow-x: hidden !important;
    }
    .page-template-template-rehabilitacja-erekcji .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100% !important;
    }
    /* Float layouts: drop float, stack image then text */
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout,
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout.float-left,
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout.float-right {
        display: block !important;
        padding: 16px 8px !important;
        margin: 16px 0 !important;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-image,
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout.float-left .asymmetric-image,
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout.float-right .asymmetric-image {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 14px 0 !important;
        shape-outside: none !important;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 240px !important;
        object-fit: cover !important;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-section.float-layout .asymmetric-content {
        width: 100% !important;
        padding: 0 4px !important;
    }
    /* All asymmetric content blocks */
    .page-template-template-rehabilitacja-erekcji .asymmetric-content {
        padding: 16px 8px !important;
        max-width: 100% !important;
    }
    /* Lists: force single column, neat alignment */
    .page-template-template-rehabilitacja-erekcji .asymmetric-content ul,
    .page-template-template-rehabilitacja-erekcji .asymmetric-content ol,
    .page-template-template-rehabilitacja-erekcji .content-block ul,
    .page-template-template-rehabilitacja-erekcji .content-block ol,
    .page-template-template-rehabilitacja-erekcji .accordion-body ul,
    .page-template-template-rehabilitacja-erekcji .accordion-body ol {
        columns: 1 !important;
        column-count: 1 !important;
        column-gap: 0 !important;
        display: block !important;
        padding-left: 0 !important;
        margin: 8px 0 14px 0 !important;
        list-style: none !important;
        text-align: left !important;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-content li,
    .page-template-template-rehabilitacja-erekcji .content-block li,
    .page-template-template-rehabilitacja-erekcji .accordion-body li {
        display: block !important;
        width: 100% !important;
        padding-left: 20px !important;
        margin-bottom: 8px !important;
        line-height: 1.55 !important;
        text-align: left !important;
        position: relative;
        list-style: none !important;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-content li::before,
    .page-template-template-rehabilitacja-erekcji .content-block li::before,
    .page-template-template-rehabilitacja-erekcji .accordion-body li::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 9px;
        width: 7px;
        height: 7px;
        background: var(--secondary, #1e6fb8);
        border-radius: 50%;
    }
    .page-template-template-rehabilitacja-erekcji .content-block {
        padding: 14px 8px !important;
        margin: 16px 0 !important;
    }
    .page-template-template-rehabilitacja-erekcji .content-block img {
        float: none !important;
        display: block !important;
        margin: 12px auto !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .page-template-template-rehabilitacja-erekcji .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .page-template-template-rehabilitacja-erekcji .asymmetric-content,
    .page-template-template-rehabilitacja-erekcji .content-block {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}
