* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e2a3a 0%, #0f1724 100%);
    min-height: 100vh;
    padding: 20px;
    color: #eee;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(30, 40, 50, 0.6);
    border-radius: 25px;
    backdrop-filter: blur(2px);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-size: 2em;
    background: linear-gradient(135deg, #4fc3f7, #ffb74d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    color: #aaa;
    margin-top: 8px;
}

/* Табы переключения этапов */
.stage-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    background: #2c3e4e;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #ffb74d;
    color: #1e2a3a;
    box-shadow: 0 4px 12px rgba(255, 183, 77, 0.4);
}

.tab-btn:hover:not(.active) {
    background: #3e5a6c;
    color: white;
}

/* Этапы */
.stage {
    display: none;
    animation: fadeIn 0.4s;
}

.stage.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* SVG схема */
.pc-schema {
    background: #1e2a2f;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    overflow-x: auto;
}

.pc-svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    background: #1a1f2a;
    border-radius: 12px;
}

.clickable-part {
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
}

.clickable-part:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.hint {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ffb74d;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 30px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #2c3e50, #1e2a3a);
    margin: 8% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { transform: translateY(-60px); opacity: 0;}
    to { transform: translateY(0); opacity: 1;}
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 10px 20px 0 0;
    cursor: pointer;
}

.close:hover {
    color: #ffb74d;
}

#modalBody {
    padding: 20px 30px 30px;
}

/* Тест */
.quiz-container {
    background: #1e2a36;
    border-radius: 20px;
    padding: 20px;
    margin: 15px 0;
}

.question {
    margin-bottom: 28px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3e5a6c;
}

.question p {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.question label {
    display: block;
    margin: 8px 0 8px 20px;
    cursor: pointer;
    transition: 0.2s;
}

.question label:hover {
    color: #ffb74d;
}

.submit-btn {
    background: #ffb74d;
    border: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #ffa01e;
    transform: scale(0.98);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.quiz-result {
    margin-top: 20px;
    padding: 18px;
    border-radius: 16px;
    background: #0f1a24;
    text-align: center;
    font-size: 1.1rem;
}

/* Адаптив */
@media (max-width: 700px) {
    .container {
        padding: 12px;
    }
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .modal-content {
        width: 95%;
        margin: 25% auto;
    }
}