/* =========================================================
   Platform Costs Block
   ========================================================= */

.platform-costs {
    padding: 80px 0;
}

.platform-costs--gray::before,
.platform-costs--gray::after {
    display: none!important;
}

.platform-costs__container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ── Head ─────────────────────────────────────────────── */
.platform-costs__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.platform-costs__head h2 {
    font-size: 48px;
    line-height: 56px;
    font-weight: 400;
    color: #1C1C1C;
    margin: 0 0 20px;
}

.platform-costs__head p {
    font-size: 18px;
    line-height: 28px;
    color: #555555;
    margin: 0;
}

/* ── Grid ─────────────────────────────────────────────── */
.platform-costs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Card base ────────────────────────────────────────── */
.platform-costs .cost-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 40px;
    border-radius: 12px;
}

.platform-costs .cost-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: transparent !important;
}

.platform-costs .cost-card__icon img,
.platform-costs .cost-card__icon svg {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cost-card__content {
    flex: 1;
    min-width: 0;
}

.cost-card__content h3 {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: #1C1C1C;
    margin: 0 0 8px;
}

.cost-card__text,
.cost-card__text p {
    font-size: 15px;
    line-height: 23px;
    color: #555555;
    margin: 0;
}

.cost-card__text p + p {
    margin-top: 8px;
}

.cost-card__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: currentColor;
    transition: opacity 0.15s ease;
}

.cost-card__text a:hover {
    opacity: 0.7;
}

/* ── Link arrow (appears in both cards when linked) ───── */
.cost-card__link-arrow {
    flex-shrink: 0;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 16px;
}

.cost-card--problem .cost-card__link-arrow {
    position: absolute;
    top: 30px;
    right: 26px;
    font-size: 26px;
    line-height: 1;
    color: #e51f32;
}

.cost-card--solution .cost-card__link-arrow {
    color: #029363;
}

/* ── Linked card ──────────────────────────────────────── */
a.cost-card--linked {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.cost-card--linked:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   Gray variant (default)
   ========================================================= */

.platform-costs--gray {
    background: #EEEEEE !important;
}

.platform-costs--gray .platform-costs__head p {
    color: #575757;
}

.platform-costs--gray .cost-card--problem {
    background: #F7F7F7;
}

.platform-costs--gray .cost-card--solution {
    background: #EDF8F2;
}

/* =========================================================
   Red variant
   ========================================================= */

.platform-costs--red {
    background: #D41028;
}

.platform-costs--red .platform-costs__head h2 {
    color: #fff;
}

.platform-costs--red .platform-costs__head p {
    color: rgba(255, 255, 255, 0.75);
}

.platform-costs--red .cost-card--problem {
    background: rgba(0, 0, 0, 0.2);
}

.platform-costs--red .cost-card--solution {
    background: rgba(0, 0, 0, 0.1);
}

.platform-costs--red .cost-card__content h3 {
    color: #fff;
}

.platform-costs--red .cost-card__text,
.platform-costs--red .cost-card__text p {
    color: rgba(255, 255, 255, 0.75);
}

.platform-costs--red .cost-card--problem .cost-card__link-arrow {
    color: #fff;
    background: rgba(139, 0, 0, 0.4);
}

.platform-costs--red .cost-card--solution .cost-card__link-arrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.platform-costs--red a.cost-card--linked:hover .cost-card__link-arrow {
    background: rgba(255, 255, 255, 0.28);
}

.platform-costs--red a.cost-card--linked:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ── Tablet (≤ 1024px) ────────────────────────────────── */
@media (max-width: 1024px) {
    .platform-costs__head h2 {
        font-size: 36px;
        line-height: 44px;
    }
}

/* ── Mobile (≤ 767px) ─────────────────────────────────── */
@media (max-width: 767px) {
    .platform-costs {
        padding: 50px 0;
    }

    .platform-costs__container {
        gap: 40px;
    }

    .platform-costs__head h2 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 14px;
    }

    .platform-costs__head p {
        font-size: 16px;
        line-height: 24px;
    }

    .platform-costs__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
