/* Подписка и тариф (billing.js, классы bl-*) и раздел «Управление сервисом» (platform.js, pf-*).
   Опирается на переменные кабинета из app.css и общие блоки бухгалтерии (acc-panel, acc-btn,
   acc-tag, acc-form). Сначала телефон: одна колонка, поля 16 px, нажимаемое — от 44 px;
   лестница тарифов и таблицы разворачиваются вширь там, где для них есть место. */

/* ============================================================
   Полоса в кабинете: срок подходит к концу / только просмотр
   ============================================================ */
.bl-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 10px 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink);
  border-bottom: 1px solid var(--line-bright);
}
.bl-banner.is-warn { background: #FFF5E0; border-bottom-color: rgba(224,138,0,.4); }
.bl-banner.is-stop { background: #FDECEA; border-bottom-color: rgba(217,45,32,.35); }
.bl-banner__text { flex: 1 1 260px; min-width: 0; }
.bl-banner__go {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700;
}
.bl-banner__go:hover { background: var(--navy); }
.bl-banner__x {
  flex: none; width: 44px; height: 44px; margin: 0 -8px 0 auto; border: none; background: none;
  border-radius: 10px; font-size: 24px; line-height: 1; color: var(--ink-dim);
}
.bl-banner__x:hover { background: rgba(16,24,40,.06); color: var(--ink); }

.bl-blocked {
  max-width: 560px; margin: 8vh auto 0; padding: 28px 22px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line-bright); border-top: 4px solid var(--red);
  border-radius: 14px;
}
.bl-blocked h2 { font: 700 22px/1.25 var(--disp); margin-bottom: 10px; }
.bl-blocked p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; }
.bl-blocked__sub { margin-top: 10px; font-size: 13px !important; color: var(--ink-faint) !important; }

/* ============================================================
   Экран тарифа
   ============================================================ */
.bl, .bl-cfg { display: flex; flex-direction: column; gap: 12px; }
.bl-loading { padding: 30px 0; text-align: center; color: var(--ink-faint); font-size: 13.5px; }
.bl-h { margin: 14px 0 0; font: 700 15px/1.3 var(--disp); color: var(--ink); }
.bl-h span { margin-left: 8px; font: 500 12.5px var(--body); color: var(--ink-faint); }

/* значок «ступени» — уровень тарифа */
.bl-stairs { flex: none; }
.bl-stairs rect { fill: var(--line-bright); }
.bl-stairs rect.on { fill: var(--accent); }

.bl-head {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: var(--bg-raise); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px;
}
.bl-head.is-warn { border-left-color: var(--amber); }
.bl-head.is-stop { border-left-color: var(--red); }
.bl-head > .bl-stairs { width: 38px; height: 32px; margin-top: 3px; }
.bl-head__main { min-width: 0; }
.bl-head__title { font: 700 21px/1.2 var(--disp); letter-spacing: -.01em; }
.bl-head__line { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--ink-dim); }
.bl-head.is-stop .bl-head__line { color: var(--ink); }
.bl-head__money { margin-top: 6px; font-size: 13px; color: var(--ink-dim); }

.bl-req {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 13px 16px; border: 1px solid var(--line-bright); border-radius: 12px;
}
.bl-req.is-new { background: rgba(10,77,166,.05); border-color: rgba(10,77,166,.3); }
.bl-req.is-no { background: rgba(217,45,32,.05); border-color: rgba(217,45,32,.3); }
.bl-req.is-yes { background: rgba(31,157,87,.06); border-color: rgba(31,157,87,.35); }
.bl-req__t { font-weight: 700; font-size: 14.5px; }
.bl-req__b { font-size: 13.5px; line-height: 1.5; color: var(--ink-dim); }
.bl-req .btn-ghost.sm { margin-top: 4px; background: var(--bg-card); }

/* занятое место */
.bl-use { display: grid; grid-template-columns: 1fr; gap: 10px; }
.bl-meter { padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.bl-meter__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bl-meter__top span { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.bl-meter__top b { font: 700 14.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.bl-meter__track { height: 8px; margin-top: 9px; border-radius: 99px; background: var(--surface-sunken); border: 1px solid var(--line); overflow: hidden; }
.bl-meter__track i { display: block; height: 100%; min-width: 2px; border-radius: 99px; background: var(--green); transition: width .35s ease; }
.bl-meter.is-near .bl-meter__track i { background: var(--amber); }
.bl-meter.is-full .bl-meter__track i { background: var(--red); }
.bl-meter.is-full .bl-meter__top b { color: var(--red); }
.bl-meter__note { margin-top: 7px; font-size: 12px; line-height: 1.4; color: var(--ink-faint); }
.bl-usenote, .bl-how { font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); max-width: 720px; }

/* лестница тарифов: на телефоне — строки, шире — настоящие ступени */
.bl-ladder { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bl-step {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline;
  min-height: 64px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--bg-card); color: var(--ink); font-family: var(--body);
  border: 1px solid var(--line-bright); border-left: 4px solid var(--line-bright); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
/* у кнопок кабинета «выключено» = полупрозрачно; ступень-справка должна читаться */
.bl-step:disabled { cursor: default; color: var(--ink); opacity: 1; }
.bl-step:not(:disabled):hover { border-color: var(--accent); }
.bl-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bl-step.is-sel { border-color: var(--accent); background: rgba(10,77,166,.05); box-shadow: inset 0 0 0 1px var(--accent); }
.bl-step__name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font: 700 15.5px var(--disp); }
.bl-step__tag {
  font: 600 11.5px var(--body); color: var(--margin); background: var(--margin-soft);
  border-radius: 99px; padding: 2px 9px;
}
.bl-step__price { font: 700 15.5px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bl-step__price small { font: 500 12px var(--body); color: var(--ink-dim); }
.bl-step__lims { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--ink-dim); }

/* дополнения */
.bl-addons { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.bl-addon { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px 10px 14px; }
.bl-addon + .bl-addon { border-top: 1px solid var(--line); }
.bl-addon__t b { display: block; font-size: 14.5px; font-weight: 600; }
.bl-addon__t span { display: block; font-size: 12.5px; color: var(--ink-dim); line-height: 1.4; }
.bl-addon__sum { grid-column: 1; font: 600 13px var(--mono); color: var(--margin); }
.bl-addon__sum:empty { display: none; }
.bl-stepper {
  grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center;
  border: 1px solid var(--line-bright); border-radius: 10px; background: var(--bg-card); overflow: hidden;
}
.bl-stepper button { width: 46px; height: 44px; border: none; background: none; font-size: 21px; line-height: 1; color: var(--accent); }
.bl-stepper button:hover:not(:disabled) { background: var(--bg-raise); }
.bl-stepper button:disabled { color: var(--ink-faint); cursor: default; }
.bl-stepper button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bl-stepper output { min-width: 34px; text-align: center; font: 700 15px var(--mono); font-variant-numeric: tabular-nums; }

/* срок */
.bl-period {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--line-bright); border-radius: 10px; overflow: hidden; background: var(--bg-card);
}
.bl-period button { min-height: 46px; padding: 0 14px; border: none; background: none; color: var(--ink-dim); font: 600 14.5px var(--body); }
.bl-period button + button { border-left: 1px solid var(--line-bright); }
.bl-period button.on { background: var(--accent); color: #fff; }
.bl-period i { font-style: normal; font-weight: 700; margin-left: 6px; color: var(--margin); }
.bl-period button.on i { color: #fff; }

.bl-result { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 2px; font-size: 13.5px; color: var(--ink-dim); }
.bl-result b { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.bl-fit {
  margin-top: 8px; padding: 10px 13px; font-size: 13px; line-height: 1.5; color: var(--ink);
  background: rgba(224,138,0,.09); border: 1px solid rgba(224,138,0,.35); border-radius: 10px;
}
.bl-comment { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.bl-comment span { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.bl-comment textarea, .pf-form textarea {
  width: 100%; min-height: 64px; padding: 10px 13px; resize: vertical; outline: none;
  font: 400 15px/1.45 var(--body); color: var(--ink);
  background: var(--bg-card); border: 1px solid var(--line-bright); border-radius: 10px;
}
.bl-comment textarea:focus, .pf-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,77,166,.15); }

.bl-total {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px 10px 14px;
  background: var(--bg-card); border: 1px solid var(--line-bright); border-radius: 12px;
  position: sticky; bottom: calc(var(--tabbar-h, 58px) + var(--safe-b, 0px) + 8px); z-index: 5;
  box-shadow: 0 8px 24px rgba(16,24,40,.14);
}
body.kb-open .bl-total { position: static; box-shadow: none; }
.bl-total__sum { grid-column: 1; grid-row: 1; min-width: 0; font: 700 20px/1.15 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.bl-total__note { grid-column: 1 / -1; grid-row: 2; font-size: 12.5px; color: var(--ink-dim); line-height: 1.4; }
.bl-total .btn-amber { grid-column: 2; grid-row: 1; min-height: 48px; padding-left: 16px; padding-right: 16px; }

@media (min-width: 641px) {
  .bl-banner { padding: 10px 28px; }
  .bl-use { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-meter__top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .bl-addon { grid-template-columns: minmax(0, 1fr) 96px auto; }
  .bl-addon__sum { grid-column: 2; text-align: right; }
  .bl-stepper { grid-column: 3; grid-row: 1; }
  .bl-period { align-self: flex-start; min-width: 320px; }
  .bl-total { position: static; box-shadow: none; padding: 14px 16px; gap: 2px 18px; }
  .bl-total__sum { font-size: 24px; align-self: end; }
  .bl-total__note { grid-column: 1; align-self: start; }
  .bl-total .btn-amber { grid-row: 1 / span 2; padding-left: 22px; padding-right: 22px; }
}

/* ступени: каждый следующий тариф выше предыдущего, низ общий. Все ступени тянутся до низа
   ряда, а верх каждой опущен отступом — лестница держится при любом переносе строк внутри */
@media (min-width: 700px) {
  .bl-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; padding-top: 12px; }
  .bl-step {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px;
    padding: 16px 14px 16px; margin-left: -1px; border-radius: 10px 10px 0 0;
    border: 1px solid var(--line-bright); border-top: 3px solid var(--line-bright);
  }
  .bl-step:first-child { margin-left: 0; border-bottom-left-radius: 10px; }
  .bl-step:last-child { border-bottom-right-radius: 10px; }
  .bl-step:nth-child(1) { margin-top: 66px; }
  .bl-step:nth-child(2) { margin-top: 44px; }
  .bl-step:nth-child(3) { margin-top: 22px; }
  .bl-step.is-static { background: var(--bg-raise); }
  .bl-step__tag { position: absolute; top: -12px; left: 12px; border: 1px solid rgba(26,125,73,.35); }
  .bl-step:not(:disabled):hover { border-color: var(--line-bright); border-top-color: var(--accent); }
  .bl-step.is-sel { z-index: 1; border-color: var(--accent); border-top-color: var(--accent); }
  .bl-step__price { text-align: left; font-size: 17px; white-space: normal; }
  .bl-step__price small { display: block; margin-top: 1px; }
  .bl-step__lims { flex-direction: column; gap: 3px; font-size: 12.5px; line-height: 1.35; }
}

/* ============================================================
   Управление сервисом
   ============================================================ */
.pf { display: flex; flex-direction: column; gap: 16px; }
.pf .page-head { margin-bottom: 0; }
.pf-dim { color: var(--ink-faint); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.pf-badge {
  margin-left: 7px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font: 700 11.5px var(--mono);
}
#pf-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.pf-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-tools #pf-q { grid-column: 1 / -1; }
.pf-input {
  width: 100%; min-height: 44px; padding: 0 12px; outline: none; min-width: 0;
  font: 500 15px var(--body); color: var(--ink);
  background: var(--bg-card); border: 1px solid var(--line-bright); border-radius: 10px;
}
.pf-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,77,166,.15); }
.pf-input:disabled { background: var(--surface-sunken); color: var(--ink-faint); }

.pf-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.pf-chips::-webkit-scrollbar { display: none; }
.pf-chips button {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-bright); border-radius: 99px; background: var(--bg-card);
  color: var(--ink-dim); font: 600 13.5px var(--body); white-space: nowrap;
}
.pf-chips button b { font: 600 12px var(--mono); color: var(--ink-faint); }
.pf-chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-chips button.on b { color: rgba(255,255,255,.8); }

/* список пространств: карточки, на широком экране — строки с общими колонками */
.pf-list { display: flex; flex-direction: column; gap: 10px; }
.pf-list__head { display: none; }
.pf-row {
  display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  transition: border-color .15s;
}
.pf-row:hover { border-color: var(--accent); }
.pf-row.is-stop { border-left: 4px solid var(--red); }
.pf-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-row__co b { font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.pf-row__co .acc-tag { align-self: flex-start; margin-top: 4px; }
.pf-row__own > span:first-child { font-size: 14px; font-weight: 600; }
.pf-plan { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.pf-state { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.pf-row__dates { font-size: 12.5px; color: var(--ink-faint); }
.pf-row__dates > span { overflow-wrap: anywhere; }

.pf-mini {
  position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  min-height: 22px; padding: 1px 8px; border-radius: 6px; overflow: hidden;
  background: var(--surface-sunken); font-size: 12.5px;
}
.pf-mini i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(31,157,87,.2); }
.pf-mini.is-near i { background: rgba(224,138,0,.26); }
.pf-mini.is-full i { background: rgba(217,45,32,.22); }
.pf-mini em, .pf-mini b { position: relative; font-style: normal; }
.pf-mini em { color: var(--ink-dim); }
.pf-mini b { font: 600 12px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-more { text-align: center; font-size: 13px; color: var(--ink-faint); padding: 6px 0; }
.pf-more .acc-btn { min-height: 44px; }

/* карточка пространства */
.pf-back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; }
.pf-card-head { display: flex; flex-direction: column; gap: 5px; }
.pf-card-head h2 { font: 600 26px/1.2 var(--disp); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pf-contact { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 14.5px; }
.pf-contact a, .pf-contact span { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.pf-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.pf-sub .pf-plan b { font: 700 18px var(--disp); }
.pf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pf-actions .acc-btn { min-height: 44px; white-space: normal; text-align: center; line-height: 1.2; }
.pf-actions .acc-btn:disabled { opacity: .5; cursor: default; }
.pf-actions .acc-btn:disabled:hover { border-color: var(--line-bright); color: var(--ink); }
.pf .acc-panel > .body { display: flex; flex-direction: column; gap: 0; }
.pf .acc-panel > .body > .bl-use { margin: 0; }

/* заявки */
.pf-reqs { display: flex; flex-direction: column; gap: 10px; }
.pf-req { display: flex; flex-direction: column; gap: 7px; padding: 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; }
.acc-panel .pf-req { padding: 12px 0; border: none; border-radius: 0; }
.acc-panel .pf-req + .pf-req { border-top: 1px solid var(--line); }
.acc-panel .pf-req:first-child { padding-top: 0; }
.acc-panel .pf-req:last-child { padding-bottom: 0; }
.pf-req__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.pf-req__head a b { font-size: 15.5px; }
.pf-req__date { margin-left: auto; }
.pf-req__what { font-size: 14.5px; line-height: 1.45; }
.pf-req__what b { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-req__who { font-size: 13px; line-height: 1.5; color: var(--ink-dim); overflow-wrap: anywhere; }
.pf-req__comment { padding: 9px 12px; font-size: 13.5px; line-height: 1.5; background: var(--bg-raise); border-left: 3px solid var(--line-bright); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.pf-req__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.pf-req__act .acc-btn { min-height: 44px; }

/* окна действий */
.pf-form .seg { margin-bottom: 10px; }
.pf-form input[hidden] { display: none; }
.pf-lim { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pf-radio { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pf-radio label {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--line-bright); border-radius: 10px; background: var(--bg-card);
}
.pf-radio label:has(input:checked) { border-color: var(--accent); background: rgba(10,77,166,.05); }
.pf-form .pf-radio input { width: 20px; min-height: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--accent); }
.pf-radio span { display: flex; flex-direction: column; line-height: 1.3; }
.pf-radio b { font-size: 14.5px; font-weight: 600; }
.pf-radio i { font-style: normal; font-size: 12.5px; color: var(--ink-dim); }

/* цены */
.pf-prices { gap: 0 !important; }
.pf-prow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 0; }
.pf-prow + .pf-prow { border-top: 1px solid var(--line); }
.pf-prow:first-child { padding-top: 0; }
.pf-prow:last-child { padding-bottom: 0; }
.pf-prow__name { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font-size: 15px; }
.pf-prow label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pf-prow label span { font-size: 12.5px; font-weight: 600; color: var(--ink-dim); line-height: 1.3; }
.pf-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pf-savebar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.pf-savebar .btn-amber, .pf-savebar .btn-ghost { min-height: 46px; }

/* журнал */
.pf-log { display: flex; flex-direction: column; }
.pf-ev { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
.pf-ev + .pf-ev { border-top: 1px solid var(--line); }
.pf-ev:first-child { padding-top: 0; }
.pf-ev:last-child { padding-bottom: 0; }
.pf-ev__when { font: 500 12px var(--mono); color: var(--ink-faint); }
.pf-ev__what { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pf-ev__note { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-dim); }
.pf-ev__who { font-size: 12.5px; color: var(--ink-faint); overflow-wrap: anywhere; }

/* ссылки в строке текста: зона нажатия больше самой строки, вёрстка не сдвигается */
.pf-ev__what a, .pf-req__head a { display: inline-block; padding: 13px 4px; margin: -13px -4px; font-weight: 600; }

@media (max-width: 640px) {
  /* название раздела уже стоит в верхней панели */
  body[data-route="platform"] .pf > .page-head { display: none; }
  .pf-savebar > * { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .pf-tools { grid-template-columns: minmax(0, 1fr) 190px 220px; }
  .pf-tools #pf-q { grid-column: auto; }
}

@media (min-width: 641px) {
  .pf-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .pf-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px; padding: 14px 16px; }
  .pf-row__dates { grid-column: 1 / -1; flex-direction: row !important; gap: 4px 18px !important; flex-wrap: wrap; }
  .pf-actions { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .pf-req__act { display: flex; }
  .pf-lim { grid-template-columns: 1fr 1fr; }
  .pf-prow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-prow.is-addon { grid-template-columns: repeat(2, minmax(0, 240px)); }
  .pf-ev { grid-template-columns: 132px minmax(0, 1fr) minmax(0, 200px); gap: 14px; align-items: baseline; }
  .pf-ev__who { text-align: right; }
}

/* мышь и большой экран: нажимаемое может быть компактнее, чем под палец */
@media (min-width: 1101px) {
  .bl-banner__go { min-height: 36px; }
  .bl-banner__x { width: 36px; height: 36px; }
  .pf-chips button { min-height: 38px; }
  .pf-contact a, .pf-contact span { min-height: 32px; }
}

@media (min-width: 1180px) {
  .pf-list { gap: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .pf-list__head, .pf-row {
    display: grid; align-items: start; gap: 16px; padding: 12px 16px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(0, .95fr);
  }
  .pf-list__head { padding: 10px 16px; background: var(--surface-sunken); font-size: 12.5px; font-weight: 600; color: var(--ink-dim); }
  .pf-row { border: none; border-top: 1px solid var(--line); border-radius: 0; }
  .pf-row:hover { background: var(--bg-raise); }
  .pf-row.is-stop { border-left: none; box-shadow: inset 4px 0 0 var(--red); }
  .pf-row__dates { grid-column: auto; flex-direction: column !important; gap: 2px !important; }
  .pf-prow { grid-template-columns: 170px repeat(4, minmax(0, 1fr)); align-items: end; }
  .pf-prow.is-addon { grid-template-columns: 170px repeat(2, minmax(0, 220px)); }
  .pf-prow__name { grid-column: auto; padding-bottom: 12px; }
}
