/* Provider directory prototype
   Color budget: ~85% white/neutral, ~10% primary (#0067a5), ~5% accent (#009e49). */

:root {
	--primary: #0067a5;
	--primary-dark: #004f7f;
	--primary-tint: #eaf3f9;
	--primary-line: #cfe2ef;
	--accent: #009e49;
	--accent-text: #00703a;   /* #009e49 is 3.3:1 on white, too light for small text */
	--accent-tint: #e7f6ee;
	--no: #c9352b;
	--no-text: #a4262c;
	--no-tint: #fdeeed;
	--ink: #17222d;
	--muted: #5a6776;
	--line: #e2e7ed;
	--bg: #f7f9fb;
	--white: #fff;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(23, 34, 45, .05), 0 2px 8px rgba(23, 34, 45, .04);
	--shadow-hover: 0 2px 4px rgba(23, 34, 45, .06), 0 10px 24px rgba(23, 34, 45, .08);
	--topbar: 64px;
	--sidebar: 288px;
	--font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--primary); }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sep { color: #b3bcc6; margin: 0 .2em; }
.accent-text { color: var(--accent-text); font-weight: 600; }
kbd { font: 600 12px/1 var(--font); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; background: #fff; color: var(--muted); }

/* ------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--white); color: var(--ink); border-bottom: 3px solid var(--primary); }
.topbar__inner { height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand__logo { height: 34px; width: auto; flex: none; }
.brand__tool { font-size: 15px; font-weight: 700; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 16px; border-left: 1px solid var(--line); line-height: 34px; }
.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.pill-demo { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.topbar__menu { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #cdd5de; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.topbar__menu .icon { font-size: 18px; }
.badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }


/* ------------------------------------------------ layout */
.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); }
.main { min-width: 0; }
.container { max-width: 1300px; margin: 0 auto; padding: 32px 32px 48px; }

/* ------------------------------------------------ sidebar */
.sidebar { background: var(--white); border-right: 1px solid var(--line); position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 20px 14px 0; overscroll-behavior: contain; }
.sidebar__head { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.sidebar__head h2 { font-size: 16px; font-weight: 700; margin-right: auto; }
.iconbtn.sidebar__close { display: none; }
.sidebar__foot { display: none; }
.fgroup { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fgroup legend, .flabel { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; display: block; }
.fgroup legend { float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fgroup--long:not(.is-open) .is-extra { display: none; }
.fgroup .linkbtn { margin-top: 6px; }

.check { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0; border-radius: 8px; cursor: pointer; min-height: 36px; }
.check:hover { background: var(--primary-tint); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 18px; height: 18px; border: 1.5px solid #aab5c1; border-radius: 5px; display: grid; place-items: center; flex: none; background: #fff; color: #fff; font-size: 13px; }
.check__box .icon { stroke-width: 3; opacity: 0; }
.check input:checked + .check__box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--primary); outline-offset: 2px; }
.check__label { flex: 1; font-size: 14px; line-height: 1.3; }
.check.is-zero .check__label { color: #9aa5b1; }
.count { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }

.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 36px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { width: 38px; height: 22px; border-radius: 999px; background: #cfd6de; position: relative; flex: none; transition: background .2s; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle input:checked + .toggle__track { background: var(--accent); }
.toggle input:checked + .toggle__track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__track { outline: 3px solid var(--primary); outline-offset: 2px; }
.toggle__text { flex: 1; font-weight: 600; font-size: 14px; }

.input, .select { width: 100%; min-height: 40px; border: 1px solid #cdd5de; border-radius: 8px; padding: 8px 12px; background: #fff; font-size: 14px; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 103, 165, .18); }
.select { width: auto; padding-right: 32px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6776' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; cursor: pointer; }

.kv .linkbtn { margin-left: 6px; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-size: 20px; color: var(--muted); }
.iconbtn:hover { background: var(--bg); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn .icon { font-size: 16px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: #fff; border-color: #cdd5de; color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--block { width: 100%; }

/* ------------------------------------------------ hero + search */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { display: block; }
.searchbox { position: relative; max-width: 640px; margin: 24px auto 10px; }
.searchbox input { width: 100%; height: 56px; border: 2px solid var(--ink); border-radius: 999px; padding: 0 64px 0 24px; font-size: 17px; background: #fff; }
.searchbox input::-webkit-search-cancel-button { cursor: pointer; }
.searchbox input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 103, 165, .16); }
.searchbox__btn { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 20px; cursor: pointer; }
.searchbox__btn:hover { background: var(--primary-dark); }
.hero__help { color: var(--muted); font-size: 14px; }

.hero--compact { text-align: left; padding: 0; }
.hero--compact h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero--compact .searchbox { margin: 0 0 8px; max-width: none; }
.hero--compact .searchbox input { height: 48px; border-width: 1.5px; border-color: #cdd5de; font-size: 16px; }
.hero--compact .searchbox__btn { width: 36px; height: 36px; font-size: 17px; }
.hero--compact .hero__help { font-size: 13px; }
.hero--compact { display: flex; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; }
.hero--compact .hero__search { flex: 1 1 360px; min-width: 0; }
.quick { display: none; }
.hero--compact .quick { display: block; flex: 0 1 auto; }
.quick ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick__item { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.quick__item .icon { font-size: 17px; color: var(--primary); }
.quick__item:hover { border-color: var(--primary); color: var(--primary); }
.quick__item.is-active { border-color: var(--primary); background: var(--primary-tint); color: var(--primary-dark); }

/* ------------------------------------------------ landing */
.section-title { font-size: 20px; font-weight: 800; text-align: center; margin: 36px 0 18px; }
.shortcuts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.shortcut { height: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.shortcut:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.shortcut__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; font-size: 24px; }
.shortcut__label { font-weight: 700; font-size: 16px; line-height: 1.2; }
.shortcut__count { font-size: 12px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.stat__num { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat--accent { border: 1.5px solid var(--accent); }
.stat--accent .stat__num { color: var(--accent-text); }
.stat--accent:hover { box-shadow: var(--shadow-hover); }

/* ------------------------------------------------ results */
.results { margin-top: 28px; }
.results:focus { outline: none; }
.results-head { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.results-head__main { flex: 1 1 320px; min-width: 0; }
.results-head__title h2 { font-size: 24px; font-weight: 800; }
.results-count { color: var(--muted); font-size: 14px; margin-top: 4px; }
.results-count strong { color: var(--ink); }
.results-head__tools { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid #cdd5de; border-radius: 8px; overflow: hidden; background: #fff; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span:not(.sr-only) { width: 40px; height: 38px; display: grid; place-items: center; font-size: 17px; color: var(--muted); }
.seg input:checked + span { background: var(--primary-tint); color: var(--primary); }
.seg input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: -3px; }

.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px 4px 12px; border-radius: 999px; background: var(--primary-tint); border: 1px solid var(--primary-line); color: var(--primary-dark); font-size: 13px; font-weight: 600; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.chip .icon { font-size: 14px; }
.chip:hover { border-color: var(--primary); }
.chip--clear { background: transparent; border-color: transparent; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary-line); }
.card__id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.card__name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a:hover { color: var(--primary); text-decoration: underline; }
.cred { font-weight: 500; color: var(--muted); }
.card__spec { color: var(--primary); font-weight: 600; font-size: 13px; margin-top: 2px; }
.card__facts { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.card__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__facts dd { margin: 0; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.card__facts dd .icon { color: var(--muted); transform: translateY(2px); }
.more { font-size: 12px; color: var(--muted); font-weight: 600; }
.card__contact { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--primary); min-height: 32px; }
.tel:hover { text-decoration: underline; }
.fax { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-height: 32px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--primary); min-height: 32px; }
.card__more .icon { transition: transform .15s; }
.card__more:hover .icon { transform: translateX(3px); }

.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; overflow: hidden; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 88px; height: 88px; font-size: 28px; }
.no-photos .avatar { display: none; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 999px; white-space: nowrap; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status--yes { background: var(--accent-tint); color: var(--accent-text); }
.status--yes .dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 158, 73, .18); }
.status--no { background: var(--no-tint); color: var(--no-text); }
.status--no .dot { background: var(--no); }
.status--sm { padding: 2px 8px 2px 6px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); font-weight: 700; white-space: nowrap; }
.ptable tbody th { font-weight: 600; white-space: nowrap; }
.ptable tbody th a { color: var(--ink); text-decoration: none; }
.ptable tbody th a:hover { color: var(--primary); text-decoration: underline; }
.ptable tbody tr:hover { background: #fbfcfd; }
.ptable tbody tr:last-child > * { border-bottom: 0; }

.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed #cdd5de; border-radius: var(--radius); }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 18px; }


.is-loading [data-results] { opacity: .55; transition: opacity .15s; }

/* ------------------------------------------------ profile modal */
.modal { width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 64px rgba(10, 25, 40, .28); color: var(--ink); }
.modal::backdrop { background: rgba(12, 28, 44, .55); }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: #fff; }
.modal__body { padding: 28px; }
.profile__head { display: flex; gap: 20px; align-items: center; padding-right: 40px; }
.profile__title { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.profile__title h2 { font-size: 26px; font-weight: 800; }
.profile__spec { color: var(--primary); font-weight: 600; }
.profile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.panel--wide { grid-column: 1 / -1; }
.panel h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.kv { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.kv > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv .tel, .kv .fax { min-height: 0; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.tags a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.locs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; font-size: 14px; }
.locs li { display: grid; gap: 4px; align-content: start; }
.locs__links { display: grid; gap: 0; margin-top: 4px; }
.locs__links a:not(.tel) { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; min-height: 32px; }
.locs__links a:not(.tel):hover { text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-hover); }

/* ------------------------------------------------ responsive */
@media (max-width: 1180px) {
	.shortcuts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.topbar__menu { display: inline-flex; }
	.sidebar { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; height: auto; width: min(340px, 88vw); transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .2); padding-top: 12px; }
	.sidebar.is-open { transform: none; }
	.iconbtn.sidebar__close { display: grid; }
	.sidebar__foot { display: block; position: sticky; bottom: 0; background: #fff; padding: 14px 0 18px; border-top: 1px solid var(--line); }
	.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(12, 28, 44, .45); }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.container { padding: 20px 16px 40px; }
	.topbar__inner { padding: 0 12px; gap: 10px; }
	.pill-demo, .brand__tool { display: none; }
	.brand__logo { height: 28px; }
	.topbar__menu span:not(.badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hero { padding-top: 8px; }
	.searchbox { margin-top: 18px; }
	.searchbox input { height: 52px; font-size: 16px; }
	.kbd-hint { display: none; }
	.shortcuts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.shortcut { min-height: 120px; }
	.shortcuts__grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.stats { gap: 12px; }
	.stat__num { font-size: 24px; }
	.results-head__title h2 { font-size: 20px; }
	.grid { grid-template-columns: minmax(0, 1fr); }
	.modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
	.modal__body { padding: 20px 16px 32px; }
	.profile__head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.profile__title h2 { font-size: 22px; }
	.profile__grid { grid-template-columns: minmax(0, 1fr); }
	.profile__actions .btn { flex: 1 1 100%; }
	.kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.tel, .card__more, .chip, .check, .tags a, .locs__links a:not(.tel), .linkbtn, .brand { min-height: 44px; }
	.tags a, .linkbtn { display: inline-flex; align-items: center; }
	.hero__help { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------ WordPress: admin bar + single provider page */
body { --adminbar: 0px; }
body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --adminbar: 0px; } }
.admin-bar .topbar { top: var(--adminbar); }
.admin-bar .sidebar { top: calc(var(--topbar) + var(--adminbar)); height: calc(100vh - var(--topbar) - var(--adminbar)); }
@media (max-width: 1023px) { .admin-bar .sidebar { top: 0; height: auto; } }

.container--narrow { max-width: 920px; }
.backlink { margin-bottom: 16px; }
.backlink a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.backlink .icon { transform: rotate(180deg); }
.profile-page { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 720px) { .profile-page { padding: 20px 16px; } }
