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

:root {
  --accent: #2563eb;
  --dark: #1e293b;
  --muted: #64748b;
  --bg: #f1f5f9;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  padding: 32px 16px;
}

.cv {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

/* Sidebar */
.sidebar {
  background: var(--dark);
  color: #e2e8f0;
  padding: 36px 28px;
}

.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.name {
  text-align: center;
  font-size: 24px;
  color: #fff;
}

.role {
  text-align: center;
  color: #38bdf8;
  font-size: 14px;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.block {
  margin-bottom: 28px;
}

.block h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

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

.contact li {
  margin-bottom: 10px;
}

.contact li span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
}

/* Skills */
.skill {
  margin-bottom: 14px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.skill-head span:last-child {
  color: #38bdf8;
}

.bar {
  height: 6px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 999px;
}

/* Main */
.main {
  padding: 40px 40px 40px 36px;
}

.section {
  margin-bottom: 32px;
}

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

.section > h2 {
  font-size: 18px;
  color: var(--dark);
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.section > p {
  color: var(--muted);
  font-size: 15px;
}

.item {
  margin-bottom: 22px;
}

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

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

.item-head h3 {
  font-size: 16px;
  color: var(--dark);
}

.time {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.company {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  font-style: italic;
}

.item ul {
  list-style: none;
  padding-left: 0;
}

.item ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #475569;
  margin-bottom: 4px;
}

.item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 760px) {
  .cv {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 28px 22px;
  }
}

/* Print */
@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .cv {
    box-shadow: none;
    border-radius: 0;
  }
}
