.location {
  position: relative;
}

.location-header {
  z-index: 2;
  position: relative;
}

.location-header-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.location-header-content>h3 {
  font-weight: 900;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0px;
}

.location-header-content p {
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0px;
  width: 626px;
}

.location-header-content div {
  width: 100%;
}

.location-header-button {
  background: transparent;
  border: 0px;
  font-family: 'Onest', sans-serif;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 13px;
  transition: var(--trans-md);
  cursor: pointer;
  color: var(--primary-color);
}

.location-header-button:hover {
  color: var(--primary-color-hovered);
}

.location-header-button-text {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0px;
}

.location-header-button-icon {}

.location-content {
  padding-top: 470px;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 100%;
  position: relative;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 30px;
}

.location-background {
  background-image: url("../../assets/images/Vector\ 1001.jpg");
  width: 100vw;
  height: 940px;
  position: absolute;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  top: 135px;
  z-index: 1;
  left: 0;
}

.location-content-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: stretch;
  gap: 32px;
  z-index: 3;
  position: relative;
  overflow-x: scroll;
  /* Ограничиваем прокрутку по горизонтали */
  width: 100%;
  box-sizing: border-box;
  padding: 0px 80px;

  /* Scroll-snap */
  scroll-snap-type: x mandatory;
  /* Горизонтальная прокрутка с обязательным прилипанием */

  /* Скрытие полосы прокрутки */
  -ms-overflow-style: none;
  /* IE и Edge */
  scrollbar-width: none;
  /* Firefox */
}

.location-content-slider::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, и другие Webkit-браузеры */
}

.location-content-slider-item {
  box-sizing: border-box;
  padding: 16px;
  background-color: #fff;
  border: none;
  position: relative;
  transition: var(--trans-md);
  cursor: pointer;

  /* Scroll-snap для всех элементов */
  scroll-snap-align: center;
  /* Прилипание к началу */
  flex-shrink: 0;
}

.location-content-slider-item>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-content-slider-item:first-child {
  scroll-snap-align: end;
  /* Прилипание к началу для первого элемента */
}

/* Последний элемент прилипает к концу */
.location-content-slider-item:last-child {
  scroll-snap-align: end;
  /* Прилипание к концу для последнего элемента */
}

.location-content-slider-item-play {
  z-index: 1;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  height: 48px;
  width: 48px;
  margin: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 500px;
  transition: var(--trans-md);
}

.location-content-slider-item-play svg {
  padding-left: 7px;
}

.location-content-slider-item:hover {
  background-color: var(--primary-color);
}

.location-content-slider-item:hover .location-content-slider-item-play {
  background-color: var(--primary-color-hovered);
}

@media screen and (max-width: 1599px) and (min-width: 1280px) {
  .location-background {
    height: 800px;
    top: 210px;
  }

  .location-content {
    padding-top: 470px;
  }

  .location-header-content>h3 {
    font-weight: 900;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0px;
  }

  .location-header-content p {
    font-weight: 300;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .location-header-button-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .location-content-slider-item {
    height: 180px;
    width: 264px;
  }
}

@media screen and (max-width: 1279px) and (min-width: 1024px) {
  .location-background {
    height: 800px;
    top: 210px;
  }

  .location-content {
    padding-top: 470px;
  }

  .location-header-content>h3 {
    font-weight: 900;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0px;
  }

  .location-header-content p {
    font-weight: 300;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .location-header-button-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .location-content-slider-item {
    height: 180px;
    width: 264px;
  }

  .location-content-slider {
    gap: 24px;
  }
}

@media screen and (max-width: 1023px) and (min-width: 640px) {
  .location-background {
    height: 488px;
    top: 260px;
  }

  .location-content {
    padding-top: 470px;
  }

  .location-header-content>h3 {
    font-weight: 900;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: 0px;
  }

  .location-header-content p {
    font-weight: 300;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    width: 100%;
  }

  .location-header-button-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .location-content-slider-item {
    height: 151px;
    width: 222px;
  }

  .location-content-slider {
    gap: 8px;
  }
}

@media screen and (max-width: 639px) {
  .location-background {
    height: 510px;
    top: 38%;
    background-position: 64% 20%;
  }

  .location-content {
    padding-top: 420px;
  }

  .location-header-content>h3 {
    font-weight: 900;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: 0px;
  }

  .location-header-content p {
    font-weight: 300;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    width: 100%;
  }

  .location-header-button-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .location-content-slider-item {
    height: 151px;
    width: 222px;
  }

  .location-content-slider {
    gap: 8px;
  }
}