/* CSS для симуляции лабораторной работы по извлечению ДНК */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Навигация */
.navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #9C27B0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navigation h1 {
    color: #7B1FA2;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #7B1FA2, #9C27B0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Основной контент */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.content-section.active {
    display: block;
}

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

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h2 {
    color: #7B1FA2;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

h3 {
    color: #7B1FA2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Теоретический раздел */
.theory-overview {
    margin-bottom: 3rem;
}

.learning-objective {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border: 2px solid #9C27B0;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.learning-objective h3 {
    color: #7B1FA2;
    margin-bottom: 1rem;
}

.dna-structure {
    margin-bottom: 3rem;
}

.dna-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.dna-card {
    background: linear-gradient(135deg, #E8EAF6, #C5CAE9);
    border: 2px solid #3F51B5;
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.dna-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(63, 81, 181, 0.2);
}

.dna-card h4 {
    color: #303F9F;
    margin-bottom: 1rem;
}

.dna-card ul {
    list-style: none;
    padding: 0;
}

.dna-card li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.dna-card li:before {
    content: "🧬";
    position: absolute;
    left: 0;
}

/* Принципы экстракции */
.extraction-principles {
    margin-bottom: 3rem;
}

.extraction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-content h4 {
    color: #2E7D32;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.step-content li {
    padding: 0.25rem 0;
    color: #666;
    position: relative;
    padding-left: 1rem;
}

.step-content li:before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Правила безопасности */
.safety-rules {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border: 2px solid #F44336;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.safety-rules h3 {
    color: #D32F2F;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.safety-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.safety-item i {
    color: #F44336;
    font-size: 1.5rem;
    min-width: 30px;
}

/* Подготовка */
.preparation-area {
    margin: 2rem 0;
}

.materials-section {
    margin-bottom: 3rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.material-category {
    background: white;
    border: 2px solid #FF9800;
    border-radius: 15px;
    padding: 1.5rem;
}

.material-category h4 {
    color: #F57C00;
    margin-bottom: 1rem;
    text-align: center;
}

.materials-list {
    display: grid;
    gap: 1rem;
}

.material-item {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #FF9800;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-item:hover {
    background: rgba(255, 152, 0, 0.2);
    transform: translateY(-3px);
}

.material-item.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.material-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.material-item h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.material-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.select-material {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-material:hover {
    background: linear-gradient(135deg, #F57C00, #FF9800);
}

.reagents-list {
    display: grid;
    gap: 1rem;
}

.reagent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 10px;
}

.reagent-bottle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976D2;
    font-weight: 500;
}

.reagent-bottle i {
    font-size: 1.2rem;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(96, 125, 139, 0.1);
    border-radius: 8px;
    color: #455A64;
}

.equipment-item i {
    color: #607D8B;
}

/* Выбранные материалы */
.selected-materials {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.selected-display {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #4CAF50;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.material-properties {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
}

/* Протокол подготовки */
.protocol-preparation {
    background: white;
    border: 2px solid #2196F3;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.preparation-steps {
    margin: 2rem 0;
}

.prep-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.prep-step:hover {
    background: rgba(33, 150, 243, 0.1);
}

.prep-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.prep-checkbox:checked + label {
    color: #4CAF50;
    text-decoration: line-through;
}

.preparation-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto;
}

.preparation-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #388E3C, #4CAF50);
    transform: translateY(-2px);
}

.preparation-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Эксперимент */
.experiment-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #9C27B0;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #ddd;
    z-index: 1;
}

.progress-step {
    text-align: center;
    z-index: 2;
    background: white;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    color: #666;
    border: 3px solid #ddd;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    color: white;
    border-color: #9C27B0;
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border-color: #4CAF50;
}

/* Рабочее место */
.experiment-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.workspace-left {
    display: grid;
    gap: 2rem;
}

.lab-bench {
    background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
    border: 3px solid #607D8B;
    border-radius: 15px;
    padding: 2rem;
    min-height: 300px;
}

.lab-bench h3 {
    color: #455A64;
    margin-bottom: 2rem;
    text-align: center;
}

.bench-equipment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    height: 200px;
}

.equipment-slot {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.equipment-slot:hover {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.1);
}

.mortar, .test-tubes, .filter {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mortar:hover, .test-tubes:hover, .filter:hover {
    transform: scale(1.05);
}

.mortar i, .filter i {
    font-size: 2rem;
    color: #607D8B;
    margin-bottom: 0.5rem;
    display: block;
}

.mortar span, .filter span {
    display: block;
    color: #455A64;
    font-size: 0.9rem;
}

.test-tubes {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.tube {
    width: 20px;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, transparent 80%, #E3F2FD 80%, #BBDEFB 100%);
    border: 2px solid #2196F3;
    border-radius: 0 0 10px 10px;
    position: relative;
}

.tube::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -2px;
    right: -2px;
    height: 5px;
    background: #2196F3;
    border-radius: 10px 10px 0 0;
}

/* Полка с реактивами */
.reagent-shelf {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border: 3px solid #2196F3;
    border-radius: 15px;
    padding: 2rem;
}

.reagent-shelf h3 {
    color: #1565C0;
    margin-bottom: 2rem;
    text-align: center;
}

.reagent-bottles {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.bottle {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bottle:hover {
    transform: translateY(-5px);
}

.bottle-liquid {
    width: 40px;
    height: 80px;
    border: 3px solid #333;
    border-radius: 0 0 20px 20px;
    position: relative;
    margin: 0 auto 0.5rem;
}

.bottle-liquid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 10px;
    right: 10px;
    height: 15px;
    background: #666;
    border-radius: 5px;
}

.detergent {
    background: linear-gradient(to bottom, transparent 20%, #FFD54F 20%, #FFC107 100%);
}

.salt-solution {
    background: linear-gradient(to bottom, transparent 15%, #E1F5FE 15%, #B3E5FC 100%);
}

.ethanol {
    background: linear-gradient(to bottom, transparent 25%, #F3E5F5 25%, #E1BEE7 100%);
}

.bottle span {
    display: block;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Правая панель эксперимента */
.workspace-right {
    display: grid;
    gap: 2rem;
}

.experiment-steps {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
    min-height: 300px;
}

.observations {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border: 2px solid #FF9800;
    border-radius: 15px;
    padding: 2rem;
}

.observations h4 {
    color: #F57C00;
    margin-bottom: 1rem;
}

#observation-log {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.observation-entry {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #FF9800;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 0 5px 5px 0;
    font-size: 0.9rem;
}

/* Управление экспериментом */
.experiment-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.control-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.start-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.start-btn:hover {
    background: linear-gradient(135deg, #388E3C, #4CAF50);
    transform: translateY(-2px);
}

.next-btn {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    color: white;
}

.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    transform: translateY(-2px);
}

.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.reset-btn {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    transform: translateY(-2px);
}

/* Анализ результатов */
.results-overview {
    margin: 2rem 0;
}

.result-card {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border: 2px solid #9C27B0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.dna-visualization {
    margin: 2rem 0;
    min-height: 200px;
    border: 2px dashed #9C27B0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
}

.dna-strands {
    font-size: 3rem;
    color: #9C27B0;
    animation: dnaFloat 3s ease-in-out infinite;
}

@keyframes dnaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Вопросы для анализа */
.analysis-questions {
    margin: 3rem 0;
}

.question-card {
    background: white;
    border: 2px solid #2196F3;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-card h4 {
    color: #1565C0;
    margin-bottom: 1rem;
}

.question-card textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.question-card textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Тест знаний */
.theoretical-test {
    background: linear-gradient(135deg, #E8EAF6, #C5CAE9);
    border: 2px solid #3F51B5;
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
}

.theoretical-test h3 {
    color: #303F9F;
}

.test-question {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(63, 81, 181, 0.2);
}

.test-question h4 {
    color: #303F9F;
    margin-bottom: 1rem;
}

.test-options {
    display: grid;
    gap: 0.5rem;
}

.test-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.test-option:hover {
    background: rgba(63, 81, 181, 0.1);
}

.test-option input[type="radio"] {
    margin: 0;
}

/* Протокол */
.protocol-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #607D8B;
}

.protocol-header {
    border-bottom: 2px solid #607D8B;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.student-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: #607D8B;
    box-shadow: 0 0 0 3px rgba(96, 125, 139, 0.1);
}

.protocol-content h3 {
    color: #455A64;
    margin: 2rem 0 1rem;
}

.protocol-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-btn {
    background: linear-gradient(135deg, #607D8B, #78909C);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: linear-gradient(135deg, #455A64, #607D8B);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(96, 125, 139, 0.3);
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 2rem;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Система помощи */
.help-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.help-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.3);
    transition: all 0.3s ease;
}

.help-toggle:hover {
    background: linear-gradient(135deg, #7B1FA2, #9C27B0);
    transform: scale(1.1);
}

.help-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid #9C27B0;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.help-content.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.help-content h3 {
    color: #7B1FA2;
    margin-bottom: 1rem;
    text-align: center;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.notification.error {
    background: linear-gradient(135deg, #F44336, #E57373);
}

.notification.warning {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.notification.show {
    display: flex;
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.notification button:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .experiment-workspace {
        grid-template-columns: 1fr;
    }
    
    .bench-equipment {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .dna-info-grid,
    .extraction-steps,
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .reagent-bottles {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .bench-equipment {
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto;
    }
    
    .equipment-slot {
        height: 80px;
    }
    
    .experiment-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .help-content {
        width: 280px;
        right: -10px;
    }
    
    .student-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-bar::before {
        display: none;
    }
}