:root {
  --vk-blue: #0077ff;
  --vk-blue-h: #0071eb;
  --vk-bg: #edeef0;
  --vk-text: #000;
  --vk-muted: #818c99;
  --vk-link: #2a5885;
  --vk-line: #dce1e6;
  --vk-card: #fff;
}

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

html, body {
  min-height: 100%;
  background: var(--vk-bg);
  color: var(--vk-text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: 32px; }

a { color: var(--vk-link); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  max-width: 550px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

.topbar {
  margin: 0 -12px 12px;
  padding: 10px 16px;
  background: #1c1f26;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
}
.brand:hover { color: #fff; text-decoration: none; }
.mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #0077ff;
  position: relative;
  flex: 0 0 22px;
}
.mark::before,
.mark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.mark::before {
  width: 6px;
  height: 6px;
  left: 8px;
  top: 4px;
}
.mark::after {
  width: 10px;
  height: 6px;
  left: 6px;
  bottom: 4px;
  border-radius: 6px 6px 2px 2px;
}

.card {
  background: var(--vk-card);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  margin-bottom: 12px;
  overflow: hidden;
}
.card > h2,
.posts-head {
  padding: 14px 16px 0;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}

.cover {
  height: 140px;
  background: #2c73b5 center/cover no-repeat;
}
.hero-body {
  display: flex;
  gap: 14px;
  padding: 0 16px 18px;
}
.ava {
  width: 84px;
  height: 84px;
  margin-top: -28px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex: 0 0 84px;
}
.hero-meta { padding-top: 10px; min-width: 0; }
h1 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}
.subs {
  margin-top: 4px;
  color: var(--vk-muted);
  font-size: 13px;
}
.about {
  margin-top: 10px;
  color: #222;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--vk-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.btn:hover { background: var(--vk-blue-h); color: #fff; text-decoration: none; }
.btn.ghost {
  background: #e5ebf1;
  color: #2a5885;
}
.btn.ghost:hover { background: #dae2ea; color: #2a5885; }

.plus {
  list-style: none;
  padding: 8px 8px 10px;
}
.plus li {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--vk-line);
}
.plus li:last-child { border-bottom: 0; }
.plus b { display: block; font-size: 14px; }
.plus span { color: #55677d; font-size: 13px; }
.dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--vk-blue);
  flex: 0 0 8px;
}

.posts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
}
.posts-head a { font-size: 13px; }
.post {
  display: flex;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--vk-line);
  color: inherit;
}
.post:hover { background: #f5f7fa; text-decoration: none; }
.post img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 40px;
}
.post-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.post-top span { color: var(--vk-muted); font-size: 12px; }
.post strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.post p {
  margin-top: 2px;
  color: #333;
}
.open {
  display: inline-block;
  margin-top: 8px;
  color: var(--vk-link);
  font-size: 13px;
  font-weight: 500;
}

.foot {
  text-align: center;
  color: var(--vk-muted);
  font-size: 13px;
  padding: 8px 0 16px;
}
.foot a { color: var(--vk-link); }

@media (max-width: 420px) {
  .hero-body { flex-direction: column; gap: 0; }
  .ava { margin-top: -36px; }
}
