:root {
  --bg: #f6f4f0;
  --paper: #ffffff;
  --ink: #1e1f23;
  --muted: #5a5e66;
  --accent: #1f4b3a;
  --rule: #e1ddd6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% 0%, #ece7de 0%, transparent 55%),
              radial-gradient(900px 600px at 90% 10%, #e9f1ec 0%, transparent 60%),
              var(--bg);
}

.page {
  max-width: 980px;
  margin: 36px auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.08);
}

.sidebar {
  border-right: 1px solid var(--rule);
  padding-right: 24px;
}

.photo-wrap {
  width: 190px;
  height: 230px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin-top: 18px;
}

.name h1 {
  font-size: 28px;
  letter-spacing: 0.4px;
  margin: 0 0 6px 0;
}

.role {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.block {
  margin-top: 24px;
}

.block h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  font-size: 12.5px;
  line-height: 1.45;
}

.skills-col {
  display: grid;
  gap: 12px;
}

.skills-group {
  border-left: 2px solid var(--rule);
  padding-left: 10px;
}

.skills-group h3 {
  margin: 0 0 4px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
}

.skills-group p {
  margin: 0;
  color: var(--ink);
}

.content {
  padding-left: 4px;
}

.section {
  margin-bottom: 28px;
}

.section h2 {
  margin: 0 0 14px 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}

.item {
  margin-bottom: 18px;
}

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

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

.item-head span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.item ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
}

.item p {
  margin: 6px 0 0 0;
  font-size: 13.5px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 24px;
  }

  .photo-wrap {
    width: 160px;
    height: 200px;
  }

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

@page {
  size: A4;
  margin: 14mm;
}

@media print {
  body {
    background: #ffffff;
  }

  .page {
    width: 210mm;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    display: grid;
    grid-template-columns: 70mm 1fr;
    gap: 8mm;
  }

  .sidebar {
    border-right: 1px solid var(--rule);
    padding-right: 6mm;
  }
}
