
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #fbfcff;
  --text: #152135;
  --muted: #68778f;
  --line: #dfe7f3;
  --primary: #3d67ff;
  --primary-soft: #edf2ff;
  --accent: #f5b400;
  --accent-soft: #fff7dc;
  --success: #167c4d;
  --shadow: 0 20px 44px rgba(31, 51, 89, .08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #f8faff 0%, #f5f7fb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus {
  left: 18px; top: 18px; z-index: 20; background: #fff; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
}
.card-surface {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.site-header { padding: 20px 0 34px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; margin-bottom: 22px;
  background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 26px rgba(27, 49, 86, .05);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand__mark {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #86a0ff); color: #fff;
}
.brand__text { letter-spacing: -0.02em; }
.topbar__nav { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar__link {
  color: var(--muted); padding: 10px 14px; border-radius: 12px; transition: background .18s ease, color .18s ease;
}
.topbar__link:hover { background: #f3f6fd; color: var(--text); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .9fr); gap: 18px; align-items: stretch;
}
.hero__copy, .summary-card, .stat-card, .rating-bars, .form-shell { border-radius: var(--radius-xl); }
.hero__copy { padding: 36px; }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .88rem; font-weight: 700;
}
.hero h1, .section-head h2 { margin: 16px 0 12px; line-height: 1.05; letter-spacing: -0.04em; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); }
.hero h1 span { color: var(--primary); }
.hero__lead, .section-head p { margin: 0; color: var(--muted); font-size: 1.03rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--primary), #678cff); color: #fff; box-shadow: 0 16px 30px rgba(52,103,255,.25); }
.btn--secondary { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(27,49,86,.04); }
.summary-card {
  padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
}
.summary-card__rating {
  width: 112px; height: 112px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(135deg, #fff6d9, #ffe9a1); color: #8a5a00; font-size: 2.4rem; font-weight: 800;
}
.summary-card__stars, .review-card__stars { display: flex; gap: 4px; flex-wrap: wrap; }
.star { color: #d5dbe8; font-size: 1.04rem; }
.star.is-filled { color: var(--accent); }
.summary-card__title { margin-top: 10px; font-size: 1.12rem; font-weight: 800; }
.summary-card__count { margin-top: 4px; color: var(--muted); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px;
}
.stat-card {
  padding: 22px; display: grid; gap: 6px;
}
.stat-card strong { font-size: 1.72rem; letter-spacing: -0.03em; }
.stat-card span { color: var(--muted); }
.section { padding: 20px 0 72px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.reviews-counter {
  min-width: 140px; padding: 16px 18px; border-radius: 18px; text-align: center; color: var(--muted); box-shadow: var(--shadow);
}
.reviews-counter strong { color: var(--text); font-size: 1.28rem; }
.rating-bars { padding: 20px; margin-bottom: 22px; }
.rating-bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; }
.rating-bar + .rating-bar { margin-top: 10px; }
.rating-bar span, .rating-bar strong { font-size: .96rem; }
.rating-bar__track { width: 100%; height: 12px; border-radius: 999px; background: #edf2fb; overflow: hidden; }
.rating-bar__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd86a, #f6b400); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-rows: 8px; align-items: start; }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; min-height: 0; height: auto; align-self: start;
}
.review-card__head {
  display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 12px;
}
.review-card__author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; flex: 0 0 auto; background: linear-gradient(135deg, #edf2ff, #f5f8ff); color: var(--primary); font-weight: 800; border: 1px solid #d9e3ff;
}
.review-card__name { font-weight: 800; line-height: 1.2; }
.review-card__meta { margin-top: 4px; color: var(--muted); font-size: .94rem; }
.review-card__score {
  flex: 0 0 auto; min-width: 58px; text-align: center; border-radius: 999px; background: var(--primary-soft); color: var(--primary); padding: 8px 12px; font-weight: 800;
}
.review-card__stars { margin-bottom: 12px; }
.review-card__text { margin: 0; color: var(--text); font-size: 1rem; word-break: break-word; }
.review-card.is-hidden { display: none; }
.dot { opacity: .45; margin: 0 5px; }
.reviews-actions { display: flex; justify-content: center; margin-top: 26px; }
.section--form { padding-top: 0; }
.form-shell { padding: 28px; }
.form-head { margin-bottom: 18px; }
.review-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field span { font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--text); padding: 15px 16px; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: #b4c8ff; box-shadow: 0 0 0 4px rgba(61,103,255,.12); background: #fff;
}
.review-preview { margin-top: 22px; }
.review-preview.is-hidden { display: none; }
.review-preview .review-card { border-color: #d7e3ff; }
.site-footer {
  padding: 22px 0 34px; border-top: 1px solid rgba(221, 230, 243, .95); background: rgba(255,255,255,.7);
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted);
}
.site-footer__inner p { margin: 0; }
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .stats-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .topbar, .section-head, .site-footer__inner { flex-direction: column; align-items: stretch; }
  .topbar__nav { justify-content: stretch; }
  .hero__copy, .summary-card, .stat-card, .rating-bars, .form-shell, .review-card { border-radius: 22px; }
  .summary-card { grid-template-columns: 1fr; }
  .summary-card__rating { width: 90px; height: 90px; border-radius: 24px; }
  .stats-grid, .reviews-grid, .review-form { grid-template-columns: 1fr; }
  .rating-bar { grid-template-columns: 36px 1fr 40px; gap: 10px; }
  .reviews-counter { white-space: normal; }
}

.reviews-grid > .review-card { margin: 0; }
