/* Isolated quiz component: shared by legacy and detail page templates. */
.bn-quiz-section { padding:72px 0; width:100%; }
.bn-quiz { width:min(1160px,calc(100% - 48px)); margin-inline:auto; color:#372a43; }
.bn-quiz .bn-quiz-heading { max-width:850px; margin-bottom:32px; }
.bn-quiz .bn-quiz-eyebrow { display:block; margin-bottom:14px; font:600 11px/1.5 Montserrat,Arial,sans-serif; text-transform:uppercase; letter-spacing:.12em; color:#8b629f; }
.bn-quiz .bn-quiz-heading h2 { color:#33233f; font-size:clamp(26px,3vw,36px); line-height:1.2; font-weight:700; letter-spacing:-.035em; margin:0 0 18px; text-wrap:balance; }
.bn-quiz .bn-quiz-heading p { margin:0; max-width:680px; font:16px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#7c6e84; }
.bn-quiz-card { display:grid; grid-template-columns:290px minmax(0,1fr); border:1px solid #e5dce9; border-radius:24px; overflow:hidden; background:#fff; box-shadow:0 12px 40px #50238206; }
.bn-quiz-aside { padding:32px 28px; background:#502382; color:white; display:flex; flex-direction:column; }
.bn-quiz-person { display:flex; align-items:center; gap:14px; }
.bn-quiz-person img { display:block; width:62px; height:62px; flex:0 0 62px; border-radius:50%; object-fit:cover; object-position:top; border:2px solid #ffffff40; }
.bn-quiz-person span { display:block; font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#d3bfe3; }
.bn-quiz-person strong { display:block; font:600 16px/1.4 Montserrat,Arial,sans-serif; margin-top:3px; color:white; }
.bn-quiz .bn-quiz-specialty { font:12px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#dbcbe6; margin:18px 0 30px; }
.bn-quiz-nav ol { display:grid; gap:16px; list-style:none; padding:0; margin:0; }
.bn-quiz-nav li { margin:0; padding:0; }
.bn-quiz .bn-quiz-nav button { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:0; border:0; text-align:left; background:transparent; color:#cbb5dd; font:500 13px/1.5 Montserrat,Arial,sans-serif; }
.bn-quiz .bn-quiz-nav button:disabled { cursor:default; opacity:1; }
.bn-quiz .bn-quiz-nav button[aria-current=step] { color:white; font-weight:700; }
.bn-quiz .bn-quiz-nav button.is-complete { color:#f6ebff; }
.bn-quiz-number { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border:1px solid #ffffff40; border-radius:50%; font-size:12px; }
.bn-quiz-nav [aria-current=step] .bn-quiz-number { background:#ffc800; border-color:#ffc800; color:#482465; }
.bn-quiz-nav .is-complete .bn-quiz-number { background:#ffffff16; border-color:#cbaee3; }
.bn-quiz .bn-quiz-aside-note { margin:36px 0 0; padding-top:24px; border-top:1px solid #ffffff26; color:#d3bfe3; font:13px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
.bn-quiz-main { min-width:0; padding:36px 40px; }
.bn-quiz .wpcf7,.bn-quiz form { width:100%; min-width:0; margin:0; color:#372a43; }
.bn-quiz .bn-quiz-progress { margin-bottom:30px; }
.bn-quiz-progress>div { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; font:500 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#8a7697; }
.bn-quiz-progress [data-quiz-step-label] { color:#502382; font-weight:600; }
.bn-quiz-progress progress { display:block; width:100%; height:5px; border:0; appearance:none; border-radius:10px; overflow:hidden; background:#eee6f4; color:#9563b8; }
.bn-quiz-progress progress::-webkit-progress-bar { background:#eee6f4; }
.bn-quiz-progress progress::-webkit-progress-value { background:#9563b8; border-radius:10px; transition:width .2s; }
.bn-quiz-progress progress::-moz-progress-bar { background:#9563b8; }
.bn-quiz .bn-quiz-step { min-width:0; padding:0; margin:0; border:0; }
.bn-quiz .bn-quiz-step legend { float:none; display:block; width:100%; margin:0 0 24px; padding:0; color:#372a43; font:650 27px/1.3 Montserrat,Arial,sans-serif; letter-spacing:-.025em; }
.bn-quiz .bn-quiz-step legend:focus { outline:none; }
.bn-quiz .bn-quiz-step-intro { margin:0 0 24px; color:#7c6e84; font:15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
.bn-quiz-question + .bn-quiz-question { margin-top:28px; }
.bn-quiz .bn-quiz-question h4 { margin:0 0 12px; color:#4c3b58; font:600 15px/1.5 Montserrat,Arial,sans-serif; }
.bn-quiz .bn-quiz-hint { margin:8px 0 16px; color:#796782; font:13px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
.bn-quiz .bn-quiz-field { display:block; margin:0; color:#594b64; font:500 13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
.bn-quiz .bn-quiz-field>span:first-child:not(.wpcf7-form-control-wrap) { display:block; margin-bottom:8px; }
.bn-quiz .wpcf7 .bn-quiz-field input,.bn-quiz .wpcf7 .bn-quiz-field select { display:block; width:100%; min-width:0; min-height:52px; margin:0; padding:13px 15px; background:#faf8fc; border:1px solid #dfd4e7; border-radius:10px; color:#43324e; font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; box-shadow:none; }
.bn-quiz .wpcf7 .bn-quiz-field select { padding-right:32px; cursor:pointer; }
.bn-quiz .wpcf7 .bn-quiz-field input::placeholder { color:#a396ab; opacity:1; }
.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox .wpcf7-list-item { display:block; min-width:0; margin:0; }
.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox label { display:flex; align-items:center; gap:12px; min-height:62px; height:100%; padding:16px; border:1px solid #e4dce9; border-radius:12px; background:#fff; color:#655370; cursor:pointer; transition:border-color .15s,background .15s; }
.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox input { position:static; display:block; appearance:auto; opacity:1; width:18px; height:18px; min-height:18px; padding:0; flex:0 0 18px; margin:0; accent-color:#714195; box-shadow:none; }
.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label { padding:0; font:500 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; background:none; border:0; color:inherit; }
.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label::before,.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label::after { content:none; }
.bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox label:has(input:checked) { background:#f5eefb; border-color:#9566b6; color:#502382; box-shadow:inset 0 0 0 1px #9566b6; }
.bn-quiz .bn-quiz-long-options .wpcf7-list-item:has(input[value="Заболевания сердечно-сосудистой системы в стадии декомпенсации"]) { grid-column:1/-1; }
.bn-quiz .bn-quiz-other { margin-top:24px; }
.bn-quiz-contact-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.bn-quiz .bn-quiz-consent { margin-top:24px; }
.bn-quiz .bn-quiz-consent .wpcf7-list-item { margin:0; }
.bn-quiz .bn-quiz-consent .wpcf7-acceptance label { display:flex; align-items:flex-start; gap:12px; margin:0; padding:0; min-height:44px; font:12px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#82728c; }
.bn-quiz .bn-quiz-consent .wpcf7-acceptance input { position:static; display:block; opacity:1; width:20px; height:20px; flex:0 0 20px; margin:2px 0 0; accent-color:#714195; }
.bn-quiz .bn-quiz-consent a { color:#714195; text-decoration:underline; text-underline-offset:3px; }
.bn-quiz .bn-quiz-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:30px; padding-top:24px; border-top:1px solid #eee7f3; }
.bn-quiz .bn-quiz-actions :is(button,input[type=submit]) { display:inline-flex; align-items:center; justify-content:center; gap:40px; width:auto; min-height:50px; padding:14px 24px!important; margin:0; border-radius:11px!important; border:1px solid #502382; background:#502382!important; box-shadow:none; color:white!important; font:600 14px/1.5 Montserrat,Arial,sans-serif; cursor:pointer; transition:background .15s; }
.bn-quiz .bn-quiz-actions button.bn-quiz-back { padding-inline:0!important; border-color:transparent; color:#806b8c!important; background:transparent!important; }
.bn-quiz .bn-quiz-actions button.bn-quiz-next,.bn-quiz .bn-quiz-submit { margin-left:auto; }
.bn-quiz .bn-quiz-submit { position:relative; }
.bn-quiz .bn-quiz-actions :disabled { opacity:.5; cursor:default; }
.bn-quiz .wpcf7-spinner { position:absolute; right:0; top:100%; margin:4px 0 0; }
.bn-quiz .bn-quiz-answer-review { margin-bottom:26px; padding:18px 20px; border:1px solid #e7dfed; border-radius:12px; background:#faf8fc; }
.bn-quiz-answer-review summary { display:flex; justify-content:space-between; align-items:center; min-height:28px; cursor:pointer; font:600 14px/1.6 Montserrat,Arial,sans-serif; color:#705282; list-style:none; }
.bn-quiz-answer-review summary::-webkit-details-marker { display:none; }
.bn-quiz-answer-review[open] summary>span { transform:rotate(45deg); }
.bn-quiz-answer-review dl { display:grid; grid-template-columns:130px minmax(0,1fr); gap:10px 18px; font:13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; margin:20px 0; overflow-wrap:anywhere; }
.bn-quiz-answer-review dt { color:#7d6a88; }
.bn-quiz-answer-review dd { margin:0; color:#594365; }
.bn-quiz .bn-quiz-edit { border:0; padding:8px 0; min-height:40px; color:#714195; background:none; font:600 13px/1.5 Montserrat,Arial,sans-serif; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.bn-quiz .bn-quiz-error { margin:20px 0 0; padding:12px 16px; border-radius:10px; background:#fff2f3; color:#a13247; font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
.bn-quiz .has-error .wpcf7-checkbox label { border-color:#c77686; }
.bn-quiz .wpcf7-not-valid-tip { color:#ac354b; font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; padding-top:8px; }
.bn-quiz .wpcf7-response-output { margin:20px 0 0; padding:16px; border-radius:12px; font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
.bn-quiz-success { padding:44px 0; max-width:460px; }
.bn-quiz-success>span { display:grid; place-items:center; width:64px; height:64px; margin-bottom:24px; border-radius:50%; background:#f2ebf8; color:#734298; font-size:28px; }
.bn-quiz .bn-quiz-success h3 { font-size:30px; line-height:1.3; margin:0 0 16px; color:#372a43; }
.bn-quiz .bn-quiz-success p { font:16px/1.8 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#7c6e84; }
.bn-quiz.is-sent .wpcf7-response-output { display:none; }
.bn-quiz-sr { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; padding:0!important; overflow:hidden!important; clip-path:inset(50%); white-space:nowrap; }
.bn-quiz :is(button,input,select,summary,a):focus-visible { outline:3px solid #b89ace; outline-offset:3px; }
.bn-quiz :is(button,input,select,a) { -webkit-tap-highlight-color:transparent; }
body:has(.bn-quiz.is-in-view) .to-top { visibility:hidden; }
@media(hover:hover) { .bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox label:hover { border-color:#aa86c4; } .bn-quiz .bn-quiz-next:hover { background:#6a3990!important; } }
@media(max-width:1000px) { .bn-quiz-card { grid-template-columns:240px minmax(0,1fr); } .bn-quiz-aside { padding:28px 22px; } .bn-quiz-main { padding:30px 28px; } .bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox label { padding:12px; gap:10px; } .bn-quiz-contact-fields { grid-template-columns:1fr; } }
@media(max-width:800px) {
  .bn-quiz-card { grid-template-columns:minmax(0,1fr); }
  .bn-quiz-aside { padding:22px 28px; display:block; }
  .bn-quiz-person img { width:48px; height:48px; flex-basis:48px; }
  .bn-quiz .bn-quiz-specialty,.bn-quiz .bn-quiz-aside-note { display:none; }
  .bn-quiz-nav { margin-top:20px; }
  .bn-quiz-nav ol { display:flex; justify-content:space-between; gap:8px; }
  .bn-quiz .bn-quiz-nav button { min-width:44px; min-height:44px; justify-content:center; }
  .bn-quiz-nav button>span:last-child { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .bn-quiz-nav li { flex:1; }
}
@media(max-width:480px) {
  .bn-quiz-section { padding-block:48px; }
  .bn-quiz { width:calc(100% - 36px); }
  .bn-quiz .bn-quiz-heading { margin-bottom:24px; }
  .bn-quiz .bn-quiz-heading h2 { font-size:27px; }
  .bn-quiz .bn-quiz-heading p { font-size:15px; }
  .bn-quiz-card { border-radius:18px; }
  .bn-quiz-aside { padding:20px; }
  .bn-quiz-main { padding:26px 20px; }
  .bn-quiz .bn-quiz-step legend { font-size:23px; margin-bottom:20px; }
  .bn-quiz-progress>div { font-size:11px; }
  .bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox { gap:9px; }
  .bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox label { flex-direction:column; align-items:flex-start; gap:8px; padding:12px; min-height:92px; }
  .bn-quiz .wpcf7 .wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label { font-size:13px; }
  .bn-quiz .wpcf7 .wpcf7-form .bn-quiz-long-options .wpcf7-checkbox { grid-template-columns:minmax(0,1fr); }
  .bn-quiz .wpcf7 .wpcf7-form .bn-quiz-long-options .wpcf7-checkbox label { flex-direction:row; align-items:center; min-height:58px; gap:12px; }
  .bn-quiz .bn-quiz-actions { gap:12px; }
  .bn-quiz .bn-quiz-actions :is(button,input[type=submit]) { font-size:12px; padding:14px 18px!important; }
  .bn-quiz .bn-quiz-actions input[type=submit] { white-space:normal; width:100%; }
  .bn-quiz .bn-quiz-submit { flex:1; }
  .bn-quiz-answer-review dl { grid-template-columns:1fr; gap:4px; }
  .bn-quiz-answer-review dd { margin-bottom:12px; }
}
@media(prefers-reduced-motion:reduce) { .bn-quiz * { transition:none!important; scroll-behavior:auto!important; } }
