:root {
  --bg: #050816;
  --bg-soft: #0f172a;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.3);
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --transition-fast: 0.2s ease;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Header */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #60a5fa, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
}

.logo-text-main {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

nav a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform 0.12s ease-out;
}

nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--border-soft);
  color: var(--text-main);
  transform: translateY(-1px);
}

nav a.active {
  background: var(--accent-soft);
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.6);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
  gap: 24px;
  margin-bottom: 28px;
}

.card {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  margin-bottom: 12px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.9);
}

.hero-title {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-title span {
  background: linear-gradient(to right, #60a5fa, #a855f7, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 480px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-meta-block {
  min-width: 120px;
}

.hero-meta-tech {
  margin-bottom: 14px;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.13em;
  margin-bottom: 2px;
}

.value {
  font-size: 14px;
}

/* Buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 1);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform 0.12s ease-out, box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.9);
}

.btn-secondary {
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 15px;
}

/* Avatar card */

.avatar-card {
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
}

.avatar-card::before,
.avatar-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
  top: -30px;
  right: -40px;
  mix-blend-mode: screen;
}

.avatar-card::after {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2), transparent 72%);
  top: auto;
  bottom: -40px;
  left: -50px;
}

.avatar-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* мини-навигация сверху справа */

.mini-nav {
  display: flex;
  gap: 6px;
}

.mini-nav button {
  border-radius: 999px;
  border: 0;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast),
    transform 0.12s ease-out;
}

.mini-nav button:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--text-main);
  transform: translateY(-1px);
}

.mini-nav button.active {
  background: rgba(37, 99, 235, 0.25);
  color: #dbeafe;
}

.avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* сама ава */

.avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  background: #020617;
}

.avatar-bottom {
  text-align: center;
  position: relative;
  z-index: 1;
}

.avatar-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.avatar-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.avatar-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
}

.avatar-tag {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
}

/* Sections */

.sections {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 20px;
}

.section-card {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 16px 16px 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.7);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-counter {
  font-size: 12px;
  color: var(--text-muted);
}

.section-body {
  font-size: 13px;
  color: var(--text-main);
}

.section-body p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.section-list {
  list-style: none;
  margin: 4px 0 2px;
}

.section-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
}

.section-bullet {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(148, 163, 184, 0.7);
}

.section-list-title {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 2px;
}

.section-list-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tags-row span {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.contact-item {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1px;
}

.contact-link {
  font-size: 13px;
  color: #bfdbfe;
  word-break: break-all;
}

/* Footer */

footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

footer span {
  color: #60a5fa;
}

/* Mobile */

@media (max-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .sections {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    padding-inline: 12px;
  }

  .card,
  .avatar-card,
  .section-card {
    padding-inline: 14px;
  }
}
