/* =====================================================================
   SMMPanel — дизайн-система публичного сайта (smm-ds.css), 25.11.2026.
   Источник — главная v2. Один файл на все публичные страницы:
   главная, каталог /uslugi, прайс, FAQ, правила, контакты, API, вход/регистрация, 404, /brand.
   Корень — .hv2 (обёртка страницы). Тёмная тема — класс html.hv-dark (localStorage 'hv-theme').
   Префикс компонентов — hv-. Брендбук: https://smmpanel.ru/brand
   Красного в интерфейсе нет: акцент — синий.
   ===================================================================== */

/* ---------- 1. Токены ---------- */
.hv2 {
  --h-bg: #f5f7fb; --h-surface: #ffffff; --h-surface2: #eef1f6; --h-line: #e3e8ef;
  --h-text: #0f172a; --h-muted: #5b6478; --h-accent: #2563eb; --h-accent-h: #1d4fd7;
  --h-accent-soft: #eaf1fe; --h-ok: #16a34a; --h-shadow: 0 20px 50px rgba(15, 23, 42, .08);
  --h-warn: #b45309; --h-warn-soft: #fef3c7; --h-ok-soft: #e8f7ee; --h-code: #0f172a;
  background: var(--h-bg); color: var(--h-text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
html.hv-dark .hv2 {
  --h-bg: #0b0f1a; --h-surface: #121826; --h-surface2: #1c2334; --h-line: #272f42;
  --h-text: #eef1f7; --h-muted: #a6afc2; --h-accent: #4d83ff; --h-accent-h: #7aa2ff;
  --h-accent-soft: rgba(77, 131, 255, .16); --h-ok: #22c55e; --h-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --h-warn: #f59e0b; --h-warn-soft: rgba(245, 158, 11, .14); --h-ok-soft: rgba(34, 197, 94, .14); --h-code: #070a12;
  color-scheme: dark;
}
/* на публичных страницах акцент main.css — тоже синий (лоадер, баннер установки, окна вне .hv2) */
html body { --accent: #2563eb; --accent-dark: #1d4fd7; }
body .inst-banner__btn { background: #2563eb; }
body { background: #f5f7fb; }
html.hv-dark body { background: #0b0f1a; }

/* Мост к старому main.css: его переменные внутри .hv2 берут значения из токенов,
   поэтому карточки, кнопки, формы и таблицы старых шаблонов перекрашиваются сами
   (и в светлой, и в тёмной теме), а кабинет вне .hv2 не меняется. */
.hv2, html.hv-dark .hv2 {
  --accent: var(--h-accent); --accent-dark: var(--h-accent-h);
  --primary: var(--h-text); --secondary: var(--h-muted); --tertiary: var(--h-muted);
  --bgr-primary: var(--h-surface); --bgr-secondary: var(--h-surface2); --bgr-secondary-dark: var(--h-surface2);
  --bgr-tertiary: var(--h-surface2); --bgr-card: var(--h-surface); --bg-pages: var(--h-bg); --border-color: var(--h-line);
  --shadow-s: 0 1px 2px rgba(15, 23, 42, .05); --shadow-m: var(--h-shadow);
  --bs-body-color: var(--h-text); --bs-body-bg: var(--h-bg); --bs-border-color: var(--h-line);
}

/* ---------- 2. База ---------- */
.hv2 *, .hv2 *::before, .hv2 *::after { box-sizing: border-box; }
.hv2 a { color: var(--h-accent); text-decoration: none; }
.hv2 a:hover { color: var(--h-accent-h); }
.hv2 h1, .hv2 h2, .hv2 h6 { color: var(--h-text); font-family: inherit; }
.hv2 h3, .hv2 h4, .hv2 h5 { color: var(--h-text); font-family: inherit; }
.hv2 button, .hv2 input, .hv2 select { font-family: inherit; }
.hv2 :focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
.hv2 main { min-height: 0; padding: 0; margin: 0; }
.hv-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hv-card { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; }

/* ---------- 3. Плитки площадок ---------- */
.hv-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.hv-tile svg { display: block; }
html.hv-dark .hv-tile--dark { box-shadow: inset 0 0 0 1px #3a4560; }

/* ---------- 4. Кнопки ---------- */
.hv-btn { height: 38px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hv2 .hv-btn--primary { background: var(--h-accent); color: #fff; }
.hv2 .hv-btn--primary:hover { background: var(--h-accent-h); color: #fff; }
.hv2 .hv-btn--ghost { color: var(--h-text); padding: 0 12px; }
.hv2 .hv-btn--ghost:hover { background: var(--h-surface2); color: var(--h-text); }
.hv2 .hv-btn--outline { height: 46px; border-radius: 12px; border-color: var(--h-accent); color: var(--h-accent); font-weight: 700; }
.hv2 .hv-btn--outline:hover { background: var(--h-accent-soft); }
.hv-btn--lg { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.hv-iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--h-line); background: transparent; color: var(--h-text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hv-iconbtn:hover { background: var(--h-surface2); }
.hv-sun { display: none; }
html.hv-dark .hv-sun { display: block; }
html.hv-dark .hv-moon { display: none; }

/* ---------- 5. Шапка ---------- */
.hv-header { background: var(--h-surface); border-bottom: 1px solid var(--h-line); }
.hv-header__row { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hv2 .hv-logo { color: var(--h-text); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.hv2 .hv-logo:hover { color: var(--h-text); }
.hv-logo span { color: var(--h-accent); }
.hv-search { position: relative; flex: 1 1 300px; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 40px;
  border-radius: 10px; background: var(--h-surface2); padding: 0 12px; margin: 0; color: var(--h-muted); }
.hv-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--h-text); font-size: 14px; height: 100%; }
.hv-search input::placeholder { color: var(--h-muted); }
.hv-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.hv-search__list { position: absolute; left: 0; right: 0; top: 46px; z-index: 50; background: var(--h-surface); border: 1px solid var(--h-line);
  border-radius: 12px; box-shadow: var(--h-shadow); padding: 6px; max-height: 360px; overflow: auto; }
.hv-search__list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--h-text); font-size: 14px; }
.hv-search__list a:hover, .hv-search__list a:focus { background: var(--h-surface2); color: var(--h-text); outline: 0; }
.hv-search__list em { font-style: normal; color: var(--h-muted); white-space: nowrap; font-size: 13px; }
.hv-search__list .hv-search__empty { color: var(--h-muted); }
.hv-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 500; }
.hv2 .hv-nav a { color: var(--h-muted); }
.hv2 .hv-nav a:hover, .hv2 .hv-nav a[aria-current="page"] { color: var(--h-text); }
.hv-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hv-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.hv-strip::-webkit-scrollbar { display: none; }
.hv2 .hv-strip a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; padding: 6px 0;
  color: var(--h-muted); font-size: 11px; font-weight: 500; border-radius: 10px; }
.hv2 .hv-strip a:hover, .hv2 .hv-strip a[aria-current="page"] { background: var(--h-surface2); color: var(--h-text); }

/* ---------- 6. Текст: надзаголовок, лид, чипы, теги ---------- */
.hv-eyebrow { font-size: 13px; font-weight: 600; color: var(--h-accent); }
.hv-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--h-muted); max-width: 560px; }
.hv-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--h-muted); }
.hv2 .hv-quick a { color: var(--h-text); padding: 5px 10px; border-radius: 999px; background: var(--h-surface2); font-weight: 500; }
.hv2 .hv-quick a:hover { background: var(--h-accent-soft); color: var(--h-accent); }
.hv-quick a small, .hv-quick a .hv-count { color: var(--h-muted); font-size: 12px; margin-left: 4px; }

/* ---------- 7. Поля ввода ---------- */
.hv-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.hv-tags span { font-size: 12px; font-weight: 600; color: var(--h-accent); background: var(--h-accent-soft); padding: 5px 10px; border-radius: 999px; }
.hv-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--h-muted); margin: 0; }
.hv-field select, .hv-readout { height: 46px; border-radius: 12px; border: 1px solid var(--h-line); background: var(--h-surface); color: var(--h-text);
  padding: 0 12px; font-size: 15px; font-weight: 500; width: 100%; min-width: 0; }
.hv-readout { display: flex; align-items: center; background: var(--h-surface2); font-weight: 700; }
.hv-qty { display: flex; align-items: center; height: 46px; border-radius: 12px; border: 1px solid var(--h-line); overflow: hidden; }
.hv-qty button { width: 46px; height: 100%; border: 0; background: var(--h-surface2); color: var(--h-text); font-size: 18px; cursor: pointer; flex: none; }
.hv-qty button:hover { background: var(--h-line); }
.hv-qty input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; text-align: center; background: var(--h-surface); color: var(--h-text); font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.hv-qty input::-webkit-outer-spin-button, .hv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hv-note { margin: 0; font-size: 13px; color: var(--h-muted); }
.hv-note code { font-size: 12px; color: var(--h-text); background: var(--h-surface2); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.hv-input, .hv2 .hv-field > input:not([type=checkbox]):not([type=radio]) { height: 46px; border-radius: 12px; border: 1px solid var(--h-line);
  background: var(--h-surface); color: var(--h-text); padding: 0 14px; font-size: 15px; font-weight: 500; width: 100%; min-width: 0; outline: 0;
  transition: border-color .15s, box-shadow .15s; }
.hv-input:focus, .hv2 .hv-field > input:focus, .hv-field select:focus { border-color: var(--h-accent); box-shadow: 0 0 0 3px var(--h-accent-soft); outline: 0; }
.hv-input::placeholder, .hv2 .hv-field > input::placeholder { color: var(--h-muted); opacity: .8; font-weight: 400; }
.hv-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hv-field__row a { font-weight: 500; }
.hv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--h-muted); font-weight: 400; cursor: pointer; }
.hv-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--h-accent); flex: none; }

/* ---------- 8. Секции и заголовки ---------- */
.hv-sec { padding-top: 56px; padding-bottom: 16px; }
.hv2 .hv-sec h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.hv-sec__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hv2 .hv-sec__head h2 { margin: 0; }
.hv-sec__head a { font-weight: 600; }

/* ---------- 9. FAQ-аккордеон ---------- */
.hv-faq { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hv2 .hv-faq h2 { margin-bottom: 8px; }
.hv-faq details { border-radius: 14px; padding: 16px 18px; }
.hv-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hv-faq summary::-webkit-details-marker { display: none; }
.hv-faq summary::after { content: '+'; color: var(--h-muted); font-weight: 500; font-size: 18px; line-height: 1; }
.hv-faq details[open] summary::after { content: '−'; }
.hv-faq p { margin: 10px 0 0; color: var(--h-muted); line-height: 1.6; }
.hv-more { margin-top: 6px; font-weight: 600; }

/* ---------- 10. Подвал ---------- */
.hv-footer { margin-top: 56px; background: var(--h-surface); color: var(--h-muted); border-top: 1px solid var(--h-line); }
.hv-footer__cols { padding-top: 48px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 40px; }
.hv-footer__cols > div { flex: 1 1 200px; min-width: 0; width: auto; max-width: none; margin: 0 !important; padding: 0; font-size: 15px; }
.hv-footer__cols > .hv-fcol--about { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.hv-footer__cols > div:last-child { flex: 1 1 260px; }
.hv-flogo { display: block; width: 120px; height: auto; color: var(--h-text); }
.hv-fcol--about p { margin: 0; line-height: 1.6; }
.hv2 .hv-footer h6 { font-size: 14px !important; letter-spacing: .04em; text-transform: uppercase; color: var(--h-text) !important; opacity: 1 !important; font-weight: 700; margin: 0 0 12px !important; }
.hv-footer ul { margin: 0; padding: 0; list-style: none; }
.hv-footer li { padding: 0 !important; margin: 0 0 10px !important; break-inside: avoid; }
.hv2 .hv-footer .footer__nav_link, .hv2 .hv-footer .text-muted { color: var(--h-muted) !important; font-size: 15px; }
.hv2 .hv-footer .footer__nav_link:hover { color: var(--h-text) !important; }
.hv-footer__bottom { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--h-line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.hv-footer__bottom > span { color: var(--h-text); font-size: 14px; }
.hv-paybadges { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-paybadges span { border: 1px solid var(--h-line); border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; color: var(--h-text); }
.hv-paybadges .hv-visa { font-style: italic; font-weight: 800; }

/* ---------- 11. Внутренние страницы ---------- */
.hv2 .hv-main { padding-top: 28px; padding-bottom: 8px; min-height: 50vh; }
.hv-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--h-muted); margin: 0 0 14px; }
.hv2 .hv-crumbs a { color: var(--h-muted); }
.hv2 .hv-crumbs a:hover { color: var(--h-accent); }
.hv-crumbs span[aria-hidden] { opacity: .5; }
.hv-pagehead { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.hv2 .hv-h1, .hv2 .hv-pagehead h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.hv2 .hv-h2 { margin: 40px 0 16px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.hv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 8px; }
.hv-fact { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 16px 18px; }
.hv-fact b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hv-fact span { font-size: 13px; color: var(--h-muted); }
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hv2 .hv-linkcard { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--h-text); min-width: 0; transition: border-color .15s, transform .15s; }
.hv2 .hv-linkcard:hover { color: var(--h-text); border-color: var(--h-accent); transform: translateY(-2px); }
.hv-linkcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-linkcard strong { font-size: 16px; font-weight: 700; }
.hv-linkcard span { font-size: 13px; color: var(--h-muted); }
.hv-linkcard em { font-style: normal; font-weight: 700; white-space: nowrap; font-size: 14px; }
.hv-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px;
  border-radius: 20px; background: var(--h-accent-soft); border: 1px solid transparent; margin: 32px 0 0; }
.hv-cta strong { display: block; font-size: 18px; font-weight: 800; }
.hv-cta p { margin: 4px 0 0; color: var(--h-muted); max-width: 620px; }
.hv-steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hv-steps4 .hv-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.hv-steps4 i { font-style: normal; width: 36px; height: 36px; border-radius: 10px; background: var(--h-accent-soft); color: var(--h-accent); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.hv-steps4 strong { font-size: 16px; }
.hv-steps4 span { color: var(--h-muted); font-size: 14px; line-height: 1.55; }

/* таблица */
.hv-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; }
.hv-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--h-text); }
.hv-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--h-muted);
  padding: 12px 16px; background: var(--h-surface2); white-space: nowrap; }
.hv-table td { padding: 14px 16px; border-top: 1px solid var(--h-line); vertical-align: top; }
.hv-table tbody tr:hover td { background: var(--h-surface2); }
.hv-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hv-table .num b { font-weight: 700; }

/* бейджи */
.hv-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 999px;
  background: var(--h-surface2); color: var(--h-muted); white-space: nowrap; vertical-align: 1px; }
.hv-badge--accent { background: var(--h-accent-soft); color: var(--h-accent); }
.hv-badge--ok { background: var(--h-ok-soft); color: var(--h-ok); }
.hv-badge--warn { background: var(--h-warn-soft); color: var(--h-warn); }

/* длинный текст (правила, политика) */
.hv-prose { padding: 32px; max-width: 860px; margin: 0 auto 16px; line-height: 1.7; color: var(--h-text); overflow-wrap: anywhere; }
.hv2 .hv-prose h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; line-height: 1.15; }
.hv2 .hv-prose h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; }
.hv2 .hv-prose h3, .hv2 .hv-prose h4 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.hv-prose p, .hv-prose li { color: var(--h-text); }
.hv-prose ul, .hv-prose ol { padding-left: 22px; }
.hv-prose img { max-width: 100%; height: auto; }

/* ---------- 12. Вход и регистрация ---------- */
.hv-authpage { min-height: 100vh; display: flex; flex-direction: column; }
.hv-authpage > .hv-wrap { width: 100%; }
.hv-authtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.hv2 .hv-authmain { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 48px; }
.hv-auth { width: 100%; max-width: 440px; padding: 32px; border-radius: 20px; box-shadow: var(--h-shadow); display: flex; flex-direction: column; gap: 18px; }
.hv2 .hv-auth h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.hv-auth__sub { margin: -10px 0 0; color: var(--h-muted); font-size: 15px; }
.hv-auth form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.hv-auth .hv-btn--lg { width: 100%; }
.hv-auth__links { display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: 14px; color: var(--h-muted); text-align: center; }
.hv-auth__fine { font-size: 12px; color: var(--h-muted); text-align: center; margin: 0; }
.hv2 .hv-auth__fine a { color: inherit; text-decoration: underline; }
.hv-divider { display: flex; align-items: center; gap: 12px; color: var(--h-muted); font-size: 13px; }
.hv-divider::before, .hv-divider::after { content: ''; flex: 1; height: 1px; background: var(--h-line); }
.hv-social { display: flex; flex-direction: column; gap: 10px; }
.hv-social .gsi-wrap { margin: 0; }
.hv-social .gsi-divider, .hv-social .gsi-note { display: none; }
.hv-social .gsi-button { min-height: 44px; color-scheme: light; }
.hv-captcha { display: flex; justify-content: center; min-height: 65px; }
.hv-linkbtn { background: none; border: 0; padding: 0; color: var(--h-accent); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; }
.hv-linkbtn:hover { color: var(--h-accent-h); }
.hv-hint { font-size: 13px; color: var(--h-muted); font-weight: 400; }

/* ---------- 13. Старые шаблоны внутри .hv2 (bootstrap + main.css) ---------- */
.hv2 .hv-main .container, .hv2 .hv-main .container-lg { max-width: none; padding-left: 0; padding-right: 0; }
.hv2 .hv-main .section { padding: 0; overflow: visible; }
.hv2 .card { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; box-shadow: none; color: var(--h-text); }
.hv2 .btn { border-radius: 12px; font-weight: 600; font-size: 15px; }
.hv2 .btn-primary, .hv2 .btn-primary:focus { background: var(--h-accent); border-color: var(--h-accent); color: #fff; box-shadow: none; }
.hv2 .btn-primary:hover, .hv2 .btn-primary:active { background: var(--h-accent-h); border-color: var(--h-accent-h); color: #fff; }
.hv2 .btn-outline-primary, .hv2 .btn-outline { border: 1px solid var(--h-accent); color: var(--h-accent); background: transparent; }
.hv2 .btn-outline-primary:hover, .hv2 .btn-outline:hover { background: var(--h-accent-soft); color: var(--h-accent); border-color: var(--h-accent); }
.hv2 .btn-outline-secondary, .hv2 .btn-grey { border: 1px solid var(--h-line); color: var(--h-text); background: var(--h-surface); }
.hv2 .btn-outline-secondary:hover, .hv2 .btn-grey:hover { background: var(--h-surface2); color: var(--h-text); border-color: var(--h-line); }
.hv2 .btn-danger { background: var(--h-accent); border-color: var(--h-accent); color: #fff; }
.hv2 .form-control, .hv2 .form-select { background-color: var(--h-surface); border: 1px solid var(--h-line); color: var(--h-text); border-radius: 12px; min-height: 46px; box-shadow: none; }
.hv2 .form-control:focus, .hv2 .form-select:focus { border-color: var(--h-accent); box-shadow: 0 0 0 3px var(--h-accent-soft); background-color: var(--h-surface); color: var(--h-text); }
.hv2 .form-control::placeholder { color: var(--h-muted); }
html.hv-dark .hv2 .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a6afc2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); }
.hv2 .text-muted { color: var(--h-muted) !important; }
.hv2 .table { color: var(--h-text); --bs-table-bg: transparent; --bs-table-color: var(--h-text); --bs-table-hover-bg: var(--h-surface2); --bs-table-hover-color: var(--h-text); --bs-table-striped-bg: var(--h-surface2); border-color: var(--h-line); }
.hv2 .table > :not(caption) > * > * { border-bottom-color: var(--h-line); }
.hv2 .bg-grey-100, .hv2 .bg-grey-200 { background-color: var(--h-surface2) !important; color: var(--h-text); }
.hv2 .accordion-item { background: var(--h-surface); border: 1px solid var(--h-line) !important; border-radius: 14px !important; box-shadow: none !important; overflow: hidden; }
.hv2 .accordion-button { background: var(--h-surface); color: var(--h-text); font-weight: 600; font-size: 15px; box-shadow: none; padding: 18px 20px; }
.hv2 .accordion-button:not(.collapsed) { background: var(--h-surface); color: var(--h-accent); box-shadow: none; }
.hv2 .accordion-button::after { background-image: none !important; content: '+'; transform: none !important; width: auto; height: auto; color: var(--h-muted); font-size: 20px; line-height: 1; font-weight: 500; }
.hv2 .accordion-button:not(.collapsed)::after { content: '−'; }
.hv2 .accordion-body { color: var(--h-muted); line-height: 1.65; padding: 0 20px 18px; }
.hv2 .dropdown-menu { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 12px; box-shadow: var(--h-shadow); }
.hv2 .dropdown-item { color: var(--h-text); }
.hv2 .dropdown-item:hover { background: var(--h-surface2); color: var(--h-text); }
.hv2 .modal-content { background: var(--h-surface); color: var(--h-text); border: 1px solid var(--h-line); border-radius: 16px; }
.hv2 pre { border-radius: 12px; }
.hv2 .ad-toc a:hover, .hv2 .ad-toc a.on { background: var(--h-accent-soft); color: var(--h-accent) !important; }
.hv2 .hv-main h1 { font-weight: 800; letter-spacing: -.02em; }
.hv2 .hv-main .section > .container > h1 { text-align: left !important; font-size: 40px; line-height: 1.1; margin: 0 0 28px !important; }
.hv2 .hv-main .card > h1 { font-size: 32px !important; line-height: 1.15; hyphens: auto; overflow-wrap: break-word; }
.hv2 .hv-main .card > h2 { font-size: 22px !important; font-weight: 800; line-height: 1.2; }
.hv2 .hv-main .card { line-height: 1.65; }
@media (max-width: 700px) {
  .hv2 .hv-main .card.p-4 { padding: 20px !important; }
  .hv2 .hv-main .card > h1 { font-size: 25px !important; }
  .hv2 .hv-main .card > h2 { font-size: 19px !important; }
}
.hv2 .accordion-button { display: flex; align-items: center; gap: 12px; }
.hv2 .accordion-button::after { margin-left: auto; flex-shrink: 0; }

.hv2 .ad-wrap > *, .hv2 .row > * { min-width: 0; }
@media (max-width: 991.98px) { .hv2 .ad-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) { .hv2 .table-services td.text-nowrap { white-space: normal !important; flex-wrap: wrap; } .hv2 .table-services { display: block; width: 100% !important; } .hv2 .table-services td { min-width: 0; overflow-wrap: anywhere; } .hv2 .table-services td > * { min-width: 0; } .hv2 .table-services td.text-nowrap { gap: 8px; align-items: center; } .hv2 .table-services td.text-nowrap > * { flex: 0 0 auto; width: auto; margin: 0 !important; } .hv2 .table-services td:nth-child(3) > div::after { content: none; } .hv2 .table-services .sv-usd::after { content: ")" !important; display: inline !important; } }

/* посадочные каталога (/uslugi/...): классы lp-* из landing.css в общем стиле */
.hv2 .lp-wrap { max-width: none; padding: 0; }
.hv2 .lp-crumbs { opacity: 1; font-size: 13px; color: var(--h-muted); margin: 0 0 14px; }
.hv2 .lp-crumbs a:hover { color: var(--h-accent); text-decoration: none; }
.hv2 .lp-h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; }
.hv2 .lp-h2 { font-size: 24px; font-weight: 800; letter-spacing: -.015em; margin: 40px 0 16px; }
.hv2 .lp-lead { opacity: 1; color: var(--h-muted); font-size: 17px; max-width: 720px; margin-bottom: 24px; }
.hv2 .lp-facts { gap: 12px; margin-bottom: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hv2 .lp-fact { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 16px 18px; }
.hv2 .lp-fact b { font-size: 22px; font-weight: 800; }
.hv2 .lp-fact span { opacity: 1; font-size: 13px; color: var(--h-muted); }
.hv2 .lp-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 8px; }
.hv2 .lp-card { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 16px 18px; gap: 6px; color: var(--h-text); transition: border-color .15s, transform .15s; }
.hv2 .lp-card:hover { border-color: var(--h-accent); background: var(--h-surface); transform: translateY(-2px); color: var(--h-text); }
.hv2 .lp-card-t { font-size: 16px; font-weight: 700; gap: 10px; }
.hv2 .lp-card-m { opacity: 1; font-size: 13px; color: var(--h-muted); }
.hv2 .lp-scroll { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; margin-bottom: 8px; }
.hv2 .lp-table { font-size: 14px; }
.hv2 .lp-table th { opacity: 1; color: var(--h-muted); background: var(--h-surface2); padding: 12px 16px; font-size: 12px; letter-spacing: .04em; }
.hv2 .lp-table td { padding: 14px 16px; border-top: 1px solid var(--h-line); }
.hv2 .lp-table tbody tr:hover td { background: var(--h-surface2); }
.hv2 .lp-badge { opacity: 1; border: 0; background: var(--h-accent-soft); color: var(--h-accent); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; margin-left: 6px; }
.hv2 .lp-steps { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hv2 .lp-step { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 20px; }
.hv2 .lp-step b { opacity: 1; display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--h-accent-soft); color: var(--h-accent); font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.hv2 .lp-step p { font-size: 14px; color: var(--h-muted); line-height: 1.55; }
.hv2 .lp-faq { border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.hv2 .lp-faq details, .hv2 .lp-faq details:first-child { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 14px; }
.hv2 .lp-faq summary { padding: 16px 18px; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.hv2 .lp-faq summary::after { float: none; opacity: 1; color: var(--h-muted); font-size: 18px; font-weight: 500; line-height: 1; }
.hv2 .lp-faq p { opacity: 1; color: var(--h-muted); padding: 0 18px 16px; font-size: 15px; }
.hv2 .lp-links { gap: 8px; margin-bottom: 8px; }
.hv2 .lp-links a { background: var(--h-surface2); border: 0; color: var(--h-text); font-size: 13px; font-weight: 500; padding: 6px 12px; }
.hv2 .lp-links a:hover { background: var(--h-accent-soft); color: var(--h-accent); }
.hv2 .lp-links a span { opacity: 1 !important; color: var(--h-muted); margin-left: 2px; }
.hv2 .lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border: 0; border-radius: 20px;
  background: var(--h-accent-soft); padding: 24px; margin: 32px 0 0; }
.hv2 .lp-cta b { font-size: 18px; font-weight: 800; }
.hv2 .lp-cta > div { flex: 1 1 360px; opacity: 1 !important; color: var(--h-muted); font-size: 15px !important; }
.hv2 .lp-cta a { margin: 0; height: 46px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 12px; background: var(--h-accent); color: #fff; font-size: 15px; font-weight: 700; }
.hv2 .lp-cta a:hover { background: var(--h-accent-h); color: #fff; filter: none; }

/* ---------- 14. Адаптив ---------- */
@media (max-width: 1080px) {
  .hv-header__row { gap: 14px; }
  .hv-search { order: 5; flex-basis: 100%; max-width: none; }
  .hv-nav { order: 4; }
}
@media (max-width: 960px) {
  .hv-steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hv-wrap { padding-left: 16px; padding-right: 16px; }
  .hv-header__row { gap: 10px; }
  .hv-nav { order: 6; flex-basis: 100%; gap: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hv-nav::-webkit-scrollbar { display: none; }
  .hv-nav a { white-space: nowrap; }
  .hv-actions { gap: 4px; }
  .hv-btn { padding: 0 12px; }
  .hv2 .hv-btn--ghost { padding: 0 8px; }
  .hv-lead { font-size: 16px; }
  .hv-sec { padding-top: 40px; }
  .hv2 .hv-sec h2 { font-size: 24px; }
  .hv-footer__cols { gap: 28px; padding-top: 36px; }
  .hv2 .hv-main { padding-top: 20px; }
  .hv2 .hv-h1, .hv2 .hv-pagehead h1, .hv2 .lp-h1, .hv2 .hv-main .section > .container > h1 { font-size: 30px; }
  .hv2 .hv-h2, .hv2 .lp-h2 { font-size: 21px; margin-top: 32px; }
  .hv2 .lp-lead { font-size: 16px; }
  .hv-steps4 { grid-template-columns: 1fr; }
  .hv-table th, .hv-table td, .hv2 .lp-table th, .hv2 .lp-table td { padding: 10px 12px; }
  .hv2 .lp-grid, .hv-grid { grid-template-columns: 1fr; }
  .hv-prose { padding: 20px; }
  .hv2 .hv-prose h1 { font-size: 26px; }
  .hv-auth { padding: 24px 20px; }
  .hv2 .hv-authmain { padding: 8px 12px 32px; }
  .hv-cta, .hv2 .lp-cta { padding: 20px; }
}
@media (max-width: 380px) {
  .hv2 .hv-logo { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .hv2 * { transition: none !important; } }

/* ---------- 15. Каталог /uslugi (25.11.2026) ----------
   Иконки типов услуг (линейные, cat_ui_icon()), тонированные цветом площадки через --pc;
   карточки площадок и разделов, ценник «от $X/1000», список тарифов с бейджами и «Заказать».
   PHP-помощники: app/modules/landing/helpers/catalog_ui.php. Образцы: /brand#catalog */
.hv-cat { --pc: var(--h-accent); }
.hv-ico { display: block; flex: none; }
.hv-price { display: inline-flex; align-items: baseline; gap: 1px; flex: none; white-space: nowrap; padding: 5px 10px; border-radius: 999px;
  background: var(--h-surface2); color: var(--h-text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hv-price small { font-size: 11px; font-weight: 600; color: var(--h-muted); }

/* иконка типа услуги */
.hv-sico { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--h-surface2); background: color-mix(in srgb, var(--pc) 12%, transparent); color: var(--pc); }
html.hv-dark .hv-sico { background: color-mix(in srgb, var(--pc) 18%, transparent); color: color-mix(in srgb, var(--pc) 70%, #fff); }
.hv-sico--lg { width: 72px; height: 72px; border-radius: 20px; }
.hv-sico__geo { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--h-surface); border: 1px solid var(--h-line); color: var(--h-accent); }
.hv-sico__plat { position: absolute; right: -7px; bottom: -7px; display: inline-flex; }
.hv-sico__plat .hv-tile { outline: 3px solid var(--h-bg); }

/* шапка площадки / раздела: большая плитка + H1 */
.hv-phead { display: flex; align-items: flex-start; gap: 20px; margin: 0 0 24px; }
.hv-phead > .hv-tile { border-radius: 20px !important; }
.hv-phead__t { min-width: 0; flex: 1; }
.hv2 .hv-phead h1 { margin: 2px 0 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.hv-phead .hv-lead { margin: 12px 0 0; max-width: 760px; }
.hv-phead__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* карточки площадок (/uslugi) */
.hv-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hv-pcard { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s, transform .15s; }
.hv-pcard:hover { border-color: var(--h-accent); transform: translateY(-2px); }
.hv2 .hv-pcard__head { display: flex; align-items: center; gap: 12px; color: var(--h-text); }
.hv-pcard__head .hv-tile { border-radius: 12px !important; }
.hv-pcard__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-pcard__t strong { font-size: 17px; font-weight: 700; }
.hv-pcard__t span { font-size: 13px; color: var(--h-muted); }
.hv-pcard__types { display: flex; flex-wrap: wrap; gap: 6px; }
.hv2 .hv-pcard__types a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--h-surface2);
  color: var(--h-text); font-size: 13px; font-weight: 500; }
.hv-pcard__types a .hv-ico { color: var(--pc); }
html.hv-dark .hv-pcard__types a .hv-ico { color: color-mix(in srgb, var(--pc) 70%, #fff); }
.hv2 .hv-pcard__types a:hover { background: var(--h-accent-soft); color: var(--h-accent); }
.hv2 .hv-pcard__types a.hv-pcard__more { background: transparent; color: var(--h-muted); }
.hv2 .hv-pcard__types a.hv-pcard__more:hover { color: var(--h-accent); }

/* карточки разделов (/uslugi/{площадка}) */
.hv-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.hv2 .hv-scard { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px;
  color: var(--h-text); transition: border-color .15s, transform .15s; }
.hv2 .hv-scard:hover { border-color: var(--h-accent); transform: translateY(-2px); color: var(--h-text); }
.hv-scard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 1px; }
.hv-scard__body strong { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.hv-scard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--h-muted); }
.hv-scard__meta .hv-price { padding: 3px 8px; }
.hv-scard__meta em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--h-surface2); color: var(--h-muted); }
.hv-scard__meta em.hv-geo { display: inline-flex; align-items: center; gap: 3px; background: var(--h-accent-soft); color: var(--h-accent); }

/* список тарифов (/uslugi/{площадка}/{раздел}) */
.hv-tariffs { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; overflow: hidden; }
.hv-tariffs__head, .hv-tariff { display: grid; grid-template-columns: minmax(0, 1fr) 150px 110px 136px; gap: 16px; align-items: center; padding: 14px 18px; }
.hv-tariffs__head { padding-top: 10px; padding-bottom: 10px; background: var(--h-surface2); color: var(--h-muted); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; }
.hv-tariffs__head span:nth-child(2), .hv-tariffs__head span:nth-child(3) { text-align: right; }
.hv-tariff { border-top: 1px solid var(--h-line); }
.hv-tariffs__head + .hv-tariff { border-top: 0; }
.hv-tariff:hover { background: var(--h-surface2); }
.hv-tariff__main { min-width: 0; }
.hv-tariff__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.hv-tier { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px;
  background: var(--h-accent-soft); color: var(--h-accent); }
.hv-tariff__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hv-tchip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 1.2; padding: 4px 8px; border-radius: 999px;
  background: var(--h-surface2); color: var(--h-muted); }
.hv-tariff:hover .hv-tchip:not(.hv-tchip--ok):not(.hv-tchip--geo) { background: var(--h-surface); }
.hv-tchip--ok { background: var(--h-ok-soft); color: var(--h-ok); font-weight: 600; }
.hv-tchip--geo { background: var(--h-accent-soft); color: var(--h-accent); font-weight: 600; }
.hv-tchip--speed, .hv-tchip--start { color: var(--h-text); }
.hv-tariff__qty, .hv-tariff__price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hv-tariff__qty { font-size: 14px; color: var(--h-muted); }
.hv-tariff__price b { font-size: 16px; font-weight: 800; }
.hv-tariff__qty > span, .hv-tariff__price > span { display: none; }
.hv2 .hv-tariff__go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--h-accent-soft); color: var(--h-accent); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s; }
.hv2 .hv-tariff__go:hover { background: var(--h-accent); color: #fff; }

/* чипы с плиткой / иконкой (другие площадки, другие услуги) */
.hv2 .hv-quick--tiles a, .hv2 .hv-quick--icons a { display: inline-flex; align-items: center; gap: 6px; }
.hv-quick--tiles .hv-tile { border-radius: 6px !important; }
.hv-quick--icons a .hv-ico { color: var(--pc); }
html.hv-dark .hv-quick--icons a .hv-ico { color: color-mix(in srgb, var(--pc) 70%, #fff); }
.hv-quick--icons a .hv-ico + small, .hv-quick--tiles a small { margin-left: 2px; }

@media (max-width: 900px) {
  .hv-tariffs__head, .hv-tariff { grid-template-columns: minmax(0, 1fr) 120px 96px 120px; gap: 12px; }
}
@media (max-width: 700px) {
  .hv-phead { gap: 14px; }
  .hv-phead > .hv-tile { width: 56px !important; height: 56px !important; border-radius: 16px !important; }
  .hv-phead > .hv-tile svg { width: 30px; height: 30px; }
  .hv-sico--lg { width: 56px; height: 56px; border-radius: 16px; }
  .hv-sico--lg > .hv-ico { width: 28px; height: 28px; }
  .hv2 .hv-phead h1 { font-size: 28px; }
  .hv-pgrid, .hv-sgrid { grid-template-columns: 1fr; }
  .hv-tariffs__head { display: none; }
  .hv-tariff { grid-template-columns: 1fr auto; grid-template-areas: "main main" "qty price" "go go"; gap: 10px 12px; padding: 14px 16px; }
  .hv-tariffs__head + .hv-tariff { border-top: 0; }
  .hv-tariff__main { grid-area: main; }
  .hv-tariff__qty { grid-area: qty; text-align: left; }
  .hv-tariff__price { grid-area: price; }
  .hv-tariff__qty > span, .hv-tariff__price > span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--h-muted); margin-bottom: 2px; }
  .hv2 .hv-tariff__go { grid-area: go; width: 100%; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .hv-pcard, .hv2 .hv-scard { transition: none; } .hv-pcard:hover, .hv2 .hv-scard:hover { transform: none; } }

/* 26.11.2026: карточка услуги — ID и описание (каталог /uslugi, брендбук) */
.hv-sid { flex: none; padding: 2px 7px; border: 1px solid var(--h-line); border-radius: 6px; color: var(--h-muted); font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; white-space: nowrap; }
.hv-sdesc { margin-top: 8px; }
.hv-sdesc__t { margin: 0; color: var(--h-muted); font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.hv-sdesc.is-open .hv-sdesc__t { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.hv2 .hv-sdesc__more { margin-top: 2px; padding: 0; border: 0; background: none; color: var(--h-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hv2 .hv-sdesc__more:hover { text-decoration: underline; }
.hv2 .hv-sdesc__more[hidden] { display: none; }
