/* The administration uses the site's palette and locally hosted typography. */
.admin-shell, .admin-auth { --admin-border: #e6e7ed; font-family: var(--font-sans, 'Montserrat Alternates', sans-serif); color: var(--color-ink, #394761); font-weight: 500; line-height: 1.55; }
.admin-shell, .admin-shell *, .admin-auth, .admin-auth * { -webkit-user-select: text; user-select: text; box-sizing: border-box; }
.admin-shell button, .admin-auth button { font: inherit; cursor: pointer; }
.admin-shell a, .admin-auth a { color: inherit; }
.admin-shell h1, .admin-auth h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; font-weight: 800; margin: 0; }
.admin-shell h2, .admin-auth h2 { font-size: 23px; line-height: 1.3; font-weight: 700; margin: 0 0 16px; }
.admin-shell h3 { font-size: 17px; line-height: 1.4; margin: 0; }
.admin-shell p, .admin-auth p { margin: 0 0 16px; }
.admin-auth { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; background: #f6f6f8; }
.admin-auth-card { width: min(100%, 520px); padding: clamp(24px, 5vw, 42px); border-radius: 30px; background: #fff; box-shadow: 0 12px 60px #39476114; display: grid; gap: 20px; }
.admin-auth-card .brand, .admin-sidebar .brand { width: 100%; gap: 10px; text-decoration: none; }
.admin-auth-card .brand { display: flex; align-items: center; }
.admin-auth-card .brand > span:not(.brand-logo), .admin-sidebar .brand > span:not(.brand-logo) { display: flex; flex-direction: column; min-width: 0; }
.admin-auth-card .brand-logo, .admin-sidebar .brand-logo { width: 52px; height: 52px; flex-shrink: 0; }
.admin-auth-card .brand strong, .admin-sidebar .brand strong { font-size: 17px; line-height: 1.3; }
.admin-auth-card .brand span span, .admin-sidebar .brand span span { font-size: 11px; line-height: 1.4; }
.admin-eyebrow { color: #9298a6; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; font-size: 11px; }
.admin-auth-card > p { margin: 0; }
.admin-form { display: grid; gap: 20px; }
.admin-form h2 { margin: 10px 0 0; }
.admin-shell label, .admin-auth label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.admin-shell input:not([type='checkbox']), .admin-shell textarea, .admin-shell select,
.admin-auth input { width: 100%; min-width: 0; padding: 13px 16px; border: 1px solid #dcdfe7; border-radius: 14px; background: #f7f7f9; color: #394761; font: inherit; line-height: 1.5; outline: none; }
.admin-shell textarea { resize: vertical; }
.admin-shell input:focus-visible, .admin-shell textarea:focus-visible, .admin-shell select:focus-visible,
.admin-auth input:focus-visible { border-color: #f1a37e; box-shadow: 0 0 0 3px #f1a37e25; }
.admin-shell input[type='checkbox'] { appearance: auto; width: 20px; height: 20px; accent-color: #e4050f; margin: 0; flex-shrink: 0; }
.admin-shell .admin-check { display: flex; gap: 12px; align-items: center; }
.admin-primary, .admin-secondary, .admin-danger { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 12px 23px; border-radius: 100px; border: 1px solid transparent; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; transition: background-color .2s, color .2s, box-shadow .2s; }
.admin-primary { color: #fff !important; background: #e4050f; }
.admin-primary:hover { background: #c6040d; box-shadow: 0 4px 16px #e4050f20; }
.admin-secondary { background: #fff; border-color: #dddfe7; color: #394761; }
.admin-secondary:hover { background: #f6f3ec; }
.admin-danger { background: #fbe8ea; color: #b41a30; border-color: #f4c5cd; }
.admin-primary > .arrow-icon, .admin-secondary > .arrow-icon { width: 16px; height: 14px; }
.admin-text-button { border: 0; background: transparent; padding: 10px 0; color: #8b5060; font-size: 14px; text-align: left; }
.admin-shell button:disabled, .admin-auth button:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.admin-back, .admin-muted { color: #838a99; font-size: 13px; }
.admin-alert, .admin-notice { border-radius: 16px; padding: 16px 20px; font-size: 14px; }
.admin-alert { color: #ab2034; background: #fcebed; }
.admin-notice { color: #495d50; background: #edf5ef; }
.admin-setup-card { max-width: 620px; width: 100%; }
.admin-qr { width: min(260px, 100%); justify-self: center; background: #fff; padding: 12px; border-radius: 18px; }
.admin-qr svg { display: block; width: 100%; height: auto; }
.admin-recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.admin-recovery code { font-family: monospace; font-size: 15px; overflow-wrap: anywhere; }
.admin-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100dvh; background: #f6f6f8; }
.admin-sidebar { position: sticky; top: 0; height: 100dvh; padding: 20px; background: #fff; border-right: 1px solid var(--admin-border); display: flex; flex-direction: column; gap: 12px; }
.admin-sidebar .brand { display: flex; align-items: center; }
.admin-sidebar .brand-logo { width: 44px; height: 44px; }
.admin-sidebar .brand strong { font-size: 14px; }
.admin-sidebar .brand span span { font-size: 9px; }
.admin-sidebar > .admin-eyebrow { margin: 0; }
.admin-nav { display: grid; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; }
.admin-nav-links {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .22s ease, opacity .18s ease;
}
.admin-nav-links.is-expanded { grid-template-rows: 1fr; opacity: 1; }
.admin-nav-link-list { display: grid; gap: 2px; min-height: 0; overflow: hidden; padding-inline-start: 12px; }
.admin-shell .admin-nav a, .admin-nav-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 32px;
    padding: 5px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #697386;
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.admin-shell .admin-nav-toggle { justify-content: space-between; gap: 8px; color: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.admin-nav-toggle::after { content: ''; width: 7px; height: 7px; flex: 0 0 auto; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); transition: transform .22s ease; }
.admin-nav-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
.admin-shell .admin-nav a:hover, .admin-nav-toggle:hover { background: #f7f6f3; }
.admin-shell .admin-nav a.is-active { background: #fcebed; color: #e4050f; font-weight: 700; }
.admin-shell .admin-nav a:focus-visible, .admin-nav-toggle:focus-visible { outline: 2px solid #f1a37e; outline-offset: -2px; }
.admin-main { padding: clamp(24px, 4vw, 56px); max-width: 1500px; min-width: 0; width: 100%; }
.admin-heading, .admin-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.admin-heading p { margin: 0 0 8px; }
.admin-panel { padding: clamp(20px, 3vw, 32px); background: #fff; border-radius: 24px; margin-bottom: 24px; border: 1px solid #eeeff3; box-shadow: 0 6px 28px #39476105; }
.admin-panel-heading { margin-bottom: 20px; }
.admin-panel-heading h2 { margin: 0; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.admin-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-bottom: 28px; }
.admin-metrics article { padding: 24px; border-radius: 22px; background: #fff; display: grid; gap: 10px; }
.admin-metrics span { font-size: 13px; color: #838a99; }
.admin-metrics strong { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.admin-metrics small { font-size: 11px; color: #9298a6; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-toolbar label { flex: 1; max-width: 460px; }
.admin-records { display: grid; gap: 16px; }
.admin-record { background: #fff; border-radius: 22px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.admin-record-copy { flex: 1 1 220px; min-width: 0; }
.admin-order-controls, .admin-order-arrows { display: flex; align-items: center; gap: 6px; }
.admin-shell .admin-drag-handle { padding: 6px; color: #697386; font-size: 22px; cursor: grab; -webkit-user-select: none; user-select: none; }
.admin-drag-handle:active { cursor: grabbing; }
.admin-order-arrows button { min-width: 32px; min-height: 32px; border: 1px solid var(--admin-border); border-radius: 8px; background: #fff; color: inherit; cursor: pointer; }
.admin-order-arrows button:disabled { opacity: .4; cursor: default; }
.admin-record.is-dragging { opacity: .55; }
.admin-records:has(.is-dragging) .admin-record:not(.is-dragging):hover { outline: 2px solid #f1a37e; }
.admin-integration-profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
.admin-integration-profile > button { margin-block-end: 8px; }
.admin-record h2 { font-size: 18px; margin: 10px 0; overflow-wrap: anywhere; }
.admin-record p { font-size: 13px; color: #9298a6; margin: 0; }
.admin-record-actions { display: flex; align-items: center; gap: 18px; }
.admin-badge { display: inline-block; background: #f6f3ec; color: #847b6b; padding: 4px 10px; font-size: 11px; border-radius: 100px; }
.admin-confirm { flex-basis: 100%; padding: 20px; border: 1px solid #f1c6cd; background: #fff7f8; border-radius: 16px; margin-top: 12px; }
.admin-confirm p { color: #394761; margin-bottom: 16px; }
.admin-confirm button { margin: 0 10px 8px 0; }
.admin-empty { padding: 32px 0; color: #838a99; }
.admin-image-preview { width: 160px; aspect-ratio: 4/3; overflow: hidden; border-radius: 16px; background: #f3f4f7; }
.admin-image-preview .design-image { width: 100%; height: 100%; }
.admin-image-preview img { object-fit: cover; }
.admin-attachment-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.admin-attachment-grid > div { display: grid; justify-items: start; }
.admin-attachment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.admin-attachment a { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.admin-attachment img { flex-shrink: 0; }
.admin-create-user { margin-top: 20px; }
.admin-temporary-password { display: grid; gap: 8px; margin-top: 20px; }
.admin-temporary-password code { overflow-wrap: anywhere; }
.admin-audit { list-style: none; margin: 0; padding: 0; }
.admin-audit li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding-block: 14px; border-bottom: 1px solid #eff0f5; font-size: 13px; }
.admin-audit time { color: #9399a6; }
.admin-inbox summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; cursor: pointer; list-style: none; }
.admin-inbox summary::-webkit-details-marker { display: none; }
.admin-inbox summary strong { flex: 1 1 150px; overflow-wrap: anywhere; }
.admin-inbox summary time { font-size: 13px; color: #697386; }
.admin-inbox-status { border-radius: 20px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.admin-inbox-status[data-status="Новая"] { color: #23467c; background: #e5efff; }
.admin-inbox-status[data-status="В работе"] { color: #774307; background: #fff0cf; }
.admin-inbox-status[data-status="Закрыта"] { color: #285841; background: #e4f4e9; }
.admin-inbox-toggle { display: inline-flex; align-items: center; gap: 12px; border-radius: 12px; padding: 8px 12px; background: #f5f5f8; font-size: 13px; font-weight: 700; }
.admin-inbox-toggle::after { content: ''; width: 7px; height: 7px; margin-inline-end: 2px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.admin-inbox[open] .admin-inbox-toggle::after { transform: rotate(225deg); }
.admin-inbox:not([open]) .admin-inbox-collapse, .admin-inbox[open] .admin-inbox-expand { display: none; }
.admin-inbox summary:hover .admin-inbox-toggle { background: #fcebed; }
.admin-details { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; margin-block: 24px; font-size: 14px; }
.admin-details dt { color: #838a99; }
.admin-details dd { margin: 0; overflow-wrap: anywhere; }
.admin-prose, .public-content-text { white-space: pre-line; overflow-wrap: anywhere; }
.admin-inbox label + label { margin-top: 16px; }
.admin-table-wrap { overflow-x: auto; }
.admin-shell table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
.admin-shell th, .admin-shell td { padding: 16px 12px; border-bottom: 1px solid #eceef3; overflow-wrap: anywhere; min-width: 120px; }
.admin-shell th { font-weight: 700; color: #838a99; }
.admin-mailing { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding-block: 18px; border-bottom: 1px solid #eceef3; }
.admin-mailing p { font-size: 13px; margin: 8px 0 0; }
.design-image[data-uploaded] img { object-fit: cover; }

/* A single fill boundary crosses the track and then the heart, at every width. */
.fund-progress-meter { container-type: inline-size; }
.fund-progress-meter .fund-progress-track { display: block; flex: 1; min-width: 0; height: 9px; overflow: hidden; border-radius: 10px; background: #e3e3e3; }
.fund-progress-meter .fund-progress-fill { display: block; width: clamp(0px, calc(100cqw * var(--fund-progress-ratio)), 100%); height: 100%; border-radius: inherit; background: #e4050f; }
.fund-progress-meter .fund-heart { align-items: center; justify-content: flex-end; }
.fund-progress-meter .fund-heart-icon { display: block; flex-shrink: 0; width: 31.5px; height: 27.9px; background: #e3e3e3; -webkit-mask: url('/icons/heart-filled.svg') center / 100% 100% no-repeat; mask: url('/icons/heart-filled.svg') center / 100% 100% no-repeat; }
.fund-progress-meter .fund-heart-fill { display: block; width: 100%; height: 100%; background: #e4050f; clip-path: inset(0 clamp(0px, calc(100cqw * (1 - var(--fund-progress-ratio))), 100%) 0 0); }
.hero-stack .fund-progress-meter .fund-progress-track { height: 10px; }
.hero-stack .fund-progress-meter .fund-heart-icon { width: 35px; height: 31px; }
.campaign-progress .fund-progress-meter .fund-progress-track { height: 11px; }
.campaign-progress .fund-progress-meter .fund-heart { width: 56.8px; }
.campaign-progress .fund-progress-meter .fund-heart-icon { width: 38.8px; height: 34.4px; }
@media (width < 1440px) { .hero-stack .fund-progress-meter .fund-heart-icon { width: 30px; height: 27px; } }
@media (width < 600px) { .campaign-progress .fund-progress-meter .fund-heart { width: 44px; } .campaign-progress .fund-progress-meter .fund-heart-icon { width: 32px; height: 29px; } }
.public-content-text { margin-block: 20px; }
@media (width < 1100px) { .admin-shell { grid-template-columns: 230px minmax(0, 1fr); } .admin-main { padding: 24px; } .admin-sidebar { padding: 24px 14px; } }
@media (width < 800px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: static; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--admin-border); }
    .admin-sidebar .brand { max-width: 280px; }
    .admin-main { padding: 24px 16px; }
    .admin-integration-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (width < 520px) { .admin-form-grid, .admin-details, .admin-audit li, .admin-recovery { grid-template-columns: minmax(0, 1fr); } .admin-details { gap: 6px; } .admin-details dd { margin-bottom: 12px; } .admin-heading, .admin-panel-heading, .admin-toolbar, .admin-inbox summary { align-items: flex-start; flex-direction: column; } .admin-toolbar label, .admin-toolbar > button { width: 100%; } .admin-auth { padding: 16px; } .admin-metrics { grid-template-columns: minmax(0, 1fr); } .admin-mailing { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .admin-shell *, .admin-auth * { transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .admin-nav-toggle::after { transition: none; } }

/* Published content can grow beyond the original fixed-size mockup. */
@media (width >= 1440px) {
    .news-catalog { height: auto; min-height: 0; }
    .news-catalog > .reports-description { position: static; height: auto; margin-top: 12px; }
    .news-catalog-grid { position: static; margin-top: 28px; }
    .news-more { position: static; margin-top: 42px; }
    .news-story-card { height: auto; min-height: 282px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; padding: 22px; }
    .news-story-card .news-story-image { position: relative; inset: auto; width: 236px; height: 238px; }
    .news-story-copy { position: static; width: auto; display: flex; flex-direction: column; align-items: flex-start; }
    .news-story-copy > *, .news-story-copy > .report-month, .news-story-copy > .button { position: static; width: auto; height: auto; }
    .news-story-copy h2 { margin-top: 12px; }
    .news-story-copy p { margin-top: 10px; }
    .news-story-copy .button { min-width: 157px; margin-top: 16px; }
    .reports-stories, .financial-reports { height: auto; }
    .reports-stories > .reports-description { position: static; margin-top: 12px; }
    .reports-featured-grid { position: static; margin-top: 26px; height: auto; }
    .reports-cards { position: static; margin-top: 26px; }
    .financial-list { position: static; margin-top: 28px; }
    .help-report-small { height: auto; min-height: 535px; padding: 29px 25px; }
    .help-report-small .help-report-image { position: relative; inset: auto; }
    .help-report-small .report-month { position: static; margin-top: 23px; }
    .help-report-small h3 { position: static; margin-top: 10px; width: auto; }
    .principle-card { height: auto; min-height: 599px; }
    .team-card { height: auto; }
    .team-copy .team-role { height: auto; }
    .project-card { height: auto; }
    .project-card-copy > p { height: auto; }
    .fundraising-section { height: auto; min-height: 720px; }
    .fundraising-section .fundraising-grid { position: relative; inset: auto; margin-top: 28px; }
    .fundraising-grid .fund-card { height: auto; min-height: 495px; padding: 14px; display: flex; flex-direction: column; }
    .fundraising-grid .fund-image { position: relative; inset: auto; width: 100%; flex-shrink: 0; }
    .fundraising-grid .fund-body { position: static; width: auto; padding: 12px 7px 7px; }
    .fundraising-grid .fund-label, .fundraising-grid .fund-card h3, .fundraising-grid .fund-amount,
    .fundraising-grid .fund-progress-row, .fundraising-grid .fund-description { position: static; width: 100%; }
    .fundraising-grid .fund-card h3 { margin-top: 6px; min-height: 60px; }
    .fundraising-grid .fund-amount { margin-top: 14px; }
    .fundraising-grid .fund-progress-row { margin-top: 6px; height: 32px; }
    .fundraising-grid .fund-description { margin-top: 8px; }
    .financial-document { display: grid; grid-template-columns: 71px minmax(0, 1fr) 70px 55px; align-items: center; gap: 16px; height: auto; padding: 25px; }
    .financial-document .financial-document-copy,
    .financial-document .financial-document-size, .financial-document .financial-download { position: static; transform: none; width: auto; }
    .financial-document .financial-document-image { position: relative; inset: auto; transform: none; width: 71px; height: 69px; overflow: hidden; }
    .financial-document .financial-download { width: 55px; }
    .campaign-about { height: auto; min-height: 510px; }
    .campaign-description { max-height: none; }
}
.news-card h3, .hero-stack .fund-card h3, .hero-stack .fund-description { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 3; }
.news-card h3 { -webkit-line-clamp: 2; }
.hero-counter { max-width: 100%; }
@media (width >= 1440px) {
    .news-catalog > .breadcrumbs, .news-catalog > h1 { position: static; }
    .news-catalog > h1 { margin-top: 20px; }
    .news-story-copy h2, .news-story-copy > p { position: static; width: auto; height: auto; }
    .news-more { text-align: center; }
    .all-fundraising { height: auto; min-height: 0; }
    .all-fundraising > .breadcrumbs { position: static; }
    .funds-heading { position: relative; inset: auto; height: auto; margin-top: 24px; align-items: center; }
    .all-fundraising > .all-funds-grid, .all-fundraising > .funds-empty { position: relative; inset: auto; margin-top: 24px; }
    .fundraising-heading { position: static; }
    .project-card { display: grid; grid-template-columns: 426px minmax(0, 1fr); gap: 31px; padding: 28px; }
    .project-card-image { position: relative; inset: auto; }
    .project-card-copy { position: static; width: auto; padding-top: 16px; }
    .project-card h2 { height: auto; width: auto; }
    .help-report-featured { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 31px; height: auto; min-height: 377px; padding: 25px; }
    .help-report-featured .help-report-image { position: relative; inset: auto; }
    .help-report-featured .help-report-copy { position: static; width: auto; }
    .help-report-featured .help-report-copy h3, .help-report-featured .help-report-copy p,
    .help-report-featured .help-report-copy .button { position: static; width: auto; margin-top: 14px; }
    .help-report-featured .help-report-copy .button { min-width: 197px; }
    .legal-document-list .financial-document:nth-child(n) { height: auto; min-height: 136px; padding: 25px; }
    .legal-layout { height: auto; }
    .campaign-hero { display: grid; grid-template-columns: minmax(0, 1fr) 517px; gap: 90px; height: auto; }
    .campaign-hero-copy { position: relative; }
    .campaign-hero .breadcrumbs, .campaign-hero h1, .campaign-hero-copy > .reports-description,
    .campaign-impact { position: static; }
    .campaign-hero h1 { margin-top: 22px; }
    .campaign-hero-copy > .reports-description { margin-top: 20px; }
    .campaign-impact { margin-top: 32px; }
    .campaign-donation-panel { position: relative; inset: auto; grid-column: 2; grid-row: 1; width: auto; }
    .campaign-progress, .campaign-progress .fund-progress-row { width: 100%; }
    .campaign-about { display: grid; grid-template-columns: minmax(0, 1fr) 408px; gap: 44px; padding: 34px 37px; }
    .campaign-about h2, .campaign-description, .campaign-perks { position: static; width: auto; }
    .campaign-description { margin-top: 18px; }
    .campaign-related { height: auto; }
}
.hero-stack .fund-card h3 { -webkit-line-clamp: 2; }
