:root {
  --indigo: #2c2a4a;
  --indigo-dark: #1a1830;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --bg: #faf8f3;
  --card-bg: #ffffff;
  --text: #2a2a2e;
  --muted: #6b6b76;
  --error: #b23a3a;
  --success: #2f7a4f;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(44, 42, 74, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--gold); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--indigo-dark);
  color: #fff;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar .brand {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
}

.topbar nav a {
  color: #eae7f5;
  margin-left: 18px;
  font-size: 0.95rem;
}

.topbar nav a:hover { color: var(--gold-light); }

.topbar nav a.cta {
  background: var(--gold);
  color: var(--indigo-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 0.85rem;
}

h1, h2, h3 { color: var(--indigo-dark); }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.flashes { margin-bottom: 20px; }
.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.flash-success { background: #e5f4ea; color: var(--success); }
.flash-error { background: #fbe9e9; color: var(--error); }

form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }

label { font-weight: 600; font-size: 0.9rem; color: var(--indigo-dark); }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], select, textarea {
  padding: 10px 12px;
  border: 1px solid #d9d5e8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

textarea { min-height: 120px; resize: vertical; }

button, .btn {
  display: inline-block;
  background: var(--indigo);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  width: fit-content;
}

button:hover, .btn:hover { background: var(--indigo-dark); color: var(--gold-light); }

.btn-gold { background: var(--gold); color: var(--indigo-dark); font-weight: 600; }
.btn-gold:hover { background: var(--gold-light); color: var(--indigo-dark); }

.btn-secondary { background: transparent; color: var(--indigo); border: 1px solid var(--indigo); }
.btn-secondary:hover { background: var(--indigo); color: #fff; }

.price-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--indigo-dark);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.reading-text {
  white-space: pre-wrap;
  font-size: 1.02rem;
  line-height: 1.8;
}

.muted { color: var(--muted); font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; }

.place-suggestions {
  border: 1px solid #d9d5e8;
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
}
.place-suggestions div {
  padding: 8px 12px;
  cursor: pointer;
}
.place-suggestions div:hover { background: var(--bg); }

.telegram-nudge {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: #eae7f5;
  border-radius: var(--radius);
  padding: 20px 24px;
}
.telegram-nudge a { color: var(--gold-light); font-weight: 600; }

.hero {
  text-align: center;
  padding: 48px 0;
}
.hero h1 { font-size: 2.2rem; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 12px auto 28px; }

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid #e8e4f5;
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
