/* === БАЗОВЫЙ СТИЛЬ СТРАНИЦЫ === */

/* Подключение современного шрифта */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  color: #e5e5e5;
  background: #0c0c0c;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

/* === ТИПОГРАФИКА === */

h1 {
  font-size: 54px;
  font-weight: 600;
  margin: 40px 0 20px;
}

h2 {
  font-size: 36px;
  font-weight: 500;
  margin: 30px 0 14px;
}

h3 {
  font-size: 28px;
  font-weight: 500;
  margin: 24px 0 10px;
}

p {
  margin: 10px 0 16px;
  font-size: 18px;
}

/* === ССЫЛКИ === */

a {
  color: #00ffaa;
  text-decoration: none;
  transition: opacity 0.25s;
}

a:hover {
  opacity: 0.7;
}

/* === СТИЛЬНЫЕ КНОПКИ === */

.btn-modern {
  display: inline-block;
  padding: 14px 32px;
  background: #111;
  border-radius: 8px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.btn-modern:hover {
  background: #00ffaa;
  color: #000;
  border-color: #00ffaa;
  transform: translateY(-2px);
}

/* === РАДУЖНЫЙ ХОВЕР ДЛЯ КНОПКИ PORTFOLIO === */
.portfolio-btn:hover {
  animation: rainbowBlink 0.8s infinite linear;
  color: #000 !important;
}

@keyframes rainbowBlink {
  0% { background: red; }
  16% { background: orange; }
  33% { background: yellow; }
  50% { background: green; }
  66% { background: blue; }
  83% { background: indigo; }
  100% { background: violet; }
}

/* === ОБЩИЕ ЭЛЕМЕНТЫ === */

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

/* Карточки для секций */
.card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  transition: background 0.3s;
}

.card:hover {
  background: #171717;
}

/* Градиентные линии разделов */
.divider {
  height: 2px;
  width: 100%;
  margin: 40px 0;
  background: linear-gradient(to right, transparent, #00ffaa, transparent);
}

/* === АДАПТИВ === */

@media (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  p  { font-size: 16px; }
  .btn-modern { padding: 12px 24px; font-size: 15px; }
}