:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0d0f14;
  --muted: #4b5563;
  --line: #d4d7de;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eef1f6;
}

.cv-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 24px;
}

.cv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.cv-back,
.cv-print {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
  text-decoration: none;
}

.cv-print {
  cursor: pointer;
}

.cv-topbar .language-switch {
  margin-left: auto;
}

.cv-document {
  background: var(--paper);
  border: 1px solid #d9dee7;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 36px;
}

.cv-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.cv-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.cv-header p {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.cv-contact {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.cv-section {
  margin-top: 24px;
}

.cv-section h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-section p,
.cv-section li {
  line-height: 1.6;
}

.cv-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-inline-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cv-item {
  margin-bottom: 18px;
}

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

.cv-item h3 {
  margin: 0;
  font-size: 1rem;
}

.cv-item span,
.cv-item p {
  color: var(--muted);
}

.cv-item ul,
.cv-section ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 720px) {
  .cv-shell {
    padding: 12px;
  }

  .cv-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-back,
  .cv-print {
    text-align: center;
  }

  .cv-topbar .language-switch {
    margin-left: 0;
  }

  .cv-document {
    padding: 22px;
  }

  .cv-item-head,
  .cv-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}

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

  .cv-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .cv-topbar {
    display: none;
  }

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

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