:root {
  --navy: #172033;
  --blue: #dcebf7;
  --accent: #38a0d7;
  --text: #263342;
  --muted: #697789;
  --paper: #ffffff;
  --line: #dfe6ed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 16px;
  background: #edf2f7;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

.cv {
  width: min(980px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--paper);
  box-shadow: 0 16px 45px rgba(23, 32, 51, 0.14);
}

.sidebar {
  padding: 38px 32px;
  background: var(--navy);
  color: white;
}

.avatar {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: var(--accent);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
}

.sidebar h1 {
  margin: 0;
  text-align: center;
  font-size: 25px;
  line-height: 1.25;
}

.role {
  margin: 7px 0 28px;
  text-align: center;
  color: #bdd3e5;
  font-size: 14px;
}

.sidebar section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar h2,
.content h2 {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 15px;
}

.sidebar h2 { color: #93cbe8; }

.contact {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 14px;
}

.contact li {
  display: grid;
  margin: 8px 0;
}

.contact span {
  color: #96a7bc;
  font-size: 12px;
}

.contact a {
  color: white;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.skill {
  margin: 13px 0;
  font-size: 13px;
}

.skill i {
  display: block;
  height: 5px;
  margin-top: 6px;
  background: rgba(255,255,255,.13);
  border-radius: 9px;
  overflow: hidden;
}

.skill i::after {
  content: "";
  display: block;
  width: var(--level);
  height: 100%;
  background: var(--accent);
}

.content {
  padding: 42px 48px;
}

.content section {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.content section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.content h2 {
  color: #1d78a8;
  margin: 0 0 14px;
}

.content p { margin: 0; }

.item { margin-top: 14px; }

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 4px;
}

.item h3 {
  margin: 0;
  font-size: 17px;
}

.item-head span {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  body { padding: 0; }
  .cv { grid-template-columns: 1fr; }
  .sidebar { padding: 30px 24px; }
  .content { padding: 32px 24px; }
  .item-head { display: block; }
  .item-head span { display: block; margin-top: 2px; }
}

@media print {
  body { padding: 0; background: white; }
  .cv { width: 100%; box-shadow: none; }
}
