.reviews-hero {
  display: grid;
  grid-template-columns: 1.25fr .55fr;
  align-items: end;
  gap: 80px;
  min-height: auto;
  padding-top: 90px;
  padding-bottom: 60px;
}

.reviews-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6vw, 6rem);
}

.reviews-hero-note {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
}

.reviews-hero-note > span {
  position: absolute;
  right: 22px;
  top: -22px;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
}

.reviews-hero-note p { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.45; }
.reviews-section { padding-top: 45px; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.review-card { overflow: hidden; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.review-card-featured { background: var(--sky); }
.review-meta { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 28px; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.review-meta span:first-child { color: var(--ink); }
.review-card blockquote { margin: 0 0 28px; }
.review-card blockquote p { font-family: Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.42; }
.review-card blockquote p:last-child { margin-bottom: 0; }
.review-proof { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #eef0f0; color: var(--ink); cursor: zoom-in; text-align: left; }
.review-proof img { width: 100%; height: 210px; object-fit: cover; object-position: top; filter: saturate(.8); transition: transform .25s, filter .25s; }
.review-proof-wide img { height: 170px; }
.review-proof span { position: absolute; right: 10px; bottom: 10px; padding: 7px 11px; border-radius: 999px; background: rgba(20, 41, 50, .9); color: white; font: 700 .76rem/1.2 Inter, "Segoe UI", Arial, sans-serif; }
.review-proof:hover img { transform: scale(1.015); filter: saturate(1); }

.leave-review { display: grid; grid-template-columns: .72fr 1fr; gap: 80px; align-items: start; width: min(calc(100% - 40px), 1240px); margin-bottom: 30px; padding-inline: 60px; border-radius: 34px; background: var(--ink); color: white; }
.leave-review-copy { position: sticky; top: 110px; }
.leave-review-copy > p:last-child { color: #b7c6ca; }
.review-form { display: grid; gap: 12px; padding: 32px; border-radius: 24px; background: var(--white); color: var(--ink); }
.review-form label, .review-form legend { font-weight: 750; }
.review-form label > span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.review-form input[type="text"], .review-form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); font: inherit; }
.review-form textarea { min-height: 155px; resize: vertical; }
.review-form input:focus, .review-form textarea:focus { outline: 3px solid rgba(39, 101, 125, .2); border-color: var(--blue); }
.review-form fieldset { margin: 8px 0; padding: 0; border: 0; }
.rating-options { display: flex; gap: 8px; margin-top: 9px; }
.rating-options label { cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.rating-options span { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 1rem; font-weight: 800; }
.rating-options input:checked + span { border-color: var(--blue); background: var(--blue); color: white; }
.rating-options input:focus-visible + span { outline: 3px solid rgba(39, 101, 125, .28); }
.review-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
.review-form-footer small { max-width: 240px; color: var(--muted); }
.review-submit { flex: 0 0 auto; cursor: pointer; font: inherit; }

.review-dialog { max-width: min(94vw, 1000px); max-height: 92vh; padding: 42px 14px 14px; border: 0; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.review-dialog::backdrop { background: rgba(8, 22, 28, .78); }
.review-dialog img { max-width: 100%; max-height: calc(92vh - 56px); margin: auto; object-fit: contain; }
.review-dialog-close { position: absolute; right: 9px; top: 7px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font: 1.6rem/1 Arial, sans-serif; cursor: pointer; }

@media (max-width: 900px) {
  .reviews-hero, .leave-review { grid-template-columns: 1fr; gap: 36px; }
  .reviews-hero-note { max-width: 620px; }
  .leave-review-copy { position: static; }
}

@media (max-width: 700px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .reviews-hero { gap: 22px; padding-top: 34px; padding-bottom: 22px; }
  .reviews-hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .reviews-hero-note, .review-card { padding: 21px; }
  .reviews-hero-note > span { display: none; }
  .reviews-section { padding-top: 18px; }
  .reviews-grid { gap: 10px; }
  .review-meta { margin-bottom: 18px; font-size: .7rem; }
  .review-card blockquote { margin-bottom: 20px; }
  .review-card blockquote p { font-size: 1.2rem; }
  .review-proof img, .review-proof-wide img { height: 145px; }
  .leave-review { gap: 18px; width: calc(100% - 20px); margin-bottom: 18px; padding: 26px 20px; }
  .leave-review h2 { font-size: 1.65rem; }
  .review-form { gap: 10px; padding: 18px; }
  .review-form-footer { align-items: stretch; flex-direction: column; }
  .review-form-footer small { max-width: none; }
  .review-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .review-proof img { transition: none; }
}
