/*
 * Сторінка проєкту «Мікраша Арена» (/mikrasha-arena). Підключається лише на ній.
 * Усі класи починаються з hub-, щоб не перетинатися зі стилями сайту. Кольори й шрифт беруться зі змінних site.css.
 * Доступність: контраст тексту не менше 4,5:1, видимий фокус, цілі натискання від 44 px, стан не лише кольором,
 * prefers-reduced-motion, перегляд від 320 px.
 */

.hub { margin-top: -32px; --hub-hdr: 80px; }
.hub [id] { scroll-margin-top: 150px; }
.hub a:focus-visible, .hub button:focus-visible, .hub summary:focus-visible,
.hub input:focus-visible, .hub select:focus-visible, .hub textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.hub .btn[disabled] { opacity: .65; cursor: not-allowed; filter: none; }
.hub-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* ---- Шапка проєкту ---- */
.hub-top { background: radial-gradient(700px 360px at 100% 0%, #d6edf9 0%, rgba(214, 237, 249, 0) 70%), radial-gradient(600px 360px at 0% 100%, #ece3f1 0%, rgba(236, 227, 241, 0) 70%), linear-gradient(180deg, #f1f8fd 0%, var(--bg) 100%); padding: 22px 0 2px; }
.hub-top .breadcrumbs { margin-bottom: 8px; }
.hub-hero { position: relative; padding: 4px 0 6px; }
.hub-emblem { position: absolute; right: 0; top: 0; width: 120px; height: 120px; }
.hub-label { display: inline-block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--purple-dark); }
.hub-title { margin: 4px 0 6px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--blue-dark); }
h1.hub-title::after { display: none; }
.hub-official { margin: 0 0 12px; max-width: 46ch; color: var(--blue); font-size: 1.1rem; line-height: 1.4; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hub-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 600; }
.hub-chip--status { background: #eaf6fc; border-color: #b9e3f6; color: var(--blue-dark); }
.hub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }

/* ---- Слайди «Огляду» ---- */
.hub-slides { position: relative; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(700px 400px at 100% 0%, #d6edf9 0%, rgba(214, 237, 249, 0) 70%), radial-gradient(600px 400px at 0% 100%, #ece3f1 0%, rgba(236, 227, 241, 0) 70%), linear-gradient(180deg, #f1f8fd 0%, #fff 60%); }
.hub-slides::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--purple) 33.3% 66.6%, var(--cyan) 66.6%); }
.hub-slide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: 24px; align-items: center; padding: 26px 34px 14px; min-height: 340px; }
.hub-slide[hidden] { display: none; }
.hub-slides:not(.is-js) .hub-slide + .hub-slide { border-top: 1px solid var(--line); }
.hub-slide.is-active { animation: hub-fade .5s ease; }
@keyframes hub-fade { from { opacity: 0; } to { opacity: 1; } }
.hub-sl-tag { margin: 0 0 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--purple-dark); }
.hub .hub-sl-title { margin: 0 0 12px; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.hub-sl-title .c { color: var(--blue); }
.hub-sl-title .g { color: #3a7d06; }
.hub-sl-title .p { color: var(--purple-dark); }
.hub-sl-text { margin: 0 0 16px; max-width: 46ch; font-size: 1.1rem; line-height: 1.5; color: #33475a; }
.hub-sl-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.hub-sl-emblem { width: min(260px, 100%); height: auto; }
.hub-sl-emblem--dim { opacity: .92; }
.hub-minis { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hub-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; }
.hub-mini-cap { font-size: .78rem; color: var(--muted); }
.hub-unk { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.hub-unk li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hub-dotted { flex: none; width: 34px; height: 34px; border: 5px dotted var(--purple); border-radius: 50%; }
.hub-slides-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 6px 16px 16px; }
.hub-slides-ctl[hidden] { display: none; }
.hub-sl-btn { min-width: 44px; min-height: 44px; padding: 0 14px; border: 2px solid var(--blue-dark); border-radius: 10px; background: #fff; color: var(--blue-dark); font: 700 1.2rem "Inter", sans-serif; cursor: pointer; }
.hub-sl-btn:hover { background: #eaf4f9; }
.hub-sl-btn--text { font-size: .95rem; }
.hub-dots { display: flex; gap: 2px; }
.hub-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hub-dots button span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #98a6b4; }
.hub-dots button[aria-current="true"] span { width: 30px; border-radius: 8px; background: var(--blue-dark); }

/* ---- Кільцеві індикатори ---- */
.hub-ring { position: relative; display: inline-block; flex: none; width: 190px; height: 190px; }
.hub-ring--lg { width: 170px; height: 170px; }
.hub-ring--sm { width: 70px; height: 70px; }
.hub-ring svg { display: block; width: 100%; height: 100%; }
.hub-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1; color: var(--blue-dark); }
.hub-ring-center small { margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hub-ring-num { font-size: 1.05rem; font-weight: 800; }
.hub-ring-num--lg { font-size: 2.6rem; }
.hub-ring-num--xl { font-size: 3.2rem; }
.hub-ring-num--dash { font-size: 2.4rem; color: #6b7a88; }
.hub-ring--lg .hub-ring-num--dash { font-size: 2rem; }
.hub-ring-wrap { display: flex; justify-content: center; margin: 8px 0; }
.hub-ring-wrap--left { justify-content: flex-start; }
.hub-fund-sum { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0 16px; text-align: center; }
.hub-fund-text { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; min-width: 0; }
.hub-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hub-col > .hub-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hub-fund-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 32px; align-items: center; }
.hub-fund-side { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hub-grid--start { align-items: start; }
.hub-fund-num { font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--blue-dark); overflow-wrap: anywhere; }

/* ---- Індикатор на інших вкладках ---- */
.hub-ind { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hub-ind-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; font-size: .95rem; }
.hub-ind-top a { font-weight: 600; }
.hub-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; margin: 0; padding: 0; list-style: none; }
.hub-phase { display: flex; align-items: center; gap: 12px; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.hub-phase-text b { display: block; margin-bottom: 2px; font-size: .9rem; color: var(--blue-dark); }

/* ---- Вкладки: темна панель меню проєкту (як панель в адмінці) завширшки з увесь зміст, поточна вкладка голуба, як пункт меню сайту ---- */
.hub-tabs-wrap { position: sticky; top: var(--hub-hdr, 80px); z-index: 90; margin-top: 16px; }
.hub-tabs { display: flex; gap: 2px; padding: 6px 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent; background: var(--blue-dark); border-bottom: 3px solid var(--cyan); border-radius: 12px; box-shadow: 0 4px 14px rgba(18, 57, 77, .22); }
.hub-tabs a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.hub-tabs a:hover { background: rgba(255, 255, 255, .16); }
.hub-tabs a[aria-current="page"] { background: var(--cyan); color: var(--blue-dark); font-weight: 700; }
.hub .hub-tabs a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.hub .hub-tabs a[aria-current="page"]:focus-visible { outline-color: var(--blue-dark); }

/* ---- Зміст ---- */
.hub-main { padding: 24px 0 8px; }
.hub-h1 { margin: 0 0 .5em; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.hub-h1::after { content: ""; display: block; width: 88px; height: 5px; margin-top: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--purple) 33.3% 66.6%, var(--cyan) 66.6% 100%); }
.hub-main > section > h2:first-child { margin-top: 0; }
.hub-h2 { margin: 1.6em 0 .6em; font-size: 1.45rem; }
.hub-h3, .hub-main h3 { margin: 0 0 .5em; font-size: 1.15rem; }
.hub-lead { max-width: 72ch; font-size: 1.1rem; color: #2b3a4a; }
.hub-muted { color: var(--muted); }
.hub-small { font-size: .88rem; }
.hub-center { text-align: center; }
.hub-nomargin { margin: 0; }
.hub-gap { margin-top: 16px; }
.hub-gap-b { margin-bottom: 16px; }
.hub-gap-t { margin-top: 14px; }
.hub-grid { display: grid; gap: 16px; }
.hub-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hub-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.hub-card > :last-child { margin-bottom: 0; }
.hub-card--accent { border-top: 4px solid var(--cyan); }
.hub-grid--stretch > .hub-card--accent { display: flex; flex-direction: column; }
.hub-grid--stretch > .hub-card--accent .hub-facts { flex: 1; align-content: space-between; }
.hub-card--green { border-top: 4px solid var(--green); }
.hub-card--purple { border-top: 4px solid var(--purple); }
/* «Що ми ще не знаємо» (фіолетовий) і «Журнал рішень» (зелений): смуга бренду, значок у заголовку, мʼякий фон */
.hub-card--unknown, .hub-card--log, .hub-card--land { --tone: var(--purple); --tone-dark: #6f3a75; --tone-bg: #f8f0f9; --tone-chip: "?"; position: relative; overflow: hidden; padding-top: 26px; border: 2px solid var(--tone); background: linear-gradient(180deg, var(--tone-bg) 0%, #fff 75%); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.hub-card--land { --tone: var(--cyan); --tone-dark: #08688f; --tone-bg: #e9f7fd; --tone-chip: "\A7"; }
.hub-card--log { --tone: var(--green); --tone-dark: #2f6a05; --tone-bg: #eff8e8; --tone-chip: "\2713"; }
.hub-card--unknown::before, .hub-card--log::before, .hub-card--land::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: linear-gradient(90deg, var(--green) 0 34%, var(--purple) 34% 67%, var(--cyan) 67% 100%); }
.hub-card--unknown::after, .hub-card--log::after, .hub-card--land::after { content: ""; position: absolute; right: -28px; bottom: -34px; width: 130px; height: 113px; background: url("/assets/img/splash-purple.png") no-repeat center / contain; opacity: .12; pointer-events: none; }
.hub-card--log::after { background-image: url("/assets/img/splash-green.png"); }
.hub-card--land::after { background-image: url("/assets/img/splash-cyan.png"); }
.hub-card--unknown > *, .hub-card--log > *, .hub-card--land > * { position: relative; z-index: 1; }
.hub-card--unknown h2.hub-h3, .hub-card--unknown h3, .hub-card--log h2.hub-h3, .hub-card--land h2.hub-h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--tone-dark); }
.hub-card--unknown h2.hub-h3::before, .hub-card--unknown h3::before, .hub-card--log h2.hub-h3::before, .hub-card--land h2.hub-h3::before { content: var(--tone-chip); display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tone); color: #fff; font-size: 1rem; font-weight: 700; line-height: 1; }
.hub-card--unknown .hub-list li::marker, .hub-card--log .hub-list li::marker { color: var(--tone); }
/* Фірмовий акцент для виділених блоків («Наступний крок», відкритий запит, форма): смуга бренду, значок-стрілка, мʼяка тінь */
.hub-next, .hub-card--next { position: relative; overflow: hidden; padding-top: 28px; border: 2px solid var(--cyan); background: linear-gradient(180deg, #e6f7ff 0%, #f7fcff 70%); box-shadow: 0 8px 22px rgba(49, 189, 242, .2); }
.hub-next::before, .hub-card--next::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: linear-gradient(90deg, var(--green) 0 34%, var(--purple) 34% 67%, var(--cyan) 67% 100%); }
.hub-next::after, .hub-card--next::after { content: ""; position: absolute; right: -28px; bottom: -34px; width: 130px; height: 113px; background: url("/assets/img/splash-cyan.png") no-repeat center / contain; opacity: .16; pointer-events: none; }
.hub-next > *, .hub-card--next > * { position: relative; z-index: 1; }
.hub-next h3, .hub-card--next h2.hub-h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--blue-dark); }
.hub-next h3 { font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; }
.hub-next h3::before, .hub-card--next h2.hub-h3::before { content: "\2192"; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan); color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; line-height: 1; }
.hub-next-what { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.hub-next-when { display: inline-block; margin: 0 0 14px; padding: 8px 14px; border-radius: 12px; background: var(--blue-dark); color: #fff; font-weight: 700; line-height: 1.35; }
/* Блок «Збір коштів»: фірмове оформлення в зелених тонах (зелена кнопка «Підтримати», значок ₴, смуга бренду у зворотному порядку) */
.hub-fund-card { position: relative; overflow: hidden; padding-top: 28px; border: 2px solid var(--green); background: linear-gradient(135deg, #eef8e3 0%, #fbfef8 62%); box-shadow: 0 8px 22px rgba(72, 154, 8, .16); }
.hub-fund-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: linear-gradient(90deg, var(--purple) 0 34%, var(--cyan) 34% 67%, var(--green) 67% 100%); }
.hub-fund-card::after { content: ""; position: absolute; left: -34px; bottom: -40px; width: 190px; height: 177px; background: url("/assets/img/splash-green.png") no-repeat center / contain; opacity: .13; pointer-events: none; }
.hub-fund-card > * { position: relative; z-index: 1; }
.hub-fund-card .hub-fund-info > h3, .hub-fund-card .hub-fund-info > h2.hub-h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--blue-dark); }
.hub-fund-card .hub-fund-info > h3::before, .hub-fund-card .hub-fund-info > h2.hub-h3::before { content: "\20B4"; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.hub-fund-card .hub-fund-side { padding: 18px 14px 16px; border: 1px solid #d3e8c2; border-radius: 18px; background: rgba(255, 255, 255, .82); }
/* Ключові числа збору плитками під описом і кільцем (вкладка «Фінанси і звіти») */
.hub-fund-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); gap: 10px; margin: 20px 0 0; }
.hub-fund-stats > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 14px; border: 1px solid #d3e8c2; border-radius: 14px; background: rgba(255, 255, 255, .82); }
/* Кожна плитка має свій колір бренду (смужка зверху, тло, колір значення), щоб числа легко відрізнялись */
.hub-fund-stats > div { --tone: #3d4f5c; --tone-bg: #f3f6f8; --tone-line: #d5dde3; position: relative; overflow: hidden; padding-top: 15px; border-color: var(--tone-line); background: var(--tone-bg); }
.hub-fund-stats > div::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--tone); }
.hub-fund-stats > div:nth-child(1) { --tone: #08688f; --tone-bg: #e7f6fd; --tone-line: #bde6f8; }
.hub-fund-stats > div:nth-child(2) { --tone: #3a7d06; --tone-bg: #eaf6df; --tone-line: #c6e3ae; }
.hub-fund-stats > div:nth-child(3) { --tone: #8a4a90; --tone-bg: #f6ecf7; --tone-line: #e2c6e5; }
.hub-fund-stats > div:nth-child(4) { --tone: #b25e00; --tone-bg: #fdf1e1; --tone-line: #f2d3a6; }
.hub-fund-stats > div:nth-child(5) { --tone: #3d4f5c; --tone-bg: #f3f6f8; --tone-line: #d5dde3; }
.hub-fund-stats dt { color: var(--muted); font-size: .86rem; }
.hub-fund-stats dd { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.25; color: var(--tone); overflow-wrap: break-word; }
.hub-fund-stats dd .hub-wait { font-size: .95rem; font-weight: 600; }
@media (max-width: 560px) {
    .hub-fund-stats { grid-template-columns: 1fr; gap: 8px; }
    .hub-fund-stats > div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 14px 10px; }
    .hub-fund-stats dd { text-align: right; }
}
.hub-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.hub-facts dt { color: var(--muted); font-size: .94rem; }
.hub-facts dd { margin: 0; font-weight: 600; }
.hub-list { margin: 0 0 12px; padding-left: 20px; }
.hub-list li { margin-bottom: 5px; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hub-actions--center { justify-content: center; margin-top: 8px; }
.hub-news { margin: 0 0 10px; padding: 0; list-style: none; }
.hub-news li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hub-news li:last-child { border-bottom: 0; }
.hub-news time { display: block; font-size: .88rem; color: var(--muted); font-weight: 600; }
.hub-news-text { display: block; color: #33475a; }
.hub-news--full .hub-news-title { margin: 2px 0 6px; font-size: 1.2rem; }
.hub-news-body > :last-child { margin-bottom: 0; }
/* Блок-цитата «Як ми звітуватимемо»: вертикальна смуга бренду, велика лапка, підсумкова обіцянка окремо */
.hub-card--pledge { position: relative; overflow: hidden; padding: 22px 24px 20px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
.hub-card--pledge::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(180deg, var(--green) 0 34%, var(--purple) 34% 67%, var(--cyan) 67% 100%); }
.hub-card--pledge::after { content: "\201C"; position: absolute; top: -18px; right: 18px; font-family: Georgia, "Times New Roman", serif; font-size: 8rem; line-height: 1; color: var(--green); opacity: .14; pointer-events: none; }
.hub-card--pledge > * { position: relative; z-index: 1; }
.hub-card--pledge h2.hub-h3 { color: #2f6a05; }
.hub-card--pledge .hub-list li::marker { color: var(--green); }
.hub-card--pledge > p:last-child { margin-top: 16px; padding-top: 14px; border-top: 2px dashed rgba(72, 154, 8, .4); font-size: 1.04rem; color: var(--blue-dark); }
/* Повний журнал новин: кожна новина карткою, колір смуги чергується за брендом, дата чипом */
.hub-news--full { display: grid; gap: 14px; }
.hub-news--full li { --tone: var(--green); --tone-dark: #2f6a05; --tone-bg: #eff8e8; position: relative; overflow: hidden; padding: 16px 20px 16px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
.hub-news--full li:nth-child(3n+2) { --tone: var(--purple); --tone-dark: #6f3a75; --tone-bg: #f8f0f9; }
.hub-news--full li:nth-child(3n) { --tone: var(--cyan); --tone-dark: #08688f; --tone-bg: #e9f7fd; }
.hub-news--full li:last-child { border-bottom: 1px solid var(--line); }
.hub-news--full li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--tone); }
.hub-news--full time { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--tone-dark); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.hub-news--full .hub-news-title { margin: 8px 0 8px; color: var(--tone-dark); }
.hub-wait { color: #8a5a00; font-style: italic; }
.hub-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #fff3d6; color: #6b4800; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.hub-empty { padding: 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }
.hub-upd { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.hub-alert { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--ok); border-radius: 6px; background: #e8f5ee; color: #14573a; }
.hub-alert a { color: #0d3e29; }

/* ---- Етапи ---- */
.hub-main .hub-ph { margin: 28px 0 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--purple-dark); }
.hub-steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hub .hub-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; min-height: 0; padding: 0 0 22px; counter-increment: none; }
.hub .hub-steps li::before { content: none; }
.hub .hub-steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 2px; width: 2px; background: var(--line); }
.hub .hub-steps li:last-child { padding-bottom: 4px; }
.hub .hub-steps li:last-child::after { display: none; }
.hub .hub-steps li.hub-step--done::after { background: var(--green); }
.hub-node { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #98a6b4; border-radius: 50%; background: #fff; color: var(--muted); font-weight: 800; }
.hub-step--done .hub-node { border-color: #3a7d06; background: #3a7d06; color: #fff; }
.hub-step--in_progress .hub-node { border-color: var(--blue); color: var(--blue-dark); box-shadow: 0 0 0 4px #d3effb; }
.hub-step--blocked .hub-node { border-color: var(--purple-dark); color: var(--purple-dark); box-shadow: 0 0 0 4px #f0e0f1; }
.hub-step-body h3 { margin: 2px 0 2px; }
.hub-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; letter-spacing: 0; text-transform: none; vertical-align: middle; background: #eef1f5; color: #3d4a5a; }
.hub-badge--done, .hub-badge--s-accepted { background: #e3f4ea; color: #14573a; }
.hub-badge--in_progress { background: #dff3fc; color: #0a3d52; }
.hub-badge--blocked { background: #f3e6f4; color: #5e2963; }
.hub-badge--s-new { background: #e1f4fc; color: #0a5f80; }
.hub-badge--s-review { background: #fff3d6; color: #6b4800; }
.hub-badge--s-declined { background: #fcebea; color: #8f1d17; }
.hub-badge--s-answered { background: #e8ecf1; color: #33475a; }

/* ---- Кошторис ---- */
.hub-estatus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.hub-seg { display: inline-flex; flex-wrap: wrap; margin: 0 0 10px; overflow: hidden; border: 2px solid var(--blue-dark); border-radius: 10px; }
.hub-seg[hidden] { display: none; }
.hub-seg button { min-height: 44px; padding: 8px 16px; border: 0; background: #fff; color: var(--blue-dark); font: 600 .95rem "Inter", sans-serif; cursor: pointer; }
.hub-seg button[aria-pressed="true"] { background: var(--blue-dark); color: #fff; }
.hub-jump { margin: 0 0 12px; font-size: .95rem; }
.hub-js .hub-jump { display: none; }
.hub-variant[hidden] { display: none; }
.hub-table-wrap { overflow-x: auto; }
.hub-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.hub-table caption { padding: 0 0 8px; text-align: left; font-size: .88rem; color: var(--muted); caption-side: top; }
.hub-table th, .hub-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hub-table thead th { background: #eef3f6; color: var(--blue-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.hub-table tbody th { font-weight: 600; }
.hub-table .num { text-align: right; white-space: nowrap; }
.hub-table tfoot td { background: #fafbfc; }
.hub-total { font-weight: 600; line-height: 1.6; }
.hub-n-inline { display: none; }
.hub-unit-m { display: none; }
/* Таблиця документів: кольорова лінія під кожним документом, колір чергується за брендом */
.hub-table--docs tbody tr > * { border-bottom: 3px solid var(--green); }
.hub-table--docs tbody tr:nth-child(3n+2) > * { border-bottom-color: var(--purple); }
.hub-table--docs tbody tr:nth-child(3n) > * { border-bottom-color: var(--cyan); }
.hub-doc-note { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); }
.hub-empty-cell { color: var(--muted); text-align: center; }

/* ---- Місце ---- */
.hub-pitch { display: block; width: 100%; max-width: 560px; height: auto; }

/* ---- Обговорення ---- */
.hub-discuss { align-items: start; }
.hub-form select { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: #fff; border: 1px solid #bfc6d1; border-radius: 8px; }
.hub-form input[aria-invalid="true"], .hub-form textarea[aria-invalid="true"], .hub-form select[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.hub-fieldset { margin: 0; padding: 0; border: 0; }
.hub-fieldset legend { padding: 0; font-weight: 700; color: var(--blue-dark); }
.hub-form fieldset .check { margin-top: 8px; }
.hub-err { margin: 4px 0 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.hub-counter { margin-top: 2px; text-align: right; font-size: .85rem; color: var(--muted); }
.hub-feed .hub-post { margin-bottom: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hub-post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.hub-tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #eaf7fd; color: #0a3d52; font-size: .78rem; font-weight: 600; }
.hub-post-body { margin: 0 0 6px; overflow-wrap: anywhere; }
.hub-post-meta { margin: 0; font-size: .88rem; color: var(--muted); }
.hub-reply { margin-top: 10px; padding: 10px 14px; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; background: #f2f9ec; }
.hub-reply > :last-child { margin-bottom: 0; }
.hub-reply p { margin: .3em 0 0; }

/* ---- Вузькі екрани ---- */
@media (max-width: 1024px) {
    .hub { --hub-hdr: 60px; }
}
@media (max-width: 900px) {
    .hub-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .hub-slide { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 6px; min-height: 0; }
    .hub-sl-visual { order: -1; }
    .hub-sl-emblem { width: 150px; }
    .hub-emblem { display: none; }
    .hub-slides-ctl { padding-bottom: 12px; }
    .hub-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .hub-facts dt { margin-top: 8px; }
    .hub-table-wrap { overflow-x: visible; }
    .hub-table thead { position: absolute; left: -9999px; }
    .hub-table, .hub-table tbody, .hub-table tfoot, .hub-table tr, .hub-table td, .hub-table th { display: block; }
    .hub-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .hub-table--docs tbody tr { border-bottom: 3px solid var(--green); }
    .hub-table--docs tbody tr:nth-child(3n+2) { border-bottom-color: var(--purple); }
    .hub-table--docs tbody tr:nth-child(3n) { border-bottom-color: var(--cyan); }
    .hub-table--docs tbody tr > * { border-bottom: 0; }
    .hub-table td, .hub-table th { padding: 3px 0; border: 0; text-align: left; }
    .hub-table td.num { text-align: left; white-space: normal; }
    .hub-table td[data-label]:not(.hub-col-t) { display: flex; justify-content: space-between; gap: 12px; }
    .hub-cell { min-width: 0; text-align: right; overflow-wrap: anywhere; }
    .hub-table td[data-label]:not(.hub-col-t)::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .84rem; }
    .hub-table th.hub-col-t { font-size: 1rem; }
    .hub-table td.hub-col-n, .hub-table td.hub-col-u, .hub-table td:has(.hub-sr) { display: none !important; }
    .hub-table caption { display: block; width: 100%; }
    .hub-unit-m { display: inline; }
    .hub-n-inline { display: inline; }
    .hub-table tfoot tr { background: #fafbfc; }
    .hub-seg { display: flex; width: 100%; }
    .hub-seg button { flex: 1 1 100%; }
}
@media (max-width: 480px) {
    .hub-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-phase { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
    .hub-top { padding-top: 14px; }
    .hub-title { font-size: 2rem; }
    .hub-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .hub *, .hub *::before, .hub *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .hub-tabs-wrap, .hub-slides-ctl, .hub-form, .hub-actions, .hub-seg, .hub-jump { display: none !important; }
    .hub { margin-top: 0; }
    .hub-slide[hidden] { display: grid; }
}

/* Ступені цілі на вкладці «Кошторис»: важлива інформація, вгорі сторінки */
.hub-steps { border: 2px solid var(--purple); border-left-width: 8px; background: #fbf6fc; padding: 20px 22px; margin-top: 4px; }
.hub-steps-tag { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: var(--purple); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hub-steps-h { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.hub-steps .hub-table { background: #fff; }
.hub-steps .hub-table th[scope="row"] { color: var(--blue-dark); }
.hub-steps .hub-table td:last-child { font-weight: 700; }
@media (max-width: 640px) { .hub-steps { padding: 16px 14px; border-left-width: 6px; } }

/* Найвигідніша пропозиція на вкладці «Кошторис»: виділений блок угорі */
.hub-best { border: 2px solid var(--green); border-left-width: 8px; background: #f3faee; padding: 20px 22px; margin-top: 4px; }
.hub-best-tag { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: #2f6e04; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hub-best-h { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.hub-best .hub-table { background: #fff; }
.hub-best .hub-table th[scope="row"] { color: #2f6e04; }
@media (max-width: 640px) { .hub-best { padding: 16px 14px; border-left-width: 6px; } }

/* Вкладка «Місце»: інтерактивна карта (assets/js/hub-map.js) */
.hm-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.hm-btn { padding: 8px 14px; border: 1.5px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.hm-btn:hover { background: #eef6fa; }
.hm-btn.is-on { background: var(--blue); color: #fff; }
.hm-btn--sm { padding: 5px 12px; font-size: .86rem; }
.hm-panel { margin: 0 0 10px; padding: 12px 14px; background: #f3f8fb; border: 1px solid var(--line); border-radius: 12px; }
.hm-panel[hidden] { display: none; }
.hm-panel__hint { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.hm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0; }
.hm-row label { font-weight: 700; font-size: .92rem; }
.hm-row input[type="range"] { flex: 1 1 200px; max-width: 360px; accent-color: var(--green); }
.hm-row output { min-width: 3.2em; font-weight: 800; color: var(--blue-dark); }
.hm-status { margin: 8px 0 0; font-size: .95rem; font-weight: 600; color: var(--blue-dark); }
.hm-status--ok { color: #2d6b05; }
.hm-status--warn { color: #9a5b00; }
.hm-status--copy { font-weight: 400; font-size: .85rem; color: var(--muted); }
.hm-status:empty { display: none; }
.hm-map { position: relative; width: 100%; height: 640px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9f2f7; }
.hm-map--error { display: flex; align-items: center; justify-content: center; }
.hm-map--measure { cursor: crosshair; }
.hm-map__msg { margin: 0; padding: 24px; text-align: center; color: var(--muted); }
.hm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }

/* Позначки на карті */
.hm-pin { display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 2px 3px rgba(18, 57, 77, .4)); cursor: pointer; }
.hm-pin__badge { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); display: flex; align-items: center; justify-content: center; }
.hm-pin__img { display: block; width: 26px; height: 26px; object-fit: contain; pointer-events: none; }
.hm-pin__tail { width: 0; height: 0; margin-top: -1px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--purple); }
.hm-dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(18, 57, 77, .5); cursor: pointer; }
.hm-dot--outdoor { background: var(--purple); }
.hm-dot--futsal { background: var(--cyan); }
.hm-rdot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.hm-handle { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 3px solid #f2b705; box-shadow: 0 2px 6px rgba(18, 57, 77, .5); display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
.hm-handle__cross { position: relative; display: block; width: 16px; height: 16px; }
.hm-handle__cross::before, .hm-handle__cross::after { content: ""; position: absolute; background: var(--blue-dark); }
.hm-handle__cross::before { left: 7px; top: 0; width: 2px; height: 16px; }
.hm-handle__cross::after { left: 0; top: 7px; width: 16px; height: 2px; }

/* Вікно на карті */
.hm-info { font-family: "Inter", Arial, sans-serif; font-size: 14px; line-height: 1.45; color: var(--text); max-width: 260px; }
.hm-info__title { font-weight: 800; color: var(--blue-dark); margin: 0 0 4px; font-size: 15px; }
.hm-info__row { margin: 2px 0; }
.hm-info__link { display: inline-block; margin-top: 6px; font-weight: 700; }

/* Найближчі поля */
.hm-near { list-style: none; margin: 8px 0 0; padding: 0; max-width: 560px; }
.hm-near li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.hm-near li:last-child { border-bottom: 1px solid var(--line); }
.hm-near__name { font-weight: 700; flex: 1 1 auto; }
.hm-near__kind { color: var(--muted); font-size: .88rem; }
.hm-near__d { font-weight: 800; color: var(--blue-dark); white-space: nowrap; }

@media (max-width: 640px) {
    .hm-map { height: 440px; }
    .hm-btn { padding: 8px 12px; }
}
.hm-btn:disabled { opacity: .5; cursor: default; }
.hm-dot--old { width: 16px; height: 16px; background: #fff; border: 3px solid var(--purple); }

/* Вікно місця на карті: фірмова смуга, символ ГО, ярлики, рядки й кнопки (як у футбольної карти) */
.hm-map .gm-style .gm-style-iw-c { padding: 0; border-radius: 14px; box-shadow: 0 6px 22px rgba(18, 57, 77, .28); background: #fff linear-gradient(90deg, var(--green) 0 34%, var(--purple) 34% 67%, var(--cyan) 67% 100%) top / 100% 6px no-repeat; max-width: min(340px, calc(100vw - 48px)) !important; }
.hm-map .gm-style .gm-style-iw-chr { position: relative; padding: 10px 6px 0 14px; align-items: flex-start; }
.hm-map .gm-style .gm-style-iw-ch { padding: 6px 0 0; margin: 0; font-family: "Inter", Arial, sans-serif; }
.hm-map .gm-style .gm-style-iw-d { overflow: auto !important; padding: 0 16px 14px 16px; max-height: 480px !important; }
.hm-map .gm-style .gm-ui-hover-effect { width: 30px !important; height: 30px !important; top: 4px !important; right: 4px !important; border-radius: 50%; }
.hm-map .gm-style .gm-style-iw-tc::after { background: #fff; }
.hm-card { font-family: "Inter", Arial, sans-serif; font-size: 14px; line-height: 1.45; color: var(--text); min-width: 230px; }
.hm-card__head { display: flex; align-items: center; gap: 9px; padding-right: 6px; }
.hm-card__logo { flex: none; display: block; width: 28px; height: 28px; object-fit: contain; }
.hm-card__title { font-size: 16px; line-height: 1.25; color: var(--blue-dark); font-weight: 800; }
.hm-card__sub { color: var(--muted); margin: 3px 0 8px; }
.hm-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.hm-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #f1e5f3; color: var(--purple-dark); border: 1px solid #d8bcdc; }
.hm-card__row { display: flex; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.hm-card__k { flex: none; width: 104px; color: var(--muted); font-size: 12.5px; }
.hm-card__v { font-weight: 600; overflow-wrap: anywhere; }
.hm-card__desc { margin: 8px 0 0; padding: 8px 10px; background: #f3f7fa; border-radius: 8px; font-size: 13.5px; }
.hm-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 8px 0 2px; position: sticky; bottom: 0; background: #fff; }
.hm-card__btn { display: inline-block; padding: 7px 14px; border-radius: 8px; background: var(--green); color: #fff !important; font-weight: 700; font-size: 13.5px; text-decoration: none; border: 1.5px solid var(--green); }
.hm-card__btn:hover { filter: brightness(.92); }
.hm-card__btn--ghost { background: #fff; color: var(--blue) !important; border-color: var(--blue); }
@media (max-width: 640px) {
    .hm-map .gm-style .gm-style-iw-d { max-height: 300px !important; }
    .hm-card__k { width: 88px; }
}

/* Карта проєкту: панель інструментів закріплена під меню вкладок, поки видно карту; блоки «поля поруч» і «розмір» поруч */
.hm-app { position: relative; }
.hm-bar { position: sticky; top: var(--hm-top, 112px); z-index: 30; margin: 0 0 8px; padding: 8px 0 6px; background: var(--bg); box-shadow: 0 8px 8px -8px rgba(18, 57, 77, .28); }
.hm-bar .hm-tools { margin: 0; }
.hm-bar .hm-panel { margin: 8px 0 0; padding: 8px 12px; }
.hm-bar .hm-row { margin: 0; }
.hm-bar .hm-status { margin: 6px 0 0; font-size: .9rem; }
.hm-bar .hm-status--copy { margin-top: 2px; }
.hm-bar .hm-panel__hint { margin: 6px 0 0; font-size: .82rem; }
.hm-bar .hm-row input[type="range"] { flex: 1 1 140px; max-width: 240px; }
.hm-app .hm-map { height: clamp(420px, calc(100vh - var(--hm-top, 112px) - 170px), 760px); }
.hm-below { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 36px; align-items: start; }
.hm-below .hm-near { max-width: none; }
.hub-map-card .hm-app { margin-top: 10px; }

@media (max-width: 640px) {
    .hm-bar .hm-tools { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .hm-bar .hm-tools::-webkit-scrollbar { display: none; }
    .hm-bar .hm-btn { white-space: nowrap; flex: none; }
    .hm-app .hm-map { height: clamp(360px, calc(100vh - var(--hm-top, 140px) - 150px), 560px); }
}

.hm-btns { display: contents; }
@media (max-width: 640px) {
    .hm-bar { padding: 6px 0 4px; }
    .hm-bar .hm-btn { padding: 6px 12px; font-size: .86rem; }
    .hm-bar .hm-btn--sm { padding: 4px 10px; font-size: .8rem; }
    .hm-bar .hm-panel { padding: 6px 10px; }
    .hm-bar .hm-row { gap: 6px 8px; }
    .hm-bar .hm-row label { font-size: .85rem; }
    .hm-bar .hm-row input[type="range"] { flex: 1 1 90px; }
    .hm-bar .hm-row output { min-width: 2.6em; font-size: .9rem; }
    .hm-bar .hm-btns { display: flex; flex: 1 0 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .hm-bar .hm-btns::-webkit-scrollbar { display: none; }
    .hm-bar .hm-btns .hm-btn { white-space: nowrap; flex: none; }
    .hm-bar .hm-status { font-size: .8rem; margin-top: 4px; }
    .hm-bar .hm-status--copy, .hm-bar .hm-panel__hint { display: none; }
}

/* Позначки полів і залів поруч: кружечок із символом ГО та підпис */
.hm-nm { position: relative; width: 34px; height: 34px; transform: translateY(50%); cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); --c: var(--purple); }
.hm-nm--futsal { --c: var(--cyan); }
.hm-nm__badge { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--c); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.hm-nm__img { display: block; width: 20px; height: 20px; object-fit: contain; pointer-events: none; }
.hm-nm__label { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 999px; background: #fff; border: 2px solid var(--c); color: var(--blue-dark); font: 800 12.5px/1.2 "Inter", Arial, sans-serif; white-space: nowrap; }
.hm-app img { border-radius: 0; } /* на сторінці-статті (.prose) картинкам задано заокруглення: плитки карти мають лишатися прямими */

/* Поділитися й вставка */
.hm-btn--share { margin-left: auto; text-decoration: none; display: inline-flex; align-items: center; }
.hm-share { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px 16px; border: 0; border-radius: 16px; box-shadow: 0 12px 40px rgba(18, 57, 77, .35); background: #fff linear-gradient(90deg, var(--green) 0 34%, var(--purple) 34% 67%, var(--cyan) 67% 100%) top / 100% 6px no-repeat; color: var(--text); }
.hm-share::backdrop { background: rgba(18, 57, 77, .55); }
.hm-share__head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.hm-share__head h3 { margin: 0; font-size: 1.25rem; color: var(--blue-dark); }
.hm-share__x { border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--blue-dark); padding: 0 6px; }
.hm-share__lead { margin: 0 0 10px; font-size: .92rem; color: var(--muted); }
.hm-share__h4 { margin: 18px 0 4px; font-size: 1.05rem; color: var(--blue-dark); }
.hm-share__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.hm-share__row input[type="text"] { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; background: #f6f8fa; }
.hm-share__soc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.hm-share__soc a.hm-btn { text-decoration: none; display: inline-flex; align-items: center; }
.hm-share textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: .82rem/1.4 ui-monospace, Menlo, Consolas, monospace; background: #f6f8fa; resize: vertical; }

/* Сторінка карти для вставки (iframe) */
body.hm-embed { margin: 0; background: var(--bg); }
body.hm-embed .hm-app { display: flex; flex-direction: column; height: 100vh; }
body.hm-embed .hm-bar { position: static; padding: 6px 8px; margin: 0; box-shadow: none; }
body.hm-embed .hm-app .hm-map { flex: 1 1 auto; height: auto; min-height: 240px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
@media (max-width: 640px) {
    .hm-btn--share { margin-left: 0; }
}

/* Головна позначка лишається з фіолетовим кільцем і на супутнику (так її видно краще); зелений лише контур ділянки */

/* Схема місця в картці «Де буде майданчик» (SVG без зовнішніх сервісів) */
.hub-grid--2 > .hub-card--accent { display: flex; flex-direction: column; }
.hub-scheme-fig { margin: 12px 0 10px; flex: 1 1 auto; display: flex; flex-direction: column; }
.hub-scheme { display: block; width: 100%; height: auto; flex: 1 1 auto; min-height: 0; border-radius: 12px; background: #eef3f6; } /* схема росте на всю висоту картки: вільне місце займає тло схеми, а не порожнеча */
.hub-scheme-fig figcaption { margin-top: 8px; }
.hub-key { display: inline-block; width: 12px; height: 12px; margin: 0 2px 0 4px; vertical-align: -1px; border-radius: 3px; border: 2px solid var(--purple); }
.hub-key--site { background: rgba(156, 88, 161, .18); }
.hub-key--pitch { border-color: #1d5c05; background: var(--green); }
.hub-key--old { border-radius: 50%; background: #fff; }
.hub-key--near { border-radius: 50%; background: #fff; border-color: var(--cyan); }

/* Телефон: вікно картки не впритул до країв карти й екрана (відступ не менше ~48 px від краю екрана) */
@media (max-width: 640px) {
    .hm-map .gm-style .gm-style-iw-c { max-width: min(300px, calc(100vw - 96px)) !important; }
    .hm-card { min-width: 0; }
    .hm-card__k { width: 82px; }
}
body.hm-embed .hm-map .gm-style .gm-style-iw-c { max-width: min(300px, calc(100vw - 64px)) !important; }
