/* Gorynych: contextual, user-opened site guide. */
.guide-launcher,.guide-panel{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;letter-spacing:normal;color:#f3f4ed}
.guide-launcher{position:fixed;right:max(20px,env(safe-area-inset-right,0px));bottom:24px;z-index:55;display:flex;align-items:center;gap:10px;min-height:52px;padding:9px 17px 9px 10px;border:1px solid #8ca17b;border-radius:999px;background:#213529;color:#eef3df;box-shadow:0 6px 24px #0005;font-size:14px;font-weight:650;cursor:pointer}
.guide-mark{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #879a71;border-radius:50%;color:#d8e8b3;font-size:18px;font-weight:750}
.guide-launcher[aria-expanded="true"]{background:#d8e8b3;color:#17251b}.guide-launcher[aria-expanded="true"] .guide-mark{color:#17251b}
.guide-panel{position:fixed;right:max(20px,env(safe-area-inset-right,0px));bottom:88px;z-index:56;width:370px;max-width:calc(100vw - 32px);max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #71856a;border-radius:18px;background:#18261d;box-shadow:0 20px 65px #0008;scrollbar-width:thin}
.guide-panel[hidden]{display:none!important}
.guide-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#18261d;border-bottom:1px solid #425647}
.guide-head h2{margin:0;font-size:16px;line-height:1.3;letter-spacing:0;max-width:none;text-wrap:wrap}
.guide-close{display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;border:1px solid #65795c;border-radius:12px;background:transparent;color:#f3f4ed;font-size:26px;line-height:1;cursor:pointer}
.guide-body{padding:18px}.guide-person{display:flex;align-items:center;gap:14px;margin-bottom:18px}.guide-avatar{width:78px;height:88px;flex:0 0 78px;object-fit:cover;object-position:50% 14%;border:1px solid #71856a;border-radius:14px;background:#26392b}
.guide-person strong{display:block;font-size:16px}.guide-person span{display:block;font-size:12px;color:#c2cfbd;margin-top:4px}.guide-context{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#d8e8b3;margin:0 0 7px}
.guide-intro{font-size:16px;margin:0 0 17px}.guide-choices{display:grid;gap:9px}.guide-choice,.guide-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px 14px;border:1px solid #526c50;border-radius:11px;background:#233729;color:#f3f4ed;font-size:14px;text-decoration:none;text-align:left;line-height:1.45;cursor:pointer;overflow-wrap:anywhere}
.guide-choice::after,.guide-link::after{content:'↗';flex-shrink:0;color:#d8e8b3}.guide-choice[aria-pressed="true"]{border-color:#d8e8b3;background:#324932}.guide-answer{margin-top:16px;padding:16px;border:1px solid #738762;border-radius:12px;background:#213328;overflow-wrap:anywhere}.guide-answer h3{font-size:17px;line-height:1.35;letter-spacing:0;margin:0 0 9px}.guide-answer p{font-size:14px;color:#d0dccc;margin:0 0 13px}.guide-answer a{display:inline-flex;align-items:center;min-height:44px;color:#e3efc8;font-weight:700;font-size:14px}
.guide-contact{margin-top:16px;background:#d8e8b3;color:#17251b;font-weight:700;border-color:#d8e8b3}.guide-contact::after{color:#17251b}.guide-about{margin-top:15px;border-top:1px solid #425647;padding-top:4px}.guide-about summary{min-height:44px;padding:12px 0;font-size:12px;color:#c4d1bf;cursor:pointer}.guide-about p{font-size:12px;color:#c4d1bf;margin:0 0 8px}
.guide-portrait{width:78px;height:88px;flex:0 0 78px;overflow:hidden;border:1px solid #71856a;border-radius:14px;background:#26392b}
.guide-portrait .guide-avatar{display:block;width:100%;height:100%;border:0;border-radius:0;transform:scale(2.2);transform-origin:50% 20%}
.guide-panel :is(button,a,summary):focus-visible,.guide-launcher:focus-visible{outline:3px solid #e7f3ca;outline-offset:3px}
@media(hover:hover){.guide-choice:hover,.guide-close:hover{background:#344e36;border-color:#aac394}.guide-launcher:hover{border-color:#e2f0c2;box-shadow:0 8px 28px #0007}.guide-contact:hover{background:#e6f0ca}}
@media(max-width:640px){
 .guide-launcher{right:max(12px,env(safe-area-inset-right,0px));bottom:calc(82px + env(safe-area-inset-bottom,0px));min-height:48px;font-size:13px;padding-right:14px;max-width:calc(100vw - 24px)}
 .guide-launcher[aria-expanded="true"]{visibility:hidden}
 .guide-panel{right:12px;left:12px;bottom:calc(82px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;max-height:calc(100vh - 172px - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 172px - env(safe-area-inset-bottom,0px));border-radius:20px}
 .guide-head{padding:8px 13px}.guide-body{padding:14px}.guide-portrait{width:58px;height:64px;flex-basis:58px}.guide-person{margin-bottom:13px}.guide-intro{font-size:15px}.guide-context{font-size:10px}
}
@media print{.guide-launcher,.guide-panel{display:none!important}}
