.welcome-page h2 {
    font-size: 24px;
    font-weight: 400;
}
.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 16px;
    position: relative;
    height: 100%;
}
.card::after {
    clear: both;
}
.card_icon {
    float: right;
    margin-top: -16px;
    margin-right: -16px;
}
.card__title {
    font-size: 16px;
    padding-right: 48px;
    margin-bottom: 8px;
    font-weight: bold;
}
.card__text {
    font-size: 14px;
}
.marerials-for-download__form {
    display: none;
}
.marerials-for-download__item {
    display: block;
    background-position: center;
    background-size: cover;
    min-height: 170px;
    position: relative;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.marerials-for-download__item__name {
    font-weight: 500;
    position: absolute;
    bottom: 20px;
    left: 12px;
    z-index: 2;
}
.marerials-for-download__item__icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1;
}
.marerials-for-download__item::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: "";
    background: #000;
    background: linear-gradient(0deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 0%) 100%);
    width: 100%;
    height: 58px;
    transition: 0.2s ease-in-out;
}
.marerials-for-download__item:hover::after {
    height: 100%;
}
.colored-list {
    background-color: #8F1913;
    border-radius: 10px;
}
.colored-list__header {
    color: #fff;
    font-size: 22px;
}
.colored-list__content {
    background-color: #fff;
    border-radius: 10px;
}
.colored-list_dark .colored-list__content {
    background-color: #4A4444;
    color: #fff;
}
.colored-list__items {
    margin: 0;
    padding: 0;
    list-style: none;
}
.colored-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.colored-list__footer__text {
    font-size: 18px;
    font-weight: 700;
    color: #8F1913;
}
.colored-list_dark .colored-list__footer__text {
    color: #fff;
}
.events {
    border-radius: 10px;
    background-color: #fff;
}
.events-img img {
    max-width: 100%;
    border-radius: 10px;
}
.events__title {
    font-size: 20px;
    font-weight: 400;
}
.event {
    border-top: 1px #7D7D7D solid;
    font-size: 14px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.event__name {
    font-size: 18px;
}
.event__btn {
    margin-top: auto;
    width: 100%;
    border-radius: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
    max-width: 350px;
}
.colored-list__footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.colored-list__footer__btn {
    padding: 6px 24px;
    min-width: 140px;
    border-radius: 10px;
}
.welcome-page .comprehensiveSolutions {
    padding-top: 0;
    margin-top: 0;
}
.reviews__items {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding-bottom: 20px;
    background: linear-gradient(transparent 40%,#1D5257 40%, #1D5257 100%);
}
.review__item {
    border-radius: 10px;
    background: #fff;
    width: 315px;
    flex-shrink: 0;
    padding: 12px;
}
.review__item__header {
    min-height: 105px;
}
.review__item__header::after {
    clear: both;
}
.review__item__img {
    max-width: 105px;
    float: right;
}
.review__item__img img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.review__item__spec {
    font-size: 14px;
}
.review__item__name {
    font-size: 18px;
}
.review__item__text {
    font-size: 16px;
    padding: 12px 6px;
    position: relative;
}
.review__item__text::before {
    display: block;
    content: "";
    width: 33px;
    height: 33px;
    position: absolute;
    left: 0;
    top: -16px;
    background: url('/bitrix/templates/portaprima-main/img/welcome/designer-quote.svg') no-repeat;
}
.review__item__text::after {
    display: block;
    content: "";
    width: 33px;
    height: 33px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: url('/bitrix/templates/portaprima-main/img/welcome/designer-quote.svg') no-repeat;
    transform: rotate(180deg);
}
.container-margin-start {
    margin-left: 12px;
}
.container-margin-end {
    margin-right: 12px;
}
@media (min-width: 591px) {
    .container-margin-start {
        margin-left: 25px;
    }
    .container-margin-end {
        margin-right: 25px;
    }
}
@media (min-width: 750px) {
    .marerials-for-download__form {
        width: 50%;
    }
    .marerials-for-download__form {
        display: block;
    }
    .marerials-for-download__item {
        min-height: 80px;
    }
    .event {
        min-height: 250px;
    }
    .event:nth-child(2n) {
        border-left: 1px #7D7D7D solid;
    }
}
@media (min-width: 1024px) {
    .welcome-page h2 {
        font-size: 34px;
    }
    .marerials-for-download__form {
        width: 450px;
    }
    .container-margin-start {
        margin-left: 30px;
    }
    .container-margin-end {
        margin-right: 30px;
    }
    .review__item__text::before {
        background-image: url('/bitrix/templates/portaprima-main/img/welcome/designer-quote-dark.svg');
    }
    .review__item__text:hover::before {
        background-image: url('/bitrix/templates/portaprima-main/img/welcome/designer-quote.svg');
    }
    .review__item__text::after {
        display: none;
    }
    .review__item__text__inner::after {
        display: block;
        content: "";
        width: 33px;
        height: 33px;
        position: absolute;
        right: 0;
        bottom: 0;
        background: url('/bitrix/templates/portaprima-main/img/welcome/designer-quote.svg') no-repeat;
        transform: rotate(180deg);
    }
    .review__item__text__inner:hover::after {
        background-image: url('/bitrix/templates/portaprima-main/img/welcome/designer-quote.svg');
    }
    .reviews__items_with_hidden {
        height: calc(var(--review-height) + 20px);
        align-items: flex-start;
    }
    .review__item_hidden {
        min-height: 160px;
    }
    .review__item_hidden .review__item__text__inner {
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        position: relative;
    }
    .review__item_hidden:hover .review__item__text__inner {
        max-height: 500px; /* Достаточно большое значение для любого текста */
    }
}
@media (min-width: 1251px) {
    .container-margin-start {
        margin-left: 60px;
    }
    .container-margin-end {
        margin-right: 60px;
    }
}
@media (min-width: 1440px) {
    .welcome-page h2 {
        font-size: 48px;
    }
    .marerials-for-download__form {
        width: 650px;
    }
}
@media (min-width: 1920px) {
    .marerials-for-download__form {
        width: 890px;
    }
}