* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Arsenal", sans-serif;
  background: #f8f6f4;
  color: #1e1e1e;
}

.wrap {
  width: min(920px, 92vw);
  margin: 30px auto 64px;
}

.hero {
  border: 1px solid #e4d9d2;
  border-radius: 14px;
  padding: 18px 20px 16px;
  background: #fffdfb;
  box-shadow: 0 8px 22px rgba(34, 25, 20, 0.05);
  margin-bottom: 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.brand-logo {
  display: block;
  width: 126px;
  max-width: 36vw;
  height: auto;
  margin: 0 auto 10px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 12px;
  color: #aa8d74;
}

.ornament-vz {
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
}

.rings {
  position: relative;
  width: 54px;
  height: 26px;
}

.ring {
  position: absolute;
  top: 3px;
  width: 20px;
  height: 20px;
  border: 2px solid #aa8d74;
  border-radius: 50%;
  background: transparent;
}

.ring-left { left: 8px; }
.ring-right { right: 8px; }

h1 {
  margin: 0 0 10px;
  font-family: "Forum", sans-serif;
  font-size: clamp(30px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-align: center;
}

.subtitle {
  margin: 0 0 12px;
  color: #1e1e1e;
  font-size: 14px;
  line-height: 1.55;
}

.subtitle:last-child { margin-bottom: 0; }

.form {
  border: 1px solid #e4d9d2;
  border-radius: 14px;
  padding: 22px 22px 20px;
  background: #fffdfb;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 10px 26px rgba(34, 25, 20, 0.06);
}

.vendor-card {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #eee4de;
  border-radius: 10px;
  background: #fff;
}

.vendor-card h3 {
  margin: 0 0 10px;
  font-family: "Forum", sans-serif;
  font-size: 28px;
  font-weight: 400;
}

.vendor-card .grid.two { grid-template-columns: 1fr; }
.vendor-card .field + .grid.two { margin-top: 10px; }
.rating-inline { margin-top: 4px; }

.rating-stars-line {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.star-btn {
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #c5c5c5;
  user-select: none;
}

.star-btn.active,
.star-btn:hover {
  color: #aa8d74;
}

.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.one { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; color: #1e1e1e; font-weight: 400; }
.select-with-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.select-with-avatar select {
  flex: 1 1 auto;
  min-width: 0;
}
.avatar-preview {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: #eee;
  background-size: cover;
  background-position: center 18%;
  border: 1px solid #dbc6bc;
}
.rating-note {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #6d6d6d;
}

input, select, textarea {
  border: 1px solid #d5d5d5;
  border-radius: 0;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: #fff;
  transition: border-color .16s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #aa8d74;
  box-shadow: none;
}

h2 {
  margin: 0 0 12px;
  font-family: "Forum", sans-serif;
  font-size: 30px;
  font-weight: 400;
}

.btn {
  margin-top: 10px;
  border: none;
  background: #aa8d74;
  color: #fff;
  font-weight: 400;
  border-radius: 0;
  padding: 18px 40px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Arsenal", sans-serif;
}

.btn:hover { background: #9a7f68; }
.hint { font-size: 13px; color: #1e1e1e; margin: 12px 0 0; }

.select-rich option { padding-left: 10px; }

.toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 16px;
  max-width: 760px;
}

.btn-link {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #d5c1b2;
  color: #7b5f4c;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff;
}

.btn-link:hover {
  background: #f9f1ec;
}

.ratings-grid {
  display: grid;
  gap: 14px;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rating-table th,
.rating-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee4de;
  text-align: left;
  vertical-align: top;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #7b5f4c;
}

.muted {
  color: #777;
  font-size: 12px;
}

.stages-cell {
  min-width: 220px;
}

.stages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.stage-block__label {
  font-size: 12px;
  color: #4a4a4a;
}

.stars-cell {
  min-width: 140px;
  vertical-align: top;
}

.star-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.star-bar__stars {
  display: inline-flex;
  gap: 3px;
  line-height: 1;
  font-size: 18px;
}

.star-slot {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.star-slot__bg {
  color: #d8d8d8;
  display: block;
}

.star-slot__fg {
  position: absolute;
  left: 0;
  top: 0;
  color: #aa8d74;
  overflow: hidden;
  white-space: nowrap;
  display: block;
  height: 100%;
  pointer-events: none;
}

.star-bar--empty .star-slot__bg {
  color: #c8c8c8;
}

.star-bar__hint {
  font-size: 11px;
  color: #9a9a9a;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .grid.two { grid-template-columns: 1fr; }
  .wrap { margin: 14px auto 28px; width: min(96vw, 760px); }
  .hero { padding: 14px 12px 12px; margin-bottom: 12px; border-radius: 10px; }
  .brand-logo { width: 112px; max-width: 46vw; margin-bottom: 8px; }
  .ornament { margin-bottom: 10px; gap: 10px; }
  .ornament-vz { font-size: 18px; }
  h1 { font-size: 32px; }
  .form { padding: 14px 12px 14px; border-radius: 10px; }
  .vendor-card { padding: 10px; margin: 10px 0; border-radius: 8px; }
  .avatar-preview { width: 38px; height: 38px; flex-basis: 38px; }
  .star-btn { font-size: 26px; }
  .btn { width: 100%; padding: 16px 18px; }
  .rating-table { font-size: 13px; }
  .rating-table th,
  .rating-table td { padding: 7px 6px; }
}
