/* [17: сайт, 20: «Цены» 2.0] Страницы «Цены» (site/pricing.html) и «Поддержка» (site/support.html). Поверх site.css и legal.css: шапка,
   подвал, первый экран (lg-hero), реквизиты (lg-req), цвета и шрифты — оттуда. CSP сайта (backend/lib/webSecurity.js
   SITE_CSP) — без встроенных <style> и style=, поэтому всё оформление здесь. Классы: hp- — общие, sp- — форма поддержки. */

.hp-page [hidden] { display: none !important; }

/* колонка по краю заголовка (container), не шире 1080 px */
.hp-wrap { display: flex; flex-direction: column; gap: 44px; padding-top: 40px; padding-bottom: 104px; }
.hp-wrap > * { width: 100%; max-width: 1080px; }
@media (max-width: 720px) { .hp-wrap { gap: 32px; padding-top: 24px; padding-bottom: 72px; } }

.hp-note { max-width: 760px; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.55; color: var(--text); background: rgba(255, 85, 0, 0.07); border: 1px solid rgba(255, 85, 0, 0.24); }
.hp-note a { text-decoration: underline; text-decoration-color: rgba(255, 85, 0, 0.55); text-underline-offset: 3px; }

.hp-sec { display: flex; flex-direction: column; gap: 14px; }
.hp-h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.hp-h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hp-sub { max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.hp-sub a, .hp-list a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 85, 0, 0.55); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.hp-sub a:hover, .hp-list a:hover { text-decoration-color: var(--accent); }

/* ---------- тарифы: заголовок и переключатель срока ---------- */
.hp-offer { gap: 20px; }
.hp-offer-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.hp-offer-copy { min-width: 0; flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
/* срок — радиокнопки (Tab и стрелки — как у системных); выбранный — белый, как переключатель документов (lg-switch);
   скрипт показывает переключатель, без него видно 30 дней и таблицу «Все сроки и цены» */
.hp-terms { flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; }
.hp-terms-legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.hp-terms-row { clear: both; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); }
.hp-term { position: relative; flex: 1 1 0; min-width: 0; cursor: pointer; }
.hp-term input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hp-term-box { display: flex; align-items: center; justify-content: center; gap: 2px 6px; height: 100%; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.25; white-space: nowrap; color: var(--text-2); transition: color 0.2s ease, background 0.2s ease; }
.hp-term-n { font-variant-numeric: tabular-nums; }
.hp-term-u { font-weight: 500; }
.hp-term:hover .hp-term-box { color: var(--text); }
.hp-term input:checked + .hp-term-box { color: #0a0a0c; background: var(--text); }
.hp-term input:focus-visible + .hp-term-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp-term-off, .hp-off { font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.4; padding: 1px 6px; border-radius: 999px; color: var(--green-text); background: rgba(16, 185, 129, 0.12); }
.hp-term input:checked + .hp-term-box .hp-term-off { color: #047857; background: rgba(16, 185, 129, 0.2); }
@media (max-width: 620px) {
  .hp-terms { flex: 1 1 100%; }
  .hp-term-box { flex-direction: column; justify-content: flex-start; padding: 8px 2px 7px; font-size: 17px; line-height: 1.1; }
  .hp-term-u { font-size: 11px; font-weight: 500; }
  .hp-term-off { margin-top: 2px; font-size: 10px; padding: 1px 5px; }
}

/* ---------- тарифы: карточки одной высоты ---------- */
.hp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .hp-plans { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.hp-plan { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px 24px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); }
.hp-plan--accent { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 85, 0, 0.14), transparent 60%), var(--card); border-color: rgba(255, 85, 0, 0.32); }
.hp-plan-badge { position: absolute; top: 0; right: 20px; transform: translateY(-50%); padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.35; white-space: nowrap; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); box-shadow: 0 6px 18px rgba(255, 85, 0, 0.28); }
.hp-plan-head { display: flex; flex-direction: column; gap: 4px; }
.hp-plan-name { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; color: var(--text); }
.hp-plan-who { font-size: 14px; color: var(--text-2); }
.hp-plan-price { display: flex; flex-direction: column; gap: 6px; }
.hp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; color: var(--text-2); font-size: 16px; }
.hp-price b { font-size: clamp(38px, 5vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.hp-per { font-size: 14px; line-height: 1.45; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hp-save { align-self: flex-start; font-family: var(--mono); font-size: 12px; line-height: 1.4; padding: 3px 9px; border-radius: 999px; color: var(--green-text); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.28); }
.hp-cta { margin-top: auto; align-self: flex-start; padding: 13px 26px; font-size: 15px; }
.hp-plan .hp-cta { align-self: stretch; }
@media (max-width: 560px) { .hp-plan { padding: 22px 18px 18px; border-radius: 18px; } .hp-plan-badge { right: 16px; } .hp-cta { align-self: stretch; } }

/* ---------- все сроки и цены: таблица под карточками (без скрипта — единственный способ увидеть другие сроки) ---------- */
.hp-all { min-width: 0; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.hp-all > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); border-radius: 18px; }
.hp-all > summary::-webkit-details-marker { display: none; }
.hp-all > summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform 0.25s var(--ease), margin 0.25s var(--ease); }
.hp-all[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.hp-all > summary:hover { background: rgba(255, 255, 255, 0.02); }
.hp-all > summary:focus-visible { outline-offset: -2px; }
.hp-table-wrap { max-width: 100%; overflow-x: auto; border-top: 1px solid var(--hair); scrollbar-width: thin; }
.hp-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.hp-table th, .hp-table td { padding: 11px 20px; text-align: right; white-space: nowrap; }
.hp-table th:first-child { text-align: left; }
.hp-table thead th { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.hp-table tbody tr > * { border-top: 1px solid var(--hair); }
.hp-table tbody th { font-weight: 500; color: var(--text-2); }
.hp-table td { color: var(--text); }
.hp-table tr.is-current > * { background: rgba(255, 85, 0, 0.07); }
.hp-table tr.is-current th { color: var(--text); }
.hp-off { margin-left: 6px; }
.hp-fine { max-width: 760px; font-size: 13px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }
.hp-fine a { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(255, 85, 0, 0.55); text-underline-offset: 3px; }
.hp-fine a:hover { color: var(--text); }
.hp-all > .hp-fine { max-width: none; padding: 12px 20px 16px; border-top: 1px solid var(--hair); }
@media (max-width: 560px) {
  .hp-all > summary { padding: 14px 16px; }
  .hp-table { font-size: 13.5px; }
  .hp-table th, .hp-table td { padding: 10px 6px; }
  .hp-table th:first-child { padding-left: 12px; }
  .hp-table th:last-child, .hp-table td:last-child { padding-right: 12px; }
  .hp-off { display: table; margin: 3px 0 0; }
  .hp-all > .hp-fine { padding: 12px 16px 14px; }
}

/* ---------- списки с отметкой ---------- */
.hp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hp-list > li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 28px; font-size: 15px; line-height: 1.5; color: var(--text); }
.hp-list > li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 85, 0, 0.14); }
.hp-list > li::after { content: ''; position: absolute; left: 6px; top: 6px; width: 5px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.hp-list b { font-weight: 600; color: var(--text); }
.hp-list span { font-size: 14px; color: var(--text-2); }
.hp-list--short > li { gap: 0; }
.hp-list--dense { gap: 8px; }
.hp-tag { align-self: flex-start; margin-top: 4px; font-family: var(--mono); font-size: 11px; font-style: normal; line-height: 1.4; padding: 2px 8px; border-radius: 999px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair); }

/* ---------- что входит: группы ---------- */
.hp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; align-items: start; }
.hp-group { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
@media (max-width: 560px) { .hp-group { padding: 18px 16px; border-radius: 16px; } }

/* ---------- пакеты шумов: сетка карточек, на телефоне — две колонки (нечётная последняя — во всю ширину) ---------- */
.hp-packs { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.hp-pack { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.hp-pack--best { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 85, 0, 0.14), transparent 60%), var(--card); border-color: rgba(255, 85, 0, 0.32); }
.hp-pack-flag { position: absolute; top: 0; left: 16px; transform: translateY(-50%); padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); }
.hp-pack-total { font-size: 14px; color: var(--text-2); }
.hp-pack-total b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.hp-pack-bonus { font-size: 13px; font-weight: 600; color: var(--accent-end); }
.hp-pack-bonus--none { font-weight: 500; color: var(--text-3); }
.hp-pack-price { margin-top: auto; padding-top: 10px; font-size: 15px; color: var(--text-2); }
.hp-pack-price b { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.hp-pack-rate { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
@media (max-width: 560px) {
  .hp-pack { padding: 16px 14px 14px; border-radius: 16px; }
  .hp-pack-total b { font-size: 24px; }
  .hp-pack:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.hp-coins-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hp-coins-foot .hp-cta { margin-top: 0; }
.hp-coins-foot .hp-fine { flex: 1 1 320px; }
@media (max-width: 560px) { .hp-coins-foot .hp-cta { flex: 1 1 100%; } }

/* ---------- условия и способы оплаты ---------- */
.hp-list--terms { max-width: 820px; }
.hp-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-methods > li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong); }
.hp-page .lg-req { max-width: 820px; }
.hp-page .lg-req a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 85, 0, 0.55); text-underline-offset: 3px; }

/* ---------- поддержка: форма и контакты ---------- */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 20px; align-items: start; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.sp-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
@media (max-width: 560px) { .sp-card { padding: 18px 16px; border-radius: 18px; } }
.sp-side { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-contact { gap: 6px; padding: 18px 20px; }
.sp-contact-value { font-size: 17px; font-weight: 650; color: var(--text); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(255, 85, 0, 0.55); text-underline-offset: 3px; }
.sp-contact-note { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.sp-links { gap: 8px; padding: 18px 20px; }
.sp-links a { font-size: 14px; line-height: 1.45; color: var(--text-2); transition: color 0.2s ease; }
.sp-links a:hover { color: var(--text); }

.sp-form { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.sp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .sp-row { grid-template-columns: minmax(0, 1fr); } }
.sp-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-label { font-size: 14px; font-weight: 600; color: var(--text); }
.sp-opt { font-weight: 400; color: var(--text-3); }
.sp-input { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-alt); border: 1px solid var(--border-strong); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.sp-input::placeholder { color: var(--text-3); }
.sp-input:focus { outline: none; border-color: rgba(255, 85, 0, 0.7); box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.18); }
.sp-input[aria-invalid="true"] { border-color: rgba(248, 113, 113, 0.8); }
select.sp-input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; cursor: pointer; }
select.sp-input option { color: #0a0a0c; }
.sp-text { resize: vertical; min-height: 150px; line-height: 1.55; }
.sp-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sp-err { min-height: 0; font-size: 13px; line-height: 1.45; color: #f87171; }
.sp-err:empty { display: none; }
.sp-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sp-count[data-over="1"] { color: #f87171; }
/* поле-ловушка: человек его не видит и не попадает в него с клавиатуры, бот — заполняет */
.sp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sp-captcha { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--hair); }
.sp-cap-text { font-size: 14px; color: var(--text-2); }
.sp-cap-image { display: flex; flex-direction: column; gap: 8px; max-width: 260px; }
.sp-cap-img { width: 200px; height: 70px; border-radius: 10px; background: #fff; }
.sp-consent { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.sp-consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sp-send { padding: 13px 28px; font-size: 15px; }
.sp-send:disabled { opacity: 0.6; cursor: progress; transform: none; }
@media (max-width: 560px) { .sp-send { flex: 1 1 100%; } }
.sp-status { min-width: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.sp-status[data-tone="bad"] { color: #f87171; }
.sp-done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 16px; background: radial-gradient(120% 120% at 0% 0%, rgba(52, 211, 153, 0.12), transparent 60%), rgba(255, 255, 255, 0.02); border: 1px solid rgba(52, 211, 153, 0.3); }
.sp-done:focus { outline: none; }
.sp-done-title { font-size: 19px; font-weight: 700; color: var(--text); }
.sp-done-text { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.sp-again { padding: 11px 20px; font-size: 14px; }

