/* Back Pain Treatment Page Styles */

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-modal.active {
    display: block;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-modal__close:hover {
    transform: scale(1.2);
}

.video-modal__player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.video-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-modal__content {
        width: 95%;
    }
    
    .video-modal__close {
        top: -35px;
        font-size: 30px;
    }
}

/* Remove gray background under phone and social media on mobile */
.contacts.hero__contacts:before {
    display: none !important;
}

/* Hero Section - remove background to show spine image */
.hero {
    background: transparent !important;
    min-height: 300px !important;
}

.hero__container {
    background: transparent !important;
}

/* Hero button align right on desktop */
.hero__box--horizontal {
    gap: 32px !important;
}

@media (min-width: 1280px) {
    .hero__box--horizontal .hero-nav__list {
        margin: 0;
        margin-left: auto;
        max-width: 350px;
    }
    
    .hero__box--horizontal .hero-nav__item {
        max-width: 100%;
    }
}

/* Booking Form Colors Override */
.booking-form__cta {
    color: #024772 !important;
}

.booking-form__label span {
    color: #024772 !important;
}

/* Section */
.section {
    padding: 40px 0;
}

.title--section {
    font-family: 'Spartan', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #024772;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

/* Play Button (used in treatment cards) */
.play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

/* Methods Section */
.methods__wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.methods__content {
    flex: 1;
    max-width: 587px;
}

.methods__text {
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #024772;
    margin-bottom: 24px;
}

.methods__image {
    width: 415px;
    height: 282px;
}

.methods__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Treatment Process Section */
.treatment-process__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1024px;
    margin: 0 auto;
    justify-content: center;
}

.treatment-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 23px 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 328px;
    flex-shrink: 0;
}

.treatment-card:nth-child(-n+3) {
    /* Перші три картки */
}

.treatment-card:nth-child(4) {
    /* Четверта картка по центру */
}

.treatment-card__video {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 29px;
}

.treatment-card__video a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.treatment-card__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-card__video .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.treatment-card__title {
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #024772;
    text-align: center;
}

/* Trial Session Section */


.price-card {
    max-width: 328px;
    margin: 0 auto;
    background: linear-gradient(135deg, #E5811D 0%, #E5811D 100%);
    border-radius: 10px;
    padding: 30px 18px;
    box-shadow: 0 0 25px -3px rgba(0, 0, 0, 0.25);
}

.price-card__inner {
    text-align: center;
}

.price-card__title {
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.price-card__price {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-card__amount {
    font-family: 'Spartan', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #E5811D;
    line-height: 1;
}

.price-card__currency {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #E5811D;
}

/* Conditions Section */
.conditions__header {
    max-width: 1024px;
    margin: 0 auto 20px;
}

.conditions__subtitle {
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #024772;
    text-align: center;
    margin-top: 24px;
}

.conditions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1024px;
    margin: 0 auto;
    justify-items: center;
}

.condition-card {
    width: 100%;
    max-width: 328px;
    background: linear-gradient(135deg, #0B88BE 0%, #0B88BE 100%);
    border-radius: 10px;
    padding: 30px 18px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px -3px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(11, 136, 190, 0.3);
}

.condition-card__title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
    text-align: center;
}

/* FAQ Section */
.faq__list {
    max-width: 1024px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 14px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 25px -3px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 50px;
    cursor: pointer;
    transition: background 0.3s ease;
    background: #0B88BE;
}

.faq__item--open:nth-child(odd) .faq__question {
    background: #E5811D;
}

.faq__item--open:nth-child(even) .faq__question {
    background: #E5811D;
}

.faq__question h3 {
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
}

.faq__item--open .faq__question h3 {
    color: #ffffff;
}

.faq__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    position: relative;
    margin-left: 20px;
}

.faq__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background: #ffffff;
}

.faq__icon::before {
    width: 16px;
    height: 2px;
    top: -1px;
    left: -8px;
}

.faq__icon::after {
    width: 2px;
    height: 16px;
    top: -8px;
    left: -1px;
    transition: transform 0.3s ease;
}

.faq__item--open .faq__icon::after {
    transform: rotate(90deg);
}

.faq__answer {
    display: none;
    padding: 20px 50px;
    background: #ffffff;
}

.faq__item--open .faq__answer {
    display: block;
}

.faq__answer p {
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    color: #024772;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .methods__wrapper {
        flex-direction: column;
    }

    .methods__image {
        width: 100%;
        max-width: 500px;
    }

    .conditions__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .title--large {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .treatment-process__grid {
        grid-template-columns: 1fr;
    }

    .conditions__grid {
        grid-template-columns: 1fr;
    }

    .condition-card:nth-child(7) {
        grid-column: auto;
    }

    .faq__question {
        padding: 17px 30px;
    }

    .faq__answer {
        padding: 20px 30px;
    }
}

/* Video Slide Link */
.video-slide__link {
    display: block;
    position: relative;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.video-slide__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.video-slide__link:hover .video-slide__play {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Reviews Slider - prev button rotation */
.video-reviews-btn-prev svg {
    transform: rotate(180deg);
}

/* Video Reviews Pagination - match results slider */
.video-reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.video-reviews-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d9d9d9;
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-reviews-pagination .swiper-pagination-bullet-active {
    background: #0b88be;
}

@media (max-width: 480px) {
    .hero--back-pain {
        padding: 80px 0 60px;
    }

    .title--large {
        font-size: 24px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .faq__question {
        padding: 15px 20px;
    }

    .faq__answer {
        padding: 15px 20px;
    }
}
