/* ======================
   ИСХОДНЫЕ СТИЛИ
   ====================== */

.u-section-1 {
  background-image: none;
}

.u-section-1 .u-sheet-1 {
  min-height: 1020px;
}

.u-section-1 .u-text-1 {
  font-size: 3rem;
  background-image: none;
  font-weight: 700;
  margin: 32px auto 0;
}

.u-section-1 .u-tabs-1 {
  min-height: 692px;
  height: auto;
  margin-top: 32px;
  margin-bottom: 60px;
}

.u-section-1 .u-tab-link-1 {
  background-image: none;
}

.u-section-1 .u-tab-link-2 {
  background-image: none;
}

.u-section-1 .u-container-layout-1 {
  padding: 0 0 30px;
}

.u-section-1 .u-text-2 {
  margin: 30px 30px 0;
}

.u-section-1 .u-gallery-1 {
  height: 406px;
  margin-top: 34px;
  margin-bottom: -282px;
  grid-gap: 17px 17px;
}

.u-section-1 .u-gallery-inner-1 {
  grid-template-columns: repeat(3, auto);
  grid-gap: 17px;
}

.u-section-1 .u-over-slide-1 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-over-slide-2 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-over-slide-3 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-container-layout-2 {
  padding: 30px 0;
}

.u-section-1 .u-text-3 {
  margin: 0 auto 0 30px;
}

.u-section-1 .u-gallery-2 {
  height: 388px;
  grid-gap: 17px 17px;
  margin-top: 0;
  margin-bottom: 0;
}

.u-section-1 .u-gallery-inner-2 {
  grid-template-columns: auto auto;
  grid-gap: 17px 17px;
}

.u-section-1 .u-over-slide-4 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-over-slide-5 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

@media (max-width: 1199px) {
  .u-section-1 .u-gallery-1 {
    height: 333px;
  }

  .u-section-1 .u-gallery-2 {
    height: 319px;
  }

  .u-section-1 .u-gallery-inner-2 {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 991px) {
  .u-section-1 .u-gallery-1 {
    height: 792px;
  }

  .u-section-1 .u-gallery-inner-1 {
    grid-template-columns: repeat(2, auto);
  }

  .u-section-1 .u-gallery-2 {
    height: 1012px;
  }

  .u-section-1 .u-gallery-inner-2 {
    grid-template-columns: repeat(1, auto);
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-gallery-1 {
    height: 1820px;
  }

  .u-section-1 .u-gallery-inner-1 {
    grid-template-columns: repeat(1, auto);
  }

  .u-section-1 .u-gallery-2 {
    height: 763px;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-text-1 {
    font-size: 1.5rem;
  }

  .u-section-1 .u-gallery-1 {
    height: 1159px;
  }

  .u-section-1 .u-gallery-2 {
    height: 487px;
  }
}

/* ================================
   СТИЛИ ДЛЯ ГАЛЕРЕИ 3 (НОВЫЙ РАЗДЕЛ)
   ================================ */

/* -- Основные стили для .u-gallery-3 -- */
.u-section-1 .u-gallery-3 {
  height: 406px; /* как у .u-gallery-1 */
  margin-top: 34px;
  margin-bottom: -282px;
  grid-gap: 17px 17px;
}

/* -- Сетка внутри .u-gallery-3 -- */
.u-section-1 .u-gallery-inner-3 {
  grid-template-columns: repeat(3, auto);
  grid-gap: 17px;
}

/* -- Оверлеи для изображений (если нужно) -- */
.u-section-1 .u-over-slide-6,
.u-section-1 .u-over-slide-7,
.u-section-1 .u-over-slide-8 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

/* -- Адаптивность для .u-gallery-3 -- */
@media (max-width: 1199px) {
  .u-section-1 .u-gallery-3 {
    height: 333px; /* Аналогично галерее 1 */
  }
}

@media (max-width: 991px) {
  .u-section-1 .u-gallery-3 {
    height: 792px; /* Аналогично галерее 1 */
  }
  .u-section-1 .u-gallery-inner-3 {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-gallery-3 {
    height: 1820px; /* Аналогично галерее 1 */
  }
  .u-section-1 .u-gallery-inner-3 {
    grid-template-columns: repeat(1, auto);
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-gallery-3 {
    height: 1159px; /* Аналогично галерее 1 */
  }
}

/* =============================
   УБИРАЕМ ЛИШНИЕ ОТСТУПЫ В 3 ВКЛАДКЕ
   (при необходимости)
   ============================= */
.u-section-1 .u-text-4 {
  margin: 0 !important;
  padding: 0 !important;
}

.u-section-1 .u-container-layout-3 {
  margin: 0 !important;
  padding: 30px 0 !important;
}

.u-section-1 .u-gallery-3 {
  margin: 0 !important;
  padding: 0 !important;
}
