/* Services Detail Sections */
.service-detail {
    padding: 80px 0;
    position: relative;
}


.service-detail--ozelenenie {
    background: #f4ede5;
}


/* Oformlenie Section Layout */
.service-detail--oformlenie .service-detail__content {
    display: grid;
    grid-template-columns: 1fr 660px;
    gap: 67px;
    align-items: start;
    margin-bottom: 50px;
}

.service-detail--oformlenie .service-detail__gallery {
    margin-top: 0;
}

/* Ozelenenie Section Layout */
.service-detail--ozelenenie .service-detail__content {
    display: grid;
    grid-template-columns: 660px 1fr;
    gap: 67px;
    align-items: start;
    margin-bottom: 50px;
}

.service-detail--ozelenenie .service-detail__gallery {
    margin-top: 0;
}

/* Decoration Section Layout */
.service-detail--decoration .service-detail__content {
    display: grid;
    grid-template-columns: 617px 660px;
    gap: 67px;
    align-items: start;
    margin-bottom: 50px;
}

.service-detail--decoration .service-detail__gallery {
    margin-top: 0;
}

/* Other sections layout */
.service-detail__content {
    display: grid;
    grid-template-columns: 660px 1fr;
    gap: 67px;
    align-items: start;
}

.service-detail__content--reverse {
    grid-template-columns: 660px 1fr;
    gap: 67px;
}

.service-detail__info {
    max-width: 543px;
}

.service-detail__title {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.22;
    letter-spacing: -0.08em;
    color: #343434;
    margin: 0 0 24px 0;
}

.service-detail__text {
    color: rgba(52, 52, 52, 0.9);
}

.service-detail__description {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.service-detail__list-title {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    margin: 20px 0 10px 0;
}

.service-detail__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-detail__list-item {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.service-detail__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #97C7CB;
    border-radius: 50%;
}

.service-detail__btn {
    background: none;
    border: none;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.24;
    color: #343434;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    transition: color 0.3s ease;
}

.service-detail__btn:hover {
    color: #97C7CB;
}

.service-detail__btn-arrow {
    transition: transform 0.3s ease;
}

.service-detail__btn:hover .service-detail__btn-arrow {
    transform: translateX(4px);
}

/* Service Gallery for all sections with gallery */
.service-detail--oformlenie .service-detail__gallery,
.service-detail--ozelenenie .service-detail__gallery,
.service-detail--decoration .service-detail__gallery {
    width: 100%;
    height: 574px;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
    height: 100%;
}

.service-gallery__item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.service-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-gallery__item:hover img {
    transform: none;
}

/* Background Image for Single Image Sections */
.service-detail__background {
    border-radius: 24px;
    overflow: hidden;
    height: 439px;
    width: 660px;
    position: relative;
}

.service-detail__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decoration Section Specific */
.service-detail--decoration .service-detail__content {
    grid-template-columns: 617px 660px;
    gap: 67px;
}

.service-detail--decoration .service-detail__background {
    height: 450px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-detail__content,
    .service-detail__content--reverse,
    .service-detail--oformlenie .service-detail__content,
    .service-detail--ozelenenie .service-detail__content,
    .service-detail--decoration .service-detail__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail__content--reverse .service-detail__gallery {
        order: 0;
    }
    
    .service-detail--oformlenie .service-detail__gallery,
    .service-detail--ozelenenie .service-detail__gallery,
    .service-detail--decoration .service-detail__gallery,
    .service-detail__gallery {
        height: 400px;
        width: 100%;
        max-width: 660px;
        margin: 0 auto;
    }
    
    .service-detail__background {
        height: 300px;
        width: 100%;
        max-width: 660px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .service-detail {
        padding: 40px 0;
    }
    
    .service-detail__title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .service-detail--oformlenie .service-detail__gallery,
    .service-detail--ozelenenie .service-detail__gallery,
    .service-detail--decoration .service-detail__gallery,
    .service-detail__gallery {
        height: 300px;
    }
    
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .service-detail__background {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .service-detail {
        padding: 24px 0;
    }
    
    .service-detail__title {
        font-size: 21px;
        line-height: 1.22;
        letter-spacing: -0.048em;
        margin-bottom: 16px;
    }
    
    .service-detail__description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    /* Mobile text truncation - applies to all service sections */
    .service-detail__text {
        position: relative;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        overflow: hidden;
    }
    
    .service-detail__text.is-collapsed {
        max-height: 110px !important;
        position: relative;
        overflow: hidden !important;
    }
    
    .service-detail__text.is-collapsed::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 35px;
        background: linear-gradient(transparent, rgba(244, 237, 229, 1));
        pointer-events: none;
        z-index: 1;
    }
    
    .service-detail--oformlenie .service-detail__text.is-collapsed::after {
        background: linear-gradient(transparent, #ffffff);
    }
    
    .service-detail--ozelenenie .service-detail__text.is-collapsed::after {
        background: linear-gradient(transparent, #f4ede5);
    }
    
    /* Hide additional content in collapsed state */
    .service-detail__text.is-collapsed .service-detail__description:nth-child(n+3),
    .service-detail__text.is-collapsed .service-detail__list-title,
    .service-detail__text.is-collapsed .service-detail__list {
        display: none !important;
    }
    
    .service-detail__text.is-expanded {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .service-detail__text.is-expanded::after {
        display: none !important;
    }
    
    .service-detail__text.is-expanded .service-detail__description,
    .service-detail__text.is-expanded .service-detail__list-title,
    .service-detail__text.is-expanded .service-detail__list {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    }
    
    .service-detail__btn {
        background: #97C7CB;
        color: #ffffff;
        border-radius: 30px;
        padding: 10px 20px;
        gap: 8px;
        margin-top: 16px;
    }
    
    .service-detail__btn:hover {
        background: #7FAEB3;
        color: #ffffff;
    }
    
    .service-detail__content,
    .service-detail__content--reverse,
    .service-detail--oformlenie .service-detail__content,
    .service-detail--ozelenenie .service-detail__content,
    .service-detail--decoration .service-detail__content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .service-detail__background {
        width: 100%;
        height: 190px;
        border-radius: 16px;
    }
    
    /* Mobile horizontal scroll galleries */
    .service-detail--oformlenie .service-detail__gallery,
    .service-detail--ozelenenie .service-detail__gallery,
    .service-detail--decoration .service-detail__gallery,
    .service-detail__gallery {
        width: 100%;
        height: auto;
        margin-top: 24px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .service-detail__gallery::-webkit-scrollbar {
        display: none;
    }
    
    .service-gallery {
        display: flex;
        gap: 12px;
        grid-template-columns: none;
        grid-template-rows: none;
        height: auto;
        min-width: max-content;
        padding: 0 24px;
        margin: 0 -24px;
    }
    
    .service-gallery__item {
        flex: 0 0 160px;
        height: 160px;
        border-radius: 16px;
    }
    
    .service-gallery__item img {
        border-radius: 16px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Service sections mobile layout */
    .service-detail--ozelenenie .service-detail__content {
        flex-direction: column;
    }
    
    .service-detail--decoration .service-detail__content {
        flex-direction: column;
    }
    
    /* Button styling for mobile */
    .service-detail__btn,
    .btn.btn--primary {
        font-family: Montserrat, sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.24;
        background: #97C7CB;
        color: #FFFFFF;
        border: none;
        border-radius: 30px;
        padding: 10px 20px;
        margin-top: 16px;
        text-align: center;
        width: fit-content;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .service-detail__btn:hover,
    .btn.btn--primary:hover {
        background: #7FAEB3;
    }
    
    /* Partners section mobile horizontal scroll */
    .partners__grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 24px;
        margin: 0 -24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .partners__grid::-webkit-scrollbar {
        display: none;
    }
    
    .partner-card {
        flex: 0 0 100px;
        height: 80px;
    }
    
    /* Order steps mobile horizontal scroll */
    .order-steps__nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 24px;
        margin: 0 -24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .order-steps__nav::-webkit-scrollbar {
        display: none;
    }
    
    .order-step-btn {
        flex: 0 0 70px;
        height: 32px;
        font-size: 14px;
        padding: 10px;
        border-radius: 30px;
        border: none;
        background: #FFFFFF;
        color: #2A5B55;
        box-shadow: 0px -6px 24px 0px rgba(59, 61, 78, 0.05);
        font-family: Montserrat, sans-serif;
        font-weight: 500;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .order-step-btn.is-active {
        background: #97C7CB;
        color: #FFFFFF;
    }
    
    /* Services cards mobile horizontal scroll */
    .about__services-cards {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 24px;
        margin: 0 -4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .about__services-cards::-webkit-scrollbar {
        display: none;
    }
    
    .about__services-card {
        flex: 0 0 240px;
        height: 280px;
        border-radius: 14px;
        border: 1px solid #2A5B55;
        position: relative;
        background-size: cover;
        background-position: center;
    }
    
    .about__services-card--oformlenie {
        background-image: url('../../images/service-oformlenie.jpg');
    }
    
    .about__services-card--ozelenenie {
        background-image: url('../../images/service-ozelenenie.jpg');
    }
    
    .about__services-card--decoration {
        background-image: url('../../images/service-design.jpg');
    }
    
    .about__services-card__content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(244, 237, 229, 0.95);
        backdrop-filter: blur(4px);
        border-radius: 0 0 14px 14px;
        padding: 16px;
        text-align: center;
    }
    
    .about__services-card__title {
        font-family: Montserrat, sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.22;
        letter-spacing: -0.075em;
        color: #343434;
        margin: 0 0 8px 0;
    }
    
    .about__services-card__button {
        font-family: Montserrat, sans-serif;
        font-weight: 500;
        font-size: 12px;
        line-height: 1.66;
        letter-spacing: -0.04em;
        color: #A35A63;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 auto;
        cursor: pointer;
        padding: 0;
    }
    
    .about__services-card__arrow {
        width: 10px;
        height: 7px;
        fill: #A35A63;
    }
    
    /* Reviews section mobile horizontal scroll */
    .reviews__track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 24px;
        margin: 0 -24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .reviews__track::-webkit-scrollbar {
        display: none;
    }
    
    .review-card {
        flex: 0 0 235px;
        height: auto;
        min-height: 257px;
        border-radius: 24px;
        background: #F5F5F5;
        padding: 16px;
        box-shadow: 0px -6px 24px 0px rgba(59, 61, 78, 0.05);
    }
    
    .review-card--small {
        flex: 0 0 209px;
        min-height: 228px;
        border-radius: 21px;
    }
}
