/* test-na-uroven-angliyskogo: языковая страница на шаблоне rd. Прежние стили страницы переведены в токены rd.css, ниже слой нового вида */
.rd #en-test { font-family: var(--f-ui); color: var(--ink); }
.rd #en-test p { display: block; font-size: inherit; opacity: 1; margin: 0; }
.rd #en-test ul li::before { display: none; }
.rd #en-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 #en-test .button:hover { opacity: .85; color: var(--ink); }
.rd #en-test .button.black { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #en-test .button.black:hover { color: #fff; }
.rd #en-test .button:disabled { opacity: .4; cursor: default; }

/* ===== прежние правила ===== */
.rd #en-test .en-lead { font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.rd #en-test .en-screen { width: 100%; }
.rd #en-test .en-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.rd #en-test .en-facts li { flex: 1 1 0; min-width: 80px; border: 0; background: var(--tile); border-radius: 16px; padding: 12px 8px; text-align: center; }
.rd #en-test .en-facts b { display: block; font-family: var(--f-ui); font-weight: 600; font-size: 20px; line-height: 1; }
.rd #en-test .en-facts span { display: block; font-size: 13px; color: var(--mute); margin-top: 6px; }
.rd #en-test .en-resume { border: 0; background: var(--accent-soft); border-radius: 16px; padding: 12px; margin: 0 0 16px; text-align: center; }
.rd #en-test .en-resume p { margin: 0 0 8px; font-size: 15px; }
.rd #en-test .en-timed-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; }
.rd #en-test .en-timed { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; margin: 0; }
.rd #en-test .en-timed input { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; margin: 0; padding: 0; border: 0; min-height: 0; opacity: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
.rd #en-test .en-timed .slider { position: absolute; inset: 0; background: var(--line); border-radius: 26px; transition: background .2s; }
.rd #en-test .en-timed .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .2s; }
.rd #en-test .en-timed input:checked + .slider { background: var(--good); }
.rd #en-test .en-timed input:checked + .slider::before { transform: translateX(20px); }
.rd #en-test .en-timed__label { font-size: 15px; margin: 0; cursor: pointer; }
.rd #en-test .en-start-wrap { margin: 16px 0 8px; }
.rd #en-test #en-start { width: 100%; font-size: 16px; padding: 16px; }
.rd #en-test .en-disclaimer { font-size: 13px; line-height: 1.5; color: var(--mute); margin: 8px 0 0; }
.rd #en-test .en-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: 12px 0 0; }
.rd #en-test .en-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rd #en-test .en-qnum { font-family: var(--f-ui); font-weight: 600; font-size: 16px; }
.rd #en-test .en-timer { font-family: var(--f-ui); font-weight: 600; font-size: 15px; padding: 4px 10px; border: 0; background: var(--tile); border-radius: 14px; }
.rd #en-test .en-timer.is-low { background: var(--ink); color: #fff; }
.rd #en-test .en-prog { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rd #en-test .en-prog__fill { height: 100%; width: 0; background: var(--ink); transition: width .3s; }
.rd #en-test .en-prog-txt { font-size: 13px; color: var(--mute); margin: 6px 0 12px; }
.rd #en-test .en-card { border: 1px solid var(--ink); border-radius: 14px; padding: 18px 16px; margin-bottom: 12px; }
.rd #en-test .en-qtag { display: inline-block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.rd #en-test .en-qtext { font-size: 18px; line-height: 1.5; font-weight: 600; margin-bottom: 16px; }
.rd #en-test .en-opts { display: flex; flex-direction: column; gap: 8px; }
.rd #en-test .en-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; font-family: inherit; font-size: 16px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; min-height: 50px; }
.rd #en-test .en-opt:hover { border-color: var(--ink); }
.rd #en-test .en-opt.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.rd #en-test .en-opts.is-locked { opacity: .5; pointer-events: none; }
.rd #en-test .en-listen-play { display: flex; gap: 8px; margin-bottom: 14px; }
.rd #en-test #en-play { flex: 1 1 auto; padding: 14px; font-size: 16px; }
.rd #en-test .en-lhint { font-size: 14px; color: var(--mute); line-height: 1.5; margin: 8px 0 0; }
.rd #en-test .en-listen-score { display: flex; align-items: center; gap: 10px; border: 0; background: var(--tile); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-size: 16px; }
.rd #en-test .en-listen-score b { font-family: var(--f-ui); font-weight: 600; font-size: 18px; }
.rd #en-test .en-listen-score i { color: var(--mute); font-style: normal; margin-left: auto; font-size: 14px; }
.rd #en-test .en-study { background: var(--tile); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.rd #en-test .en-study p { font-size: 16px; line-height: 1.55; margin: 0; }
.rd #en-test .en-exam-cta { border: 0; background: var(--tile); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.rd #en-test .en-exam-cta p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.rd #en-test .en-exam-cta__links { display: flex; gap: 8px; flex-wrap: wrap; }
.rd #en-test .en-exam-cta__links .button { flex: 1 1 200px; margin: 0; text-align: center; }
.rd #en-test .en-rev__tr { font-style: italic; opacity: .8; }
.rd #en-test .en-actions { flex-wrap: wrap; }
.rd #en-test .en-actions .button { flex: 1 1 140px; }
.rd #en-test .en-nav { display: flex; gap: 8px; }
.rd #en-test .en-nav .button { flex: 1 1 0; margin: 0; }
.rd #en-test .en-score { text-align: center; border: 0; background: var(--tile); border-radius: 16px; padding: 22px 14px; margin-bottom: 14px; }
.rd #en-test .en-score__num { font-family: var(--f-ui); font-weight: 600; font-size: 60px; line-height: 1; }
.rd #en-test .en-score__band { font-family: var(--f-ui); font-weight: 600; font-size: 16px; margin-top: 8px; }
.rd #en-test .en-score__range { font-size: 15px; color: var(--mute); margin-top: 8px; }
.rd #en-test .en-band-note { font-size: 16px; line-height: 1.55; background: var(--tile); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.rd #en-test .en-h3 { font-family: var(--f-ui); font-weight: 600; font-size: 15px; margin: 0 0 12px; }
.rd #en-test .en-equiv { margin-bottom: 16px; }
.rd #en-test .en-equiv__grid { display: flex; gap: 8px; }
.rd #en-test .en-equiv__cell { flex: 1 1 0; border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; }
.rd #en-test .en-equiv__cell span { display: block; font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.rd #en-test .en-equiv__cell b { font-family: var(--f-ui); font-weight: 600; font-size: 16px; }
.rd #en-test .en-equiv__note { font-size: 14px; color: var(--mute); line-height: 1.5; margin: 10px 0 0; }
.rd #en-test .en-equiv__note a { color: var(--ink); }
.rd #en-test .en-profile { margin-bottom: 16px; }
.rd #en-test .en-bar { margin-bottom: 10px; }
.rd #en-test .en-bar__top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; }
.rd #en-test .en-bar__vs { color: var(--mute); }
.rd #en-test .en-bar__track { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.rd #en-test .en-bar__fill { height: 100%; background: var(--ink); border-radius: 6px; }
.rd #en-test .en-bar--now .en-bar__fill { background: var(--good); }
.rd #en-test .en-bar--now .en-bar__top { font-weight: 700; }
.rd #en-test .en-profile__hint { font-size: 13px; color: var(--mute); margin: 8px 0 0; }
.rd #en-test .en-scale-note { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 0 16px; }
.rd #en-test .en-actions { display: flex; gap: 8px; margin: 8px 0 16px; }
.rd #en-test .en-actions .button { flex: 1 1 0; margin: 0; }
.rd #en-test .en-review { border-top: 1px solid var(--line); padding-top: 12px; }
.rd #en-test .en-rev { border-left: 3px solid var(--line); padding: 8px 0 8px 12px; margin-bottom: 12px; }
.rd #en-test .en-rev.is-ok { border-color: var(--good); }
.rd #en-test .en-rev.is-no { border-color: var(--bad); }
.rd #en-test .en-rev__head { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.rd #en-test .en-rev__badge { font-weight: 700; }
.rd #en-test .en-rev.is-ok .en-rev__badge { color: var(--good); }
.rd #en-test .en-rev.is-no .en-rev__badge { color: var(--bad); }
.rd #en-test .en-rev__row { font-size: 15px; margin-bottom: 3px; }
.rd #en-test .en-rev__expl { font-size: 14px; color: var(--mute); line-height: 1.5; margin-top: 4px; }
@media (max-width: 560px) {
    .rd #en-test .en-score__num { font-size: 50px; }
    .rd #en-test .en-qtext { font-size: 16px; }
    .rd #en-test .en-opt { font-size: 15px; }
    .rd #en-test .en-equiv__cell b { font-size: 16px; }
}

/* ===== новый вид: интро ===== */
.rd #en-test .en-lead { font: 400 17px/1.6 var(--f-text); margin: 0 0 24px; max-width: 760px; }
.rd #en-test .en-lead b { font-weight: 600; }
.rd #en-test .en-facts { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 24px; }
.rd #en-test .en-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 #en-test .en-facts b { font: 700 32px/1 var(--f-ui); letter-spacing: -1px; white-space: nowrap; }
.rd #en-test .en-facts span { font: 400 13px/1.3 var(--f-ui); color: var(--mute); margin-top: 8px; }
.rd #en-test .en-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 #en-test .en-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 #en-test .en-disclaimer { font: 400 13px/1.5 var(--f-ui); color: var(--mute); margin: 16px 0 0; }
.rd #en-test .en-disclaimer a { color: var(--accent); }
.rd #en-test .button--gray { background: #fff; border-color: var(--line); }
.rd #en-test .button--gray:hover { border-color: var(--accent-mid); opacity: 1; }
.rd #en-test .en-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 #en-test .en-lead { font-size: 16px; }
    .rd #en-test .en-facts li { flex: 1 1 calc(50% - 6px); padding: 16px 14px; }
    .rd #en-test .en-facts b { font-size: 28px; }
    .rd #en-test .en-h3 { font-size: 20px; }
}

/* ===== тест: старт ===== */
.rd #en-test .en-resume { align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); border: 0; border-radius: 20px; padding: 16px 20px; margin: 0 0 16px; }
.rd #en-test .en-resume:not([style*="none"]) { display: flex; }
.rd #en-test .en-resume p { font: 400 15px/1.4 var(--f-ui); margin: 0; }
.rd #en-test .en-resume .button { flex: none; padding: 14px 22px; }
.rd #en-test .en-start-wrap { margin: 0; }
.rd #en-test #en-start { width: 100%; height: 60px; font-size: 17px; border-radius: 999px; }

/* ===== тест: экран вопроса ===== */
.rd #en-test .en-topbar { gap: 12px; margin: 0 0 12px; }
.rd #en-test .en-qnum { font: 600 15px/1.3 var(--f-mono); }
.rd #en-test .en-prog { height: 8px; border-radius: 4px; background: #fff; margin: 0 0 8px; }
.rd #en-test .en-prog__fill { background: var(--accent); border-radius: 4px; }
.rd #en-test .en-card { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 16px 0 0; }
.rd #en-test .en-qtext { font: 600 24px/1.3 var(--f-ui); letter-spacing: -.3px; margin: 0 0 20px; }
.rd #en-test .en-opts { gap: 8px; background: var(--tile); border-radius: 20px; padding: 8px; margin: 0; }
.rd #en-test .en-opt { min-height: 56px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font: 500 16px/1.35 var(--f-ui); color: var(--ink); text-align: left; }
.rd #en-test .en-opt:hover { border-color: var(--accent-mid); }
.rd #en-test .en-nav { gap: 12px; margin: 20px 0 0; }
.rd #en-test .en-nav .button { padding: 16px 22px; }

/* ===== тест: результат ===== */
.rd #en-test .en-score { background: var(--tile); border: 0; border-radius: 20px; padding: 28px; margin: 0 0 16px; }
.rd #en-test .en-score__num { font: 700 56px/1 var(--f-mono); letter-spacing: -1px; }
.rd #en-test .en-score__band { font: 600 20px/1.3 var(--f-ui); }
.rd #en-test .en-band-note { font: 400 15px/1.55 var(--f-text); background: var(--tile); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.rd #en-test .en-actions { gap: 10px; }
.rd #en-test .en-actions .button { padding: 14px 22px; }
.rd #en-test .en-review { border-top: 1px solid var(--line); }
.rd #en-test .en-rev { background: var(--tile); border-left-width: 4px; border-radius: 0 14px 14px 0; padding: 12px 16px; }
.rd #en-test .en-rev__expl { font: 400 14px/1.55 var(--f-text); }

@media (max-width: 639px) {
    .rd #en-test #en-start { height: auto; min-height: 60px; padding: 16px 20px; white-space: normal; line-height: 1.3; }
    .rd #en-test .en-resume:not([style*="none"]) { flex-direction: column; align-items: stretch; }
    .rd #en-test .en-qtext { font-size: 20px; }
    .rd #en-test .en-opt { min-height: 52px; padding: 14px 16px; }
    .rd #en-test .en-nav .button { padding: 14px 12px; white-space: normal; }
    .rd #en-test .en-score { padding: 20px; }
    .rd #en-test .en-score__num { font-size: 44px; }
    .rd #en-test .en-actions { flex-wrap: wrap; }
    .rd #en-test .en-actions .button { flex: 1 1 100%; white-space: normal; }
}

/* ===== уровень английского: тумблер таймера как в rd ===== */
.rd #en-test .en-timed-row { gap: 12px; margin: 0 0 16px; }
.rd #en-test .en-timed { width: 44px; height: 26px; }
.rd #en-test .en-timed .slider { background: var(--pill); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; }
.rd #en-test .en-timed .slider::before { box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.rd #en-test .en-timed input:checked + .slider { background: var(--accent); box-shadow: none; }
.rd #en-test .en-timed input:checked + .slider::before { transform: translateX(18px); }
.rd #en-test .en-timed input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd #en-test .en-timed__label { font: 400 15px/1.4 var(--f-ui); }
.rd #en-test .en-timer { font: 600 15px/1 var(--f-mono); background: #fff; border: 0; border-radius: 999px; padding: 8px 14px; }
.rd #en-test .en-timer.is-low { background: var(--bad-soft); color: var(--bad); border: 0; }
.rd #en-test .en-prog-txt { font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #en-test .en-qtag { font: 600 12px/1.3 var(--f-ui); letter-spacing: .06em; color: var(--mute); }
.rd #en-test .en-opt.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #en-test .en-listen-score, .rd #en-test .en-study { background: var(--tile); border: 0; border-radius: 16px; }
.rd #en-test .en-exam-cta { background: var(--accent-soft); border: 0; border-radius: 20px; padding: 20px; }
.rd #en-test .en-equiv__cell { background: #fff; border: 0; border-radius: 14px; }
.rd #en-test .en-bar__track { height: 8px; border-radius: 4px; background: #fff; }
.rd #en-test .en-bar__fill { border-radius: 4px; }
.rd #en-test .en-score__range { color: var(--mute); }
