/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

body.loaded {
    opacity: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Adjusted padding for better spacing */
    box-sizing: border-box;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

h2.visible {
    opacity: 1;
    transform: translateY(0);
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2E8B57;
    border-radius: 2px;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    background-color: #2E8B57;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.button:hover {
    background-color: #1f6340;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

header.loaded {
    opacity: 1;
    transform: translateY(0);
}

header .header-container { /* Renamed to header-container */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
}

header .logo span {
    color: #2E8B57;
}

header nav a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    padding-top: 10px;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: #2E8B57;
}

header .header-button {
    margin-left: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #f0f0f0;
    padding: 60px 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.hero.loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 30px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Cormorant Garamond', serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.hero-content h1.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.hero-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
     flex: 1;
    max-width: 50%;
    text-align: right;
    overflow: hidden;
    z-index: 1;
    position: static; /*Reverted back to static*/
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
        object-position: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.hero-image img.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
    pointer-events: none;
    z-index: 0;
}

/* About Section */
.about {
    background-color: #f0f0f0;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.about.loaded {
    opacity: 1;
    transform: translateY(0);
}

.about-container { /* New Container */
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    max-width: 1200px; /* Added max width */
    margin: 0 auto; /* Center the container */
    padding: 0 15px;
    box-sizing: border-box;
}
.about-image {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
      text-align: left;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
   opacity: 0;
  transform: scale(0.9);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.about-image img.visible {
   opacity: 1;
   transform: scale(1);
}


.about-content {
    flex: 1;
    max-width: 50%;
    display: grid;
    padding-left: 20px;
    align-content: stretch;
    justify-content: space-between;
    align-items: stretch;
    justify-items: stretch;
}

.about-content p {
    max-width: 100%;
    margin: 0 0 20px;
    text-align: justify;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.about-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.services.loaded {
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: #fff;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.service-item:nth-child(1) {
    transition-delay: 0.2s;
}

.service-item:nth-child(2) {
    transition-delay: 0.3s;
}

.service-item:nth-child(3) {
    transition-delay: 0.4s;
}

.service-item:nth-child(4) {
    transition-delay: 0.5s;
}

.service-item:nth-child(5) {
    transition-delay: 0.6s;
}

.service-item:nth-child(6) {
    transition-delay: 0.7s;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-item:hover {
    transform: translateY(-5px)
}

.service-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 15px;
    border-radius: 6px;
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Cormorant Garamond', serif;
}

.service-item p {
    color: #555;
}

/* Gallery Section */
.gallery {
    background-color: #fff;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.gallery.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
     position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-item-caption{
 opacity: 1;
}

/* Form Section */
.form {
    background-color: #f0f0f0;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.form.loaded {
    opacity: 1;
    transform: translateY(0);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.form input,
.form textarea,
.form-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form input:focus,
.form textarea:focus,
.form-input:focus {
    outline: none;
    border-color: #2E8B57;
}

.form textarea {
    height: 150px;
    resize: vertical;
}

/* Contacts Section */
.contacts {
    background-color: #fff;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.contacts.loaded {
    opacity: 1;
    transform: translateY(0);
}

.contacts-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contacts-info {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.contact-details {
    flex: 1;
    padding-right: 20px;
    line-height: 1.8;
}

.contact-details p {
    margin-bottom: 10px;
    color: #555;
}

.contact-details a {
    text-decoration: none;
    color: #2E8B57;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: #1f6340;
}

.contact-map {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

footer.loaded {
    opacity: 1;
    transform: translateY(0);
}

footer p {
    margin: 0;
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Gallery Slider Styles */
.gallery-slider {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  max-width: 100%;
}

.gallery-slider-wrapper {
  display: flex;
  transition: transform 0.2s ease-in-out;
  padding-right: 20px;
  padding-left: 20px;
}

.gallery-slider .gallery-item {
  position: relative;
  flex: 0 0 calc(25% - 20px);
  max-width: calc(25% - 20px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  margin-right: 20px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.gallery-slider .gallery-item:last-child {
  margin-right: 0;
}

.gallery-slider .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-slider .gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

/* Slider Buttons */
.gallery-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: background-color 0.2s ease;
  border-radius: 4px;
}

.gallery-slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-slider-btn.prev-slide {
  left: 10px;
}

.gallery-slider-btn.next-slide {
  right: 10px;
}


/* Gallery Item Caption Styles */
.gallery-item-caption {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.5);
color: #fff;
padding: 10px;
text-align: center;
opacity: 1;
transition: opacity 0.2s ease;
white-space: normal; /* ADD THIS: Allows the text to wrap */
  box-sizing: border-box;
}
.gallery-item:hover .gallery-item-caption{
opacity: 1;
}

/* Media Query to Adjust for Small Screens */
@media (max-width: 768px) {
  .gallery-slider .gallery-item {
      flex: 0 0 calc(50% - 20px);
      max-width: calc(50% - 20px);
  }
}
/* Form Group Styles */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 500;
}

/* Reviews Section Styles */
.reviews {
    background-color: #fff;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.reviews.loaded {
    opacity: 1;
    transform: translateY(0);
}

.reviews .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.google-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.google-review-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 600px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.google-review-item:nth-child(1) {
    transition-delay: 0.2s;
}

.google-review-item:nth-child(2) {
    transition-delay: 0.3s;
}

.google-review-item:nth-child(3) {
    transition-delay: 0.4s;
}

.google-review-item:nth-child(4) {
    transition-delay: 0.5s;
}

.google-review-item:nth-child(5) {
    transition-delay: 0.6s;
}

.google-review-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.google-review-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.google-review-item .rating {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Burger Button Styles */
.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    color: #333;
    order: 0;
}

/* Navigation Styles */
.nav-wrapper {
    display: flex;
  }
  
  .nav-wrapper nav {
      display: flex;
  }
  
/* Mobile Adjustments */
@media (max-width: 768px) {
  .container {
      width: 100%;
      padding: 0 15px;
  }

  header .header-container {
      flex-wrap: wrap;
      justify-content: space-between;
  }

  header .logo {
      flex: 0 0 auto;
      text-align: center;
      order: 0;
  }

  header .header-button {
      margin: 10px auto;
      flex: 0 0 auto;
      text-align: center;
      order: 100;
  }

  .nav-wrapper {
      flex: 1 1 100%;
  }

  .nav-wrapper nav {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      background: #fff;
      margin-top: 10px;
      transition: max-height 0.2s ease-out;
      max-height: 0;
      overflow: hidden;
  }

  .nav-wrapper nav.active {
      max-height: 500px;
  }

  .nav-wrapper nav a {
      margin: 10px 0;
  }

  .burger-menu-btn {
      display: block;
      /* margin: 10px 0 0 0; */
      flex: 0 0 auto;
  }

  .hero-image {
      max-width: 100%;
      text-align: center;
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      z-index: -1;
     
      
  }
      .hero-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
     object-position: center;
  }
  .hero-container{
    display: block;
    padding: 0;
    position: relative;
    z-index: 1;
  }
  .hero-content {
    padding: 160px 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    max-width: 100%;
    z-index: 1;
  }
      .hero-overlay {
  display: none;
}
  .about-container {
    flex-direction: column;
      align-items: center;
  }
  .about-image{
      max-width: 100%;
        padding-right: 0;
    text-align: center;
  }
  .about-content{
      max-width: 100%;
      padding-left: 0;
      text-align: center;
  }
  .about-content p {
      text-align: center;
  }
  h2 {
      text-align: center;
  }
    .contacts-info {
        flex-direction: column;
    }

  .contact-details {
      padding-right: 0;
      text-align: center;
  }
    /* Adjust form styling on mobile */
    .form form {
        width: 95%;
    }
}

.form-group {
    margin-bottom: 1.5rem; /* Или ваше значение */
    /* Возможно, у вас уже есть стили для .form-group */
}

/* Стили для контейнера чекбокса */
.form-group-checkbox {
    display: block;
    align-items: self-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Стили для самой галочки (input[type="checkbox"]) */
.form-group-checkbox input[type="checkbox"] {
    /* Убираем стандартные отступы браузера, если они мешают */
    margin: 0;
    /* Можно задать размер, если стандартный не нравится */
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* Предотвращаем сжатие чекбокса, если текст длинный */
}

/* Стили для текста label */
.form-group-checkbox label {
    margin: 0; /* Убираем стандартные отступы label, если они есть */
    line-height: 1.4; /* Настраиваем высоту строки для лучшего вида */
    font-size: 0.9rem; /* Можно настроить размер шрифта */
    /* color: #333; */ /* Задайте цвет текста, если нужно */
}

/* Стили для ссылок внутри label (если нужно) */
.form-group-checkbox label a {
    color: #007bff; /* Пример цвета ссылки, подберите под свой дизайн */
    text-decoration: underline;
}

.form-group-checkbox label a:hover {
    text-decoration: none;
}

/* Стили для ошибки под чекбоксом */
.consent-error {
    /* Чтобы ошибка отображалась под flex-контейнером */
    width: 100%;
    flex-basis: 100%; /* Занимает всю ширину новой строки */
    margin-top: 0.5rem; /* Отступ сверху от галочки/текста */
    color: #dc3545;     /* Стандартный цвет ошибки Bootstrap, можно изменить */
    font-size: 0.8rem;
}
.errorlist { /* Общий стиль для ошибок, если еще не определен */
    color: #dc3545;
    font-size: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
}