/* ==========================================================
   Reviews page — tz-rev__* (uses tokens and buttons from main.css)
   ========================================================== */

/* ---------- Hero with rating summary (dark band) ---------- */
.tz-rev__hero {
  padding: 56px 0 70px;
  background: var(--color-surface-3);
  color: var(--color-text-7);
}
.tz-rev__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--color-text-6);
  font-size: 13px;
  font-weight: 600;
}
.tz-rev__crumbs a {
  color: var(--color-text-7);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color var(--duration-base) var(--easing-base);
}
.tz-rev__crumbs a:hover,
.tz-rev__crumbs a:focus-visible { color: var(--tz-accent); text-decoration-color: currentColor; }
.tz-rev__crumbs span[aria-current] { color: #ffffff; }

.tz-rev__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 60px;
  align-items: center;
}
.tz-rev__hero-grid > * { min-width: 0; }

.tz-rev__title {
  max-width: 760px;
  color: #ffffff;
  font-size: var(--type-h1-size);
  font-weight: 800;
  line-height: 1.2;
}
.tz-rev__lead {
  max-width: 660px;
  margin-top: 22px;
  color: var(--color-text-7);
  font-size: 16px;
  line-height: 1.75;
}

.tz-rev__summary {
  padding: 34px 32px 30px;
  border: 1px solid var(--color-border-4);
  border-top: 4px solid var(--tz-accent);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.tz-rev__score { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.tz-rev__score-num { color: #ffffff; font-size: 64px; font-weight: 800; line-height: 1; }
.tz-rev__score-max { color: var(--color-text-6); font-size: 20px; font-weight: 700; }
.tz-rev__score-stars { margin-top: 12px; color: var(--tz-accent); font-size: 24px; letter-spacing: 4px; line-height: 1; }
.tz-rev__score-cap { margin-top: 12px; color: var(--color-text-7); font-size: 14px; font-weight: 600; }
.tz-rev__split {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-4);
}
.tz-rev__split li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text-7);
  font-size: 14px;
}
.tz-rev__split b { color: #ffffff; font-weight: 800; }

/* ---------- List ---------- */
.tz-rev__list { padding: 80px 0 90px; background: var(--color-surface-page); }
.tz-rev__head { max-width: 680px; margin-bottom: 44px; }
.tz-rev__head-text { margin-top: 18px; color: #6b6b6b; font-size: 15px; line-height: 1.75; }

.tz-rev__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tz-rev__grid > * { min-width: 0; }

.tz-rev__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 30px 26px;
  background: #ffffff;
  border: 1px solid var(--color-border-1);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--duration-base) var(--easing-base), border-color var(--duration-base) var(--easing-base);
}
.tz-rev__card:hover { box-shadow: var(--shadow-3); border-color: var(--tz-accent); }
.tz-rev__stars { color: var(--tz-accent); font-size: 18px; letter-spacing: 3px; line-height: 1; white-space: nowrap; }
.tz-rev__text {
  margin-top: 14px;
  color: #6b6b6b;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.tz-rev__foot { position: relative; min-height: 44px; margin-top: auto; padding-top: 0; padding-left: 58px; }
.tz-rev__text + .tz-rev__foot { margin-top: 20px; }
.tz-rev__avatar {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tz-ink);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 44px;
  text-align: center;
}
.tz-rev__who { display: block; padding-right: 50px; }
.tz-rev__author { display: block; color: var(--tz-ink); font-size: 15px; font-weight: 800; line-height: 1.4; }
.tz-rev__service { display: block; color: #b86200; font-size: 13px; font-weight: 600; line-height: 1.4; }
.tz-rev__quote { position: absolute; right: 26px; bottom: 22px; width: 40px; height: 40px; }

/* ---------- Pagination ---------- */
.tz-rev__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.tz-rev__page-num,
.tz-rev__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--tz-ink);
  color: var(--tz-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--duration-base) var(--easing-base), color var(--duration-base) var(--easing-base);
}
.tz-rev__page-num:hover,
.tz-rev__page-num:focus-visible,
.tz-rev__page-btn:hover,
.tz-rev__page-btn:focus-visible { background: var(--tz-ink); color: #ffffff; }
.tz-rev__page-num--current,
.tz-rev__page-num--current:hover {
  background: var(--tz-accent);
  border-color: var(--tz-accent);
  color: var(--tz-ink);
  cursor: default;
}
.tz-rev__page-gap { padding: 0 6px; color: var(--color-text-primary); font-weight: 700; }

/* ---------- Review form section ---------- */
.tz-rev__form-section { padding: 90px 0; background: var(--color-surface-2); }
.tz-rev__form-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 60px;
  align-items: start;
}
.tz-rev__form-grid > * { min-width: 0; }
.tz-rev__form-lead { margin-top: 18px; color: #6b6b6b; font-size: 15px; line-height: 1.75; }
.tz-rev__tips { display: grid; gap: 12px; margin-top: 24px; }
.tz-rev__tips li {
  position: relative;
  padding-left: 22px;
  color: var(--tz-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}
.tz-rev__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tz-accent);
}
.tz-rev__fig { position: relative; margin-top: 32px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-3); }
.tz-rev__fig > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tz-rev__form-card {
  padding: 40px 40px 42px;
  background: #ffffff;
  border-top: 4px solid var(--tz-accent);
  box-shadow: var(--shadow-1);
}
.tz-rev__form-title { color: var(--tz-ink); font-size: 24px; font-weight: 800; line-height: 1.3; }
.tz-rev__form-note { margin: 8px 0 22px; color: #6b6b6b; font-size: 14px; line-height: 1.6; }

.tz-rev__form-card input[type="text"],
.tz-rev__form-card textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  color: var(--tz-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color var(--duration-base) var(--easing-base), box-shadow var(--duration-base) var(--easing-base);
}
.tz-rev__form-card input[type="text"] { margin-top: 14px; }
.tz-rev__form-card input[type="text"]:first-child { margin-top: 0; }
.tz-rev__form-card textarea { margin-top: 14px; resize: vertical; min-height: 130px; }
.tz-rev__form-card input[type="text"]:focus,
.tz-rev__form-card textarea:focus { outline: none; border-color: var(--tz-accent); box-shadow: 0 0 0 3px rgba(255, 157, 47, 0.25); }
.tz-rev__form-card label { color: var(--tz-ink); font-size: 14px; font-weight: 700; }
.tz-rev__form-card .jqr_star-rating i { color: var(--tz-accent); margin-right: 4px; transition: transform var(--duration-base) var(--easing-base); }
.tz-rev__form-card .jqr_star-rating i:hover { transform: scale(1.15); }
.tz-rev__form-card .jqr_error-message { margin-top: 6px; color: #c0392b; font-size: 13px; }

.tz-rev__form-card #jqr_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 15px 34px;
  border: 2px solid var(--tz-accent);
  background: var(--tz-accent);
  color: var(--tz-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--duration-base) var(--easing-base), border-color var(--duration-base) var(--easing-base), color var(--duration-base) var(--easing-base), box-shadow var(--duration-base) var(--easing-base);
}
.tz-rev__form-card #jqr_submit:hover,
.tz-rev__form-card #jqr_submit:focus-visible { background: var(--tz-ink); border-color: var(--tz-ink); color: #ffffff; box-shadow: var(--shadow-3); outline: none; }

/* ---------- Call band (light) ---------- */
.tz-rev__cta { padding: 80px 0; background: var(--color-surface-page); }
.tz-rev__cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  background: var(--color-surface-2);
  border-left: 5px solid var(--tz-accent);
}
.tz-rev__cta-box > * { min-width: 0; flex: 0 1 auto; }
.tz-rev__cta-title { font-size: 28px; font-weight: 800; line-height: 1.3; }
.tz-rev__cta-text p { max-width: 640px; margin-top: 12px; color: #6b6b6b; font-size: 15px; line-height: 1.75; }
.tz-rev__cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1200px) {
  .tz-rev__hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .tz-rev__form-grid { gap: 40px; }
  .tz-rev__form-card { padding: 34px 30px 36px; }
}

@media (max-width: 1024px) {
  .tz-rev__hero { padding: 48px 0 56px; }
  .tz-rev__hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tz-rev__summary { max-width: 420px; }
  .tz-rev__list { padding: 60px 0 70px; }
  .tz-rev__form-section { padding: 70px 0; }
  .tz-rev__form-grid { grid-template-columns: minmax(0, 1fr); }
  .tz-rev__fig { max-width: 560px; }
  .tz-rev__cta { padding: 60px 0; }
  .tz-rev__cta-box { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 34px; }
}

@media (max-width: 768px) {
  .tz-rev__hero { padding: 40px 0 46px; }
  .tz-rev__crumbs { margin-bottom: 24px; }
  .tz-rev__lead { font-size: 15px; }
  .tz-rev__list { padding: 50px 0 60px; }
  .tz-rev__head { margin-bottom: 32px; }
  .tz-rev__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tz-rev__form-section { padding: 54px 0; }
  .tz-rev__cta { padding: 50px 0; }
  .tz-rev__cta-title { font-size: 24px; }
  .tz-rev__score-num { font-size: 54px; }
  .tz-rev__form-card input[type="text"],
  .tz-rev__form-card textarea { font-size: 16px; }
}

@media (max-width: 480px) {
  .tz-rev__summary { max-width: none; padding: 28px 22px 24px; }
  .tz-rev__card { padding: 24px 20px 22px; }
  .tz-rev__quote { right: 18px; bottom: 18px; width: 34px; height: 34px; }
  .tz-rev__pagination { margin-top: 40px; gap: 6px; }
  .tz-rev__page-num,
  .tz-rev__page-btn { min-width: 40px; height: 40px; }
  .tz-rev__form-card { padding: 28px 20px 30px; }
  .tz-rev__form-title { font-size: 21px; }
  .tz-rev__form-card #jqr_submit { width: 100%; }
  .tz-rev__fig { max-width: none; }
  .tz-rev__cta-box { padding: 28px 22px; gap: 22px; }
  .tz-rev__cta-box > * { flex: 0 1 auto; }
  .tz-rev__cta-btns { flex-direction: column; }
  .tz-rev__cta-btns .tz-btn { width: 100%; }
}

@media (max-width: 375px) {
  .tz-rev__hero { padding: 36px 0 40px; }
  .tz-rev__score-num { font-size: 48px; }
  .tz-rev__card { padding: 22px 16px 20px; }
  .tz-rev__form-card { padding: 24px 16px 26px; }
}
