.cv-main {
  padding-top: 56px;
  padding-bottom: 82px;
}

.cv-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cv-intro-layout {
  display: grid;
  grid-template-columns: minmax(300px, 35%) minmax(0, 65%);
  gap: 68px;
  align-items: start;
}

.cv-preview-column {
  position: sticky;
  top: 40px;
  min-width: 0;
}

.cv-preview {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.cv-preview a {
  display: block;
  text-decoration: none;
}

.cv-preview img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid #dce1e8;
  box-shadow: 0 10px 28px rgba(36, 51, 60, 0.1);
}

.cv-preview figcaption {
  margin-top: 0.55rem;
  color: #68747b;
  font-size: 0.64rem;
  line-height: 1.4;
  text-align: center;
}

.cv-content {
  min-width: 0;
}

.cv-lead {
  max-width: 900px;
  margin: 0 0 0.9rem;
  color: #24333c;
  font-size: 1.1rem;
  line-height: 1.5;
}

.cv-introduction {
  max-width: 940px;
  margin: 0;
  color: #36444c;
  font-size: 0.86rem;
  line-height: 1.63;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.cv-action {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem 0.85rem;
  color: #2f4ed8;
  background: #ffffff;
  border: 1px solid #aebbef;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.cv-action-primary {
  color: #ffffff;
  background: #2f4ed8;
  border-color: #2f4ed8;
}

.cv-action:hover,
.cv-action:focus-visible {
  color: #ffffff;
  background: #6a82eb;
  border-color: #6a82eb;
  text-decoration: none;
}

.cv-section {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid #dce1e8;
}

.cv-section-title {
  margin: 0 0 1rem;
  color: #0f6f72;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.3;
}

.cv-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-timeline-entry {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  padding: 0 0 1.25rem;
}

.cv-timeline-entry + .cv-timeline-entry {
  padding-top: 1.25rem;
  border-top: 1px solid #e6e9ed;
}

.cv-timeline-entry:last-child {
  padding-bottom: 0;
}

.cv-timeline-date {
  color: #2f4ed8;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.cv-timeline-body {
  min-width: 0;
}

.cv-timeline-role {
  margin: 0 0 0.17rem;
  color: #24333c;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.4;
}

.cv-timeline-place {
  margin: 0;
  color: #68747b;
  font-size: 0.7rem;
  line-height: 1.4;
}

.cv-contents {
  columns: 2;
  column-gap: 40px;
  margin: 0;
  padding-left: 1rem;
}

.cv-contents li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
  color: #45535b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.cv-document-section {
  margin-top: 4.1rem;
  padding-top: 2.3rem;
  border-top: 1px solid #dce1e8;
}

.cv-document-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 1rem;
}

.cv-document-title {
  margin: 0;
  color: #0f6f72;
  font-size: 1.18rem;
  font-weight: 500;
}

.cv-document-open {
  color: #2f4ed8;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
}

.cv-document-open:hover,
.cv-document-open:focus-visible {
  color: #6a82eb;
  text-decoration: underline;
}

.cv-pdf-viewer {
  display: block;
  width: 100%;
  height: 980px;
  background: #f4f5f7;
  border: 1px solid #dce1e8;
}

.cv-pdf-fallback {
  padding: 2rem;
  color: #36444c;
  font-size: 0.8rem;
  line-height: 1.55;
}

.cv-pdf-fallback a {
  color: #2f4ed8;
  font-weight: 600;
}

@media (max-width: 1020px) {
  .cv-intro-layout {
    grid-template-columns: minmax(270px, 34%) minmax(0, 66%);
    gap: 46px;
  }

  .cv-pdf-viewer {
    height: 860px;
  }
}

@media (max-width: 790px) {
  .cv-main {
    padding-top: 38px;
    padding-bottom: 56px;
  }

  .cv-intro-layout {
    display: flex;
    flex-direction: column;
    gap: 38px;
  }

  .cv-preview-column {
    position: static;
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .cv-document-section {
    margin-top: 3rem;
  }

  .cv-pdf-viewer {
    height: 720px;
  }
}

@media (max-width: 540px) {
  .cv-lead {
    font-size: 1rem;
  }

  .cv-timeline-entry {
    display: block;
  }

  .cv-timeline-date {
    display: block;
    margin-bottom: 0.3rem;
  }

  .cv-contents {
    columns: 1;
  }

  .cv-document-header {
    display: block;
  }

  .cv-document-open {
    display: inline-block;
    margin-top: 0.45rem;
  }

  .cv-pdf-viewer {
    height: 620px;
  }
}
