/* Плашка под шапкой: окно опроса (snp-*) и окно редактирования для админа (sne-*). См. include/site_notice.php */
.snp-ov, .sne-ov { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(18, 28, 48, .5); opacity: 0; transition: opacity .18s; font-family: Roboto, "Segoe UI", Arial, sans-serif; }
.snp-ov.on, .sne-ov.on { opacity: 1; }
.snp-dlg { position: relative; width: 520px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(18, 28, 48, .35); color: #1d2b48; text-align: left; transform: translateY(10px) scale(.98); transition: transform .2s; }
.snp-ov.on .snp-dlg { transform: none; }
.snp-dlg * { box-sizing: border-box; }
.snp-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); color: inherit; font-size: 20px; line-height: 32px; cursor: pointer; padding: 0; }
.snp-x:hover { background: rgba(255, 255, 255, .45); }
.snp-hd { display: flex; align-items: center; gap: 14px; padding: 20px 56px 18px 22px; border-radius: 16px 16px 0 0; }
.snp-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .6); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.snp-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.snp-hd h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.25; font-weight: 700; color: inherit; }
.snp-body { padding: 6px 22px 20px; }
.snp-q { padding: 16px 0 4px; border-top: 1px solid #edf0f6; }
.snp-q:first-child { border-top: 0; }
.snp-qt { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.snp-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef2fa; color: #4e659c; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.snp-req { color: #d0453b; margin-left: 2px; }
.snp-hint { display: block; font-size: 12px; font-weight: 400; color: #8a94a8; margin-top: 2px; }
.snp-opts { display: grid; gap: 7px; padding-left: 32px; }
.snp-opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1.5px solid #e2e8f2; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.3; color: #1d2b48; background: #fff; transition: border-color .12s, background .12s; user-select: none; }
.snp-opt:hover { border-color: #b9c8e4; background: #fafcff; }
.snp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.snp-mk { flex: none; width: 18px; height: 18px; border: 2px solid #b6c2d8; border-radius: 50%; position: relative; transition: .12s; }
.snp-opt.many .snp-mk { border-radius: 5px; }
.snp-opt.on { border-color: #4e659c; background: #f3f6fd; }
.snp-opt.on .snp-mk { border-color: #4e659c; background: #4e659c; }
.snp-opt.on .snp-mk:after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.snp-opt:not(.many).on .snp-mk:after { left: 3px; top: 3px; width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.snp-otxt, .snp-ta { width: 100%; padding: 10px 12px; border: 1.5px solid #e2e8f2; border-radius: 10px; font: inherit; font-size: 14px; color: #1d2b48; outline: none; background: #fff; }
.snp-otxt:focus, .snp-ta:focus { border-color: #4e659c; }
.snp-ta { min-height: 84px; resize: vertical; margin-left: 32px; width: calc(100% - 32px); display: block; }
.snp-otxt { display: none; }
.snp-otxt.on { display: block; }
.snp-err { display: none; padding-left: 32px; margin-top: 6px; font-size: 12.5px; color: #d0453b; }
.snp-q.bad .snp-err { display: block; }
.snp-q.bad .snp-opt, .snp-q.bad .snp-ta { border-color: #f0b4ae; }
.snp-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 10px; border-top: 1px solid #edf0f6; }
.snp-note { font-size: 12.5px; color: #8a94a8; }
.snp-note.adm { color: #b07a07; }
.snp-send { flex: none; padding: 11px 24px; border: 0; border-radius: 10px; background: #4e659c; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.snp-send:hover { background: #3f5589; }
.snp-send[disabled] { opacity: .6; cursor: default; }
.snp-done { padding: 34px 26px 28px; text-align: center; }
.snp-ok { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e4f5e9; color: #1d9a48; display: flex; align-items: center; justify-content: center; font-size: 32px; animation: snp-pop .35s ease-out; }
@keyframes snp-pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.snp-done h3 { margin: 0 0 6px; font-size: 19px; color: #1d2b48; }
.snp-done p { margin: 0 0 20px; color: #6b7590; font-size: 14px; }
.snp-done .snp-send { padding: 10px 28px; }
@media (max-width: 520px) { .snp-opts, .snp-err { padding-left: 0; } .snp-ta { margin-left: 0; width: 100%; } .snp-hd { padding: 16px 50px 14px 16px; } .snp-body { padding: 4px 16px 16px; } }

/* окно редактирования (админ) */
.sne-dlg { width: 680px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(18, 28, 48, .35); color: #1d2b48; text-align: left; font-size: 13.5px; line-height: 1.4; }
.sne-dlg * { box-sizing: border-box; }
.sne-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid #edf0f6; position: sticky; top: 0; background: #fff; z-index: 2; }
.sne-hd h3 { margin: 0; font-size: 18px; font-weight: 700; color: #1d2b48; }
.sne-st { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 20px; background: #f6f8fc; border-bottom: 1px solid #edf0f6; font-size: 12.5px; color: #5a6b8c; }
.sne-st b { color: #1d2b48; font-weight: 700; }
.sne-st a { color: #3b62b5; font-weight: 600; margin-left: auto; text-decoration: none; }
.sne-bd { padding: 14px 20px 6px; }
.sne-l { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: #6b7590; text-transform: uppercase; letter-spacing: .04em; }
.sne-l:first-child { margin-top: 0; }
.sne-in, .sne-ta, .sne-sel { width: 100%; padding: 8px 10px; border: 1px solid #cfdaeb; border-radius: 8px; font: inherit; font-size: 14px; color: #1d2b48; background: #fff; outline: none; }
.sne-in:focus, .sne-ta:focus, .sne-sel:focus { border-color: #4e659c; }
.sne-ta { min-height: 64px; resize: vertical; }
.sne-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #edf1f8; gap: 2px; }
.sne-seg span { padding: 7px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; color: #4a5b7e; user-select: none; }
.sne-seg span.on { background: #fff; color: #1d2b48; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.sne-cols { display: flex; flex-wrap: wrap; gap: 6px; }
.sne-col { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border: 1px solid #dfe4ef; border-radius: 20px; cursor: pointer; font-size: 12px; color: #4a5670; user-select: none; }
.sne-col i { width: 16px; height: 16px; border-radius: 50%; }
.sne-col.on { border-color: #4e659c; box-shadow: 0 0 0 2px rgba(78, 101, 156, .18); color: #1d2b48; }
.sne-prev { margin-top: 12px; padding: 10px 12px; border: 1px solid; border-radius: 6px; font-weight: 700; text-align: center; font-size: 13px; }
.sne-prev .sn-cta { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 12px; border: 1px solid currentColor; font-size: 12px; }
.sne-chk { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; cursor: pointer; color: #1d2b48; font-size: 13.5px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.sne-chk small { color: #8a94a8; }
.sne-hint { margin-top: 6px; font-size: 12.5px; color: #8a94a8; }
.sne-poll { margin-top: 6px; padding: 12px; border-radius: 12px; background: #f6f8fc; border: 1px solid #e6ebf4; }
.sne-q { position: relative; padding: 12px; margin-top: 10px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f2; }
.sne-qh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sne-qh b { font-size: 13px; color: #4e659c; }
.sne-qh .sne-sel { width: auto; flex: none; padding: 5px 8px; font-size: 13px; margin-left: auto; }
.sne-del { flex: none; width: 28px; height: 28px; border: 1px solid #e2e8f2; border-radius: 8px; background: #fff; color: #b3261e; cursor: pointer; font-size: 15px; line-height: 1; }
.sne-del:hover { background: #fdecea; }
.sne-q .sne-ta { min-height: 74px; margin-top: 8px; font-size: 13.5px; }
.sne-q .sne-chks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sne-add { margin-top: 10px; padding: 8px 14px; border: 1px dashed #b9c8e4; border-radius: 10px; background: #fff; color: #3b62b5; font: inherit; font-weight: 600; cursor: pointer; width: 100%; }
.sne-add:hover { background: #f3f6fd; }
.sne-ft { display: flex; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid #edf0f6; position: sticky; bottom: 0; background: #fff; }
.sne-msg { flex: 1; font-size: 12.5px; color: #c0504d; }
.sne-msg.inf { color: #8a94a8; }
.sne-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid #cfdaeb; background: #fff; color: #4e659c; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.sne-btn.pri { background: #4e659c; border-color: #4e659c; color: #fff; }
.sne-btn[disabled] { opacity: .6; cursor: default; }
.sne-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f4f9; color: #4a5b7e; font-size: 20px; cursor: pointer; line-height: 1; }
.snp-lock { background: #eef2fa; color: #4e659c; font-size: 28px; }
.snp-auth { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.snp-auth a.snp-send { text-decoration: none; display: inline-block; }
.snp-auth a.snp-sec { background: #fff; color: #4e659c; border: 1.5px solid #cfdaeb; }
.snp-auth a.snp-sec:hover { background: #f3f6fd; }
