:root {
  --ink: #151922;
  --muted: #5a6270;
  --line: #d8dce3;
  --accent: #137c78;
}

* {
  box-sizing: border-box;
}

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

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

.cv {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto;
  padding: 44px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 25, 34, 0.12);
}

.cv-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.cv-header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

address {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

p {
  margin: 0;
}

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

li {
  margin: 4px 0;
}

.columns {
  columns: 2;
  column-gap: 38px;
}

article {
  padding: 10px 0 16px;
}

article + article {
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.row span,
.role {
  color: var(--muted);
  font-weight: 700;
}

.role {
  margin-top: 4px;
}

@media (max-width: 720px) {
  .cv {
    width: 100%;
    margin: 0;
    padding: 24px;
    border-radius: 0;
  }

  .cv-header {
    grid-template-columns: 1fr;
  }

  address {
    text-align: left;
  }

  .columns {
    columns: 1;
  }

  .row {
    display: block;
  }
}

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

  .cv {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  section {
    break-inside: avoid;
  }
}
