/* ===================== VARIABLES WCAG AAA ===================== */
:root {
    --primary: #082f61;
    --primary-dark: #0a2a5a;
    --primary-light: #1a5bc2; /* Ciemniejszy dla lepszego kontrastu */
    --secondary: #0089c2; /* Ciemniejszy z 00a3e0 */
    --accent: #1b82ff63;
    --light: #f8f9fa;
    --dark: #0a355e;
    --gray: #555555; /* Ciemniejszy z 6c757d */
    --light-gray: #d1d8e0; /* Ciemniejszy z e9ecef */
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.12); /* Zwiększony kontrast cienia */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --focus-outline: 3px solid #0056b3; /* Wyraźny outline dla focus */
    --focus-outline-offset: 3px;
}

/* ===================== UROREHABILITACJA HEADER WCAG AAA ===================== */
.specialization-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../zdj/urorehabilitacja.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.8) saturate(0.8) contrast(0.95);
}

/* Skip link dla sekcji */
.uro-skip-link {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: top 0.3s;
    z-index: 10;
}

.uro-skip-link:focus {
    top: 10px;
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* ===================== CONTENT GRID WCAG AAA ===================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.content-text h2 {
    font-size: 2rem;
    margin-bottom: 25px; /* Zwiększony z 20px */
    color: var(--primary);
    line-height: 1.4; /* Dodany line-height */
    font-weight: 700; /* Pogrubienie */
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8; /* Zwiększony z 1.7 */
    color: #444444; /* Ciemniejszy z var(--gray) */
    margin-bottom: 30px;
    font-weight: 400;
}

.card-button {
    display: inline-block;
    padding: 14px 32px; /* Zwiększony z 12px 30px */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: 3px solid transparent; /* Zwiększony border */
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Zwiększony z 600 */
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow);
    min-height: 48px; /* Minimalny rozmiar dotykowy */
    min-width: 120px; /* Minimalna szerokość */
    text-align: center;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.card-button:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.card-button:hover,
.card-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Ciemniejszy cień */
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    border-color: var(--white);
}

.content-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Ciemniejszy cień */
    height: 400px;
    border: 2px solid rgba(8, 47, 97, 0.1); /* Dodane dla lepszego kontrastu */
}

.content-image:focus-within {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: #f0f0f0; /* Fallback color */
}

.content-image:hover img,
.content-image:focus-within img {
    transform: scale(1.05);
}

/* ===================== SERVICES GRID WCAG AAA ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--light-gray); /* Zwiększony z 1px */
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:focus-within {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-color: var(--secondary);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Ciemniejszy cień */
    border-color: rgba(8, 47, 97, 0.3);
}

.service-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(8, 47, 97, 0.1), rgba(0, 163, 224, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
    border: 2px solid transparent; /* Dodane dla lepszego kontrastu */
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-icon-wrap,
.service-card:focus-within .service-icon-wrap {
    background: linear-gradient(135deg, rgba(8, 47, 97, 0.2), rgba(0, 163, 224, 0.2));
    transform: scale(1.1);
    border-color: rgba(8, 47, 97, 0.3);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon i,
.service-card:focus-within .service-icon i {
    color: var(--secondary);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 18px; /* Zwiększony z 15px */
    color: var(--primary);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4; /* Dodany line-height */
    font-weight: 700; /* Pogrubienie */
}

.service-card p {
    color: #444444; /* Ciemniejszy z var(--gray) */
    line-height: 1.7; /* Zwiększony z 1.6 */
    flex-grow: 1;
    font-weight: 400;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.service-card li {
    color: #444444;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.service-card li:last-child {
    margin-bottom: 0;
}

/* ===================== ADDITIONAL INFO WCAG AAA ===================== */
.additional-info {
    background: linear-gradient(135deg, rgba(8, 47, 97, 0.05) 0%, rgba(0, 163, 224, 0.05) 100%); /* Zwiększony opacity */
    padding: 60px 0;
    margin-top: 40px;
    border-radius: 15px;
    border-top: 3px solid transparent; /* Dla focus state */
}

.additional-info:focus-within {
    border-top-color: var(--secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--light-gray); /* Zwiększony z 1px */
    position: relative;
}

.info-card:focus-within {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-color: var(--secondary);
}

.info-card:hover,
.info-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Ciemniejszy cień */
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px; /* Zwiększony z 20px */
    color: var(--primary);
    position: relative;
    padding-bottom: 18px; /* Zwiększony z 15px */
    line-height: 1.4; /* Dodany line-height */
    font-weight: 700; /* Pogrubienie */
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px; /* Zwiększony z 60px */
    height: 4px; /* Zwiększony z 3px */
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.info-card p {
    color: #444444; /* Ciemniejszy z var(--gray) */
    line-height: 1.8; /* Zwiększony z 1.7 */
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Ukryte elementy dla czytników */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================== RESPONSIVE DESIGN WCAG AAA ===================== */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-image {
        order: -1;
        height: 350px;
    }
    
    .urorehabilitacja-header h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .urorehabilitacja-header p,
    .content-text p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    .urorehabilitacja-header {
        margin-bottom: 40px;
    }
    
    .urorehabilitacja-header h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .urorehabilitacja-header p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-card, .service-card {
        padding: 25px;
    }
    
    .content-image {
        height: 300px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        min-height: 50px;
        line-height: 1.4;
    }
    
    /* Zwiększenie rozmiaru tekstu na mobile */
    body {
        font-size: 17px; /* Zwiększony z 16px */
    }
}

@media (max-width: 576px) {
    .urorehabilitacja-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .urorehabilitacja-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .content-text h2 {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .card-button {
        padding: 12px 28px; /* Zwiększony z 10px 25px */
        font-size: 0.95rem; /* Zwiększony z 0.9rem */
        min-height: 44px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        min-height: 50px;
        line-height: 1.4;
    }
    
    .info-card h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .info-card p,
    .service-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .urorehabilitacja-header {
        padding: 0 15px;
    }
    
    .urorehabilitacja-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .content-grid {
        gap: 30px;
    }
    
    .content-image {
        height: 250px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .card-button {
        width: 100%;
        max-width: none;
        padding: 12px 20px;
    }
    
    .service-icon-wrap {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.6rem;
    }
}

/* WCAG: Obsługa preferencji użytkownika */
@media (prefers-reduced-motion: reduce) {
    .content-image img,
    .service-card,
    .info-card,
    .card-button {
        transition: none !important;
    }
    
    .content-image:hover img,
    .content-image:focus-within img,
    .service-card:hover,
    .service-card:focus-within,
    .info-card:hover,
    .info-card:focus-within,
    .card-button:hover,
    .card-button:focus-visible {
        transform: none !important;
    }
    
    .service-card:hover .service-icon-wrap,
    .service-card:focus-within .service-icon-wrap {
        transform: none !important;
    }
}

@media (prefers-contrast: high) {
    .urorehabilitacja-header h1,
    .content-text h2,
    .service-card h3,
    .info-card h3 {
        color: #000000 !important;
        font-weight: 800 !important;
    }
    
    .urorehabilitacja-header h1::after,
    .info-card h3::after {
        background: #000000 !important;
        height: 4px !important;
    }
    
    .service-card,
    .info-card,
    .content-image {
        border: 3px solid #000000 !important;
        background: #ffffff !important;
    }
    
    .service-icon-wrap {
        border: 3px solid #000000 !important;
        background: #000000 !important;
    }
    
    .service-icon i {
        color: #ffffff !important;
    }
    
    .card-button {
        border: 3px solid #000000 !important;
        background: #000000 !important;
        color: #ffffff !important;
    }
    
    .card-button:hover,
    .card-button:focus-visible {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #000000 !important;
    }
    
    .urorehabilitacja-header p,
    .content-text p,
    .service-card p,
    .info-card p {
        color: #000000 !important;
        font-weight: 500 !important;
    }
}

/* Poprawki dla focus states */
:focus-visible {
    outline: var(--focus-outline) !important;
    outline-offset: var(--focus-outline-offset) !important;
    position: relative;
    z-index: 1;
}

/* Poprawki dla tekstu na gradientach */
.urorehabilitacja-header h1 {
    text-shadow: 0 1px 2px rgba(255,255,255,0.3); /* Poprawa czytelności */
}

/* Poprawki dla osób zwiększających tekst */
@media (min-width: 768px) {
    .service-card h3 {
        font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    }
    
    .service-card p,
    .info-card p {
        font-size: clamp(1rem, 1.1vw, 1.1rem);
    }
}

/* Dostępne formularze (jeśli będą w sekcji) */
.uro-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--light-gray);
}

.uro-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.uro-form input,
.uro-form textarea,
.uro-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    min-height: 48px;
    line-height: 1.5;
}

.uro-form input:focus,
.uro-form textarea:focus,
.uro-form select:focus {
    border-color: var(--primary);
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.uro-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===================== SPECIALIZATION HERO WITH SPLIT LAYOUT ===================== */
.specialization-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
}

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

.specialization-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(8, 47, 97, 0.1) 0%,
        rgba(8, 47, 97, 0.4) 40%,
        rgba(8, 47, 97, 0.8) 70%,
        rgba(8, 47, 97, 0.95) 100%
    );
}

.specialization-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 40px;
    text-align: center; /* Tytuł na środku */
}

.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;
    position: relative;
    z-index: 3;
}

/* Gradient divider */
.specialization-hero + hr.gradient-divider {
    margin: 0;
    border: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
}

.specialization-hero + hr.gradient-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.8;
}

/* Content block below hero */
.content-block {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    position: relative;
    overflow: hidden;
}

.content-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8,47,97,0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

/* Container for WordPress content */
.urorehabilitacja-content-container,
.fizjoterapia-content-container {
    padding: 40px 0;
}

/* ===================== THERAPY SECTIONS WCAG AAA ===================== */
.therapy-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.therapy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8,47,97,0.02) 0%, rgba(0,137,194,0.02) 100%);
    z-index: 0;
}

.therapy-section.alternate {
    background: linear-gradient(135deg, var(--light) 0%, rgba(248,249,250,0.8) 100%);
}

.therapy-section.alternate::before {
    background: linear-gradient(135deg, rgba(0,137,194,0.03) 0%, rgba(8,47,97,0.03) 100%);
}

/* Full width title */
.therapy-title-full {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.therapy-title-full h2 {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin: 0;
}

.therapy-title-full h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* Full width content grid */
.therapy-content-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    align-items: start;
}

.therapy-block {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.therapy-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px 0 0 2px;
}

.therapy-section.alternate .therapy-block {
    background: rgba(248,249,250,0.95);
}

.therapy-block h3 {
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    color: var(--primary-dark);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.therapy-block h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.9em;
    top: 2px;
}

.therapy-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 400;
}

.therapy-block ul {
    margin: 20px 0;
    padding-left: 20px;
    background: rgba(255,255,255,0.5);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.therapy-block li {
    font-size: 1rem;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.therapy-block li::marker {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1em;
}

.therapy-block li:last-child {
    margin-bottom: 0;
}

.therapy-image-block {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    height: 300px;
    position: relative;
    transition: all 0.4s ease;
}

.therapy-image-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8,47,97,0.08) 0%, rgba(0,137,194,0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.therapy-image-block:hover::before {
    opacity: 1;
}

.therapy-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1.02) contrast(1.02);
}

.therapy-image-block:hover img {
    transform: scale(1.05);
    filter: brightness(1.08) contrast(1.08) saturate(1.05);
}

.therapy-image-block:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Enhanced hover effects for therapy sections */
.therapy-section:nth-child(even) .therapy-text {
    animation: slideInLeft 0.8s ease-out;
}

.therapy-section:nth-child(odd) .therapy-text {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.service-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(248,249,250,0.8) 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:focus-within {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-color: var(--secondary);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(8, 47, 97, 0.2);
}

.service-icon-wrap {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(8, 47, 97, 0.1), rgba(0, 163, 224, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    z-index: 1;
}

.service-icon-wrap::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon-wrap::before {
    opacity: 1;
}

.service-card:hover .service-icon-wrap,
.service-card:focus-within .service-icon-wrap {
    background: linear-gradient(135deg, rgba(8, 47, 97, 0.15), rgba(0, 163, 224, 0.15));
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(255,255,255,0.5);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon i,
.service-card:focus-within .service-icon i {
    color: var(--secondary);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    font-weight: 700;
    position: relative;
}

.service-card p {
    color: #444444;
    line-height: 1.7;
    flex-grow: 1;
    font-weight: 400;
    font-size: 1.05rem;
}

/* Enhanced info cards */
.additional-info {
    background: linear-gradient(135deg, rgba(8, 47, 97, 0.08) 0%, rgba(0, 163, 224, 0.08) 100%);
    padding: 80px 0;
    margin-top: 60px;
    border-radius: 25px;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.additional-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8,47,97,0.03) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.additional-info:focus-within {
    border-top-color: var(--secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.info-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:focus-within {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-color: var(--secondary);
}

.info-card:hover,
.info-card:focus-within {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(8, 47, 97, 0.15);
}

.info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    padding-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.info-card p {
    color: #444444;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Enhanced content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.content-text {
    padding: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.content-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px 0 0 2px;
}

.content-text h2 {
    font-size: 2.3rem;
    margin-bottom: 30px;
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.content-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 35px;
    font-weight: 400;
}

.content-image {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    height: 450px;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    transition: all 0.5s ease;
    animation: slideInRight 0.8s ease-out;
}

.content-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8,47,97,0.1) 0%, rgba(0,137,194,0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.content-image:hover::before {
    opacity: 1;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1.05) contrast(1.05);
}

.content-image:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

.content-image:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

/* Enhanced header */
.urorehabilitacja-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.urorehabilitacja-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.urorehabilitacja-header p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .therapy-content-full {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .therapy-title-full h2 {
        font-size: 2.2rem;
    }

    .therapy-block {
        padding: 25px;
    }

    .therapy-image-block {
        height: 250px;
    }

    .therapy-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .therapy-section.alternate .therapy-content {
        direction: ltr;
    }

    .therapy-text {
        padding: 30px;
    }

    .therapy-text h2 {
        font-size: 2rem;
    }

    .therapy-image {
        height: 350px;
    }

    .therapy-section {
        padding: 70px 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .content-text {
        order: 2;
        animation: slideInLeft 0.8s ease-out;
    }

    .content-image {
        order: 1;
        height: 350px;
        animation: slideInRight 0.8s ease-out;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .therapy-title-full h2 {
        font-size: 1.8rem;
        padding-bottom: 15px;
    }

    .therapy-title-full h2::after {
        width: 100px;
        height: 4px;
    }

    .therapy-content-full {
        gap: 25px;
    }

    .therapy-block {
        padding: 20px;
    }

    .therapy-block h3 {
        font-size: 1.2rem;
    }

    .therapy-image-block {
        height: 200px;
    }

    .therapy-text h2 {
        font-size: 1.8rem;
    }

    .therapy-details h3 {
        font-size: 1.3rem;
    }

    .therapy-section {
        padding: 50px 0;
    }

    .therapy-text {
        padding: 25px;
    }

    .therapy-image {
        height: 280px;
    }

    .content-text {
        padding: 25px;
    }

    .content-image {
        height: 280px;
    }

    .service-card {
        padding: 25px;
    }

    .info-card {
        padding: 25px;
    }

    .urorehabilitacja-header h1 {
        font-size: 2.5rem;
    }

    .urorehabilitacja-header p {
        font-size: 1.1rem;
    }
}

/* ===================== ACCORDION DLA TERAPII ===================== */
.accordion-container {
    margin: 10px 0 30px 0;
}

.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 h3 {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin: 0;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.accordion-header h3::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 h3::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;
    line-height: 1.6;
    color: #444444;
}

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

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

/* ===================== NAWIGACJA Z KARTAMI TERAPII ===================== */
.therapy-navigation {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(8,47,97,0.05) 0%, rgba(10,51,94,0.08) 100%);
    margin: 40px 0;
}

.navigation-header {
    text-align: center;
    margin-bottom: 50px;
}

.navigation-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.navigation-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================== WERTYKALNA KARUZELA TERAPII ===================== */
.main-container {
	display: flex;
	width: 100%;
	max-width: 1200px;
	height: 80vh;
	gap: 60px;
	align-items: center;
	justify-content: center;
	margin: 40px auto;
}

.carousel-section {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.controls-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 40px;
	padding-left: 40px;
}

.carousel-container {
	width: 100%;
	max-width: 500px;
	height: 70vh;
	position: relative;
	perspective: 1000px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.carousel-container .nav-arrow {
	display: none;
}

.carousel-track {
	width: 450px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card {
	position: absolute;
	width: 400px;
	height: 225px;
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: pointer;
}

.card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.center {
	z-index: 10;
	transform: scale(1.1) translateZ(0);
}

.card.center img {
	filter: none;
}

.card.up-2 {
	z-index: 1;
	transform: translateY(-300px) scale(0.8) translateZ(-300px);
	opacity: 0.7;
}

.card.up-2 img {
	filter: grayscale(100%);
}

.card.up-1 {
	z-index: 5;
	transform: translateY(-150px) scale(0.9) translateZ(-100px);
	opacity: 0.9;
}

.card.up-1 img {
	filter: grayscale(100%);
}

.card.down-1 {
	z-index: 5;
	transform: translateY(150px) scale(0.9) translateZ(-100px);
	opacity: 0.9;
}

.card.down-1 img {
	filter: grayscale(100%);
}

.card.down-2 {
	z-index: 1;
	transform: translateY(300px) scale(0.8) translateZ(-300px);
	opacity: 0.7;
}

.card.down-2 img {
	filter: grayscale(100%);
}

.card.hidden {
	opacity: 0;
	pointer-events: none;
}

.therapy-info {
	text-align: center;
	margin-top: 20px;
	transition: all 0.5s ease-out;
}

.therapy-name {
	color: var(--primary);
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 8px;
	position: relative;
	display: inline-block;
}

.therapy-name::before,
.therapy-name::after {
	content: "";
	position: absolute;
	top: 100%;
	width: 80px;
	height: 2px;
	background: var(--primary);
}

.therapy-name::before {
	left: -100px;
}

.therapy-name::after {
	right: -100px;
}

.therapy-description {
	color: #848696;
	font-size: 1.2rem;
	font-weight: 500;
	opacity: 0.8;
	text-transform: none;
	letter-spacing: normal;
	padding: 5px 0;
	margin-top: -10px;
	position: relative;
}

.dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(8, 42, 123, 0.2);
	cursor: pointer;
	transition: all 0.3s ease;
}

.dot.active {
	background: var(--primary);
	transform: scale(1.2);
}

.nav-arrow {
	position: relative;
	background: transparent;
	color: var(--primary);
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	transition: all 0.3s ease;
	font-size: 1.5rem;
	border: none;
	outline: none;
	margin: 0;
	padding: 0;
	overflow: visible;
	box-shadow: none;
}

.nav-arrow:hover {
	background: transparent;
	transform: scale(1.2);
	box-shadow: none;
	border-color: transparent;
}

.nav-arrow i {
	font-size: 2rem;
	transition: all 0.3s ease;
}

.nav-arrow:hover i {
	transform: scale(1.1);
}

.nav-arrow.up {
	transform: none;
}

.nav-arrow.down {
	transform: none;
}

.nav-controls {
	display: flex;
	flex-direction: row;
	gap: 30px;
	align-items: center;
	justify-content: center;
}

/* ===================== RESPONSIVE DLA KARUZELI ===================== */
@media (max-width: 1024px) {
	.main-container {
		flex-direction: column;
		height: auto;
		gap: 40px;
		margin: 20px auto;
	}

	.carousel-section {
		order: 2;
	}

	.controls-section {
		order: 1;
		padding-left: 0;
		gap: 30px;
	}

	.carousel-container {
		height: 60vh;
		max-width: 400px;
	}

	.carousel-track {
		width: 350px;
	}

	.card {
		width: 320px;
		height: 180px;
	}

	.card.up-2 {
		transform: translateY(-240px) scale(0.8) translateZ(-240px);
	}

	.card.up-1 {
		transform: translateY(-120px) scale(0.9) translateZ(-80px);
	}

	.card.down-1 {
		transform: translateY(120px) scale(0.9) translateZ(-80px);
	}

	.card.down-2 {
		transform: translateY(240px) scale(0.8) translateZ(-240px);
	}

	.therapy-name {
		font-size: 1.8rem;
	}

	.therapy-name::before,
	.therapy-name::after {
		width: 60px;
	}

	.therapy-name::before {
		left: -80px;
	}

	.therapy-name::after {
		right: -80px;
	}

	.therapy-description {
		font-size: 1.1rem;
	}

	.nav-arrow {
		width: 60px;
		height: 60px;
		font-size: 1.2rem;
	}

	.nav-arrow i {
		font-size: 1.5rem;
	}
}

@media (max-width: 768px) {
	.main-container {
		gap: 30px;
		margin: 15px auto;
	}

	.controls-section {
		gap: 20px;
	}

	.carousel-container {
		height: 50vh;
		max-width: 300px;
	}

	.carousel-container .nav-arrow {
		display: flex;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		width: 70px;
		height: 70px;
		margin: 0;
		background: transparent;
		border: none;
		box-shadow: none;
	}

	.carousel-container .nav-arrow:hover {
		transform: translateX(-50%) scale(1.2);
		background: transparent;
		box-shadow: none;
	}

	.carousel-container .nav-arrow.up {
		top: 20px;
		transform: translateX(-50%);
	}

	.carousel-container .nav-arrow.down {
		bottom: 20px;
		transform: translateX(-50%);
	}

	.carousel-container .nav-arrow i {
		font-size: 1.5rem;
	}

	.nav-controls {
		display: none;
	}

	.carousel-track {
		width: 280px;
	}

	.card {
		width: 260px;
		height: 146px;
	}

	.card.up-2 {
		transform: translateY(-180px) scale(0.8) translateZ(-180px);
	}

	.card.up-1 {
		transform: translateY(-90px) scale(0.9) translateZ(-60px);
	}

	.card.down-1 {
		transform: translateY(90px) scale(0.9) translateZ(-60px);
	}

	.card.down-2 {
		transform: translateY(180px) scale(0.8) translateZ(-180px);
	}

	.therapy-name {
		font-size: 1.5rem;
	}

	.therapy-name::before,
	.therapy-name::after {
		width: 40px;
	}

	.therapy-name::before {
		left: -60px;
	}

	.therapy-name::after {
		right: -60px;
	}

	.therapy-description {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.main-container {
		gap: 20px;
		margin: 10px auto;
		padding: 0 10px;
	}

	.controls-section {
		gap: 15px;
	}

	.carousel-container {
		height: 40vh;
		max-width: 250px;
	}

	.carousel-track {
		width: 230px;
	}

	.card {
		width: 210px;
		height: 118px;
	}

	.card.up-2 {
		transform: translateY(-140px) scale(0.8) translateZ(-140px);
	}

	.card.up-1 {
		transform: translateY(-70px) scale(0.9) translateZ(-50px);
	}

	.card.down-1 {
		transform: translateY(70px) scale(0.9) translateZ(-50px);
	}

	.card.down-2 {
		transform: translateY(140px) scale(0.8) translateZ(-140px);
	}

	.therapy-name {
		font-size: 1.3rem;
	}

	.therapy-name::before,
	.therapy-name::after {
		width: 30px;
	}

	.therapy-name::before {
		left: -45px;
	}

	.therapy-name::after {
		right: -45px;
	}

	.therapy-description {
		font-size: 0.9rem;
	}

	.dots {
		gap: 6px;
		margin-top: 10px;
	}

	.dot {
		width: 8px;
		height: 8px;
	}

	.nav-arrow {
		width: 40px;
		height: 40px;
		font-size: 0.9rem;
	}

	.nav-arrow i {
		font-size: 1rem;
	}
}


/* ============================================================ */
/* === MOBILE — therapy-nav carousel: horizontal pill        === */
/* Mirrors urorehabilitacja exactly. In image mode the         */
/* therapy-nav block renders arrows DIRECTLY inside .dots:     */
/*   <div class="dots">                                        */
/*     <button class="nav-arrow up">❮</button>                 */
/*     <div class="dot">..</div>                               */
/*     <button class="nav-arrow down">❯</button>               */
/*   </div>                                                    */
/* On mobile we strip the 3D absolute arrow positioning that   */
/* applies on desktop and lay everything out as one flex pill. */
/* ============================================================ */
@media (max-width: 992px) {
    body.page-template-template-fizjoterapia .therapy-navigation,
    body.page-template-template-fizjoterapia-oferta .therapy-navigation {
        overflow-x: hidden;
    }

    /* Desktop drew arrows absolutely on top/bottom of the
       3D carousel — neutralize that on mobile so they can
       sit inline with the dots in the pill below. */
    body.page-template-template-fizjoterapia .carousel-container .nav-arrow,
    body.page-template-template-fizjoterapia-oferta .carousel-container .nav-arrow {
        position: static !important;
        transform: none !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }

    /* The pill itself */
    body.page-template-template-fizjoterapia .dots,
    body.page-template-template-fizjoterapia-oferta .dots {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        margin: 20px auto !important;
        padding: 8px 16px !important;
        background: rgba(8, 47, 97, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50px !important;
        backdrop-filter: blur(5px) !important;
        width: fit-content !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
    }

    /* Arrows inside the pill */
    body.page-template-template-fizjoterapia .dots .nav-arrow,
    body.page-template-template-fizjoterapia-oferta .dots .nav-arrow {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: bold !important;
        line-height: 1 !important;
        cursor: pointer !important;
        backdrop-filter: blur(5px) !important;
        transition: all 0.28s ease !important;
        font-family: inherit !important;
    }
    body.page-template-template-fizjoterapia .dots .nav-arrow:hover,
    body.page-template-template-fizjoterapia-oferta .dots .nav-arrow:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(1.1) !important;
    }
    /* If the arrows render an <i class="fa-..."> icon, normalize it */
    body.page-template-template-fizjoterapia .dots .nav-arrow i,
    body.page-template-template-fizjoterapia-oferta .dots .nav-arrow i {
        font-size: 14px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Dots */
    body.page-template-template-fizjoterapia .dots .dot,
    body.page-template-template-fizjoterapia-oferta .dots .dot {
        flex: 0 0 10px !important;
        width: 10px !important;
        height: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        cursor: pointer !important;
        transition: all 0.28s ease !important;
    }
    body.page-template-template-fizjoterapia .dots .dot.active,
    body.page-template-template-fizjoterapia-oferta .dots .dot.active {
        background: #fff !important;
        transform: scale(1.4) !important;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
    }

    /* If a separate .nav-controls is present (icon mode), also style it
       as a horizontal row — but in image mode (fizjo case) it isn't rendered. */
    body.page-template-template-fizjoterapia .nav-controls,
    body.page-template-template-fizjoterapia-oferta .nav-controls {
        display: none !important;
    }
}

@media (max-width: 480px) {
    body.page-template-template-fizjoterapia .dots,
    body.page-template-template-fizjoterapia-oferta .dots {
        gap: 10px !important;
        padding: 6px 12px !important;
    }
    body.page-template-template-fizjoterapia .dots .nav-arrow,
    body.page-template-template-fizjoterapia-oferta .dots .nav-arrow {
        flex: 0 0 30px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
    body.page-template-template-fizjoterapia .dots .dot,
    body.page-template-template-fizjoterapia-oferta .dots .dot {
        flex: 0 0 8px !important;
        width: 8px !important;
        height: 8px !important;
    }
}
