:root{--orange:#f86a18;--red:#df3c32;--ink:#292623;--muted:#716b64;--line:#ebe5df;--paper:#fff;--bg:#faf8f5;--radius:22px}*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #333;outline-offset:3px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:28px;line-height:1.2;letter-spacing:-.6px}h2{font-size:22px}h3{font-size:18px;margin-top:24px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.client-header{background:linear-gradient(135deg,#d9353b,#ee5530 66%,#fa8b36);color:white;min-height:108px;padding:20px max(20px,calc((100vw - 760px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:0 0 28px 28px}.brand{font-size:29px;font-weight:850;line-height:1.05;white-space:nowrap;letter-spacing:-1px}.brand span{color:#ffe6b8}.brand small{display:block;font-size:11px;font-weight:500;letter-spacing:.2px;margin-top:7px}.identity{max-width:52%;text-align:right;font-size:13px;overflow-wrap:anywhere}.identity a{font-weight:650}.logout{background:transparent;border:0;color:#fff;padding:5px 0 5px 12px;text-decoration:underline;font-size:12px;min-height:30px}.client-main{max-width:760px;margin:auto;padding:26px 20px 32px}.home-page{background:white}.home-page .client-header{border-radius:0 0 48% 9%;padding-bottom:28px}.home-caption{text-align:center;margin-bottom:8px}.home-caption h1{font-size:25px}.home-caption p{font-size:13px;color:var(--muted)}.home-orbit{height:calc(clamp(210px,61vw,280px) + 246px);position:relative;max-width:440px;margin:0 auto}.hero-logo{width:clamp(210px,61vw,280px);height:clamp(210px,61vw,280px);object-fit:contain;position:absolute;top:122px;left:50%;transform:translateX(-50%);border-radius:50%}.orbit-button{position:absolute;width:116px;display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;font-size:13px;line-height:1.3;font-weight:700;color:#443b35;min-height:104px}.orbit-icon{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;border:2px solid #f76931;background:#fff7f0;color:#e54a2c;box-shadow:0 5px 16px #f2661612}.orbit-icon svg{width:33px;height:33px}.orbit-button:active .orbit-icon{background:#ffe7d2}.top-left{top:0;left:0}.top-right{top:0;right:0}.bottom-left{bottom:0;left:0}.bottom-right{bottom:0;right:0}.admin-entry{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 16px;max-width:440px;border:1px solid #efd8c7;background:#fff6ee;color:#8d3a19;margin:18px auto;border-radius:16px;font-weight:650;font-size:14px}.admin-entry span{margin-left:auto}.help-counter{background:linear-gradient(110deg,#f78428,#e24136);color:#fff;border-radius:26px 26px 22px 22px;max-width:440px;margin:18px auto 0;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 8px 24px #e7632524}.help-counter span{font-size:14px;max-width:210px}.help-counter strong{font-size:32px;line-height:1.1}.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.section-title h1{margin-bottom:0}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;color:#a34b2d;font-size:11px;font-weight:750;margin-bottom:7px}.icon-link{background:#fff1e6;border-radius:14px;color:#aa4321;width:48px;height:48px;display:grid;place-items:center;flex-shrink:0}.tabs{display:flex;border-radius:15px;background:#eee8e1;padding:4px;margin-bottom:18px;gap:4px}.tabs a{flex:1;padding:10px 8px;text-align:center;font-size:14px;font-weight:650;border-radius:12px}.tabs .selected{background:white;box-shadow:0 2px 6px #443b3510;color:#b04324}.filter-bar{display:flex;align-items:end;gap:12px;margin-bottom:16px}.filter-bar label{flex:1}label{display:block;font-weight:600;font-size:14px;margin-bottom:12px}input,textarea,select{display:block;width:100%;background:white;border:1px solid #d8cfc5;border-radius:12px;padding:12px;color:#292623;margin-top:6px;min-height:46px}textarea{resize:vertical}input[type=checkbox]{display:inline-block;min-height:20px;width:20px;height:20px;vertical-align:middle;margin:0 8px 0 0;accent-color:#dc4a2e}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:13px;padding:12px 17px;min-height:46px;border:0;font-size:14px;font-weight:700;line-height:1.4;text-align:center}.primary{background:linear-gradient(115deg,#f27423,#dd3f32);color:#fff}.secondary{background:#fff;border:1px solid #e0d6ca;color:#5a4438}.wide{width:100%}.muted{color:var(--muted);font-size:13px}.quiet-link{display:block;color:#9d4228;font-size:14px;padding:12px 0}.location-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}.location-tools small{font-size:12px;color:var(--muted);flex:1;min-width:120px}.request-list{display:grid;gap:18px}.request-card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 16px #49321d06}.card-photo{display:block;height:210px;position:relative;background:#efe8e1}.card-photo img{width:100%;height:100%;object-fit:cover}.card-photo span{position:absolute;bottom:12px;right:12px;background:#292623bf;color:white;border-radius:10px;padding:4px 9px;font-size:12px}.card-content{padding:18px}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.card-meta time{font-size:11px;color:var(--muted)}.badge{background:#fff0df;color:#a34213;border-radius:9px;padding:5px 9px;font-size:12px;font-weight:750;white-space:nowrap}.badge.broken{background:#fee5e3;color:#ae3435}.badge.closed{background:#e5f2e9;color:#306f49}.card-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;white-space:pre-line;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.post-distance{display:block;font-size:13px;color:#825039;margin-top:12px}.card-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.card-actions a{flex:1}.route svg{width:18px;height:18px}.panel{background:white;border:1px solid var(--line);padding:22px;border-radius:var(--radius);margin:18px 0}.post-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:0}.post-photos{display:flex;gap:10px;overflow:auto;scroll-snap-type:x mandatory;margin:20px 0}.post-photos a{flex:0 0 88%;scroll-snap-align:start}.post-photos img{display:block;width:100%;height:290px;object-fit:contain;background:#f0ebe5;border-radius:18px}.back-link{display:block;color:#a64a2a;font-size:13px;margin-bottom:20px}.admin-panel{background:#fff2e6;border:1px solid #edd4bd;border-radius:22px;padding:20px;margin-top:26px}.admin-panel p{font-size:13px}.empty-state{text-align:center;padding:44px 16px;background:white;border:1px solid var(--line);border-radius:24px}.empty-state>svg{width:52px;height:52px;color:#e87439;margin:4px 0 20px}.empty-state h2{font-size:20px}.empty-state p{font-size:14px;color:var(--muted)}.pagination{display:flex;justify-content:space-between;margin-top:20px;gap:16px}.login-card{text-align:center;max-width:440px;margin:auto}.login-logo{width:245px;max-width:80%;border-radius:50%;margin:8px 0 24px}.login-card p{font-size:14px;color:var(--muted);margin:16px 0 22px}.login-card .quiet-link{font-size:12px}.map-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.map-filters label{margin:0}#event-map{height:58vh;min-height:380px;border-radius:22px;border:1px solid #dfd6cc;z-index:0;background:#ede9e0}.event-marker{background:#f76e22;border:3px solid white;border-radius:50%;box-shadow:0 2px 9px #33201566;color:white;text-align:center;font-size:15px;font-weight:850;line-height:30px}.event-marker.broken{background:#db4036}.map-popup{max-width:240px;font:14px/1.5 system-ui}.map-popup img{width:220px;height:115px;object-fit:cover;border-radius:10px}.map-popup .primary{color:white!important;margin-top:10px}.map-popup a{color:#ae4326!important}dialog{border:0;border-radius:24px;box-shadow:0 20px 80px #32251b50;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;color:var(--ink);overflow:auto}dialog::backdrop{background:#23181188;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading h2{margin:0}.close-button{border:0;border-radius:50%;width:42px;height:42px;background:#f2ebe4;font-size:28px;color:#705442;flex-shrink:0}.field-with-hide{padding:12px;background:#faf5ef;border-radius:14px;margin:16px 0}.field-with-hide label{margin-bottom:8px}.hide-data{background:#fff;color:#a5382c;border:1px solid #edcac2;border-radius:11px;padding:9px 12px;font-size:13px;min-height:40px}.editable-photos{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.editable-photo{position:relative;width:100px;height:110px}.editable-photo img{width:100%;height:100%;object-fit:cover;border-radius:12px}.editable-photo button{position:absolute;top:3px;right:3px;border:1px solid white;border-radius:50%;background:#a72c24;color:white;width:32px;height:32px;font-size:21px;line-height:24px}.editable-photo.removed img{opacity:.18}.editable-photo.removed:after{content:"скрыто";position:absolute;bottom:10px;left:15px;pointer-events:none;font-size:12px;color:#a12f25}.editable-photo.removed button{background:#396d4c;font-size:15px}.rescue-candidates{display:grid;gap:8px}.candidate{padding:12px;background:#f9f4ee;border-radius:12px;font-size:14px}.candidate small{display:block;color:var(--muted);margin-left:28px;font-size:11px}.candidate-status{font-size:12px;color:var(--muted)}.add-rescuer{background:#f9f4ee;padding:16px;border-radius:16px;margin-top:16px}.selected-rescuers{display:grid;gap:8px;margin:16px 0}.selected-rescuer{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #e7dbce;border-radius:12px;gap:10px}.selected-rescuer button{border:0;background:#fae6e1;color:#a33426;border-radius:8px;width:34px;height:34px;font-size:20px}.closure-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f4ef;border:1px solid #e7dacc;padding:16px;border-radius:14px;font:14px/1.6 system-ui;margin:16px 0}.form-error{color:#ad2826;background:#ffeded;border-radius:12px;padding:12px;font-size:14px}.preview-hint{margin-top:12px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#302723;color:white;border-radius:14px;padding:13px 18px;max-width:calc(100vw - 32px);width:max-content;z-index:10000;font-size:14px}.toast[hidden]{display:none}@media(min-width:650px){.request-list{grid-template-columns:1fr 1fr}.home-page .client-main{max-width:620px}.client-header{min-height:100px}.home-orbit{margin-top:24px}.card-photo{height:200px}}@media(max-width:350px){.client-main{padding:20px 14px}.brand small{font-size:10px}.identity{font-size:11px}.orbit-button{width:102px}.hero-logo{width:200px;height:200px}.home-orbit{height:446px}.card-actions{flex-direction:column}h1{font-size:24px}}@media(prefers-reduced-motion:no-preference){.orbit-icon,.primary,.secondary{transition:background .15s,transform .15s}.primary:active,.secondary:active{transform:scale(.98)}}

.dialog-heading{position:sticky;top:-24px;z-index:5;background:white;padding:12px 0;margin-top:-12px}

.event-marker{width:36px;height:36px;cursor:pointer;user-select:none;padding:0;display:block}.event-marker:focus-visible{outline:3px solid #176977;outline-offset:4px}.maplibregl-popup-content{border-radius:14px;padding:16px;box-shadow:0 5px 24px #24343d33}.maplibregl-popup-close-button{font-size:24px;line-height:30px;width:34px;height:34px;padding:0;background:transparent;color:#53636a}.maplibregl-control-container button{min-height:29px}.maplibregl-canvas{outline:none}.maplibregl-ctrl-scale{font-size:12px}#event-map{overflow:hidden}

.category-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.category-filter fieldset{min-width:0;flex:1;border:0;padding:0;margin:0}.category-filter legend{font-size:14px;font-weight:650;margin-bottom:8px}.category-options{display:flex;flex-wrap:wrap;gap:8px}.category-options label{display:inline-flex;align-items:center;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:white;font-size:13px;margin:0;min-height:42px;white-space:nowrap}.category-options input[type=checkbox]{margin:0 7px 0 0}.category-filter button{min-height:42px}@media(max-width:500px){.category-filter{align-items:stretch}.category-filter fieldset{flex-basis:100%}.category-filter button{width:100%}}

.closure-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.closure-options button{overflow-wrap:anywhere}.closure-options [aria-pressed="true"]{border-color:#da4b2f;background:#fff0e2;color:#963519;box-shadow:0 0 0 1px #da4b2f}.closure-choice{margin:14px 0}.local-closure-note{background:#e5f2e9;color:#306f49;border-radius:12px;padding:12px;margin:16px 0;font-size:14px}@media(max-width:420px){.closure-options{grid-template-columns:1fr}}
