.modules {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.modules__container {
    position: relative;
    z-index: 2;
}

.modules__title {
    text-align: center;
    font: 500 48px/120% "Lora", sans-serif;
}

.modules__list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    row-gap: 40px;
    text-align: center;
}

.modules__item {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.module__name {
    color: #004aad;
    font: 500 55px/100% "Lora", sans-serif;
}

.module__text {
    background: #ffde59;
    padding: 36px 44px;
    border-radius: 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
}

.modules__decor {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.modules__decor--top-right {
    top: 0;
    right: 0;
    width: 380px;
    height: 220px;
}

.modules__decor--bottom-left {
    left: 0;
    bottom: 0;
    width: 360px;
    height: 220px;
}

.modules__decor--bottom-right {
    right: 42px;
    bottom: 42px;
    width: 150px;
    height: 120px;
}

@media (max-height: 860px) and (min-width: 646px) {
    .modules__title {
        font-size: 40px;
    }

    .modules__list {
        margin-top: 28px;
        column-gap: 36px;
        row-gap: 24px;
    }

    .modules__item {
        gap: 18px;
    }

    .module__name {
        font-size: 42px;
    }

    .module__text {
        padding: 24px 28px;
        font-size: 28px;
    }

    .modules__decor--top-right {
        width: 320px;
        height: 190px;
    }

    .modules__decor--bottom-left {
        width: 310px;
        height: 190px;
    }

    .modules__decor--bottom-right {
        right: 28px;
        bottom: 28px;
        width: 130px;
        height: 104px;
    }
}

@media (max-height: 760px) and (min-width: 646px) {
    .modules__title {
        font-size: 34px;
    }

    .modules__list {
        margin-top: 20px;
        column-gap: 28px;
        row-gap: 18px;
    }

    .modules__item {
        gap: 12px;
    }

    .module__name {
        font-size: 34px;
    }

    .module__text {
        padding: 18px 20px;
        font-size: 22px;
        line-height: 1.2;
    }

    .modules__decor--top-right {
        width: 260px;
        height: 154px;
    }

    .modules__decor--bottom-left {
        width: 250px;
        height: 154px;
    }

    .modules__decor--bottom-right {
        right: 20px;
        bottom: 20px;
        width: 104px;
        height: 84px;
    }
}

@media (max-width: 1100px) {
    .modules__list {
        gap: 20px;
    }

    .modules__title {
        font-size: 26px;
    }

    .module__name {
        font-size: 32px;
    }

    .module__text {
        padding: 16px;
        font-size: 18px;
    }

    .modules__decor--top-right {
        width: 290px;
        height: 170px;
    }

    .modules__decor--bottom-left {
        width: 280px;
        height: 170px;
    }

    .modules__decor--bottom-right {
        right: 20px;
        bottom: 20px;
        width: 110px;
        height: 88px;
    }
}

@media (max-width: 645px) {
    .modules__list {
        grid-template-columns: 1fr;
        margin-top: 16px;
        gap: 16px;
    }

    .modules__item {
        gap: 12px;
    }

    .modules__title {
        font-size: 22px;
    }

    .module__name {
        font-size: 26px;
    }

    .module__text {
        font-size: 16px;
    }

    .modules__decor {
        opacity: 0.7;
    }

    .modules__decor--top-right {
        width: 220px;
        height: 130px;
    }

    .modules__decor--bottom-left {
        width: 210px;
        height: 130px;
    }

    .modules__decor--bottom-right {
        right: 14px;
        bottom: 14px;
        width: 88px;
        height: 70px;
    }
}
