/* zadonat — стилі публічної частини. Без збірки: звичайний CSS. */
:root {
  --ink: #14161A;
  --ink-2: #2E3238;
  --muted: #5A5F66;
  --line: #E2E4DC;
  --line-2: #D3D6CC;
  --bg: #F3F4EF;
  --card: #FFFFFF;
  --dark-2: #23262C;
  --dark-muted: #C9CCD2;
  --accent: #FFD23F;
  --ok-bg: #DDF3E6; --ok: #0F5A34;
  --warn-bg: #FFF0CC; --warn: #6B4500;
  --bad-bg: #FFE1DC; --bad: #8A1C0C;
  --info-bg: #E3EEFB; --info: #1A4E8A;
  --radius: 16px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: #3A3F46; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.display { font-family: var(--display); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-accent { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.btn-accent:hover { filter: brightness(.97); }
.btn-outline { border: 2px solid var(--ink); font-weight: 700; }
.btn-danger { color: var(--bad); border-color: #E8B4AA; font-weight: 700; }
.btn-ok { background: var(--ok); color: #fff; border-color: var(--ok); font-weight: 700; }
.btn-lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* Бейджі і чипи */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: #EEF0EA; color: #4A4F57; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-new, .badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-gray { background: #EEF0EA; color: #4A4F57; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 600; }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-dark { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Шапка */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.site-header .container { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: nowrap; align-items: center; gap: 24px; }
.logo { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 18px; }
.main-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; white-space: nowrap; min-width: 0; }
.main-nav a { text-decoration: none; color: var(--muted); }
.main-nav a.is-active, .main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; margin-left: auto; flex: none; }
.header-actions .btn { white-space: nowrap; }

/* Герой */
.hero { background: var(--ink); color: #fff; }
.hero .container { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hero h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); letter-spacing: -.01em; }
.hero p { font-size: 18px; color: var(--dark-muted); max-width: 620px; }
.hero-badge { align-self: flex-start; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1 1 300px; }
.steps li { display: flex; gap: 14px; align-items: center; background: var(--dark-2); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.steps .num { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Форми */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); }
textarea.input { padding: 10px 12px; min-height: 100px; resize: vertical; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.error { color: var(--bad); font-size: 13px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; }
.check input { width: 18px; height: 18px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* Картки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 24px; }
.card-strong { border: 2px solid var(--ink); }
.card-dark { background: var(--ink); color: #fff; border-radius: 20px; padding: 24px; }
.grid-lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.lot-card { display: flex; flex-direction: column; overflow: hidden; }
.thumb { height: 180px; position: relative; text-decoration: none; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #E9EBE3 0 12px, #F1F2EC 12px 24px); color: var(--muted); font-size: 13px; font-weight: 600; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .pill-dark { position: absolute; top: 12px; left: 12px; }
.lot-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.lot-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.jar-box { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.progress { height: 6px; background: #DADDD3; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.progress-lg { height: 10px; }
.card-dark .progress { background: #33373F; }
.card-dark .progress > span { background: var(--accent); }
.price { font-family: var(--display); font-size: 20px; font-weight: 700; }
.lot-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }

/* Сторінка лота */
.layout-2 { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.layout-2 > .main { flex: 999 1 560px; min-width: 0; }
.layout-2 > .side { flex: 1 1 360px; min-width: 0; }
.gallery-main { height: 420px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.gallery-main.thumb { height: 420px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.fact { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.fact .k { font-size: 12px; color: var(--muted); }
.fact .v { font-weight: 700; margin-top: 2px; }
.sum-box { background: var(--dark-2); border-radius: 14px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sum { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--accent); }
.card-dark .muted { color: var(--dark-muted); }
.card-dark .btn { background: transparent; color: #fff; border-color: #4A4F57; }
.card-dark .btn-light { background: #fff; color: var(--ink); border-color: #fff; font-weight: 700; }
.share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.breadcrumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #E9EBE3; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }

/* Повідомлення */
.flash { border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: var(--warn-bg); color: var(--warn); }

/* Таблиці кабінету */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid #EEF0EA; vertical-align: top; }
.cabinet-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.cabinet-nav a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--muted); }
.cabinet-nav a.is-active { background: var(--ink); color: #fff; font-weight: 700; }
.count { background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.code-big { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: .06em; background: var(--accent); padding: 10px 18px; border-radius: 12px; }

details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
details.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
details.faq p { margin-top: 10px; color: var(--ink-2); }

.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 48px; }
.site-footer .container { padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1fr; gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer-col b { color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.footer-col a { color: var(--muted); text-decoration: none; line-height: 1.4; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-col .footer-more { color: var(--ink); font-weight: 700; }
.footer-about p { line-height: 1.5; max-width: 300px; }
.footer-about .logo { color: var(--ink); }
.footer-about .logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; padding: 0 12px; }
.pagination .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { color: #A3A8AE; }

/* Шторка поділитися (мобільна) */
.share-sheet[hidden] { display: none; }
.share-sheet { position: fixed; inset: 0; background: rgba(20,22,26,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.share-sheet .sheet { background: var(--card); width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero .container { padding-top: 28px; padding-bottom: 28px; }
  .gallery-main, .gallery-main.thumb { height: 300px; }
  .card-pad { padding: 18px; }
  .layout-2 > .side { order: -1; }
  .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-cta { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px; margin: 0 -16px; display: flex; gap: 12px; align-items: center; z-index: 10; }
}
@media (min-width: 641px) { .sticky-cta { display: none; } }

/* Картка збору */
.grid-jars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.jar-card { --gap: 10px; padding: 18px; text-decoration: none; color: inherit; transition: border-color .15s; }
.jar-card:hover { border-color: var(--ink); }
.jar-card-title { font-weight: 700; font-size: 17px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }

/* Прогрес збору */
.progress > span { transition: width .4s ease; }
.progress-done > span { background: var(--ok); }
.card-dark .progress-done > span { background: var(--ok-bg); }
.progress-open { background: repeating-linear-gradient(135deg, #DADDD3 0 6px, #EBEDE6 6px 12px); }

[hidden] { display: none !important; }

/* Аукціон */
.mode-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mode-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--card); }
.mode-option > span { display: flex; flex-direction: column; gap: 2px; }
.mode-option input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.mode-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.auction-timer { background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.auction-timer .muted { color: #A9ADB5; }
.auction-countdown { font-family: var(--display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.auction.is-ending .auction-timer { background: var(--accent); color: var(--ink); }
.auction.is-ending .auction-timer .muted { color: var(--ink-2); }
.bid-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.bid-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.bid-list li:first-child { border-top: 0; }
.bid-list li:first-child b { color: var(--ok); }
.auction-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.lot-card-chip { position: absolute; top: 12px; right: 12px; }
.pill-auction.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Відео */
.video-frame { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); display: block; }
.hero-video-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid #3A3E45; }
.hero-video-link:hover { border-color: var(--accent); }
.hero-video-link .play { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding-left: 2px; }


/* Герой: дії і відео */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.btn-hero-outline { background: transparent; color: #fff; border: 1px solid #4A4F57; }
.btn-hero-outline:hover { border-color: var(--accent); }
.video-dialog { border: 0; padding: 16px; background: var(--ink); border-radius: 20px; width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); display: none; flex-direction: column; gap: 10px; }
.video-dialog[open] { display: flex; }
.video-dialog::backdrop { background: rgba(10, 11, 13, .7); }
.video-dialog video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.video-close { align-self: flex-end; }

/* Текст користувача */
.rich-text { line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.rich-text a { color: var(--ink); }
.bank-desc { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.photo-thumb { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.photo-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.delivery-options { display: flex; flex-direction: column; gap: 2px; }
.delivery-options .check { align-items: flex-start; }
.delivery-options .check input { margin-top: 2px; flex: none; }
iframe.video-frame { border: 0; background: #000; }
.video-yt { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-yt iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Юридичні сторінки */
.legal { line-height: 1.7; color: var(--ink-2); }
.legal h2 { font-family: var(--display); font-size: 20px; color: var(--ink); line-height: 1.3; }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal section.stack { --gap: 10px; }
.legal-short { display: flex; flex-direction: column; gap: 10px; background: var(--warn-bg); border-color: #F2DFA6; }
.legal h1 { color: var(--ink); }

/* Фонди */
.fund-list { display: flex; flex-direction: column; gap: 16px; }
.fund { display: flex; flex-direction: column; gap: 16px; }
.fund-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.fund-head > .stack { flex: 1 1 300px; }
.fund-logo { width: 64px; height: 64px; flex: none; border-radius: 16px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 26px; overflow: hidden; }
.fund-logo img { width: 100%; height: 100%; object-fit: cover; }
.fund-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.requisites th { width: 28%; font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; }
.requisites td { overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

/* Шапка в один рядок: пошук — іконкою, відкривається попапом */
.icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .04em; padding: 0; }
.icon-btn:hover { border-color: var(--ink); }
.search-dialog { border: 0; padding: 20px; margin: 10vh auto auto; width: min(640px, calc(100vw - 32px)); border-radius: 20px; background: var(--card); box-shadow: 0 24px 60px rgba(20,22,26,.25); display: none; flex-direction: column; gap: 16px; position: fixed; }
.search-dialog[open] { display: flex; }
.search-dialog::backdrop { background: rgba(20,22,26,.45); }
.search-dialog .search { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 14px; padding: 6px 6px 6px 16px; margin-right: 40px; }
.search-dialog .search input { border: 0; background: transparent; font: inherit; font-size: 17px; flex: 1; min-width: 0; outline: none; height: 44px; }
.search-dialog .search input::-webkit-search-cancel-button { display: none; }
.search-cats { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.search-cats-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-close { position: absolute; top: 24px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); }
.search-close:hover { background: var(--bg); color: var(--ink); }
/* Що ховаємо, коли не вміщається */
/* «Як це працює» — лише у випадному меню (на десктопі є в герої й футері) */
.main-nav .nav-how { display: none; }
@media (max-width: 1099px) { .header-actions .btn-outline { display: none; } }
.nav-extra, .menu-btn { display: none !important; }
@media (max-width: 899px) {
  .menu-btn { display: inline-flex !important; }
  .main-nav { display: none; }
  .main-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20,22,26,.12); padding: 8px 16px 14px; font-size: 16px; }
  .main-nav.is-open a { padding: 13px 8px; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; gap: 8px; }
  .main-nav.is-open a:last-child { border-bottom: 0; }
  .main-nav.is-open a.is-active { font-weight: 700; }
  .main-nav.is-open .nav-how, .main-nav.is-open .nav-extra { display: flex !important; }
}
@media (max-width: 640px) {
  .site-header .container { gap: 10px; }
  .logo-text { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 0 12px; font-size: 14px; }
  .header-actions .btn:not(.btn-dark) { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .search-dialog { margin-top: 12px; padding: 14px; }
  .search-dialog .search { margin-right: 36px; }
  .search-dialog .search .btn { display: none; }
  .search-close { top: 16px; right: 10px; }
}

/* Підтвердження пошти */
.verify-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--warn-bg); color: var(--ink); border: 1px solid #F2DFA6; border-radius: 16px; padding: 14px 16px; }
.verify-banner > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; }
.verify-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* Бригади: картки на головній і на сторінці бригад */
.grid-brigades { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.brigade-card { display: flex; align-items: center; gap: 14px; padding: 14px; text-decoration: none; color: inherit; transition: border-color .15s; min-width: 0; }
.brigade-card:hover { border-color: var(--ink); }
.brigade-emblem { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brigade-emblem img { width: 100%; height: 100%; object-fit: cover; }
.brigade-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.brigade-card-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

/* «Випадковий збір» у меню */
.main-nav .nav-random { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.main-nav .nav-random svg { color: var(--ink); }
.main-nav .nav-random:hover svg { transform: rotate(-12deg); transition: transform .15s; }
@media (max-width: 1179px) { .main-nav .nav-random span { display: none; } }
@media (max-width: 899px) { .main-nav.is-open .nav-random span { display: inline; } }
.cabinet-btn { position: relative; }
.dot-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); letter-spacing: 0; }
@media (max-width: 640px) { .header-actions .cabinet-btn { display: none; } }

/* Вхід через Google */
.btn-google { gap: 10px; background: #fff; border: 1px solid var(--line-2); font-weight: 700; }
.btn-google:hover { border-color: var(--ink); }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Кабінет волонтера */
.cabinet-kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.impact { background: var(--ink); color: #fff; border-color: var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.impact-lead { color: #C9CCD2; font-weight: 600; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.impact-tile { background: #23262C; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.impact-num { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--accent); white-space: nowrap; }
.impact-label { font-size: 13px; color: #C9CCD2; line-height: 1.35; }
.impact-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Статті */
.grid-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.article-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s; }
.article-card:hover { border-color: var(--ink); }
.article-cover { aspect-ratio: 16 / 9; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.article-card-title { font-weight: 800; font-size: 18px; line-height: 1.3; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.article { max-width: 760px; }
.article-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.article-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); font-weight: 600; }
.article-cover-big { width: 100%; border-radius: 18px; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body h2 { font-family: var(--display); font-size: 24px; line-height: 1.25; margin: 28px 0 10px; color: var(--ink); }
.article-body h3 { font-size: 20px; margin: 22px 0 8px; color: var(--ink); }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 14px; }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; margin: 0 0 14px; color: var(--ink-2); }
.article-body a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.article-cta { display: flex; flex-direction: column; gap: 8px; }
.article-side { min-width: 0; }
.article-layout.no-side { grid-template-columns: minmax(0, 1fr); }
.ad-slot { position: relative; margin: 20px 0; padding-top: 18px; min-height: 90px; text-align: center; overflow: hidden; }
.ad-sidebar { margin: 0; min-height: 250px; }
.ad-label { position: absolute; top: 0; left: 0; right: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-side { position: static; } }

/* Схожі статті */
.related { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.related .grid-articles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.footer-about .logo-text { display: inline !important; }

/* Банер згоди на cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.3); font-size: 14px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; color: #C9CCD2; }
.consent a { color: #fff; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { background: transparent; color: #fff; border-color: #4A4F57; }
.consent .btn-dark { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* Профіль автора */
.profile-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.profile-avatar { width: 84px; height: 84px; font-size: 30px; background: var(--accent); }
.profile-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-stats > div { background: var(--bg); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; min-width: 120px; }
.profile-stats b { font-family: var(--display); font-size: 20px; }
.profile-stats span { font-size: 13px; color: var(--muted); }
.profile-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.author-socials { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 600; margin-top: -6px; }
.author-socials a { color: var(--ink); }

/* Фонди / Волонтери: вкладки і картки волонтерів */
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #EEF0EA; border-radius: 14px; align-self: flex-start; max-width: 100%; }
.seg-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--muted); }
.seg-tabs a span { font-size: 12px; font-weight: 700; background: rgba(20,22,26,.08); border-radius: 999px; padding: 2px 8px; }
.seg-tabs a.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20,22,26,.12); }
.grid-volunteers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.volunteer-card { display: flex; flex-direction: column; gap: 14px; }
.volunteer-head { display: flex; gap: 14px; align-items: center; }
.volunteer-name { font-size: 20px; }
.volunteer-name a { text-decoration: none; color: inherit; }
.volunteer-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 22px; overflow: hidden; text-decoration: none; color: var(--ink); }
.volunteer-photo img { width: 100%; height: 100%; object-fit: cover; }
.volunteer-photo-lg { width: 112px; height: 112px; font-size: 36px; }
.volunteer-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.verified-mark { color: var(--ok); font-weight: 700; }
.vjar { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-radius: 14px; }
.volunteer-card .vjar { background: #F7F8F4; }
.vjar-title { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.vjar-desc { overflow-wrap: anywhere; }
.grid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.post-card { overflow: hidden; }
.post-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.post-card-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.post-embed { display: block; width: 100%; height: 620px; border: 0; background: #fff; }
@media (max-width: 520px) { .grid-volunteers { grid-template-columns: 1fr; } .volunteer-photo-lg { width: 84px; height: 84px; font-size: 28px; } }

/* Віджети бокової колонки статей */
.side-widget-title { font-family: var(--display); font-size: 17px; line-height: 1.25; }
.side-link, .side-jar, .side-person { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.side-jar { gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-jar:last-of-type { border-bottom: 0; padding-bottom: 0; }
.side-person { flex-direction: row; align-items: center; gap: 12px; }
.side-link-title { font-weight: 700; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.side-link:hover .side-link-title, .side-jar:hover .side-link-title, .side-person:hover .side-link-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.side-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.side-avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-more { font-weight: 700; text-decoration: none; color: var(--ink); align-self: flex-start; }
.side-html > :last-child { margin-bottom: 0; }
