/*
=====================================================================
*   Ceevee v1.0 Layout Stylesheet
*   url: styleshout.com
*   03-18-2014
=====================================================================

   TOC:
   a. General Styles
   b. Header Styles
   c. About Section
   d. Resume Section
   e. Portfolio Section
   f. Call To Action Section
   g. Testimonials Section
   h. Contact Section
   i. Footer

===================================================================== */

/* ------------------------------------------------------------------ */
/* a. General Styles
/* ------------------------------------------------------------------ */

* {
  box-sizing: border-box; /* Включаем отступы и границы в ширину элемента */
  margin: 0; /* Убираем отступы по умолчанию */
  padding: 0; /* Убираем внутренние отступы по умолчанию */
}

body {
  background: #D3D3D3;
  overflow-x: hidden; /* Убираем горизонтальную прокрутку */
}

body {
  padding-right: 0 !important;
}


/* ------------------------------------------------------------------ */
/* b. Header Styles
/* ------------------------------------------------------------------ */
/* Общие стили для header */
header {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100vh;
  width: 100%;
  text-align: center;
  overflow: hidden;
  color: #333;
  align-items: center;
  position: relative;
}

/* Логотип */
.logo {
  max-width: 40%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.logo-text {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 20px;
  letter-spacing: 1px;
}

/* Кнопка скролла вниз */
header .scrolldown {
  grid-row: 2;
  margin-bottom: 30px;
}

header .scrolldown a {
  color: #aaa;
  font-size: 42px;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

header .scrolldown a:hover {
  color: #000000;
}

/* Навигация */
#nav-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  font: 12px 'Roboto-Black', sans-serif;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0 auto;
  z-index: 100;
  position: fixed;
  height: 41px;
  left: 0;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; /* плавность */
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 1; /* по умолчанию видимый */
}

/* Класс при скрытии */
#nav-wrap.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Класс при показе */
#nav-wrap.visible {
  transform: translateY(0);
  opacity: 1;
}

ul#nav {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul#nav li {
  height: 48px;
  margin: 0 15px;
  display: flex;
  align-items: center;
}

ul#nav li a {
  display: inline-block;
  padding: 8px 13px;
  line-height: 32px;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease-in-out;
  font-weight: 500;
}

ul#nav li a:hover {
  color: #BC3574;
}

ul#nav li.current a {
  color: #BC3574;
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 101;
  cursor: pointer;
}

.hamburger {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #A52C63;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Мобильные стили */
@media (max-width: 1068px) {
  .mobile-menu-toggle {
    display: block;
  }

  #nav-wrap {
    padding: 60px 0 20px;
    background-color: rgba(255, 255, 255, 0.98);
    transform: translateY(-100%);
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
  }

  #nav-wrap.mobile-open {
    transform: translateY(0);
  }

  ul#nav {
    flex-direction: column;
    width: 100%;
    padding: 1px;
  }

  ul#nav li {
    width: 100%;
    margin: 1px 0;
    height: auto;
    justify-content: center;
  }

  ul#nav li a {
    font-size: 16px;
    padding: 12px 0;
  }

  .logo {
    max-width: 70%;
    margin-top: 80px;
  }

  .logo-text {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 30px;
  }

  header .scrolldown {
    margin-bottom: 20px;
  }

  header .scrolldown a {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 80%;
  }

  .logo-text {
    font-size: 18px;
  }

  ul#nav li a {
    font-size: 14px;
  }
}
/* ------------------------------------------------------------------ */
/* About Section - Fully Static Layout with Image Overlap */
/* ------------------------------------------------------------------ */

#about {
   width: 100%;
   background: #D3D3D3;
   display: flex;
   flex-wrap: nowrap;
   align-items: stretch;
   justify-content: center;
   box-sizing: border-box;
   position: relative;
   padding: 100px 20px; /* Добавим отступы с краев */
}

#about .image-container {
   flex-shrink: 0;
   width: 250px;
   height: 500px;
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 3; /* Картинка на переднем плане */
   margin-left: -30px; /* Убираем отступ с левого края */
   margin-right: 0px; /* Добавляем отступ справа */
}

#about .about-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 10px;
}

#about .text-container {
   position: relative; /* Позволяет сдвигать элемент */
   background: #ffffff;
   border-radius: 10px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
   width: 500px;
   height: 500px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding: 20px;
   margin-right: 10px; /* Отступ справа */
   z-index: 2;
   overflow: hidden;
   left: -41px; /* Сдвигаем контейнер влево на 30px */
}

#about .text-container p {
   font-size: 17px; /* Размер шрифта зависит от ширины окна */
   font-family: 'Roboto-Black', sans-serif;
   color: #333;
   margin-bottom: 18px;
   line-height: 1.2;
   white-space: normal;
   word-wrap: break-word;
   overflow: visible; /* Убираем обрезку текста */

}

#about .main-image-container {
   flex-shrink: 0;
   width: 500px;
   height: 500px;
   display: flex;
   justify-content: center;
   align-items: center;
   margin-right: 20px;
}

#about .star {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 10px;
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); /* Тень для изображения */
}

/* ------------------------------------------------------------------ */
/* Mobile Styles - Фиксируем порядок */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
  #about {
    flex-direction: column;
    padding: 30px 20px;
    align-items: center;
  }

  /* Скрываем первую картинку (если нужно) */
  #about .image-container {
    display: none;
  }

  /* Основной контейнер с текстом */
  #about .text-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    padding: 25px;
    margin: 0 0 30px 0;
    left: 0;
    box-sizing: border-box;
  }

  #about .text-container p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  /* Контейнер для главного изображения */
  #about .main-image-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1/1; /* Сохраняем квадратные пропорции */
    margin: 0;
  }

  #about .star {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Дополнительные улучшения для очень маленьких экранов */
  @media (max-width: 480px) {
    #about {
      padding: 20px 15px;
    }

    #about .text-container {
      padding: 20px;
      min-height: 250px;
    }

    #about .text-container p {
      font-size: 15px;
    }

    #about .main-image-container {
      max-width: 100%;
    }
  }
}

/* ------------------------------------------------------------------ */
/* Стили для раздела "Как мы помогаем" */
/* ------------------------------------------------------------------ */

#howwehelp {
   background: #D3D3D3; /* Цвет фона раздела */
   padding: 60px 20px; /* Отступы: верх и низ, добавлен отступ по бокам */
   overflow: hidden; /* Обрезает содержимое, выходящее за пределы */
   text-align: center; /* Центрирует текст внутри раздела */
}

#howwehelp .row {
   display: flex; /* Использует Flexbox для расположения элементов */
   justify-content: center; /* Центрирует содержимое по горизонтали */
   align-items: center; /* Центрирует содержимое по вертикали */
   height: 100%; /* Высота 100% для центрирования */
}

#howwehelp .services {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 20px;
   margin-top: 20px;
}

/* Стили для карточки */
#howwehelp .service-item {
  flex: 0 1 calc(25% - 20px);
  background: #fff;
  border: 2px solid transparent; /* Заранее резервируем место для рамки */
  border-radius: 16px;
  padding: 30px 25px;
  color: #000000;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ховер-эффект без смещения соседних элементов */
#howwehelp .service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: #BC3574; /* Плавное появление рамки */
}

/* Заголовок */
#howwehelp .service-item h3 {
  font: 22px 'Roboto-Black', sans-serif;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px;
  transition: color 0.3s ease;
}

#howwehelp .service-item:hover h3 {
  color: #BC3574;
}

/* Текст без прыжков */
#howwehelp .service-item p {
  transition: none; /* Убираем transform, чтобы текст не двигался */
}

/* Заголовок в элементе услуги */
#howwehelp .service-item h3 {
   font: 21px 'Roboto-Black', sans-serif;
   font-weight: 200;
   color: #000000; /* Цвет текста */
   margin: 10px 0; /* Убирает отступы */
   padding-bottom: 10px; /* Увеличен отступ снизу */
}

.help-image {
    max-width: 18%; /* Ограничиваем ширину изображения до 100% от родительского контейнера */
    height: auto; /* Автоматическая высота для сохранения пропорций */
}

/* Модальное окно */
.ReactModal__Overlay {
  background: rgba(0, 0, 0, 0.75); /* Полупрозрачный черный фон */
  z-index: 7;
}

.ReactModal__Content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* текст сверху, кнопка внизу */
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  font-family: 'Roboto', sans-serif;
}

/* Заголовок модального окна */
.ReactModal__Content h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

/* Основной текст модального окна */
.ReactModal__Content p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
  white-space: pre-line; /* Поддержка переноса строк */
  text-align: left;
}

/* Стилизация списка с точками */
.service-modal-content ul {
  padding-left: 20px;
  list-style-type: none; /* Убираем стандартные точки */
  margin: 0;
}

.service-modal-content li {
  font-size: 16px;
  color: #555;
  position: relative;
  margin-bottom: 10px;
}

/* Добавление кастомных точек */
.service-modal-content li::before {
  content: '•'; /* Символ точки */
  color: #BC3574; /* Цвет точки */
  font-size: 20px;
  position: absolute;
  left: -20px; /* Смещение точки */
  top: 0;
}

/* Кнопка закрытия модального окна */
.ReactModal__Content button {
  align-self: flex-end; /* кнопка справа */
  background-color: #BC3574;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 20px; /* отступ сверху от контента */
}

.ReactModal__Content button:hover {
  background-color: #A52C63; /* Цвет кнопки при наведении */
}

/* Стили для больших экранов (900px и более) */
@media (min-width: 900px) {
   #howwehelp .service-item {
       flex: 0 1 calc(25% - 20px); /* Устанавливает ширину элемента (25% минус отступ) */
   }
}

/* Стили для средних экранов (от 600px до 899px) */
@media (min-width: 600px) and (max-width: 899px) {
   #howwehelp .service-item {
       flex: 0 1 calc(50% - 20px); /* Устанавливает ширину элемента (50% минус отступ) */
   }
}

/* Стили для маленьких экранов (менее 600px) */
@media (max-width: 599px) {
   #howwehelp .service-item {
       flex: 0 1 100%; /* Устанавливает ширину элемента (100%) */
   }
}

@media (max-width: 768px) {
  #howwehelp {
    flex-direction: column; /* Вертикальное расположение для мобильных устройств */
    padding: 10px; /* Уменьшаем отступы для мобильных */
    height: auto; /* Автоматическая высота для секции */
  }

  #howwehelp .row {
    flex-direction: column; /* Вертикальное расположение для мобильных */
    align-items: center; /* Центрируем содержимое по горизонтали */
  }
}

/* ГАЛЕРЕЯ (ОБЩИЕ СТИЛИ) */
.gallery-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  margin-bottom: 20px;
}

/* СТИЛИ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ (СЛАЙДЕР) */
.main-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-container:hover .nav-button {
  opacity: 1;
}

.main-image {
  max-height: 500px;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}




/* СТИЛИ ДЛЯ ДЕСКТОПНОЙ ВЕРСИИ (СЕТКА) */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white; /* Белый фон */
}


.grid-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 1.5);
  cursor: pointer;
}


/* ------------------------------------------------------------------ */
/* Мобильные стили (только слайдер) */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .gallery-section {
    width: 100%;
    height: auto;
    padding: 10px;
  }

  .main-image {
    max-width: 100%;
    height: auto;
  }

  /* Скрываем сетку на мобильных */
  .grid-gallery {
    display: none;
  }

 /* Mobile Slider */
 .slider-container {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  touch-action: pan-y;
 }

 .slide-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
 }

 .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
 }

 .main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
 }

 .indicator-container {
  position: absolute;
  bottom: 5%; /* вместо фиксированных 20px привязал к высоте */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1;
  padding: 10px 0; /* дополнительный отступ */
 }

 .indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: background 0.3s ease;
 }

 .indicator-dot.active {
  background: #A52C63;
 }


}
/* Модальное окно */
.modalgallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modalgallery-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background-color: transparent; /* Фон для модального окна */
  border-radius: 12px; /* Закругленные углы */
  padding: 1px; /* Увеличенные отступы внутри модального окна */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); /* Более выраженная тень */
  overflow: hidden; /* Скрыть переполнение */
}

.modalgallery-image {
  width: 100%;
  height: auto;
  max-height: 80vh; /* Ограничение высоты изображения */
  border-radius: 12px; /* Закругленные углы для изображения */
  transition: transform 0.3s; /* Плавный переход для изображения */
}


.modalgallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 20px;
  padding: 6px 7px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10;
}

.modalgallery-nav.left {
  left: 0px;
}

.modalgallery-nav.right {
  right: 0px;
}

/* Десктопные стили (только сетка) */
@media (min-width: 769px) {
  /* Скрываем слайдер на десктопе */
  .main-image-container,
  .indicator-container {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Стили для секции "Терапевты" */
/* ------------------------------------------------------------------ */

.therapists-section {
  padding: 30px 0; /* Отступы сверху и снизу */
  background: #D3D3D3; /* Цвет фона секции */
  position: relative; /* Для корректной работы Observer */
  font-family: 'Roboto', sans-serif;
}

.container {
  max-width: 1200px; /* Максимальная ширина контейнера */
  margin: 0 auto; /* Центрирование контейнера */
  padding: 0 20px; /* Отступы по бокам */
  font-family: 'Roboto', sans-serif;
}

.section-title {
  text-align: center; /* Центрирование заголовка */
  margin-bottom: 40px; /* Отступ снизу */
  font-size: 2rem; /* Размер шрифта */
  color: #333; /* Цвет текста */
  font-family: 'Roboto', sans-serif; /* Шрифт Roboto */
}

.therapists-list {
  display: flex; /* Используем Flexbox для списка терапевтов */
  flex-direction: column; /* Вертикальное расположение */
  gap: 30px; /* Отступы между элементами */
}

.therapist-profile {
  display: flex; /* Используем Flexbox для профиля терапевта */
  background: white; /* Белый фон */
  border-radius: 10px; /* Закругленные углы */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Тень */
  overflow: hidden; /* Скрываем переполнение */
  font-family: 'Roboto', sans-serif;
}

.therapist-main {
  flex: 1; /* Занимает оставшееся пространство */
  padding: 25px; /* Отступы внутри */
  border-right: 1px solid #eee; /* Разделительная линия */
}

.therapist-photo {
  width: 100%; /* Занимает всю ширину контейнера */
  height: auto; /* Автоматическая высота для сохранения пропорций */
  border-radius: 10px; /* Закругленные углы */
  object-fit: cover; /* Обеспечивает правильное отображение изображения */
  margin: 0 auto 20px; /* Центрирование и отступ снизу */
  display: block; /* Блоковое отображение */
  border-radius: 10px;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.therapist-info {
  text-align: center; /* Центрирование текста */
  white-space: pre-line;
}

.therapist-info h3 {
  margin: 0 0 10px; /* Отступы */
  color: #333; /* Цвет заголовка */
  font-family: 'Roboto', sans-serif; /* Шрифт Roboto */
}

.therapist-bio {
  color: #333; /* Цвет текста биографии */
  line-height: 1.6; /* Межстрочный интервал */
}

.therapist-certificates {
  flex: 2; /* Занимает больше пространства */
  padding: 25px; /* Отступы внутри */
}

.certificates-title {
  margin-top: 0; /* Убираем отступ сверху */
  color: #333; /* Цвет заголовка сертификатов */
  border-bottom: 2px solid #A52C63; /* Нижняя граница */
  padding-bottom: 10px; /* Отступ снизу */
  display: inline-block; /* Блоковое отображение */
  font-family: 'Roboto', sans-serif; /* Шрифт Roboto */
}

.certificates-grid {
  display: grid; /* Используем Grid для сертификатов */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Автоматическая сетка */
  gap: 20px; /* Отступы между сертификатами */
  margin-top: 20px; /* Отступ сверху */
}

.certificate-item {
  background: #f9f9f9; /* Цвет фона сертификата */
  padding: 15px; /* Отступы внутри сертификата */
  border-radius: 8px; /* Закругленные углы */
  transition: transform 0.3s; /* Плавный переход при наведении */
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.certificate-item:hover {
  transform: translateY(-5px); /* Подъем при наведении */
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5); /* Тень при наведении */
}

.certificate-image {
  width: 100%; /* Занимает всю ширину контейнера */
  height: 120px; /* Фиксированная высота для изображения сертификата */
  object-fit: cover; /* Обеспечивает правильное отображение изображения */
  border-radius: 5px; /* Закругленные углы */
  margin-bottom: 10px; /* Отступ снизу */
}

.certificate-desc {
  margin: 0; /* Убираем отступы */
  font-size: 0.9rem; /* Размер шрифта для описания сертификата */
  color: #777; /* Цвет текста описания */
}

.show-more-button {
  display: inline-block; /* Блоковое отображение */
  margin-top: 15px; /* Отступ сверху */
  padding: 10px 20px; /* Отступы внутри кнопки */
  background-color: #BC3574; /* Цвет кнопки */
  color: white; /* Цвет текста кнопки */
  border: none; /* Убираем границу */
  border-radius: 5px; /* Закругленные углы */
  cursor: pointer; /* Указатель при наведении */
  transition: background-color 0.3s; /* Плавный переход для фона */
}

.show-more-button:hover {
  background-color: #A52C63; /* Цвет кнопки при наведении */
}

.loading {
  text-align: center; /* Центрирование текста загрузки */
  padding: 50px; /* Отступы */
  font-size: 1.2rem; /* Размер шрифта */
  color: #7f8c8d; /* Цвет текста загрузки */
}

@media (max-width: 768px) {
  .therapist-profile {
    flex-direction: column; /* Вертикальное расположение для мобильных устройств */
  }

  .therapist-main {
    border-right: none; /* Убираем разделительную линию */
    border-bottom: 1px solid #eee; /* Добавляем нижнюю границу */
  }
}
/* ------------------------------------------------------------------ */
/* f. ОТЗЫВЫ */
/* ------------------------------------------------------------------ */

/* Общие стили для отзывов */
.reviews-wrapper {
  position: relative;
  max-width: 800px;
  margin: clamp(60px, 10vh, 150px) auto;
}
#reviews {
  position: relative;
  opacity: 1; /* Заменено display на opacity */
  z-index: 2;
  max-width: 800px;
  margin: clamp(60px, 10vh, 150px) auto;
  padding: 30px; /* Увеличенные отступы */
  font: 18px 'Roboto-Black', sans-serif;
  background: linear-gradient(135deg, #f4f4f4 0%, #eaeaea 100%); /* Градиентный фон */
  border-radius: 12px; /* Закругленные углы */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Более выраженная тень */
}

#reviews h2 {
  color: #333; /* Более темный цвет для заголовка */
  font-size: 1.8em; /* Увеличенный размер шрифта */
  margin-bottom: 20px; /* Отступ снизу */
  text-align: center; /* Центрируем заголовок */
}

.reviews-container {
  margin-bottom: 30px; /* Увеличенный отступ снизу */
}

.review-item {
  position: relative;
  background-color: #ffffff; /* Белый фон для отзывов */
  padding: 25px; /* Увеличенные отступы */
  margin-bottom: 20px; /* Увеличенный отступ между отзывами */
  border-radius: 12px; /* Закругленные углы */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); /* Легкая тень */
}

/* Установите минимальную высоту для имени и даты */
.review-item h3 {
  font-size: 1.4em; /* Увеличенный размер шрифта для имени */
  margin: 0 0 8px;
  color: #4d4d4d; /* Цвет имени */
}

.review-date {
  font-size: 0.9em;
  color: #777;
  position: absolute;
  top: 15px;
  right: 15px;
  white-space: nowrap; /* Не переносить текст */
  overflow: hidden;    /* Скрыть лишний текст */
  text-overflow: ellipsis; /* Добавить многоточие */
}

.review-text {
  margin: 12px 0; /* Увеличенные отступы */
  line-height: 1.7; /* Увеличенный межстрочный интервал */
  white-space: pre-wrap; /* Позволяет перенос строк */
  word-break: break-word; /* Переносит слова, если они слишком длинные */
  max-height: none; /* Убираем ограничение по высоте */
  overflow: visible; /* Позволяем видеть весь текст */
  transition: max-height 0.3s ease; /* Плавный переход для высоты */
}
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.navigation-buttons button {
  background-color: #BC3574; /* Цвет кнопки */
  color: #fff;
  border: none;
  padding: 7px 15px;
  border-radius: 6px; /* Закругленные углы */
  cursor: pointer;
  transition: background 0.3s;
}

.navigation-buttons button:hover {
  background-color: #A52C63; /* Цвет кнопки при наведении */
}

.review-count {
  text-align: center; /* Центрируем текст */
  margin: 10px 0; /* Отступы сверху и снизу */
  font-size: 1.2em; /* Увеличенный размер шрифта */
  color: #333; /* Цвет текста */
}
.image-holder {
  position: absolute;
  bottom: 300px;
  right: -18%; /* выступает справа */
  width: 250px;
  z-index: 1; /* под блоком #reviews */
}

.image-holder img {
  width: 100%;
  display: block;
  height: auto;
}

.status-message {
  margin-top: 20px;
  padding: 15px;
  background-color: #C8E6C9; /* Зеленый фон для успешного сообщения */
  color: black;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.status-message p {
  margin: 0;
  font-size: 16px;
}

/* Для сообщений об ошибке можно добавить дополнительный класс */
.status-message.error {
  background-color: #ff7f7f; /* Красный фон для ошибок */
}

form input[type="text"] {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
}

/* Добавим адаптивность для мобильной версии */
@media (max-width: 800px) {
  .review-item {
    padding: 20px; /* Уменьшаем отступы на мобильной версии */
  }

  .review-date {
    position: relative; /* Меняем позицию для мобильной версии */
    top: auto;
    right: auto;
    white-space: normal; /* Позволяем переносить текст */
  }
  .image-holder img {
    display: none; /* Убираем изображение на мобильных устройствах */
  }
}

.review-text.expanded {
  max-height: none;
}

.toggle-button {
  background: none;
  color: #BC3574;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1em; /* Увеличенный размер шрифта */
  margin-top: 8px; /* Увеличенный отступ сверху */
  transition: color 0.3s ease, transform 0.2s; /* Плавный переход для цвета и эффекта */
}

.toggle-button:hover {
  color: #A52C63; /* Цвет текста при наведении */
  transform: scale(1.05); /* Увеличение при наведении */
}

/* Убрать черную рамку при фокусе */
.toggle-button:focus {
  outline: none; /* Убрать рамку при фокусе */
}

form label {
  display: block;
  margin: 12px 0 6px; /* Увеличенные отступы */
  font-weight: bold;
  color: #333; /* Цвет меток */
}

form input[type="text"],
form textarea {
  width: 100%;
  padding: 12px; /* Увеличенные отступы */
  border: 1px solid #888;
  border-radius: 6px; /* Закругленные углы */
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s; /* Плавный переход для границы */
}

form input[type="text"]:focus,
form textarea:focus {
  border-color: #007bff; /* Цвет границы при фокусе */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Тень при фокусе */
}

form button[type="submit"] {
  text-transform: uppercase;
  letter-spacing: 1px; /* Уменьшенное расстояние между буквами */
  color: #fff;
  background: #BC3574; /* Цвет кнопки */
  border: none;
  cursor: pointer;
  height: auto;
  display: inline-block;
  border-radius: 6px; /* Закругленные углы */
  padding: 12px 24px; /* Увеличенные отступы */
  margin-left: 0; /* Убираем отступ слева */
  transition: background 0.3s, transform 0.2s; /* Плавный переход для фона */
}

form button[type="submit"]:hover {
  background: #A52C63; /* Цвет кнопки при наведении */
  transform: scale(1.05); /* Увеличение при наведении */
}


/* ------------------------------------------------------------------ */
/* Стили для компонента Contact */
/* ------------------------------------------------------------------ */

.contact-wrapper {
  position: relative;
  max-width: 800px;
  margin: clamp(60px, 10vh, 150px) auto;
}

#contact {
  position: relative;
  z-index: 2; /* форма выше картинки */
  max-width: 800px; /* Максимальная ширина секции */
  margin: 70px auto 0; /* Отступ сверху и центрирование */
  padding: 30px; /* Увеличенные отступы внутри секции */
  font: 18px 'Roboto-Black', sans-serif; /* Шрифт для секции */
  background: linear-gradient(135deg, #f4f4f4 0%, #eaeaea 100%); /* Светлый фон */
  border-radius: 12px; /* Закругленные углы */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Более выраженная тень */
}

.section-head {
  margin-bottom: 30px; /* Отступ снизу для заголовка */
  text-align: center; /* Центрирование заголовка */
}

.section-head h1 {
  font-size: 2.2em; /* Увеличенный размер заголовка */
  color: #333; /* Цвет заголовка */
  margin: 0; /* Убираем отступы */
}

.lead {
  font-size: 1.3em; /* Размер текста для подзаголовка */
  color: #666; /* Цвет подзаголовка */
  text-align: center; /* Центрируем подзаголовок */
  margin-bottom: 20px; /* Отступ снизу */
}

form {
  display: flex; /* Используем flexbox для формы */
  flex-direction: column; /* Вертикальное расположение элементов */
  margin-top: 10px; /* Небольшой отступ сверху */
}

fieldset {
  border: none; /* Убираем рамку у fieldset */
  padding: 0; /* Убираем отступы */
  margin: 0; /* Убираем отступы */
}

label {
  font-weight: bold; /* Жирный шрифт для меток */
  margin-bottom: 5px; /* Отступ снизу */
  color: #333; /* Цвет меток */
}

input[type="tel"],
input[type="email"],
textarea {
  width: 100%; /* Ширина 100% */
  border: 1px solid #888;
  padding: 12px; /* Увеличенные отступы внутри полей */
  border-radius: 6px; /* Закругленные углы */
  margin-bottom: 15px; /* Отступ снизу */
  font-size: 1em; /* Размер шрифта */
  transition: border-color 0.3s; /* Плавный переход для рамки */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: #007bff; /* Цвет рамки при фокусе */
  outline: none; /* Убираем обводку */
}

textarea {
  resize: vertical; /* Позволяем изменять размер только по вертикали */
  min-height: 120px; /* Минимальная высота текстовой области */
}

button.submit {
  text-transform: uppercase; /* Преобразование текста в верхний регистр */
  letter-spacing: 1px; /* Увеличенное расстояние между буквами */
  color: #fff; /* Цвет текста кнопки */
  background: #BC3574; /* Цвет кнопки */
  border: none; /* Убираем рамку */
  cursor: pointer; /* Указатель при наведении */
  height: auto; /* Высота кнопки */
  display: inline-block; /* Отображение кнопки как блочный элемент */
  border-radius: 6px; /* Закругленные углы */
  padding: 12px 24px; /* Увеличенные отступы */
  margin-top: 10px; /* Отступ сверху для кнопки */
  transition: background 0.3s, transform 0.2s; /* Плавный переход для фона */
}

button.submit:hover {
  background: #A52C63; /* Цвет кнопки при наведении */
  transform: scale(1.05); /* Увеличение при наведении */
}

.image-holder1 {
  position: absolute;
  bottom: -15px;
  right: -15.5%; /* выступает справа */
  width: 150px;
  z-index: 3; /* под блоком #reviews */
}

.image-holder1 img {
  width: 100%;
  display: block;
  height: auto;
}


/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
  button.submit {
    width: 100%; /* Кнопка занимает 100% ширины на мобильных устройствах */
    margin-top: 15px; /* Увеличенный отступ сверху для кнопки */
  }
}

/* Стили для нижней части с адресом и картой */
footer-widgets {
  margin-top: 30px; /* Увеличенный отступ сверху для виджетов */
  padding: 20px; /* Отступы внутри виджетов */
  background-color: #f1f1f1; /* Светлый фон для виджетов */
  border-radius: 8px; /* Закругленные углы */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Легкая тень */
}

.widget_contact h4,
.widget_tweets h4 {
  font-size: 1.4em; /* Увеличенный размер заголовка для виджетов */
  color: #333; /* Цвет заголовка */
  margin-bottom: 15px; /* Увеличенный отступ снизу */
  text-align: center; /* Центрируем заголовок */
}

.address {
  font-size: 1em; /* Размер шрифта для адреса */
  color: #666; /* Цвет текста адреса */
  text-align: center; /* Центрируем адрес */
  margin-bottom: 15px; /* Отступ снизу */
}

#gis {
  list-style: none; /* Убираем маркеры у списка */
  padding: 0; /* Убираем отступы */
  text-align: center; /* Центрируем список */
}

#gis li {
  margin-bottom: 10px; /* Отступ снизу для элементов списка */
}

#gis a {
  color: #007bff; /* Цвет ссылок */
  text-decoration: none; /* Убираем подчеркивание */
  transition: color 0.3s; /* Плавный переход для цвета */
}

#gis a:hover {
  color: #0056b3; /* Темнее при наведении */
}
/* Скрывать только на мобильных устройствах */
@media (max-width: 600px) {
  .image-holder1 img {
    display: none;
  }
}
/* ------------------------------------------------------------------ */
/* i. Footer
/* ------------------------------------------------------------------ */

footer {
   padding-top: 48px;
   margin-bottom: 48px;
   color: #303030;
   font-size: 14px;
   text-align: center;
   position: relative;
}

footer a, footer a:visited { color: #525252; }
footer a:hover, footer a:focus { color: #fff; }

/* copyright */
footer .copyright {
    margin: 0;
    padding: 0;
 }
footer .copyright li {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 24px;
}
.ie footer .copyright li {
   display: inline;
}
footer .copyright li:before {
    content: "\2022";
    padding-left: 10px;
    padding-right: 10px;
    color: #095153;
}
footer .copyright  li:first-child:before {
    display: none;
}



/* Go To Top Button */
#go-top {
  position: fixed; /* Кнопка остается на месте при прокрутке */
  bottom: -84px; /* Установите значение ниже, чтобы поднять кнопку выше */
  left: 50%;
  transform: translateX(-50%); /* Центрируем кнопку по горизонтали */
  z-index: 1000; /* Убедитесь, что кнопка находится выше других элементов */
}

#go-top a {
  color: #aaa; /* Цвет стрелки */
  font-size: 42px; /* Размер стрелки */
  text-decoration: none; /* Убираем подчеркивание */
  transition: color 0.3s ease-in-out; /* Плавный переход для цвета */
}

#go-top a:hover {
  color: #000000; /* Цвет при наведении */
}

/* Убери все transform и position для модальных окон */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-counter {
  position: absolute;
  bottom: 3px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  user-select: none;
  pointer-events: none;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 20px;
  padding: 6px 7px;
  cursor: pointer;
  border-radius: 5px;
}

.modal-nav.left {
  left: 0px;
}

.modal-nav.right {
  right: 0px;
}

