* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1e1e1e;  /* темно-серый фон */
    font-family: 'Segoe UI', 'Courier New', monospace;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 70%;
    max-width: 900px;
    background: #2b2b2b;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-left: 6px solid #ff6a00;  /* индустриальный оранжевый */
}

/* Прогресс-бар */
.progress-area {
    margin-bottom: 2rem;
}
.progress-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #ff6a00;
    font-weight: 600;
}
.progress-bar {
    background-color: #3a3a3a;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    background-color: #ff6a00;
    width: 0%;
    height: 100%;
    transition: width 0.2s ease;
}

/* Карточка вопроса */
.question-card {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    border: 1px solid #ff6a00;
}
.question-text {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.3;
}
.answer-input {
    width: 100%;
    background: #2b2b2b;
    border: 1px solid #555;
    color: #fff;
    padding: 12px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 2rem;
}
.answer-input:focus {
    outline: none;
    border-color: #ff6a00;
}
.next-button {
    background: #ff6a00;
    border: none;
    color: #1e1e1e;
    font-weight: bold;
    padding: 12px 28px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.next-button:hover {
    background: #ff8c3a;
    box-shadow: 0 0 8px rgba(255,106,0,0.5);
}

.industrial-stats {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #aaa;
    border-top: 1px solid #3a3a3a;
    padding-top: 1rem;
}

/* Страницы загрузки */
.loader-container {
    text-align: center;
    background: #1e1e1e;
    padding: 3rem;
    border-radius: 12px;
    border-left: 6px solid #ff6a00;
    min-width: 400px;
}
.loader-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #ff6a00;
}
.loader-dots span {
    font-size: 2rem;
    animation: blink 1.4s infinite;
    display: inline-block;
    margin: 0 2px;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
.loader-sub {
    margin-top: 1.2rem;
    color: #aaa;
    font-family: monospace;
}
.industrial-led {
    width: 16px;
    height: 16px;
    background-color: #ff6a00;
    border-radius: 50%;
    margin: 20px auto 0;
    box-shadow: 0 0 6px #ff6a00;
}
.blink {
    animation: pulse 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}
@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.9);}
    100% { opacity: 1; transform: scale(1.2);}
}
.final-message {
    text-align: center;
    background: #1e1e1e;
    padding: 3rem;
    border-radius: 12px;
    border-left: 6px solid #ff6a00;
    min-width: 400px;
}
.thankyou-text {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #e0e0e0;
}
.restart-button {
    background: #ff6a00;
    border: none;
    color: #1e1e1e;
    font-weight: bold;
    padding: 12px 28px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}
.restart-button:hover {
    background: #ff8c3a;
    box-shadow: 0 0 8px rgba(255,106,0,0.5);
}