/* ============================================================
   css/donate.css — стили страницы «Сделать пожертвование»
   Использует переменные main.css, паттерны из board/contacts/documents.css
   Подключать после main.css / effects.css.
   ============================================================ */

/* ---------- Хлебные крошки внутри hero ---------- */
.breadcrumbs {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 0;
}
.breadcrumbs .container { text-align: left; }
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 6px; }
.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .68);
    transition: color .25s ease;
}
.breadcrumbs__link:hover { color: var(--color-white); }
.breadcrumbs__icon { width: 14px; height: 14px; }
.breadcrumbs__separator { color: rgba(255, 255, 255, .35); }
.breadcrumbs__current { color: rgba(255, 255, 255, .92); font-weight: 600; }

/* ---------- HERO ---------- */
.donate-hero {
    position: relative;
    min-height: 46vh; /* было 42vh */
    display: flex;
    align-items: center;
    padding-bottom: 60px; /* было 30px */
    overflow: hidden;
    color: var(--color-white);
}
.donate-hero__image-wrapper { position: absolute; inset: 0; z-index: 0; }
.donate-hero__image { width: 100%; height: 100%; object-fit: cover; }
.donate-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }

.donate-hero .container { position: relative; z-index: 2; }
.donate-hero__content { max-width: 640px; margin-top: 46px; }

.donate-hero__title {
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(30px, 4.2vw, 46px);
    color: var(--color-white);
    margin: 14px 0 16px;
    font-weight: 800;
}
.donate-hero__subtitle {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
}

@media (max-width: 640px) {
    .donate-hero { min-height: 48vh; padding-bottom: 70px; text-align: center; }
    .breadcrumbs { top: 16px; }
    .breadcrumbs .container { text-align: center; }
    .breadcrumbs__list { justify-content: center; }
    .donate-hero__content { margin-top: 64px; }
    .hero__eyebrow,
    .donate-hero__title,
    .donate-hero__subtitle { text-align: center; margin-left: auto; margin-right: auto; }
}

/* ---------- Секция формы ---------- */
.donation-section { padding: 70px 0 30px;
    position: relative;
    background: var(--color-cream); }

.donation-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ---------- Карточка формы ---------- */
.donation-form-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px 40px 36px;
}

/* Переключатель типа пожертвования */
.donation-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.donation-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    background: var(--color-cream);
    cursor: pointer;
    transition: all .3s ease;
}
/* ---------- Иконка внутри переключателя типа пожертвования ---------- */
.donation-type-icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-plum-soft);
    transition: background .3s ease, transform .3s ease;
}
.donation-type-icon-img {
    width: 24px; height: 24px;
    object-fit: contain;
    /* исходные иконки — чёрные линии, тонируем их в фирменный plum */
    filter: brightness(0) saturate(100%) invert(19%) sepia(17%) saturate(1450%) hue-rotate(283deg) brightness(93%) contrast(87%);
    transition: filter .3s ease;
}

.donation-type-btn:hover .donation-type-icon {
    background: var(--color-plum-mid);
    transform: translateY(-2px);
}

/* Активная кнопка: круглая подложка становится градиентной, иконка — белой */
.donation-type-btn.active .donation-type-icon {
    background: var(--gradient-btn);
    box-shadow: 0 10px 22px -10px rgba(62, 31, 50, .45);
}
.donation-type-btn.active .donation-type-icon-img {
    filter: brightness(0) invert(1);
}

.donation-type-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}
.donation-type-btn:hover { border-color: var(--color-plum); }
.donation-type-btn.active {
    background: var(--color-plum-soft);
    border-color: var(--color-plum);
}
.donation-type-btn.active .donation-type-text { color: var(--color-plum-dark); }

/* Группы формы */
.form-group { margin-bottom: 22px; }
.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-plum-dark);
    margin-bottom: 9px;
}
.form-label-hint { font-weight: 400; color: var(--color-text-muted); font-size: 12.5px; }
.form-required { color: var(--color-pink-dark); }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14.5px;
    color: var(--color-text);
    background: var(--color-cream);
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 90px; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-plum);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-plum-soft);
}

/* Пресеты суммы */
.amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.amount-btn {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    background: var(--color-cream);
    color: var(--color-plum-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}
.amount-btn:hover { border-color: var(--color-plum); }
.amount-btn.active {
    background: var(--gradient-btn);
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 10px 22px -10px rgba(62, 31, 50, .45);
}
.custom-amount-btn { grid-column: span 3; }

.custom-amount-input {
    position: relative;
    margin-top: 12px;
}
.custom-amount-input .form-input { padding-right: 40px; }
.input-currency {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Чекбоксы */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.form-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-checkbox-mark {
    flex: 0 0 auto;
    width: 18px; height: 18px;
    margin-top: 1px;
    border: 1.5px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-cream);
    position: relative;
    transition: all .25s ease;
}
.form-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 9px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity .2s ease;
}
.form-checkbox input:checked ~ .form-checkbox-mark { background: var(--color-plum); border-color: var(--color-plum); }
.form-checkbox input:checked ~ .form-checkbox-mark::after { opacity: 1; }
.form-checkbox-text {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.form-checkbox-text a { color: var(--color-plum); text-decoration: underline; }
.form-checkbox-text a:hover { color: var(--color-plum-dark); }

/* Кнопка отправки */
#submit-donation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    position: relative;
}
#submit-donation.loading { opacity: .75; pointer-events: none; }
.btn-amount {
    font-weight: 800;
    padding: 2px 12px;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
}

/* Безопасность платежа */
.payment-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--color-plum-soft);
    border-radius: var(--radius-sm);
}
.payment-security-icon {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    color: var(--color-plum);
    margin-top: 1px;
}
.payment-security-text {
    font-size: 12.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- Информационная колонка ---------- */
.donation-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px 26px;
}
.info-card__title {
    font-size: 17px;
    color: var(--color-plum-dark);
    margin-bottom: 10px;
    font-family: var(--font-display), var(--font-main);
}
.info-card__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.info-card--accent {
    background: var(--gradient-plum);
    border-color: transparent;
    color: var(--color-white);
}
.info-card--accent .info-card__title { color: var(--color-white); }
.info-card__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}
.info-card__list li {
    position: relative;
    padding-left: 22px;
}
.info-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    color: var(--color-pink);
    font-weight: 700;
}

.info-card--details .btn { margin-top: 8px; }
.requisites-content {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.requisite-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--color-border);
}
.requisite-label { color: var(--color-text-muted); }
.requisite-value { color: var(--color-plum-dark); font-weight: 600; text-align: right; }
#copy-requisites { margin-top: 6px; width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-section { padding: 30px 0 90px; position: relative; overflow: hidden; }
.faq-section .sponsors-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.faq-section .sponsors-deco--tr {
    width: 200px;
    height: auto;
    top: -20px;
    right: -20px;
    color: rgba(250, 160, 194, .12);
}

.faq-accordion {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow .3s ease;
}
.faq-item:hover { box-shadow: var(--shadow-card); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-plum-dark);
}
.faq-icon {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    color: var(--color-plum);
    transition: transform .3s ease;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-item.active .faq-answer { max-height: 240px; }
.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
    .donation-wrapper { grid-template-columns: 1fr; }
    .donation-info-container { order: 2; }
}

@media (max-width: 640px) {
    .donation-form-card { padding: 28px 22px; }
    .donation-type-toggle { grid-template-columns: 1fr; }
    .amount-presets { grid-template-columns: repeat(2, 1fr); }
    .custom-amount-btn { grid-column: span 2; }
    .requisite-item { flex-direction: column; gap: 2px; }
    .requisite-value { text-align: left; }
}