.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
}

.modal-overlay.is-active {
    display: flex;
}

.modal-content {
    background: rgba(30, 30, 30, 0.8); 
    border-radius: 24px;
    padding: 45px 35px;
    width: 100%;
    max-width: 460px;
    position: relative;
}

.modal-content::before, 
.modal-content::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;

}
.modal-content::before { top: 0; }
.modal-content::after { bottom: 0; }

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.modal-close:hover {
    color: #CFA564;
}

.modal-tittle {
    color: #F5F5F5;
    font-size: 26px;
    font-family: 'Raleway', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.modal-form .input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.modal-form .input-field:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #CFA564;
}

.modal-form textarea.input-field {
    height: 110px;
    resize: none;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    cursor: pointer;
}

.agreement-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.agreement-text a {
    color: #CFA564;
    text-decoration: none;
}

.btn-submit-modal {
    width: 100%;
    background: #CFA564;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-modal:hover {
    background: #B89358;
    box-shadow: 0 0 20px rgba(207, 165, 100, 0.4);
}

/*политика конфедициальности*/
.policy-content {
    max-width: 800px; 
    max-height: 80vh; 
    display: flex;
    flex-direction: column;
}

.policy-wrapper {
    overflow-y: auto; 
    padding-right: 10px;
    margin-top: 10px;
}

.policy-wrapper::-webkit-scrollbar {
    width: 6px;
}
.policy-wrapper::-webkit-scrollbar-thumb {
    background: #CFA564;
    border-radius: 10px;
}

.policy-main-title {
    color: #333; 
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.policy-text h3, .policy-text h4 {
    margin: 20px 0 10px;
    color: #CFA564;
}

.policy-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555; 
}

.policy-text {
    color: rgba(255, 255, 255, 0.85); 
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    text-align: left;
}

.policy-main-tittle {
    color: #F5F5F5;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
}

.policy-text h1 {
    font-size: 22px;
    color: #F5F5F5;
    text-align: center;
    margin-bottom: 10px;
}

.policy-text h2, 
.policy-text h3, 
.policy-text h4 {
    color: #CFA564; 
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
}

.policy-toc ul {
    list-style: none;
    padding: 0;
}

.policy-toc ul li {
    margin-bottom: 12px;
}

.policy-text a, 
.policy-toc a, 
.policy-consent-block a {
    color: #CFA564; 
    text-decoration: none; 
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(207, 165, 100, 0.3); 
}

.policy-text a:hover, 
.policy-toc a:hover, 
.policy-consent-block a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff; 
}

.policy-date {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 30px;
}

.policy-text hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.policy-wrapper::-webkit-scrollbar {
    width: 6px;
}

.policy-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.policy-wrapper::-webkit-scrollbar-thumb {
    background: #CFA564;
    border-radius: 10px;
}

.policy-wrapper::-webkit-scrollbar-thumb:hover {
    background: #B89358;
}

.policy-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-text ul li {
    margin-bottom: 8px;
}