:root {
  --bg: #14171a;
  --bg-card: #1e2429;
  --accent: #1f3a2e;
  --accent-2: #274a3a;
  --text: #f2f2f2;
  --muted: #b9c0bd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero { text-align: center; }
.hero-img { width: 100%; max-width: 520px; display: block; margin: 0 auto; }
.hero-title { font-size: 2.2rem; font-weight: normal; letter-spacing: 1px; margin: 18px 0 8px; }

.section { padding: 50px 16px; max-width: 640px; margin: 0 auto; }
.section-title {
  text-align: center; font-weight: normal; letter-spacing: 4px;
  text-transform: uppercase; font-size: 1.3rem; margin-bottom: 30px;
}
.section-title::after {
  content: ""; display: block; width: 60px; height: 1px;
  background: var(--muted); margin: 12px auto 0;
}

.about-content { text-align: center; }
.about-text { letter-spacing: 2px; font-size: .95rem; color: var(--muted); }
.about-img { width: 100%; max-width: 420px; border-radius: 4px; margin-top: 20px; }

.card {
  background: var(--bg-card); border-radius: 10px; overflow: hidden;
  margin-bottom: 34px;
}
.card-img { width: 100%; display: block; }
.card-body { padding: 20px 22px; }
.card-body h3 { font-size: 1rem; letter-spacing: 1px; color: var(--muted); margin: 0 0 14px; }
.card-body h4 { font-size: 1.4rem; font-weight: normal; margin: 0 0 10px; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-body ul { list-style: none; padding-left: 0; color: var(--muted); font-size: .95rem; }
.card-body ul li { margin-bottom: 6px; }
.card-body ul li::before { content: "— "; color: var(--accent-2); }

.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent); margin: 16px -22px -20px; padding: 14px 22px;
  border-radius: 0 0 10px 0px;
}
.price { font-size: 1.15rem; }

.btn {
  background: transparent; border: 1px solid var(--text); color: var(--text);
  padding: 9px 22px; border-radius: 4px; cursor: pointer; font-size: .95rem;
  font-family: inherit;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-primary { background: var(--accent-2); border: none; padding: 10px 24px; }

.reviews-grid { text-align: center; }
.review-img { max-width: 100%; border-radius: 8px; }

.footer { text-align: center; padding: 30px 16px 50px; display: flex; flex-direction: column; gap: 12px; }
.contact {
  display: block; max-width: 360px; margin: 0 auto; width: 100%;
  padding: 12px; border: 1px solid var(--muted); border-radius: 6px;
  color: var(--text); text-decoration: none; letter-spacing: 1px;
}
.contact:hover { background: var(--accent); }

.modal {
  display: none; position: fixed; inset: 0; z-index: 10;
  background: rgba(0,0,0,.75);
}
.modal-content {
  background: var(--bg-card); max-width: 380px; margin: 12% auto;
  padding: 28px; border-radius: 10px; position: relative;
}
.close { position: absolute; top: 10px; right: 16px; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.modal input {
  display: block; width: 100%; margin: 10px 0; padding: 11px;
  background: var(--bg); border: 1px solid #3a4440; color: var(--text);
  border-radius: 4px; font-family: inherit;
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .card-body { padding: 16px; }
  .card-footer { margin: 14px -16px -16px; padding: 12px 16px; }
}

/* ===== Мини-игра «Карта наследства» ===== */
.btn-game {
  margin-top: 18px;
  padding: 12px 28px;
  font-size: 1rem;
  border: 2px solid var(--accent-light);
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  transition: background 0.3s ease;
}
.btn-game:hover { background: var(--accent-light); }

.quiz-modal { max-width: 560px; }

.quiz-intro h3 {
  margin-top: 0;
  font-size: 1.4rem;
}
.quiz-intro .quiz-sub {
  color: var(--text-muted);
  margin: 4px 0 16px;
  font-size: 0.95rem;
}
.quiz-intro p { color: var(--text-muted); }
.quiz-intro .btn { margin-top: 16px; width: 100%; }

.quiz-progress {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.quiz-question {
  font-size: 1.15rem;
  margin: 0 0 18px;
  line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  text-align: left;
  width: 100%;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.quiz-option:hover { border-color: var(--accent-light); background: #222; }

.quiz-result { text-align: center; }
.quiz-result .quiz-type {
  font-size: 1.6rem;
  margin: 6px 0 14px;
  color: #fff;
}
.quiz-result .quiz-voice {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}
.quiz-result .quiz-advice {
  color: var(--text);
  background: var(--accent);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
.quiz-result .btn { width: 100%; }

/* ===== Бургер и боковое меню ===== */
.burger {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1200;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.burger:hover { background: rgba(0, 0, 0, 0.65); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
}
.menu-overlay.open { display: block; }

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 260px;
  height: 100%;
  padding: 20px 0;
  background: #101d16;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.side-menu.open { transform: translateX(0); }

.menu-head {
  padding: 8px 22px 18px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.menu-item:hover { background: rgba(255, 255, 255, 0.08); }
.menu-ico { width: 22px; text-align: center; }

/* ===== Страницы ===== */
.page { min-height: 100vh; }
.page-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin: -20px 0 30px;
}

/* Карточки игр и мероприятий — компактные, без фото */
.game-card, .event-card { max-width: 560px; margin: 0 auto 22px; }
.game-card.game-soon { opacity: 0.55; }
.game-tagline { font-style: italic; color: rgba(255, 255, 255, 0.65); }
.game-meta { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }
.btn[disabled] { opacity: 0.5; cursor: default; }

.event-card { display: flex; align-items: stretch; }
.event-card .card-body { flex: 1; }
.event-card.event-soon { opacity: 0.55; }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 10px;
  background: var(--accent);
  border-radius: 12px 0 0 12px;
}
.event-day { font-size: 1.2rem; font-weight: 700; }
.event-month { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

/* ===== Десктоп: меню всегда раскрыто ===== */
@media (min-width: 900px) {
  .burger { display: none; }
  .menu-overlay { display: none !important; }
  .side-menu { transform: translateX(0); }
  body { padding-left: 260px; }
  .hero-title { font-size: 3rem; }
}
