/* styles/main.css */

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

body {
  font-family: 'Open Sans', sans-serif; /* Основной текст */
  line-height: 1.7;
  color: #2F3E4E; /* Тёмно-серо-синий */
  background: linear-gradient(135deg, #F5F7FA, #E6EEF5, #F0F4F8); /* Градиент: светло-серо-голубой */
  overflow-x: hidden;
  position: relative;
}

/* Анимация */
.metallic-in {
  opacity: 0;
  transform: translateY(25px) scale(0.97);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.metallic-in.metallic-applied {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Декоративный элемент (сияющие точки/волны) */
.shine-element {
  position: fixed;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  animation: shine-pulse 10s infinite alternate ease-in-out;
}

.shine-element:nth-of-type(1) {
  top: 20%;
  left: 15%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.15) 0%, transparent 70%);
  animation-delay: 0s;
}

.shine-element:nth-of-type(2) {
  bottom: 25%;
  right: 20%;
  background: radial-gradient(circle, rgba(192, 192, 192, 0.15) 0%, transparent 70%);
  animation-delay: 2.5s;
}

@keyframes shine-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.6); opacity: 0.1; }
}

/* Шапка */
header {
  background: linear-gradient(90deg, #40E0D0, #708090, #C0C0C0); /* Градиент: бирюза -> тусклый серый -> серебро */
  padding: 1.4rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.2); /* Бирюзовая тень */
  border-bottom: 1px solid #B0C4DE; /* Светло-стальной */
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 a {
  color: #F5F7FA; /* Контраст с фоном */
  text-decoration: none;
  font-family: 'Raleway', sans-serif; /* Заголовок */
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #F5F7FA; /* Контраст с фоном */
  text-decoration: none;
  font-family: 'Open Sans', sans-serif; /* Основной текст */
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #48D1CC; /* Более яркий бирюзовый */
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, #40E0D0, #C0C0C0); /* Бирюзово-серебряный */
  transition: width 0.4s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Основной контент */
main {
  max-width: 1400px;
  margin: 3.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.2rem;
  position: relative;
}

main section {
  background-color: #FFFFFF; /* Белый */
  padding: 2.8rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(64, 224, 208, 0.12); /* Бирюзовый */
  border: 1px solid #E0E6F0; /* Светло-серо-голубой */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

main section:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(192, 192, 192, 0.18); /* Серебристый */
}

/* Эффект "металлического блеска" при наведении */
main section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: rotate(10deg) scale(0.8);
  z-index: -1;
  pointer-events: none;
}

main section:hover::before {
  opacity: 0.8;
  transform: rotate(10deg) scale(1);
  animation: shine-sweep 1.5s infinite alternate;
}

@keyframes shine-sweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Заголовки */
h1, h2 {
  font-family: 'Raleway', sans-serif; /* Заголовок */
  color: #40E0D0; /* Бирюзовый */
  margin-bottom: 1.3rem;
  line-height: 1.2;
  text-align: center;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2rem;
}

/* Параграфы */
p {
  margin-bottom: 1.2rem;
  color: #556B6B; /* Средне-серо-зелёный */
  font-size: 1.05rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background: linear-gradient(135deg, #40E0D0, #C0C0C0); /* Бирюзово-серебристый */
  color: #F5F7F9; /* Контраст с градиентом */
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  margin-top: 1.3rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.25);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(192, 192, 192, 0.35); /* Серебристый */
  background: linear-gradient(135deg, #32CDCC, #A9A9A9); /* Темнее */
}

.btn-outline {
  background: transparent;
  border: 2px solid #40E0D0; /* Бирюзовый */
  color: #40E0D0; /* Бирюзовый */
}

.btn-outline:hover {
  background: #40E0D0; /* Бирюзовый */
  color: #F5F7FA; /* Контраст */
}

/* Форма */
form {
  background-color: #FFFFFF; /* Белый */
  padding: 2.2rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(64, 224, 208, 0.15); /* Бирюзовый */
  border: 1px solid #DDE5F0; /* Нейтральный светлый */
  max-width: 100%;
  margin: 2rem 0;
}

form label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #2F3E4E; /* Тёмно-серо-синий */
  font-family: 'Open Sans', sans-serif;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #B0E0E6; /* Светло-бирюзовый */
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background-color: #F8FDFF; /* Очень светло-бирюзовый */
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #40E0D0; /* Бирюзовый */
}

form button {
  width: 100%;
  max-width: 260px;
}

/* Информация о контактах */
.contact-info {
  text-align: left;
  margin-top: 1.5rem;
  padding: 1.1rem;
  background-color: #F8FDFF; /* Очень светло-бирюзовый */
  border-radius: 6px;
  border-left: 3px solid #40E0D0; /* Бирюзовый */
}

/* Подвал */
footer {
  background: linear-gradient(135deg, #2F3E4E, #40E0D0); /* Градиент: тёмно-серо-синий в бирюзу */
  color: #E0E6F0; /* Светло-серо-голубой */
  padding: 3.2rem 2rem 1.6rem;
  margin-top: 4.2rem;
  text-align: center;
  border-top: 1px solid #C0C0C0; /* Серебристый */
}

footer nav {
  margin-bottom: 1.6rem;
}

footer a {
  color: #E0E6F0; /* Светло-серо-голубой */
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  transition: color 0.3s;
}

footer a:hover {
  color: #48D1CC; /* Более яркий бирюзовый */
}

footer p {
  font-size: 0.9rem;
  color: #aaa;
}

/* Адаптивность */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.2rem;
  }

  header {
    padding: 1.2rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  form {
    padding: 1.7rem;
  }
}