:root {
  --review-blue: #0b5cad;
  --review-blue-dark: #083f7a;
  --review-blue-soft: #eaf4ff;
  --review-gold: #f6b51e;
}

.nav {
  gap: clamp(12px, 1.55vw, 22px);
}

.reviews-section {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(11, 92, 173, .14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 45, 84, .09);
  opacity: 0;
  transform: translateY(18px);
  animation: reviewFadeIn .58s ease forwards;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 92, 173, .34);
  box-shadow: 0 22px 46px rgba(7, 45, 84, .15);
}

.review-stars {
  color: var(--review-gold);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  animation: starPop .75s ease both;
}

.review-card h3 {
  margin: 0;
  color: #102235;
  font-size: 20px;
  line-height: 1.35;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #4d6377;
  font-size: 14px;
}

.review-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--review-blue-soft);
  color: var(--review-blue-dark);
  font-weight: 750;
}

.review-comment {
  margin: 0;
  color: #405366;
}

.review-empty,
.review-error {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid rgba(11, 92, 173, .16);
  border-radius: 8px;
  background: #ffffff;
  color: #4d6377;
  text-align: center;
}

.review-page {
  background: #f5f9fd;
}

.review-hero {
  padding: 62px 0 36px;
  background: linear-gradient(135deg, #073d76 0%, #0b6fc9 100%);
  color: #ffffff;
}

.review-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 36px;
  align-items: center;
}

.review-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}

.review-hero p {
  max-width: 680px;
  margin: 0;
  color: #dbeeff;
  font-size: 18px;
}

.review-hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 20px 50px rgba(0, 25, 55, .2);
}

.review-hero-panel strong {
  display: block;
  font-size: 22px;
}

.review-hero-panel span {
  display: block;
  margin-top: 8px;
  color: #dbeeff;
}

.review-form-section {
  padding: 56px 0 76px;
}

.review-form {
  display: grid;
  gap: 22px;
}

.review-form fieldset {
  margin: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid rgba(11, 92, 173, .16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 45, 84, .07);
}

.review-form legend {
  padding: 0 8px;
  color: var(--review-blue-dark);
  font-size: 20px;
  font-weight: 850;
}

.review-form label {
  display: grid;
  gap: 7px;
  color: #24384c;
  font-weight: 760;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid #cdddea;
  border-radius: 8px;
  background: #ffffff;
  color: #152232;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.review-form input,
.review-form select {
  height: 48px;
  padding: 0 13px;
}

.review-form textarea {
  min-height: 130px;
  padding: 12px 13px;
  resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  border-color: var(--review-blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 173, .14);
}

.review-form .full-field {
  grid-column: 1 / -1;
}

.rating-control {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
}

.rating-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-control label {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: #b6c6d4;
  font-size: 34px;
  line-height: 1;
  transition: color .16s ease, transform .16s ease;
}

.rating-control label:hover,
.rating-control label:hover ~ label,
.rating-control input:checked ~ label {
  color: var(--review-gold);
  transform: scale(1.08);
}

.review-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.review-status {
  min-height: 24px;
  margin: 0;
  color: #4d6377;
}

@keyframes reviewFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starPop {
  0% { opacity: 0; transform: scale(.82); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 980px) {
  .review-grid,
  .review-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .review-card,
  .review-form fieldset,
  .review-hero-panel {
    padding: 18px;
  }

  .review-form fieldset {
    grid-template-columns: 1fr;
  }

  .review-form .full-field {
    grid-column: auto;
  }
}
