/* 🌌 Общие стили сайта */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #141e30, #243b55);
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
  color: #f5f5f5;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 🔮 Анимация фона */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🔝 Хедер */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

header h1 {
  color: #ff6b6b;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  text-align: center;
}

/* 🔗 Навигация */
.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  font-size: 1rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ff6b6b;
  transform: translateY(-1px);
}

/* 🌐 Кнопки выбора языка */
.lang-buttons {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: none;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: #ff6b6b;
  color: #fff;
}

/* 📄 Основная часть */
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

/* 🧩 Контентные секции */
section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

/* ✨ Анимации */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 💡 Эффект при наведении */
section:hover {
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.25);
  transition: box-shadow 0.6s ease;
}

/* 🏷 Заголовки */
h2 {
  color: #ff6b6b;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* 📎 Ссылки */
a {
  color: #ff6b6b;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* 👤 Блок контактов */
.contact-section p {
  margin: 10px 0;
  font-size: 1.1rem;
}

/* 💼 Портфолио карточки */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
  text-align: left;
}

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

/* 🧾 Список услуг */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 10px 0;
  transition: transform 0.2s ease;
}

.services-list li:hover {
  transform: translateY(-3px);
}

/* 💬 Подписи, цитаты */
.tagline {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ⚓ Футер */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #a0a0a0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

/* --- 💻 На больших экранах гамбургер скрыт --- */
.menu-toggle {
  display: none;
}

/* --- 📱 Мобильное меню, выезжающее снизу --- */
@media (max-width: 768px) {
  header.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: max(env(safe-area-inset-top), 12px) 4vw 12px;
    box-sizing: border-box;
    width: 100%;
  }

  .header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 0 4vw;
    box-sizing: border-box;
  }

  .lang-buttons {
    flex-shrink: 0;
  }

  .menu-toggle {
    display: block !important;
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
  }

  h1 {
    margin: 10px 0;
    font-size: 1.6rem;
    text-align: center;
  }

  /* === Оверлей === */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
  }

  .nav-overlay.active {
    display: block;
  }

  /* === Меню, выезжающее снизу === */
  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 30, 48, 0.95);
    backdrop-filter: blur(10px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 1002;
    box-sizing: border-box;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    transition: color 0.2s ease;
  }

  .main-nav a:hover {
    color: #ff6b6b;
  }

  body.menu-open {
    overflow: hidden;
  }
}