* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 700px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #1e3c72);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

h1 {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
    outline: none;
    border-color: #1e3c72;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

.btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-secondary:hover {
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.3);
}

/* Прелоадер */
.loader {
    display: none;
    margin: 30px auto;
    width: 60px;
    height: 60px;
    position: relative;
}

.loader.active {
    display: block;
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    display: none;
    color: #1e3c72;
    font-weight: 600;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text.active {
    display: block;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Результаты */
.result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result.high {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.result.medium {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.result.low {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.result.trusted {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.result h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    display: inline-block;
    width: 180px;
    font-weight: 600;
}

.result-item .value {
    word-wrap: break-word;
}

.error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2d3748;
}

.footer {
    margin-top: 40px;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .result-item strong {
        width: 140px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    input[type="text"], input[type="email"], input[type="tel"] {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .result-item strong {
        width: 120px;
        display: block;
        margin-bottom: 5px;
    }
}

