.slider-wrapper {
  width: 100% !important;
  position: relative;
  padding: 0;
  margin: 0;
}

#btn-prev,
#btn-next {
  position: absolute;
  top: 40%;
  width: 26px;
  height: 25px;
  cursor: pointer;

  color: var(--color-dop);
  font-size: 80px;
  font-weight: bold;
  transition: 0.2s ease;
}

/* левая кнопка */
#btn-prev {
  left: 60px;
}

/* правая кнопка */
#btn-next {
  right: 60px;
}

.slide {
  position: relative;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.slide_fon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider_text {
  width: 100%;
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  flex-direction: column;
  color: var(--color-text) !important;
  text-align: left !important;
  gap: 30px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.slider_text * {
  margin-left: 0;
}

/* @keyframes bg-animation {
    0% {
        background-size: 120%;
        background-position: 50% 50%
    }

    20% {
        background-size: 150%;
        background-position: 0 50%;
    }

    40% {
        background-size: 110%;
        background-position: 20% 80%;
    }

    60% {
        background-size: 160%;
        background-position: 60% 10%;
    }

    80% {
        background-size: 120%;
        background-position: 40% 70%;
    }

    100% {
        background-size: 120%;
        background-position: 50% 50%
    }
}

@media (max-width: 620px) {
    .bg-animation {
        padding: 100px 20px;
        font-size: 26px;
    }
} */

.slider_text h2 {
  font-size: 50px;
  line-height: 1em;
  color: var(--color-gl);
  font-weight: 800;
  margin: 0;
  position: relative;
  width: fit-content;
  text-align: left !important;
  max-width: 500px;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.slideGl h2 {
  font-size: 24px;
  color: red;
}

.slider_desc {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  font-size: 60px;
  width: fit-content;
  color: white;
  font-weight: 800;
}

.flex-wrapper {
  position: relative;
}

/*  Задаем стиль в файле style
img {
    height: 100%;
    width: 100%;
}
*/

.dots-wrapper {
  display: flex;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 20px;
  left: 50%;
}

.dot.active {
  background-color: var(--color-dop);
  opacity: 0.5;
}

.dots-wrapper span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #bbbabb;
  opacity: 0.3;
  margin-right: 10px;
  cursor: pointer;
}

.dots-wrapper span:last-child {
  margin-right: 0;
}

.slide.active {
  height: 610px;
  display: flex;
  align-items: center;
  /* justify-content: center;  */
  margin: 0;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

@media screen and (max-width: 500px) {
  .slide.active {
    justify-content: center;
    height: 350px;
  }

  .slideGl .slider_img {
    width: 92%;
    height: 200px;
    margin-right: 0px;
  }

  .slideGl .slider_text {
    width: 100%;
  }

  .slider_text a {
    margin-top: 10px;
    right: 2%;
    top: auto;
    left: auto;
  }

  .slider_text h2 {
    font-size: 26px !important;
    margin-top: 20px;
    margin-left: 0px;
  }

  #btn-prev {
    display: none;
  }

  #btn-next {
    display: none;
  }

  .dots-wrapper {
    display: none;
  }

  .slider_text {
    flex-wrap: wrap;
    flex-direction: column;
  }
}

.slider_carousel {
  background: white;
  box-shadow: 0 5px 5px -5px #333;
  height: 100px;
  margin: 40px auto;
  overflow: hidden;
  position: relative;
  /* width: 80%; */
  padding-left: 200px;
}

.slider_carousel::before,
.slider_carousel::after {
  background: linear-gradient(
    to right,
    white 0%,
    rgba(255, 0, 0, 0) 100%
  ) !important;
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.slider_carousel::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider_carousel::before {
  left: 0;
  top: 0;
}

.slider_carousel .slide_carousel_track {
  animation: scroll 40s linear infinite;
  display: flex;
  justify-content: space-between;
  /* width: calc(250px * 14); */
  width: max-content;
}

.slider_carousel .slide_carousel {
  height: 100px;
  /* width: 250px; */
  margin-right: 60px;
}

@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 7));
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 7));
  }
}

.slider_descp__title {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.slider_descp__subtitle {
  margin-top: 0px;
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.map-slide-text h2 {
  font-size: 60px;
  line-height: 1em;
  color: white;
  background-color: var(--color-dop);
  font-weight: 800;
  margin: 0;
  position: relative;
  width: fit-content;
  padding: 14px;
  margin-bottom: 20px;
}

.main-slider {
  position: relative;
  width: 100%;
  height: 900px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.main-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#090909cf, #ffffff00);
}

.main-slider .wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.slide-content {
  margin-top: 10%;
}

.slide-content h2 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0px;
  margin-bottom: 0px;
  text-transform: uppercase;

  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.slide-content h2 span {
  color: #fae31f;
  display: inline !important;
}

.promo-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-block .promo-title {
  font-size: 24px;
  /* font-weight: bold; */
  margin-top: 5px;
  margin-bottom: 5px;
}

.promo-block .promo-text {
  font-size: 20px;
  font-weight: 200;
  width: 50%;
}

.slide-content p {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.slide-content span {
  display: inline-block;
  max-width: 50% !important;
}

.slide-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: #1cd45c;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-right: 15px;
}

.slide-btn:hover {
  background: #17b94e;
}

.slider-header {
  z-index: 10;
  padding: 20px 0px;
  background-color: #202020;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  color: white !important;
}

.logo-link {
  color: white !important;
}

@media (max-width: 768px) {
  .slider-header {
    flex-direction: column;
    padding: 10px 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-slider {
    /* height: 1100px !important; */
    background-position-x: right;
  }

  .slider-header .logo,
  .slider-header .header-phone {
    margin: 5px 0;
  }

  .header-phone {
    display: none !important;
  }

  .slider-installment {
    display: none !important;
  }

  .text-carousel {
    margin-bottom: 20px;
  }
}

.text-carousel {
  margin-top: 20px;
}

/* Планшеты */
@media (max-width: 992px) {
  .slide-content h2 {
    font-size: 32px;
  }

  .slide-content {
    margin-top: 16%;
  }

  .slide-content span {
    width: 90% !important;
  }
}

/* Мобильные */
@media (max-width: 576px) {
  .slide-content h2 {
    font-size: 24px;
  }

  .promo-block .promo-title {
    font-size: 18px;
  }

  .promo-text {
    width: 100% !important;
  }
}

.slider-header .logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-header .logo img {
  width: 65px;
  height: 65px;
}

.slider-header .logo-text div:last-child {
  font-weight: bold;
  font-size: 18px;
  margin-top: 6px;
}

.slider-header .header-phone a {
  font-size: 20px;
  color: white !important;
}

.slide-bottom-container {
  display: flex;
  align-content: center;
  justify-content: space-between;
}

.slider-installment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 0;
  height: 100px;
  width: 160px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(5px);

  color: #fff !important;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
  box-sizing: border-box;
  border: 1px solid white;
}

.slider-installment:hover {
  backdrop-filter: blur(12px);
  color: white !important;
}

.text-slide {
  display: none;
  transition: opacity 0.3s;
}

.text-slide.active {
  display: block;
}

.text-dots {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.text-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(204, 204, 204, 0.322);
  border: 1px solid white;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: 0.3s;
  cursor: pointer;
}

.text-dots .dot.active {
  background-color: var(--color_gl);
}

.text-slide {
  text-transform: uppercase;
  font-size: 20px;
}

.text-slide p {
  margin-top: 0;
}

.slider-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-pages {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-pages a {
  display: inline-block;
  transition: 0.2s ease;
  color: white !important;
  font-size: 16px;
  background-color: var(--color_gl);
  padding: 14px 16px;
  cursor: pointer;
  border-radius: 6px;
}

.header-pages a:hover {
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .header-pages {
    display: none;
  }

  .burger-btn {
    display: block;
  }
}

@media (max-width: 800px) {
  .slider-header .logo-text div:last-child {
    font-size: 16px;
  }
}

@media (max-width: 770px) {
  .slide-content h2 {
    font-size: 44px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .slick-track {
    padding: 0px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 1320px) {
  .slick-custom-btn {
    display: none !important;
  }
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.slider-prev {
  left: 5px;
}

.slider-next {
  right: 5px;
}

@media (max-width: 400px) {
  .slide-content h2 {
    font-size: 28px;
  }

  .slider-header .logo-text div:last-child {
    font-size: 14px;
  }
}

.slick-track {
  display: flex !important;
  align-items: stretch;
}

.slick-slide {
  height: auto !important;
}

.card_default.review {
  height: 100%;
  display: flex !important;
  flex-direction: column;
}

.main_card-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.main_card-text p {
  flex-grow: 1;
  margin-bottom: 0;
}

.slick-inner {
  width: 100%;
}

.slick-track {
  gap: 12px;
}

.event-title {
  color: white;
}

.event-text {
  color: white;
}

.gallery-wrapper {
  width: 100%;
  overflow: visible;
  margin: 30px 0;
}

.gallery-slider {
  width: 100%;
  overflow: visible;
}

.gallery-slider .slick-list {
  overflow: visible;
}

.gallery-slider .slick-track {
  display: flex;
  align-items: center;
}

.gallery-slide {
  padding: 0 10px;
  box-sizing: border-box;
}

.gallery-link {
  display: block;
  text-decoration: none;
  outline: none;
  cursor: zoom-in;
}

.gallery-image {
  height: 420px;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ebe4d8;

  border-radius: 16px;
  overflow: hidden;

  opacity: 1;
  transition: opacity 0.3s ease;

  transform: none !important;
}

.gallery-link:hover .gallery-image {
  opacity: 0.72;
  transform: none !important;
}

.gallery-slide,
.gallery-slide:hover,
.gallery-image:hover,
.slick-slide,
.slick-slide:hover {
  transform: none !important;
}

.gallery-slider .slick-slide {
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.gallery-slider .slick-center {
  opacity: 1;
}

.gallery-slider .slick-prev,
.gallery-slider .slick-next {
  z-index: 10;
}

/* Fancybox 3 */
.fancybox-image {
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 80px) !important;
  object-fit: contain !important;
  border-radius: 12px;
}

/* Fancybox 4 */
.fancybox__image {
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 80px) !important;
  object-fit: contain !important;
  border-radius: 12px;
}

/* Плавность для side-menu */
.side-menu {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

@media (max-width: 768px) {
  .gallery-image {
    height: 320px;
    border-radius: 12px;
  }

  .gallery-slider .slick-slide {
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  .gallery-image {
    height: 260px;
  }
}

.event-hero-actions .event-btn-outline {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff;
  border: 1px solid var(--gl) !important;
  backdrop-filter: blur(4px) !important;
}
