/* styles/main.css */

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

body {
  font-family: 'Work Sans', sans-serif; /* Основной текст */
  line-height: 1.7;
  color: #4B0082; /* Тёмно-фиолетовый */
  background: linear-gradient(135deg, #FDF0F3, #F5F0FA, #FFF0F5); /* Градиент: светло-розовый -> светло-фиолетовый -> лаванда */
  overflow-x: hidden;
  position: relative;
}

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

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

/* Декоративный элемент (грациозные линии) */
.graceful-line {
  position: fixed;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #DA70D6, #FF6347, transparent);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.graceful-line:nth-of-type(1) {
  top: 25%;
  transform: rotate(-3deg);
}

.graceful-line:nth-of-type(2) {
  bottom: 30%;
  transform: rotate(2deg);
}

/* Шапка */
header {
  background: linear-gradient(90deg, #DA70D6, #8A2BE2, #FF6347); /* Градиент: орхидея -> сине-фиолетовый -> томат */
  padding: 1.4rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(218, 112, 214, 0.25);
  border-bottom: 2px solid #FFB6C1; /* Светло-розовая граница */
}

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

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

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

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

nav a:hover {
  color: #FFB6C1; /* Светло-розовый */
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, #DA70D6, #FF6347); /* Фиолетово-красный */
  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(218, 112, 214, 0.1); /* Розовый */
  border: 1px solid #E6E6FA; /* Бледно-фиолетовая граница */
  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(255, 99, 71, 0.15); /* Красный */
}

/* Эффект "сияния" при наведении */
main section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(218, 112, 214, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  pointer-events: none;
  transform: rotate(15deg);
}

main section:hover::before {
  opacity: 1;
}

/* Заголовки */
h1, h2 {
  font-family: 'Playfair Display', serif; /* Заголовок */
  color: #8A2BE2; /* Сине-фиолетовый */
  margin-bottom: 1.3rem;
  line-height: 1.2;
  text-align: center;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 1.9rem;
}

/* Параграфы */
p {
  margin-bottom: 1.2rem;
  color: #555;
  font-size: 1.05rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background: linear-gradient(135deg, #DA70D6, #FF6347); /* Розово-красный */
  color: #FDF0F3; /* Контраст с градиентом */
  text-decoration: none;
  font-family: 'Work 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(218, 112, 214, 0.3); /* Розовый */
}

.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.6s;
}

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

.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4); /* Красный */
  background: linear-gradient(135deg, #c562c5, #e5583f); /* Темнее */
}

.btn-outline {
  background: transparent;
  border: 2px solid #DA70D6; /* Орхидея */
  color: #DA70D6; /* Орхидея */
}

.btn-outline:hover {
  background: #DA70D6; /* Орхидея */
  color: #FDF0F3; /* Контраст */
}

/* Форма */
form {
  background-color: #FFFFFF; /* Белый */
  padding: 2.2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(218, 112, 214, 0.15); /* Розовый */
  border: 1px solid #DDA0DD; /* Светло-фиолетовая граница */
  max-width: 100%;
  margin: 2rem 0;
}

form label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #4B0082; /* Тёмно-фиолетовый */
  font-family: 'Work Sans', sans-serif;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #D8BFD8; /* Светло-фиолетовый */
  border-radius: 4px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  background-color: #FDF5F7; /* Светло-розовый фон */
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #DA70D6; /* Орхидея */
}

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

/* Информация о контактах */
.contact-info {
  text-align: left;
  margin-top: 1.6rem;
  padding: 1.1rem;
  background-color: #FDF5F7; /* Светло-розовый фон */
  border-radius: 6px;
  border-left: 3px solid #DA70D6; /* Орхидея */
}

/* Подвал */
footer {
  background: linear-gradient(135deg, #4B0082, #DA70D6); /* Градиент Тёмно-фиолетовый-Орхидея */
  color: #FFB6C1; /* Светло-розовый */
  padding: 3.2rem 2rem 1.6rem;
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid #FF6347; /* Красный */
}

footer nav {
  margin-bottom: 1.6rem;
}

footer a {
  color: #FFB6C1; /* Светло-розовый */
  text-decoration: none;
  margin: 0 1.1rem;
  font-size: 0.95rem;
  font-family: 'Work Sans', sans-serif;
  transition: color 0.3s;
}

footer a:hover {
  color: #FF69B4; /* Горячий розовый */
}

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

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

  header {
    padding: 1.2rem;
  }

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

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

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  form {
    padding: 1.7rem;
  }
}