html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Safari иногда чудит без этого */
}


/* Общие стили */

body {
  font-family: 'Inter', sans-serif;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Верхняя полоса */
.top-bar {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 10px 0;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Контактный телефон */
.phone {
  color: #5E4222;
  text-decoration: none;
}

/* Иконки соцсетей */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  color: #1c1c1c; /* Меняем цвет иконок на белый */
  font-size: 18px;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffc107; /* Цвет при наведении (жёлто-золотой) */
}

/* Обложка */
.hero {
  background: url("IMG/BG3.webp") center/cover no-repeat;
  height: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
}

/* Затемняющий градиент */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  pointer-events: none; /* Разрешает кликать сквозь ::before */
}

/* Заголовок */
.hero h1 {
  color: #F0F0F0;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  word-wrap: break-word; /* Перенос слов, если текст не помещается */
  overflow-wrap: break-word; /* Альтернатива для word-wrap */
  max-width: 100%; /* Ограничиваем ширину заголовка */
  padding: 0 15px; /* Добавляем отступы, чтобы текст не прилипал к краям */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px; /* Уменьшаем размер шрифта для мобильных устройств */
    padding: 0 10px; /* Уменьшаем отступы */
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px; /* Еще меньше для очень маленьких экранов */
  }
}

/* Подзаголовок */
.hero p {
  color: #C4A77D; /* Золотистый оттенок */
  font-size: 20px;
  max-width: 600px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

/* Навбар */
.navbar {
  position: absolute;
  top: 40px; /* Отступ под топбар */
  left: 0;
  width: 100%;
  padding: 15px 0;
}

.navbar-logo {
  height: 40px; /* Подгони размер */
  margin-right: 10px; /* Отступ справа */
  vertical-align: middle;
}

.navbar-nav .nav-link {
  color: #8C6A37; /* Новый цвет */
}
.navbar-nav .nav-link:hover {
  color: #B08D57; /* При наведении */
}
.navbar-nav .nav-link.active {
  color: #5E4222; /* Цвет активной страницы */
}

.navbar-brand {
  color: #3D2B1F;
}

/* Контейнер навбара */
.navbar .container-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Тогглер */
.navbar-toggler {
  border: none;
  background: none;
  font-size: 24px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Меню */
.navbar-collapse {
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #DEB25B; /* Контрастный цвет */
  font-size: 16px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .navbar .container-custom {
    flex-direction: row;
  }

  .navbar-collapse {
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}

/*************************** О нас ***************************/

.carousel-item img {
  max-width: 80%;
  height: auto;
}

/*************************** Руководитель ***************************/

.founder-section {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 40px 20px;
  margin: 20px 0;
}
.founder-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.blockquote-footer {
  margin-top: 10px;
}

.founder-img {
  width: 300px;
  height: 350px;
  object-fit: cover; /* Обрезает изображение, чтобы сохранить пропорции */
}


/*************************** услуги ***************************/

.service-card {
  background: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Добавлено */
  z-index: 1; /* Добавлено */
}

.service-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 10; /* Поднимаем карточку выше остальных */
}

.carousel-inner {
  display: block;
  overflow: visible;
}

#services p {
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  width: 100%; /* Ширина контейнера */
  padding: 0 60px; /* Отступы для места под кнопки */
  box-sizing: border-box; /* Чтобы padding не увеличивал общую ширину */
}

/*************************** Клиент ***************************/

.client-section {
  padding: 50px 0;
  background-color: #f8f9fa; /* адаптировать под цветовую схему сайта */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden; /* Добавлено, чтобы содержимое не выходило за пределы контейнера */
}

.client-card {
  display: flex;
  align-items: center;
  gap: 30px;
}

.client-image img {
  width: 300px; /* Оставляем оригинальный размер */
  height: auto; /* Сохраняем пропорции */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.client-info {
  flex: 1;
}

.client-info h2 {
  font-size: 28px;
  color: #333; /* основной цвет заголовков */
}

.client-info p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.client-info ul {
  margin-top: 15px;
  padding-left: 20px;
}

.client-info li {
  font-size: 16px;
  color: #444;
  margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .client-card {
    flex-direction: column;
    text-align: center;
  }

  .client-image img {
    width: 100%; /* Оставляем оригинальный размер, но ограничиваем шириной контейнера */
    max-width: 300px; /* Максимальная ширина изображения */
    height: auto;
  }

  .client-info h2 {
    font-size: 24px;
  }

  .client-info p {
    font-size: 16px;
  }

  .client-info ul {
    padding-left: 0;
    list-style-position: inside;
  }
}
/*************************** Процесс ***************************/

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #007bff;
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-content {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  width: 45%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.timeline-content:hover {
  transform: scale(1.05);
}
.left { text-align: right; margin-right: 55%; }
.right { text-align: left; margin-left: 55%; }

@media (max-width: 768px) {
  .timeline::before {
      left: 20px;
  }
  .timeline-content {
      width: 90%;
      margin: 0 auto;
      text-align: left;
  }
  .left, .right {
      margin: 0 auto;
  }
}

/*************************** Цены ***************************/

.pricing-card {
  background: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/*************************** Форма ***************************/

.contact-form {
  background: #f8f8f8;
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  color: #333;
  font-size: 26px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #d4af37;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  background: #fff;
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #b8860b;
}

.contact-form button {
  background: #d4af37;
  color: #fff;
  font-size: 18px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #b8860b;
}

/*************************** Подвал ***************************/

.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center; /* Выравниваем логотип и текст по центру по вертикали */
  gap: 15px; /* Отступ между логотипом и текстом */
}

.footer-logo-img {
  height: 60px; /* Настраиваем размер логотипа */
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Выравниваем текст по центру по вертикали */
  text-align: left; /* Текст выравниваем по левому краю */
}

.footer-logo-text h2 {
  margin: 0; /* Убираем отступы у заголовка */
  line-height: 1; /* Убираем лишний отступ снизу */
}

.footer-logo-text p {
  margin: 5px 0 0 0; /* Убираем лишние отступы */
}

.footer-contacts p {
  margin: 5px 0;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.footer-socials {
  margin-bottom: 20px;
}

.footer-socials a {
  color: #fff;
  font-size: 20px;
  margin: 0 10px;
}

.footer-bottom {
  font-size: 14px;
  opacity: 0.7;
}


