:root {
  --accent: #75abd6;
  --ink: #312e2b;
  --muted: #6b6661;
  --bg: #eef4fa;
  --card: #ffffff;
  --star: #d9d4ce;
  --star-on: #f2b632;
}
body[data-theme="hotel"] { --accent: #75abd6; --bg: #f3ecdf; }
body[data-theme="berg"] { --accent: #75abd6; --bg: #e3eef7; }
body[data-theme="komilfo"] { --accent: #c9a978; --ink: #0e0d0c; --muted: #7a6e5f; --bg: #f1ebe4; --star-on: #c9a978; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px 16px env(safe-area-inset-bottom);
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 20px;
  padding: 24px 22px 28px;
  box-shadow: 0 10px 30px rgba(49, 46, 43, .08);
}
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand { font-weight: 700; letter-spacing: .01em; }
.langs button {
  border: 1px solid #ddd; background: none; color: var(--muted);
  border-radius: 8px; padding: 4px 8px; margin-left: 4px; font-size: 13px; cursor: pointer;
}
.langs button.on { border-color: var(--accent); color: var(--ink); }
h1 { font-size: 24px; line-height: 1.25; margin: 6px 0 12px; }
p { margin: 0 0 16px; color: var(--muted); }
.stars { display: flex; justify-content: space-between; margin: 18px 0 8px; }
.star {
  font-size: 46px; line-height: 1; width: 19%; aspect-ratio: 1;
  border: 0; background: none; color: var(--star); cursor: pointer;
  transition: transform .12s, color .12s;
}
.star:active { transform: scale(.9); }
.star.lit { color: var(--star-on); }
@media (hover: hover) {
  .stars:hover .star { color: var(--star-on); }
  .star:hover ~ .star { color: var(--star); }
}
.hint { text-align: center; font-size: 14px; }
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; border: 0; border-radius: 12px;
  padding: 15px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:disabled { opacity: .6; }
textarea, input {
  display: block; width: 100%; margin: 0 0 10px; padding: 12px 14px;
  border: 1px solid #ddd; border-radius: 12px; font: inherit; color: var(--ink); background: #fff;
}
textarea:focus, input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.small { font-size: 13px; margin: 4px 0 14px; }
.quiet { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.err { color: #b3261e; margin-top: 10px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
