html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: #ede8e4;
    background-position: center;
    background-size: cover;
    color: #606060;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.spacer-top {
    padding-top: 56px;
    padding-bottom: 56px;
}

h1 {
    font-size: 45px;
    line-height: 53px;
    margin: 0 0 40px 0;
    font-weight: 600;
    text-align: left;
    color: #2A2E45;
}

h2 {
    font-size: 28px;
    line-height: 36px;
    margin: 0 0 18px 0;
    font-weight: 600;
    text-align: left;
    color: #2A2E45;
}

h3 {
    font-size: 18px;
    line-height: 26px;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-align: left;
    color: #2A2E45;
}

.subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.text {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.muted {
    color: #606060;
}
a {
    color: #6a2931;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
.intro__instruction {
    background: #fafafa;
    border-radius: 20px;
    padding: 20px 30px 20px 30px;
    margin: 30px 0 20px 0;
    font-size: 16px;
    line-height: 25px;
}
.intro__instruction ul {
    list-style: disc;
}

.info-block {
    background: #fafafa;
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.attention-block {
    background: #fdf5f5;
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid rgba(106, 41, 49, 0.1);
}

.info-block p, .attention-block p {
    margin: 0 0 12px 0; 
}

.info-block p:last-child, .attention-block p:last-child {
    margin-bottom: 0;
}

.info-block ul {
    margin-top: 10px;
    margin-bottom: 16px;
}

.info-block li {
    margin-bottom: 12px;
    line-height: 1.5;
}
ul, ol {
    margin: 15px 0 0 0;
    padding-left: 20px;
}
 ul li, ol li {
    padding-bottom: 5px;
}
.test__wrapper {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 16px 25px #0000000a;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
}


.divider {
    height: 1px;
    background: #0000000a;
}

label {
    display: block;
    width: 100%;
    font-size: 14px;
    margin-bottom: 8px;
}

.file {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid #0000001f;
    background: #fff;
    color: #2A2E45;
}

.input-text {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #0000001f;
    background: #fff;
    color: #2A2E45;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.input-text:focus {
    border-color: #6a2931;
}
.intro__attention p{
    margin: 0;
    color: #6a2931!important;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
}
.intro__attention{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
}
.intro__attention svg{
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    opacity: 0.8;
    margin-right: 15px;
    margin-left: 10px;
   
}

.iti {
    width: 100%;
}
.iti__flag-container {
    border-radius: 12px 0 0 12px;
}

.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

button,
.btn {
    background-color: #6a2931;
    border: none;
    display: block;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    border-radius: 20px;
    color: #fff;
    padding: 14px 21px;
    transition: all 0.5s ease;
    margin-top: 22px;
}

button:active,
.btn:active {
    opacity: 0.95;
}

.hint {
    color: #606060;
    font-size: 13px;
}

#error {
    background: rgba(176, 0, 32, 0.08);
    border: 1px solid rgba(176, 0, 32, 0.25);
    padding: 12px 12px;
    border-radius: 12px;
    color: #7a0016;
}

.footer-note {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.6;
    color: #606060;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
}

@media (min-width: 768px) {
.results-grid {
    grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 768px) {
    .intro__instruction, .info-block, .attention-block {
        padding: 20px!important;
    }
}
.result-image {
    width: 100%;
    border-radius: 20px;
    border: 1px solid #00000014;
    background: #fff;
    display: none;
}

.result-error {
display: none;
padding: 14px 14px;
border-radius: 20px;
border: 1px solid rgba(176, 0, 32, 0.18);
background: rgba(176, 0, 32, 0.06);
color: #7a0016;
font-size: 14px;
line-height: 1.6;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(237, 232, 228, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0px 16px 25px #0000000a;
    text-align: left;
}

.modal-content h2 {
    font-size: 28px;
    line-height: 36px;
    margin: 0 0 18px 0;
    font-weight: 600;
    text-align: left;
    color: #2A2E45;
}

.modal-content p {
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #606060;
    text-align: left;
}

.modal-content form {
    margin-top: 24px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #ede8e4;
    border-radius: 12px;
    cursor: pointer;
    color: #606060;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}
.auth-tab.active {
    background: #6a2931;
    color: #fff;
}
.auth-input-group {
    display: none;
}
.auth-input-group.active {
    display: block;
}

#authError {
    background: rgba(176, 0, 32, 0.08);
    border: 1px solid rgba(176, 0, 32, 0.25);
    padding: 12px 12px;
    border-radius: 12px;
    color: #7a0016;
    font-size: 14px;
}
::marker {
    color: #6a2931;
    font-weight: 600;
}
.intro__banner{
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    max-height: 200px;
}
.intro__banner img{
  width: 80%!important;
  height: auto!important;
}
b {
    color: #2A2E45;
}
.loader-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px 22px;
    box-shadow: 0px 16px 25px #0000000a;
    border: 1px solid #00000014;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Manrope", sans-serif;
}

.loader-text {
    color: #2A2E45;
    font-weight: 600;
}

.loader-subtext {
    color: #606060;
    font-size: 13px;
    margin-top: 2px;
}

.spinner {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(106, 41, 49, 0.18);
    border-top-color: #6a2931;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
@media(max-width: 768px){
    h1{
        font-size: 35px;
        line-height: 40px;
        margin-top: 25px;
    }
    .test__wrapper {
        padding: 20px!important;
    }
    .intro__attention{
        margin-bottom: 20px;
        flex-direction: column;
        gap: 10px;
                justify-content: flex-start;
        align-items: flex-start;
    }
    .modal-content{
        padding: 30px 20px;
    }
    .modal-content p {
        margin: 0 0 16px 0;
        font-size: 14px;
        line-height: 1.4;
    }
    .subtitle, .intro__instruction{
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Footer */
.copyright{
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 50px;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    margin-top: 16px; 
    width: 100%; 
    padding: 0 5px;
    padding-bottom: 40px;
}
.copyright div{
    color: #606060;
    font-size: 14px;
}
.copyright a{
    text-decoration: none;
    color:#606060;
}
.copyright a:hover{
    color:#6a2931;
}
@media(max-width: 768px){
    .copyright div{
        font-size: 12px;
    }
    .copyright .container{
        padding: 0 15px;
    }
}
/* End Footer */