:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #e3e8f0;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --hero: #111827;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #1e3a8a 100%);
  color: #fff;
  padding: 3rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
}

.hero-text { flex: 1 1 340px; }

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.role {
  margin: 0.35rem 0 1rem;
  font-size: 1.15rem;
  color: #c7d2fe;
  font-weight: 500;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #d1d5db;
}

.contact a { color: #dbeafe; }
.contact li { display: flex; align-items: center; gap: 0.4rem; }
.contact li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; }

.btn-download {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-download::before { content: '\2193'; font-size: 1.05rem; }
.btn-download:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}

.sidebar, .content { display: grid; gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.card p { margin: 0 0 0.85rem; color: #333c4a; }
.card p:last-child { margin-bottom: 0; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.tags li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.82rem;
  font-weight: 500;
}

.list-simple {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.93rem;
}

.list-simple li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #333c4a;
}

.level, .list-simple li span:last-child { color: var(--muted); }

.timeline-item {
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px dashed var(--line);
}

.timeline-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-head h3 { margin: 0; font-size: 1.1rem; }

.period {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.company {
  margin: 0.15rem 0 0.75rem !important;
  font-weight: 600;
  color: var(--accent-dark) !important;
}

.badge {
  display: inline-block;
  margin: 0 !important;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534 !important;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .content { order: 1; }
}

@media (max-width: 520px) {
  .hero { padding: 2.25rem 0; }
  .avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .card { padding: 1.2rem; }
  .btn-download { width: 100%; justify-content: center; }
}

@media print {
  body { background: #fff; }
  .hero { background: #fff; color: var(--ink); padding: 0 0 1rem; border-bottom: 2px solid var(--line); }
  .role, .contact, .contact a { color: var(--muted); }
  .contact li::before { background: var(--accent); }
  .btn-download, .footer { display: none; }
  .layout { grid-template-columns: 1fr 1.6fr; padding: 1rem 0; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .period { background: transparent; color: var(--accent-dark); padding: 0; }
}
