    @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:wght@400;500;600;700&display=swap');

    [class*=__container] {
      max-width: 1920px;
      margin: 0px auto;
      padding: 0px 55px;
    }

    body {
      margin: 0;
      font-family: Montserrat, sans-serif;
      font-weight: 400;
      font-size: 16px;
      background-color: #e9e5e5;
      color: var(--main-color);
    }

.main__header {
  padding: 10px 0;
  box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.header__container {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__list {
  display: flex;
  align-items: center;
  column-gap: 40px;
  flex-wrap: wrap;
  grid-row-gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu__item {
  display: flex;
  align-items: center;
}

.menu__link {
  text-decoration: none;
  color: var(--main-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu__link:hover {
  color: var(--accent-color);
}

/* Адаптив для планшетов (max-width: 768px) */
@media (max-width: 768px) {
  .main__header {
    padding: 8px 0;
  }

  .header__container {
    justify-content: center; /* Центрируем, если оборачивается */
    gap: 15px; /* Добавляем gap для равномерности */
  }

  .menu__list {
    column-gap: 20px; /* Уменьшаем расстояние между элементами */
    grid-row-gap: 10px;
  }

  .menu__link {
    font-size: 14px; /* Немного уменьшаем шрифт для компактности */
  }
}

/* Адаптив для мобильных устройств (max-width: 480px) */
@media (max-width: 480px) {
  .main__header {
    padding: 5px 0;
  }

  .header__container {
    flex-direction: column; /* Вертикальная компоновка для мобильных */
    align-items: center;
    gap: 10px;
  }

  .menu__body {
    flex-direction: column; /* Меню вертикально */
    gap: 10px;
    width: 100%;
  }

  .menu__list {
    column-gap: 15px; /* Маленький gap */
    grid-row-gap: 5px;
    justify-content: center; /* Центрируем элементы меню */
  }

  .menu__link {
    font-size: 13px; /* Уменьшаем шрифт для мобильных */
  }

  .menu__item.site-logo .menu__link {
    font-size: 18px; /* Сохраняем логотип крупным */
  }

  .menu__item.site-logo {
    order: -1; /* Логотип наверху */
  }
}

.projects {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.projects h1 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* ГАЛЕРЕЯ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.item {
    position: relative;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

.hidden {
    display: none;
}

/* РАМКА + ОПИСАНИЕ */
.overlay {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    border: 3px solid #6b8a47;
    background: rgba(255,255,255,0.75);
    padding: 25px;
    display: flex;
    align-items: flex-end;
    z-index: 2;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay p {
    font-size: 16px;
    line-height: 1.5;

    opacity: 0;
    transform: translateY(20px);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.item:hover .overlay {
    opacity: 1;
}

.item:hover .overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* КНОПКА "Показать ещё" */
.load-more {
    margin: 50px auto 0;
    display: block;
    padding: 14px 40px;
    font-size: 16px;
    cursor: pointer;
    background: transparent;
    border: 2px solid #6b8a47;
    transition: 0.3s;
    background: #e9e5e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #000;
}

.load-more:hover {
    background: #cadbb7;
    color: #000;
}

/* АДАПТИВ */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Контейнер для кнопок */
.button-container {
    position: fixed;
    right: 45px; 
    bottom: 35px; 
}

/* Стили для кнопки наверх */
#topNubex {
    background-color: #333;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

#topNubex:hover {
    background-color: #555; 
}

#topNubex:active {
    background-color: #ffff;
    border: 2px solid #555;
}

/* Стили для изображения в кнопке */
.contact-btn-style {
    width: 25px; 
    height: 25px;
}

footer {
  width: 100%;
  background: #fff;
  padding: 40px 20px 20px;
  box-sizing: border-box;
  border-top: 1px solid #ddd;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-left {
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 300px;
}

.footer-left .logo {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-left .phone-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.footer-left .phone-number {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 15px;
  text-decoration: none;
  color: #000;
}

.footer-left .chat-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid #0b4c52;
  border-radius: 5px;
  color: #0b4c52;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  margin-bottom: 15px;
}

.footer-left .chat-btn:hover {
  background-color: #0b4c52;
  color: #fff;
}

.footer-left .social-icons {
  display: flex;
  gap: 15px;
}

.footer-left .social-icons a {
  display: inline-block;
}

.footer-left .social-icons a.vk {
  display: inline-block;
  max-width: initial;
}

.vk-svg {
  height: 43px;
  width: 43px;
}

.tg-svg {
  height: 38px;
  width: 38px;
}

.footer-left .social-icons a.telegram {
  display: inline-block;
  max-width: initial;
}

.footer-left .social-icons a:hover {
  opacity: 0.8;
}

.footer-nav {
  flex: 3 1 600px;
  display: flex;
  justify-content: space-between;
  min-width: 300px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 140px;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 16px;
  color: #222;
  cursor: pointer;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #777;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #0b4c52;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
  padding: 15px 20px 10px;
  font-size: 12px;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-bottom .policy-links {
  flex: 1 1 300px;
  text-align: right;
}

.footer-bottom .policy-links a {
  color: #555;
  text-decoration: underline;
  margin-left: 15px;
  font-size: 12px;
}

.footer-bottom .policy-links a:first-child {
  margin-left: 0;
}

/* Адаптив для планшетов (max-width: 768px) */
@media (max-width: 768px) {
  footer {
    padding: 30px 15px 15px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-left {
    flex: none;
    text-align: center;
    min-width: auto;
    max-width: 100%;
  }

  .footer-left .logo {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .footer-left .phone-number {
    font-size: 20px;
    margin-bottom: 10px;
    text-decoration: none;
  color: #000;
  }

  .footer-left .phone-label {
    font-size: 11px;
  }

  .footer-left .social-icons {
    justify-content: center;
    gap: 10px;
  }

  .tg-svg,
  .vk-svg {
    height: 32px;
    width: 32px;
  }

  .footer-nav {
    flex: none;
    justify-content: center;
    gap: 20px;
    min-width: auto;
  }

  .footer-column {
    min-width: 120px;
    text-align: center;
  }

  .footer-column h4 {
    font-size: 14px;
  }

  .footer-column ul li a {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-align: center;
  }

  .footer-bottom .policy-links {
    text-align: center;
    order: 2; /* Помещаем ссылки после копирайта */
  }

  .footer-bottom .policy-links a {
    margin: 0 10px;
    font-size: 11px;
    display: inline-block;
  }
}

/* Адаптив для мобильных устройств (max-width: 480px) */
@media (max-width: 480px) {
  footer {
    padding: 20px 10px 10px;
  }

  .footer-top {
    gap: 15px;
    margin-bottom: 15px;
  }

  .footer-left {
    margin-bottom: 15px;
  }

  .footer-left .logo {
    font-size: 20px;
  }

  .footer-left .phone-number {
    font-size: 18px;
    text-decoration: none;
  color: #000;
  }

  .footer-left .phone-label {
    font-size: 10px;
  }

  .footer-left .social-icons {
    gap: 8px;
  }

  .tg-svg,
  .vk-svg {
    height: 28px;
    width: 28px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-column {
    min-width: auto;
    width: 100%;
    max-width: 200px;
  }

  .footer-column h4 {
    font-size: 13px;
  }

  .footer-column ul li {
    margin-bottom: 6px;
  }

  .footer-column ul li a {
    font-size: 12px;
  }

  .footer-bottom {
    gap: 8px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .footer-bottom .copyright {
    order: 1;
  }

  .footer-bottom .policy-links {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .footer-bottom .policy-links a {
    margin: 0;
    font-size: 10px;
    width: 100%;
    text-align: center;
  }
}

/* Стили для модального окна */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed; /* Фиксированное позиционирование */
  z-index: 1000; /* Над остальным контентом */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный overlay */
}

.modal-content {
  background-color: #fff;
  margin: 15% auto; /* Центрирование по вертикали и горизонтали */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Ширина на больших экранах */
  max-width: 500px; /* Максимальная ширина */
  border-radius: 8px;
  position: relative;
}

/* Кнопка закрытия */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 20% auto;
  }
}