/* Reviews page (rd-rev__*). Tokens and buttons come from main.css */

/* ---- Hero ---- */
.rd-rev__hero { padding: 54px 0 72px; position: relative; }
.rd-rev__hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--rd-blue-d);
}
.rd-rev__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-family: var(--rd-font-text);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
}
.rd-rev__crumbs a { color: var(--rd-white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: color .2s ease, text-decoration-color .2s ease; }
.rd-rev__crumbs a:hover, .rd-rev__crumbs a:focus-visible { color: var(--rd-blue); text-decoration-color: var(--rd-blue); }
.rd-rev__crumbs-sep { color: var(--rd-blue); }
.rd-rev__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.rd-rev__hero-grid > * { min-width: 0; }
.rd-rev__title {
  font-size: var(--rd-fs-h1);
  line-height: 1.1;
  color: var(--rd-white);
}
.rd-dark .rd-rev__title .rd-rev__title-acc { color: var(--rd-blue); }
.rd-rev__lead {
  max-width: 640px;
  margin-top: 24px;
  font-family: var(--rd-font-text);
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
}

/* ---- Score panel ---- */
.rd-rev__score {
  padding: 32px 34px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--rd-line);
  border-top: 4px solid var(--rd-blue);
  border-radius: var(--radius-1);
}
.rd-rev__score-main { display: flex; align-items: center; gap: 22px; }
.rd-rev__score-num {
  font-family: var(--rd-font-head);
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  color: var(--rd-white);
}
.rd-rev__score-side { display: flex; flex-direction: column; gap: 6px; }
.rd-dark .rd-rev__score-stars { font-size: 26px; line-height: 1; letter-spacing: 3px; color: var(--rd-amber); }
.rd-rev__score-of { font-family: var(--rd-font-text); font-size: 15px; color: rgba(255, 255, 255, .9); }
.rd-rev__score-list { margin: 26px 0 0; border-top: 1px solid var(--rd-line); }
.rd-rev__score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rd-line);
}
.rd-rev__score-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rd-rev__score-row dt { font-family: var(--rd-font-text); font-size: 15px; color: rgba(255, 255, 255, .92); }
.rd-rev__score-row dd { margin: 0; flex-shrink: 0; font-family: var(--rd-font-head); font-size: 22px; font-weight: 700; color: var(--rd-white); }

/* ---- List ---- */
.rd-rev__main { padding: 80px 0 var(--rd-sec-y); background: var(--rd-white); }
.rd-rev__main .rd-sec-head { margin-bottom: 48px; }
.rd-rev__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.rd-rev__grid > * { min-width: 0; }
.rd-rev__card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 30px;
  background: var(--rd-white);
  border-top: 4px solid var(--rd-blue);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-4);
  transition: transform .45s ease, box-shadow .45s ease;
}
.rd-rev__card:hover { transform: translateY(-6px); box-shadow: 0 18px 30px -12px rgba(0, 30, 56, .35); }
.rd-rev__card-head { display: flex; align-items: center; gap: 14px; }
.rd-rev__avatar {
  position: relative;
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rd-blue-d);
}
.rd-rev__avatar > span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--rd-font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--rd-white);
}
.rd-rev__who { min-width: 0; }
.rd-rev__name { font-size: 18px; line-height: 1.25; color: var(--rd-ink); }
.rd-rev__stars { margin-top: 2px; font-size: 17px; line-height: 1.2; letter-spacing: 2px; color: var(--rd-amber); }
.rd-rev__service {
  margin-top: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rd-sand);
  font-family: var(--rd-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--rd-blue-d);
}
.rd-rev__text {
  margin-top: 14px;
  font-family: var(--rd-font-text);
  font-size: 16px;
  line-height: 1.7;
  color: var(--rd-grey);
}

/* ---- Pagination ---- */
.rd-rev__pag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
}
.rd-rev__pag-nums { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.rd-rev__pag-num, .rd-rev__pag-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-1);
  font-family: var(--rd-font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--rd-ink);
}
.rd-rev__pag-num { background: var(--rd-sand); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
a.rd-rev__pag-num:hover, a.rd-rev__pag-num:focus-visible { background: var(--rd-blue-d); color: var(--rd-white); transform: translateY(-2px); }
.rd-rev__pag-num--active { background: var(--rd-navy); color: var(--rd-white); }
.rd-rev__pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 2px solid var(--rd-blue-d);
  border-radius: var(--radius-1);
  font-family: var(--rd-font-text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rd-blue-d);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.rd-rev__pag-btn:hover, .rd-rev__pag-btn:focus-visible { background: var(--rd-blue-d); color: var(--rd-white); transform: translateY(-2px); }
.rd-rev__pag-btn:hover img, .rd-rev__pag-btn:focus-visible img { filter: brightness(0) invert(1); }
.rd-rev__pag-btn--prev img { transform: rotate(180deg); }

/* ---- Review form ---- */
.rd-rev__form-sec { padding: var(--rd-sec-y) 0; }
.rd-rev__form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 64px;
}
.rd-rev__form-grid > * { min-width: 0; }
.rd-rev__form-copy .rd-text { margin-top: 18px; }
.rd-rev__form-copy .rd-title + .rd-text { margin-top: 24px; }
.rd-rev__form-card {
  padding: 40px 40px 44px;
  background: var(--rd-white);
  border-top: 4px solid var(--rd-blue-d);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-4);
}
.rd-rev__form input[type="text"],
.rd-rev__form textarea {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid var(--rd-grey-l);
  border-radius: var(--radius-1);
  background: var(--rd-white);
  font-family: var(--rd-font-text);
  font-size: 16px;
  line-height: 1.4;
  color: var(--rd-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rd-rev__form input[type="text"]:first-child { margin-top: 0; }
.rd-rev__form textarea { min-height: 140px; resize: vertical; }
.rd-rev__form input::placeholder, .rd-rev__form textarea::placeholder { color: var(--rd-grey-l); }
.rd-rev__form input[type="text"]:focus, .rd-rev__form textarea:focus { outline: none; border-color: var(--rd-blue-d); box-shadow: 0 0 0 3px rgba(81, 172, 251, .35); }
.rd-rev__form label { font-family: var(--rd-font-text); font-size: 15px; color: var(--rd-ink); }
.rd-rev__form .jqr_star-rating i { color: var(--rd-amber); }
.rd-rev__form .jqr_error-message { margin-top: 6px; font-family: var(--rd-font-text); font-size: 14px; line-height: 1.4; color: var(--rd-red); }
.rd-rev__form #jqr_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 20px 34px;
  border: 2px solid transparent;
  border-radius: var(--radius-1);
  background: var(--rd-red);
  font-family: var(--rd-font-text);
  font-size: 14.4px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--rd-white);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
.rd-rev__form #jqr_submit:hover, .rd-rev__form #jqr_submit:focus-visible { background: var(--rd-ink); border-color: var(--rd-white); transform: translateY(-4px); box-shadow: var(--hover-4); }

/* ---- Call to action (light band) ---- */
.rd-rev__cta { padding: 80px 0; background: var(--rd-white); }
.rd-rev__cta-box {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 52px;
  background: var(--rd-white);
  border-left: 6px solid var(--rd-blue-d);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-4);
  outline: 1px solid var(--rd-sand);
}
.rd-rev__cta-box > * { min-width: 0; }
.rd-rev__cta-copy { flex: 1 1 480px; }
.rd-rev__cta-actions { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.rd-rev__cta-title { font-size: var(--rd-fs-h3); color: var(--rd-ink); }
.rd-rev__cta-text { margin-top: 14px; font-family: var(--rd-font-text); font-size: 17px; line-height: 1.7; color: var(--rd-grey); }
.rd-rev__cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--rd-font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--rd-navy);
  cursor: pointer;
  transition: color .2s ease;
}
.rd-rev__cta-phone-ico {
  position: relative;
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rd-blue-d);
  transition: background-color .2s ease, transform .3s ease;
}
.rd-rev__cta-phone-ico > img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.rd-rev__cta-phone:hover, .rd-rev__cta-phone:focus-visible { color: var(--rd-blue-d); }
.rd-rev__cta-phone:hover .rd-rev__cta-phone-ico, .rd-rev__cta-phone:focus-visible .rd-rev__cta-phone-ico { background: var(--rd-red); transform: scale(1.08); }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .rd-rev__hero-grid { gap: 40px; }
  .rd-rev__grid { gap: 22px; }
  .rd-rev__form-grid { gap: 40px; }
  .rd-rev__cta-box { padding: 40px; gap: 32px; }
}
@media (max-width: 1024px) {
  .rd-rev__hero-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-rev__score { max-width: 520px; }
  .rd-rev__main { padding-top: 60px; }
  .rd-rev__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-rev__form-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-rev__cta-box { flex-direction: column; align-items: stretch; }
  .rd-rev__cta-copy, .rd-rev__cta-actions { flex: 0 1 auto; }
}
@media (max-width: 768px) {
  .rd-rev__hero { padding: 40px 0 52px; }
  .rd-rev__crumbs { margin-bottom: 24px; }
  .rd-rev__lead { font-size: 17px; }
  .rd-rev__main { padding: 48px 0 72px; }
  .rd-rev__main .rd-sec-head { margin-bottom: 36px; }
  .rd-rev__form-sec { padding: 64px 0; }
  .rd-rev__form-card { padding: 32px 26px 36px; }
  .rd-rev__cta { padding: 56px 0; }
  .rd-rev__cta-box { padding: 32px 28px; }
}
@media (max-width: 480px) {
  .rd-rev__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rd-rev__card { padding: 24px 22px 26px; }
  .rd-rev__score { max-width: none; padding: 26px 22px; }
  .rd-rev__score-num { font-size: 60px; }
  .rd-rev__form-card { padding: 26px 20px 30px; }
  .rd-rev__form #jqr_submit { width: 100%; }
  .rd-rev__cta-box { padding: 28px 20px; border-left-width: 4px; }
  .rd-rev__cta-actions { width: 100%; }
  .rd-rev__cta-actions .rd-btn { width: 100%; }
  .rd-rev__cta-phone { font-size: 23px; }
  .rd-rev__pag-btn span { display: none; }
  .rd-rev__pag-btn { padding: 0 14px; }
}
@media (max-width: 375px) {
  .rd-rev__hero { padding: 36px 0 44px; }
  .rd-rev__score-num { font-size: 52px; }
  .rd-rev__score-main { gap: 16px; }
  .rd-rev__cta-phone { font-size: 21px; }
  .rd-rev__pag-num, .rd-rev__pag-dots { min-width: 40px; height: 40px; padding: 0 8px; }
}
