/* A distinct, restrained visual layer over the compact master-led concept. */
.compact-page {
 --lk-text: #352f2b;
 --lk-text-soft: #716760;
 --lk-page-bg: #fcfaf7;
 --lk-cta-bg: #f5f1eb;
 --lk-hero-tint: #eee8df;
 --lk-cta-bg-accent: #c74f36;
 --accent-color: #c74f36;
 color: var(--lk-text);
}
.lk-title { font-weight: 650; letter-spacing: -.035em; }
.lk-sub { color: #77685e; }
.lk-sub strong { color: #463b33; }
.lk-stories { border-radius: 16px; background: #eee8df; }
.lk-stories > .lk-story { border: 1px solid rgba(255,255,255,.8); border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 3px 12px rgba(69,45,27,.035); }
.lk-story strong { color: #282521; }
.lk-cta { padding-top: 23px; }
.lk-cta-banner-line { line-height: 1.35; }
.lk-cta-banner-bg { border-radius: 6px; padding: 4px 8px; background: #c74f36; font-weight: 650; }
.lk-cta-banner-tail { color: #453a32; font-weight: 600; }
.lk-cta-instr { color: #786b62; }
.lk-cta-instr strong { color: #39312b; }
.lk-cta-outro { color: #82766c; font-size: 13px; }
.lk-contact { color: #a94733; text-underline-offset: 4px; }
.reference-flow .qw-modal { border: 1px solid #e8e0d7; border-radius: 16px; box-shadow: 0 10px 30px rgba(55,37,22,.045); }
.flow-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: #8b7f75; font-size: 11px; line-height: 1.5; }
.flow-caption > span:last-child { color: #a84a34; font-weight: 600; white-space: nowrap; }
.reference-flow .qw-header { padding-top: 19px; }
.reference-flow .qw-progress { height: 3px; background: #f0ebe5; margin-bottom: 3px; }
.reference-flow .qw-progress-fill { background: #cd5b41; }
.reference-flow .qw-title { color: #302c28; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 16px; }
.reference-flow .qw-text { color: #786e65; font-size: 14px; line-height: 1.6; }
.reference-flow .qw-text b { color: #413831; font-weight: 600; }
.reference-flow .qw-grid { gap: 10px; }
.reference-flow .qw-btn { background: #faf8f5; border: 1px solid #e9e2da; border-radius: 10px; color: #4e443b; padding: 16px; min-height: 54px; transition: background .15s,border-color .15s,box-shadow .15s; }
.reference-flow .qw-radio { width: 18px; height: 18px; border: 1.5px solid #bfb1a3; background: #fff; }
.reference-flow .qw-btn-check { border-color: #cabbad; background: #fff; border-radius: 5px; }
.reference-flow .qw-btn-selected { background: #fff1e9; border-color: #c74f36; box-shadow: 0 0 0 1px #c74f36; }
.reference-flow .qw-btn-check-selected { background: #c74f36; border-color: #c74f36; }
.reference-flow .qw-btn-check-selected::after { top: -2px; }
.reference-flow .qw-btn-primary { min-height: 52px; border-radius: 10px; background: #c74f36; box-shadow: 0 4px 10px rgba(176,66,41,.13); font-size: 15px; }
.reference-flow .qw-btn-primary:disabled { color: #928b83; background: #ede8e2; box-shadow: none; }
.reference-flow .qw-footer { border-top-color: #f0ebe5; padding-top: 14px; }
.reference-flow .qw-input { border: 1px solid #d8cdc2; border-radius: 10px; background: #fffdfb; height: 54px; }
.reference-flow .qw-input:focus { border: 1px solid #c74f36; box-shadow: 0 0 0 3px #f9e8e0; }
.reference-flow .qw-consent { color: #807267; font-size: 12px; line-height: 1.5; }
.reference-flow .qw-consent a { color: #a24630; text-underline-offset: 3px; }
.reference-flow .qw-consent > input[type="checkbox"] { accent-color: #c74f36; }
.reference-flow .qw-multi-label { color: #8c7c6f; font-size: 12px; }
.reference-flow .qw-error-text { color: #af3825; }
.compact-page .footer { background: #f5f1eb; }
.compact-page .footer__policy { color: #92877c; }
@media(hover:hover){
 .reference-flow .qw-btn:hover { border-color: #c74f36; background: #fff4ec; box-shadow: 0 2px 8px rgba(151,90,51,.07); }
 .reference-flow .qw-btn:hover .qw-radio { border-color: #c74f36; }
 .reference-flow .qw-btn-primary:hover:not(:disabled) { background: #ac412b; }
}
.reference-flow .qw-btn:active { background: #fce6d8; }
@media(max-width:700px){
 .lk-stories { margin: 0 -4px; border-radius: 12px; }
 .lk-stories > .lk-story:nth-child(1),.lk-stories > .lk-story:nth-child(2) { background: rgba(255,255,255,.94); }
 .lk-cta { padding-top: 12px; }
 .lk-cta-banner-bg { padding: 3px 6px; }
 .lk-cta-banner-bg,.lk-cta-banner-tail { font-size: 18px; }
 .reference-flow .qw-modal { border-radius: 14px; }
 .reference-flow .qw-header { padding: 17px 20px 0; }
 .reference-flow .qw-content { padding: 16px 20px; }
 .reference-flow .qw-footer { padding: 12px 20px 18px; }
 .reference-flow .qw-btn { padding: 14px 12px; font-size: 13px; }
 .flow-caption { font-size: 10px; }
}
@media(prefers-reduced-motion:reduce){.reference-flow *{transition:none!important}}
/* Confirmation replaces the last question, retaining the compact context. */
.reference-flow.is-complete{scroll-margin-top:20px}
.reference-flow .flow-caption[hidden],.example[hidden]{display:none!important}
.quiz-thanks{padding:16px 0 20px;font-size:16px;line-height:1.65;color:#665c53}
.quiz-thanks h2{font-size:24px;line-height:1.3;letter-spacing:-.03em;color:#352f2b;margin:0 0 20px}
.quiz-thanks p{margin:0 0 20px}.quiz-thanks strong{font-weight:600;color:#352f2b}
.quiz-thanks-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:25px}
.quiz-thanks-link{display:flex;flex:1 1 260px;justify-content:center;align-items:center;min-height:56px;max-width:340px;border:0;border-radius:10px;padding:12px 16px;color:#fff!important;font:600 14px/1.5 Arial,sans-serif;text-decoration:none;cursor:pointer;background:#c74f36}
.quiz-thanks-link.max{background:linear-gradient(135deg,#8b47ed,#00a7e8)}.quiz-thanks-link.telegram{background:#168dca}.quiz-thanks-link:hover{filter:brightness(.94)}.quiz-thanks-link:focus-visible{outline:3px solid #423931;outline-offset:4px}
@media(max-width:600px){.quiz-thanks{padding:10px 0;font-size:14px}.quiz-thanks h2{font-size:21px}.quiz-thanks-buttons{margin-top:20px}.quiz-thanks-link{max-width:400px}}
