:root {
  --bg: #ece2d6;
  --paper: #fbf6ef;
  --text: #3a312b;
  --text-soft: #6f6258;
  --muted: #a39283;
  --line: #e6d8c8;
  --accent: #c4764a;
  --accent-light: #e9c7aa;
  --accent-bg: #f5e6d7;
  --sage: #a7a58f;
}

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

body {
  min-height: 100vh;
  padding: 48px 20px 64px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #f3e3d1 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 110%, #e4d3c0 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(80, 55, 35, 0.06), 0 24px 60px -24px rgba(80, 55, 35, 0.28);
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 52px 56px 40px;
  background: linear-gradient(180deg, var(--accent-bg) 0%, rgba(245, 230, 215, 0) 100%);
  border-bottom: 1px solid var(--line);
}

.photo {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.82) sepia(0.12) contrast(0.97);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--accent-light);
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.role {
  margin-top: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

a.contact:hover {
  color: var(--accent);
}

.contact svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download:hover svg {
  stroke: var(--text);
}

.content {
  display: grid;
  grid-template-columns: 1fr 252px;
}

.main {
  padding: 40px 44px 48px 56px;
}

.sidebar {
  padding: 40px 40px 48px 32px;
  background: rgba(245, 230, 215, 0.28);
  border-left: 1px solid var(--line);
}

.section + .section {
  margin-top: 34px;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

h3 {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h4 {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
}

.summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.summary strong {
  font-weight: 600;
  color: var(--text);
}

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

.job-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.date {
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--muted);
}

.company {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-soft);
}

.company a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-light);
}

.company a:hover {
  border-color: var(--accent);
}

.sep {
  margin: 0 7px;
  color: var(--accent-light);
}

.achievements,
.duties,
.details {
  list-style: none;
}

.achievements {
  display: grid;
  gap: 10px;
}

.achievements li {
  padding: 10px 14px 10px 16px;
  line-height: 1.55;
  background: var(--accent-bg);
  border-left: 2px solid var(--accent-light);
  border-radius: 3px;
}

.achievements b {
  font-weight: 600;
  color: var(--accent);
}

.duties {
  display: grid;
  gap: 6px;
}

.duties li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
}

.duties li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}

.edu {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
}

.edu + .edu {
  margin-top: 16px;
}

.edu-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}

.edu-info {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-soft);
}

.skills + .skills {
  margin-top: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tags span {
  padding: 3px 9px;
  font-size: 11.5px;
  color: var(--text-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.tags span:hover {
  color: var(--text);
  background: var(--accent-bg);
  border-color: var(--accent-light);
}

.lang {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.lang small {
  font-size: 11.5px;
  color: var(--muted);
}

.level {
  display: flex;
  gap: 4px;
  margin: 5px 0 12px;
}

.level i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}

.level i.on {
  background: var(--accent-light);
}

.details {
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.details b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.note {
  margin-top: 34px;
  padding-top: 20px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  body {
    padding: 0;
  }

  .page {
    border-radius: 0;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 26px 28px;
  }

  .photo {
    width: 96px;
    height: 96px;
  }

  h1 {
    font-size: 34px;
  }

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

  .main {
    padding: 30px 26px;
  }

  .sidebar {
    padding: 30px 26px 40px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    padding: 0;
    font-size: 12px;
    background: var(--paper);
  }

  .page {
    zoom: 0.82;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .header {
    padding: 34px 40px 26px;
  }

  .content {
    grid-template-columns: 1fr 290px;
  }

  .main {
    padding: 26px 30px 26px 40px;
  }

  .sidebar {
    padding: 26px 30px 26px 24px;
  }

  .section + .section {
    margin-top: 22px;
  }

  .skills + .skills {
    margin-top: 10px;
  }

  .tags {
    gap: 4px;
  }

  .note {
    margin-top: 22px;
    padding-top: 14px;
  }

  .fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .download {
    display: none;
  }
}
