/* ═══════════════════════════════════════════════════════════════════
   ASBEK «Hub» — внутрішні сторінки за екранами masterhub
   (каталог, категорія, послуга, місто, компанії/майстри, запити, профілі)
   Підключається після hub.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Хлібні крихти: дрібний рядок над карткою ─── */
.hub-crumbs { padding-top: 16px; }
.hub-crumbs .breadcrumbs { margin: 0; }
.hub-crumbs .breadcrumbs-list { gap: 6px; padding: 0; }
.hub-crumbs .breadcrumb-item, .hub-crumbs .breadcrumb-item a { font-size: 12.5px; color: var(--text-muted); }
.hub-crumbs .breadcrumb-item.active { color: var(--text-dark); font-weight: 500; }
.hub-crumbs .breadcrumb-sep { color: #b9b7b0; }
.hub-crumbs .breadcrumb-sep svg { width: 12px; height: 12px; }
body.hub .hub-crumbs + .page-hero { padding-top: 10px !important; }

/* ─── Шапка сторінки = біла картка ─── */
.page-hero > .container { padding: 26px 28px; }
.page-hero > .container::after { display: none; }
.page-hero-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.page-hero-subtitle { font-size: 14.5px; max-width: 760px; }
.page-hero .svc-hero-cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-hover); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.page-hero .svc-hero-cat svg { width: 14px !important; height: 14px !important; }
.page-hero .svc-hero-cat a { color: inherit; text-decoration: none; }
.page-hero .svc-hero-actions, .page-hero .hero-actions { margin-top: 16px; gap: 8px; }
.page-hero .btn { padding: 11px 18px; font-size: 14px; }
.svc-hero-grid { gap: 20px; align-items: stretch; }
.page-hero .hero-search { margin: 16px 0 0; max-width: 640px; }
.page-hero .search-box-wrap { margin: 16px 0 0; max-width: 640px; }
.page-hero .hero-city-chips { margin-top: 14px; }
.page-hero--xs > .container { background: none; border: 0; box-shadow: none; padding: 10px 24px 0; width: 100%; max-width: var(--container); }

/* ─── Ритм секцій: компактно, як у застосунку ─── */
.section-pad, .co-section, .rq-section { padding: 22px 0; border: 0; }
.section-pad[style] { padding-top: 22px !important; padding-bottom: 22px !important; background: transparent !important; border: 0 !important; }
.section-title, .section-title--sm, .subcategories-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.section-header { margin-bottom: 14px; }
.content-h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin: 22px 0 10px; }
.content-h2:first-child { margin-top: 0; }
.section-tag { display: none; }
.cta-box .section-tag { display: inline-flex; }

/* текстові блоки — у білій картці */
.svc-main-content { background: #fff; border: 1px solid rgba(17,19,21,.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px 28px; font-size: 14.5px; line-height: 1.7; color: #374151; }
.svc-main-content p { margin-bottom: 12px; }
.svc-main-content .faq-item { box-shadow: none; background: var(--bg-light); border-color: transparent; }
.svc-main-content .faq-item.open { background: #fff; border-color: var(--accent-line); }
.hub-faq-grid .svc-main-content { padding: 28px; }
.content-figure img { border-radius: 14px; }
.mini-process { display: grid; gap: 8px; }
.mini-step { background: var(--bg-light); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.mini-step-num { width: 28px; height: 28px; border-radius: 10px; background: #111315; color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.factor-card { background: var(--bg-light); border: 0; border-radius: 14px; box-shadow: none; }

/* двоколонковий контент + сайдбар */
.svc-content-grid { gap: 18px; }
.svc-sidebar { top: 78px; gap: 14px; }
.sidebar-card { border-radius: var(--radius-lg); padding: 20px; }
.sidebar-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.related-list { gap: 2px; }
.related-link { padding: 8px 10px; border-radius: 10px; font-size: 13.5px; }
@media (hover: hover) { .related-link:hover { background: var(--bg-light); transform: none; } }

/* ─── Каталог: 2 колонки карток зі списком підпослуг ─── */
.cat-jump { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.cat-jump::-webkit-scrollbar { display: none; }
.cat-jump .chip { white-space: nowrap; flex-shrink: 0; font-size: 12.5px; padding: 6px 12px; }
.catalog { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; columns: auto !important; }
.catalog > .ad-wrap { grid-column: 1 / -1; }
.catalog-cat { background: #fff; border: 1px solid rgba(17,19,21,.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 18px 20px 10px; break-inside: avoid; margin: 0 !important; min-width: 0; }
.catalog-cat-title { display: flex; align-items: center; gap: 12px; font-size: 16px !important; font-weight: 700; margin: 0 0 6px !important; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.catalog-cat-title .seo-col-icon { width: 40px; height: 40px; border-radius: 12px; }
.catalog-cat-title a { color: #111315; flex: 1; }
@media (hover: hover) { .catalog-cat-title a:hover { color: var(--accent); } }
.catalog-cat .region-count { background: var(--bg-light); color: var(--text-muted); border-radius: 999px; font-size: 11.5px; padding: 3px 9px; font-weight: 600; }
.catalog-list { display: block !important; columns: 1 !important; max-height: 330px; overflow-y: auto; scrollbar-width: thin; padding: 0; }
.catalog-list li { border-top: 1px solid rgba(17,19,21,.05); margin: 0 !important; }
.catalog-list li:first-child { border-top: 0; }
.catalog-list li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; font-size: 13.5px; font-weight: 500; color: var(--text-dark); }
.catalog-list li a::after { content: '\203A'; color: #b9b7b0; font-size: 18px; line-height: 1; }
@media (hover: hover) { .catalog-list li a:hover, .catalog-list li a:hover::after { color: var(--accent); } }

/* ─── Підпослуги категорії: плитки ─── */
.subcategories-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.subcategories-header .list-filter { max-width: 280px; padding: 9px 14px; border-radius: 12px; font-size: 14px; }
.svc-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.svc-link-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #fff; border: 1px solid rgba(17,19,21,.06); border-radius: 14px; box-shadow: var(--shadow-card); padding: 14px 16px; min-width: 0; transition: var(--transition); }
@media (hover: hover) { .svc-link-card:hover { box-shadow: var(--shadow-hover); transform: none; border-color: rgba(17,19,21,.08); } .svc-link-card:hover .svc-link-name { color: var(--accent-hover); } }
.svc-link-icon { display: none !important; }
.svc-link-name { font-size: 13.5px; font-weight: 700; color: #111315; line-height: 1.3; }
.svc-link-arrow { width: 15px !important; height: 15px !important; color: var(--accent); margin-top: auto; }

/* ─── Чипи перелінковки ─── */
.other-cats-grid, .city-chips-grid { display: flex !important; flex-wrap: wrap; gap: 6px; }
.other-cat-link, .city-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(17,19,21,.07); font-size: 13px; font-weight: 500; color: var(--text-dark); box-shadow: none; }
.other-cat-link svg, .city-chip svg { width: 14px !important; height: 14px !important; color: var(--accent); }
@media (hover: hover) { .other-cat-link:hover, .city-chip:hover { color: var(--accent-hover); border-color: var(--accent-line); background: var(--accent-soft); transform: none; } }
.link-accent { color: var(--accent-hover); font-weight: 600; }
.seo-links-grid { gap: 12px; }
.seo-col-card { padding: 18px; border-radius: var(--radius-md); }
.seo-col-header { padding-bottom: 10px; margin-bottom: 10px; }
.seo-col-title { font-size: 15px; }
.seo-link { font-size: 13px; }

/* регіони */
.regions-grid { gap: 8px; }
.region-block { border-radius: 14px; box-shadow: none; }
.region-full { background: #fff; border: 1px solid rgba(17,19,21,.06); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-card); }

/* ═══ PROVIDER CARD (компанія / майстер) ═══ */
.co-grid { gap: 14px; }
.co-card.pv-card, .ms-card.pv-card {
    display: flex; flex-direction: column; gap: 0; background: #fff;
    border: 1px solid rgba(17,19,21,.07); border-radius: 20px; box-shadow: var(--shadow-card);
    padding: 18px; min-width: 0; transition: box-shadow .2s ease;
}
@media (hover: hover) { .pv-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(17,19,21,.09); } .pv-card:hover .pv-name a { color: var(--accent-hover); } }
.pv-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; min-width: 0; }
.pv-ava-wrap { position: relative; flex-shrink: 0; display: block; }
.pv-card .pv-ava { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; object-fit: cover; background: var(--bg-light); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--accent); }
.pv-card .co-logo--empty.pv-ava { background: var(--accent-soft); border-color: transparent; }
.pv-card .pv-ava--round { border-radius: 999px; background: #111315; color: #fff; border: 0; }
.pv-verified { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.pv-verified svg { width: 12px; height: 12px; }
.pv-title { min-width: 0; flex: 1; }
.pv-tags-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 3px; }
.pv-card .pv-type { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 600; background: #f1f0ed; color: var(--text-muted); }
.pv-card .pv-type svg { display: none; }
.pv-card .pv-type--co { background: var(--accent-soft); color: var(--accent-hover); }
.pv-city { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--text-muted); min-width: 0; }
.pv-city svg { width: 12px; height: 12px; flex-shrink: 0; }
.pv-card .pv-name { font-size: 15.5px; font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -0.01em; overflow-wrap: anywhere; display: block; }
.pv-card .pv-name a { color: #111315; transition: color .2s; }
.pv-card .pv-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-card .pv-sub.co-schedule--open { color: var(--accent); font-weight: 600; }
.pv-card .pv-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; padding-bottom: 11px; margin: 0 0 11px; border-bottom: 1px solid rgba(17,19,21,.06); }
.pv-card .pv-stats span { display: inline; }
.pv-rating { display: inline-flex !important; align-items: center; gap: 4px; font-weight: 700; color: #111315; }
.pv-rating svg { width: 14px; height: 14px; color: #f59e0b; fill: #f59e0b; }
.pv-muted { color: var(--text-muted); }
.pv-price { margin-left: auto; font-weight: 700; color: #111315; }
.pv-site { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-site svg { width: 13px; height: 13px; flex-shrink: 0; }
@media (hover: hover) { .pv-site:hover { color: var(--accent); } }
.pv-card .pv-about { font-size: 13px; line-height: 1.55; color: #4b5563; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-card .pv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.pv-card .pv-tags .co-tag { font-size: 11.5px; padding: 3px 9px; border-radius: 8px; background: var(--bg-light); border: 0; color: var(--text-dark); font-weight: 500; }
@media (hover: hover) { .pv-card .pv-tags .co-tag:hover { background: var(--accent-soft); color: var(--accent-hover); } }
.pv-addr { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--text-muted); margin: 0 0 10px; overflow-wrap: anywhere; }
.pv-addr svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.pv-addr a { color: inherit; }
.pv-socials { display: flex; gap: 10px; margin: 0 0 10px; }
.pv-socials svg { width: 16px; height: 16px; }
.pv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 2px; }
.pv-btn, .pv-actions .co-phone-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; border: 0; cursor: pointer; transition: background .2s ease; min-width: 0; box-shadow: none; }
.pv-btn svg { width: 15px !important; height: 15px !important; }
.pv-btn--soft { background: var(--bg-light); color: #111315 !important; margin: 0 !important; }
@media (hover: hover) { .pv-btn--soft:hover { background: #e9e8e4; } }
.pv-btn--main { background: var(--accent); color: #fff; }
@media (hover: hover) { .pv-btn--main:hover { background: var(--accent-hover); } }
.pv-actions .co-phone-item { display: flex; min-width: 0; margin: 0; padding: 0; }
.pv-actions .co-phone-item > svg, .pv-actions .co-phone-item > i { display: none; }
.pv-actions .co-phone-btn { background: var(--accent); color: #fff; }
.pv-actions .co-phone-btn .co-phone-mask { display: none; }
.pv-actions .co-phone-btn .co-phone-show { color: #fff; text-decoration: none; font-weight: 600; }
@media (hover: hover) { .pv-actions .co-phone-btn:hover { background: var(--accent-hover); } }
.ms-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.co-list-col .co-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* перемикач «Усі / Майстри / Компанії» */
.mc-tabs { display: inline-flex; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; margin-bottom: 14px; }
.mc-tabs button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); background: none; border: 0; }
.mc-tabs button svg { width: 14px; height: 14px; }
.mc-tabs button small { font-size: 11px; opacity: .7; }
.mc-tabs button.is-active { background: #111315; color: #fff; }

/* «список + бокова колонка» */
.co-layout { gap: 18px; }
.co-section-head { margin-bottom: 14px; }
.co-section-sub { font-size: 14px; }
.co-aside { gap: 14px; }
.co-aside-card { border-radius: var(--radius-lg); padding: 18px; }
.co-aside-title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.co-aside-title svg { width: 16px; height: 16px; color: var(--accent); }
.co-aside-list li { padding: 8px 0; border-top: 1px solid rgba(17,19,21,.05); }
.co-aside-list li:first-child { border-top: 0; }
.co-aside-list a { font-weight: 600; font-size: 13.5px; color: #111315; }
.co-aside-links { display: flex; flex-wrap: wrap; gap: 5px; }
.co-aside-links a { display: inline-block; padding: 5px 10px; border-radius: 10px; background: var(--bg-light); font-size: 12.5px; color: var(--text-dark); }
.co-aside-more { color: var(--accent); font-weight: 600; font-size: 13px; }
.co-pager a, .co-pager span, .co-pager-btn { border-radius: 12px; border: 1px solid var(--border-light); background: #fff; }
.co-pager .is-active { background: #111315; border-color: #111315; color: #fff; }

/* ═══ TASK CARD (запит клієнта) ═══ */
.rq-grid { gap: 14px; }
.rq-card.tk-card { position: relative; display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid rgba(17,19,21,.07); border-radius: 20px; box-shadow: var(--shadow-card); padding: 18px; }
@media (hover: hover) { .tk-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(17,19,21,.09); } .tk-card:hover .tk-btn { background: var(--accent); color: #fff; } .tk-card:hover .tk-title a { color: var(--accent-hover); } }
.tk-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tk-card .tk-cat { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hover); font-size: 11.5px; font-weight: 600; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-card .tk-cat svg { width: 12px; height: 12px; flex-shrink: 0; }
.tk-budget { margin-left: auto; padding: 3px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.tk-card .tk-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
.tk-card .tk-title a { color: #111315; }
.tk-card .tk-title a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.tk-card .tk-text { font-size: 13px; line-height: 1.55; color: #4b5563; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-foot { margin-top: auto; }
.tk-card .tk-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; margin: 0 0 10px; border-top: 1px solid rgba(17,19,21,.06); font-size: 11.5px; color: var(--text-muted); }
.tk-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.tk-meta svg { width: 12px; height: 12px; flex-shrink: 0; }
.tk-meta .rq-badge { font-size: 10.5px; padding: 1px 7px; }
.tk-btn { display: block; text-align: center; padding: 9px; border-radius: 12px; background: var(--bg-light); color: #111315; font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s; }
.tk-card .rq-type { position: relative; z-index: 1; font-size: 11px; padding: 2px 7px; border-radius: 8px; }

/* шапки секцій-списків: «Заголовок … Усі →» */
.rq-section .section-header .btn-secondary { background: none; border: 0; color: var(--accent); padding: 0; font-size: 14px; font-weight: 600; box-shadow: none; }
@media (hover: hover) { .rq-section .section-header .btn-secondary:hover { text-decoration: underline; background: none; } }

/* стрічка запитів: панель фільтрів */
.rq-filters { background: #fff; border: 1px solid rgba(17,19,21,.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rq-filters .chip, .rq-filters a { background: var(--bg-light); border: 0; border-radius: 10px; font-size: 12.5px; padding: 6px 11px; }
.rq-filters .is-active, .rq-filters .chip.is-active { background: #111315; color: #fff; }

/* сторінка запиту */
.rq-body { background: #fff; border: 1px solid rgba(17,19,21,.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; }
.rq-text { background: var(--bg-light); border-radius: 14px; padding: 16px; font-size: 15px; }
.rq-facts div { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 12px 14px; }
.rq-facts dd { font-size: 15px; }
.rq-own { border-radius: 20px; }
.rq-next-card { border-radius: 14px; }

/* профілі */
.co-hero-logo { border-radius: 20px; }
.ms-hero { display: flex; align-items: center; gap: 16px; }
.ms-ava--lg { width: 76px; height: 76px; border-radius: 999px; background: #111315; color: #fff; font-size: 30px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; background: var(--bg-light); color: var(--text-dark); font-size: 11.5px; font-weight: 600; }
.ms-badge svg { width: 12px; height: 12px; }
.rv-item { background: var(--bg-light); border: 0; border-radius: 14px; padding: 14px; }
.co-photos img { border-radius: 14px; }

.cta-section--compact { padding: 22px 0 30px; }
.cta-box--sm { padding: 26px 28px; }

@media (max-width: 1100px) { .svc-link-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 992px) {
    .catalog { grid-template-columns: minmax(0,1fr); }
    .ms-list, .co-list-col .co-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
    .hub-crumbs { padding-top: 10px; }
    body.hub .hub-crumbs + .page-hero { padding-top: 8px !important; }
    body.hub .page-hero > .container { padding: 18px 16px !important; }
    .page-hero-title { font-size: 23px; }
    .svc-link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .svc-link-card { padding: 12px; border-radius: 14px; }
    .svc-main-content { padding: 18px 16px; border-radius: 20px; font-size: 14px; }
    .section-title, .section-title--sm, .subcategories-title { font-size: 18px; }
    .co-grid, .rq-grid { grid-template-columns: minmax(0,1fr) !important; }
    .catalog-cat { padding: 14px 14px 6px; border-radius: 20px; }
    .subcategories-header .list-filter { max-width: none; width: 100%; }
    .co-card.pv-card, .ms-card.pv-card, .rq-card.tk-card { border-radius: 20px; padding: 16px; }
}

/* список компаній у місті — сітка карток, а не рядки */
.co-grid--list { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.co-grid--list .pv-card { flex-direction: column !important; }
@media (max-width: 992px) { .co-grid--list { grid-template-columns: minmax(0,1fr); } }
.catalog-list { overflow-x: hidden; }

/* шапка: текст зліва, кнопка дії справа (як «Замовити послугу» в концепції) */
@media (min-width: 900px) {
  .page-hero-content:has(> .svc-hero-actions), .svc-hero-content:has(> .svc-hero-actions) { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 28px; }
  .page-hero-content:has(> .svc-hero-actions) > *, .svc-hero-content:has(> .svc-hero-actions) > * { grid-column: 1; }
  .page-hero-content > .svc-hero-actions, .svc-hero-content > .svc-hero-actions { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; flex-direction: column; }
}

/* ═══ ПРОФІЛЬ (компанія / майстер) — екран «Профіль» концепції ═══ */
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pf-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.pf-ava { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); flex-shrink: 0; background: var(--bg-light); }
.pf-ava--empty { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 34px; font-weight: 800; }
.pf-info { min-width: 0; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.pf-badges .svc-hero-cat { margin: 0 !important; }
.pf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.pf-badge svg { width: 12px; height: 12px; }
.pf-badge--main { background: var(--accent); color: #fff; }
.pf-badge--ok { background: var(--accent-soft); color: var(--accent); }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px !important; font-size: 13px; }
.pf-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pf-actions { display: grid; gap: 8px; flex-shrink: 0; min-width: 220px; }
.pf-actions .co-phone-item { display: flex; margin: 0; }
.pf-actions .co-phone-item > svg, .pf-actions .co-phone-item > i { display: none; }
.pf-actions .co-phone-btn { width: 100%; justify-content: center; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; border: 0; }
.pf-actions .co-phone-btn .co-phone-show { color: #fff; }
.pf-actions .co-phone-btn .co-phone-mask { opacity: .8; }
@media (hover: hover) { .pf-actions .co-phone-btn:hover { background: var(--accent-hover); } }
.pf-actions .btn-secondary { background: var(--bg-light); border: 0; }
.pf-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--accent-line); }
.pf-facts div { background: var(--bg-light); border-radius: 14px; padding: 12px; min-width: 0; }
.pf-facts span { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 2px; }
.pf-facts strong { font-size: 13px; color: #111315; overflow-wrap: anywhere; }
.pf-facts .pf-accent { color: var(--accent-hover); }
.page-hero:has(.pf-head) > .container { background: linear-gradient(135deg, #fff 0%, #fff 55%, #fff6ee 100%); border-color: var(--accent-line); }
@media (max-width: 900px) {
    .pf-head { flex-direction: column; align-items: stretch; }
    .pf-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
    .pf-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
    .pf-main { align-items: flex-start; gap: 12px; }
    .pf-ava { width: 60px; height: 60px; border-radius: 14px; }
    .pf-ava--empty { font-size: 24px; }
    .pf-actions { grid-template-columns: 1fr; }
}
.co-card.pv-card, .ms-card.pv-card { flex-direction: column; align-items: stretch; }
.ms-card.pv-card > * { width: auto; max-width: none; }

/* плашки в шапках сторінок — за шириною тексту, а не на весь рядок */
.page-hero .svc-hero-cat, .page-hero .page-hero-badge, .page-hero .hub-pill, .sh-label, .sh-pill { justify-self: start; align-self: start; width: max-content; max-width: 100%; }

/* каталог: на десктопі категорії переносяться на кілька рядків, на телефоні — горизонтальна стрічка */
@media (min-width: 769px) {
    .cat-jump { flex-wrap: wrap; overflow: visible; gap: 8px; padding-bottom: 0; margin-bottom: 18px; }
    .cat-jump .chip { white-space: normal; padding: 7px 13px; font-size: 13px; }
}

/* каталог: одна лінія між заголовком і першою видимою послугою (і під час пошуку теж) */
.catalog-cat-title { border-bottom: 0 !important; padding-bottom: 6px !important; margin-bottom: 0 !important; }
.catalog-list li, .catalog-list li:first-child { border-top: 1px solid rgba(17,19,21,.06); }
