/* Merriweather (cyrillic + cyrillic-ext + latin) */
@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    src: url('/static/fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: italic;
    font-weight: 400;
    src: url('/static/fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-italic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 600;
    src: url('/static/fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-600.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: italic;
    font-weight: 600;
    src: url('/static/fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-600italic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 900;
    src: url('/static/fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-900.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: italic;
    font-weight: 900;
    src: url('/static/fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-900italic.woff2') format('woff2');
}

:root {
    --bulma-family-primary: 'Merriweather', serif;
}

strong {
    font-weight: 900;
}

.donate-header {
    background-image: linear-gradient(141deg, #07162d 0, #0f4486 100%);
}

.site-title {
    padding-left: 1em;
    color: #f0e3cb;
    text-shadow: 0 0 5px #000001;
    font-weight: 600;
}

.field-label {
    flex-grow: 1.2;
}

span.mandatory {
    position: absolute;
    margin-left: 0.15em;
    color: #1c57b1;
}

.radio-list {
    padding-top: 0.25rem;
}

.radio-list--last {
    padding-bottom: 0.5rem;
}

.radio-list-line {
    display: flex;
    align-items: center;
}

.radio-list-line input[type="radio"] {
    flex: none;
}

.radio-list-line label {
    font-style: italic;
    margin: 0.25rem 0 0.25rem 0.8rem;
}

.recurrent-day-select {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.recurrent-day-select > * {
    min-height: 0;
    overflow: hidden;
}

form:has(#recurrentDonate_yes:checked) .recurrent-day-select--yes,
form:has(#recurrentDonate_yes_moon:checked) .recurrent-day-select--moon {
    grid-template-rows: 1fr;
    opacity: 1;
    margin: 0.5rem 0;
}

.recurrent-comment-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    hyphens: auto;
}

.form-margin {
    margin-top: 0.5rem;
}

.form-large-margin {
    margin-top: 1.5rem;
}

/* Главная: блок реквизитов организации — компактный список абзацев. */
.legal-info p:not(:last-child) {
    margin-bottom: 0.5em;
}

/* Админ-таблица: вертикальное центрирование содержимого ячеек (по умолчанию
   Bulma прижимает к верху, и строки с тегом статуса/иконкой выглядят
   несимметрично). */
.admin-orders-table td,
.admin-orders-table th {
    vertical-align: middle;
}

/* Админ-карточка (детали ордера): таблица «подпись/значение», колонка
   подписей фиксированной ширины для ровного выравнивания значений. */
.admin-detail-table th {
    width: 16rem;
    white-space: nowrap;
}

/* ЛК: дата в истории платежей не переносится по словам. */
.account-date {
    white-space: nowrap;
}

/* ЛК: группировка истории по годам — первая строка каждого следующего года
   получает более толстую верхнюю границу (визуальный разделитель лет). */
.account-history tr.year-row td {
    border-top: 2px solid rgba(7, 22, 45, 0.35);
}

/* ЛК: карточка регулярного пожертвования — заметнее обычного .box: лёгкий фон,
   более выраженная тень и акцентная полоса слева в фирменном синем. */
.subscription-card {
    background-color: #f6f8fc;
    border-left: 4px solid #0f4486;
    box-shadow:
        0 0.5em 1.25em -0.125em rgba(7, 22, 45, 0.18),
        0 0 0 1px rgba(7, 22, 45, 0.05);
}

/* ЛК: блок «Всего пожертвовано» — выделен фоном и тенью (как карточки),
   содержимое по центру, сумма в фирменном синем. */
.total-card {
    background-color: #f6f8fc;
    box-shadow:
        0 0.5em 1.25em -0.125em rgba(7, 22, 45, 0.18),
        0 0 0 1px rgba(7, 22, 45, 0.05);
}

.total-card .title {
    color: #0f4486;
}

/* ЛК: тело модалки правки слегка подкрашено нейтральным серым, чтобы белые
   контролы (ввод суммы, селекты) не сливались с фоном. */
.account-edit-modal .modal-card-body {
    background-color: #f4f6f9;
}

/* Модалки: длинный заголовок не должен выталкивать крестик закрытия за экран
   (Bulma по умолчанию ставит заголовку flex-shrink:0). Даём ему сжиматься и
   переноситься — крестик остаётся виден и на мобильном. */
.modal-card-title {
    flex-shrink: 1;
}

/* Админ-таблица: ячейки с копированием по клику. */
[data-copy] {
    cursor: pointer;
}

[data-copy].copied {
    background-color: #c4f1c5 !important;
}
