:root {
    --primary-color: #1a252f; /* Глубокий темно-синий */
    --secondary-color: #2c3e50; /* Средний синий */
    --accent-color: #d35400; /* Оранжевый акцент */
    --accent-hover: #e67e22; /* Темнее оранжевый для hover */
    --background-color: #f5f7fa; /* Светлый фон */
    --text-color: #2c3e50;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: #f0f2f5;
    /* DESIGNER'S NOTE: Чтобы убрать фоновый узор, просто удалите строку 'background-image' ниже. */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232c3e50' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--primary-color);
    padding: 25px 0;
    box-shadow: 0 4px 15px var(--shadow-color);
    border-bottom: 2px solid var(--accent-color);
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--white-color);
    display: block;
}

.logo-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.header-contact {
    text-align: right;
}

.work-time {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Main Content */
.main {
    padding: 60px 0;
    flex: 1;
}

.quiz-container {
    background-color: #e2e6ea;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.quiz-header p {
    font-size: 18px;
    color: var(--secondary-color);
}

/* Quiz Steps */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.step-counter {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.step-counter .current-step {
    color: var(--accent-color);
    font-weight: 700;
}

.question-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 35px;
    color: var(--primary-color);
    font-weight: 600;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    display: block;
    background-color: var(--white-color);
    border: 2px solid var(--border-color);
    padding: 20px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.option:hover {
    border-color: var(--accent-color);
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.option input[type="radio"] {
    display: none;
}

.option input[type="radio"]:checked + span {
    color: var(--accent-color);
    font-weight: 600;
}

.option input[type="radio"]:checked + span::before {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--white-color) inset;
    transform: translateY(-50%) scale(1.05);
}

.option:has(input[type="radio"]:checked) {
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.option span {
    position: relative;
    padding-left: 40px;
    font-size: 18px;
}

.option span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background-color: var(--white-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation */
.quiz-navigation {
    text-align: center;
    margin-top: 40px;
}

.next-btn {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    color: var(--white-color);
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.3);
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(211, 84, 0, 0.4);
}

.next-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    font-size: 14px;
}

.footer-content a {
    color: var(--white-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: var(--accent-color);
}

.footer-disclaimer {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 30px;
    }

    .quiz-header h1 {
        font-size: 28px;
    }

    .question-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-contact {
        text-align: center;
    }

    .quiz-header h1 {
        font-size: 24px;
    }

    .question-title {
        font-size: 20px;
    }
    
    .option span {
        font-size: 16px;
    }

    .next-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}
