.kf-reviews {
  padding: 0 0 2.5rem;
}

.kf-reviews__intro {
  margin-bottom: 1.75rem;
  text-align: center;
}

.kf-reviews__h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
}

.kf-reviews__lead {
  max-width: 46rem;
  margin: 0 auto 1.25rem;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.55;
}

.kf-reviews__empty {
  margin: 0 0 2rem;
  color: #666;
  text-align: center;
}

.kf-reviews-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 920px;
  margin: 1.25rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.kf-reviews-bar__left {
  flex: 0 1 auto;
}

.kf-reviews-bar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
  margin-left: auto;
}

.kf-reviews-bar__yandex {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #1e2228;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

a.kf-reviews-bar__yandex:hover {
  color: #e53935;
}

a.kf-reviews-bar__yandex:hover .kf-reviews-bar__yandex-text {
  text-decoration: underline;
}

.kf-reviews-bar__yandex--muted {
  color: #888;
  cursor: default;
}

.kf-reviews-bar__icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
}

.kf-reviews-bar__company {
  text-align: left;
}

.kf-reviews-bar__company-name {
  font-weight: 700;
  color: #1e2228;
  line-height: 1.25;
}

.kf-reviews-bar__company-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.kf-reviews-bar__stars {
  display: inline-flex;
  gap: 0.05rem;
  color: #d8d8d8;
  font-size: 0.95rem;
  line-height: 1;
}

.kf-reviews-bar__star.is-on {
  color: #f5b400;
}

.kf-reviews-bar__score {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

.kf-reviews-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 5px;
  background: #ff7a1a;
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.kf-reviews-bar__btn:hover {
  background: #e86b10;
  color: #fff !important;
}

.kf-reviews-home .kf-reviews-bar {
  margin: 0 0 1.35rem;
  max-width: none;
}

.kf-reviews__list,
.kf-reviews-home__list {
  display: grid;
  gap: 1rem;
}

.kf-review-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
}

.kf-review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.kf-review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.kf-review-card__author {
  font-weight: 700;
  color: #1e2228;
}

.kf-review-card__date {
  color: #888;
  font-size: 0.92rem;
}

.kf-review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.kf-review-card__stars {
  display: inline-flex;
  gap: 0.05rem;
  color: #d8d8d8;
  font-size: 1rem;
  line-height: 1;
}

.kf-review-card__star.is-on {
  color: #ff7a1a;
}

.kf-review-card__score {
  font-weight: 700;
  color: #1e2228;
}

.kf-review-card__body {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.kf-review-modal .modal-content {
  border: 0;
  border-radius: 10px;
}

.kf-review-modal .modal-header {
  border-bottom: 1px solid #eee;
  padding: 1rem 1.25rem;
}

.kf-review-modal .modal-title {
  margin: 0;
  font-weight: 700;
}

.kf-review-modal .modal-body {
  padding: 1.25rem;
}

.kf-review-modal .kf-review-form {
  margin: 0;
}

.kf-review-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.kf-review-form__grid label {
  margin: 0;
}

.kf-review-form__grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: #555;
  font-size: 0.95rem;
}

.kf-review-form__wide {
  grid-column: 1 / -1;
}

.kf-review-form__rating {
  display: block;
}

.kf-review-form__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #555;
  font-size: 0.95rem;
}

.kf-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.kf-star-rating__star {
  margin: 0;
  padding: 0 0.05rem;
  border: 0;
  background: transparent;
  color: #d0d0d0;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s ease;
}

.kf-star-rating__star:hover,
.kf-star-rating__star:focus-visible {
  outline: none;
}

.kf-star-rating__star.is-on {
  color: #ff7a1a;
}

.kf-review-form__rating {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.kf-review-form .form-control {
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
}

.kf-review-form textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.kf-review-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1rem;
}

.kf-review-form__policy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  max-width: 28rem;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.35;
}

.kf-review-form__policy input {
  margin-top: 0.2rem;
}

.kf-review-form__policy a {
  color: #ff7a1a;
}

.kf-review-form__actions button {
  min-width: 140px;
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 5px;
  background: #ff7a1a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.kf-review-form__actions button:hover {
  background: #e86b10;
}

.kf-review-form__success {
  padding: 0.75rem 0;
  color: #1e2228;
  font-size: 1.05rem;
  text-align: center;
}

.kf-reviews-home {
  padding: 2.5rem 0 3rem;
}

.kf-reviews-home__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
}

.kf-reviews-home__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
}

.kf-reviews-home__cta {
  color: #ff7a1a;
  font-weight: 600;
  text-decoration: none;
}

.kf-reviews-home__cta:hover {
  text-decoration: underline;
}

.kf-reviews-home__list {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .kf-reviews-home__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kf-reviews-home__more {
  margin-top: 1.25rem;
  text-align: center;
}

.kf-reviews-home__more a {
  color: #1e2228;
  font-weight: 600;
  text-decoration: underline;
}

.kf-reviews-home__more a:hover {
  color: #ff7a1a;
}

@media (max-width: 575.98px) {
  .kf-review-form__grid {
    grid-template-columns: 1fr;
  }

  .kf-review-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kf-reviews-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .kf-reviews-bar__right {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .kf-reviews-bar__company {
    text-align: center;
  }

  .kf-reviews-bar__company-rating {
    justify-content: center;
  }

  .kf-reviews-bar__yandex {
    justify-content: center;
  }

  .kf-reviews-bar__btn {
    width: 100%;
  }
}
