*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0c0b0a;
  --bg-soft: #1a1714;
  --card: #1c1916;
  --text: #f0e6d8;
  --text-muted: #a89a8c;
  --rose: #d4a5a5;
  --rose-soft: #c9a0a0;
  --rose-border: rgba(212, 165, 165, 0.35);
  --rose-glow: rgba(212, 165, 165, 0.12);
  --border: rgba(212, 165, 165, 0.22);
  --gold: #c9a86c;
  --gold-soft: rgba(201, 168, 108, 0.45);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;

  /* Базовый тёмный фон */
  background-color: #0a0908;

  /* Чёрно-золотой мрамор — многослойный эффект */
  background-image:
    /* Тонкие золотые прожилки */
    radial-gradient(ellipse 80% 50% at 15% 25%, rgba(201, 168, 108, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(201, 168, 108, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse 70% 55% at 70% 80%, rgba(201, 168, 108, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 25% 75%, rgba(201, 168, 108, 0.06) 0%, transparent 40%),

    /* Более крупные мягкие пятна мрамора */
    radial-gradient(ellipse 90% 70% at 40% 40%, rgba(30, 26, 22, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 75% 55%, rgba(22, 19, 16, 0.85) 0%, transparent 55%),

    /* Лёгкий розово-золотой оттенок в углах */
    radial-gradient(ellipse at 10% 90%, rgba(212, 165, 165, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 10%, rgba(201, 168, 108, 0.05) 0%, transparent 40%),

    /* Основной градиент глубины */
    linear-gradient(165deg, #0e0c0a 0%, #141210 35%, #0c0b09 70%, #100e0c 100%);
}

/* Дополнительный слой «прожилок» через псевдоэлемент */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    /* Диагональные тонкие золотые линии-прожилки */
    linear-gradient(115deg, transparent 40%, rgba(201, 168, 108, 0.03) 42%, transparent 44%),
    linear-gradient(125deg, transparent 55%, rgba(201, 168, 108, 0.025) 57%, transparent 59%),
    linear-gradient(95deg, transparent 20%, rgba(201, 168, 108, 0.02) 22%, transparent 24%),
    linear-gradient(140deg, transparent 70%, rgba(201, 168, 108, 0.035) 72%, transparent 74%),
    linear-gradient(105deg, transparent 80%, rgba(201, 168, 108, 0.02) 82%, transparent 84%);
  background-size: 100% 100%;
}

/* Лёгкая текстура шума для реалистичности мрамора */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.page {
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    0 0 0 1px rgba(201, 168, 108, 0.08),
    0 24px 48px -12px rgba(0, 0, 0, 0.65),
    0 0 80px -20px rgba(201, 168, 108, 0.08);
  position: relative;
}

/* тонкая внутренняя окантовка */
.card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rose-border);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.7;
}

/* ===== Фото ===== */
.photo-wrapper {
  width: 148px;
  height: 148px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--bg-soft);
  position: relative;
  border: 1px solid var(--rose-border);
  box-shadow: 0 0 0 4px var(--rose-glow);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ===== Текст ===== */
.name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--text);
  text-transform: uppercase;
}

.description {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 160px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-border), transparent);
}

.divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose-soft);
  opacity: 0.8;
}

.hint {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

/* ===== QR ===== */
.qr-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 3px;
  border: 1px solid var(--rose-border);
  margin-bottom: 24px;
  box-shadow: 0 0 0 3px var(--rose-glow);
}

.qr {
  width: 188px;
  height: 188px;
  display: block;
  border-radius: 2px;
  object-fit: contain;
}

.note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 400px) {
  .card {
    padding: 32px 22px 28px;
  }

  .photo-wrapper {
    width: 132px;
    height: 132px;
  }

  .name {
    font-size: 28px;
  }

  .description {
    font-size: 16px;
  }

  .qr {
    width: 168px;
    height: 168px;
  }
}
