.reviews__heading {
  align-items: end;
  margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}

.reviews__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.reviews__stories,
.review-form-panel { min-width: 0; }

.reviews__list { display: grid; gap: 1rem; }

.reviews__empty,
.review-card,
.review-form-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.014)), rgba(18,18,22,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 64px rgba(0,0,0,.2);
}

.reviews__empty {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(126,29,41,.12), transparent 70%), rgba(18,18,22,.6);
}

.reviews__quote {
  height: 74px;
  color: #ab3b48;
  font-family: Georgia, serif;
  font-size: 106px;
  line-height: 1;
  opacity: .85;
}

.reviews__empty h3 { margin: 1.25rem 0 .85rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.035em; }
.reviews__empty p { max-width: 32ch; margin: 0; color: var(--muted); line-height: 1.7; }
.reviews__retry { margin-top: 1rem; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.reviews__more { width: 100%; margin-top: 1rem; }
.reviews [hidden] { display: none !important; }

.review-card { padding: clamp(1.35rem, 2.5vw, 2rem); }
.review-card__header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.review-card__avatar { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(184,62,74,.2); background: rgba(141,32,41,.12); color: #c56671; font-size: 1.05rem; font-weight: 650; }
.review-card__identity { display: grid; gap: .2rem; min-width: 0; }
.review-card__name { overflow-wrap: anywhere; font-size: 1rem; font-weight: 600; }
.review-card time { color: var(--muted); font-size: .78rem; }
.review-card__text { margin: 0; color: #d5d0ce; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card__text--collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.review-card__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 0 0;
  margin-top: .35rem;
  border: 0;
  background: transparent;
  color: #d9949d;
  font: inherit;
  font-size: .88rem;
  font-weight: 550;
  cursor: pointer;
}
.review-card__toggle:hover { color: #f1c3c9; }
.review-card__toggle:focus-visible { outline: 2px solid #d88c95; outline-offset: 4px; border-radius: 4px; }

.review-form-panel {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background: radial-gradient(ellipse at 100% 0, rgba(125,29,40,.1), transparent 65%), linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), rgba(18,18,22,.88);
}

.review-form-panel__heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.review-form-panel__heading h3 { margin: 0; font-size: clamp(1.45rem, 2vw, 1.8rem); letter-spacing: -.035em; }
.review-form-panel__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; border: 1px solid rgba(184,62,74,.18); background: rgba(141,32,41,.1); color: #bc6670; }
.review-form-panel__icon svg { width: 21px; height: 21px; }
.review-form { display: grid; gap: 1.25rem; }
.review-form__field { display: grid; gap: .6rem; }
.review-form__field > label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; color: #e1dcda; font-size: .94rem; }
.review-form__field > label > span { color: var(--muted); font-size: .78rem; }
.review-form input[type="text"],
.review-form textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 13px; padding: .9rem 1rem; background: rgba(7,7,10,.5); color: var(--text); font-size: 1rem; line-height: 1.55; transition: border-color 180ms ease, box-shadow 180ms ease; }
.review-form textarea { min-height: 172px; max-height: 500px; resize: vertical; }
.review-form input::placeholder,
.review-form textarea::placeholder { color: #858080; opacity: 1; }
.review-form input:disabled { opacity: .46; cursor: not-allowed; }
.review-form input[type="text"]:focus-visible,
.review-form textarea:focus-visible { outline: none; border-color: #a94854; box-shadow: 0 0 0 3px rgba(156,48,61,.12); }
.review-form [aria-invalid="true"] { border-color: #d77882 !important; }
.review-form__anonymous { display: flex; align-items: center; gap: .75rem; width: fit-content; min-height: 44px; margin-block: -.4rem; color: #ccc6c3; font-size: .9rem; cursor: pointer; }
.review-form__anonymous input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-form__switch { position: relative; display: block; width: 38px; height: 23px; flex: 0 0 38px; border-radius: 99px; border: 1px solid var(--border-bright); background: rgba(255,255,255,.08); transition: background 180ms ease; }
.review-form__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #ada6a3; transition: transform 180ms ease, background 180ms ease; }
.review-form__anonymous input:checked + .review-form__switch { background: var(--accent); border-color: #a4434d; }
.review-form__anonymous input:checked + .review-form__switch::after { transform: translateX(15px); background: #f5eeeb; }
.review-form__anonymous input:focus-visible + .review-form__switch { outline: 2px solid #d88c95; outline-offset: 4px; }
.review-form__text-meta { display: flex; justify-content: space-between; align-items: start; gap: 1rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.review-form__text-meta > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.review-form__consent { display: flex; align-items: start; gap: .7rem; color: var(--muted); font-size: .81rem; line-height: 1.55; cursor: pointer; }
.review-form__consent input { flex: 0 0 17px; width: 17px; height: 17px; margin: .15rem 0 0; accent-color: var(--accent); }
.review-form__consent a { color: #ddd2ce; text-decoration: underline; text-underline-offset: .2em; }
.review-form__submit { width: 100%; gap: .75rem; cursor: pointer; }
.review-form__submit:disabled { opacity: .65; cursor: wait; }
.review-form__note { max-width: 42ch; margin: -.25rem auto 0; color: var(--muted); font-size: .78rem; line-height: 1.6; text-align: center; }
.review-form__error { margin: 0; color: #e59da5; font-size: .82rem; line-height: 1.55; }
.review-form__status { margin: 0; padding: .9rem 1rem; border-radius: 12px; color: #e4ddda; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: .9rem; line-height: 1.65; }
.review-form__status[data-kind="success"] { border-color: rgba(145,180,143,.25); background: rgba(101,137,97,.07); }
.review-form__status[data-kind="error"] { border-color: rgba(202,91,106,.3); }
.review-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .reviews__heading p { max-width: 38ch; margin-inline: auto; }
  .reviews__layout { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  .review-form-panel { order: -1; }
  .reviews__empty { min-height: 260px; }
  .review-form-panel__heading { justify-content: center; }
}

@media (max-width: 620px) {
  .reviews__empty, .review-card, .review-form-panel { border-radius: 22px; }
  .reviews__empty { padding: 1.7rem 1.25rem; min-height: 240px; }
  .reviews__quote { height: 55px; font-size: 85px; }
  .reviews__empty h3 { font-size: 1.3rem; margin-top: 1rem; }
  .reviews__empty p { font-size: .94rem; }
  .review-form-panel { padding: 1.4rem 1.2rem; }
  .review-form-panel__heading { margin-bottom: 1.4rem; }
  .review-form-panel__heading h3 { font-size: 1.5rem; }
  .review-form { gap: 1.1rem; }
  .review-form textarea { min-height: 180px; }
  .review-form__text-meta { gap: .6rem; }
}
