/* ============================================================
   Cert Chess — шахматка «Сертификаты и стандарты»
   ============================================================ */

.cert-chess {
    background: var(--color-white);
    padding: 32px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Row wrapper (handles bg + py for light rows) ── */
.cert-chess__row {
    padding: 32px 0 32px 0;
}

.cert-chess__row--light {
    background: var(--color-bg-light);
}

/* ── Inner: centered, two equal columns ── */
.cert-chess__row-inner {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    box-sizing: border-box;
}

.cert-chess__row--reverse .cert-chess__row-inner {
    flex-direction: row-reverse;
}

/* ── Image ── */
.cert-chess__image {
    flex: 1;
    min-width: 0;
    aspect-ratio: 568 / 496;
    overflow: hidden;
}

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

/* ── Content ── */
.cert-chess__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    padding: 32px 0;
}

/* ── Button overrides ── */
.cert-chess__content .btn {
    width: 315px;
    flex-shrink: 0;
}

/* ── Text ── */
.cert-chess__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-chess__desc + .cert-chess__list {
    margin-top: -24px;
}

.cert-chess__label {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0;
}

.cert-chess__title {
    font-family: var(--font-neo);
    font-size: 48px;
    font-weight: 400;
    line-height: 58px;
    letter-spacing: -1.8px;
    color: var(--color-black);
    margin: 0;
}

.cert-chess__desc {
    font-family: var(--font-inter);
    font-size: 19px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-text-muted);
    margin: 0;
}

.cert-chess__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-chess__list-item {
    font-family: var(--font-inter);
    font-size: 19px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-text-muted);
    padding-left: 1.2em;
    position: relative;
}

.cert-chess__list-item::before {
    content: '—';
    position: absolute;
    left: 0;
}

/* ── Tablet ── */
@media (max-width: 1170px) {
    .cert-chess__row-inner {
        padding: 0 48px;
        gap: 40px;
    }

    .cert-chess__title {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -1px;
    }

    .cert-chess__desc {
        font-size: 16px;
        line-height: 24px;
    }

    .cert-chess__content .btn {
        width: 100%;
        max-width: 315px;
    }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .cert-chess {
        padding: 0;
    }

    .cert-chess__row {
        padding: 32px 0;
    }

    .cert-chess__row-inner,
    .cert-chess__row--reverse .cert-chess__row-inner {
        flex-direction: column;
        gap: 24px;
        padding: 0 24px;
    }

    .cert-chess__image {
        width: 100%;
        flex: none;
        aspect-ratio: unset;
        height: 260px;
        order: 2;
    }

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

    .cert-chess__content {
        order: 1;
        gap: 24px;
        flex: none;
        width: 100%;
    }

    .cert-chess__text {
        gap: 8px;
    }

    .cert-chess__label {
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 18px;
    }

    .cert-chess__title {
        font-size: 24px;
        font-weight: 500;
        line-height: 32px;
        letter-spacing: 0;
    }

    .cert-chess__desc {
        font-size: 14px;
        line-height: 22px;
        margin-top: 8px;
    }

    .cert-chess__list {
        margin-top: 0;
    }

    .cert-chess__desc + .cert-chess__list {
        margin-top: -8px;
    }

    .cert-chess__list-item {
        font-size: 14px;
        line-height: 22px;
    }

    .cert-chess__content .btn {
        order: 3;
        width: 100%;
        max-width: 100%;
        height: 44px;
        font-size: 16px;
        line-height: 21px;
    }
}
