/*
 * «Речі для малечі»: /charity/, /charity/mistsia/ і сторінки місць (inc/charity.php).
 * Картки місць - як картки зустрічей на головній (.lecture-card у style.css), але зі
 * своїми класами: у style.css .lecture-card описано кілька разів для різних сторінок.
 */

/* ---------- перший екран: текст блоками ---------- */
.charity-points { display: grid; gap: 10px; margin-top: 22px; max-width: 560px; }
.charity-point { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.charity-point p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.charity-point-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.charity-point-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero .sub.charity-sub { margin-top: 16px; font-size: 15px; }

/* ---------- картки місць ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { position: relative; display: flex; min-height: 460px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.case-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: linear-gradient(135deg, var(--pink-tint), var(--teal-tint)); }
.case-card-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,.88) 55%, rgba(255,255,255,.98) 85%); }
.case-card-content { position: relative; z-index: 2; margin-top: auto; width: 100%; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.case-card-title { font-size: 18px; font-weight: 800; color: var(--violet); line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card:hover .case-card-title { color: var(--pink); }
.case-card-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-card-loc { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.case-card-loc svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-card-foot { margin-top: 6px; }
.case-card .btn { pointer-events: none; }

@media (max-width: 900px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Телефон: фото зверху, текст під ним (як картки зустрічей на головній). */
@media (max-width: 640px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-card { flex-direction: column; min-height: 0; }
  .case-card-photo { position: relative; inset: auto; height: 200px; flex: 0 0 auto; }
  .case-card-overlay { display: none; }
  .case-card-content { margin-top: 0; }
}

/* ---------- сторінка місця (розкладка - .spec-hero зі style.css) ---------- */
.spec-hero.case-hero-single { grid-template-columns: 1fr; max-width: 820px; }
.case-body .spec-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.case-body .wp-block-embed { margin: 0; }
.case-body .wp-block-embed__wrapper { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; background: #1b1530; }
.case-body .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-body video, .case-body .wp-block-image img { width: 100%; height: auto; border-radius: 16px; display: block; }
.case-body figure { margin: 12px 0 0; }
.case-body figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; text-align: center; }
.case-archive-title { font-size: 36px; }

/* ---------- звіти ---------- */
.charity-reports .reports-table th:last-child, .charity-reports .reports-table td:last-child { text-align: right; white-space: nowrap; }
.charity-reports .reports-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--violet); }
@media (max-width: 640px) {
  .charity-reports { border: 0; overflow: visible; }
  .charity-reports .reports-table { min-width: 0; }
  .charity-reports .reports-table thead { display: none; }
  .charity-reports .reports-table tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
  .charity-reports .reports-table td { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 6px 0; text-align: right; }
  .charity-reports .reports-table td::before { content: attr(data-label); font-weight: 700; color: var(--violet); text-align: left; }
  .charity-reports .reports-table td:last-child { justify-content: flex-end; }
  .charity-reports .reports-table td:last-child::before { content: none; }
}

/* ---------- «Хочете допомогти?» ---------- */
.charity-info-title { font-size: 16px; color: var(--violet); margin-bottom: 6px; }
.cta-box p + p { margin-top: 10px; }

/* ============================================================
 * 16.11.2026: картка й сторінка закладу / людини, «Хочу допомогти» (inc/charity-help.php)
 * ============================================================ */
.chp-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.chp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.chp-card[hidden] { display: none; }
.chp-card-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--pink-tint), var(--teal-tint)); overflow: hidden; }
.chp-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.chp-card:hover .chp-card-photo img { transform: scale(1.04); }
.chp-kind { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 100px; background: #fff; color: var(--violet); font-size: 12px; font-weight: 800; box-shadow: 0 6px 16px rgba(46,18,112,.14); }
.chp-kind svg, .chp-chip svg, .chp-way-mini svg, .chp-filter-btn svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chp-kind.is-org svg { color: var(--teal); }
.chp-kind.is-person svg { color: var(--pink); }
.chp-kind.is-inline { position: static; box-shadow: none; background: var(--pink-tint); }
.chp-private { position: absolute; right: 14px; top: 14px; padding: 5px 10px; border-radius: 100px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 700; }
.chp-private.is-inline { position: static; }
.chp-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.chp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); background: var(--teal-tint); padding: 5px 10px; border-radius: 100px; }
.chp-chip.is-loc { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--ink-soft); background: #f5f1f6; }
.chp-chip.is-loc svg { color: var(--teal); }
.chp-card-title { font-size: 18px; line-height: 1.3; margin: 0; }
.chp-card-title a { color: var(--violet); text-decoration: none; }
.chp-card-title a:hover { color: var(--pink); }
.chp-card-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chp-ways-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 12.5px; }
.chp-ways-mini-l { flex: 0 0 100%; color: var(--ink-soft); font-weight: 600; }
.chp-way-mini { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 10px; font-weight: 700; }
.chp-way-mini.is-things { background: var(--pink-tint); color: var(--pink); }
.chp-way-mini.is-money { background: var(--teal-tint); color: var(--teal); }
.chp-card-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chp-card-foot .btn { flex: 1 1 auto; text-align: center; justify-content: center; }

/* фільтр */
.chp-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.chp-filter-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; color: var(--violet); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s; }
.chp-filter-btn span { font-size: 12px; color: var(--ink-soft); background: #f5f1f6; border-radius: 100px; padding: 1px 8px; }
.chp-filter-btn:hover { border-color: var(--pink); }
.chp-filter-btn.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.chp-filter-btn.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.chp-empty { text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* сторінка: перший екран */
.chp-passport h1 { margin-top: 14px; }
.chp-lead { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-top: 12px; }
.chp-ways { margin-top: 22px; }
.chp-ways-h { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); margin-bottom: 10px; }
.chp-ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chp-ways-grid.is-single { grid-template-columns: 1fr; max-width: 340px; }
.chp-way { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.chp-way b { display: block; color: var(--violet); font-size: 15px; }
.chp-way small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.chp-way-ic, .chp-opt-ic, .chp-panel-ic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.chp-way-ic svg, .chp-opt-ic svg, .chp-panel-ic svg, .chp-done-icon svg, .chp-info-h svg, .chp-file svg, .chp-copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chp-way.is-things .chp-way-ic { background: var(--pink-tint); color: var(--pink); }
.chp-way.is-money .chp-way-ic { background: var(--teal-tint); color: var(--teal); }
.chp-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* сторінка: розділи картками */
.chp-hero-section { padding-bottom: 56px; }
.chp-panels-section { padding-top: 48px; }
/* дві колонки: «Потреби» праворуч на дві клітинки, решта ліворуч по черзі - без порожнин */
.chp-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; grid-auto-flow: row dense; margin-bottom: 20px; }
.chp-panel { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chp-panel.is-needs { grid-column: 2; grid-row: span 2; }
.chp-panel.is-wide { grid-column: 1 / -1; }
.chp-panel:nth-child(3n+1) .chp-panel-ic { background: var(--teal-tint); color: var(--teal); }
.chp-panel:nth-child(3n+2) .chp-panel-ic { background: var(--pink-tint); color: var(--pink); }
.chp-panel:nth-child(3n) .chp-panel-ic { background: #efeaf8; color: var(--violet); }
.chp-panel-body { flex: 1; min-width: 0; }
.chp-panel-body .spec-block { margin: 0; padding: 0; border: 0; }
.chp-panel-body .spec-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); margin: 10px 0; }
.chp-panel-body p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.chp-panel-body p + p { margin-top: 10px; }
.chp-panel-body ul { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.chp-panel-body ul li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.chp-panel-body ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.chp-file { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--teal-tint); color: var(--violet); text-decoration: none; transition: .2s; }
.chp-file:hover { background: #d9efef; }
.chp-file svg { color: var(--teal); flex: 0 0 22px; width: 22px; height: 22px; }
.chp-file b { display: block; font-size: 14.5px; }
.chp-file small { display: block; font-size: 12.5px; color: var(--ink-soft); }
.chp-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 4px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(120deg, var(--pink-tint), var(--teal-tint)); }
.chp-band b { display: block; font-size: 18px; color: var(--violet); }
.chp-band span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* анкета «Хочу допомогти» */
.popup.chp-popup { max-width: 480px; text-align: left; max-height: calc(100vh - 40px); overflow-y: auto; }
.chp-popup .eyebrow { display: block; text-align: center; }
.chp-popup h3 { text-align: center; color: var(--violet); }
.chp-popup form > .field:first-of-type { margin-top: 18px; }
.chp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chp-choice { display: grid; gap: 10px; margin: 4px 0 14px; }
.chp-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s; }
.chp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chp-opt b { display: block; font-size: 14.5px; color: var(--violet); }
.chp-opt small { display: block; font-size: 12.5px; color: var(--ink-soft); }
.chp-opt:hover { border-color: var(--pink); }
.chp-opt.is-on { border-color: var(--pink); background: #fff8fd; box-shadow: 0 0 0 3px rgba(164,66,149,.08); }
.chp-opt .chp-opt-ic { background: var(--teal-tint); color: var(--teal); }
.chp-choice .chp-opt:first-child .chp-opt-ic { background: var(--pink-tint); color: var(--pink); }
.chp-choice.is-single .chp-opt { cursor: default; }
.chp-info { margin: 4px 0 6px; padding: 14px 16px; border-radius: 14px; background: #f8f5fa; text-align: left; }
.chp-info-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--violet); }
.chp-info-h svg { width: 17px; height: 17px; color: var(--teal); }
.popup .chp-info p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.popup .chp-info .chp-purpose { font-weight: 700; }
.popup .chp-info .chp-soon { font-size: 13px; color: var(--ink-soft); background: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.chp-bank { display: grid; gap: 4px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; }
.chp-bank span { font-size: 12.5px; color: var(--ink-soft); }
.chp-bank b { font-size: 18px; letter-spacing: .06em; color: var(--violet); }
.chp-copy { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--teal-tint); color: var(--teal); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.chp-copy svg { width: 16px; height: 16px; }
.chp-copy.is-done { background: var(--teal); color: #fff; }
.chp-pay { margin-top: 12px; }
.chp-consent { margin-top: 10px; }
.chp-error { color: #c0392b; font-size: 13.5px; margin-top: 10px; }
.chp-popup #chpSubmit { width: 100%; margin-top: 14px; justify-content: center; }
.chp-done { text-align: center; }
.chp-done-icon { width: 60px; height: 60px; margin: 6px auto 8px; border-radius: 50%; background: var(--pink-tint); color: var(--pink); display: flex; align-items: center; justify-content: center; }
.chp-done-icon svg { width: 28px; height: 28px; }
.popup .chp-small { font-size: 13px; }

@media (max-width: 900px) {
  .chp-panels { grid-template-columns: 1fr; }
  .chp-panel.is-needs { grid-column: auto; grid-row: auto; }
}
@media (max-width: 640px) {
  .chp-ways-grid { grid-template-columns: 1fr; }
  .chp-panel { flex-direction: column; gap: 10px; padding: 20px; }
  .chp-panels-section { padding-top: 36px; }
  .chp-hero-section { padding-bottom: 40px; }
  .chp-band { padding: 20px; }
  .chp-band .btn, .chp-cta .btn { width: 100%; justify-content: center; }
}
.chp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-top: 14px; }
.chp-consent input { margin-top: 3px; flex: 0 0 auto; }
.chp-consent a { color: var(--pink); }

/* ============================================================
 * 16.11.2026 (2): подяка, тестова сторінка, кабінет благодійника
 * ============================================================ */
.chp-hero-section { padding-bottom: 8px; }
.chp-panels-section { padding-top: 40px; }
.chp-test-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 100px; background: #fff3d6; color: #8a5a00; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.chp-private.is-test { background: #fff3d6; color: #8a5a00; }
.chp-test-warn { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: #fff3d6; border: 1px solid #f3dca0; color: #6b4600; font-size: 14px; font-weight: 600; line-height: 1.5; }
.popup .chp-test-warn { margin: 10px 0 0; text-align: center; font-size: 13px; }

/* «Дякуємо за допомогу» */
.chp-thanks { margin-top: 26px; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(135deg, #fff, var(--pink-tint)); border: 1px solid var(--line); }
.chp-thanks .chp-ways-h { display: flex; align-items: center; gap: 8px; }
.chp-thanks .chp-ways-h svg { width: 18px; height: 18px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chp-thanks-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; margin-top: 6px; }
.chp-thanks-org { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.chp-thanks-logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.chp-thanks-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.chp-thanks-logo svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chp-thanks-name { font-size: 12.5px; font-weight: 700; color: var(--violet); line-height: 1.3; }
.chp-thanks-people { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chp-thanks-orgs + .chp-thanks-people { border-top: 1px dashed #e6dcea; padding-top: 14px; }
.chp-thanks-people li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chp-thanks-people svg { width: 14px; height: 14px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* поля «що передати / зв'язок / подяка» */
.chp-popup textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-family: inherit; font-size: 14px; box-sizing: border-box; resize: vertical; }
.chp-popup input[type=file] { width: 100%; font-size: 13px; }
.chp-popup .chp-consent + .chp-consent { margin-top: 8px; }

/* кабінет: форма «Передати допомогу» */
.chd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chd-form .chp-info { background: #fff; }
.chd-form .chp-info p { margin: 8px 0 0; font-size: 14px; white-space: pre-line; }
.chd-form .chp-soon { font-size: 13px; color: var(--ink-soft); }
.chd-form .chp-consent { margin-top: 0; }
.chd-form .chp-pane[hidden], .chd-form [data-chp-only][hidden] { display: none; }
.chd-pick-btn { justify-self: start; }
.chd-pick-btn:disabled { opacity: .5; cursor: not-allowed; }
.chd-picked[hidden] { display: none; }
.chd-picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1.5px solid var(--pink); border-radius: 14px; }
.chd-picked img { width: 56px; height: 44px; object-fit: cover; border-radius: 10px; }
.chd-picked b { color: var(--violet); font-size: 15px; }
.popup.chd-pick { max-width: 720px; }
.chd-pick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.chd-pick-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; text-align: left; }
.chd-pick-card[hidden] { display: none; }
.chd-pick-photo { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--pink-tint), var(--teal-tint)); }
.chd-pick-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chd-pick-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.chd-pick-body b { color: var(--violet); font-size: 15px; line-height: 1.3; }
.chd-pick-body small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.chd-pick-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.chd-pick-actions .link-teal { font-size: 13px; font-weight: 700; }
.chd-history { display: grid; gap: 10px; margin-bottom: 10px; }
.chd-hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.chd-hist-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.chd-hist-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chd-hist-main { flex: 1; min-width: 0; }
.chd-hist-main b { display: block; color: var(--violet); font-size: 14.5px; }
.chd-hist-main small { color: var(--ink-soft); font-size: 12.5px; }

/* кабінет: профіль благодійника */
.charity-seg { display: inline-flex; gap: 6px; padding: 4px; border-radius: 100px; background: #fff; border: 1px solid var(--line); justify-self: start; }
.charity-seg label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 100px; font-size: 14px; font-weight: 600; cursor: pointer; }
.charity-seg label:has(input:checked) { background: var(--violet); color: #fff; }
.charity-seg input { position: absolute; opacity: 0; pointer-events: none; }
.charity-org-only { display: none; }
.is-org .charity-org-only { display: grid; }

@media (max-width: 640px) {
  .chd-row, .chd-pick-list { grid-template-columns: 1fr; }
}

/* ============================================================
 * 16.11.2026 (3): компактні форми, сторінка благодійника, «усі благодійники»
 * ============================================================ */
/* форми кабінету в дві колонки (на телефоні - одна) */
.charity-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.charity-row2 > * { min-width: 0; }
.charity-row2.charity-org-only { display: none; }
.is-org .charity-row2.charity-org-only { display: grid; }
.charity-org-only-p { display: none; margin: 0; }
.is-org .charity-org-only-p { display: block; }
.charity-field input[type=file] { padding: 8px 10px; font-size: 13px; max-width: 100%; }
.charity-field small.hint { font-size: 12.5px; }
.charity-row2 .charity-field textarea { min-height: 112px; }
.charity-card .hint.is-warn { color: #8a5a00; }
@media (max-width: 640px) {
  .charity-row2, .is-org .charity-row2.charity-org-only { grid-template-columns: minmax(0, 1fr); }
}

/* «Дякуємо»: 5 організацій в один рядок */
.chp-thanks-orgs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.chp-thanks-org { min-width: 0; text-decoration: none; color: inherit; }
a.chp-thanks-org:hover .chp-thanks-logo { box-shadow: 0 0 0 2px var(--pink), var(--shadow); }
.chp-thanks-logo { width: 100%; max-width: 64px; height: auto; aspect-ratio: 1; }
.chp-thanks-name { overflow-wrap: anywhere; font-size: 12px; }
.chp-thanks-people li[hidden] { display: none; }
.chp-thanks-all { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--teal); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chp-thanks-all:hover { text-decoration: underline; }
.chp-thanks-all[hidden] { display: none; }

/* вікно «усі благодійники» */
.popup.chp-thanks-pop { max-width: 720px; text-align: left; }
.chp-thanks-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.chp-thanks-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.chp-thanks-pop h3 { margin: 6px 0 14px; color: var(--violet); }
.chp-thanks-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chp-thanks-tabs button { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.chp-thanks-tabs button.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.chp-thanks-list { min-height: 120px; }
.chp-thanks-list.is-loading { opacity: .5; }
.chp-thanks-orgs.is-all { row-gap: 16px; }
.chp-thanks-people.is-all { margin-top: 0; }
.chp-thanks-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.chp-thanks-pager[hidden] { display: none; }
.chp-thanks-pager button:disabled { opacity: .4; cursor: default; }
@media (max-width: 640px) {
  .chp-thanks-orgs { gap: 6px; }
  .chp-thanks-name { font-size: 11px; }
}

/* сторінка організації-благодійника */
.chd-donor-head { display: flex; align-items: center; gap: 16px; }
.chd-donor-head h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chd-donor-logo { flex: 0 0 76px; max-width: 76px; }
.chd-donor-about p { margin: 0 0 10px; }
.chd-donor-places { display: grid; gap: 10px; }
.chd-donor-place { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: inherit; min-width: 0; }
.chd-donor-place:hover { border-color: var(--pink); }
.chd-donor-place-img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.chd-donor-place-img img { width: 100%; height: 100%; object-fit: cover; }
.chd-donor-place-img svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chd-donor-place b { display: block; color: var(--violet); font-size: 15px; }
.chd-donor-place small { color: var(--ink-soft); font-size: 12.5px; }
.chp-thanks-pop .chp-thanks-people li::before { content: none; display: none; }
.chp-thanks-pop .chp-thanks-people li { margin: 0; padding: 6px 12px; }
.chp-thanks-pop { text-align: center; }
.chp-thanks-pop .chp-thanks-eyebrow { justify-content: center; }
.chp-thanks-pop .chp-thanks-tabs { justify-content: center; }
.chp-thanks-pop .chp-thanks-list { text-align: left; }
.chp-thanks-name { hyphens: auto; }
.chp-thanks-pop .chp-thanks-eyebrow { display: flex; }
.charity-stack { display: grid; gap: 12px; align-content: start; min-width: 0; }
.charity-stack > .charity-field.charity-org-only { display: none; }
.is-org .charity-stack > .charity-field.charity-org-only { display: grid; }
/* скриті радіокнопки перемикача «Людина / Організація» не мають розтягувати сторінку на телефоні */
.charity-seg label { position: relative; }
.charity-seg input { width: 1px !important; height: 1px; margin: 0; left: 0; top: 0; }

/* Анкети: «пастка» для ботів і помилка розміру файлу (16.11.2026) */
.charity-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.charity-file-err{display:block;margin-top:6px;color:#b42318;font-size:13px;line-height:1.4}
.charity-org-only-inline { display: none; }
.is-org .charity-org-only-inline { display: inline; }
.is-org .charity-person-only { display: none; }
.charity-file-err[hidden]{display:none}

/* «Звіти» у вікні й фото у відгуках закладів (16.11.2026) */
.chr-all-wrap { margin-top: 22px; }
.popup.chr-pop { max-width: 900px; text-align: left; }
.chr-pop h3 { margin: 6px 0 14px; color: var(--violet); }
.chr-pop .chp-thanks-eyebrow { display: flex; }
.chr-pop .reports-table tbody.is-loading { opacity: .5; }
.chr-pop .table-wrap { margin: 0; }
.quote-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 18px; }
.quote-photos a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.quote-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
