/* Тестовая главная: только дополнения к preview.css, общие стили не переопределяем */

/* якоря не уезжают под липкую шапку (52px) */
.hn section[id], .hn header[id] { scroll-margin-top: 60px; }

/* ── первый экран ── */
.hn-btn-lg { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 1.05rem; }
.hn-btn-lg svg { flex-shrink: 0; }
.hn-meta { margin-top: var(--s3); font-size: var(--fz-cap); color: var(--text-3); line-height: 1.6; }
.hn-dot:empty { display: none; }
.hn-dot::before { content: "·"; margin: 0 .55em; }

.hn-trust {
  list-style: none; margin: var(--s3) auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  font-size: .95rem; color: var(--text-2);
}
.hn-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hn-trust svg { color: var(--accent); flex-shrink: 0; }

/* телефон / не-Windows: вместо .exe — переслать ссылку на ПК */
.hn-mobile {
  max-width: 440px; margin: var(--s3) auto 0; padding: 18px 18px 20px;
  background: var(--bg-2); border: 1px solid var(--border-soft, var(--border)); border-radius: var(--r-md);
}
.hn-mobile-t { font-size: .95rem; color: var(--text-2); line-height: 1.45; margin-bottom: 14px; }
.hn-mobile-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hn-mobile-actions .btn { flex: 1 1 170px; justify-content: center; }
html.hn-nowin .hero-actions a[href*="/downloads/latest.exe"] { display: none; }
html.hn-nowin .hn-mobile { margin: 0 auto var(--s3); }

.hn-sheet .fsm-card { text-align: center; }
.hn-sheet .hn-mobile-actions { margin-top: var(--s3); }
.hn-sheet-anyway { display: inline-block; margin-top: var(--s3); padding: 8px 0; font-size: .88rem; color: var(--text-3); text-decoration: underline; }

/* ── калькулятор: кнопка сразу под оценкой ── */
.hn-calc-dl { width: 100%; justify-content: center; margin-top: var(--s4); white-space: normal; text-align: center; line-height: 1.3; }
.hn .calc > * { min-width: 0; }   /* длинная кнопка не должна распирать колонку на телефоне */
#calculator .tiers { margin-top: var(--s6); }

/* ── цена: пробный период и PRO рядом ── */
.hn-plans {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
  max-width: 940px; margin: var(--s6) auto 0; text-align: center; align-items: stretch;
}
.hn-plans .price-card { margin: 0; max-width: none; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hn-plans .price-list { flex: 1; width: 100%; }
.hn-plan-btn { width: 100%; margin-top: auto; justify-content: center; }
.hn-plan-pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(139,92,246,.18); }
.hn-badge-soft { color: var(--text-2); background: var(--bg-2); }
.hn-inline-link { color: var(--accent); white-space: nowrap; }

/* ── «Ещё на сайте»: карточки-ссылки ── */
.hn-more-card { display: block; color: inherit; text-decoration: none; transition: transform .25s var(--ease), border-color .25s; }
.hn-more-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.hn-more-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hn-more-card h4 { display: flex; align-items: center; gap: 8px; }
.hn-more-go { color: var(--accent); flex-shrink: 0; transition: transform .25s var(--ease); }
.hn-more-card:hover .hn-more-go { transform: translateX(3px); }

/* ── вопросы ── */
.hn-faq-more { margin-top: var(--s4); text-align: center; }

@media (max-width: 820px) {
  .hn-plans { grid-template-columns: 1fr; max-width: 520px; }
  .hn-btn-lg { padding: 13px 22px; font-size: 1rem; }
}
/* на самых узких экранах меню языков раскрываем вправо — иначе обрезается у края */
@media (max-width: 400px) {
  .hn .lang-menu { right: auto; left: 0; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hn-trust { flex-direction: column; align-items: center; gap: 8px; }
}
