:root {
  --bg: #ffffff;
  --ink: #16181d;
  --muted: #6b7079;
  --line: #ebecee;
  --soft: rgba(22, 24, 29, .05);
  --soft-hover: rgba(22, 24, 29, .09);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1214; --ink: #e9eaec; --muted: #8d939c; --line: #23282c;
    --soft: rgba(255, 255, 255, .06); --soft-hover: rgba(255, 255, 255, .11);
  }
}

* { box-sizing: border-box; min-width: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 72px 28px 96px; }

/* Intro */
.intro { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.id { display: flex; align-items: center; gap: 28px; text-align: left; }
.photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; margin: 0 0 6px; }
.role { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 5px 12px; border-radius: 999px; background: var(--soft);
  font-size: 13px; font-weight: 550;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 8px;
  background: var(--soft); font-size: 14px; font-weight: 550;
}
.btn:hover { background: var(--soft-hover); }
.btn.icon { width: 40px; padding: 0; }
.btn.icon svg { width: 17px; height: 17px; }

/* Sections */
section { padding-top: 44px; }
h2 {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 18px;
}
.h2link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.h2link svg { width: 16px; height: 16px; }
.h2link:hover { color: var(--ink); }

/* Focus keywords, centered, broad → specialized */
.focus h2 { justify-content: center; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.tags li { white-space: nowrap; border-radius: 999px; background: var(--soft); }
.tags li.l { font-size: 15px; padding: 6px 14px; font-weight: 500; }
.tags li.m { font-size: 13.5px; padding: 5px 12px; color: var(--muted); }
.tags li.s { font-size: 12.5px; padding: 4px 10px; color: var(--muted); }
.tags li.br { flex-basis: 100%; height: 2px; padding: 0; background: none; }
.tags li.arsenal { background: #db0007; color: #fff; font-weight: 550; }

/* Software cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cards li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.cards .t { display: block; font-weight: 600; margin-bottom: 4px; }
.cards .s { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* News rows */
.rows li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .t { font-weight: 500; }
.rows a.t:hover { text-decoration: underline; text-underline-offset: 3px; }
.rows .s { grid-column: 1; color: var(--muted); font-size: 14px; }
.rows img { grid-column: 2; grid-row: 1 / span 2; width: 84px; height: 56px; object-fit: cover; border-radius: 6px; }

@media (max-width: 640px) {
  .wrap { padding: 40px 20px 72px; }
  .id { gap: 18px; }
  .photo { width: 112px; height: 112px; }
  h1 { font-size: 22px; }
  .role { font-size: 14px; }
  .cards { grid-template-columns: 1fr; }
}
