.reviews {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-left: 212px;
  padding-right: 212px;
  padding-top: 120px;
  padding-bottom: 120px;
  background: #fff;
  overflow: hidden;
}
.reviews__top {
  display: flex;
  justify-content: space-between;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}
.reviews__title {
  color: #2d2f33;
  font-size: 48px;
  font-family: sans-serif;
  font-style: normal;
  font-weight: 800;
  line-height: 90%;
}
.reviews__description {
  max-width: 485px;
  color: #2d2f33;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

.reviews__slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}

.reviews__slider {
  width: 100%;
}

.reviews__slider-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.reviews__slider-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 calc(50% - 10px);
  /* max-width: calc(50% - 10px); */
  box-sizing: border-box;
  padding: 32px;
  border-radius: 10px;
  background: #f7f7f7;
  min-width: auto;
}

.reviews__slider-card img {
  width: 60px;
  border-radius: 50%;
  display: flex;
}

.reviews__stars {
  display: flex;
  gap: 4px;
}
.reviews__stars::before {
  content: "★★★★★";
  font-size: 20px;
  background: linear-gradient(
    90deg,
    #ed7033 calc(var(--rating) / 5 * 100%),
    #ccc calc(var(--rating) / 5 * 100%)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reviews__slider-arrow {
  background: #fff;
  padding: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 13.9px 0px rgba(104, 104, 104, 0.15);
  flex-shrink: 0;
}

.reviews__slider-arrows {
  display: flex;
  gap: 10px;
}

.reviews__slider-arrow:hover img {
  filter: brightness(0) invert(1);
}

.reviews__slider-arrow:hover {
  background: #ed7033;
  color: #fff;
}

.reviews__slider-arrow:disabled {
  opacity: 0.4;
}

.reviews__route-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.reviews__info {
  display: flex;
  flex-direction: column;
}

.reviews__name {
  color: #2d2f33;
  font-family: "Roboto Regular", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.reviews__date {
  color: #ccc;
  font-family: "Roboto Regular", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.reviews__bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.reviews__text {
  color: #2d2f33;
  font-family: "Roboto Regular", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 20px;
}

.reviews__url {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #7e7e7e;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  gap: 8px;
}

.reviews__url img {
  width: 35px;
}

.reviews__line {
  position: absolute;
  width: 0.5px;
  height: 80%;
  top: 5px;
  left: 5px;
  background-color: #ed7033;
}

.reviews__line::before {
  position: absolute;
  width: 10px;
  height: 10px;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: #ed7033;
}

.reviews__line::before,
.reviews__line::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ed7033;
}

.reviews__line::before {
  top: 0;
}

.reviews__line::after {
  bottom: 0;
}

.reviews__city {
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* font-size: 20px; */
  font-weight: 600;
}

.reviews__detailed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews__detailed-row {
  display: flex;
  justify-content: space-between;
}

.reviews__detailed-name {
  color: #a0a0a0;
}

.reviews__dots {
  flex-grow: 1;
  border-bottom: 1px dotted #a0a0a0;
  height: 17px;
}

.reviews__cost {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}

.reviews__price {
  color: #ed7033;
  font-family: "Manrope Regular";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.reviews__tax {
  color: #a0a0a0;
  font-family: "Manrope Regular";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

@media screen and (max-width: 1024px) {
  .reviews {
    padding: 60px 20px;
    gap: 40px;
  }

  .reviews__title {
    font-size: 24px;
  }

  .reviews__route-container {
    margin-bottom: 16px;
  }
  .reviews__slider-card {
    padding: 20px;
  }

  .reviews__text {
    font-size: 16px;
  }

  .reviews__name {
    font-size: 16px;
  }

  .reviews__date {
    font-size: 12px;
  }

  .reviews__url {
    font-size: 16px;
  }
}

@media screen and (max-width: 500px) {
  .reviews__slider-card {
    flex: 0 0 100%;
    width: 100%;
  }
  /* 
  .reviews__slider-track {
    gap: 0;
  } */

  .reviews__slider {
    width: 100%;
    overflow: hidden; /* Скрывает “вылезающие” слайды */
  }

  .reviews__slider-container,
  .reviews__slider {
    /* padding: 0; */
    overflow: hidden;
  }
}
