@font-face {
  font-family: "LenaLocal";
  src: url("assets/fonts/Lena.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #dfe8dc;
  --paper: #fff9eb;
  --paper-soft: #faf1dd;
  --ink: #243225;
  --muted: #68735f;
  --line: #d7c3a3;
  --line-strong: #b79b70;
  --gold: #9f7b3f;
  --blue: #5c8798;
  --red: #9b665e;
  --green: #6d8a70;
  --purple: #7b6c91;
  --rose: #9b7280;
  --clay: #a88763;
  --cream: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at center, #e9efe5 0%, #dfe8dc 52%, #c7d3c4 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, #ffffff 0%, #e4ece1 50%, #aebead 100%);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.page {
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 44px #e4d6bd;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-frame {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-soft);
}

.logo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.eyebrow {
  margin: 22px 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-row {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

h1 {
  margin: 0;
  font-family: LenaLocal, ui-rounded, "SF Pro Rounded", Inter, system-ui, sans-serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.verified-badge {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  width: 31px;
  height: 31px;
  color: #ffffff;
  transform: translateY(-50%);
}

.verified-badge svg {
  fill: #4e94ca;
  stroke: #ffffff;
  stroke-width: 2.3;
}

.verified-badge svg path:first-child {
  stroke: #3d759f;
  stroke-width: 1.1;
}

.subtitle {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link,
.social-grid a {
  --accent: var(--gold);
  --surface: var(--paper-soft);
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.link {
  min-height: 60px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  padding: 10px 14px;
}

.link--plain {
  grid-template-columns: 18px minmax(0, 1fr) 18px;
}

.link--plain::before {
  content: "";
}

.link[data-channel="youtube"] {
  --accent: var(--red);
  --surface: #f4e2dc;
}

.link[data-channel="telegram-channel"] {
  --accent: var(--blue);
  --surface: #e2edf0;
}

.link[data-channel="donate"] {
  --accent: var(--gold);
  --surface: #f3e8c4;
}

.link[data-channel="collaboration"] {
  --accent: var(--purple);
  --surface: #e8e1ef;
}

.social-grid a[data-channel="instagram"] {
  --accent: var(--rose);
  --surface: #b87b8f;
}

.social-grid a[data-channel="tiktok"] {
  --accent: var(--green);
  --surface: #637f6b;
}

.social-grid a[data-channel="vk"] {
  --accent: var(--blue);
  --surface: #6c93aa;
}

.social-grid a[data-channel="rutube"] {
  --accent: var(--purple);
  --surface: #7d7199;
}

.link:hover,
.social-grid a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.link:focus-visible,
.social-grid a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line);
  background: var(--cream);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  padding: 8px;
}

.link[data-channel="youtube"] .icon,
.link[data-channel="telegram-channel"] .icon {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.link[data-channel="telegram-channel"] .icon {
  border-radius: 50%;
}

.link-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.link-copy {
  min-width: 0;
  justify-self: center;
  text-align: center;
}

.link-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  text-align: right;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 82px);
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.social-grid a {
  width: 82px;
  height: 82px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 19px;
  background: transparent;
  box-shadow: 0 10px 18px rgba(36, 50, 37, .14);
  overflow: hidden;
}

.social-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 520px) {
  body {
    padding: 18px 12px;
  }

  .page {
    padding: 24px 16px;
  }

  .logo-frame {
    width: 112px;
    height: 112px;
  }

  h1 {
    font-size: 46px;
  }

  .verified-badge {
    width: 27px;
    height: 27px;
    left: calc(100% + 8px);
  }

  .subtitle {
    margin-top: 18px;
    font-size: 12px;
  }

  .link {
    min-height: 58px;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 9px 12px;
  }

  .link--plain {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .link-copy strong {
    font-size: 16px;
  }

  .social-grid {
    grid-template-columns: repeat(4, 72px);
    gap: 8px;
  }

  .social-grid a {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
