* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.main-card {
    background-color: #ffffff;
    width: 95%;
    max-width: 900px;
    padding: 60px 75px; 
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Логотип-флаг */
.logo-container {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.main-logo-img {
    height: 250px; 
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}
.logo-container::after {
    content: "";
    display: block;
    width: 220px;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 75%);
    margin-top: -8px;
    z-index: 1;
}

.brand-subtitle {
    font-size: 14.5px;
    color: #444444;
    margin: 0 0 40px 0;
}

/* Контейнер строки предупреждения */
.warning-row-container {
    width: 100%;
    overflow-x: auto; 
    margin-bottom: 30px;
    white-space: nowrap; 
}

.warning-text-single-line {
    font-size: 12.5px;
    color: #222222;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1.4;
}
.warning-line {
    color: #d30000;
    font-weight: bold;
    font-size: 16px;
    margin-right: 6px;
}

.form-container {
    width: 100%;
    max-width: 780px; 
    margin: 0 auto;
}

/* Поля ввода */
.input-field {
    width: 100%;
    padding: 14px 18px; 
    border: 1px solid #b5bfc9;
    border-radius: 4px;
    font-size: 15px;
    color: #111;
    outline: none;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}
.input-field:focus {
    border-color: #666;
}
.input-field::placeholder {
    color: #999999;
}

.captcha-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

/* Капча */
.captcha-text-box {
    width: 40%;
    height: 50px;
    border: 1px solid #b5bfc9;
    border-radius: 4px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}
.captcha-text-box span {
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 26px;
    margin: 0 5px;
}

.captcha-input {
    width: 65%;
    margin-bottom: 0;
}

.terms-link-text {
    font-size: 11px;
    color: #777777;
    margin: 25px 0;
}
.terms-link-text a {
    color: #0066cc;
    text-decoration: underline;
}

/* Кнопка Verify */
.btn-verify {
    background-color: #bd0000;
    color: #ffffff;
    border: none;
    padding: 15px 75px; 
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-bottom: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-verify:hover {
    background-color: #a00000;
}

/* Таблица информации */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.info-table th {
    font-size: 14px;
    color: #111111;
    padding: 12px 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #444444;
}
.info-table td {
    font-size: 14px;
    color: #222222;
    padding: 15px 10px;
    text-align: left;
    font-weight: 500;
}

/* Модальные окна */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: none; justify-content: center; align-items: center; z-index: 999; }
.modal-content { background: #fff; padding: 30px; border-radius: 4px; max-width: 500px; width: 90%; border: 1px solid #ccc; text-align: left; }
.modal-body-text { font-size: 13px; color: #444; line-height: 1.5; margin: 15px 0; }
.btn-modal-close { padding: 8px 20px; background: #666; color: #fff; border: none; cursor: pointer; border-radius: 4px; }
.result-card { background-color: #ffffff; border: 1px solid #cccccc; width: 90%; max-width: 450px; padding: 25px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-align: left; }
.result-header { font-size: 15px; font-weight: bold; color: #222222; margin-bottom: 15px; }
.result-body { font-size: 13.5px; color: #444444; line-height: 1.5; margin-bottom: 25px; }
.result-footer { display: flex; justify-content: flex-end; }
.btn-result-close { background-color: #bd0000; color: #ffffff; border: none; padding: 8px 20px; font-size: 12px; font-weight: bold; border-radius: 4px; cursor: pointer; }

/* =========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================= */
@media (max-width: 600px) {
    body {
        background-color: #ffffff;
        align-items: flex-start;
    }
    
    .main-card {
        width: 100%;
        max-width: 100%;
        padding: 35px 24px;
        border: none;
        box-shadow: none;
    }

    .main-logo-img {
        height: 160px;
    }
    .logo-container::after {
        width: 180px;
    }

    .brand-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .warning-row-container {
        white-space: normal;
        overflow-x: visible;
        display: block;
        margin-bottom: 25px;
    }

    .warning-text-single-line {
        font-size: 12px;
        display: block;
        text-align: center;
        line-height: 1.5;
    }

    .form-container {
        max-width: 100%;
    }

    .captcha-row {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .captcha-text-box {
        width: 100%;
        height: 52px;
    }

    .captcha-input {
        width: 100%;
    }

    .btn-verify {
        width: 100%;
        max-width: 100%;
        padding: 14px 0;
        font-size: 15px;
        margin-bottom: 40px;
    }

    .info-table th, .info-table td {
        font-size: 14px;
        padding: 12px 5px;
    }
}
