/* ════════════════════════════════════════════════════════════
   Публичные страницы: тесты, разборы, посадочные.
   Работает поверх style.css - берёт те же цвета и шрифты.
   ════════════════════════════════════════════════════════════ */

.vx-page { max-width: 1120px; margin: 0 auto; padding: 22px 28px 70px; }
.vx-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.vx-page a { color: var(--accent); }

/* хлебные крошки */
.vx-crumbs { font-size: 13px; color: var(--text2); margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.vx-crumbs a { color: var(--text2); text-decoration: none; }
.vx-crumbs a:hover { color: var(--accent); }
.vx-crumbs span.sep { opacity: .5; }

.vx-hero { border-bottom: 2px solid var(--ink); padding-bottom: 24px; margin-bottom: 28px; }
.vx-hero .eyebrow { display: block; margin-bottom: 12px; color: var(--accent); }
.vx-h1 { font-family: var(--font-display); font-size: clamp(27px, 4vw, 40px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); margin-bottom: 12px; }
.vx-lead { font-size: 16px; line-height: 1.75; color: var(--text2); max-width: none; }
.vx-lead p { margin: 0 0 12px; }
.vx-lead p:last-child { margin-bottom: 0; }
.vx-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vx-chip { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text2); background: transparent; text-decoration: none; white-space: nowrap; }
a.vx-chip:hover { color: var(--accent); border-color: var(--accent); }
.vx-chip.is-on { background: var(--btn-ink); color: var(--btn-ink-text); border-color: transparent; }

.vx-h2 { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; color: var(--ink); margin: 40px 0 14px; letter-spacing: -0.01em; line-height: 1.25; }
.vx-h2:first-child { margin-top: 0; }

/* карточки-ссылки */
.vx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.vx-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text) !important; transition: border-color .15s, transform .15s; }
.vx-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.vx-card-tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--label); }
.vx-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.vx-card-text { font-size: 13.5px; line-height: 1.6; color: var(--text2); flex: 1; }
.vx-card-foot { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.vx-card-done { font-size: 12px; color: var(--ok); font-weight: 600; }

.vx-group { margin-bottom: 38px; }
.vx-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vx-group-head .vx-h2 { margin: 0; }
.vx-group-head a { font-size: 13.5px; text-decoration: none; font-weight: 600; }

/* текст статьи */
.vx-article { font-size: 16px; line-height: 1.8; color: var(--text); }
.vx-article p { margin: 0 0 14px; }
.vx-article ul, .vx-article ol { margin: 0 0 16px 22px; }
.vx-article li { margin-bottom: 7px; }
.vx-article h3 { font-family: var(--font-display); font-size: 19px; margin: 24px 0 10px; color: var(--ink); }
.vx-article code { font-family: var(--font-mono); font-size: .92em; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
.vx-article pre { background: var(--paper-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; line-height: 1.6; }
.vx-article pre code { background: none; padding: 0; font-size: 13.5px; }
.vx-article table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.vx-article th, .vx-article td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.vx-article th { background: var(--paper-2); font-weight: 600; }
.vx-article a { text-underline-offset: 3px; }

.vx-example { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--ink); border-radius: var(--r-sm); padding: 16px 18px 6px; margin: 0 0 18px; }
.vx-example p:last-child { margin-bottom: 12px; }
.vx-callout { background: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--r-sm); padding: 13px 16px; margin: 0 0 18px; font-size: 15px; line-height: 1.7; }
.vx-callout.vx-warn { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 35%, transparent); }

/* оглавление */
.vx-toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 18px; margin: 0 0 30px; }
.vx-toc b { font-family: var(--font-mono); font-size: 12.5px; color: var(--label); font-weight: 500; }
.vx-toc ol { margin: 8px 0 0 20px; font-size: 14.5px; line-height: 1.9; }
.vx-toc a { text-decoration: none; color: var(--text); }
.vx-toc a:hover { color: var(--accent); }

/* мягкий призыв */
.vx-cta { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 24px 22px; margin: 34px 0; box-shadow: var(--shadow-card); }
.vx-cta h3, .vx-cta .vx-cta-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.25; }
.vx-cta p { font-size: 15px; line-height: 1.7; color: var(--text2); margin: 0 0 14px; max-width: none; }
.vx-cta.vx-cta-soft { margin: 26px 0; padding: 16px 20px; background: var(--paper-2); box-shadow: none; }
.vx-cta.vx-cta-soft p { margin: 0 0 10px; }
.vx-btn, .vx-article a.vx-btn { display: inline-block; padding: 11px 22px; border-radius: var(--r-sm); background: var(--btn-ink); color: var(--btn-ink-text) !important; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.vx-btn:hover { opacity: .88; }
.vx-btn-ghost, .vx-article a.vx-btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.vx-btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; opacity: 1; }
.vx-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vx-btn[disabled] { opacity: .45; cursor: default; }

/* FAQ */
.vx-faq details { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); margin-bottom: 8px; }
.vx-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.vx-faq summary::-webkit-details-marker { display: none; }
.vx-faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.vx-faq details[open] summary::after { content: '−'; }
.vx-faq details > div { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.75; color: var(--text2); }

.vx-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 8px; }
.vx-note { font-size: 12.5px; line-height: 1.65; color: var(--label); margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--hairline); }

/* какие вопросы ждут (пример на странице теста) */
.vx-sample { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px; }
.vx-sample p { margin: 0 0 8px; font-weight: 600; font-size: 15px; line-height: 1.6; }
.vx-sample ol { margin: 0 0 0 20px; font-size: 14.5px; color: var(--text2); line-height: 1.7; list-style: upper-alpha; }

/* мини-проверка в конце разбора */
.vx-check { margin: 8px 0 8px; }
.vx-chq { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 12px; }
.vx-chq-q { font-weight: 600; font-size: 15.5px; line-height: 1.65; margin: 0 0 10px !important; }
.vx-chq-o { display: grid; gap: 8px; }
.vx-chq-btn { text-align: left; font: inherit; font-size: 14.5px; line-height: 1.5; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--paper); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.vx-chq-btn:hover:not([disabled]) { border-color: var(--ink); }
.vx-chq-btn.is-right { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.vx-chq-btn.is-wrong { border-color: var(--err); background: var(--err-bg); color: var(--err); }
.vx-chq-e { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.vx-chq-e b { color: var(--ink); }

/* ───────── ТЕСТ ───────── */
.vt { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 26px 26px 24px; scroll-margin-top: 80px; }
.vt-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.vt-sub { font-size: 14.5px; line-height: 1.7; color: var(--text2); margin: 0 0 18px; }
.vt-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vt-mode { text-align: left; font: inherit; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--paper); color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s; }
.vt-mode:hover { border-color: var(--accent); transform: translateY(-1px); }
.vt-mode b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.vt-mode span { font-size: 13px; color: var(--text2); line-height: 1.5; }
.vt-prev { margin-top: 14px; font-size: 13px; color: var(--ok); font-weight: 600; }
.vt-prog { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-bottom: 10px; }
.vt-prog-bar { height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s; }
.vt-count { font-family: var(--font-mono); font-size: 12px; color: var(--label); margin-bottom: 12px; }
.vt-q { font-family: var(--font-ui); font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
.vt-opts { display: grid; gap: 9px; }
.vt-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; font: inherit; font-size: 15.5px; line-height: 1.5; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--paper); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.vt-opt:hover:not([disabled]) { border-color: var(--ink); }
.vt-opt[disabled] { cursor: default; }
.vt-key { flex: 0 0 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--text2); margin-top: 1px; }
.vt-opt.is-right { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.vt-opt.is-right .vt-key { border-color: var(--ok); color: var(--ok); }
.vt-opt.is-wrong { border-color: var(--err); background: var(--err-bg); color: var(--err); }
.vt-opt.is-wrong .vt-key { border-color: var(--err); color: var(--err); }
.vt-fb { margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: var(--text2); min-height: 4px; }
.vt-fb b.ok { color: var(--ok); }
.vt-fb b.bad { color: var(--err); }
.vt-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.vt-quit { background: none; border: none; color: var(--label); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vt-quit:hover { color: var(--accent); }

.vt-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.vt-score-n { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; color: var(--ink); }
.vt-score-n small { font-size: 26px; color: var(--text2); font-weight: 600; }
.vt-score-p { font-family: var(--font-mono); font-size: 15px; color: var(--accent); }
.vt-verdict { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 18px; }
.vt-h { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); margin: 26px 0 12px; }
.vt-bars { display: grid; gap: 11px; }
.vt-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.vt-bar-top span:last-child { color: var(--text2); font-family: var(--font-mono); font-size: 12.5px; }
.vt-bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.vt-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.vt-bar.weak i { background: var(--err); }
.vt-weak { font-size: 11px; font-weight: 700; color: var(--err); margin-left: 8px; }
.vt-err { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px; background: var(--paper); }
.vt-err-q { font-weight: 600; font-size: 15px; line-height: 1.6; margin-bottom: 8px; color: var(--ink); }
.vt-err p { font-size: 14px; line-height: 1.65; margin: 0 0 4px; color: var(--text2); }
.vt-err p.you b { color: var(--err); }
.vt-err p.right b { color: var(--ok); }
.vt-err p.why { color: var(--text); margin-top: 6px; }
.vt-res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.vt noscript p, .vt-nojs { font-size: 14px; color: var(--err); }

@media (max-width: 640px) {
  .vx-page { padding: 14px 16px 56px; }
  .vt { padding: 18px 16px 18px; }
  .vt-modes { grid-template-columns: 1fr; }
  .vt-q { font-size: 17px; }
  .vt-score-n { font-size: 46px; }
  .vx-article { font-size: 15.5px; }
  .vx-cta { padding: 20px 18px; }
}

/* большие экраны: статьи, тесты и разборы шире */
@media (min-width: 1100px) {
  .vx-narrow { max-width: 960px; }
  .vx-narrow p, .vx-narrow li { font-size: 17px; }
}
