/* Помощник выбора тарифа (templates/tariff_picker.php): pricing.php (токены css/blog.css) и
   profile.php (токены style.css). */

.tp {
  background: var(--bg-card, #fff); border: 1px solid var(--border, #E4E2DC); border-radius: var(--r-lg, 14px);
  box-shadow: var(--sh, none); padding: 20px 22px; margin: 16px 0;
}
.tp[hidden] { display: none; }
.tp-head { margin-bottom: 14px; }
.tp-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading, inherit); font-size: 17px; font-weight: 700; color: var(--text, #1A1A1F);
}
.tp-title svg { color: var(--primary, #5E2B9A); flex: none; }
.tp-sub { font-size: 13px; color: var(--text-muted, #6e6e75); margin-top: 4px; }

.tp-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.tp-tasks { display: flex; flex-direction: column; gap: 6px; }
.tp-task {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 9px 10px; border: 1px solid var(--border, #E4E2DC); border-radius: var(--r, 10px);
  transition: border-color .15s, background .15s;
}
.tp-task:hover { border-color: var(--primary, #5E2B9A); }
.tp-task:has(.tp-check:checked) { background: var(--primary-glass, rgba(94,43,154,.07)); border-color: var(--primary-light, #ECE6F3); }
.tp-task.is-locked { cursor: default; }
.tp-task.is-locked:hover { border-color: var(--border, #E4E2DC); }
.tp-check { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--primary, #5E2B9A); }
.tp-task-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-task-label { font-size: 14px; font-weight: 600; color: var(--text, #1A1A1F); }
.tp-task-note { font-size: 12.5px; color: var(--text-muted, #6e6e75); }
.tp-task-why { font-size: 12px; color: var(--success, #1C882D); }
.tp-task-hint { font-size: 12px; color: var(--text-secondary, #55555c); font-style: italic; }

.tp-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.tp-range-wrap { display: flex; flex-direction: column; gap: 4px; }
.tp-range-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary, #55555c); }
.tp-range {
  font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border, #E4E2DC);
  border-radius: var(--r, 10px); background: var(--bg-card, #fff); color: var(--text, #1A1A1F);
}
.tp-result {
  border: 1px solid var(--primary, #5E2B9A); border-radius: var(--r-lg, 14px); padding: 16px 18px;
  background: var(--primary-glass, rgba(94,43,154,.07)); display: flex; flex-direction: column; gap: 6px;
  min-height: 120px;
}
.tp-res-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted, #6e6e75); }
.tp-res-name { font-family: var(--font-heading, inherit); font-size: 22px; font-weight: 700; color: var(--primary, #5E2B9A); line-height: 1.2; }
.tp-res-price { font-family: var(--font-heading, inherit); font-size: 16px; font-weight: 700; color: var(--text, #1A1A1F); }
.tp-res-ok { font-size: 13px; color: var(--success, #1C882D); font-weight: 600; }
.tp-res-miss { font-size: 13px; color: #B84A0B; }
.tp-res-extra, .tp-res-alt, .tp-res-note { font-size: 12.5px; color: var(--text-secondary, #55555c); line-height: 1.45; }
.tp-res-alt { padding-top: 6px; border-top: 1px dashed var(--border, #E4E2DC); }
.tp-cta {
    margin-top: 6px; align-self: stretch; text-align: center;
    white-space: normal; line-height: 1.3; max-width: 100%; box-sizing: border-box;
}
.tp-cta-public {
  display: inline-block; background: var(--primary, #5E2B9A); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 100px; text-decoration: none;
}
.tp-cta-public:hover { filter: brightness(1.08); }

/* Карточка тарифа, к которой перешли из помощника (profile.php). */
.tariff-grid.tp-selectable .tariff-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tariff-grid.tp-selectable .tariff-card:hover { border-color: var(--primary, #5E2B9A); }
.tariff-card.tp-picked { border-color: var(--primary, #5E2B9A); box-shadow: 0 0 0 3px var(--primary-glass, rgba(94, 43, 154, .18)); }

@media (max-width: 760px) {
  .tp { padding: 16px; }
  .tp-body { grid-template-columns: minmax(0, 1fr); }
  .tp-tasks, .tp-side, .tp-task { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .tp-side { position: static; }
}
