/* [17: сайт] Страницы «Цены» (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-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .hp-plans { grid-template-columns: minmax(0, 1fr); } }
.hp-plan { min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 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-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-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, 6vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.hp-cta { margin-top: auto; align-self: flex-start; padding: 13px 26px; font-size: 15px; }
@media (max-width: 560px) { .hp-plan { padding: 20px 18px; border-radius: 18px; } .hp-cta { align-self: stretch; } }

/* ---------- списки с отметкой ---------- */
.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; } }

/* ---------- Squad ---------- */
.hp-squad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .hp-squad { grid-template-columns: minmax(0, 1fr); } }
.hp-squad-plans { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.hp-squad-plans > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 20px; }
.hp-squad-plans > li + li { border-top: 1px solid var(--hair); }
.hp-squad-plans b { font-weight: 650; color: var(--text); }
.hp-squad-plans span { font-size: 14px; color: var(--text-2); }
.hp-squad > .hp-list { padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
@media (max-width: 560px) { .hp-squad-plans > li { padding: 12px 16px; } .hp-squad > .hp-list { padding: 18px 16px; } }

/* ---------- условия и способы оплаты ---------- */
.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; }

