.problems-solutions {
    background: #E0E5ED;
    padding: 80px 0;
    font-family: 'Muli', 'Mulish', sans-serif;
}

.problems-solutions .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.problems-solutions__title {
    margin: 0;
    max-width: 782px;
    font-size: 42px;
    line-height: 52px;
    font-weight: 700;
    color: #1F4FCE;
}

.problems-solutions__description {
    margin: 24px 0 0;
    max-width: 844px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: #1B1B1B;
}

.problems-solutions__board {
    position: relative;
    margin-top: 52px;
    padding: 62px 0 20px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background:
        linear-gradient(#E0E5ED, #E0E5ED) padding-box,
        linear-gradient(90deg, #585858 0%, #1F4FCE 100%) border-box;
}

.problems-solutions__haze {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
    background: radial-gradient(circle at 50% 48%, rgba(224, 229, 237, 0.18) 0%, rgba(224, 229, 237, 0.7) 55%, #E0E5ED 80%);
    pointer-events: none;
}

.problems-solutions__watermark {
    position: absolute;
    top: 8px;
    margin: 0;
    font-size: 60px;
    line-height: 62px;
    font-weight: 900;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    text-align: right;
}

.problems-solutions__watermark--tasks {
    left: 205px;
    width: 272px;
    color: rgba(88, 88, 88, 0.06);
}

.problems-solutions__watermark--solutions {
    left: 651px;
    width: 321px;
    color: rgba(31, 79, 206, 0.06);
}

.problems-solutions__house {
    position: absolute;
    top: 52px;
    left: 50%;
    width: 636px;
    height: 588px;
    max-width: 56%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

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

.problems-solutions__rows {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.problems-solutions__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 116px;
}

.problems-solutions__row:last-child {
    height: auto;
}

.problems-solutions__cell {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 348px;
    flex-shrink: 0;
}

.problems-solutions__cell--task {
    margin-left: -23px;
}

.problems-solutions__cell--solution {
    width: 442px;
    margin-right: -23px;
    text-align: right;
}

.problems-solutions__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: block;
}

.problems-solutions__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
}

.problems-solutions__cell-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #585858;
}

.problems-solutions__cell-caption {
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    color: #585858;
}

.problems-solutions__cell--solution .problems-solutions__cell-title,
.problems-solutions__cell--solution .problems-solutions__cell-caption {
    color: #1F4FCE;
}

.problems-solutions__actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.problems-solutions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 32px;
    min-height: 40px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease;
}

.problems-solutions__btn--primary {
    border: none;
    color: #fff;
    background: linear-gradient(180deg, #4085D9 0%, #0C3E9A 100%);
}

.problems-solutions__btn--primary:hover {
    opacity: .9;
}

.problems-solutions__btn--outline {
    position: relative;
    border: none;
    background: transparent;
    background-image: linear-gradient(180deg, #4085D9 0%, #0C3E9A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.problems-solutions__btn--outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(180deg, #4085D9 0%, #0C3E9A 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.problems-solutions__row::before,
.problems-solutions__row::after,
.problems-solutions__cell::before,
.problems-solutions__cell::after,
.problems-solutions__text::before,
.problems-solutions__text::after {
    content: none;
    display: none;
}

@media (max-width: 1024px) {
    .problems-solutions__title {
        font-size: 32px;
        line-height: 40px;
    }

    .problems-solutions__house,
    .problems-solutions__watermark {
        display: none;
    }

    .problems-solutions__board {
        padding: 32px 20px;
    }

    .problems-solutions__row {
        height: auto;
        gap: 24px;
        margin-bottom: 24px;
    }

    .problems-solutions__row:last-child {
        margin-bottom: 0;
    }

    .problems-solutions__cell {
        width: 50%;
    }

    .problems-solutions__cell--task {
        margin-left: 0;
    }

    .problems-solutions__cell--solution {
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .problems-solutions {
        padding: 48px 0;
    }

    .problems-solutions__title {
        font-size: 26px;
        line-height: 34px;
    }

    .problems-solutions__description {
        font-size: 16px;
        line-height: 24px;
    }

    .problems-solutions__row {
        flex-direction: column;
        gap: 16px;
    }

    .problems-solutions__cell,
    .problems-solutions__cell--solution {
        width: 100%;
        flex-direction: row;
        text-align: left;
    }

    .problems-solutions__actions {
        gap: 16px;
    }

    .problems-solutions__btn {
        width: 100%;
    }
}
