/* Мини-лендинг · визитка. Те же токены дизайн-системы Kitegroup.
   Mobile-first — базовые стили для узкого вьюпорта, media queries для десктопа. */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #F2EEE8;
  --paper-2: #EAE5DC;
  --ink: #1A1915;
  --ink-2: #2A2824;
  --stone: #6C665B;
  --stone-2: #9B9488;
  --rule: #D9D3C7;
  --accent: #C75A3A;

  --font-sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Оболочка страницы — одна узкая колонка, центрируется на больших экранах */
.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Верхняя хрома — бренд слева, переключатель языка по центру, год справа */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.topbar .brand::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.topbar .year { justify-self: end; }

/* Переключатель языка */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lang button {
  background: none;
  border: 0;
  padding: 2px 2px;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--stone);
  cursor: pointer;
  transition: color 0.15s;
}
.lang button:hover { color: var(--ink); }
.lang button.active { color: var(--accent); }
.lang .sep { color: var(--rule); }

/* Hero: аватар слева + текст справа в одной строке */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transform: scale(1.2);
  transform-origin: 50% 35%;
  display: block;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.name {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.role {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.4;
}

.bio {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Био-список с терракотовым тире-маркером (паттерн из дизайн-системы) */
.bio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.bio-list li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.bio-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 2px;
  background: var(--accent);
}

/* Секция — заголовок с мононумером + контент */
.section { display: flex; flex-direction: column; gap: 20px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Skills — pill-теги */
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 14px;
  color: var(--ink-2);
  background: transparent;
}

/* Socials — строка из кнопок-плашек */
.socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.social:hover { background: var(--paper-2); border-color: var(--stone-2); }
.social:active { background: var(--paper-2); }
.social .icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.social .icon svg { width: 100%; height: 100%; }
.social .label {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.social .label .net {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-transform: uppercase;
}
.social .label .handle {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Футер */
footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-transform: uppercase;
}

/* Десктоп — слегка просторнее, но тот же layout */
@media (min-width: 768px) {
  .wrap { padding: 56px 32px 40px; gap: 64px; }
  .avatar { width: 180px; height: 180px; }
  .name { font-size: 48px; }
  .role { font-size: 18px; }
  .hero { gap: 28px; }
  .bio { font-size: 18px; }
  .section-head h2 { font-size: 26px; }
}
