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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.content {
    padding: 40px;
    padding-top: 0px;
}

.content-index{
    padding-left: 100px;
    padding-right: 100px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    text-decoration: none;
}

.btn:hover {
    background: #2980b9;
}

.content-btn{
    padding-top: px;
    margin-top: 20px;
    padding-bottom: px;
    margin-bottom: 20px;
    text-align: center;
    background: #3498db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}

.question {
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
}

.question h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.options {
    display: grid;
    gap: 10px;
}

.option {
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.option.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.result {
    text-align: center;
    padding: 30px;
    padding-top: 0px;
}

.result-score{
    padding: 15px;
    padding-top: 0px;
}

.result h1 {
    margin-bottom: 10px;
}

.score {
    font-size: 3em;
    color: #27ae60;
    margin: 20px 0;
}

.progress {
    background: #ecf0f1;
    height: 10px;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #27ae60;
    transition: width 0.5s;
}

.hidden {
    display: none;
}

.error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

.security-info {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.encrypted-data {
    font-family: monospace;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    word-break: break-all;
    margin: 10px 0;
    font-size: 0.9em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}
.preparation-container {
    max-width: 1000px;
}
        
.profession-selector {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.profession-btn {
    padding: 15px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    transition: all 0.3s;
}

.profession-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}
        
.profession-btn.active {
    background: #3498db;
    color: white;
}

.questions-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.question-card {
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.question-text {
    font-size: 1.1em;
}

.empty-state {
    text-align: center;
    padding: 30px;
    background: white;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    color: #7f8c8d;
}



.stats {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
}

.toggle-answers {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    display: none;
}

.toggle-answers.active {
    display: inline-block;
}

.correct-answer {
    background: #d4edda;
    border-color: #28a745;
    position: relative;
}

.correct-answer::after {
    content: 'Правильный ответ';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}