/* slovarnyy-zapas-anglijskogo: языковая страница на шаблоне rd. Прежние стили страницы переведены в токены rd.css, ниже слой нового вида */
.rd #vocab-test { font-family: var(--f-ui); color: var(--ink); }
.rd #vocab-test p { display: block; font-size: inherit; opacity: 1; margin: 0; }
.rd #vocab-test ul li::before { display: none; }
.rd #vocab-test .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--f-ui); border-radius: 999px; padding: 16px 24px; margin: 0; width: auto; min-width: 0; height: auto; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: none; white-space: nowrap; }
.rd #vocab-test .button:hover { opacity: .85; color: var(--ink); }
.rd #vocab-test .button.black { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #vocab-test .button.black:hover { color: #fff; }
.rd #vocab-test .button:disabled { opacity: .4; cursor: default; }

/* ===== прежние правила ===== */
.rd #vocab-test .vc-lead { font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.rd #vocab-test .vc-screen { width: 100%; }
.rd #vocab-test .vc-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.rd #vocab-test .vc-facts li { flex: 1 1 0; min-width: 80px; border: 0; background: var(--tile); border-radius: 16px; padding: 12px 8px; text-align: center; }
.rd #vocab-test .vc-facts b { display: block; font-family: var(--f-ui); font-weight: 600; font-size: 20px; line-height: 1; }
.rd #vocab-test .vc-facts span { display: block; font-size: 13px; color: var(--mute); margin-top: 6px; }
.rd #vocab-test .vc-privacy { font-size: 14px; line-height: 1.5; background: var(--good-soft); border: 1px solid var(--good-soft); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.rd #vocab-test .vc-last { font-size: 14px; line-height: 1.5; background: var(--accent-soft); border: 1px solid var(--accent-mid); border-radius: 14px; padding: 9px 12px; margin: 0 0 12px; }
.rd #vocab-test .vc-modes { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.rd #vocab-test .vc-modes .button { flex: 1 1 180px; margin: 0; font-size: 16px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rd #vocab-test .vc-modes .button small { font-size: 12px; color: var(--mute); font-weight: 400; }
.rd #vocab-test .vc-disclaimer { font-size: 13px; line-height: 1.5; color: var(--mute); margin: 8px 0 0; }
.rd #vocab-test .vc-instr { font-size: 15px; line-height: 1.5; background: var(--tile); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.rd #vocab-test .vc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rd #vocab-test .vc-cell { display: inline-flex; align-items: center; gap: 4px; }
.rd #vocab-test .vc-chip { font-family: inherit; font-size: 16px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; transition: all .12s; }
.rd #vocab-test .vc-chip:hover { border-color: var(--ink); }
.rd #vocab-test .vc-chip.is-known { background: var(--ink); color: #fff; border-color: var(--ink); }
.rd #vocab-test .vc-chip.is-revealed { opacity: .5; text-decoration: line-through; cursor: default; }
.rd #vocab-test .vc-q { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--mute); font-size: 14px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.rd #vocab-test .vc-q:hover { border-color: var(--good); color: var(--good); }
.rd #vocab-test .vc-say-t { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 13px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.rd #vocab-test .vc-say-t:hover { border-color: var(--good); }
.rd #vocab-test .vc-cell.is-revealed .vc-tip { font-size: 14px; color: var(--good); white-space: nowrap; }
.rd #vocab-test .vc-bottom { position: sticky; bottom: 0; background: #fff; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 4px; margin-top: 14px; border-top: 1px solid var(--line); }
.rd #vocab-test .vc-counter { font-size: 15px; color: var(--mute); }
.rd #vocab-test #vc-finish { margin: 0 0 0 auto; }
.rd #vocab-test .vc-vhead { margin-bottom: 14px; }
.rd #vocab-test .vc-vstep { font-size: 14px; color: var(--mute); }
.rd #vocab-test .vc-vprog { height: 6px; background: var(--line); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.rd #vocab-test .vc-vprog__fill { height: 100%; background: var(--good); transition: width .2s; }
.rd #vocab-test .vc-vq { font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
.rd #vocab-test .vc-vq b { font-family: var(--f-ui); font-weight: 600; }
.rd #vocab-test .vc-vopts { display: flex; flex-direction: column; gap: 8px; }
.rd #vocab-test .vc-vopt { margin: 0; text-align: left; justify-content: flex-start; font-size: 15px; padding: 12px 14px; }
.rd #vocab-test .vc-vskip { text-align: center; margin: 12px 0 0; }
.rd #vocab-test .vc-link { background: none; border: none; padding: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.rd #vocab-test .vc-link:hover { color: var(--accent); }
.rd #vocab-test .vc-score { text-align: center; border: 0; background: var(--tile); border-radius: 16px; padding: 20px 14px; margin-bottom: 14px; }
.rd #vocab-test .vc-score--bad { border-color: var(--bad); }
.rd #vocab-test .vc-score__num { font-family: var(--f-ui); font-weight: 600; font-size: 50px; line-height: 1; }
.rd #vocab-test .vc-score__unit { font-size: 14px; color: var(--mute); margin-top: 6px; }
.rd #vocab-test .vc-score__band { font-family: var(--f-ui); font-weight: 600; font-size: 16px; margin-top: 8px; }
.rd #vocab-test .vc-delta { font-size: 15px; background: var(--tile); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; text-align: center; }
.rd #vocab-test .vc-delta--up b { color: var(--good); }
.rd #vocab-test .vc-delta--down b { color: var(--bad); }
.rd #vocab-test .vc-spark-wrap { margin: 8px 0 2px; }
.rd #vocab-test .vc-spark { display: block; }
.rd #vocab-test .vc-spark-cap { font-size: 10px; opacity: .5; }
.rd #vocab-test .vc-band-note { font-size: 16px; line-height: 1.55; background: var(--tile); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.rd #vocab-test .vc-solid { font-size: 15px; line-height: 1.5; background: var(--good-soft); border: 1px solid var(--good-soft); border-radius: 14px; padding: 9px 12px; margin: 0 0 12px; }
.rd #vocab-test .vc-note { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 0 10px; }
.rd #vocab-test .vc-note--warn { background: #F6E9CF; border: 1px solid #F6E9CF; border-radius: 8px; padding: 8px 10px; opacity: 1; }
.rd #vocab-test .vc-h3 { font-family: var(--f-ui); font-weight: 600; font-size: 15px; margin: 0 0 12px; }
.rd #vocab-test .vc-bench { margin-bottom: 16px; }
.rd #vocab-test .vc-bench__track { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--good-soft), var(--good)); margin: 22px 0 6px; }
.rd #vocab-test .vc-bench__you { position: absolute; top: -7px; width: 3px; height: 24px; background: var(--ink); transform: translateX(-50%); }
.rd #vocab-test .vc-bench__you::after { content: '▲'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 13px; }
.rd #vocab-test .vc-bench__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); text-align: center; }
.rd #vocab-test .vc-profile { margin-bottom: 16px; }
.rd #vocab-test .vc-profile__bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; border-bottom: 1px solid var(--line); }
.rd #vocab-test .vc-pb { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.rd #vocab-test .vc-pb__fill { width: 100%; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.rd #vocab-test .vc-pb__lbl { font-size: 11px; color: var(--mute); margin-top: 3px; }
.rd #vocab-test .vc-profile__hint { font-size: 13px; color: var(--mute); margin: 8px 0 0; }
.rd #vocab-test .vc-exam-cta { border: 0; background: var(--tile); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.rd #vocab-test .vc-exam-cta p { font-size: 15px; line-height: 1.5; margin: 0; }
.rd #vocab-test .vc-exam-cta a, .rd #vocab-test .vc-band-note a { color: var(--ink); }
.rd #vocab-test .vc-scale-note { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 0 14px; }
.rd #vocab-test .vc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.rd #vocab-test .vc-actions .button { flex: 1 1 140px; margin: 0; }
.rd #vocab-test .vc-review { border-top: 1px solid var(--line); padding-top: 10px; }
.rd #vocab-test .vc-rhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.rd #vocab-test .vc-rexport { font-size: 14px; }
.rd #vocab-test .vc-words { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rd #vocab-test .vc-word { font-size: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.rd #vocab-test .vc-word b { font-weight: 700; }
.rd #vocab-test .vc-word--fake { border-color: var(--bad-soft); background: var(--bad-soft); }
.rd #vocab-test .vc-say { background: none; border: none; padding: 0; cursor: pointer; font-size: 15px; opacity: .7; }
.rd #vocab-test .vc-say:hover { opacity: 1; }
@media (max-width: 560px) {
    .rd #vocab-test .vc-score__num { font-size: 42px; }
    .rd #vocab-test .vc-chip { font-size: 15px; padding: 8px 12px; }
}
@media (max-width: 460px) {
    .rd #vocab-test .vc-facts li { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 11px 6px; }
    .rd #vocab-test .vc-facts b { font-size: 18px; }
}

/* ===== новый вид: интро ===== */
.rd #vocab-test .vc-lead { font: 400 17px/1.6 var(--f-text); margin: 0 0 24px; max-width: 760px; }
.rd #vocab-test .vc-lead b { font-weight: 600; }
.rd #vocab-test .vc-facts { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 24px; }
.rd #vocab-test .vc-facts li { flex: 1 1 0; min-width: 0; background: var(--tile); border: 0; border-radius: 20px; padding: 20px 16px; margin: 0; text-align: left; }
.rd #vocab-test .vc-facts b { font: 700 32px/1 var(--f-ui); letter-spacing: -1px; white-space: nowrap; }
.rd #vocab-test .vc-facts span { font: 400 13px/1.3 var(--f-ui); color: var(--mute); margin-top: 8px; }
.rd #vocab-test .vc-privacy { font: 400 14px/1.5 var(--f-ui); background: var(--good-soft); border: 0; border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; }
.rd #vocab-test .vc-last { font: 400 14px/1.5 var(--f-ui); background: var(--accent-soft); border: 0; border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; }
.rd #vocab-test .vc-disclaimer { font: 400 13px/1.5 var(--f-ui); color: var(--mute); margin: 16px 0 0; }
.rd #vocab-test .vc-disclaimer a { color: var(--accent); }
.rd #vocab-test .button--gray { background: #fff; border-color: var(--line); }
.rd #vocab-test .button--gray:hover { border-color: var(--accent-mid); opacity: 1; }
.rd #vocab-test .vc-h3 { font: 600 24px/1.2 var(--f-ui); letter-spacing: -.4px; margin: 8px 0 16px; }

/* ===== статья: таблицы оформляет rd.css, здесь только прокрутка ===== */
.rd .rd-article__body .table-scroll { overflow-x: auto; margin: 0 0 16px; }
.rd .rd-article__body .table-scroll table { margin: 0; }

@media (max-width: 639px) {
    .rd #vocab-test .vc-lead { font-size: 16px; }
    .rd #vocab-test .vc-facts li { flex: 1 1 calc(50% - 6px); padding: 16px 14px; }
    .rd #vocab-test .vc-facts b { font-size: 28px; }
    .rd #vocab-test .vc-h3 { font-size: 20px; }
}

/* ===== словарный запас: старт ===== */
.rd #vocab-test .vc-modes { gap: 12px; margin: 0 0 16px; }
.rd #vocab-test .vc-modes .button { flex: 1 1 180px; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; font: 600 17px/1.2 var(--f-ui); white-space: normal; }
.rd #vocab-test .vc-modes .button--gray { background: #fff; border-color: var(--line); }
.rd #vocab-test .vc-modes .button--gray:hover { border-color: var(--accent-mid); opacity: 1; }
.rd #vocab-test .vc-modes .button small { font: 400 13px/1.3 var(--f-ui); opacity: 1; color: var(--mute); }
.rd #vocab-test .vc-modes .button.black small { color: rgba(255, 255, 255, .75); }

/* ===== отметка слов ===== */
.rd #vocab-test .vc-instr { font: 400 15px/1.55 var(--f-ui); background: var(--tile); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.rd #vocab-test .vc-chip { font: 500 16px/1 var(--f-ui); padding: 12px 18px; border-color: var(--line); }
.rd #vocab-test .vc-chip:hover { border-color: var(--accent-mid); }
.rd #vocab-test .vc-chip.is-known:hover { border-color: var(--ink); }
.rd #vocab-test .vc-q, .rd #vocab-test .vc-say-t { width: 28px; height: 28px; border-color: var(--line); }
.rd #vocab-test .vc-q:hover, .rd #vocab-test .vc-say-t:hover { border-color: var(--accent-mid); color: var(--accent); }
.rd #vocab-test .vc-bottom { background: var(--card); border-top-color: var(--line); padding: 16px 0 8px; margin-top: 16px; }
.rd #vocab-test .vc-counter { font: 500 15px/1.3 var(--f-ui); color: var(--ink); }

/* ===== проверка и результат ===== */
.rd #vocab-test .vc-vprog { height: 8px; background: #fff; }
.rd #vocab-test .vc-vprog__fill { background: var(--accent); }
.rd #vocab-test .vc-vq { font: 400 17px/1.5 var(--f-ui); }
.rd #vocab-test .vc-vq b { font-weight: 600; }
.rd #vocab-test .vc-vopts { gap: 8px; background: var(--tile); border-radius: 20px; padding: 8px; }
.rd #vocab-test .vc-vopt { min-height: 52px; justify-content: flex-start; padding: 14px 18px; background: #fff; border-radius: 14px; font-size: 16px; white-space: normal; text-align: left; }
.rd #vocab-test .vc-vopt:hover { border-color: var(--accent-mid); }
.rd #vocab-test .vc-link { color: var(--accent); font-size: 14px; }
.rd #vocab-test .vc-link:hover { color: var(--ink); }
.rd #vocab-test .vc-score { background: var(--tile); border: 0; border-radius: 20px; padding: 28px; }
.rd #vocab-test .vc-score--bad { background: var(--bad-soft); }
.rd #vocab-test .vc-score__num { font: 700 56px/1 var(--f-mono); letter-spacing: -1px; }
.rd #vocab-test .vc-score__band { font: 600 20px/1.3 var(--f-ui); }
.rd #vocab-test .vc-delta, .rd #vocab-test .vc-band-note { font: 400 15px/1.55 var(--f-ui); background: var(--tile); border-radius: 16px; padding: 14px 16px; }
.rd #vocab-test .vc-solid { font: 400 14px/1.5 var(--f-ui); background: var(--good-soft); border: 0; border-radius: 14px; padding: 12px 16px; }
.rd #vocab-test .vc-note--warn { background: #F6E9CF; border: 0; border-radius: 14px; padding: 12px 16px; color: var(--ink); }
.rd #vocab-test .vc-bench__track { background: linear-gradient(90deg, var(--good-soft), var(--good)); }
.rd #vocab-test .vc-exam-cta { background: var(--accent-soft); border: 0; border-radius: 20px; padding: 20px; }
.rd #vocab-test .vc-exam-cta p { font: 400 15px/1.5 var(--f-ui); }
.rd #vocab-test .vc-exam-cta a, .rd #vocab-test .vc-band-note a { color: var(--accent); }
.rd #vocab-test .vc-actions { gap: 10px; }
.rd #vocab-test .vc-actions .button { padding: 14px 22px; }
.rd #vocab-test .vc-review { border-top-color: var(--line); padding-top: 16px; }
.rd #vocab-test .vc-word { background: #fff; border-color: var(--line); border-radius: 10px; font-size: 15px; }
.rd #vocab-test .vc-word--fake { background: var(--bad-soft); border-color: var(--bad-soft); }

@media (max-width: 639px) {
    .rd #vocab-test .vc-modes .button { flex: 1 1 100%; }
    .rd #vocab-test .vc-score { padding: 20px; }
    .rd #vocab-test .vc-score__num { font-size: 44px; }
    .rd #vocab-test .vc-chip { font-size: 15px; padding: 8px 12px; }
    .rd #vocab-test .vc-actions .button { flex: 1 1 100%; white-space: normal; }
}
