/* Global module - Partners: list card on the left, photo on the right */
.el-partners-head {
    max-width: 760px;
    margin: 0 auto clamp(36px, calc(36px + 14 * (100vw - 1280px) / 640), 50px);
    text-align: center;
}

.el-partners-title {
    margin: 0 0 16px;
}

.el-partners-text {
    max-width: 560px;
    margin: 0 auto;
    font-size: clamp(17px, 1.1vw, 19px);
    color: var(--el-color-muted);
}

/* Design: 915px card + 553px photo at 1920. */
.el-partners-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 10px;
    max-width: 1480px;
    margin-inline: auto;
}

.el-partners-list {
    margin: 0;
    padding: clamp(36px, calc(36px + 36 * (100vw - 1280px) / 640), 72px);
    border-radius: clamp(28px, 2.1vw, 40px);
    background: #e5eaee;
    list-style: none;
}

.el-partner {
    max-width: 740px;
    padding-block: clamp(22px, calc(22px + 8 * (100vw - 1280px) / 640), 30px);
}

.el-partner:first-child {
    padding-top: 0;
}

.el-partner:last-child {
    padding-bottom: 0;
}

.el-partner + .el-partner {
    border-top: 1px solid #c9d1d9;
}

/* h3 in the outline; sized like the design, with a short orange line under it. */
.el-partner-name {
    margin: 0;
    font-size: clamp(30px, calc(30px + 14 * (100vw - 1280px) / 640), 44px);
    line-height: 1.15;
}

.el-partner-name::after {
    content: "";
    display: block;
    width: 85px;
    height: 3px;
    margin: 10px 0 16px;
    background: var(--el-color-orange);
}

.el-partner-text {
    max-width: 500px;
    margin: 0;
    font-size: clamp(17px, 1.1vw, 19px);
    line-height: 1.6;
    color: var(--el-color-muted);
}

.el-partners-media {
    overflow: hidden;
    border-radius: clamp(28px, 2.1vw, 40px);
}

.el-partners-media.is-empty {
    background: #cfd8e0;
}

/* Desktop: the empty photo column keeps some height next to the list. (Not on phones: with the
   4:3 shape a fixed height would make it wider than the screen.) */
@media (min-width: 992px) {
    .el-partners-media.is-empty {
        min-height: 320px;
    }
}

.el-partners-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .el-partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .el-partners-media {
        aspect-ratio: 4 / 3;
    }
}
