.modal{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;animation:fade .2s}
.modal__box{width:100%;max-width:440px;background:var(--bg-tex),var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 20px 28px;display:flex;flex-direction:column;gap:18px;animation:up .25s}
.modal__grip{width:40px;height:4px;border-radius:2px;background:var(--line);align-self:center}
.modal__h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.modal__h b{display:block;font-family:var(--head);font-weight:500;font-size:22px;margin-bottom:6px}
.modal__h p{font-size:15px;line-height:1.5;color:var(--mute)}
.x{flex:none;width:44px;height:44px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;font-size:22px}
.modal form{display:flex;flex-direction:column;gap:14px}
@media (max-width:899px){.modal{align-items:flex-end}.modal__box{border-radius:16px 16px 0 0;padding-bottom:calc(28px + env(safe-area-inset-bottom))}}
@media (min-width:900px){.modal__grip{display:none}}
/* 21.10.2026: просмотр фото - окно ~70% экрана поверх затемнения, подпись на тёмной плашке (раньше белый текст ложился на светлое фото) */
.lb{position:fixed;inset:0;z-index:50;background:rgba(5,6,7,.84);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;animation:fade .2s}
.lb__top,.lb__nav{width:min(70vw,1120px)}
.lb__top{height:44px;padding:0 4px 0 8px;display:flex;justify-content:space-between;align-items:center;font-family:var(--mono);font-size:14px;color:#AEB4BB}
.lb__top .x{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:24px;line-height:1}
.lb__top .x:hover{background:rgba(255,255,255,.18)}
.lb__img{display:grid;place-items:center;max-width:min(70vw,1120px);max-height:66vh}
.lb__img img{display:block;max-width:min(70vw,1120px);max-height:66vh;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 30px 80px rgba(0,0,0,.6);background:var(--plate-light,#E6E7E8)}
.lb__nav{padding:12px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#0E0F11;border:1px solid #26292D;border-radius:12px}
.lb__nav button{width:46px;height:46px;flex:none;border:1px solid #3A3E44;border-radius:50%;display:grid;place-items:center;font-size:18px;color:#fff;background:transparent}
.lb__nav button:hover{border-color:var(--acc)}
.lb__nav span{font-size:15px;font-weight:500;text-align:center;color:#E8EAEC;line-height:1.4}
@media (max-width:760px){.lb__top,.lb__nav,.lb__img{width:94vw;max-width:94vw}.lb__img img{max-width:94vw;max-height:60vh}}
.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);z-index:45;padding:12px 18px;border-radius:6px;background:var(--acc);color:var(--acc-ink);font-size:15px;font-weight:500;white-space:nowrap;animation:fade .2s}
@media (min-width:900px){.toast{bottom:32px}}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(24px)}}
