
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', 'PT Serif', sans-serif;

}


/* Основные переменные */
:root {
  --block-width: 382px; /* Ширина слайда на десктопах */
  --block-height: 420px; /* Высота слайда */
  --block-gap: 20px; /* Отступ между слайдами */
  --visible-slides: 3; /* Количество видимых слайдов */
  --gap: .5 rem;
  --index: calc(1vw + 1vh);
  --color-dark: #000;
}

/*--Главная секция--*/
/* Шапка */
header {
  display: flex;
  justify-content: space-between;
  min-height: 80px;
  align-items: center;
  padding: 1rem 5%;
  width: 100%;
  background-color: #1a1a1a;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
}

.logo-header {
  font-family: 'PT Serif', sans-serif;
  font-size: 20px;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1.3px;
}

.metres {
  color: #28a745;
}

.hero-logo {
  z-index: 1;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  z-index: 1000;
}

nav a {
  font-family: 'PT Serif', sans-serif;
  text-decoration: none;
  color: #fafafa;
  font-weight: 500;
}

.call-btn {
  background-color: #28a745;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Бургер */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1002; /* выше, чем header, но ниже меню */
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #fafafa;
  transition: 0.3s ease;
}

/* Анимация бургера — превращается в крестик */
.burger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active div:nth-child(2) {
  opacity: 0;
}
.burger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобильное меню — выезжающее СПРАВА */
@media (max-width: 864px) {
  .logo-header {
    font-size: 18px;
  }

  .burger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;          /* Прижато к правому краю */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #1a1a1a;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 1rem 1rem;
    gap: 1.5rem;
    transform: translateX(100%); /* Изначально скрыто справа */
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3); /* Тень слева */
  }

  nav.active {
    transform: translateX(0); /* Въезжает в экран */
  }

  /* Блокировка скролла при открытом меню */
  body.menu-open {
    overflow: hidden;
  }
}




    /* Стили для общего вида */
  /* Базовые стили */



/* Fluid Section */
.fluid-section {
  min-height: 93vh;
  font-family: 'PT Serif', sans-serif;
  background-color: #131313;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.container-fluid {
  width: 90%;
  max-width: 1400px;
  display: flex;
  flex-direction: column; /* По умолчанию — вертикально */
  margin: 0 auto;
  position: relative;
}

/* На десктопе — в строку, текст слева, слайдер справа */
/* Десктоп (ширина > 768px) */
@media (min-width: 768px) {
  .fluid-section {
    height: 62vh;
    object-fit: cover;
  }
  .container-fluid {
    flex-direction: row;
    align-items: center;
  }

  .text-section {
    z-index: 2;
    padding-left: 40px;
  }

  .swiper-container {
    flex: 1;
    z-index: 1;
  }
}

/* Планшеты (ширина ≤ 767px) */
@media (max-width: 767px) {
    .fluid-section {
    object-fit: cover;
  }
  .container-fluid {
    flex-direction: column;
    align-items: stretch;
  }

  .text-section {
    margin: 20px 10px; /* Уменьшаем отступы */
  }

  .text-section h2 {
    font-size: 28px; /* Уменьшаем заголовки */
  }

  .text-section h1 {
    font-size: 50px;
  }

  .text-section p {
    font-size: 24px;
  }

  .fluid-button {
    font-size: 18px;
  }

  .swiper-container {
    margin-top: 20px; /* Отступ между текстом и слайдером */
    object-fit: cover;
  }

  .swiper-slide img {
    min-height: 50vh; /* Минимальная высота изображений */
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .swiper-pagination {
    bottom: 5px; /* Корректируем позицию пагинации */
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 20px;
  z-index: 2;
}

.text-section h2 {
  color: #fafafa;
  font-size: 34px;
  margin-bottom: 10px;
  letter-spacing: 4.5px;
}

.text-section h1 {
  color: #fafafa;
  font-size: 70px;
  margin-bottom: 20px;
  letter-spacing: 4.5px;

}

.text-section p {
  color: #fafafa;
  font-size: 28px;
  line-height: 1.6;
  
}

.fluid-button {
  text-decoration: none;
  color: #ebebeb;
  font-size: 20px;
  margin-top: 20px;
  letter-spacing: 3.5px;
  align-items: center;
  gap: 8px;
}
.fluid-button:hover {
  color: #bfbfbf;
}

.fluid-icon {
  font-size: 16px;        /* Размер стрелки */
  color: #ebebeb;         /* Цвет — белый */
  transition: color 0.3s ease;
}


/* Слайдер */
.swiper-container {
  width: 100%;
  position: absolute;
  overflow: hidden;
  border-radius: 12px;

}


.swiper-wrapper .swiper-slide {
  transition: transform 1s ease, opacity 1s ease;
  transform: scale(1);
  height: 100%;

}

.swiper-slide {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  text-align: center;
  background: #0f0f0f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;

}
.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Полупрозрачное затемнение */
  z-index: 1;
}


.swiper-slide img {
  height: 755px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;

}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  opacity: 1;
  transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #333;
}

/* Мобильная и планшетная адаптация */
@media (max-width: 767px) {
  .container-fluid {
    flex-direction: row;
    align-items: center;
  }

  .text-section {
    text-align: left;
    padding-left: 0;
  }

  .text-section h1 {
    font-size: 30px; /* Уменьшаем размер шрифта для мобильных устройств */
    margin-bottom: 0;
  }
   .text-section h2 {
    display: none;
   }

  .swiper-container {
    width: 100%;
    margin-top: 20px;
  }
  .swiper-slide img {
  height: 655px;

}
  .swiper-pagination {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .swiper-pagination-bullet {
    margin: 0 5px;
  }
}


/*--Наши предложения--*/
/* === Основные стили === */
.offers-section {
  min-height: 85vh;
  overflow: hidden;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  position: relative;
}

.section-title {
  font-family: 'PT Serif', serif;
  font-size: 45px;
  font-weight: normal;
  color: #000;
  text-align: center;
  margin-bottom: 60px;
}

.slider-offers__container-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.slider-offers__container {
  position: relative;
  display: flex;
  overflow: hidden;
  width: calc(var(--block-width) * var(--visible-slides) + var(--block-gap) * (var(--visible-slides) - 1));
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid #000;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-button:hover {
  background: #000;
  color: #fff;
}

.nav-button.left {
  left: -60px;
}

.nav-button.right {
  right: -60px;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--block-gap);
  margin-bottom: 50px;
}

.slide-link {
  text-decoration: none;
  display: block;
}

.slide {
  width: var(--block-width);
  height: var(--block-height);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  color: inherit;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
}

.slide:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.image-wrapper {
  width: 340px;
  height: 255px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slide:hover .image-wrapper img {
  transform: scale(1.05);
}

.slide:hover .image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
}

.slide-title {
  font-family: 'PT Serif', serif;
  font-size: 25px;
  color: #000;
  margin-bottom: 10px;
  text-align: left;
}

.slide-button {
  font-family: 'PT Serif', serif;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: normal;
  margin-top: 0;
  transition: color 0.3s ease;
}

.slide-button:hover {
  color: #677326;
}

.arrow-icon {
  width: 29px;
  height: auto;
}
@media (max-width: 1366px) {
    .offers-section {
    min-height: 50vh;
  }

}
/* === Адаптация для планшетов (768px–1024px) === */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --block-width: 340px; /* Фиксированная ширина слайда */
    --block-height: 420px; /* Фиксированная высота слайда */
    --block-gap: 20px; /* Отступ между слайдами */
    --visible-slides: 2; /* Два слайда в строке */
  }

  .offers-section {
    padding-top: 60px;
    height: auto;
    min-height: 45vh;
  }

  .section-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .slider-offers__container {
    width: calc(var(--block-width) * var(--visible-slides) + var(--block-gap) * (var(--visible-slides) - 1));
  }

  .nav-button.left {
    left: -40px;
  }

  .nav-button.right {
    right: -40px;
  }

  .slide {
    width: 340px;
    height: 350px;
    padding: 15px;
  }

  .image-wrapper {
    width: 100%; /* Изображение занимает всю ширину слайда */
    height: 200px; /* Фиксированная высота изображения */
  }

  .slide-title {
    font-size: 22px;
  }

  .slide-button {
    font-size: 16px;
  }

  .arrow-icon {
    width: 24px;
  }
}

/* === Адаптация для мобильных устройств (до 767px) === */
@media (max-width: 767px) {
  :root {
    --block-width: 100vw; /* Полная ширина экрана */
    --block-height: auto;
    --block-gap: 15px;
    --visible-slides: 1;
  }

  .offers-section {
    padding-top: 60px;
    height: auto;
    min-height: 100vh;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .slider-offers__container-wrapper {
    width: 100%;
    overflow: visible;
    margin-bottom: 50px;
  }

  .slider-offers__container {
    width: 100%;
    justify-content: center;
  }

  .nav-button {
    display: none; /* Скрываем стрелки на мобильных */
  }

  .slider-track {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .slide {
    width: calc(100% - 40px); /* Ширина с учётом отступов */
    margin: 0 20px;
    height: auto;
    padding: 15px;
  }

  .image-wrapper {
    width: 100%;
    height: 200px;
  }

  .image-wrapper img {
    object-fit: cover;
  }

  .slide-title {
    font-size: 20px;
  }

  .slide-button {
    font-size: 16px;
  }

  .arrow-icon {
    width: 20px;
  }
}

/*--НОВЫЕ МЕТРЫ--*/
.new-metres-section {
  width: 100vw;
  min-height: 100vh; /* ✅ было height: 100vh */
  overflow: hidden;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.container__metres {
  max-width: 1280px;
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.left-block {
  flex: 1 1 50%;
  max-width: 600px;
  padding-top: 60px;
}

.left-title {
  font-family: 'PT Serif', serif;
  font-size: 45px;
  font-weight: normal;
  color: #000;
  margin-bottom: 25px;
}

.left-subtitle {
  font-family: 'PT Serif', serif;
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

.left-button {
  display: inline-block;
  width: auto;
  padding: 12px 45px;
  background-color: #677326;
  color: #fff;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  text-decoration: none;
}

.left-button:hover {
  background-color: #55601f;
}

.right-block {
  position: relative;
  flex: 1 1 50%;
  max-width: 600px;
  height: 524px;
  display: flex;
  justify-content: flex-end;
}

.right-block .big-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 1;
}

.right-block .small-img {
  position: absolute;
  bottom: 0;
  left: -35%;
  transform: translateY(20%);
  width: 60%;
  height: auto;
  max-width: 345px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
@media (max-width: 768px) {
  .container__metres {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left-block {
    max-width: 100%;
    padding-top: 0;
  }

  .right-block {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .right-block .big-img {
    width: 90%;
    height: auto;
    max-height: 300px;
    border-radius: 10px;
    object-fit: cover;
    z-index: 1;
  }

  .right-block .small-img {
    width: 60%;
    height: auto;
    max-width: 250px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
    left: auto;
    bottom: auto;
    transform: translateY(0);
    margin-top: -40px; /* немного перекрывает большую картинку */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) and (max-width: 1366px) {
  .new-metres-section {
    min-height: 50vh;
  }
  .container__metres {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }

  .left-block {
    max-width: 100%;
    padding-top: 40px;
  }

  .left-title {
    font-size: 36px;
  }

  .left-subtitle {
    font-size: 18px;
  }

  .right-block {
    max-width: 500px;
    height: 450px;
  }

  .right-block .small-img {
    left: -15%;
    max-width: 300px;
    max-height: 250px;
  }
}

/*--НОВОСТИ--*/

.news-section {
  font-family: 'PT Serif', serif;
  max-width: 1050px;
  margin: 50px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}
.news-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.news-list a {
  text-decoration: none;
}
.news-item {
  display: flex;
  align-items: stretch;
  background-color: white;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  padding: 20px;
  position: relative;
  gap: 20px;
  border-top: 1px solid #e0e0e0;
}

.news-item:last-child {
  border-bottom: 1px solid #e0e0e0; /* Линия после последней новости */
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.news-image__main {
  width: 160px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-content {
  display: flex;
  flex-direction: column;
  justify-content: start;
  flex-grow: 1;
  min-width: 0;
  margin-top: 15px;
}
.news-content a {
  text-decoration: none;
}
.news-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
}

.news-text {
  font-size: 0.95rem;
  color: #666;
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-bottom: 10px;
}

.news-text.open {
  max-height: 500px;
}

.read-more {
  font-weight: bold;
  color: #677326;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  color: #616c23;
}
.hidden {
  display: none;
}

.show-more-btn {
  display: block;
  margin: 50px auto 0 auto;
  padding: 12px 24px;
  background-color: #677326;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.show-more-btn:hover {
  background-color: #616c23;
}

.telegram-link {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
}

.telegram-link a {
  color: #28a745;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.telegram-link a:hover {
  color: #1f8236;
}
@media (max-width: 768px) {
  .news-section {
    padding: 0 10px; /* Уменьшаем отступы */
  }

  .section-title {
    font-size: 1.8rem; /* Уменьшаем заголовок */
  }

  .news-item {
    flex-direction: column; /* Ставим колонку для мобильных */
    gap: 10px; /* Уменьшаем отступы */
  }

  .news-image__main {
    width: 100%;
    height: 260px;
  }

  .news-content {
    margin-top: 10px; /* Уменьшаем отступы */
  }

  .news-title {
    font-size: 1.2rem; /* Уменьшаем заголовок */
  }

  .news-text {
    font-size: 0.9rem; /* Уменьшаем текст */
  }

  .read-more {
    font-size: 0.8rem; /* Уменьшаем текст */
  }

  .show-more-btn {
    padding: 10px 20px; /* Уменьшаем кнопку */
    font-size: 0.9rem; /* Уменьшаем текст */
  }
}



/*--СЕКЦИЯ О НАС ИНФО--*/

    .about-section {
      padding: 40px 20px;
      max-width: 1120px;
      margin: auto;
      display: flex;
      gap: 100px;
      align-items: flex-start; /* выравнивание по верху */
      flex-wrap: wrap;
      font-family: 'PT Serif', serif;
  
      margin-top: 10px;
    }

    .left-column,
    .right-column {
      flex: 1 1 450px;
      display: flex;
      flex-direction: column;
      gap: 30px;
      max-width: 500px; /* Ограничиваем ширину текста */
    }

    .about-title {
      font-size: 48px;
      position: relative;
    }


    .about-text-1,
    .about-text-2 {
      font-family: 'PT Serif', serif;
      font-size: 1.1rem;
      font-size: 20px;
      line-height: 1.6;
      max-width: 100%; /* Не вылезать за пределы родителя */
      word-wrap: break-word; /* Перенос длинных слов */
    }

    .about-text-2 {
      text-align: justify;
    }

    /* Квадратное изображение для правой колонки */
    .right-image img {
      width: 95%;
      aspect-ratio: 5 / 4;
      object-fit: cover;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .right-image img:hover {
      transform: translateY(-5px);
    }

    /* Обычное изображение для левой колонки */
    .left-image img {
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .left-image img:hover {
      transform: translateY(-5px);
    }

    /* Порядок элементов */
    .left-column {
      order: 1;
    }

    .right-column {
      order: 2;
    }
/* Адаптивность для планшетов (900px–1120px) */
@media (max-width: 1120px) {
  .about-section {
    gap: 20px; /* Уменьшаем отступ между колонками */
    margin-right: 10px;
    margin-left: 5px;
  }

  .left-column,
  .right-column {
    max-width: 100%; /* Занимает всю ширину экрана */
    margin: 0 auto; /* Горизонтальное центрирование */
    padding: 10px;
    text-align: justify;
  }

  .right-image img {
    width: 100%; /* Изображение занимает 80% ширины родителя */
    margin: 0 auto; /* Горизонтальное центрирование */
  }

  .left-image img {
    width: 100%; /* Изображение занимает 80% ширины родителя */
    margin: 0 auto; /* Горизонтальное центрирование */
  }
}
    @media (max-width: 900px) {
      .about-section {
        flex-direction: column;
        text-align: justify;
      }

      .left-column,
      .right-column {
        width: 100%;
      }

      .right-image img {
        aspect-ratio: auto; /* Отменяем квадрат на мобильных, если нужно */
        width: 100%;
        margin: auto;
      }
    }


/*--СЕКЦИЯ СПЕЦИАЛИСТЫ--*/

.team-section {
  font-family: 'PT Serif', serif;
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.team-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.team-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr)); /* Гибкая сетка */
  gap: 20px; /* Уменьшаем отступы между элементами */
  justify-content: center; /* Выравнивание по горизонтали */
}

.team-member {
  text-align: center;
  max-width: 300px; /* Ограничиваем максимальную ширину */
  width: 100%;
  margin: 0 auto; /* Добавляем автоматическое выравнивание по горизонтали */
}

.team-member img {
  width: 100%;
  height: 280px; /* Фиксируем высоту изображений */
  aspect-ratio: 1 / 1; /* Сохраняем квадратное соотношение */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ховер на изображении */
.team-member img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.team-member-info {
  font-size: 1.1rem;
  color: #555;
}

/* Адаптация */
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-title {
    font-size: 28px;
  }
}

/*--СЕКЦИЯ С ВИДЕО--*/
.video-section {
  min-height: 600px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 840px;
  height: auto;
  aspect-ratio: 16 / 9; /* Сохраняет пропорции видео */
  cursor: pointer;
}

.custom-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 
}
/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
  .video-section {
    min-height: 350px;
    padding: 15px 0;
  }

  .video-wrapper {
    max-width: 100%;
  }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
  .video-section {
    min-height: 250px;
    
  }

  .custom-video {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}
/*--СЕКЦИЯ КОНТАКТЫ ГЛАВНАЯ СТРАНИЦА--*/
.main-header__contacts {
  width: 100vw;
  height: 100vh;
  background: url('/img/team/contacts.JPG') no-repeat center center / cover;
  position: relative;
  color: #fff;
}
.hero-contacts__text {
  position: absolute;
  top: calc(79px + 267px + 260px); /* header высота + отступ */
  right: 0;
  padding-right: 150px;
  text-align: left;
}
.hero-contacts__title {
  font-family: 'PT Serif', serif;
  font-size: 58px;
  font-weight: 500;
  margin-bottom: 15px;
}
.nav-link__contacts {
  font-size: 25px;
  font-weight: normal;
  text-decoration: none;
  color: #fff;
}



/*--СЕКЦИЯ КОНТАКТНАЯ ИНФОРМАЦИЯ--*/
/* === Секция "О компании" === */
/* === Основной контейнер === */
.company-section {
  min-height: 80vh;
  overflow: hidden;
  background-color: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.content-company__wrapper {
  width: 100%;
  max-width: 1128px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: row; /* По умолчанию — десктоп */
  gap: 20px;
}

/* === Левый блок: фото и контакты === */
.left-block__company {
  width: 100%;
  max-width: 500px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.main-image__company {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.contact-company__info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-company__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'PT Serif', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #000;
}

.contact-company__item img {
  width: 24px;
  height: 24px;
}

/* === Правый блок: карта === */
.right-block__company {
  width: 100%;
  max-width: 638px;
  padding: 50px 20px;
  box-sizing: border-box;
}

.right-block__company iframe {
  width: 100%;
  height: 443px;
  border-radius: 10px;
  border: none;
}

/* === Адаптация для мобильных и планшетов: карта СНИЗУ === */
@media (max-width: 1024px) {
  .content-company__wrapper {
    flex-direction: column; /* Вертикальный порядок */
    align-items: stretch;
  }

  .left-block__company,
  .right-block__company {
    width: 100%;
    max-width: none;
    padding: 20px;
  }

  .main-image__company {
    height: 280px;
    object-fit: cover;
  }

  .contact-company__item {
    font-size: 20px;
    gap: 10px;
  }

  .contact-company__item img {
    width: 20px;
    height: 20px;
  }

  .right-block__company {
    padding: 20px;
  }

  .right-block__company iframe {
    height: 300px;
    border-radius: 8px;
  }
}

/* === Улучшение для планшетов (768px–1024px) === */
@media (min-width: 768px) and (max-width: 1024px) {
  .company-section {
    padding: 40px 20px;
  }

  .left-block__company {
    padding: 25px;
  }

  .right-block__company {
    padding: 30px 20px;
  }

  .main-image__company {
    height: 300px;
  }

  .contact-company__item {
    font-size: 30px;
  }

  .right-block__company iframe {
    height: 340px;
  }
}

/* === Десктопы (1025px и выше) === */
@media (min-width: 1025px) {
  .company-section {
    height: 50vh;
  }
  .content-company__wrapper {
    flex-direction: row;
    gap: 20px;
  }

  .left-block__company {
    max-width: 500px;
    padding: 30px;
  }

  .right-block__company {
    max-width: 638px;
    padding: 50px 20px;
  }

  .right-block__company iframe {
    height: 443px;
  }
}


/*--СЕКЦИЯ УСЛУГИ ГЛАВНАЯ--*/
 .main-header__services {
            width: 100%;
            min-height: 40vh;
            background: url('/img/servicesmain.png') no-repeat center center / cover;
            color: #fff;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .main-header__services::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 1;
            pointer-events: none;
        }
        
        .hero-services__text {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 1300px;
            margin: 0 auto;
            padding: 60px 40px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 20px;
        }
        
        .hero-services__title {
            font-family: 'PT Serif', serif;
            font-size: 36px;
            font-weight: 400;
            margin: 0;
            white-space: normal;
        }
        
        .hero-services__p {
            font-family: 'PT Serif', serif;
            font-size: 18px;
            font-weight: 400;
            margin: 0;
            max-width: 800px;
            line-height: 1.5;
        }
        
        /* Центрированное расположение в ряд для больших экранов */
        @media (min-width: 1024px) {
            .main-header__services {
                min-height: 45vh;
            }
            
            .hero-services__text {
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 80px;
                padding: 80px 40px;
                text-align: left;
            }
            
            .hero-services__title {
                font-size: 48px;
                white-space: nowrap;
                margin: 0;
                flex-shrink: 0;
                text-align: right;
                width: auto;
            }
            
            .hero-services__p {
                font-size: 24px;
                max-width: 800px;
                text-align: left;
                margin: 0;
                padding-right: 40px;
            }
        }
        
        /* Адаптация для планшетов (768px – 1023px) */
        @media (min-width: 768px) and (max-width: 1023px) {
            .main-header__services {
                min-height: 45vh;
            }
            
            .hero-services__text {
                padding: 60px 40px;
                gap: 30px;
            }
            
            .hero-services__title {
                font-size: 36px;
            }
            
            .hero-services__p {
                font-size: 20px;
                max-width: 500px;
            }
        }
        
        /* Адаптация для мобильных (480px – 767px) */
        @media (max-width: 767px) {
            .hero-services__text {
                padding: 50px 30px;
                gap: 20px;
            }
            
            .hero-services__title {
                font-size: 28px;
            }
            
            .hero-services__p {
                font-size: 16px;
            }
        }
        
        /* Адаптация для маленьких мобильных (<480px) */
        @media (max-width: 479px) {
            .main-header__services {
                min-height: 45vh;
            }
            
            .hero-services__text {
                padding: 40px 20px;
                gap: 15px;
            }
            
            .hero-services__title {
                font-size: 24px;
            }
        }

/*--СЕКЦИЯ ВОПРОСЫ И ЭТАПЫ СДЕЛКИ--*/
.deal-section {
  background-color: #fff;
  max-width: 1380px; /* Максимальная ширина */
  
  overflow: hidden;
  margin: 0 auto;
  padding-top: 100px;
  font-family: 'PT Serif', serif;
}

.container__deal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-title__deal,
.faq-title {
  font-size: 50px;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin-bottom: 70px; /* Расстояние от заголовка до блока */
}

.deal-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 150px;
}

.image-column {
  flex: 0 0 35%; /* Картинка занимает 35% ширины */
  max-width: 60%; /* Можно также использовать 550px и т.п. */
  height: auto;
}

.vertical-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: black;
  color: white;
  font-size: 30px;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative; /* Для вертикальной линии */
}

.step-number::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px; /* Позиция линии */
  width: 2px; /* Толщина линии */
  height: 100vh; /* Высота линии */
  background-color: black;
  opacity: 0.5; /* Прозрачность линии */
  z-index: -1; /* Чтобы линия была под текстом */
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-title {
  font-size: 22px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.step-description {
  font-size: 19px;
  font-weight: normal;
  color: #000;
  margin: 0;
}

.step-line {
  width: 124px;
  height: 2px;
  background-color: black;
  margin-left: 78px;
}

@media (max-width: 1032px) {
  .deal-section {
    max-width: 100%; /* Полная ширина экрана */
    padding-top: 40px; /* Уменьшаем отступ сверху */
    padding-bottom: 40px; /* Добавляем отступ снизу */
  }

  .container__deal {
    max-width: 93%; /* Уменьшаем максимальную ширину контейнера */
    padding: 0 10px; /* Уменьшаем внутренние отступы */
  }

  .section-title__deal {
    font-size: 45px; /* Уменьшаем размер заголовка */
    margin-bottom: 50px; /* Корректируем отступ */
    margin-top: 20px;
  }

  .deal-content {
    flex-direction: column; /* Ставим колонку для мобильных */
    gap: 30px; /* Уменьшаем расстояние между элементами */
  }

  .image-column {
    width: 100%; /* Занимает всю ширину экрана */
    height: auto; /* Высота автоматическая */
    margin: 0 auto; /* Центрирование изображения */
  }

  .vertical-image {
    width: 100%;
    height: auto;
   
    object-fit: cover;
    margin-bottom: 20px;
    min-height: 300px;
  }

  .steps {
    gap: 20px; /* Уменьшаем расстояние между шагами */
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .step-title {
    font-size: 24px;
  }

  .step-description {
    font-size: 18px;
  }

  .step-line {
    display: none; /* Скрываем линию на мобильных */
  }

  .step-number::after {
    display: none; /* Скрываем вертикальную линию на мобильных */
  }
}
@media (max-width: 915px) {
   .section-title__deal {
    font-size: 40px;
   }
    .vertical-image {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
  }
}
@media (max-width: 896px) {
   .section-title__deal {
    font-size: 25px;
   }
    .vertical-image {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
  }
}

/* FAQ */
.questions {
  overflow: hidden;
  background-color: #fafafa;
}
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 90px;
}
.faq-title {
  margin-top: 80px;
}
.faq-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.faq-text {
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
}

.faq-toggle {
  width: 50px;
  height: 50px;
  font-size: 30px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.faq-toggle.open {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 18px;
  color: #555;
  display: none;
  margin-top: 10px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Стиль для основного текста с абзацами */
.faq-answer p {
  margin-bottom: 10px;
}

/* Стиль для маркированного списка */
.faq-answer ul {
  list-style: none;
  padding-left: 20px;
  margin: 10px 0;
}

.faq-answer ul li::before {
  content: "・";
  margin-right: 10px;
  color: #000;
}

/* Разделитель */
.faq-divider {
  width: 1050px;
  height: 2px;
  background-color: black;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .deal-section {
    padding-top: 60px;
    width: 100%;
    min-height: auto;
  }

  .container__deal {
    padding: 0 20px;
  }

  .section-title,
  .faq-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .deal-content {
    flex-direction: column;
    gap: 30px;
  }

  .image-column {
    width: 100%;
    height: auto;
  }

  .vertical-image {
    width: 100%;
    height: auto;
  }

  .steps {
    margin-top: 20px;
    gap: 40px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-description {
    font-size: 18px;
  }

  /* FAQ */
  .faq-container {
    margin-top: 60px;
  }

  .faq-divider {
    width: calc(100% - 40px); /* 100% ширины экрана минус 20px слева и 20px справа */
    margin-left: 15px;
    margin-right: 15px;
    
  }

  .faq-question {
    padding: 15px 25px;
    justify-content: space-between;
  }

  .faq-text {
    font-size: 16px;
  }

  .faq-toggle {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .faq-answer {
    display: none;
    padding: 10px 20px;
    font-size: 14px;
  }

  .faq-answer p,
  .faq-answer ul {
    margin-bottom: 8px;
  }
}


/*--СЕКЦИЯ КАК ПОЛУЧИТЬ КОНСУЛЬТАЦИЮ--*/
        .container__consultation {
            max-width: 1100px; /* Увеличено для ноутбуков */
            margin: 0 auto;
            padding: 0 25px;
        }

        .consultation-section {
            font-family: 'PT Serif', serif;
            padding: 80px 0; /* Увеличено для ноутбуков */
            background-color: #fff;
        }

        .consultation-wrapper {
            display: flex;
            gap: 60px; /* Увеличено для ноутбуков */
            align-items: flex-start;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .consultation-form {
            flex: 1;
            min-width: 400px; /* Добавлено для лучшего контроля */
            max-width: 800px; /* Увеличено для ноутбуков */
        }

        .consultation-title {
            font-size: 36px; /* Увеличено для ноутбуков */
            margin-bottom: 25px;
            line-height: 1.3;
        }

        .subtitle {
            font-size: 18px; /* Увеличено для ноутбуков */
            color: #666;
            margin-bottom: 30px;
            line-height: 1.5;
        }

        .consultation-form ul {
            list-style: disc inside none;
            padding-left: 0;
            margin-bottom: 35px;
       
            
        }

        .consultation-form ul li {
            margin-bottom: 12px;
            font-size: 18px;
            color: #333;
            line-height: 1.5;
           
        }

        .contact-method {
            font-weight: bold;
            margin-bottom: 25px;
            font-size: 20px;
        }

        .consultation-icons a {
            font-size: 28px; /* Увеличено для ноутбуков */
            color: #333;
            margin-right: 20px;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .consultation-icons a:hover {
            color: #007BFF;
        }

        /* Стиль для квадратного изображения */
        .consultation-image {
            width: 500px;
            height: 450px; /* Увеличено для ноутбуков */
            overflow: hidden;
            border-radius: 12px;
            flex-shrink: 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .consultation-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Адаптация для ноутбуков (992px - 1440px) */
        @media (max-width: 1440px) {
            .container__consultation {
                max-width: 1000px;
            }
            .consultation-wrapper {
                gap: 50px;
            }
        }

/* Адаптация для планшетов (768px - 991px) */
@media (max-width: 991px) {
  .container__consultation {
    max-width: 950px;
    padding: 0 20px;
  }

  .consultation-section {
    padding: 60px 0;
  }

  .consultation-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .consultation-form {
    text-align: center;
    min-width: auto;
    max-width: 100%;
  }

  .consultation-questions {
    text-align: center;
  }

  .consultation-title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 26px;
  }

  .contact-method {
    font-size: 25px;
  }

  .consultation-image {
    margin-top: 20px;
    width: 100%;
    max-width: 490px;
    height: 400px;
  }

  .consultation-icons a {
    font-size: 24px;
  }

  /* Улучшение для списка: центрирование + justify на планшетах */
  .consultation-form ul {
    align-items: center;
  }

  .consultation-form ul li {
    max-width: 520px;
    text-align: justify;
    text-justify: inter-word;
    font-size: 30px;
  }
}

/* Адаптация для мобильных (480px - 767px) */
@media (max-width: 767px) {
  .container__consultation {
    padding: 0 15px;
  }

  .consultation-section {
    padding: 50px 0;
  }

  .consultation-title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 15px;
  }

  .consultation-form ul li {
    font-size: 16px;
    text-align: left;            /* На маленьких экранах — left */
    max-width: 100%;             /* Разрешаем растягиваться */
    padding: 0 10px;             /* Отступы, чтобы не упирался в края */
    box-sizing: border-box;
  }

  .consultation-form ul {
    align-items: stretch;        /* Растягиваем li на всю ширину */
    padding: 0 10px;
  }
}

/* Адаптация для маленьких мобильных (<480px) */
@media (max-width: 479px) {
  .consultation-section {
    padding: 40px 0;
  }

  .consultation-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .consultation-image {
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
  }

  .contact-method {
    font-size: 16px;
  }

  .consultation-icons a {
    font-size: 22px;
    margin-right: 15px;
  }

  .consultation-form ul li {
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    max-width: 100%;
    padding: 0 15px;
  }

  .consultation-form ul {
    padding: 0 15px;
    align-items: stretch;
  }
}


/*--СЕКЦИЯ КАЖДЫЙ РАБОТНИК--*/
.worker-section {
  background-color: #fafafa;
  padding: 120px 0; /* Увеличили отступы сверху и снизу */
  font-family: 'PT Serif', serif;
  position: relative;
}

.container {
  max-width: 1400px; /* Расширили контейнер */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 0 60px;
  box-sizing: border-box;
  position: relative;
}


.worker-image {
  width: 360px;
  height: 360px;
  overflow: hidden;
  border-radius: 12px;
}

.worker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.worker-content {
  flex: 1;
}

.worker-text {
  font-size: 24px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 30px;
}

.write-button {
  display: inline-block;
  padding: 14px 30px;
  font-size: 18px;
  font-family: inherit;
  color: #fff;
  background-color: #677326;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.write-button:hover {
  background-color: #55601f;
}

/*--СЕКЦИЯ КВАРТИРЫ НОВОСТРОЙКИ--*/
.new-buildings-section {
  background-color: #fafafa;
  padding: 80px 0;
  font-family: 'PT Serif', serif;
}

.container__flats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-title {
  font-size: 45px;
  font-weight: normal;
  color: #000;
  text-align: center;
  margin-bottom: 60px;
}

.buildings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: stretch;
}

.building-card {
  text-decoration: none;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  height: 100%; /* Чтобы все карточки были одинаковой высоты */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none; /* чтобы не кликались пока анимируется */
}

.building-card.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.building-card:hover {
  transform: translateY(-5px);
}


.building-image {
  width: 100%;
  height: 220px; /* Фиксированная высота для всех изображений */
  overflow: hidden;
}

.building-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.building-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: #333;
}

.load-more-container {
  margin-top: 60px;
  text-align: center;
}

.load-more-button {
  padding: 12px 40px;
  font-size: 18px;
  font-family: inherit;
  background-color: #677326;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.load-more-button:hover {
  background-color: #55601f;
}
/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
  .section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .buildings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .building-image {
    height: 200px;
  }

  .info-row {
    font-size: 15px;
  }
    .load-more-container {
    margin-top: 25px;
  }
  .load-more-button {
    padding: 10px 25px;
    font-size: 15px;
  }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
  .section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .buildings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .building-image {
    height: 180px;
  }

  .building-info {
    padding: 12px 15px;
    gap: 6px;
  }

  .info-row {
    font-size: 14px;
  }

  .load-more-container {
    margin-top: 20px;
  }

  .load-more-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .new-buildings-section {
    padding: 40px 0;
  }
}


/*--СЕКЦИЯ КОНКРЕТНОЙ КВАРТИРЫ--*/
.apartment-page {
  background-color: #fafafa;
  padding: 80px 0;
  font-family: 'PT Serif', serif;
}

.apartment-title {
  font-size: 45px;
  font-weight: normal;
  color: #000;
  text-align: center;
  margin-bottom: 40px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-image {
  width: 100%;
  height: auto;
  min-width: 100%;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.apartment-details {
  display: flex;
  gap: 60px;
  margin-top: 40px;
}

.apartment-characteristics {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.char-item {
  font-size: 18px;
  color: #333;
}

.apartment-map {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}


/*--СЕКЦИЯ МЕРОПРИЯТИЯ ГЛАВНАЯ СТРАНИЦА--*/
.main-header__events {
  width: 100vw;
  height: 100vh;
  background: url('/img/events.png') no-repeat center center / cover;
  position: relative;
  color: #fff;
}
.hero-events__text {
  position: absolute;
  top: calc(79px + 167px + 260px); /* header высота + отступ */
  right: 0;
  padding-right: 150px;
  text-align: left;
}
.hero-events__title {
  font-family: 'PT Serif', serif;
  font-size: 58px;
  font-weight: 500;
  margin-bottom: 15px;
}
.nav-link__about {
  font-size: 25px;
  font-weight: normal;
  text-decoration: none;
  color: #000;
}



/* МЕРОПРИЯТИЯ */
.events-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #2c3e50;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  display: block;
  text-decoration: none;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

/* Фоновые изображения для карточек */
.event-excursion {
  background-image: url('/img/newm1.png'); /* заменить на реальные фото */
}

.event-corporate {
  background-image: url('/img/service1.png');
}

.event-exhibition {
  background-image: url('/img/deal.png');
}

.event-title {
  font-family: 'PT Serif', serif;
  font-size: 30px;
  font-weight: normal;
  text-align: left;
  padding: 15px 20px;
  color: #2c3e50;
  text-align: center;
}

/* Модальное окно */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 15px;
}

.modal-content img {
  width: calc(33% - 10px);
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.close-btn {
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  cursor: pointer;
}

/*ЭКСКУРСИИ*/
.gallery-section {
  padding: 40px 20px;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/*КАЖДАЯ НОВОСТЬ ОТДЕЛЬНО*/
.news-detail-container {
  font-family: 'PT Serif', serif;
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  flex-direction: row;
}

.news-main {
  flex: 2;
}

.news-sidebar {
  flex: 1;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-sidebar h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.news-sidebar .news-item {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: #333;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  gap: 12px;
}

.news-sidebar .news-item:hover {
  color: #28a745;
}

.news-sidebar .news-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.news-sidebar .news-item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-sidebar .news-title {
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
}

.news-sidebar .news-subtitle {
  font-size: 13px;
  color: #777;
  margin-top: 2px;
  margin-bottom: 0;
}

.news-detail h1 {
  font-family: 'PT Serif', serif;
  font-size: 36px;
  margin-bottom: 20px;
  color: #2c3e50;
}

/* Главное изображение — адаптивное */
.main-image {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.main-image img {
  width: 100%;
  height: 500px; /* Уменьшаем высоту на всех устройствах */
  object-fit: cover;
  border-radius: 12px;
}

/* Текст новости */
.news-main #detail-content p,
.news-main .news-detail p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

/* Уменьшаем отступ сверху на мобильных */
.news-main #detail-content p:first-child,
.news-main .news-detail p:first-child {
  margin-top: 30px;
}

.gallery-slider {
  margin-top: 25px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slider img {
  display: inline-block;
  width: 180px; /* Уменьшено */
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 15px;
}

.back-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background-color: #218838;
}
@media (max-width: 768px) {
  .news-detail-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
    margin: 40px 0;
  }

  .news-main {
    flex: none;
    width: 100%;
  }

  .news-sidebar {
    width: 100%;
    padding: 15px;
  }

  .news-detail h1 {
    font-size: 28px;
    margin-bottom: 5px;
  }

  .main-image img {
    height: 300px; /* Ещё меньше на маленьких экранах */
    border-radius: 8px;
  }

  .news-main #detail-content p,
  .news-main .news-detail p {
    font-size: 16px;
    line-height: 1.7;
  }

  .news-main #detail-content p:first-child {
    margin-top: 20px; /* Уменьшаем отступ */
  }

  .gallery-slider img {
    width: 150px;
    height: 110px;
    margin-right: 10px;
  }

  .back-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Для очень маленьких экранов (например, iPhone SE) */
@media (max-width: 480px) {
  .news-detail h1 {
    font-size: 24px;
  }



  .gallery-slider img {
    width: 130px;
    height: 100px;
  }

  .news-sidebar .news-title {
    font-size: 15px;
  }

  .news-sidebar .news-subtitle {
    font-size: 12px;
  }
}

    /*FOOTER*/


    footer {
      font-family: 'PT serif', sans-serif;
      line-height: 1.6;
      background-color: #1a1a1a;
      padding: 40px 50px;
      border-top: 1px solid #eaeaea;
    }

    .footer-container {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 40px;
    }

    .logo {
      flex: 1;
    }

    .logo img {
      height: 110px;
    }

    .contact-form {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .contact-form input {
      padding: 12px 16px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 16px;
      width: 100%;
    }

    .contact-form button {
      padding: 12px;
      background-color: #28a745;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      transition: background-color 0.3s ease;
    }

    .contact-form button:hover {
      background-color: #28a745;
    }

    .contacts {
      flex: 1;
      text-align: right;
    }

    .contacts p {
      margin-bottom: 8px;
      font-size: 18px;
      color: #28a745;
    }

    .contacts a {
      color: #dfdfdf;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
    }

    .contacts a i {
      font-size: 18px;
    }

    /* Цвет иконки Telegram как родной */
    .contacts a .fa-telegram {
      color: #0088cc;
    }

    .contacts a:hover {
      text-decoration: underline;
    }

    /* Адаптация до 875px */
    @media (max-width: 875px) {
      .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
      }

      .logo,
      .contact-form,
      .contacts {
        flex: none;
        width: 100%;
      }

      .logo img {
      height: 100px;
      margin-top: 30px;
    }

      .contacts {
        text-align: center;
        margin-top: 10px;
      }

      .contact-form {
        margin: 20px 0;
      }

      .contacts a {
        justify-content: center; /* Центрируем ссылку с иконкой */
      }
    }



/* ГАЛЕРЕЯ С ФОТО */
    /* Общие стили */

/* Галерея */
/* КНОПКА НАЗАД — ВНЕ ГАЛЕРЕИ */
#back-button {
  display: block;
  margin: 20px 0 10px 20px; /* Отступы: сверху, снизу, слева */
  background-color: transparent;
  color: #000000;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  width: fit-content;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#back-button:hover {
  background-color: #efefef;
  transform: translateY(-1px);
}

/* СЕКЦИЯ ГАЛЕРЕИ — ШИРЕ И БЕЗ ВНУТРЕННЕЙ КНОПКИ */
/* Обнуление и базовые стили */


/* Кнопка "Назад" */


/* Галерея */
#gallery-section {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 колонок на десктопе */
  gap: 10px; /* расстояние между фото */
  margin-top: 20px;
  margin-bottom: 20px;
}

.gallery-container img {
  width: 100%;
  height: 300px; /* одинаковая высота */
  object-fit: cover; /* обрезка для сохранения пропорций */
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.gallery-container img:hover {
  transform: scale(1.03);
}

/* Адаптивность: до 768px — 2 фото в ряду */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на телефонах */
  }

  .gallery-container img {
    height: 200px; /* чуть меньше на маленьких экранах */
  }
}

/* Дополнительно: для планшетов — 3-4 колонки */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 880px) and (min-width: 769px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}