/* Модальное окно (общее) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(23,25,20,.45);
    backdrop-filter: blur(6px);
}
.modal-backdrop.is-open { display: flex; }
.dish-modal {
    width: min(580px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(23,25,20,.25);
    animation: modalUp .2s ease;
}
@keyframes modalUp {
    from { opacity:0; transform:translateY(12px) scale(.98); }
    to { opacity:1; transform:translateY(0) scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    padding: 21px 22px 16px;
    border-bottom: 1px solid var(--line);
}
.modal-header h3 { margin:0; font-family:"Manrope",sans-serif; font-size:1.3rem; font-weight:800; }
.modal-close {
    width: 34px; height: 34px;
    border: 0; border-radius: 10px;
    background: rgba(23,25,20,.06);
    font-size: 18px; cursor: pointer;
    color: var(--muted);
}
.modal-close:hover { background: rgba(23,25,20,.12); color: var(--ink); }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 16px 22px 21px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
.modal-select, .modal-input {
    width: 100%; min-height: 44px;
    border: 1px solid var(--line); border-radius: 11px;
    padding: 0 12px; font-size: .88rem; outline: none;
    font-family: "DM Sans", sans-serif;
    background: white;
}
.modal-select:focus, .modal-input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(185,243,75,.2); }
.modal-button {
    min-height: 42px; padding: 0 16px;
    border-radius: 11px; border: 1px solid var(--line);
    background: white; font-weight: 800; cursor: pointer;
    font-size: .8rem;
    color: var(--ink);
}
.modal-button--primary {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}
.modal-button--primary:hover { background: #2b2d28; }