.agat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 99999;
}

.agat-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.agat-modal-window {
    background: #fff;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: agatModalIn 0.35s ease;
}

@keyframes agatModalIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.agat-modal-title {
    font-size: 26px;
    margin-bottom: 16px;
    color: #0d4678; /* фирменный тёплый синий */
}

.agat-modal-text {
    font-size: 17px;
    color: #000;
    margin-bottom: 24px;
}

.agat-modal-actions {
    display: flex;
    gap: 12px;
}

.agat-modal-btn-primary {
    background: #c45a1a; /* рыже‑медный */
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.agat-modal-btn-primary:hover {
    background: #a94d16;
}

.agat-modal-btn-secondary {
    background: #e5e5e5;
    color: #000;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s;
}

.agat-modal-btn-secondary:hover {
    background: #d2d2d2;
}
/* ====== БАЗА ====== */
.tech-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 99999;
    padding: 20px; /* важно для мобильных */
}

.tech-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    width: 420px;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Кнопка закрытия */
.tech-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* Поля */
.tech-modal-content .form-group {
    margin-bottom: 18px;
}

.tech-modal-content input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Кнопка отправки */
.tech-modal-content button[type="submit"] {
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    border-radius: 10px;
}

/* ====== АДАПТИВ ====== */
@media (max-width: 480px) {

    .tech-modal {
        padding: 10px;
    }

    .tech-modal-content {
        width: 100%;
        padding: 22px;
        border-radius: 12px;
    }

    .tech-modal-close {
        font-size: 26px;
        right: 10px;
        top: 10px;
    }

    .tech-modal-content h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .tech-modal-content input {
        font-size: 15px;
        padding: 10px;
    }

    .tech-modal-content button[type="submit"] {
        font-size: 17px;
        padding: 12px 0;
    }
}
@media (max-width: 600px) {
    .call-btn {
        display: none !important;
    }
}
