/* Стили для виртуальной лаборатории биологии */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.plant-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.plant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-item {
  border-left: 4px solid #86C232;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

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

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

.protocol-section {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  background: #f9fafb;
}

.protocol-section h3 {
  background: #2d5016;
  color: white;
  padding: 0.75rem 1rem;
  margin: 0;
  border-radius: 0.375rem 0.375rem 0 0;
}

.protocol-content {
  padding: 1rem;
}

.interactive-image {
  position: relative;
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
}

.interactive-image:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.interactive-image:hover .image-overlay {
  opacity: 1;
}

.btn-primary {
  background: #2d5016;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1e3a0f;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #61A5C2;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #4a8ba8;
}

/* Анимации */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Стили для форм */
.form-input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2d5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 4rem;
}

/* Стили для сравнительной таблицы */
.comparison-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  text-align: left;
}

.comparison-table th {
  background: #2d5016;
  color: white;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: #f9fafb;
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}