
/* --- Стили для кастомного модального окна заявки --- */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.custom-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.custom-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.custom-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    padding: 36px 28px 28px 28px;
    max-width: 350px;
    width: 90vw;
    position: relative;
    text-align: center;
    animation: modalShow 0.4s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes modalShow {
    0% { transform: translateY(60px) scale(0.95); opacity: 0; }
    100% { transform: none; opacity: 1; }
}
.custom-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffd633;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}
.custom-modal-close:hover {
    color: #ffb800;
}
.custom-modal-header img {
    border-radius: 50%;
    margin-bottom: 10px;
}
.custom-modal-header h3 {
    font-weight: 900;
    font-size: 1.4em;
    margin-bottom: 0.2em;
}
.custom-modal-header p {
    color: #888;
    font-size: 1em;
    margin-bottom: 1.2em;
}
.custom-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.custom-modal-input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ffd633;
    font-size: 1.1em;
    outline: none;
    transition: border 0.2s;
}
.custom-modal-input:focus {
    border: 1.5px solid #ffb800;
}
.custom-modal-btn {
    background: linear-gradient(90deg, #ffd633 0%, #ffc833 100%);
    color: #222;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(255,214,51,0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.custom-modal-btn:hover {
    background: linear-gradient(90deg, #ffb800 0%, #ffd633 100%);
    color: #000;
}
@media (max-width: 500px) {
    .custom-modal-content {
        padding: 18px 6vw 18px 6vw;
        max-width: 98vw;
    }
    .custom-modal-header h3 {
        font-size: 1.1em;
    }
}
body.modal-open {
    overflow: hidden;
} 