.services {
    padding-block: 3.75rem;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 1rem;

    >.wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        z-index: 2;

        >.sidebar {
            background: rgba(255, 255, 255, 0.95);
            padding: 2.5rem;
            display: flex;
            flex-direction: column;

            >.header {
                margin-bottom: 1.875rem;

                >.label {
                    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
                    color: var(--color-primary);
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.0625rem;
                    margin-bottom: 1rem;
                    display: block;
                }

                >.title {
                    font-size: clamp(1.25rem, 3vw, 1.75rem);
                    font-weight: 700;
                    color: #2c3e50;
                    line-height: 1.2;
                    margin-bottom: 1.25rem;
                }

                >.description {
                    font-size: clamp(0.875rem, 2vw, 1rem);
                    color: #5a6c7d;
                    line-height: 1.6;
                    margin-bottom: 0;
                }
            }

            >.list {
                display: flex;
                flex-direction: column;
                gap: 0;

                >.item {
                    background: transparent;
                    border: none;
                    text-align: left;
                    font-weight: 600;
                    color: #7f8c8d;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    border-bottom: 0.0625rem solid #ecf0f1;
                    position: relative;
                    width: 100%;
                    outline: none;
                    border-radius: 0;
                    line-height: 1.3;
                    padding: 0.875rem 1.25rem;
                    font-size: clamp(1rem, 0.875vw, 1.25rem);

                    &:hover {
                        color: #2c3e50;
                        background-color: rgba(255, 255, 255, 0.5);
                    }

                    &.active {
                        color: #2c3e50;
                        font-weight: 600;
                        background-color: rgba(255, 255, 255, 0.8);

                        &:before {
                            content: '';
                            position: absolute;
                            left: -2.5rem;
                            top: 0;
                            bottom: 0;
                            width: 0.25rem;
                            background: var(--color-primary);
                        }
                    }
                }
            }
        }

        >.content-wrapper {
            background: rgba(255, 255, 255, 0.98);
            position: relative;
            overflow: hidden;

            >.content {
                display: none !important;
                overflow: hidden;

                &.active {
                    display: flex !important;
                    justify-content: center;
                    flex-direction: column;
                    height: 100%;
                    position: relative;
                }

                >.image {
                    flex: 0 0 auto;
                    height: 20rem;
                    overflow: hidden;
                    position: relative;
                }

                >.image>img {
                    border-radius: 1rem;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                }

                >.description-wrapper {
                    display: flex;
                    flex-direction: column;
                    overflow: hidden;
                    min-height: 0;

                    >.scroll {
                        overflow-y: auto;
                        overflow-x: hidden;
                        padding: 2rem 0.25rem 1rem 0.25rem;
                        scrollbar-width: thin;
                        scrollbar-color: rgba(155, 155, 155, 0.5) transparent;

                        >.title {
                            font-size: clamp(1.25rem, 3vw, 1.75rem);
                            font-weight: 700;
                            color: #2c3e50;
                            margin: 0 0 1.25rem 0;
                            line-height: 1.2;
                        }

                        >.description {
                            font-size: clamp(0.875rem, 2vw, 1rem);
                            color: #5a6c7d;
                            line-height: 1.7;

                            >ul {
                                display: flex;
                                flex-direction: column;
                                gap: 0.8rem;
                            }
                        }
                    }

                    >.buttons-wrapper {
                        padding: 1rem 2rem 2rem 2rem;
                        background: white;
                        border-top: 0.0625rem solid #f0f0f0;

                        >.buttons {
                            display: flex;
                            gap: 0.9375rem;
                            align-items: center;

                            >.button {
                                padding: 0.75rem 1.5rem;
                                border-radius: 0.375rem;
                                text-decoration: none;
                                font-weight: 600;
                                font-size: clamp(0.75rem, 1.5vw, 0.875rem);
                                transition: all 0.3s ease;
                                display: inline-block;
                                text-align: center;
                                border: 0.125rem solid transparent;
                                text-transform: uppercase;
                                letter-spacing: 0.03125rem;
                                background-color: var(--color-primary);
                                color: #fff;
                                border: 2px solid var(--color-primary);

                                &:hover {
                                    background-color: color-mix(in srgb, var(--color-primary) 90%, black);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}


@media (min-width: 768px) {
    .services {
        >.wrapper {
            display: grid;
            grid-template-columns: 400px 1fr;

            >.content-wrapper {
                >.content {
                    &.active {
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;

                        >.image {
                            padding: 2rem;

                            >.description-wrapper {
                                >.scroll {
                                    padding: 2rem 2rem 1rem 2rem;

                                    >.description {
                                        >ul {
                                            gap: unset;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}