.cv {
  max-width: 920px;
  margin: 80px auto;
  padding: 32px;
  font-size: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
  position: relative;
}

.cv-header h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 33px;
  margin-bottom: 6px;
}

.role {
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 8px;
}

.summary {
  color: var(--muted);
}

.contact {
  display: grid;
  gap: 6px;
  text-align: left;
  color: var(--muted);
  justify-items: start;
}

.cv-photo {
  display: none;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(90, 166, 255, 0.2);
}

.contact a {
  color: var(--muted);
  text-decoration: none;
}

.cv-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cv-lang {
  justify-self: end;
}

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

.cv-section h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 19px;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

ul {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

ul li::before {
  content: "-";
  margin-right: 8px;
  color: var(--accent-2);
}

.project {
  display: grid;
  gap: 12px;
  background: rgba(10, 16, 26, 0.6);
  border: 1px solid rgba(90, 166, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
}

.project h3 {
  margin-bottom: 6px;
}

.project p {
  color: var(--muted);
  margin-bottom: 8px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  background: rgba(90, 166, 255, 0.14);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.experience {
  display: grid;
  gap: 14px;
}

.exp-item {
  background: rgba(10, 16, 26, 0.6);
  border: 1px solid rgba(90, 166, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
}

.exp-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.exp-header span {
  color: var(--muted);
  font-size: 14px;
}

.exp-item p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .cv {
    margin: 40px 16px;
    padding: 24px;
  }

  .cv-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact {
    text-align: left;
  }

  .cv-actions {
    justify-content: flex-start;
  }

  .cv-lang {
    justify-self: start;
  }
}

@media print {
  @page {
    margin: 10mm;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .bg-orb,
  .bg-grid {
    display: none;
  }

  .cv {
    box-shadow: none;
    border: 1px solid #dddddd;
    background: #ffffff;
    max-width: 100%;
    margin: 0;
    padding: 12px;
  }

  .btn,
  .cv-actions {
    display: none !important;
  }

  .cv-availability {
    display: none !important;
  }

  .cv-photo {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 186px;
    height: 186px;
  }

  .contact {
    padding-right: 204px;
  }

  a {
    color: #111111 !important;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 12px;
    color: #444444;
  }

  body,
  .cv {
    font-size: 11px;
    line-height: 1.2;
  }

  .cv-header {
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .cv-header h1 {
    font-size: 25px;
  }

  .role {
    margin-bottom: 4px;
  }

  .cv-section {
    margin-bottom: 10px;
  }

  .cv-section h2 {
    font-size: 15px;
    margin-bottom: 6px;
  }

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

  ul {
    gap: 3px;
  }

  .project,
  .exp-item {
    padding: 7px;
  }

  .project p {
    margin-bottom: 6px;
  }

  .project-meta span {
    font-size: 11px;
    padding: 2px 8px;
  }
}
