.rf77-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:28px 0}
.rf77-card{border:1px solid #e2e6ed;padding:22px;background:#fff}.rf77-cat,.rf77-preview small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#657084}
.rf77-card h3{font-size:22px;line-height:1.3;margin:10px 0}.rf77-card h3 a{color:#172033;text-decoration:none}
.rf77-preview{border-top:1px solid #e8ebf0;margin-top:16px;padding-top:12px}.rf77-link{display:inline-block;margin-top:10px;color:#0052b4;font-weight:600;text-decoration:none}
.rf77-test{max-width:820px;margin:36px auto;padding:28px;border:1px solid #e2e6ed;background:#fff;color:#172033}
.rf77-test-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:.08em;color:#657084}
.rf77-progress{height:3px;background:#e9edf3;margin:16px 0 28px}.rf77-progress i{display:block;height:100%;width:0;background:#0052b4;transition:width .2s}
.rf77-question{display:none}.rf77-question.active{display:block}.rf77-question>small{font-size:11px;letter-spacing:.08em;color:#0052b4}
.rf77-question h2{font-size:clamp(22px,3vw,30px);line-height:1.3;margin:12px 0 20px}
.rf77-hint{font-size:14px;color:#657084}.rf77-answers{display:grid;gap:10px}
.rf77-answers label{display:flex;gap:12px;align-items:flex-start;border:1px solid #dfe4eb;padding:14px;cursor:pointer;line-height:1.45}
.rf77-answers label:has(input:checked){border-color:#0052b4;background:#f5f8fd}.rf77-answers input{margin-top:4px;accent-color:#0052b4}
.rf77-controls{display:flex;justify-content:space-between;gap:12px;margin-top:26px}
.rf77-controls button,.rf77-restart{border:1px solid #0052b4;background:#fff;color:#0052b4;padding:11px 20px;cursor:pointer;font:inherit}
.rf77-controls .rf77-next,.rf77-controls .rf77-submit{background:#0052b4;color:#fff}.rf77-controls button:disabled{opacity:.45}
.rf77-score{display:flex;align-items:baseline;gap:16px;color:#0052b4}.rf77-score strong{font-size:32px}
.rf77-feedback{border-top:1px solid #e2e6ed;padding:16px 0}.rf77-feedback h3{font-size:18px;line-height:1.4}
.rf77-feedback-opt{padding:10px 12px;margin:8px 0;background:#f8f9fb;border-left:3px solid #d8dee8}
.rf77-feedback-opt.good{border-color:#23834b}.rf77-feedback-opt.bad{border-color:#c43d48}
.rf77-feedback-opt p{font-size:17px;line-height:1.6;color:#485366;margin:8px 0 0}
.rf77-empty{padding:18px;border:1px solid #e2e6ed;color:#657084}
@media(max-width:700px){.rf77-catalog{grid-template-columns:1fr}.rf77-test{padding:20px 16px}.rf77-controls button{padding:10px 14px}}

/* Исправления отображения: скрываем элементы управления после завершения */
.rf77-test [hidden] { display: none !important; }

/* Для тестов не нужны метаданные обычной записи блога */
.single-rf77_test .wp-block-post-date,
.single-rf77_test .wp-block-post-author,
.single-rf77_test .wp-block-post-author-name,
.single-rf77_test .wp-block-post-terms,
.single-rf77_test .wp-block-post-author-biography,
.single-rf77_test .wp-block-post-comments-link {
    display: none !important;
}


/* 77RF: отдельный шаблон для тестов и каталога */
.rf77-site-shell {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    color: #172033;
}
.rf77-site-header {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #e8ebf0;
}
.rf77-site-brand {
    color: #172033;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}
.rf77-site-brand span { color: #0052b4; }
.rf77-all-tests {
    color: #0052b4;
    text-decoration: none;
    font-size: 14px;
}
.rf77-single {
    width: min(820px, 100%);
    margin: 90px auto 110px;
}
.rf77-kicker {
    color: #0052b4;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 600;
}
.rf77-single h1, .rf77-archive-intro h1 {
    color: #172033;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 400;
    margin: 18px 0 22px;
}
.rf77-intro, .rf77-archive-intro p {
    color: #566174;
    font-size: 18px;
    line-height: 1.6;
    max-width: 680px;
}
.rf77-test-description { margin-top: 28px; }
.rf77-single .rf77-test { margin: 34px 0 0; max-width: none; }
.rf77-archive-intro { padding: 76px 0 30px; }
.rf77-archive-intro p { margin-top: 0; }
.rf77-archive-shell .rf77-catalog { margin: 20px 0 90px; }
.rf77-site-footer {
    border-top: 1px solid #e8ebf0;
    padding: 24px 0 34px;
    display: flex;
    justify-content: space-between;
    color: #7b8493;
    font-size: 13px;
}
.rf77-site-footer a { color: #0052b4; text-decoration: none; }
@media (max-width: 700px) {
    .rf77-site-shell { width: calc(100% - 36px); }
    .rf77-site-header { min-height: 68px; }
    .rf77-site-brand { font-size: 14px; }
    .rf77-single { margin: 54px auto 72px; }
    .rf77-single h1, .rf77-archive-intro h1 { font-size: 38px; }
    .rf77-archive-intro { padding: 52px 0 20px; }
    .rf77-site-footer { gap: 12px; flex-wrap: wrap; }
}


/* Результат теста: только количество правильных и неправильных ответов */
.rf77-result-summary{margin:10px 0 24px;color:#566174;line-height:1.6}
.rf77-share{display:inline-block;margin:8px 12px 8px 0;padding:11px 22px;border:1px solid #0052b4;background:#0052b4;color:#fff;cursor:pointer;font:inherit}
.rf77-share-links{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 22px}
.rf77-share-links a,.rf77-share-links button{display:inline-block;padding:9px 14px;border:1px solid #dfe4eb;background:#fff;color:#0052b4;text-decoration:none;cursor:pointer;font:inherit}
.rf77-restart{display:inline-block;margin-top:8px}
.rf77-question[hidden],.rf77-share-links[hidden]{display:none!important}
@media(max-width:700px){.rf77-share-links{gap:8px}.rf77-share-links a,.rf77-share-links button{padding:9px 11px}}

/* Версия 1.4.0: заметный счётчик вопросов и более читаемые пояснения */
.rf77-question-counter{display:flex;align-items:center;gap:14px;letter-spacing:normal;text-transform:none;font-size:14px;color:#172033}
.rf77-question-counter b{font-size:16px;font-weight:600;color:#0052b4}
.rf77-question-counter .rf77-remaining-count{font-size:14px;color:#657084}
.rf77-progress{height:5px;border-radius:5px;overflow:hidden}
.rf77-progress i{border-radius:5px}
.rf77-feedback-opt p{font-size:17px;line-height:1.65}
@media(max-width:700px){.rf77-test-meta{align-items:flex-start;flex-direction:column;gap:8px}.rf77-question-counter{flex-wrap:wrap;gap:8px 12px}.rf77-feedback-opt p{font-size:16px}}

/* Пояснение после ответа на каждый вопрос */
.rf77-answer-feedback{margin-top:18px;padding:16px 18px;background:#f5f8fc;border:1px solid #dbe5f1;border-radius:8px}
.rf77-answer-feedback[hidden]{display:none!important}
.rf77-answer-feedback h3{font-size:19px;line-height:1.4;margin:10px 0 6px;color:#172033}
.rf77-answer-feedback p{font-size:17px;line-height:1.65;color:#354155;margin:8px 0}
.rf77-feedback-status{display:inline-block;font-size:15px;font-weight:600}
.rf77-feedback-status.good{color:#197044}
.rf77-feedback-status.bad{color:#a52c37}
@media(max-width:700px){.rf77-answer-feedback{padding:14px}.rf77-answer-feedback h3{font-size:18px}.rf77-answer-feedback p{font-size:16px;line-height:1.6}}

/* Версия 1.5.0: абзацы и социальное распространение */
.rf77-question h2{font-size:24px;line-height:1.65;font-weight:600}
.rf77-question h2 p{margin:0 0 14px}
.rf77-answer-feedback p{font-size:18px;line-height:1.7;margin:12px 0}
.rf77-share-heading{margin:26px 0 12px;font-size:20px}
.rf77-share-links{display:flex;flex-wrap:wrap;gap:10px}
.rf77-share-links a,.rf77-share-links button{border-radius:5px;padding:11px 16px;font-size:15px}
@media(max-width:700px){.rf77-question h2{font-size:21px}.rf77-answer-feedback p{font-size:17px}}


/* Версия 1.5.4: крупный и удобочитаемый блок комментария, в том числе на телефоне */
.rf77-test .rf77-answer-feedback {
    padding: 24px 26px;
    margin-top: 22px;
}
.rf77-test .rf77-answer-feedback .rf77-feedback-status {
    font-size: 17px;
    line-height: 1.5;
}
.rf77-test .rf77-answer-feedback h3 {
    font-size: 23px;
    line-height: 1.4;
    margin: 14px 0 12px;
    font-weight: 600;
}
.rf77-test .rf77-answer-feedback p {
    font-size: 20px;
    line-height: 1.75;
    margin: 0 0 18px;
    color: #26364d;
}
.rf77-test .rf77-answer-feedback p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
    .rf77-test .rf77-answer-feedback { padding: 20px 18px; }
    .rf77-test .rf77-answer-feedback .rf77-feedback-status { font-size: 17px; }
    .rf77-test .rf77-answer-feedback h3 { font-size: 22px; }
    .rf77-test .rf77-answer-feedback p {
        font-size: 19px;
        line-height: 1.75;
        margin-bottom: 17px;
    }
}


/* Версия 1.5.6: статус ответа по размеру равен заголовку «Комментарий» */
.rf77-test .rf77-answer-feedback .rf77-feedback-status {
    font-size: 23px;
    line-height: 1.4;
    font-weight: 600;
}
@media (max-width: 700px) {
    .rf77-test .rf77-answer-feedback .rf77-feedback-status {
        font-size: 22px;
    }
}


/* Версия 1.5.8: заметный блок распространения теста */
.rf77-test .rf77-share-heading {
    margin: 30px 0 16px;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 600;
    color: #172033;
}
.rf77-test .rf77-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 28px;
}
.rf77-test .rf77-share-links a,
.rf77-test .rf77-share-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid #0052b4;
    border-radius: 6px;
    background: #fff;
    color: #0052b4;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rf77-test .rf77-share-links a:hover,
.rf77-test .rf77-share-links button:hover {
    background: #eaf2ff;
    color: #003f8f;
}
.rf77-test .rf77-share-links .rf77-share-max {
    background: #0052b4;
    color: #fff;
    border-color: #0052b4;
}
.rf77-test .rf77-share-links .rf77-share-max:hover {
    background: #003f8f;
    color: #fff;
}
@media (max-width: 700px) {
    .rf77-test .rf77-share-heading { font-size: 23px; }
    .rf77-test .rf77-share-links { gap: 10px; }
    .rf77-test .rf77-share-links a,
    .rf77-test .rf77-share-links button {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Версия 1.5.9: собственное меню распространения без внешних скриптов */
.rf77-test .rf77-share-menu-wrap { margin: 12px 0 14px; }
.rf77-test .rf77-share-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 54px; padding: 14px 24px; border: 0; border-radius: 6px;
    background: #0052b4; color: #fff; font-size: 18px; line-height: 1.35;
    font-weight: 600; cursor: pointer;
}
.rf77-test .rf77-share-toggle:hover,
.rf77-test .rf77-share-toggle[aria-expanded="true"] { background: #003f8f; color: #fff; }
.rf77-test .rf77-share-menu {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px;
    padding: 16px; border: 1px solid #dbe5f1; border-radius: 8px;
    background: #f7faff;
}
.rf77-test .rf77-share-menu[hidden] { display: none !important; }
.rf77-test .rf77-share-menu a,
.rf77-test .rf77-share-tools button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 11px 17px; border: 1px solid #0052b4;
    border-radius: 6px; background: #fff; color: #0052b4;
    font-size: 16px; line-height: 1.35; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.rf77-test .rf77-share-menu a:hover,
.rf77-test .rf77-share-tools button:hover { background: #eaf2ff; color: #003f8f; }
.rf77-test .rf77-share-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 26px; }
@media (max-width:700px) {
    .rf77-test .rf77-share-toggle { width: 100%; min-height: 52px; font-size: 17px; }
    .rf77-test .rf77-share-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; }
    .rf77-test .rf77-share-menu a { min-height: 48px; padding: 10px 8px; text-align: center; font-size: 15px; }
    .rf77-test .rf77-share-tools { display: grid; grid-template-columns: 1fr; }
    .rf77-test .rf77-share-tools button { width: 100%; }
}

/* Версия 1.6.0: крупные фирменные значки площадок */
.rf77-test .rf77-share-menu .rf77-share-service {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:9px; min-width:126px; min-height:112px; padding:14px 18px;
    border:1px solid #d8e2ef; border-radius:12px; background:#fff;
    color:#172033; text-decoration:none; font-size:15px; font-weight:700;
    box-shadow:0 2px 7px rgba(20,45,80,.07); transition:transform .15s ease,box-shadow .15s ease;
}
.rf77-test .rf77-share-menu .rf77-share-service svg { display:block; width:52px; height:52px; flex:0 0 52px; }
.rf77-test .rf77-share-menu .rf77-share-service:hover { transform:translateY(-2px); box-shadow:0 5px 14px rgba(20,45,80,.14); background:#fff; color:#0052b4; }
.rf77-test .rf77-share-custom-icon { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:13px; background:#eaf2ff; color:#0052b4; font-size:30px; font-weight:700; }
@media(max-width:700px) {
  .rf77-test .rf77-share-menu .rf77-share-service { min-width:0; min-height:108px; padding:12px 6px; font-size:14px; }
  .rf77-test .rf77-share-menu .rf77-share-service svg,.rf77-test .rf77-share-custom-icon { width:48px; height:48px; }
}


/* Версия 1.6.1: площадки распространения сразу видны без дополнительного нажатия */
.rf77-test .rf77-share-heading {
    margin: 30px 0 14px;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 600;
    color: #172033;
}
.rf77-test .rf77-share-menu-wrap { margin: 0 0 14px; }
.rf77-test .rf77-share-menu { display:flex !important; flex-wrap:wrap; gap:12px; margin:0; padding:0; border:0; background:transparent; }
.rf77-test .rf77-share-menu[hidden] { display:flex !important; }
@media(max-width:700px) {
    .rf77-test .rf77-share-heading { font-size:23px; }
    .rf77-test .rf77-share-menu { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}


/* Версия 1.6.4: вопрос и пояснение рядом на широком экране */
.rf77-question-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(230px,.85fr); gap:30px; align-items:start; }
.rf77-question-main { min-width:0; }
.rf77-question-aside { background:#f5f6f8; border-radius:16px; padding:24px; color:#26364d; }
.rf77-question-aside h3 { margin:0 0 16px; font-size:19px; line-height:1.4; color:#172033; }
.rf77-question-aside p { margin:0 0 13px; font-size:16px; line-height:1.7; }
.rf77-question-aside p:last-child { margin-bottom:0; }
@media(max-width:760px) { .rf77-question-layout { grid-template-columns:1fr; gap:20px; } .rf77-question-aside { padding:18px; border-radius:12px; } .rf77-question-aside h3 { font-size:18px; } .rf77-question-aside p { font-size:16px; } }

.rf77-question-layout.no-aside { grid-template-columns:minmax(0,1fr); }


/* Версия 1.6.5: обновлённый финальный экран и явное отображение площадок */
.rf77-test .rf77-result > h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: #172033; }
.rf77-test .rf77-result .rf77-score { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 18px; margin: 0 0 24px; color:#0052b4; }
.rf77-test .rf77-result .rf77-score strong { font-size: clamp(25px, 3vw, 32px); font-weight:500; }
.rf77-test .rf77-result .rf77-score span { font-size: clamp(18px, 2vw, 22px); color:#566174; }
.rf77-test .rf77-result .rf77-share-heading { margin: 26px 0 14px; font-size: clamp(21px, 2.4vw, 25px); line-height:1.35; font-weight:600; color:#172033; }
.rf77-test .rf77-result .rf77-share-menu-wrap { display:block !important; margin:0 0 16px; }
.rf77-test .rf77-result .rf77-share-menu { display:flex !important; flex-wrap:wrap; gap:12px; margin:0; padding:0; border:0; background:transparent; }
.rf77-test .rf77-result .rf77-share-menu[hidden] { display:flex !important; }
.rf77-test .rf77-result .rf77-share-menu .rf77-share-service { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; min-width:126px; min-height:112px; padding:14px 18px; border:1px solid #d8e2ef; border-radius:12px; background:#fff; color:#172033; text-decoration:none; font-size:15px; font-weight:700; box-shadow:0 2px 7px rgba(20,45,80,.07); }
.rf77-test .rf77-result .rf77-share-menu .rf77-share-service svg { display:block; width:52px; height:52px; flex:0 0 52px; }
.rf77-test .rf77-result .rf77-share-tools { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 26px; }
.rf77-test .rf77-result .rf77-share-tools button { min-height:48px; padding:11px 17px; border:1px solid #0052b4; border-radius:6px; background:#fff; color:#0052b4; font-size:16px; line-height:1.35; font-weight:600; cursor:pointer; }
.rf77-test .rf77-result .rf77-restart { margin-top:8px; }
@media(max-width:700px) { .rf77-test .rf77-result .rf77-share-menu { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .rf77-test .rf77-result .rf77-share-menu .rf77-share-service { min-width:0; min-height:104px; padding:12px 6px; } .rf77-test .rf77-result .rf77-share-tools { display:grid; grid-template-columns:1fr; } .rf77-test .rf77-result .rf77-share-tools button { width:100%; } }
