.modal {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* для Safari */
    z-index: 100;
}

.modal.show {
    display: flex;
}

.modal.hidden {
    display: none;
}

.modal-close {
    position: relative;
    top: 15px;
    right: -165px;
    width: 30px;
    height: 30px;
    background: #DC2622;
    border-radius: 50%;
    z-index: 50;
}

.modal-close::before,
.modal-close::after {
    display: block;
    position: absolute;
    content: "";
    width: 16px;
    height: 2px;
    right: 7px;
    top: 14px;
    background: #fff;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.discount-btn {
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 15px;
    height: 40px;
    font-size: 15px;
    background: #DC2622;
    color: #fff;
}

.discount-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.modal-content {
    max-width: 330px;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0px 0px 12px #535252;
}

.modal-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    
}

.modal-content h3 span {
    color: #DC2622;
}

.modal-content h3,
.modal-content p {
    line-height: 1.1;
}

.modal-content p {
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content__tel {
    border: 1px solid #DC2622 !important;
    font-weight: 700;
}

.modal-content__tel,
.discount-btn {
    border-radius: 12px !important;
    
}

.modal-content__tel,
.discount-btn,
.modal-agree {
    width: 260px !important;
}

.modal-agree {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-agree__check.hidden {
    display: none;
}

.modal-agree__check {
    display: block;
    position: relative;
    width: 15px;
    height: 15px;
    cursor: pointer;
    border: 1px solid #838383;
    border-radius: 3px;
}

input:checked ~ .modal-agree__check::after {
    display: block;
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 9px;
    border-radius: 3px;
    background: #DC2622;
    padding: 3px;
}

.modal-agree__info {
    width: 100%;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

#discount .g-recaptcha {
    transform: scale(0.8);
}