/* ====================================
   СТИЛИ ДЛЯ СИМУЛЯЦИИ БЕЛКОВЫХ СТРУКТУР
   ==================================== */

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* НАВИГАЦИЯ */
.navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-container h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4c51bf;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-btn {
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    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 {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-btn.active {
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
    box-shadow: 0 4px 12px rgba(76, 81, 191, 0.4);
}

/* ОСНОВНОЙ КОНТЕНТ */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

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

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ИНСТРУКЦИЯ ПО ИСПОЛЬЗОВАНИЮ */
.usage-guide {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.usage-guide h3 {
    color: #1976d2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.step-guide {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.step-guide strong {
    display: block;
    color: #1976d2;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ЦЕЛЬ РАБОТЫ */
.learning-objective {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.learning-objective h3 {
    color: #4c51bf;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.learning-objective ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.learning-objective li {
    margin-bottom: 0.5rem;
}

/* СТРУКТУРА БЕЛКОВ */
.protein-structure-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.protein-structure-info h3 {
    color: #4c51bf;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.structure-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.structure-card.primary {
    border-left-color: #ff6b6b;
}

.structure-card.secondary {
    border-left-color: #4ecdc4;
}

.structure-card.tertiary {
    border-left-color: #45b7d1;
}

.structure-card.quaternary {
    border-left-color: #96ceb4;
}

.structure-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.structure-visual {
    height: 80px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* Визуализация структур */
.amino-acid-chain {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.amino-acid {
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
}

.bond {
    color: #333;
    font-weight: bold;
}

.alpha-helix, .beta-sheet {
    width: 30px;
    height: 60px;
    margin: 0 5px;
    border-radius: 15px;
}

.alpha-helix {
    background: linear-gradient(45deg, #4ecdc4, #44b3a8);
    animation: helix-rotate 2s infinite linear;
}

.beta-sheet {
    background: linear-gradient(90deg, #4ecdc4, #44b3a8);
    border-radius: 3px;
}

@keyframes helix-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.protein-fold {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #45b7d1, #2c98c7);
    border-radius: 50%;
    position: relative;
    animation: fold-pulse 1.5s infinite ease-in-out;
}

@keyframes fold-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.subunit {
    width: 20px;
    height: 20px;
    background: #96ceb4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 2px;
}

/* ФАКТОРЫ ДЕНАТУРАЦИИ */
.denaturation-factors {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.denaturation-factors h3 {
    color: #4c51bf;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.factor-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.factor-card.temperature {
    border-left: 5px solid #ff6b6b;
}

.factor-card.ph {
    border-left: 5px solid #4ecdc4;
}

.factor-card.salts {
    border-left: 5px solid #45b7d1;
}

.factor-card.organic {
    border-left: 5px solid #96ceb4;
}

.factor-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.factor-card h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

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

.factor-card li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.factor-card li:before {
    content: "•";
    color: #4c51bf;
    position: absolute;
    left: 0;
}

/* ВЫБОР БЕЛКА */
.protein-selection {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.protein-selection h3 {
    color: #4c51bf;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proteins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.protein-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.protein-card:hover {
    transform: translateY(-5px);
    border-color: #4c51bf;
}

.protein-card.selected {
    border-color: #4c51bf;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.protein-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.protein-viz {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: protein-rotate 3s infinite linear;
}

.albumin-viz {
    background: radial-gradient(circle, #ff6b6b, #ee5a5a);
}

.lysozyme-viz {
    background: radial-gradient(circle, #4ecdc4, #44b3a8);
}

.hemoglobin-viz {
    background: radial-gradient(circle, #45b7d1, #3ea6c7);
}

@keyframes protein-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.protein-card h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.protein-info p {
    margin: 0.3rem 0;
    color: #666;
}

.select-protein-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.select-protein-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ВЫБРАННЫЙ БЕЛОК */
.selected-protein {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.selected-protein h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ЭКСПЕРИМЕНТАЛЬНЫЕ УСЛОВИЯ */
.experimental-conditions {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.experimental-conditions h3 {
    color: #4c51bf;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .conditions-grid {
        grid-template-columns: 1fr;
    }
}

.condition-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.condition-group h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temperature-options,
.ph-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.condition-option:hover {
    background-color: rgba(76, 81, 191, 0.1);
}

.condition-option input[type="checkbox"] {
    accent-color: #4c51bf;
}

/* ПОДГОТОВКА - КНОПКА СТАРТА */
.preparation-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.selected-conditions {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.condition-summary {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem;
    border-radius: 8px;
}

.start-experiment-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.start-experiment-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

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

/* СТАТУС ЭКСПЕРИМЕНТА */
.experiment-status {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.experiment-status h3 {
    color: #4c51bf;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.go-to-prep-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
}

.go-to-prep-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ЛАБОРАТОРНЫЙ ИНТЕРФЕЙС */
.lab-interface {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.condition-controls {
    margin-bottom: 2rem;
}

.control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .control-panel {
        grid-template-columns: 1fr;
    }
}

.temperature-control,
.ph-control {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.temperature-control h4,
.ph-control h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temperature-slider,
.ph-slider {
    margin-bottom: 1rem;
}

.temperature-slider input,
.ph-slider input {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    margin-bottom: 0.5rem;
}

.temp-display,
.ph-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4c51bf;
    margin-bottom: 1rem;
}

.quick-temps,
.quick-phs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.temp-btn,
.ph-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(76, 81, 191, 0.1);
    color: #4c51bf;
    border: 1px solid #4c51bf;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.temp-btn:hover,
.ph-btn:hover {
    background: #4c51bf;
    color: white;
}

.ph-indicator {
    height: 20px;
    border-radius: 10px;
    margin: 0.5rem 0;
    transition: background 0.3s ease;
}

/* ВИЗУАЛИЗАЦИЯ БЕЛКА */
.protein-visualization {
    margin-bottom: 2rem;
}

.protein-visualization h3 {
    color: #4c51bf;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.protein-viewer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .protein-viewer {
        grid-template-columns: 1fr;
    }
}

.protein-display {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.protein-3d {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #4c51bf, #3c3f82);
    border-radius: 50%;
    animation: protein-breathing 2s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

@keyframes protein-breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.protein-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.current-conditions,
.protein-state {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
}

.current-conditions h4,
.protein-state h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.condition-readout {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.temp-readout {
    color: #ff6b6b;
}

.ph-readout {
    color: #4ecdc4;
}

.state-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.state-icon {
    font-size: 1.5rem;
}

.state-text {
    font-weight: 500;
}

.structure-integrity {
    margin-top: 0.5rem;
}

.integrity-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.integrity-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #45a049);
    transition: width 0.5s ease;
    width: 100%;
}

.integrity-text {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    text-align: center;
    display: block;
}

/* ИЗМЕРЕНИЯ */
.measurements h3 {
    color: #4c51bf;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.measurement-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.measure-btn,
.reset-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.measure-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.measure-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* ТАБЛИЦА РЕЗУЛЬТАТОВ */
.results-table {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
}

#results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#results-table th,
#results-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#results-table th {
    background: rgba(76, 81, 191, 0.1);
    font-weight: 600;
    color: #4c51bf;
}

#results-table tr:hover {
    background-color: rgba(76, 81, 191, 0.05);
}

/* АНАЛИЗ */
.analysis-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .analysis-charts {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    color: #4c51bf;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.chart-container canvas {
    width: 100% !important;
    height: 300px !important;
}

/* ВОПРОСЫ АНАЛИЗА */
.analysis-questions {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.analysis-questions h3 {
    color: #4c51bf;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-group {
    margin-bottom: 2rem;
}

.question {
    margin-bottom: 1.5rem;
}

.question h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

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

.question textarea:focus {
    outline: none;
    border-color: #4c51bf;
}

/* ТЕСТ ЗНАНИЙ */
.knowledge-test {
    border-top: 2px solid #e0e0e0;
    padding-top: 2rem;
}

.knowledge-test h3 {
    color: #4c51bf;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-test-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
}

.submit-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.test-results {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

/* ПРОТОКОЛ */
.protocol-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.protocol-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.protocol-header h3 {
    color: #4c51bf;
    margin-bottom: 0.5rem;
}

.protocol-header h4 {
    color: #666;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.protocol-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: left;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-input {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 0.3rem;
    background: transparent;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.info-input:focus {
    outline: none;
    border-bottom-color: #4c51bf;
}

.protocol-sections {
    margin-bottom: 2rem;
}

.protocol-section {
    margin-bottom: 2rem;
}

.protocol-section h4 {
    color: #4c51bf;
    margin-bottom: 1rem;
}

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

.protocol-section textarea:focus {
    outline: none;
    border-color: #4c51bf;
}

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

.generate-protocol-btn,
.save-protocol-btn,
.print-protocol-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generate-protocol-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.save-protocol-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.print-protocol-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.generate-protocol-btn:hover,
.save-protocol-btn:hover,
.print-protocol-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* УВЕДОМЛЕНИЯ */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: block;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #333;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-container h1 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .structure-levels {
        grid-template-columns: 1fr;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .proteins-grid {
        grid-template-columns: 1fr;
    }
}