/*.brands-list--with-text .brands-list__items-wrapper {
  margin-top: 64px;
}*/

.brands-list--wide .grid-list--items-5 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.brands-list__items-wrapper--offset {
  position: relative;
  overflow: hidden;
}
.brands-list__items-wrapper--items-offset {
  padding: 0 32px;
}
.brands-list__items-wrapper--offset::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 0;
  background: #fff;
  background: var(--black_bg_black);
  z-index: 1;
  width: 2px;
}
.brands-list__items-wrapper--offset::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: -1px;
  right: 0;
  background: #fff;
  background: var(--black_bg_black);
  width: 2px;
}
.index-block--fon .brands-list__items-wrapper--offset::before,
.index-block--fon .brands-list__items-wrapper--offset::after {
  background: #fafafa;
  background: var(--light_bg_black);
}

.brands-list__item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25%;
  border-radius: 4px;
  position: relative;
}
.brands-list__item--padding-SMALL {
  padding: 15%;
}
.brands-list__item--bg-white {
  background: #fff;
  background: var(--black_bg_black);
}
.brands-list__item--no-offset-y {
  padding-top: 0;
  padding-bottom: 0;
}
.brands-list--items-close .brands-list__item.bordered {
  margin: 0 -1px -1px 0;
  border-radius: 0px;
}
.brands-list--items-close .brands-list__items-wrapper--offset .brands-list__item.bordered {
  margin: 0 -1px -2px 0;
  border-top: none;
}

.brands-list__image-wrapper {
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray;
    opacity: 0.5;

    transition: all 0.3s ease-in-out; */
}
/* .brands-list__item:hover .brands-list__image-wrapper {opacity: 1;-webkit-filter: grayscale(0);-moz-filter: grayscale(0);filter: grayscale(0);filter: none;} */
.brands-list__image {
  max-width: 100%;
  max-height: 100%;
}

/* @DEPRECATED
   owl-gallery 
*/
.brands-list .owl-stage {
  display: flex;
}
.brands-list .owl-item {
  flex-shrink: 0;
}
.brands-list .owl-carousel .owl-item .brands-list__image {
  width: auto;
}
.brands-list .owl-carousel:not(.owl-loaded) {
  min-height: 200px;
}
/**/

/* SLIDER */
.brands-list__slider-wrap{
  position: relative;
}

.brand-list__items--centered {
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .brands-list__slider-wrap .grid-list__item {
    width: auto;
  }
}

@media (max-width: 991px) {
  .brands-list__items-wrapper--items-offset {
    padding: 0 24px;
  }
}
@media (max-width: 767px) {
  .brands-list--with-text .brands-list__items-wrapper {
    margin-top: 32px;
  }

  .brands-list__item--left-side-adaptive {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
  }
  .brands-list__item--left-side-adaptive .brands-list__image-wrapper {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .brands-list__item {
    padding: 40px 0;
  }
}

/* IE */
html.bx-ie .brands-list__item {
  padding: 5%;
}
html.bx-ie .brands-list__item--padding-SMALL {
  padding: 2%;
}











.works-slider {
    padding: 120px 0;
    background: #050505;
    color: #fff;
}

.works-slider__head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.works-slider__head h2 {
    font-size: 54px;
    margin-bottom: 20px;
}

.works-slider__head p {
    max-width: 760px;
    color: #b0b0b0;
    line-height: 1.7;
}

.works-slider__all {
    color: #d7a857;
    text-decoration: none;
}

.works-main-slider {
    border: 1px solid rgba(215,168,87,.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
}

.work-slide {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 700px;
}

.work-slide__content {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-slide__counter {
    color: #d7a857;
    margin-bottom: 30px;
}

.work-slide__content h3 {
    font-size: 64px;
    margin-bottom: 30px;
}

.work-slide__content p {
    color: #b8b8b8;
    line-height: 1.8;
    margin-bottom: 40px;
}

.work-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 64px;

    border: 1px solid #d7a857;
    color: #d7a857;
    text-decoration: none;
}

.works-prev,
.works-next {
    position: absolute;
    top: 50%;
    width: 64px;
    height: 64px;

    border: 1px solid #d7a857;
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;

    transform: translateY(-50%);
}

.works-prev {
    left: 30px;
}

.works-next {
    right: 30px;
}

.works-thumbs .swiper-slide {
    opacity: .5;
    cursor: pointer;
    transition: .3s;
}

.works-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.works-thumbs img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border: 1px solid rgba(215,168,87,.3);
}








/* =========================
   Слайдер
========================= */

.slider {
    position: relative;
    width: 100%;
    /*height: 100vh;*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 40px 80px;
    box-sizing: border-box;
}

/* Размытый фон */
.slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.2);
    z-index: 0;
    transition: background-image .5s ease;
}

/* Левая колонка */
.slider__content {
    width: 45%;
    position: relative;
    z-index: 2;
}

/* Контейнер изображений */
.slide {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Все картинки скрыты */
.slide img {
    display: none;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* Активная картинка */
.slide img.active {
    display: block;
    animation: fadeIn .4s ease;
}

/* Правая колонка */
.slider__text-wrapper {
    width: 45%;
    position: relative;
    z-index: 2;
}

/* Все тексты скрыты */
.slider__text {
    display: none;
}

/* Активный текст */
.slider__text.active {
    display: block;
    animation: textShow .4s ease;
}

.slider__title {
    margin-bottom: 20px;
    color: #fff;
}

.slider__description {
    color: #fff;
    line-height: 1.7;
    margin-bottom: 20px;
}

.slider__description p:not(:last-child) {
    margin-bottom: 20px;
}

.slider__button {
    margin-top: 30px;
}

/* Кнопки */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);

    color: #fff;
    font-size: 32px;
    cursor: pointer;

    z-index: 10;

    transition: .3s;
}

.prev:hover,
.next:hover {
    background: rgba(255,255,255,.4);
}

.prev {
    left: -80px;
}

.next {
    right: -80px;
}

/* Анимации */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textShow {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.slider__author {
    margin-top: 30px;
    margin-bottom: 30px;
}




/* =========================
   ADAPTIVE
========================= */

/* <= 1200px */
@media (max-width: 1200px) {

    .slider {
        padding: 30px 40px;
        gap: 40px;
    }

    .prev {
        left: -50px;
    }

    .next {
        right: -50px;
    }

    .slide {
        min-height: 500px;
    }
}




/* <= 992px (планшеты) */
@media (max-width: 992px) {

    .slider {
        flex-direction: column;
        padding: 30px 25px;
        gap: 30px;
    }

    .slider__content,
    .slider__text-wrapper {
        width: 100%;
    }

    .slide {
        min-height: 450px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .slider__text-wrapper {
        margin-top: 10px;
    }
}



/* <= 768px (крупный мобайл) */
@media (max-width: 768px) {

    .slider {
        padding: 20px 15px;
    }

    .slide {
        min-height: 380px;
    }

    .slide img {
        max-height: 60vh;
    }

    .prev,
    .next {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}




/* <= 480px (телефоны) */
@media (max-width: 480px) {

    .slider {
        padding: 15px 10px;
        gap: 20px;
    }

    .slide {
        min-height: 320px;
    }

    .slide img {
        max-height: 55vh;
    }

    .slider__title {
        font-size: 18px;
    }

    .slider__description {
        font-size: 14px;
        line-height: 1.5;
    }

    .slider__author {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .prev,
    .next {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }
}

