:root {
  --rio-ink: #111111;
  --rio-muted: #6b7280;
  --rio-line: #e8e8ea;
  --rio-bg: #ffffff;
  --rio-banner: #f3f4f6;
  --rio-teal: #14b8a6;
  --rio-teal-dark: #0d9488;
  --rio-gold: #f5b301;
  --rio-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--rio-font);
  color: var(--rio-ink);
  background: var(--rio-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.rio-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.rio-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.rio-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.rio-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
}

.rio-logo:hover {
  text-decoration: none;
}

.rio-logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rio-logo__text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rio-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rio-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rio-biz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #111;
  border-radius: 2px;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.rio-biz-btn:hover {
  background: #111;
  color: #fff;
  text-decoration: none;
}

/* Banner */
.rio-banner {
  background: var(--rio-banner);
  padding: 42px 0 34px;
}

.rio-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.rio-banner__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.rio-banner__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #222;
}

.rio-banner__score,
.rio-banner__count {
  color: #333;
}

.rio-banner__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}

.rio-stars {
  display: inline-flex;
  gap: 3px;
}

.rio-stars--filled span {
  width: 22px;
  height: 22px;
  display: inline-block;
  background: var(--rio-gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rio-banner__right {
  text-align: center;
  min-width: 220px;
}

.rio-gauge {
  position: relative;
  width: 200px;
  height: 120px;
  margin: 0 auto;
}

.rio-gauge__svg {
  width: 200px;
  height: 120px;
  display: block;
}

.rio-gauge__track,
.rio-gauge__value {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}

.rio-gauge__track {
  stroke: #d1d5db;
}

.rio-gauge__value {
  stroke: var(--rio-teal);
  stroke-dasharray: 251;
  stroke-dashoffset: 0;
}

.rio-gauge__center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
}

.rio-gauge__center strong {
  font-size: 42px;
  line-height: 1;
  color: var(--rio-teal);
  font-weight: 700;
}

.rio-gauge__caption {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
}

/* Main layout */
.rio-main {
  padding: 28px 0 60px;
  background: #fff;
}

.rio-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.rio-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid #f0f0f2;
}

.rio-sidebar__card {
  padding: 22px;
  position: sticky;
  top: 20px;
}

.rio-sidebar__logo {
  display: block;
  width: auto;
  max-width: 140px;
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}

.rio-visit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background: #111;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none !important;
  margin-bottom: 18px;
}

.rio-visit-btn:hover {
  background: #000;
}

.rio-contact__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f2;
  font-size: 14px;
}

.rio-contact__row:first-child {
  border-top: 0;
}

.rio-contact__label {
  color: #111;
  font-weight: 700;
}

.rio-contact__row a {
  color: #333;
  word-break: break-word;
}

/* Write review */
.rio-write {
  margin-bottom: 28px;
}

.rio-write__frame {
  position: relative;
  text-align: center;
  padding: 28px 20px 24px;
}

.rio-write__frame::before,
.rio-write__frame::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  pointer-events: none;
  background-image: radial-gradient(#c5c7ce 1.2px, transparent 1.2px);
  background-size: 10px 10px;
  opacity: 0.9;
}

.rio-write__frame::before {
  top: 0;
  left: 0;
  border-top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 18%, 18% 18%, 18% 100%, 0 100%);
}

.rio-write__frame::after {
  right: 0;
  bottom: 0;
  clip-path: polygon(82% 0, 100% 0, 100% 100%, 0 100%, 0 82%, 82% 82%);
}

.rio-write__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rio-write__stars {
  display: inline-flex;
  gap: 8px;
}

.rio-write__star {
  width: 42px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(#fff, #fff) border-box;
  position: relative;
  cursor: pointer;
}

.rio-write__star::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #d1d5db;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rio-write__star:hover::before,
.rio-write__star.is-active::before {
  background: var(--rio-gold);
}

.rio-write__star:hover {
  border-color: #b8bcc6;
}

/* Toolbar */
.rio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 12px;
}

.rio-toolbar__range {
  margin: 0;
  color: var(--rio-muted);
  font-size: 13px;
}

.rio-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.rio-filter-link {
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.rio-filter-link strong {
  color: #111;
}

/* Reviews */
.rio-reviews {
  display: flex;
  flex-direction: column;
}

.rio-review {
  padding: 26px 0;
  border-top: 1px solid #ececec;
}

.rio-review:first-child {
  border-top: 0;
}

.rio-review__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 12px;
}

.rio-review__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rio-review__stars {
  display: inline-flex;
  gap: 2px;
}

.rio-review__stars span {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: var(--rio-gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rio-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rio-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.rio-verified svg {
  flex-shrink: 0;
}

.rio-review__quote {
  position: relative;
  margin: 0 0 16px;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.rio-review__quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 42px;
  line-height: 1;
  color: #c5c7ce;
  font-family: Georgia, "Times New Roman", serif;
}

.rio-review__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rio-review__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rio-action {
  border: 0;
  background: transparent;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.rio-action:hover {
  color: #6b7280;
}

.rio-review__date {
  color: #9ca3af;
  font-size: 13px;
}

/* Pagination */
.rio-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
}

.rio-page-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.rio-page-btn:hover {
  border-color: #111;
}

.rio-page-btn.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.rio-page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.rio-page-ellipsis {
  color: #9ca3af;
  padding: 0 2px;
}

/* Footer */
.rio-footer {
  border-top: 1px solid #ececec;
  padding: 22px 0 30px;
  background: #fff;
}

.rio-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
}

.rio-footer__inner a {
  color: #111;
  font-weight: 600;
}

@media (max-width: 900px) {
  .rio-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rio-banner__right {
    align-self: center;
  }

  .rio-layout {
    grid-template-columns: 1fr;
  }

  .rio-sidebar__card {
    position: static;
  }
}

@media (max-width: 640px) {
  .rio-biz-btn {
    display: none;
  }

  .rio-write__title {
    font-size: 24px;
  }

  .rio-write__star {
    width: 36px;
    height: 36px;
  }

  .rio-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
