:root {
  --ink: #1c1b18;
  --paper: #f4f1ea;
  --card: #ffffff;
  --sun: #ffe14d;
  --sun-soft: #fff4b8;
  --line: #e6e1d4;
  --muted: #6b665c;
  --accent: #ff6b3d;
  --hl: var(--sun);
  --hl-soft: var(--sun-soft);
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 26px 16px 96px;
}
.display { font-family: 'Unbounded', sans-serif; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }

.wrap { max-width: 480px; margin: 0 auto; }

/* ---------- COVER ---------- */
.cover-card {
  position: relative;
  background: var(--card);
  border-radius: 30px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.cover {
  position: relative;
  height: 226px;
  background: #2a2722;
}
.cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .06em;
  background: var(--sun); color: var(--ink);
  padding: 7px 13px; border-radius: 999px;
}
.share {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  cursor: pointer; transition: transform .18s ease;
}
.share:hover { transform: scale(1.07); }
.share:active { transform: scale(.95); }

.logo-wrap { display: flex; justify-content: center; margin-top: -52px; position: relative; z-index: 4; }
.logo-ring {
  width: 104px; height: 104px; border-radius: 50%; padding: 5px;
  background: var(--card);
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.35);
}
.logo-ring img { width: 94px; height: 94px; display: block; border-radius: 50%; object-fit: cover; }
.logo-ring .logo-ph { width: 94px; height: 94px; border-radius: 50%; background: #ece7da; }

/* ---------- BRAND ---------- */
.brandblock { text-align: center; padding: 14px 18px 4px; }
/* когда круг с лого скрыт — заголовок не прилипает к обложке */
.wrap[data-logo="off"] .brandblock { padding-top: 22px; }
.brand { font-size: 30px; }
.brand .id { color: var(--ink); -webkit-text-stroke: 0; position: relative; }
.pill {
  display: inline-block; margin-top: 12px; white-space: nowrap;
  font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--hl); color: var(--ink);
  padding: 7px 14px; border-radius: 999px;
}
.tagline {
  margin: 16px auto 0; max-width: 320px;
  font-size: 16.5px; font-weight: 600; color: var(--ink);
  text-wrap: balance;
}

/* ---------- SOCIALS ---------- */
.socials { display: flex; justify-content: center; gap: 12px; padding: 20px 0 4px; }
.social {
  width: 46px; height: 46px; border-radius: 14px;
  border: 1.5px solid var(--ink); background: var(--card);
  display: grid; place-items: center; color: var(--ink);
  cursor: pointer; transition: transform .16s ease, background .16s ease;
}
.social:hover { transform: translateY(-3px); background: var(--hl); }
.social svg { width: 21px; height: 21px; }

/* ---------- LINKS ---------- */
nav.links { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800; font-size: 16px;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.link .dot {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  background: var(--hl); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .18s ease;
}
.link .dot svg { width: 23px; height: 23px; }
.link .label { flex: 1; }
.link .arrow { flex: none; opacity: .25; transform: translateX(-4px); transition: opacity .18s ease, transform .18s ease; }
.link .arrow svg { width: 20px; height: 20px; display: block; }
.link:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--hl-soft);
  box-shadow: 0 12px 22px -16px rgba(0,0,0,.5);
}
.link:hover .dot { transform: rotate(-4deg) scale(1.05); }
.link:hover .arrow { opacity: 1; transform: translateX(0); }
.link:active { transform: translateY(0) scale(.992); }

/* icons off */
.wrap[data-icons="off"] .link { justify-content: center; text-align: center; }
.wrap[data-icons="off"] .link .dot,
.wrap[data-icons="off"] .link .arrow { display: none; }

/* card style: outline */
.wrap[data-style="outline"] .link { background: transparent; }
.wrap[data-style="outline"] .link:hover { background: var(--hl-soft); }

/* card style: filled */
.wrap[data-style="filled"] .link { background: var(--hl); border-color: transparent; }
.wrap[data-style="filled"] .link .dot { background: var(--ink); color: var(--hl); }
.wrap[data-style="filled"] .link:hover { background: var(--hl); border-color: var(--ink); }

/* ---------- FOOTER ---------- */
footer { text-align: center; margin-top: 26px; }
.site {
  display: inline-block;
  background: var(--ink); color: var(--sun);
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  transition: transform .16s ease;
}
.site:hover { transform: translateY(-2px); }
.footnote { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ---------- FLOATING MESSENGERS ---------- */
.float-msg { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.float-msg a {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .15s ease;
}
.float-msg a:hover { transform: scale(1.08); }
.float-msg a.viber { background: #7360f2; }
.float-msg a.tg { background: #2aabee; }
.float-msg svg { width: 28px; height: 28px; }
.wrap[data-msg="off"] ~ .float-msg { display: none; }

/* ---------- ENTRANCE ---------- */
@media (prefers-reduced-motion: no-preference) {
  .anim { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes rise { from { transform: translateY(11px); } to { transform: none; } }
}

@media (max-width: 520px) {
  .float-msg { right: 14px; bottom: 14px; }
  .float-msg a { width: 50px; height: 50px; }
}
