/* ===============================
   VARIABLES
================================ */

:root {
  --bg-white: #ffffff;
  --text-main: #000;
  --text-muted: #666;
  --accent: #ffb400;
  --accent-soft: #ffeb7a;
  --accent-hover: #ffe44d;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-main: 0 10px 40px rgba(0, 0, 0, 0.1);
  --transition-main: 0.25s ease;
}



/* ===============================
   REVIEWS BOX
================================ */

.reviews-box {
  background:  #f9e35c4d;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-main);
  font-family: "Roboto", sans-serif;
}

/* Заголовок */
.reviews-box h2 {
  font-family: "Comfortaa", cursive;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--text-main);
}

/* ===============================
   HEADER (average rating)
================================ */

.rating-header {
  font-size: 16px;
  line-height: 1;
  color: #222;
}

.rating-header strong {
  font-size: clamp(20px, 2.5vw, 20px);
  font-weight: 700;
}

.star {
  font-size: 30px;
  color: var(--accent);
  margin-left: 6px;
}

.rating-sub {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.all_reviews {
  display: inline-block;
  margin-top: 6px;
  color: #333345;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.all_reviews.disabled {
  color: #999;
  text-decoration: none;
  cursor: default;
}

/* ===============================
   RATING BARS
================================ */

.rating-bars {
  margin-top: 16px;
}

.rating-row {
  display: grid;
  grid-template-columns: 44px 1fr 26px;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.rating-row .stars {
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
}

.bar {
  height: 10px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffcc33, var(--accent));
  border-radius: 999px;
  transition: width var(--transition-main);
}

.rating-row .count {
  font-size: 14px;
  text-align: right;
  color: var(--text-main);
}

/* ===============================
   BUTTON
================================ */

.review-btn {
  margin-top: 20px;
  width: 100%;
  padding: 16px 0;
  background: #000000;
  border: none;
  color: #ffeb3b;
  border-radius: var(--radius-md);
  font-family: "Comfortaa", cursive;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-main), transform 0.15s ease,
    box-shadow 0.15s ease;
}

.review-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  color: #000;
}

.review-btn:active {
  transform: translateY(0);
}

.review-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 480px) {
  .reviews-box {
    border-radius: 20px;
  }

  .rating-row {
    grid-template-columns: 40px 1fr 22px;
    gap: 10px;
  }

  .rating-header .star {
    font-size: 26px;
  }
}
