:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #22252a;
  --muted: #6e7480;
  --border: #d9dce1;
  --accent: #4c6fff;
  --star: #f5b301;
  --star-off: #d5d8de;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 28px 16px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.venue {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Звёзды */
.stars {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.stars .star {
  /* Звёзды бывают кнопками и ссылками; высота строки вместо выравнивания — чтобы стояли ровно */
  display: block;
  height: 60px;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  flex: 1;
  max-width: 72px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--star-off);
  /* На экране 320 px пять звёзд должны помещаться, на широком — не быть гигантскими */
  font-size: clamp(42px, 14vw, 56px);
  line-height: 60px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.1s, transform 0.1s;
}

.stars .star:hover,
.stars .star:focus-visible,
.stars .star:has(~ .star:hover),
.stars .star:has(~ .star:focus-visible) {
  color: var(--star);
}

.stars .star:active {
  transform: scale(1.15);
}

.stars .star.on {
  color: var(--star);
}

/* Подписи под звёздами: с какой стороны «плохо», с какой «отлично» */
.scale {
  display: flex;
  justify-content: space-between;
  max-width: 360px;
  margin: 2px auto 0;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Уже поставленная оценка на втором шаге — мельче, но нажимается так же уверенно */
.stars-small {
  margin-top: 4px;
}

.stars-small .star {
  max-width: 48px;
  height: 46px;
  font-size: 30px;
  line-height: 46px;
}

.rating-hint {
  margin: 0 0 18px;
  font-size: 13px;
}

/* Кнопки */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.btn:active {
  opacity: 0.85;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-yandex {
  background: #fc3f1d;
  color: #fff;
}

.btn-gis {
  background: #19aa1e;
  color: #fff;
}

.btn-secondary {
  background: #e9ebef;
  color: var(--text);
}

.quiet-link {
  display: inline-block;
  margin-top: 8px;
  /* Сама ссылка неприметная, но область нажатия — не меньше 44 px по высоте */
  padding: 14px 12px;
  color: #9aa0aa;
  font-size: 13px;
  text-decoration: underline;
}

/* Поля */
.field-label {
  display: block;
  margin: 20px 0 8px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

textarea {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  /* Шрифт не меньше 16 px, иначе iPhone приближает страницу при вводе */
  font: inherit;
  resize: vertical;
}

textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Связь с руководством (раскрывающийся блок под комментарием) */
.callback {
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
}

.callback summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
}

.callback-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.callback .field-label {
  margin-top: 12px;
}

input[type="tel"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

input[type="tel"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 0;
  font-size: 14px;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
}

.form-error {
  margin: 0 0 4px;
  color: #d0342c;
  font-size: 14px;
}

/* Категории */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: block;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.big-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e6f6ea;
  color: #19aa1e;
  font-size: 40px;
  line-height: 72px;
}

.footer {
  margin-top: 4px;
}

.footer a {
  display: inline-block;
  padding: 14px 12px;
  color: #9aa0aa;
  font-size: 12px;
  text-decoration: none;
}
