.latest-offers-section .section-body {
    margin-top: 26px;
}

.latest-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 32px;
}

.latest-offers-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 400px));
    gap: 28px 24px;
    justify-content: center;
}

.latest-offers-grid--compact .latest-offer-card {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 24px;
}

.latest-offers-grid--compact .latest-offer-card__media {
    aspect-ratio: 1.62 / 1;
}

.latest-offers-grid--compact .latest-offer-card__badge {
    top: 18px;
    left: 18px;
    max-width: calc(100% - 36px);
    min-height: 28px;
    padding: 5px 14px;
    font-size: 12px;
}

.latest-offers-grid--compact .latest-offer-card__body {
    padding: 22px 24px 20px;
}

.latest-offers-grid--compact .latest-offer-card__heading {
    padding-bottom: 18px;
}

.latest-offers-grid--compact .latest-offer-card__title {
    font-size: 18px;
}

.latest-offers-grid--compact .latest-offer-card__author {
    margin-top: 4px;
    font-size: 15px;
}

.latest-offers-grid--compact .latest-offer-card__stats {
    gap: 14px;
    padding: 18px 0 16px;
}

.latest-offers-grid--compact .latest-offer-card__label {
    margin-bottom: 6px;
    font-size: 11px;
}

.latest-offers-grid--compact .latest-offer-card__value,
.latest-offers-grid--compact .latest-offer-card__refund {
    font-size: 16px;
}

.latest-offers-grid--compact .latest-offer-card__footer {
    gap: 14px;
    padding-top: 16px;
}

.latest-offers-grid--compact .latest-offer-card__performance {
    gap: 8px;
}

.latest-offers-grid--compact .latest-offer-card__epc-value {
    font-size: 22px;
}

.latest-offers-grid--compact .latest-offer-card__cr {
    min-height: 30px;
    padding: 5px 10px;
}

.latest-offers-grid--compact .latest-offer-card__cr strong {
    font-size: 13px;
}

.latest-offers-grid--compact .latest-offer-card__cta {
    min-width: 164px;
    min-height: 50px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 15px;
}

.latest-offer-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 56, 0.06);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 33, 62, 0.06), 0 1px 3px rgba(15, 33, 62, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.latest-offer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 130, 79, 0.24);
    box-shadow: 0 20px 36px rgba(15, 33, 62, 0.08), 0 2px 6px rgba(15, 33, 62, 0.06);
}

.latest-offer-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1.88 / 1;
    overflow: hidden;
    background: #0f172a;
}

.latest-offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.latest-offer-card:hover .latest-offer-card__media img {
    transform: scale(1.04);
}

.latest-offer-card__badge {
    position: absolute;
    top: 28px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 44px);
    min-height: 30px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary_color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-offer-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 28px 34px 26px;
}

.latest-offer-card__heading {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(18, 32, 56, 0.06);
}

.latest-offer-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #162744;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.latest-offer-card__title:hover {
    color: #162744;
}

.latest-offer-card__author {
    margin: 6px 0 0;
    color: #5c6f8c;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.latest-offer-card__author-link {
    color: inherit;
    font-weight: 800;
}

.latest-offer-card__author-link:hover,
.latest-offer-card__author-link:focus {
    color: var(--primary_color);
}

.latest-offer-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 0 18px;
    border-bottom: 1px solid rgba(18, 32, 56, 0.06);
}

.latest-offer-card__stat {
    min-width: 0;
}

.latest-offer-card__stat--end {
    text-align: right;
}

.latest-offer-card__label {
    display: block;
    margin-bottom: 8px;
    color: #97a7c2;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.latest-offer-card__value {
    display: block;
    color: #162744;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.latest-offer-card__value-accent {
    color: var(--primary_color);
}

.latest-offer-card__refund {
    display: inline-block;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.latest-offer-card__refund.is-success {
    color: #16a34a;
}

.latest-offer-card__refund.is-warning {
    color: #d97706;
}

.latest-offer-card__refund.is-danger {
    color: #ef4444;
}

.latest-offer-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
}

.latest-offer-card__performance {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.latest-offer-card__epc {
    min-width: 0;
}

.latest-offer-card__epc-value {
    color: #162744;
    font-size: 29px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.latest-offer-card__epc-value span {
    font-size: 0.48em;
    letter-spacing: 0;
    color: #97a7c2;
    font-weight: 700;
}

.latest-offer-card__cr {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 130, 79, 0.1);
    color: var(--primary_color);
}

.latest-offer-card__micro-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7f9c;
}

.latest-offer-card__cr strong {
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
}

.latest-offer-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 188px;
    min-height: 58px;
    padding: 12px 24px;
    border: 0;
    border-radius: 14px;
    background: var(--primary_color);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.latest-offer-card__cta:hover,
.latest-offer-card__cta:focus {
    color: #ffffff;
    background: #1d6f43;
    transform: translateY(-1px);
}

.latest-offer-card__cta i {
    font-size: 14px;
}

@media (max-width: 1399.98px) {
    .latest-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .latest-offer-card__body {
        padding-right: 24px;
        padding-left: 24px;
    }

    .latest-offer-card__title {
        font-size: 22px;
    }

    .latest-offer-card__cta {
        min-width: 170px;
    }
}

@media (max-width: 767.98px) {
    .latest-offers-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .latest-offers-grid--compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .latest-offers-grid--compact .latest-offer-card {
        max-width: none;
    }

    .latest-offer-card {
        border-radius: 22px;
    }

    .latest-offer-card__body {
        padding: 22px 20px 20px;
    }

    .latest-offer-card__stats,
    .latest-offer-card__footer {
        grid-template-columns: minmax(0, 1fr);
        flex-direction: column;
        align-items: flex-start;
    }

    .latest-offer-card__stat--end {
        text-align: left;
    }

    .latest-offer-card__cta {
        width: 100%;
    }
}
