:root {
  --bg: #0b0d10;
  --panel: #11151a;
  --panel-2: #151a20;
  --text: #f3f5f7;
  --muted: #9ba4af;
  --line: #262d35;
  --accent: #d9dde3;
  --max: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 16, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--panel-2);
}

.hero {
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.role {
  margin-top: 18px;
  font-size: clamp(20px, 2.8vw, 30px);
  color: var(--accent);
  letter-spacing: -.02em;
}

.contacts {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.contact:hover {
  color: var(--text);
  border-color: #3a424c;
}

main { padding: 12px 0 72px; }

.section {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding-top: 4px;
}

.profile {
  font-size: 19px;
  color: #dfe3e8;
  max-width: 760px;
}

.job + .job {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
}

.company {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.job-meta {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.job-role {
  margin-top: 4px;
  color: #c9d0d8;
  font-size: 15px;
}

ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

li { margin: 8px 0; }

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 17px;
  border-radius: 12px;
}

.skill strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.skill span {
  color: var(--muted);
  font-size: 14px;
}

.languages {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-card {
  min-width: 210px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 15px 17px;
  border-radius: 12px;
}

.lang-card b { display: block; }
.lang-card span { color: var(--muted); font-size: 14px; }

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.home-card {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 54px);
}

.home-card h1 {
  font-size: clamp(38px, 8vw, 64px);
}

.home-card p {
  color: var(--muted);
  font-size: 18px;
  margin: 18px 0 30px;
}

.language-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.language-buttons a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  background: var(--panel-2);
}

.language-buttons a:hover {
  border-color: #4a535f;
}

.language-buttons strong {
  display: block;
  font-size: 18px;
}

.language-buttons span {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0 48px;
}

@media (max-width: 720px) {
  .section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
  }

  .section-title { padding-top: 0; }

  .skills { grid-template-columns: 1fr; }

  .hero { padding-top: 48px; }

  .language-buttons { grid-template-columns: 1fr; }
}

@media print {
  .topbar { display: none; }
  body { background: white; color: black; }
  .section, .hero { border-color: #ddd; }
  .contact, .skill, .lang-card { background: white; border-color: #ddd; }
  .muted, .section-title, .job-meta, .skill span, .lang-card span { color: #555 !important; }
  .shell { width: 100%; max-width: none; }
}
