/* ================= Пілот дизайну: сторінка об'єкта (користувач 12.11; гілка design-pilot) =================
   «Трохи старомодно», «здорова плашка "зберегти"», «фактори поруч з іконками й бубликами», «повернути таблички й точки поруч відвідувачу».
   Усі правила — під html.p-rep (клас ставить скрипт у <head> report.html; ?v=0 — попередній вигляд).
   Дані, бали, слова — ті самі, що сторінка вже показує; js/pilot-report.js лише перекладає готову розмітку. */
html.p-rep { --p-good: #1c9a68; --p-mid: #8097bd; --p-acc: #245bcc; --p-acc-soft: #eaf0fc; --p-ink: #17273e; --p-mut: #5b6b80; --p-line: #e3e8f0; --p-hair: #eef1f6; --p-soft: #f3f6fa; --p-r: 16px; }
html.p-rep body { background: #f6f8fb; color: var(--p-ink); }
html.p-rep .page { max-width: 1040px; }

/* заголовки — звичайним письмом, без дрібних «ВЕЛИКИХ» підписів */
html.p-rep .page h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 34px 0 12px; color: var(--p-ink); }
html.p-rep .page h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--p-ink); margin: 0 0 12px; }
html.p-rep .card, html.p-rep .summary .s { border-radius: var(--p-r); border: 1px solid var(--p-line); box-shadow: none; }
html.p-rep .card { padding: 20px 22px; margin: 14px 0; }

/* ---------- верх ---------- */
html.p-rep .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: start; padding: 4px 0 6px !important; }
html.p-rep .hero > * { grid-column: 1 / -1; min-width: 0; }
html.p-rep .hero > div:first-child { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; }
html.p-rep .hero > h1 { grid-column: 1; font-size: 29px; line-height: 1.16; letter-spacing: -.025em; margin: 12px 0 4px; }
html.p-rep .hero > .hero-acts { grid-column: 2; grid-row: 1 / span 2; align-self: center; float: none; margin: 0; display: flex; gap: 8px; }
html.p-rep .badge { border-radius: 999px !important; padding: 4px 11px; font-size: 12.5px; font-weight: 500; border: 0; background: #e9eef5; color: #33445c; }
html.p-rep .badge.olx { background: var(--olx-soft); color: var(--olx); }
html.p-rep .badge.auction { background: var(--warn-soft); color: var(--warn); }
/* три дії — однакові тихі кнопки зі значком (була синя плашка «Зберегти») */
html.p-rep .hero-acts > *, html.p-rep .hero-acts .fav.fav-text { height: 38px; padding: 0 15px 0 12px; gap: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--p-line); border-radius: 999px; background: #fff; color: var(--p-ink); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1;
  box-shadow: none; filter: none; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
html.p-rep .hero-acts > *:hover { border-color: #c5d0e0; background: var(--p-soft); transform: none; filter: none; }
html.p-rep .hero-acts svg { width: 17px; height: 17px; flex: none; color: var(--p-mut); }
/* «Зберегти» — перша й синя (рішення користувача 12.11, design/report-fav); на телефоні — синя кругла кнопка замість плашки на всю ширину */
html.p-rep .hero-acts .fav.fav-text { background: var(--p-acc); border-color: var(--p-acc); color: #fff; }
html.p-rep .hero-acts .fav.fav-text svg { color: #fff; }
html.p-rep .hero-acts .fav.fav-text:hover { background: #1d4fb6; border-color: #1d4fb6; }
html.p-rep .hero-acts .fav.fav-text.on, html.p-rep .hero-acts .fav.fav-text.on:hover { background: var(--p-acc-soft); border-color: #c9d8f8; color: var(--p-acc); }
html.p-rep .hero-acts .fav.fav-text.on svg { color: var(--p-acc); }
html.p-rep .hero > p.muted { font-size: 15.5px !important; margin: 0 0 12px !important; color: var(--p-mut); max-width: none; }
html.p-rep .hero > div[style*="font-size:18px"] { font-size: 16px !important; color: #3d4c61; }
html.p-rep .hero > div[style*="font-size:18px"] > b { font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: var(--p-ink); }
html.p-rep .hero .cta-link { justify-self: start; display: inline-flex; align-items: center; height: 42px; padding: 0 18px; margin-top: 14px; border-radius: 11px;
  background: var(--p-acc-soft); color: var(--p-acc); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .15s; }  /* спокійніша за «Зберегти»: суцільна синя кнопка у верху одна */
html.p-rep .hero .cta-link:hover { background: #dbe6fb; }
html.p-rep .photos { gap: 10px; padding: 12px 0 4px; height: 208px; }
html.p-rep .photos img { border-radius: 14px; border: 0; transition: filter .2s; }
html.p-rep .photos a:hover img { filter: brightness(.94); }

/* факти приміщення — фішками, без картки */
html.p-rep .card.p-prem { background: none; border: 0; padding: 0; margin: 8px 0 4px; }
html.p-rep .card.p-prem > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.p-rep .card.p-prem > p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
html.p-rep .card.p-prem > p span { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--p-line); font-size: 13.5px; line-height: 1.2; color: var(--p-ink); }

/* параметри — у два стовпці, підписи без «ВЕЛИКИХ»; довгий опис — згорнуто */
html.p-rep .kv { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 11px 20px; font-size: 14.5px; }
html.p-rep .kv > div:nth-child(odd) { font-size: 13.5px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--p-mut); padding-top: 1px; }
html.p-rep .card .kv ~ h3 { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--p-hair); }
html.p-rep .p-about > p.small { font-size: 14.5px; line-height: 1.62; color: #3d4c61; margin: 0; }
html.p-rep .p-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
html.p-rep .p-desc.open { display: block; }
html.p-rep .p-more { display: grid; place-items: center; width: 34px; height: 34px; margin: 10px auto -6px; padding: 0; border: 1px solid var(--p-line); border-radius: 50%; background: #fff; color: var(--p-mut); cursor: pointer; transition: transform .2s, border-color .15s; }
html.p-rep .p-more:hover { border-color: #c5d0e0; color: var(--p-ink); }
html.p-rep .p-more svg { width: 18px; height: 18px; }
html.p-rep .p-more.open { transform: rotate(180deg); }

/* ---------- «Оцінка місця»: фактори поруч, кільце замість смужки ---------- */
html.p-rep .rep-pair { display: block; margin: 0 0 14px; }
html.p-rep .pf-card { padding: 18px 22px 20px; }
html.p-rep .pf-card > h3 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; color: var(--p-mut); }
html.p-rep .pf-card > h3 label { gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--p-ink); }
html.p-rep .pf-sel, html.p-rep #biz-select { height: 38px; max-width: 100%; padding: 0 36px 0 13px; border: 1px solid var(--p-line); border-radius: 11px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--p-ink);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 16px; }
html.p-rep .pf-sel:hover, html.p-rep #biz-select:hover { border-color: #c5d0e0; }
/* вибір бізнесу — головний перемикач блоку, помітніше (користувач 14.11, трекер 254: «выбор бизнеса слишком справа, не сразу бросается
   в глаза»): більший шрифт, синя рамка 2 px (1,5 px на звичайному екрані малюється як 1), світло-синє тло, синя стрілка. Список
   конкурентів адміну (#biz-select) — як був */
html.p-rep .pf-card > h3 .pf-sel { height: 42px; padding: 0 42px 0 15px; border: 2px solid var(--p-acc); font-size: 16px;
  background-color: var(--p-acc-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23245bcc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 13px center; background-size: 18px; }
html.p-rep .pf-card > h3 .pf-sel:hover { border-color: #1d4cb0; background-color: #e0e9fb; }
html.p-rep .pf-card > h3 .pf-sel:focus-visible { outline: 3px solid rgba(36, 91, 204, .28); outline-offset: 2px; }
html.p-rep:not(.cs-admin) .pf-card.p-on .pf-r, html.p-rep .pf-card.p-on .pf-why { display: none; }
html.p-rep:not(.cs-admin) .summary .s.p-used { display: none; }
html.p-rep .summary:not(:has(.s:not(.p-used))) { display: none; }
html.p-rep.cs-admin .summary:has(.s) { display: grid; }
html.p-rep .p-trio { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); padding: 18px 0 4px; }
html.p-rep .p-fac { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 4px 14px; }
html.p-rep .p-fac + .p-fac { border-left: 1px solid var(--p-hair); }
html.p-rep .p-ring { position: relative; width: 116px; height: 116px; margin-bottom: 16px; flex: none; }  /* більші кільця на комп'ютері (користувач 12.11: «маленькі бублики») */
html.p-rep .p-ring .r { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
html.p-rep .p-ring circle { fill: none; stroke-width: 2.3; }
html.p-rep .p-ring .t { stroke: #e7ecf3; }
html.p-rep .p-fac.good { --c: var(--p-good); }
html.p-rep .p-fac.ok { --c: color-mix(in srgb, var(--p-good) 60%, var(--p-mid)); }  /* мешканці / трафік понад половину — відтінок зеленого (користувач 19.11) */  /* добрий рівень — зелене кільце, як ✓ під кільцями (користувач 12.11) */
/* кільце заповнюється плавно, коли блок потрапляє в кадр (клас in ставить pilot-report.js) */
html.p-rep .p-ring .f { stroke: var(--c, var(--p-mid)); stroke-linecap: round; stroke-dasharray: 0 100; opacity: 0; transition: stroke-dasharray 1s cubic-bezier(.22, .61, .36, 1), opacity .2s; }
html.p-rep .p-trio.in .p-ring .f { stroke-dasharray: var(--v) 100; opacity: 1; }
html.p-rep .p-ico { position: absolute; inset: 0; display: grid; place-items: center; color: var(--p-ink); }
html.p-rep .p-ico svg { width: 40px; height: 40px; stroke-width: 1.45; }
/* бізнес не вибрано — порожнє кільце «Конкуренти» з вибором бізнесу в ньому (користувач 12.11); без кольору оцінки: оцінки ще немає */
html.p-rep .p-fac.pick { position: relative; cursor: pointer; }
html.p-rep .p-fac.pick .p-pick { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
html.p-rep .p-fac.pick .p-ring .t { stroke: #d0d6df; transition: stroke .15s; }  /* порожнє кільце: сіре, без заповнення, не пунктир (користувач 12.11: «серо пустое») */
html.p-rep .p-fac.pick .p-ico { color: #9aa4b2; transition: color .15s; }
html.p-rep .p-fac.pick .p-h { display: inline-flex; align-items: center; gap: 3px; font-size: 17px; font-weight: 600; color: var(--p-acc); }
html.p-rep .p-fac.pick .p-h svg { width: 18px; height: 18px; flex: none; stroke-width: 2.2; }
html.p-rep .p-fac.pick:hover .p-ring .t, html.p-rep .p-fac.pick:focus-within .p-ring .t { stroke: #bcc5d1; }
html.p-rep .p-fac.pick:hover .p-ico, html.p-rep .p-fac.pick:focus-within .p-ico { color: var(--p-acc); }
/* бал у кільці: число по центру, значок — біля назви (клас sc на .p-trio) */
html.p-rep .p-num { position: absolute; inset: 0; display: none; place-items: center; font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--p-ink); }
html.p-rep .p-ti { display: none; }
html.p-rep .p-trio.sc .p-fac:not(.pick):not(.off) .p-num { display: grid; }
html.p-rep .p-trio.sc .p-fac:not(.pick):not(.off) .p-ico { display: none; }
html.p-rep .p-trio.sc .p-fac:not(.pick):not(.off) .p-ti { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
/* головний фактор без значення — кільце лишається на місці: порожнє сіре, як «Конкуренти» без бізнесу, з «—»; без заповнення,
   числа й слова рівня, щоб не читалось як нуль (користувач 13.11: три кільця — завжди) */
html.p-rep .p-fac.off .p-ring .t { stroke: #d0d6df; }
html.p-rep .p-fac.off .p-ico { color: #9aa4b2; }
html.p-rep .p-fac.off .p-h { color: #9aa4b2; font-weight: 600; }
html.p-rep .p-ti svg { width: 17px; height: 17px; }
html.p-rep .p-x { min-width: 0; }
html.p-rep .p-t { font-size: 14.5px; line-height: 1.3; color: var(--p-mut); }
html.p-rep .p-h { margin-top: 3px; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--p-ink); }
html.p-rep .p-d { margin: 7px auto 0; max-width: 34ch; font-size: 13.5px; line-height: 1.45; color: var(--p-mut); }
html.p-rep .p-why { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--p-hair); }
html.p-rep .p-why span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--p-ink); }
html.p-rep .p-why span::before { content: ""; width: 17px; height: 17px; flex: none; background: #17875a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; }
/* фактори, що не є шкалою (метро, діловий район, центр…), — не кільцем, а рядком-фактом зі значком фактора (користувач 13.11):
   ▲ — зелений значок, ▼ — жовтий, без позначки — сірий */
html.p-rep .p-why span.fx::before { content: none; }
html.p-rep .p-why span.fx svg { width: 18px; height: 18px; flex: none; color: var(--p-mut); }
html.p-rep .p-why span.fx.up svg { color: #17875a; }
html.p-rep .p-why span.fx.dn svg { color: #c57a16; }
html.p-rep .p-why span.dn::before { background: #c57a16;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
/* плитки, що лишились (не в кільцях) */
html.p-rep .summary { margin: 14px 0; gap: 14px; }
html.p-rep .summary .s { padding: 16px 20px; }
html.p-rep .summary .s .k { font-size: 13.5px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--p-mut); }
html.p-rep .summary .s .v { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }

/* ставка / ціна до медіани — не фактор місця: окрема смужка під оцінкою (оцінювач 12.11) */
html.p-rep:not(.cs-admin) .summary .s.p-rate { grid-column: 1 / -1; display: grid; grid-template-columns: 42px max-content max-content minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 20px 12px 16px; }
html.p-rep:not(.cs-admin) .summary .s.p-rate::before { content: ""; grid-column: 1; grid-row: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--p-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317273e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.6' fill='%2317273e'/%3E%3C/svg%3E") center / 20px no-repeat; }
html.p-rep:not(.cs-admin) .summary .s.p-rate .k { grid-column: 2; grid-row: 1; }
html.p-rep:not(.cs-admin) .summary .s.p-rate .v { grid-column: 3; grid-row: 1; margin: 0; font-size: 18px !important; }
html.p-rep:not(.cs-admin) .summary .s.p-rate .d { grid-column: 4; font-size: 15px; }
/* медіана поруч із ціною — звичайним кольором тексту, не блідо-сірим (користувач 13.11, трекер 249): число півжирним, «· N огол.» — другорядним */
html.p-rep .summary .s.p-rate .d.p-med { color: var(--p-ink); }
html.p-rep .summary .s.p-rate .d.p-med > b { font-weight: 600; white-space: nowrap; }
html.p-rep .summary .s.p-rate .d.p-med > span { color: var(--p-mut); }

/* ---------- таблиці оточення й конкурентів — відвідувачу ---------- */
/* один вибір бізнесу на сторінці («Оцінка для») і одне число конкурентів: другий список і рядок під таблицею — лише адміну;
   «Насиченість» — лише адміну, доки не пройшла аналіз (правило 12.11) */
html.p-rep:not(.cs-admin) .p-env .card > label.small, html.p-rep:not(.cs-admin) .p-env #comp-table ~ .small { display: none; }
html.p-rep:not(.cs-admin) #comp-table th:last-child, html.p-rep:not(.cs-admin) #comp-table td:last-child { display: none; }
html.p-rep .p-all { display: none; }
html.p-rep #report > .grid2.p-env { display: grid !important; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 14px; align-items: start; margin: 14px 0; }
/* картки в сітці — без власних полів (як «.grid2 > .card» сайту): інакше проміжок до карти 28 px, а між картками на телефоні 42 px замість 14 */
html.p-rep #report > .grid2.p-env > .card { margin: 0; }
html.p-rep table.tbl { font-size: 14px; }
html.p-rep table.tbl th, html.p-rep table.tbl td { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--p-hair); vertical-align: middle; }
html.p-rep table.tbl th:first-child, html.p-rep table.tbl td:first-child { padding-left: 0; }
html.p-rep table.tbl th { padding-top: 0; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--p-mut); border-bottom-color: var(--p-line); white-space: nowrap; }
html.p-rep table.tbl th.num, html.p-rep table.tbl td.num { width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
html.p-rep table.tbl td.num.z { color: #b3bdcb; }
html.p-rep table.tbl tr:last-child td { border-bottom: 0; }
html.p-rep table.tbl tr.hl { background: none; }
html.p-rep table.tbl tr.hl td { background: var(--p-acc-soft); font-weight: 600; }
html.p-rep table.tbl tr.hl td:first-child { box-shadow: -10px 0 0 var(--p-acc-soft); border-radius: 0; }
html.p-rep table.tbl tr.hl td:last-child { box-shadow: 10px 0 0 var(--p-acc-soft); }
html.p-rep #comp-table td:last-child { text-align: right; font-weight: 400; }
html.p-rep #comp-table th:last-child { text-align: right; }
html.p-rep .p-env .card > label.small { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; font-size: 14px; white-space: nowrap; }
html.p-rep .p-env #biz-select { flex: 1 1 auto; min-width: 0; height: 36px; font-size: 14px; }
html.p-rep .p-env #comp-table ~ .small p { margin: 12px 0 0; font-size: 13.5px; color: var(--p-mut); }
/* другий заголовок у картці («Точки тяжіння поруч», адміну «Великі мережі поруч») — з відступом від таблиці: між ними стоять «Показати всі»
   (на комп'ютері прихована) і примітка, тож «table + h3» не спрацьовував і заголовок прилипав до таблиці */
html.p-rep .p-env .card > h3:not(:first-child) { margin-top: 26px; }
html.p-rep .p-anc { list-style: none; margin: 0; padding: 0; }
html.p-rep .p-anc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--p-hair); font-size: 14px; line-height: 1.35; }
html.p-rep .p-anc li:last-child { border-bottom: 0; padding-bottom: 0; }
html.p-rep .p-anc .n { grid-column: 1; overflow-wrap: anywhere; }
html.p-rep .p-anc .k { grid-column: 1; font-size: 12.5px; color: var(--p-mut); }
html.p-rep .p-anc .d { grid-column: 2; grid-row: 1 / span 2; padding: 4px 10px; border-radius: 999px; background: var(--p-soft); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* карта й «Що ще подивитись» */
html.p-rep #minimap { border-radius: 12px; }
/* зразок кола в легенді адміна — як на карті: тонка суцільна лінія (кола 300 і 500 м — усім, трекер 249) */
html.p-rep .mm-chip i.mm-ring { border-top: 1.5px solid #2158d6; }
html.p-rep .more .mn { border-top-color: var(--p-hair); padding: 11px 0; }
html.p-rep .more-go a { border-top-color: var(--p-hair); font-weight: 600; }

/* один фактор (земля: лише мешканці) — рядком: кільце ліворуч, текст праворуч */
html.p-rep .p-trio[data-n="1"] { padding-top: 4px; }
html.p-rep .p-trio[data-n="1"] .p-fac { flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; padding: 0; }
html.p-rep .p-trio[data-n="1"] .p-ring { margin: 0; }
/* вибір бізнесу — першим рядком картки, ліворуч одразу під заголовком «Оцінка місця», як у панелі на карті й на телефоні (користувач 14.11,
   трекер 254). Був у рядку заголовка праворуч — на 1366 за 750 px від заголовка, погляд його не знаходив. Заглушка «Рахуємо оцінку…» —
   висоти картки з трьома факторами (сторінка не стрибає, коли картка її заміняє) */
@media (min-width: 601px) {
  html.p-rep #pf-slot > .pf-card:not(.pf-skel) > h3 { margin: 0 0 4px; }
  html.p-rep #pf-slot > .pf-skel { min-height: 390px; box-sizing: border-box; }
  html.p-rep .pf-card.p-on .p-trio { padding-top: 16px; padding-bottom: 8px; }
}
/* ---------- до 959 px (вузьке вікно ноутбука, планшет, телефон боком): назва — на всю ширину, дії — у рядку позначок. У колонці
   поруч із трьома кнопками назву стискало: на 640 — до 120–340 px (чотири рядки), на 861–959 — до 370–465 px (29 px — у два рядки,
   довгі — у три). З 960 px — як на ноутбуці: назва ліворуч, кнопки праворуч ---------- */
@media (max-width: 959px) {
  html.p-rep .hero > h1 { grid-column: 1 / -1; }
  html.p-rep .hero > .hero-acts { grid-row: 1; align-self: start; }
}
/* ---------- вузько: планшет ---------- */
@media (max-width: 860px) {
  html.p-rep #report > .grid2.p-env { grid-template-columns: minmax(0, 1fr); }
  html.p-rep .kv { grid-template-columns: max-content minmax(0, 1fr); }
  html.p-rep .p-ring { width: 92px; height: 92px; }
  html.p-rep .p-num { font-size: 27px; }
  html.p-rep .p-ico svg { width: 32px; height: 32px; }
  html.p-rep .p-h { font-size: 19px; }
  /* назва на всю ширину й дії в рядку позначок — у блоці вище (до 959 px); тут лише розмір */
  html.p-rep .hero > h1 { font-size: 25px; }
  html.p-rep .hero > div[style*="font-size:18px"] > b { font-size: 22px; }  /* сходинка між сторінкою (29 / 25) і телефоном та панеллю (20 / 20) */
}
/* ---------- телефон, телефон боком, панель на карті: дії — трьома круглими значками праворуч угорі (була плашка на всю ширину) ---------- */
@media (max-width: 760px) {
  html.p-rep .hero { column-gap: 10px; }
  html.p-rep .hero > .hero-acts { gap: 6px; flex-wrap: nowrap; }
  html.p-rep .hero-acts > *, html.p-rep .hero-acts .fav.fav-text { flex: none; width: 38px; padding: 0; gap: 0; font-size: 0; }
  html.p-rep .hero-acts .fav.fav-text span { display: none; }
  html.p-rep .hero-acts svg { width: 18px; height: 18px; }
}
/* ---------- телефон і панель на карті ---------- */
@media (max-width: 600px) {
  html.p-rep .page h2 { font-size: 19px; margin-top: 28px; }
  html.p-rep .card { padding: 16px; }
  /* назва й ціна — по 20 px (були 23 і 22): користувач 13.11 — «слишком крупный шрифт текста заголовка на панели объявления». Панель
     на карті (432–553 px) стоїть поруч зі списком, 23 px жирним там кричало; решта рядка ціни й адреса — 15 px, як основний текст:
     рядок ціни в панелі стає в один рядок (був у два), назва на телефоні — теж частіше в один */
  html.p-rep .hero > h1 { font-size: 20px; line-height: 1.22; letter-spacing: -.02em; margin: 12px 0 3px; }
  html.p-rep .hero > p.muted { font-size: 15px !important; }
  html.p-rep .hero > div[style*="font-size:18px"] { font-size: 15px !important; }
  html.p-rep .hero > div[style*="font-size:18px"] > b { font-size: 20px; }
  html.p-rep .hero .cta-link { height: 44px; }
  html.p-rep .kv { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 9px 12px; }
  html.p-rep .kv > div:nth-child(even) { margin-bottom: 0; }
  html.p-rep .pf-card { padding: 14px 14px 16px; }
  html.p-rep .pf-card > h3 label { width: 100%; flex-wrap: nowrap; white-space: nowrap; }
  html.p-rep .pf-card > h3 .pf-sel { flex: 1 1 auto; min-width: 0; }
  /* підпис і вибір — в один рядок. Шрифт вибору лишається 16 px: дрібніший iPhone при натисканні збільшує сторінку. Місце для назви —
     за рахунок підпису 14,5 px і вужчих полів; дві найдовші назви («Косметика та побутова хімія», «Будматеріали, господарчі») на
     телефонах до 412 px обрізаються в кінці, як і раніше обрізалась перша */
  html.p-rep .pf-card > h3 label { gap: 10px; font-size: 14.5px; }
  html.p-rep .pf-card > h3 .pf-sel { padding: 0 30px 0 11px; background-position: right 8px center; background-size: 16px; }
  /* фактори — рядками: кільце ліворуч, назва, значення й подробиця праворуч (оцінювач 12.11) */
  html.p-rep .p-trio, html.p-rep .p-trio[data-n="1"] { grid-template-columns: minmax(0, 1fr); padding: 6px 0 0; }
  html.p-rep .p-fac, html.p-rep .p-trio[data-n="1"] .p-fac { flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; text-align: left; padding: 12px 0; }
  html.p-rep .p-fac + .p-fac { border-left: 0; border-top: 1px solid var(--p-hair); }
  html.p-rep .p-ring { width: 58px; height: 58px; margin: 0; }
  html.p-rep .p-ring circle { stroke-width: 2.6; }
  html.p-rep .p-ico svg { width: 21px; height: 21px; stroke-width: 1.7; }
  html.p-rep .p-num { font-size: 19px; }
  html.p-rep .p-ti svg { width: 15px; height: 15px; }
  html.p-rep .p-x { flex: 1 1 auto; }
  html.p-rep .p-t { font-size: 13px; }
  html.p-rep .p-h { margin-top: 1px; font-size: 16px; }
  html.p-rep .p-fac.pick .p-h { font-size: 15px; }
  html.p-rep .p-d { margin: 3px 0 0; max-width: none; font-size: 12.5px; }
  html.p-rep:not(.cs-admin) .summary .s.p-rate { grid-template-columns: 58px minmax(0, 1fr); padding: 14px; }
  html.p-rep:not(.cs-admin) .summary .s.p-rate::before { width: 58px; height: 58px; grid-row: 1 / span 3; background-size: 22px; }
  html.p-rep:not(.cs-admin) .summary .s.p-rate .k, html.p-rep:not(.cs-admin) .summary .s.p-rate .v, html.p-rep:not(.cs-admin) .summary .s.p-rate .d { grid-column: 2; grid-row: auto; }
  html.p-rep:not(.cs-admin) .summary .s.p-rate .v { font-size: 16px !important; margin-top: 1px; }
  html.p-rep:not(.cs-admin) .summary .s.p-rate .d { margin-top: 2px; font-size: 14px; }
  /* таблиці — першими рядками, решта за «Показати всі» (оцінювач 12.11: сторінка на телефоні була 5 700 px) */
  html.p-rep table.tbl.p-cut:not(.open) tr:nth-child(n+8), html.p-rep #comp-table.p-cut:not(.open) tr:nth-child(n+8), html.p-rep .p-anc.p-cut:not(.open) li:nth-child(n+6) { display: none; }
  html.p-rep .p-all { display: block; width: 100%; margin: 0; padding: 12px 0 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--p-acc); text-align: center; cursor: pointer; }
  html.p-rep .p-anc.p-cut:not(.open) li:nth-child(5) { border-bottom: 1px solid var(--p-hair); padding-bottom: 9px; }
  html.p-rep .p-why { margin-top: 14px; padding-top: 13px; gap: 8px 16px; }
  html.p-rep .p-why span { font-size: 13.5px; }
  html.p-rep table.tbl { font-size: 13.5px; }
  html.p-rep table.tbl th, html.p-rep table.tbl td { padding-left: 8px; }
  html.p-rep table.tbl th.num, html.p-rep table.tbl td.num { width: 40px; }
    /* конкуренти: назва на всю ширину, насиченість — під назвою (у вузькій колонці назва ламалась на три рядки) */
  html.p-rep #comp-table, html.p-rep #comp-table tbody { display: block; }
  html.p-rep #comp-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 38px 38px 38px; column-gap: 4px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--p-hair); }
  html.p-rep #comp-table tr:first-child { padding-top: 0; border-bottom-color: var(--p-line); }
  html.p-rep #comp-table tr:last-child { border-bottom: 0; padding-bottom: 0; }
  html.p-rep #comp-table th, html.p-rep #comp-table td { display: block; width: auto; padding: 0; border: 0; }
  html.p-rep #comp-table th:last-child { display: none; }
  html.p-rep #comp-table td.num { grid-row: 1 / span 2; }
  html.p-rep #comp-table td:first-child { grid-column: 1; grid-row: 1; }
  html.p-rep #comp-table td:last-child { grid-column: 1; grid-row: 2; text-align: left; margin-top: 5px; }
  html.p-rep #comp-table tr.hl { background: var(--p-acc-soft); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; border-bottom-color: transparent; }
  html.p-rep #comp-table tr.hl td { background: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { html.p-rep .p-ring .f { transition: none; } html.p-rep .p-more { transition: none; } }
/* 274 (користувач 21.11: «избавляться от старомодных плашек»): три дії вгорі — слова зі значками, без рамок і заливки;
   на телефоні — тим самим рядком слів під позначками (були три круглі значки). «Що ще подивитись» — рядки-посилання без рамок */
html.p-rep .hero > .hero-acts { gap: 18px; }
html.p-rep .hero-acts > *, html.p-rep .hero-acts .fav.fav-text, html.p-rep .hero-acts .fav.fav-text.on { width: auto; height: 34px; padding: 0; gap: 6px;
  border: 0; border-radius: 0; background: none; color: var(--p-acc); font-size: 14px; }
html.p-rep .hero-acts > *:hover, html.p-rep .hero-acts .fav.fav-text:hover, html.p-rep .hero-acts .fav.fav-text.on:hover { border: 0; background: none; text-decoration: underline; }
html.p-rep .hero-acts svg, html.p-rep .hero-acts .fav.fav-text svg, html.p-rep .hero-acts .fav.fav-text.on svg { color: var(--p-acc); }
@media (max-width: 760px) {
  html.p-rep .hero > .hero-acts { grid-column: 1 / -1; grid-row: auto; flex-wrap: wrap; column-gap: 12px; row-gap: 0; margin: 0 0 2px; }   /* 360 — «Поділитися» другим рядком */
  html.p-rep .hero-acts > *, html.p-rep .hero-acts .fav.fav-text { width: auto; gap: 6px; font-size: 13.5px; }
  html.p-rep .hero-acts .fav.fav-text span { display: inline; }
}
html.p-rep .more .card { border: 0; background: none; padding: 0; }
html.p-rep .more .mn, html.p-rep .more-go a { border-top: 0; padding: 8px 0; }
