/* css/pages/badanie-snu.css - BADANIE SNU */

/* ===================== 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/1.png');
    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;
}

/* Granatowe tło po prawej stronie */
.specialization-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 66.667%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(8, 47, 97, 0.95) 0%,
        rgba(10, 51, 94, 0.98) 50%,
        rgba(8, 47, 97, 0.95) 100%
    );
    z-index: 0;
}

/* 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;
}

/* ===================== SLEEP STUDY HEADER WCAG AAA ===================== */
.sleep-study-header {
    text-align: center;
    margin-bottom: 5px; /* Zmniejszony z 60px */
    padding: 0 20px;
    position: relative;
}

.sleep-study-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 */
}

.sleep-study-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;
}

/* ===================== ACCORDION / TABS LAYOUT Z EFEKTAMI ===================== */

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

/* Accordion container */
.accordion-container {
    margin: 10px 0 30px 0; /* Przesunięte 20px wyżej */
}

/* Accordion item */
.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 */
.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: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; /* Przesunięte niżej z -8px */
    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 */
.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 */
.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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(to right, rgba(8,47,97,0.2), rgba(10,51,94,0.2));
}

/* Paragrafy w accordion */
.accordion-body p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.05rem;
    text-align: justify;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body strong {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.accordion-body strong::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0.4;
}

/* Listy w accordion */
.accordion-body ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.accordion-body li {
    margin-bottom: 12px;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
    color: var(--dark);
}

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

/* Sekcja cenowa - wyróżniona */
.price-section {
    background: linear-gradient(135deg, rgba(8,47,97,0.07) 0%, rgba(10,51,94,0.1) 100%);
    border-radius: 20px;
    margin: 60px 0; /* Przesunięte 20px wyżej */
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(8,47,97,0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(10,51,94,0.1) 0%, transparent 60%);
    z-index: 1;
}

.price-section h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.9rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-section p {
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.price-section strong {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.15rem;
}

/* Efekty animacji dla accordion */
.accordion-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.accordion-item:nth-child(1) { animation-delay: 0.1s; }
.accordion-item:nth-child(2) { animation-delay: 0.2s; }
.accordion-item:nth-child(3) { animation-delay: 0.3s; }
.accordion-item:nth-child(4) { animation-delay: 0.4s; }
.accordion-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JavaScript dla accordion - inline dla prostoty */
.accordion-header {
    user-select: none;
}

/* Responsywność */
@media (max-width: 768px) {
    .accordion-header {
        padding: 20px;
    }

    .accordion-header h2 {
        font-size: 1.3rem;
    }

    .accordion-body {
        padding: 20px;
    }

    .accordion-icon {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    .price-section {
        padding: 30px;
        margin: 50px 0;
    }

    .price-section h2 {
        font-size: 1.6rem;
    }
}

/* ===================== ASYMMETRIC SECTIONS FOR SLEEP STUDY ===================== */

/* Główny kontener */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* Zwiększony padding dla bezpieczeństwa */
}

/* Asymetryczne bloki treści - prosty layout jak w badaniu nasienia */
.asymmetric-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 80px 0;
    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::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);
}

/* Tytuły w sekcjach */
.card__title {
    font-family: 'Michroma', sans-serif;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
    line-height: 1.3;
    padding-bottom: 15px;
}

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

/* Paragrafy w sekcjach */
.asymmetric-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.05rem;
    text-align: justify;
}

.asymmetric-content p:last-child {
    margin-bottom: 0;
}

/* Listy w sekcjach */
.asymmetric-content ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.asymmetric-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
    color: var(--dark);
}

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

/* Blok wprowadzający */
.asymmetric-intro {
    margin: 60px 0;
    text-align: center;
}

.asymmetric-intro .asymmetric-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.98) 100%);
    border-radius: 20px;
    border: 1px solid rgba(8,47,97,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

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

.asymmetric-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark);
    margin: 0;
    text-align: justify;
}

/* Responsywność dla asymetrycznych sekcji */
@media (max-width: 1024px) {
    .asymmetric-section {
        gap: 40px;
        margin: 60px 0;
    }

    .asymmetric-image {
        flex: 0 0 350px;
        height: 250px;
    }

    .asymmetric-content {
        padding: 30px;
    }

    .card__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .asymmetric-section {
        flex-direction: column !important;
        gap: 30px;
        margin: 50px 0;
    }

    .asymmetric-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .asymmetric-content {
        padding: 25px;
    }

    .card__title {
        font-size: 1.6rem;
        text-align: center;
    }

    .card__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .asymmetric-intro .asymmetric-content {
        padding: 30px 20px;
    }

    .asymmetric-intro p {
        font-size: 1.1rem;
    }
}