.text-img-pair {
    display: flex;
}

.text-img-pair .text {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3.5em 0 max(1em, calc(50vw - 30em));
    line-height: 1.7;
    flex: 0 0 50%;
}

.text-img-pair .text.last {
    /*align-items: start;*/
    padding: 0 max(1em, calc(50vw - 30em)) 0 3.5em;
    order: 1;
}

.text-img-pair .text p {
    font-size: 1.1em;
}

.text-img-pair .text img {
    width: 100%;
    max-width: 19.8em;
    margin-top: 0.5em;
}

.text-img-pair .img {
    flex: 0 0 50%;
}

.text-img-pair .img img {
    width: 100%;
    display: block;
}

.page-links {
    box-sizing: border-box;
    display: flex;
    background-color: var(--gray);
    padding: 3em 0.75em;
}

.page-link {
    box-sizing: border-box;
    flex: 0 0 25%;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0 1em;
    font-size: 0.85em;
}

.page-link:last-child {
    border-right: none;
}

.page-link img {
    width: 100%;
}

.page-link p {
    color: var(--white);
    font-weight: 400;
    line-height: 1.6;
}

.page-link a {
    display: block;
    margin: 2.5em auto 0;
    background-color: transparent;
    border: 0.2em solid var(--white);
    padding: 0.5em 1em;
    font-size: 0.79em;
    font-weight: 500;
    width: 11em;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.page-link a:hover {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
}

.testimonials .item {
    flex: 0 1 50%;
    padding: 1em 1.75em;
    background-color: var(--white);
    border: 1px solid rgb(130 130 130);
    margin: 0.9em;
    line-height: 1.6;
}

.testimonials .item p {
    margin-bottom: 0.25em;
    font-size: 24px;
}

.testimonials .item p.author {
    color: var(--blue);
    font-size: 0.9em;
    margin-top: 0.75em;
}

.testimonials .circle {
    background-color: var(--gray);
    opacity: 0.4;
}

.testimonials .circle:hover {
    opacity: 0.5;
}

.testimonials .circle.active {
    opacity: 0.9;
}

.partners-wrapper {
    padding: 1.25em 1em 5em;
    text-align: center;
}

.partners-wrapper :is(h1, p) {
    color: var(--white);
}

.partners-wrapper p {
    font-size: 1.2em;
}

.partners {
    margin-top: 2.2em;
    aspect-ratio: 25/2;
    max-width: 100%;
}

.partners .item {
    text-align: center;
    margin: 0 0.5em;
    width: calc(100% / 5);
}

.partners img {
    width: 100%;
}

/* #region PLUGINS */

.jumbotron .slide p {
    font-family: 'Arima', cursive;
    color: var(--white);
}

.jumbotron .slide button {
    background-color: var(--light-blue);
}

.jumbotron .slide button:hover {
    background-color: var(--aqua);
}

/* #endregion */

@media (max-width: 1380px) {
    .text-img-pair .text {
        font-size: 0.85em;
        padding: 0 2.5em;
    }

    .text-img-pair .text.last {
        padding: 0 2.5em;
    }

    .text-img-pair .text img {
        max-width: 14em;
    }

    .testimonials .item {
        margin: 0.7em;
        padding: 0.75em 1em;
        font-size: 1.04em;
    }

    .testimonials .item p {
        font-size: inherit;
    }
}

@media (max-width: 1100px) {
    .page-links {
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .page-link {
        flex: 0 0 50%;
        font-size: 1em;
        margin-bottom: 3.5em;
    }

    .page-link:nth-child(even) {
        border: none;
    }

    .page-link:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.4);
    }
}

/* Tablet */
@media (max-width: 1040px) {
    .text-img-pair .text {
        font-size: 0.8em;
    }

    .testimonials .item {
        flex: 0 1 100%;
        margin: 0.7em 1.5em;
        padding: 1em 1.75em;
    }

    .partners {
        margin-top: 2em;
        aspect-ratio: 15/2;
    }

    .partners .item {
        width: calc(100% / 3);
    }
}

@media (max-width: 960px) {
    .text-img-pair {
        display: block;
    }

    .text-img-pair .text,
    .text-img-pair .text.last {
        font-size: 1.1em;
        padding: 8vw;
    }
}

@media (max-width: 740px) {
    .testimonials .item {
        font-size: 3.5vw;
        padding-right: 1em;
        padding-left: 1em;
    }

    .partners-wrapper {
        padding-bottom: 3.75em;
    }

    .partners {
        aspect-ratio: 5/1;
    }

    .partners .item {
        width: calc(100% / 2);
    }
}

@media (max-width: 536px) {
    .page-links {
        padding: 8vw 2vw;
    }

    .page-link {
        flex: 0 0 100%;
        border-right: none;
    }

    .page-link:nth-child(odd) {
        border-right: none;
    }
}

@media (max-width: 476px) {
    .testimonials .item {
        margin: 0.7em 1em;
    }

    .testimonials .item p {
        font-size: 4.4vw;
        line-height: 1.5;
    }
}
