/* styles/main.css */

/* Обнуление и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif; /* Основной текст */
  line-height: 1.7;
  color: #3C3C3C; /* Текст */
  background-color: #F5F0E6; /* Фон */
  overflow-x: hidden;
}

/* Анимация появления */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Эффект "ретро-шума" на элементах (опционально) */
.retro-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

/* Шапка */
header {
  background-color: #A8B59E; /* Оливково-зелёный */
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #D9C7A7; /* Ретро граница */
}

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

header h1 a {
  color: #3C3C3C; /* Текст заголовка */
  text-decoration: none;
  font-family: 'Playfair Display', serif; /* Ретро заголовок */
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px; /* Ретро-элемент */
}

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

nav a {
  color: #F5F0E6; /* Текст навигации */
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  color: #8B6D5C; /* Акцентный цвет */
  transform: translateY(-2px);
}

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

main section {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(139, 109, 92, 0.15); /* Ретро тень */
  position: relative;
  overflow: hidden; /* Для ретро-фона */
}

main section.retro-bg {
  border: 1px solid #D9C7A7; /* Ретро рамка */
}

/* Заголовки */
h1, h2 {
  font-family: 'Playfair Display', serif; /* Ретро заголовки */
  color: #8B6D5C; /* Акцентный цвет */
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px; /* Ретро-элемент */
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
}

/* Параграфы */
p {
  margin-bottom: 1.2rem;
  color: #555;
  font-size: 1.05rem; /* Чуть крупнее для объёма */
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #8B6D5C; /* Акцентный цвет */
  color: #F5F0E6; /* Текст кнопки */
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 1.2rem;
  letter-spacing: 0.5px; /* Ретро-элемент */
}

.btn:hover {
  background-color: #7a5f4d; /* Темнее при наведении */
  transform: scale(1.05);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #8B6D5C;
  color: #8B6D5C;
}

.btn-outline:hover {
  background-color: #8B6D5C;
  color: #F5F0E6;
}

/* Контактная форма */
form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(139, 109, 92, 0.15);
  border: 1px solid #D9C7A7; /* Ретро рамка */
  max-width: 100%;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #3C3C3C;
  font-family: 'Nunito', sans-serif;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #B8A58C; /* Ретро граница */
  border-radius: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background-color: #F9F7F4; /* Светлый фон полей */
}

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

/* Информация о контактах */
.contact-info {
  text-align: left;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #F9F7F4; /* Светлый фон */
  border-radius: 4px;
  border-left: 3px solid #A8B59E; /* Ретро акцент */
}

/* Подвал */
footer {
  background-color: #3C3C3C;
  color: #D9C7A7;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
  border-top: 2px solid #A8B59E; /* Ретро граница */
}

footer nav {
  margin-bottom: 1.5rem;
}

footer a {
  color: #D9C7A7;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.95rem;
  font-family: 'Nunito', sans-serif;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #A8B59E;
}

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

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

  header {
    padding: 1rem;
  }

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

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

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  form {
    padding: 1.5rem;
  }
}