/* ═══════════════════════════════════════════════════════════════════
   ASBEK «Hub» — екрани за прототипом masterhub (точні значення Tailwind):
   картка = rounded-3xl (24px), p-4/sm:p-6, shadow-apple; секції space-y-5 (20px);
   H1 text-xl/sm:text-2xl–3xl, H2 секцій text-base/sm:text-lg bold; чипи text-xs, rounded-xl, bg #f5f5f3.
   ═══════════════════════════════════════════════════════════════════ */

.hub-screen { display: grid; gap: 20px; padding-top: 12px; padding-bottom: 8px; }
.hub-screen > * { min-width: 0; }

/* ─── шапка екрана ─── */
.sh { padding: 24px; border-radius: 20px; }
.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.sh-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-ico svg { width: 28px; height: 28px; }
.sh-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.sh-label svg { width: 14px; height: 14px; }
.sh-label a { color: inherit; }
.sh-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.sh-title { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: #111315; margin: 0 0 6px; }
.sh-text { font-size: 14px; line-height: 1.6; color: var(--text-muted); max-width: 672px; margin: 0; }
.sh-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.sh-actions .btn { padding: 12px 20px; font-size: 14px; border-radius: 12px; justify-content: center; }
.btn-soft { background: var(--bg-light); color: #111315; font-size: 12.5px !important; padding: 10px 16px !important; }
@media (hover: hover) { .btn-soft:hover { background: #ebeae6; } }
.sh-sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(17,19,21,.06); }
.sh-sub-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-chips a { padding: 6px 12px; border-radius: 12px; background: var(--bg-light); font-size: 12px; font-weight: 500; color: #111315; transition: background .15s, color .15s; }
@media (hover: hover) { .sh-chips a:hover { background: #111315; color: #fff; } }
.sh-chips a.is-more { color: var(--accent); background: var(--accent-soft); }

/* ─── секції ─── */
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hs-title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: #111315; line-height: 1.3; margin: 0; }
.hs-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.hs-all { margin-top: 14px; text-align: center; }
.hs .co-pager { margin-top: 16px; }
.hs .pf-grid, .hs .rq-grid { gap: 14px; }
.hs .rq-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* підпослуги: плитки 4 в ряд */
.sub-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.sub-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: #fff; border: 1px solid rgba(17,19,21,.06); border-radius: 14px; box-shadow: var(--shadow-card); transition: box-shadow .2s; min-width: 0; }
@media (hover: hover) { .sub-tile:hover { box-shadow: var(--shadow-hover); } .sub-tile:hover b { color: var(--accent-hover); } }
.sub-tile b { font-size: 13.5px; font-weight: 700; color: #111315; line-height: 1.3; transition: color .15s; }
.sub-tile span { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: auto; }
.sub-tile span svg { width: 14px; height: 14px; color: var(--accent); }

/* перелінковка */
.hx { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; border-radius: 20px; }
.hx-title { font-size: 13.5px; font-weight: 700; color: #111315; margin: 0 0 8px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.hx-chips a { padding: 6px 10px; border-radius: 12px; background: var(--bg-light); font-size: 12px; font-weight: 500; color: #111315; }
@media (hover: hover) { .hx-chips a:hover { color: var(--accent); } }

/* «Детальніше» */
.hd { padding: 0; border-radius: 20px; overflow: hidden; }
.hd summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: #111315; }
.hd summary::-webkit-details-marker { display: none; }
.hd summary svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.hd[open] summary svg { transform: rotate(180deg); }
.hd .hd-body { background: none; border: 0; box-shadow: none; border-top: 1px solid rgba(17,19,21,.06); border-radius: 0; padding: 20px 22px 24px; }

/* картки виконавців у сітці 3 колонки — як у прототипі */
.hub-screen .pf-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 1100px) {
    .sub-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .hub-screen .pf-grid, .hs .rq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .sh-row { flex-direction: column; align-items: stretch; }
    .sh-actions { flex-direction: row; flex-wrap: wrap; }
    .sh-actions .btn { flex: 1 1 200px; }
    .hx { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hub-screen { gap: 16px; }
    .sh { padding: 16px; }
    .sh-ico { width: 48px; height: 48px; border-radius: 14px; }
    .sh-ico svg { width: 24px; height: 24px; }
    .sh-title { font-size: 20px; }
    .sh-text { font-size: 12.5px; }
    .hs-title { font-size: 16px; }
    .sub-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .sub-tile { padding: 14px; }
    .hub-screen .pf-grid, .hs .rq-grid { grid-template-columns: minmax(0,1fr); }
    .hx { padding: 16px; }
    .hd summary { padding: 16px; font-size: 14px; }
    .hd .hd-body { padding: 16px; }
}
.sh-more-btn { cursor: pointer; border: 0; padding: 6px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-hover); font: inherit; font-size: 12px; font-weight: 600; }

/* текстовий блок сторінки — завжди видимий */
.hd-card.svc-main-content { padding: 26px 28px; border-radius: 20px; }
.hd-card .content-h2:first-child { margin-top: 0; }
.hx-title { font-size: 14.5px; }
/* нижній заклик із кнопкою */
.hcta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-radius: 20px; }
.hcta-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: #111315; margin: 0 0 4px; }
.hcta-sub { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.hcta .btn { flex-shrink: 0; }
@media (max-width: 768px) { .hcta { flex-direction: column; align-items: stretch; padding: 18px 16px; } .hd-card.svc-main-content { padding: 18px 16px; } }
h2.sh-sub-title { margin: 0 0 10px; }
.hs-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hs-count { padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--border-light); font-size: 12px; font-weight: 600; color: var(--text-muted); }
