/* ================================
   Цвета и переменные
   ================================ */
   :root {
    --rose: #f4c2c2;
    --light-rose: #fff5f7;
    --deep-gold: #412402;
    --midnight: #2e1a28;
    --highlight: #ffffffcc;
    --bg-gradient: linear-gradient(to right top, #eec6d3, #ffe5bf);
  }
  
  /* ================================
     Общие стили
     ================================ */
  * {
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 18px;
    color: var(--midnight);
    background: var(--light-rose);
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2.8rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--midnight);
  }
  .section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: var(--deep-gold);
    margin: 1rem auto 0;
}
  
  /* ================================
     Шапка
     ================================ */
  header {
    background: transparent;
    padding: 1rem 0;
    display: flex;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .logo {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--midnight);
    text-decoration: underline;
    text-decoration-color: #f4d1cb;
    display:flex;
  }
  .logo img{
    display:flex-start;
    height:3rem;
  }
  
  nav {
    display: flex;
    gap: 1.5rem;
  }
  
  nav a {
    text-decoration: none;
    color: var(--midnight);
    font-weight: 400;
    position: relative;
  }
  
  nav a::after {
    content: '';
    height: 2px;
    width: 0%;
    position: absolute;
    left: 0;
    bottom: -3px;
    background: var(--deep-gold);
    transition: 0.3s;
  }
  
  nav a:hover::after {
    width: 100%;
  }
  
  /* ================================
     Герой
     ================================ */
  .hero {
    background: var(--bg-gradient);
    padding: 5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .hero-content {
    flex: 1;
    padding: 0 4rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--midnight);
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: #4a2e3f;
  }
  
  .hero-image {
    flex: 1;
    text-align: center;
    margin-bottom: 2rem; /* Добавлен отступ снизу */
  }
  
  .hero-image img {
    max-width: 90%;
    border-radius: 20px;
    border: 3px solid var(--deep-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  /* ================================
     Кнопка
     ================================ */
    
  .btn {
    background: var(--deep-gold);
    color: white;
    padding: 1rem 2rem;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
  }
  
  .btn:hover {
   background: #867468;
  }
  
  .center-wrapper{
    display: flex;
  justify-content: center;
  }
  /* ================================
     Услуги
     ================================ */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .service {
    background: white;
    border: 1px solid var(--rose);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }
  
  .service:hover {
    border-color: var(--deep-gold);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }
  
  .service h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--deep-gold);
  }
  #services {
    scroll-margin-top: 10px;
    padding: 5rem 0;
    background-image: url("image/service-bcground.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* даёт эффект параллакса */
    position: relative;
    z-index: 1;
  }
  
  #services::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 245, 247, 0.85); 
    z-index: -1;
  }
 /* ======================
        Dropdown
    =======================
*/
.dropdown-toggle {
  background: #eee;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
  width: 100%;
  text-align: left;
}
.dropdown-toggle:hover {
  background: #ddd;
}

/* Скрытый блок */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 16px;
}

/* При активном классе */
.dropdown-content.open {
  max-height: 2500px; 
  padding: 16px;
  margin-top: 10px;
  background: #fafafa;
  border-left: 3px solid #ccc;
  border-radius: 8px;
}
  /* ======================
        Картинки для услуг
    =======================
  */
   #destiny{  
     background: url(image/destiny.PNG) no-repeat right 2% /25% ; 
     background-color: white;
   } 
   #horoscope{  
    background: url(image/horoscope.PNG) no-repeat right 2% / 20%;
    background-color: white;
  } 
  #prof_activity{  
    background: url(image/prof_actv.PNG) no-repeat right 0% /25% ; 
    background-color: white;
  } 
  #relations{  
    background: url(image/relations.PNG) no-repeat right 0% /22% ; 
    background-color: white;
  } 
  #finance{  
    background: url(image/finance.PNG) no-repeat right 0% /22% ; 
    background-color: white;
  } 
  #health{  
    background: url(image/health.PNG) no-repeat right 2% /22% ; 
    background-color: white;
  } 
  #migration{  
    background: url(image/migration.PNG) no-repeat right -5% /30% ; 
    background-color: white;
  } 
  #muhurta{  
    background: url(image/muhurta.PNG) no-repeat right 2% /22% ; 
    background-color: white;
  } 
  #rectification{  
    background: url(image/retrification.PNG) no-repeat right 2% /22% ; 
    background-color: white;
  } 
  
  /* ================================
     Отзывы
     ================================ */
  .testimonial {
    background: white;
    padding: 2rem;
    margin: 1rem auto;
    border-left: 5px solid var(--deep-gold);
    border-radius: 8px;
    max-width: 800px;
  }
  .post-testimonial{
    padding: 1rem;
    margin: 1rem auto;
    max-width: 800px;
  }
  
  /* ================================
     Подвал
     ================================ */
  .footer {
    background: var(--midnight);
    color: var(--highlight);
    text-align: center;
    padding: 2rem 1rem;
  }
  
  /* ================================
     Контакты (плавающая кнопка + соцсети)
     ================================ */
  .contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--light-rose);
    padding: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    width: 60px;
    height: 60px;
  }
  
  .contact-btn img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
  }
  
  .contact-btn:hover img {
    transform: scale(1.1);
  }
  
  .social-links {
    position: absolute;
    bottom: 70px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
  }
  
  .contact-btn.active .social-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(50%) translateY(-10px);
  }
  
  .social-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease, filter 0.2s ease;
  }
  
  .social-icon:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(200, 169, 81, 0.7));
  }
  
  /* Контейнер для кнопок социальных сетей */
  .social-buttons {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center; 
    gap: 15px;
    margin: 20px;
    width: 100%; 
  }
  
  /* Кнопки социальных сетей */
  .social-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: var(--deep-gold);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
    font-size: 1rem;
  }
  
  .social-button:hover {
    transform: scale(1.05);
  }
  
  .social-button img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
  
  .social-button span {
    font-size: 1rem;
    color: white;
  }

  .burger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--deep-gold);
    z-index: 1001;
    margin-left:auto;
  }
  
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .mobile-nav a {
    margin: 0.5rem 0;
    color: var(--midnight);
    text-decoration: none;
    font-weight: bold;
  }
  
  .mobile-nav.show {
    display: flex;
  }
 /* ================================
   Анимации появления
   ================================ */
.service, .testimonial, .section-title {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up {
  opacity: 1;
  transform: translateX(0);
}
  
  @media (max-width: 768px) {
    .nav {
      display: none;
    }
  
    .burger {
      display: block;
      
    }
  
    .mobile-nav.show {
      display: flex;
    }
  }
  
  /* Мобильные стили для кнопок соцсетей */
  @media (max-width: 768px) {
    .social-buttons {
      flex-direction: column; /* Изменение на вертикальное расположение для экранов меньше 768px */
      gap: 10px; /* Уменьшаем промежутки между кнопками */
      align-items: center; /* Выравниваем кнопки по центру по горизонтали */
    }
  
    .social-button {
      padding: 10px 18px;
      font-size: 0.9rem;
    }
  
    .social-button img {
      width: 20px;
      height: 20px;
    }
  
    .hero {
      flex-direction: column;
      padding: 3rem 1rem;
    }
  
    .hero-content {
      text-align: center;
      padding: 0 2rem;
    }
  
    .hero-content h1 {
      font-size: 2rem;
    }
  
    .hero-content p {
      font-size: 1rem;
    }
  
    .hero-image img {
      max-width: 100%;
      border-radius: 15px;
      border: 2px solid var(--deep-gold);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
      margin-bottom: 20px;
    }
  
    .btn {
      display: block;
      width: fit-content;
      margin: 0 auto;
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
      margin-top: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
  .hero-content h1 {
  font-size: 1.5rem;
  }
  
  .hero-content p {
  font-size: 0.9rem;
  }
  
  .service h3 {
  font-size: 1.2rem;
  }
  
  .testimonial {
  padding: 1rem;
  }
  
  .section-title {
  font-size: 1.8rem;
  }
  
  .btn {
  margin-top: 1.5rem;
  }
  }