.rating-block {
  position: relative;
  background: #f4f5f7;
  padding: 60px 0;
}

.container {
  max-width: 1230px;
  margin: auto;
  padding: 0 15px;
  height: 100%;
}

.rating-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 110%;
  color: #101213;
  margin-bottom: 30px;
}

.rating-block__content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
}

.rating-block__top {
  position: relative;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.rating-block__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rating-block__stars {
  display: flex;
  gap: 42px;
  align-items: center;
}

.star {
  width: 90px;
  height: 90px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.star:hover {
  transform: scale(1.15);
}

.star polygon {
    transition: fill 0.3s ease;
}

.rating-block__right {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 350px;
  right: -29px;
  top: -42px;
}

.rating-block__decoration img {
  width: 450px;
  height: 200px;
  filter: brightness(1.3) saturate(0.95) contrast(0.85);
}

.rating-block__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.rating-block__input {
  width: 73%;
  padding: 20px 24px;
  font-size: 20px;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  height: 60px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.rating-block__input:focus {
  outline: none;
  border-color: #c9a861;
}

.rating-block__input::placeholder {
  color: #b0b0b0;
}

.button--rating {
  width: 230px;
  height: 60px;
  padding: 0;
}

@media (max-width: 1165px) {

  .rating-block__right {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    height: 200px;
    right: -123px;
    top: -48px;
    transform: rotate(44deg);
  }

  .rating-block__decoration img {
      width: 200px;
      height: 200px;
      filter: brightness(1.3) saturate(0.95) contrast(0.85);
  }
}

@media (max-width: 1024px) {
  .rating-block__top {
      flex-direction: column;
  }

  .rating-block__content {
      padding: 40px 30px;
  }

  .rating-block__input {
      width: 100%;
  }

  .button--rating {
      width: 100%;
  }

  .rating-block__bottom {
      justify-content: stretch;
      flex-direction: column;
  }
}

@media (max-width: 932px) {
  .rating-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
  .rating-title {
      width: 63%;
      font-size: 28px;
  }

  .rating-block__content {
      padding: 30px 20px;
  }

  .star {
      width: 50px;
      height: 50px;
  }
}
