/* Страница «Программа помощи онкобольным детям» (/programs/help-child-cancer).
   Подключается только из PayProgramm.blade.php и действует внутри обёртки .cancer-v2.
   Форма пожертвования (payforms/other_cancer) остаётся прежней и стилизуется через payform.css.
   Чтобы вернуть прежний вид, достаточно вернуть прежний PayProgramm.blade.php. */

.cancer-v2 {
    background: #fff9f4;
    color: #2b2118;
    font-family: 'Montserrat', sans-serif;
}

.cancer-v2 *,
.cancer-v2 *::before,
.cancer-v2 *::after {
    box-sizing: border-box;
}

.cancer-v2 h1,
.cancer-v2 h2,
.cancer-v2 h3 {
    margin: 0;
    color: #2b2118;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.cancer-v2 h2 span,
.cancer-v2 h1 span {
    color: #FF6711;
}

/* ===== Общие элементы ===== */
.cn-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #ffe3d0;
    color: #FF6711;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cn-badge--soft {
    background: #fff0e6;
}

.cn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.cn-btn--primary {
    background: #FF6711;
    color: #fff;
}

.cn-btn--primary:hover {
    background: #f05a05;
    box-shadow: 0 10px 25px rgba(255, 103, 17, .35);
}

.cn-btn--ghost {
    background: #fff;
    border-color: #ffd2b8;
    color: #e85a0a;
}

.cn-btn--ghost:hover {
    background: #fff6f0;
    border-color: #FF6711;
}

.cn-btn--lg {
    padding: 18px 40px;
    font-size: 17px;
}

.cn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff0e6;
    color: #FF6711;
    font-size: 22px;
}

.cn-section {
    padding: 56px 0;
}

.cn-section--tight {
    padding-top: 8px;
}

.cn-section--last {
    padding-bottom: 72px;
}

.cn-head {
    margin-bottom: 32px;
}

.cn-head h2 {
    font-size: 34px;
    line-height: 1.2;
}

.cn-head p {
    margin: 14px 0 0;
    font-size: 16.5px;
    line-height: 1.65;
    color: #6b6158;
}

.cn-head--center {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

/* ===== Первый экран ===== */
.cn-hero {
    padding: 44px 0 60px;
    background: linear-gradient(180deg, #fff0e4 0%, #fff9f4 100%);
}

.cn-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.cn-hero__text {
    min-width: 0;
}

.cn-hero__title {
    margin-bottom: 20px !important;
    font-size: 44px;
    line-height: 1.12;
    overflow-wrap: break-word;
}

.cn-hero__lead {
    max-width: 580px;
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.65;
    color: #4b4239;
}

.cn-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.cn-hero__trust {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cn-hero__trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #6b6158;
}

.cn-hero__trust i {
    margin-top: 2px;
    color: #FF6711;
}

.cn-hero__trust a {
    color: #e85a0a;
    font-weight: 600;
    text-decoration: underline;
}

.cn-hero__photo {
    position: relative;
    min-width: 0;
}

.cn-hero__photo::before {
    content: '';
    position: absolute;
    inset: -5% -5% -5% 8%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #ffe3d0 0%, #ffeee3 60%, rgba(255, 238, 227, 0) 72%);
}

.cn-hero__photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 70% center;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(43, 33, 24, .18);
}

.cn-hero__note {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 26px rgba(43, 33, 24, .18);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #2b2118;
}

.cn-hero__note i {
    color: #FF6711;
    font-size: 20px;
}

/* ===== Почему помощь нужна ===== */
.cn-need {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cn-need__item {
    padding: 30px 28px 32px;
    border: 1.5px solid #f1e9e1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(43, 33, 24, .07);
}

.cn-need__item .cn-icon {
    margin-bottom: 18px;
}

.cn-need__item h3 {
    margin-bottom: 10px !important;
    font-size: 19px;
    line-height: 1.3;
}

.cn-need__item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #4b4239;
}

/* ===== Акцент ===== */
.cn-quote {
    padding: 52px 0;
    background: linear-gradient(135deg, #2b2118 0%, #4a2f1c 100%);
    color: #fff;
}

.cn-quote__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cn-quote__text {
    max-width: 720px;
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.cn-quote__sub {
    max-width: 640px;
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
}

.cn-quote .cn-btn {
    flex: 0 0 auto;
}

/* ===== Форма пожертвования ===== */
.cn-pay {
    padding: 64px 0 56px;
}

.cn-pay .cn-head {
    margin-bottom: 28px;
}

/* форма из payforms/other_cancer: убираем её голубоватый фон и лишние отступы */
.cancer-v2 .cn-pay .donation {
    padding: 0;
    background: transparent;
}

/* ===== Задачи программы ===== */
.cn-tasks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cn-tasks li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px solid #f1e9e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(43, 33, 24, .05);
}

.cn-tasks li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff0e6;
    color: #FF6711;
    font-size: 19px;
}

.cn-tasks li span {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.5;
    color: #2b2118;
}

/* ===== Как работает программа ===== */
.cn-how {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    padding: 40px 44px;
    border: 1.5px solid #f1e9e1;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(43, 33, 24, .07);
}

.cn-how__text {
    min-width: 0;
}

.cn-how__text h2 {
    margin-bottom: 20px !important;
    font-size: 30px;
    line-height: 1.2;
}

.cn-how__text p {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #4b4239;
}

.cn-how__text p:last-child {
    margin-bottom: 0;
}

.cn-how__text b {
    color: #2b2118;
}

.cn-how__lead {
    font-size: 17.5px !important;
    font-weight: 700;
    color: #2b2118 !important;
}

.cn-how__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
}

/* ===== Как помочь ===== */
.cn-ways {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cn-way {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 24px 28px;
    border: 1.5px solid #f1e9e1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(43, 33, 24, .06);
    color: #2b2118;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cn-way:hover {
    border-color: #FF6711;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(43, 33, 24, .1);
}

.cn-way .cn-icon {
    margin-bottom: 10px;
}

.cn-way b {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.cn-way span:last-child {
    font-size: 14px;
    line-height: 1.55;
    color: #6b6158;
}

.cn-way--main {
    border-color: #FF6711;
    background: #FF6711;
    color: #fff;
}

.cn-way--main .cn-icon {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.cn-way--main span:last-child {
    color: rgba(255, 255, 255, .88);
}

.cn-way--main:hover {
    background: #f05a05;
    box-shadow: 0 18px 38px rgba(255, 103, 17, .35);
}

.cn-thanks {
    max-width: 640px;
    margin: 32px auto 0;
    font-size: 14.5px;
    line-height: 1.65;
    text-align: center;
    color: #6b6158;
}

/* ===== Планшет и телефон ===== */
@media (max-width: 1100px) {
    .cn-ways {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 993px) {
    .cn-hero {
        padding: 28px 0 40px;
    }

    .cn-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cn-hero__title {
        font-size: 34px;
    }

    .cn-hero__lead {
        font-size: 16.5px;
    }

    .cn-hero__photo {
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .cn-section {
        padding: 40px 0;
    }

    .cn-head h2 {
        font-size: 28px;
    }

    .cn-need {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cn-quote {
        padding: 40px 0;
    }

    .cn-quote__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cn-quote__text {
        font-size: 26px;
    }

    .cn-pay {
        padding: 44px 0 40px;
    }

    .cn-tasks {
        grid-template-columns: 1fr;
    }

    .cn-how {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 24px;
    }

    .cn-how__photo {
        order: -1;
    }

    .cn-how__photo img {
        aspect-ratio: 1 / 1;
        max-height: 460px;
    }
}

@media (max-width: 640px) {
    .cn-hero__title {
        font-size: 28px;
    }

    .cn-hero__lead {
        font-size: 16px;
    }

    .cn-hero__actions {
        flex-direction: column;
    }

    .cn-hero__actions .cn-btn,
    .cn-quote .cn-btn {
        width: 100%;
    }

    .cn-hero__note {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 13px;
    }

    .cn-head h2 {
        font-size: 24px;
    }

    .cn-need__item {
        padding: 24px 20px 26px;
    }

    .cn-quote__text {
        font-size: 22px;
    }

    .cn-how {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .cn-how__text h2 {
        font-size: 24px;
    }

    .cn-ways {
        grid-template-columns: 1fr;
    }

    .cn-section--last {
        padding-bottom: 48px;
    }
}
