@font-face { font-family: "Instrument Serif"; src: url(/fonts/InstrumentSerif-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url(/fonts/InstrumentSerif-Italic.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Urbanist; font-weight: 400; src: url(/fonts/Urbanist-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Urbanist; font-weight: 600; src: url(/fonts/Urbanist-SemiBold.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Urbanist; font-weight: 700; src: url(/fonts/Urbanist-Bold.ttf) format("truetype"); font-display: swap; }

:root {
  --cream: #faf6ef;
  --cream-deep: #f3ecdf;
  --ink: #1f1a17;
  --ink-soft: #5c534d;
  --crimson: #a4132e;
  --crimson-deep: #6f0f22;
  --crimson-dark: #4a0a17;
  --gold: #c9963c;
  --gold-soft: #e8cf9f;
  --on-gold: #3a2405;
  --pine: #12241c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Urbanist, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: "Instrument Serif", Georgia, serif; font-size: 26px; line-height: 1; }
.brand i { font-style: normal; color: var(--gold); font-size: 20px; }
.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.nav a { color: inherit; text-decoration: none; opacity: 0.8; }
.nav a:hover { opacity: 1; }

/* Главная: тёмный верх как в приложении */
.dark { color: #fff; background: linear-gradient(180deg, var(--crimson-deep), var(--crimson-dark)); }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 36px 0 72px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 68px); line-height: 1.03; margin: 14px 0 18px; }
.hero h1 em { color: var(--gold-soft); }
.hero p { font-size: 19px; color: rgba(255, 255, 255, 0.82); max-width: 30em; margin: 0 0 26px; }
.soon { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; color: var(--on-gold); background: linear-gradient(135deg, #f1d79c, var(--gold)); text-decoration: none; }
.note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.note a { color: var(--gold-soft); }
.fan { position: relative; height: 470px; }
.fan img { position: absolute; width: 230px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; border: 1px solid rgba(232, 207, 159, 0.5); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.fan img:nth-child(1) { left: 2%; top: 46px; transform: rotate(-9deg); }
.fan img:nth-child(2) { right: 2%; top: 46px; transform: rotate(9deg); }
.fan img:nth-child(3) { left: 50%; top: 10px; transform: translateX(-50%); }

section { padding: 64px 0; }
section h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; margin: 10px 0 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--cream-deep); }
.step b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--on-gold); background: var(--gold-soft); margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.grid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; padding: 0; margin: 0; list-style: none; }
.facts li { padding-left: 30px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--crimson); font-weight: 700; }
.band { background: var(--cream-deep); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 43em; margin: 0 0 14px; }
section[id], .group, .idea { scroll-margin-top: 14px; }

/* Список идей */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--cream-deep); text-decoration: none; }
.toc a:hover { border-color: var(--gold); }
.group { padding-top: 44px; }
.group h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(27px, 3.6vw, 34px); line-height: 1.12; margin: 0 0 4px; }
.group > p { margin: 0 0 18px; color: var(--ink-soft); max-width: 43em; }
.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.idea { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: start; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--cream-deep); }
.idea img { width: 116px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; }
.idea h4 { margin: 2px 0 4px; font-size: 19px; line-height: 1.25; }
.idea p { margin: 0 0 8px; }
.idea .how { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 6px; }
.idea .how b { color: var(--ink); }
.cta { margin-top: 48px; padding: 36px 24px; border-radius: 26px; text-align: center; color: #fff; background: linear-gradient(180deg, var(--crimson-deep), var(--crimson-dark)); }
.cta p { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.1; margin: 0 0 20px; }

/* Вопросы */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; }
.faq h3 { margin: 18px 0 6px; font-size: 19px; line-height: 1.3; }
.faq p { margin: 0; color: var(--ink-soft); }

/* Санта */
.santa { display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden; border-radius: 26px; color: #fff; background: var(--pine); border: 1px solid rgba(201, 150, 60, 0.6); text-decoration: none; }
.santa img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.santa div { padding: 32px; align-self: center; }
.santa h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 40px); }
.santa p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.8); }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 700; color: var(--on-gold); background: linear-gradient(135deg, #f1d79c, var(--gold)); text-decoration: none; }

/* Подвал */
footer { padding: 36px 0 48px; font-size: 14.5px; color: var(--ink-soft); border-top: 1px solid var(--cream-deep); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-weight: 600; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { margin: 6px 0; max-width: 60em; }

/* Страницы правил */
.bar { color: #fff; background: linear-gradient(180deg, var(--crimson-deep), var(--crimson-dark)); }
.doc { max-width: 760px; margin: 0 auto; padding: 36px 20px 72px; }
.doc h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(40px, 7vw, 56px); line-height: 1.05; margin: 8px 0 12px; }
.doc h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { word-break: break-word; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 16px 0 48px; gap: 28px; }
  .fan { height: 380px; max-width: 420px; width: 100%; margin: 0 auto; }
  .fan img { width: 180px; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .ideas { grid-template-columns: 1fr; }
  .idea { grid-template-columns: 96px 1fr; gap: 14px; }
  .idea img { width: 96px; }
  .faq { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .nav a:not(:last-child) { display: none; }
  .santa { grid-template-columns: 1fr; }
  .santa div { padding: 24px; }
  section { padding: 44px 0; }
  .nav { gap: 14px; }
}
