:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --text-2: #3a3a3c;
  --muted: #8a8a8e;
  --line: #e5e5ea;
  --field: #f2f2f7;
  --soft: #e4e4ea;
  --accent: #007aff;
  --accent-text: #ffffff;
  --icon-bg: linear-gradient(135deg, #e8f0ff, #d7e5ff);
  --cover: linear-gradient(120deg, #cfe3ff, #e9dcff 50%, #ffe1d6);
  --ok: #15803d;
  --err: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f2f2f7;
    --text-2: #d1d1d6;
    --muted: #8e8e93;
    --line: #38383a;
    --field: #2c2c2e;
    --soft: #2c2c2e;
    --accent: #0a84ff;
    --icon-bg: linear-gradient(135deg, #1d2b45, #172238);
    --cover: linear-gradient(120deg, #1b2a4a, #2c2347 50%, #3a2420);
    --ok: #4ade80;
    --err: #f87171;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; }
.muted { color: var(--muted); }
bdi { white-space: nowrap; }

.cover { height: 190px; background: var(--cover); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }

.profile { margin-top: -70px; display: flex; align-items: flex-end; gap: 20px; }
.avatar {
  width: 128px; height: 128px; flex: none;
  border-radius: 50%;
  border: 5px solid var(--bg);
  overflow: hidden;
  background: var(--soft);
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.who { flex: 1; padding-bottom: 10px; }
.profile h1 { font-size: 2rem; font-weight: 800; }
.sub { color: var(--muted); }
.bio { color: var(--text-2); margin: 14px 0 6px; font-size: 1.02rem; }
.actions { display: flex; gap: 10px; margin: 20px 0 6px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.pill:hover { filter: brightness(1.08); }
.pill-soft { background: var(--soft); color: var(--accent); }

.group h2 {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 34px 4px 10px;
  font-size: 1.3rem; font-weight: 800;
}
.group h2 small { color: var(--muted); font-size: .85rem; font-weight: 500; }
.list { background: var(--card); border-radius: 20px; overflow: hidden; }

.app {
  position: relative;
  display: grid; grid-template-columns: 68px 1fr auto;
  gap: 6px 14px; align-items: center;
  padding: 16px;
}
.app + .app::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 98px;
  border-top: 1px solid var(--line);
}
.app-icon {
  width: 68px; height: 68px;
  border-radius: 16px; border: 1px solid var(--line);
  object-fit: cover;
  background: var(--icon-bg); color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800;
}
.app h3 { font-size: 1.08rem; font-weight: 700; }
.app .category { color: var(--muted); font-size: .88rem; }
.app .desc { grid-column: 2 / -1; margin: 2px 0 0; color: var(--text-2); font-size: .93rem; }
.app .pill { min-width: 76px; padding: 6px 18px; font-size: .9rem; }
.app.is-off .pill { background: var(--soft); color: var(--muted); cursor: default; filter: none; }
.app.is-off .app-icon { filter: grayscale(.6); opacity: .8; }

.contact { margin: 34px 0 20px; padding: 24px; background: var(--card); border-radius: 20px; }
.contact h2 { font-size: 1.3rem; font-weight: 800; }
.contact .muted { margin: 4px 0 18px; }
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400;
  padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--field); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.btn {
  justify-self: start;
  padding: 12px 26px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-text);
  font: inherit; font-weight: 700; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: default; }
.hp {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 10px 0 40px; }

@media (max-width: 600px) {
  .cover { height: 130px; }
  .profile { margin-top: -56px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .avatar { width: 104px; height: 104px; }
  .who { padding: 0; }
  .app { grid-template-columns: 60px 1fr auto; padding: 14px; }
  .app-icon { width: 60px; height: 60px; border-radius: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .btn { justify-self: stretch; }
}
