/* Главная Irge, блок #plans «Решение · что внутри и сколько стоит» (25.11.2026):
   «Тариф» как в кабинете (_billing_clear.html) + калькулятор как в личном КП.
   Свой файл поверх lp.css / lp2.css; все классы с префиксом lpt-, чтобы не
   пересечься с lp-total / lp-terms / lp-term из lp.css. Цвета — переменные
   saas.css: светлая и тёмная тема работают сами. Итог — тёмно-зелёный, как
   «Записаться на созвон».
   ⚠️ Версию в адресе (lp_tariff.css?v=N) поднимать при каждой правке —
   nginx отдаёт статику с expires 7d. */

.lpt [hidden] { display: none !important; }
.lpt-founder { margin-top: 18px; max-width: 560px; }

.lpt { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 20px;
       margin-top: 30px; align-items: start; }

/* ---------- пять отделов, как строки «Тарифа» кабинета ---------- */
.lpt-rows { display: grid; gap: 10px; }
.lpt-row { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
           transition: border-color .15s, background .15s; }
.lpt-row:hover { border-color: var(--accent); }
.lpt-row.on { border-color: var(--accent); background: var(--accent-soft); }
.lpt label.lpt-hit { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center;
                     margin: 0; padding: 15px 18px; cursor: pointer; font-size: 15px; color: var(--text);
                     -webkit-tap-highlight-color: transparent; }
.lpt-hit input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.lpt-box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); background: var(--card);
           display: grid; place-items: center; box-sizing: border-box; transition: background .15s, border-color .15s; }
.lpt-row.on .lpt-box { background: var(--accent); border-color: var(--accent); }
.lpt-row.on .lpt-box::after { content: "✓"; color: var(--on-accent, #fff); font-size: 14px; font-weight: 800; line-height: 1; }
.lpt-hit:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
.lpt-txt { display: grid; gap: 3px; min-width: 0; }
.lpt-txt b { font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.lpt-txt span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.lpt-price { font-weight: 800; font-size: 17px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.lpt-price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.lpt-price s { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* ступень репрайсера — числом товаров, без шести карточек на выбор */
.lpt-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 18px 14px 58px; }
.lpt .lpt-tier label { margin: 0; font-size: 14px; color: var(--muted); }
.lpt .lpt-tier select { width: auto; max-width: 100%; padding: 7px 10px; font-size: 14.5px; border-radius: 10px; cursor: pointer; }

/* ---------- магазины и срок ---------- */
.lpt-shops { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px;
             padding: 10px 14px 10px 18px; border: 1px solid var(--line); border-radius: 16px; font-weight: 700; }
.lpt-step { display: flex; align-items: center; gap: 12px; }
.lpt-step button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
                   color: var(--text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0;
                   -webkit-tap-highlight-color: transparent; }
.lpt-step button:hover { border-color: var(--accent); }
.lpt-step b { min-width: 28px; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }

.lpt-terms { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; margin-top: 14px; }
.lpt-lbl { font-size: 14px; font-weight: 700; color: var(--muted); padding: 0 6px 0 4px; }
.lpt label.lpt-term { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0;
                      padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
                      color: var(--text); cursor: pointer; text-align: center; line-height: 1.2;
                      -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s; }
.lpt-term input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.lpt-term b { font-size: 15px; font-weight: 700; }
.lpt-term i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.lpt label.lpt-term:hover { border-color: var(--accent); }
.lpt label.lpt-term.on { border-color: var(--accent); background: var(--accent-soft); }
.lpt-term:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- итог ---------- */
.lpt-total { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; padding: 24px;
             border-radius: 22px; background: #0b2e1f; color: #fff; overflow: hidden; }
.lpt-total::before { content: ""; position: absolute; inset: 0; pointer-events: none;
                     background: radial-gradient(420px 220px at 90% 0%, rgba(108,197,67,.22), transparent 65%); }
.lpt-total > * { position: relative; }
.lpt-k { font-size: 14px; color: rgba(255,255,255,.72); }
.lpt-sum { font-family: "Unbounded", "Manrope", sans-serif; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700;
           line-height: 1.1; color: #6cc543; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lpt-tl { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.82); }
.lpt-tl.gift { color: #fff; font-weight: 700; }
.lpt-n { white-space: nowrap; color: #fff; font-weight: 700; }
.lpt-total .lp-btn { width: 100%; margin-top: 6px; }
.lpt-total .lp-btn + .lp-btn { margin-top: 0; }
.lpt-how { margin-top: 4px !important; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.6); }

/* ---------- «всё включено» по выручке ---------- */
.lpt-all { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 16px; padding: 18px 20px;
           border: 1px dashed var(--line); border-radius: 18px; transition: border-color .15s, background .15s; }
.lpt-all.strong { border: 1px solid var(--accent); background: var(--accent-soft); }
.lpt-all-t { flex: 1 1 420px; min-width: 0; }
.lpt-all-t b { font-size: 17px; font-weight: 800; }
.lpt-all-t p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.lpt-rev { flex: 1 1 300px; display: grid; gap: 6px; }
.lpt .lpt-rev label, .lpt-rev label { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.lpt-rev input[type=text] { font-size: 16px; padding: 11px 14px; border-radius: 12px; }
.lpt-rev span { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.lpt-rev span b { color: var(--accent-ink); white-space: nowrap; }
.lpt-all.strong .lpt-rev span { color: var(--text); }

.lpt-fine { margin-top: 14px; }
.lpt-fine a { color: var(--accent-ink); }

@media (max-width: 900px) {
  .lpt { grid-template-columns: 1fr; }
  .lpt-total { position: static; }
}
@media (max-width: 560px) {
  .lpt { margin-top: 22px; }
  .lpt label.lpt-hit { grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; padding: 13px 14px; }
  .lpt-box { grid-row: 1 / span 2; align-self: start; margin-top: 1px; }
  .lpt-price { grid-column: 2; text-align: left; font-size: 16px; }
  .lpt-price s { display: inline; margin-right: 6px; }
  .lpt-txt b { font-size: 16px; }
  .lpt-txt span { font-size: 13.5px; }
  .lpt-tier { padding: 0 14px 12px 50px; }
  .lpt-terms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .lpt-lbl { grid-column: 1 / -1; padding: 0 0 0 2px; }
  .lpt-total { padding: 20px 18px; border-radius: 18px; }
  .lpt-all { padding: 16px; }
}
