/* Сброс стилей и базовые настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #121212;
  color: #fff;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* Тема */
body.light-theme {
  background: #f5f5f5;
  color: #333;
}

body.light-theme a {
  color: #1a73e8;
}

.theme-switcher {
  font-size: 24px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

body.light-theme .theme-switcher {
  color: #333;
}

/* Навигация */
.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #90cdf4;
}

body.light-theme .nav-link {
  color: #333;
}

body.light-theme .nav-link:hover {
  color: #1a73e8;
}

.mobile-menu {
  display: none;
  background: #1a1a1a;
  padding: 1rem;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 300px;
  height: 100%;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.mobile-menu.active {
  transform: translateX(0);
}

body.light-theme .mobile-menu {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Кнопки */
.glass-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.glass-btn-blue {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(0, 191, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.glass-btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

body.light-theme .glass-btn-blue {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.4), rgba(0, 191, 255, 0.4));
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .glass-btn-blue:hover {
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.6);
}

/* Градиентный текст */
.gradient-text-container {
  background: linear-gradient(90deg, #1e90ff, #00bfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Детали (кнопки с data-target) */
.details-btn {
  background: none;
  border: none;
  color: #90cdf4;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: underline;
  transition: color 0.3s;
}

.details-btn:hover {
  color: #1a73e8;
}

body.light-theme .details-btn {
  color: #1a73e8;
}

body.light-theme .details-btn:hover {
  color: #0d47a1;
}

/* Секции */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Футер */
footer {
  background: #1a1a1a;
  padding: 2rem;
  text-align: center;
}

body.light-theme footer {
  background: #e0e0e0;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animated {
  animation: fadeIn 1s ease-in;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
  }

  section {
    padding: 2rem 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .glass-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .theme-switcher {
    font-size: 20px;
  }
}