.reviews-page {
  color: var(--ink);
  background: var(--paper);
}

.reviews-hero {
  position: relative;
  width: 100% !important;
  min-height: min(820px, calc(100svh - 68px));
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.reviews-hero-photo,
.reviews-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reviews-hero-photo {
  object-fit: cover;
  object-position: center 56%;
}

.reviews-hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 31, 57, .9) 0%, rgba(0, 45, 81, .55) 54%, rgba(0, 38, 69, .22) 100%),
    linear-gradient(0deg, rgba(0, 27, 50, .84) 0%, rgba(0, 31, 57, .18) 54%, rgba(0, 24, 44, .12) 100%);
}

.reviews-hero-inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) 0 clamp(32px, 5vw, 58px);
}

.reviews-hero-copy {
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.reviews-hero h1 {
  max-width: 850px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.035em;
}

.reviews-hero .lead {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .88);
}

.hero-ratings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-rating {
  min-width: 0;
  min-height: 190px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--radius);
  background: rgba(0, 45, 81, .84);
  box-shadow: 0 22px 56px rgba(0, 22, 42, .28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-rating-2gis { border-top: 4px solid #40bd52; }
.hero-rating-avito { border-top: 4px solid #8c67ff; }
.hero-rating-yandex { border-top: 4px solid #ff5b4d; }

.hero-rating-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.hero-rating-head span { font-size: 18px; font-weight: 700; }
.hero-rating-head strong { font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.055em; }
.hero-rating-stars { margin: 5px 0 2px; color: #ffd24a; font-size: 17px; letter-spacing: .08em; }
.hero-rating p { margin: 5px 0 16px; color: rgba(255, 255, 255, .76); font-size: 14px; }

.hero-rating a {
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.hero-rating a:hover { color: var(--deep); background: var(--white); }
.hero-rating a:active { transform: translateY(1px); }
.hero-rating a:focus-visible,
.review-card a:focus-visible,
.platform-actions a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.reviews-live-section {
  padding-top: clamp(48px, 7vw, 92px) !important;
  padding-bottom: clamp(54px, 8vw, 104px) !important;
}

.reviews-live-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.reviews-live-head h2 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.reviews-live-head > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.reviews-snapshot {
  margin: 0 0 28px;
  padding: 14px 16px;
  border-left: 4px solid var(--water);
  color: var(--muted);
  background: #eef6fa;
  font-size: 15px;
}

.platform-block {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(18, 59, 82, .07);
}

.platform-2gis { border-top: 5px solid #40bd52; }
.platform-avito { border-top: 5px solid #8c67ff; }
.platform-yandex { border-top: 5px solid #ff5b4d; }

.platform-head {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.platform-head > div { display: flex; gap: 14px; align-items: center; }
.platform-head p { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.platform-head h2 { margin: 0; color: var(--deep); font-size: clamp(21px, 3vw, 32px); line-height: 1.1; }

.platform-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  font-size: 15px;
  font-weight: 700;
}

.platform-2gis .platform-icon { background: #2cae43; }
.platform-avito .platform-icon { background: #7754f6; }
.platform-yandex .platform-icon { background: #d84539; }
.platform-rating { color: #b67f00; font-size: 24px; letter-spacing: .08em; white-space: nowrap; }

.review-card-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  min-width: 0;
  min-height: 290px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #f7fbfd);
}

.review-card header { display: flex; gap: 12px; align-items: center; }

.review-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  font-size: 13px;
  font-weight: 700;
}

.platform-avito .review-avatar { background: #7754f6; }
.platform-yandex .review-avatar { background: #d84539; }
.review-card h3 { margin: 0 0 2px; color: var(--deep); font-size: 18px; line-height: 1.15; }
.review-card time { color: var(--muted); font-size: 13px; }
.review-stars { margin: 18px 0 10px; color: #b67f00; font-size: 17px; letter-spacing: .08em; }
.review-meta { margin: -2px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.review-card p { margin-bottom: 20px; color: var(--ink); font-size: 16px; line-height: 1.48; }
.review-card a { margin-top: auto; color: var(--water); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.avito-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.platform-actions {
  padding: 20px 24px 24px;
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  background: #f7fbfd;
}

.platform-actions .btn { min-width: 240px; text-align: center; white-space: nowrap; }
.transport-island-cta { margin-top: 0 !important; }
.site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 1080px) {
  .hero-ratings { grid-template-columns: repeat(3, minmax(250px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .hero-rating { scroll-snap-align: start; }
  .review-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .reviews-hero { min-height: max(680px, calc(100svh - 68px)); }
  .reviews-hero-photo { object-position: 62% center; }
  .reviews-hero-inner { padding-top: 48px; padding-bottom: 26px; }
  .reviews-hero-copy { margin-bottom: 30px; }
  .reviews-hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-ratings { width: calc(100vw - 32px); grid-template-columns: repeat(3, minmax(270px, 82vw)); gap: 12px; }
  .hero-rating { min-height: 178px; }
  .reviews-live-head > p { font-size: 16px; }
  .platform-head { align-items: flex-start; }
  .platform-rating { font-size: 18px; }
  .review-card-grid,
  .avito-review-grid { grid-template-columns: 1fr; padding: 12px; }
  .review-card { min-height: 0; }
  .platform-actions { padding: 16px; }
  .platform-actions .btn { width: 100%; min-width: 0; white-space: normal; }
}

@media (prefers-reduced-transparency: reduce) {
  .hero-rating { background: rgba(0, 45, 81, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rating a { transition: none; }
}
