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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #1E1E1E;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { 
  height: 75px; 
}

nav a {
  color: #FFFFFF;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}

nav a:hover { 
  color: #FF0000; 
}

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

.reviews-section {
  background: #000;
  padding: 40px;
  border-radius: 16px;
  margin: 40px 0;
}

.reviews-section h2 {
  text-align: center;
  color: #FF0000;
  margin-bottom: 30px;
  font-size: 32px;
}

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

.review-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

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

.review-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.review-card img:hover {
  transform: scale(1.02);
}

.review-card p {
  padding: 15px;
  color: #DDD;
  font-style: italic;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid #FF0000;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

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

footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #333;
  color: #AAA;
  font-size: 16px;
  background: #000;
  margin-top: 40px;
}

footer a { 
  color: #FF0000; 
  margin: 0 8px; 
  text-decoration: none;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav {
    margin-top: 10px;
    width: 100%;
  }
  
  nav a {
    display: inline-block;
    margin: 4px 8px 4px 0;
  }
  
  .reviews-section {
    padding: 20px;
  }
  
  .review-card img {
    height: 150px;
  }
}