:root {
  --bg: #ffffff;
  --fg: #14161a;
  --muted: #7c828c;
  --line: #e8eaee;
  --accent: #2b6cf6;
  --accent-fg: #ffffff;
  --soft: #f2f4f7;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #f2f3f5;
    --muted: #9aa1ab;
    --line: #2a2e35;
    --accent: #4a86ff;
    --accent-fg: #ffffff;
    --soft: #22262c;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
}

.hero {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--soft);
}

h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
}

.text p { margin: 0 0 12px; }
.text p:last-child { margin-bottom: 0; }
.text b, .text strong { font-weight: 600; }

.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--soft);
  color: var(--fg);
  transition: opacity .12s ease, transform .12s ease;
}
.btn:active { transform: scale(.985); opacity: .85; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }

.hint {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.error { color: var(--muted); text-align: center; padding: 60px 0; }

/* скелетон загрузки */
.skeleton { display: flex; flex-direction: column; gap: 12px; }
.sk { background: var(--soft); border-radius: 8px; animation: pulse 1.3s ease-in-out infinite; }
.sk-img { height: 170px; border-radius: var(--radius); margin-bottom: 8px; }
.sk-line { height: 14px; }
.sk-btn { height: 50px; border-radius: var(--radius); margin-top: 16px; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }
