.description-services {
    margin: 80px 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #D6DAF1;
    border-radius: 38px;
    padding: 30px;
}

.phar-act-services__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--theme-base-color);
}

.descr-services-btn {
    margin-top: 15px;
    padding: 14px 32px;
    border: 1px solid var(--theme-base-color);
    color: var(--theme-base-color);
    background: white;
    border-radius: 40px;
}

.phar-act-services__content {
    display: grid;
    padding-top: 25px;
    gap: 15px;
}

.phar-act-services__content.fifth {
    grid-template-columns: repeat(3, 1fr);
}

.phar-act-services__content.other {
    grid-template-columns: repeat(4, 1fr);
}

.phar-act-services__card {
    max-width: 463px;
    border-top: 3px solid var(--theme-base-color);
    border-radius: 24px;
    padding: 40px 20px;
    color: var(--theme-base-color);
    min-height: 309px;
}

.phar-act-number {
    margin-bottom: 25px;
    font-size: 48px;
    font-weight: 700;
}

.phar-act-services__card.odd {
    background-color: #FFF8F0;
}

.phar-act-services__card.even {
    background-color: #F2F4FF;
}

.phar-act-title {
    padding: 25px 0 5px;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
}

.phar-act-text {
    font-size: 15px;
}

.phar-act-services__card.one {
    border-top: none;
    border-left: 3px solid var(--theme-base-color);
    padding: 20px;
    max-width: none;
    background: #F2F4FF;
    width: 100%;
    min-height: auto;
}

.descr-services-full {
    display: none;
}

.descr-services-text {
    --descr-lines: 4;
    --descr-lh: 1.5;
    line-height: var(--descr-lh);
    max-height: calc(1em * var(--descr-lh) * var(--descr-lines));
    overflow: hidden;
}

.descr-services-text.is-expanded {
    max-height: none;
    overflow: visible;
}

.descr-services h3,
.descr-services h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--theme-base-color);
}


@media (max-width: 991px) {
    .description-services {
        border: none;
        padding: 0;
    }

    .descr-services {
        padding: 16px 20px 20px;
        border: 1px solid #D6DAF1;
        border-radius: 30px;
    }

    .descr-services-short {
        text-align: center;
    }

    .descr-services-btn {
        width: 100%
    }

    .description-services .banner-horizontal-line {
        border-top: none;
    }

    .phar-act-services__content {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 16px 16px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-top: 20px;
    }

    .phar-act-services__content>.phar-act-services__card.even,
    .phar-act-services__content>.phar-act-services__card.odd {
        flex: 0 0 auto;
    }

    .phar-act-services__content::-webkit-scrollbar {
        display: none;
    }

    .phar-act-services__card {
        max-width: none;
        width: 270px;
    }
}
