.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page="reviews"] .site-shell {
  padding-bottom: 52px;
}

.reviews-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
  margin: 12px 0 56px;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--stroke);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 12%, var(--accent-mist), transparent 42%),
    linear-gradient(135deg, var(--surface-strong), var(--surface-muted));
  box-shadow: var(--shadow-md);
}

.reviews-intro {
  padding-top: clamp(0px, 2.5vw, 28px);
}

.reviews-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reviews-intro h1 {
  margin: 22px 0 20px;
  font-size: clamp(3.05rem, 5vw, 4.9rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.reviews-intro h1 em {
  color: var(--accent);
  font-style: normal;
}

.reviews-intro p {
  max-width: 36ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.65;
}

.reviews-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.reviews-jump:hover,
.reviews-jump:focus-visible {
  color: var(--text);
}

.review-form-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.review-form-card h2 {
  margin: 0 0 24px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.review-rating-field {
  min-width: 0;
  margin: 0 0 21px;
  padding: 0;
  border: 0;
}

.review-rating-field legend,
.review-field {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.review-rating-field legend span,
.review-field > span {
  color: var(--accent);
}

.review-rating {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}

.review-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.review-rating label {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: #d69b32;
}

.review-rating label svg {
  width: 29px;
  height: 29px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.15s ease, stroke 0.15s ease, transform 0.15s ease;
}

.review-rating :is(input:checked + label, label:has(~ input:checked)) svg {
  fill: #f5b940;
  stroke: #cc8d21;
}

@media (hover: hover) {
  .review-rating:has(label:hover) label svg {
    fill: transparent;
    stroke: currentColor;
  }

  .review-rating:has(label:hover) :is(label:hover, label:has(~ label:hover)) svg {
    fill: #f5b940;
    stroke: #cc8d21;
  }

  .review-rating label:hover svg {
    transform: scale(1.08);
  }
}

body[data-theme="dark"] .review-rating label {
  color: #efbd62;
}

.review-rating input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.review-field {
  margin: 0 0 18px;
}

.review-field input,
.review-field textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 13px 15px;
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  line-height: 1.45;
  resize: vertical;
}

.review-field textarea {
  min-height: 112px;
}

.review-field input::placeholder,
.review-field textarea::placeholder {
  color: var(--text-muted);
}

.review-field input:focus,
.review-field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent-mist);
}

.review-field-hint {
  margin: -8px 0 18px;
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.review-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.review-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
}

.review-consent input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.review-turnstile {
  min-height: 65px;
  margin-top: 20px;
}

.review-submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 22px;
}

.review-submit-row .button {
  gap: 14px;
}

.review-submit-row > span {
  flex: 1 1 160px;
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.4;
}

.review-submit-row .button:disabled,
.reviews-more:disabled {
  opacity: 0.65;
  cursor: wait;
}

.review-form-status {
  margin: 15px 0 0;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.45;
}

.review-form-status:empty,
.reviews-status:empty {
  display: none;
}

.review-form-status[data-state="error"] {
  color: #bd3d4d;
}

.review-form-status[data-state="success"] {
  color: #267b64;
}

.reviews-content {
  padding: 0 4px 40px;
}

.reviews-section-head {
  margin-bottom: 22px;
}

.reviews-section-head h2 {
  margin: 9px 0 0;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.reviews-status {
  padding: 22px 24px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-soft);
  line-height: 1.5;
}

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

.review-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-card-stars {
  display: flex;
  gap: 3px;
  color: #d69b32;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.review-card-source {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.review-card-title {
  margin: 16px 0 0;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.review-card .review-card-title + p {
  margin-top: 9px;
}

.review-card-stars svg {
  width: 19px;
  height: 19px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.review-card-stars svg.is-filled {
  fill: #f5b940;
  stroke: #cc8d21;
}

body[data-theme="dark"] .review-card-stars {
  color: #efbd62;
}

.review-card p {
  flex: 1;
  margin: 18px 0 24px;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.review-card-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-mist);
  color: var(--accent);
  font-weight: 800;
}

.review-card-name {
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-card-date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.77rem;
  white-space: nowrap;
}

.reviews-more {
  display: flex;
  width: max-content;
  margin: 26px auto 0;
}

.reviews-more[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .reviews-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px;
  }

  .reviews-intro {
    padding-top: 0;
  }

  .reviews-intro h1 {
    max-width: 680px;
  }

  .reviews-intro p {
    max-width: 52ch;
  }
}

@media (max-width: 600px) {
  .reviews-main {
    gap: 25px;
    margin: 0 0 44px;
    padding: 18px;
    border-radius: 24px;
  }

  .reviews-intro h1 {
    margin: 15px 0;
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .reviews-intro p {
    font-size: 0.98rem;
  }

  .reviews-jump {
    margin-top: 19px;
  }

  .review-form-card {
    padding: 18px;
  }

  .reviews-content {
    padding: 0 0 28px;
  }

  .reviews-section-head {
    margin-bottom: 18px;
  }

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

  .review-card {
    padding: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-rating label svg {
    transition: none;
  }
}
