/* Общие стили */
:root {
  /* Основные теплые цвета */
  --primary-color: rgb(179, 139, 109); /* Теплый коричневый (основной) */
  --secondary-color: #d4b896; /* Светлый бежево-золотистый */
  --accent-color: rgb(197, 118, 59); /* Глубокий элегантный синий (акцент) */

  /* Нейтральные и фоновые цвета */
  --light-color: #f8f3e9; /* Светлый кремово-бежевый */
  --dark-color: rgb(61, 44, 30); /* Темный шоколадно-коричневый */
  --white: #fffef9; /* Теплый белый с бежевым подтоном */

  /* Дополнительные золотистые акценты */
  --gold-light: #e6d2b5; /* Светлое золото */
  --gold-medium: #c9a86b; /* Среднее золото */
  --gold-dark: #ba9172; /* Темное золото/бронза */

  /* Текстовые цвета */
  --text-color: rgb(58, 44, 32); /* Темный коричневый для текста */
  --text-light: #7d6e5c; /* Светло-коричневый для второстепенного текста */

  /* Дополнительные синие оттенки для гармонии */
  --blue-light: #2e4570; /* Светлый синий */
  --blue-dark: #18243c; /* Темный синий */

  /* Тени и эффекты */
  --shadow: 0 4px 20px rgba(58, 44, 32, 0.1);
  --shadow-strong: 0 8px 30px rgba(58, 44, 32, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 60px;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--gold-dark);
}

.bg-light {
  background-color: var(--light-color);
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Навигация */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--blue-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
  min-height: 70px;
  max-height: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  padding: 0;
  align-items: center; /* Центрируем содержимое лого по вертикали */
  height: 50px;
  width: 50px; /* Занимает всю высоту родителя */
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-light);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Герой-секция */
.hero {
  overflow: hidden;
  position: relative;
  height: calc(100vh - 70px);
  margin-top: 70px;
  background: linear-gradient(rgba(58, 44, 32, 0.7), rgba(63, 27, 12, 0.5)),
    url("/img/hero.png") top/cover no-repeat;
  align-items: center;
  justify-content: center;

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(139, 69, 19, 0.5) 20%,
      var(--secondary-color) 40%,
      var(--gold-medium) 50%,
      var(--secondary-color) 60%,
      rgba(139, 69, 19, 0.5) 80%,
      transparent
    );
    z-index: 10;
  }

  &::before {
    top: 0;
    box-shadow: 0 1px 8px rgba(210, 105, 30, 0.2);
  }

  &::after {
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(210, 105, 30, 0.2);
  }
}

/* Убираем лишние отступы у контейнера */
.hero .container {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 90%;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-content {
  flex: 1;
  max-width: 720px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.02em;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #f9cd7b;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 350px;
  height: 350px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 8rem;
  box-shadow: var(--shadow);
}

/* Обо мне */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

.credentials {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.credential:hover {
  transform: translateY(-5px);
}

.credential i {
  font-size: 1.5rem;
  color: var(--accent-color);
  min-width: 30px;
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  border-top-color: var(--gold-medium);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 1.8rem;
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.bg-light {
  position: relative;

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(139, 69, 19, 0.5) 20%,
      var(--secondary-color) 40%,
      var(--gold-medium) 50%,
      var(--secondary-color) 60%,
      rgba(139, 69, 19, 0.5) 80%,
      transparent
    );
    z-index: 10;
  }

  &::before {
    top: 0;
    box-shadow: 0 1px 8px rgba(210, 105, 30, 0.2);
  }

  &::after {
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(210, 105, 30, 0.2);
  }
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--gold-medium);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Стили для секции отзывов */
.testimonials-container {
  position: relative;
  margin-top: 40px;
}

.testimonials-slider {
  overflow: hidden;
  position: relative;
}

.testimonials-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonials-slide.active {
  display: block;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
  margin-bottom: 5px;
  margin-left: 1px;
  cursor: pointer;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 5rem;
  color: rgba(15, 23, 42, 0.05);
  font-family: serif;
  line-height: 1;
  opacity: 0; /* Скрываем по умолчанию */
  transition: opacity 0.3s ease; /* Плавное появление */
}

.testimonial-card:hover::before {
  opacity: 1; /* Показываем при наведении */
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-top-color: var(--gold-medium);
}

.testimonial-icon {
  width: 70px;
  height: 70px;
  background-color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 1.8rem;
}

.testimonial-name {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.testimonial-service {
  color: var(--gold-medium);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-text {
  color: var(--text-light);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 15px;
  flex-grow: 1;
}

.testimonial-date {
  color: var(--text-lighter);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Навигация слайдера */
.slider-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--gold-medium);
  color: var(--accent-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background-color: var(--gold-medium);
  color: var(--white);
  transform: scale(1.1);
}

.slider-arrow:active {
  transform: scale(0.95);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gold-light);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--gold-medium);
  transform: scale(1.2);
}

.dot:hover {
  background-color: var(--accent-color);
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Адаптивность */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .slider-navigation {
    gap: 20px;
  }

  .slider-arrow {
    width: 45px;
    height: 45px;
  }
}

/* Контакты */

.hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--dark-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--gold-medium);
  margin-top: 5px;
}

.contact-item p {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--blue-light);
}

.contact-item a,
.contact-item span {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Футер */
.footer {
  background-color: var(--blue-dark);
  color: var(--white);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

.footer-text {
  color: #d6d6d6;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-medium);
}

.footer-copyright {
  color: #b6b6b6;
  font-size: 0.9rem;
  padding-top: 30px;
  border-top: 1px solid #444;
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .image-placeholder {
    width: 280px;
    height: 280px;
    font-size: 6rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Градиент с прозрачностью */
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.88),
      rgba(15, 23, 42, 0.85)
    );
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-timeline::before {
    left: 15px;
  }

  .timeline-year {
    width: 80px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}
