:root {
  --ink: #14171a;
  --text: #2f3439;
  --muted: #68717a;
  --line: #d9dddf;
  --paper: #f3f1ec;
  --panel: #ffffff;
  --soft: #faf9f6;
  --blue: #243f5c;
  --green: #5d6b58;
  --gold: #c4a062;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(36, 63, 92, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(196, 160, 98, 0.12), transparent 36%),
    var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

.page {
  min-height: 100vh;
  padding: clamp(14px, 2.4vw, 30px);
  display: grid;
  place-items: center;
}

.card {
  width: min(1150px, 100%);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 3.2vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 23, 26, 0.08);
  box-shadow: 0 24px 70px rgba(20, 23, 26, 0.12);
  overflow: hidden;
}

.identity {
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(196, 160, 98, 0.14), transparent 46%),
    var(--soft);
  border: 1px solid rgba(20, 23, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(20, 23, 26, 0.12);
}

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
}

.identity-text {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.identity-name {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 780;
}

.identity-title {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.box-label,
.kicker {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.download-box {
  display: grid;
  gap: 11px;
}

.download-links {
  display: grid;
  gap: 8px;
}

.download-link {
  min-height: 60px;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  gap: 3px;
  transition: background 160ms ease;
}

.download-link:hover,
.contact-item:hover {
  background: var(--soft);
}

.download-link strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 760;
}

.download-link span,
.contact-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 780;
}

.role {
  max-width: 760px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.22;
  font-weight: 700;
}

.intro {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 760;
}

.primary-button {
  background: var(--ink);
  color: #ffffff;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.contact-item {
  min-height: 86px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.contact-item.wide {
  grid-column: span 2;
}

.contact-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 760;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .page {
    align-items: start;
  }

  .card {
    max-height: none;
    grid-template-columns: 1fr;
    gap: 22px;
    overflow: visible;
  }

  .identity {
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: center;
  }

  .identity-text {
    border-bottom: 0;
  }

  .download-box {
    grid-column: 1 / -1;
  }

  .download-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .page {
    padding: 0;
  }

  .card {
    min-height: 100vh;
    padding: 20px;
    gap: 19px;
    border: 0;
    box-shadow: none;
  }

  .identity {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .portrait-frame {
    padding: 5px;
  }

  .identity-name {
    font-size: 20px;
  }

  h1 {
    font-size: clamp(44px, 16vw, 60px);
  }

  .role {
    font-size: 19px;
  }

  .intro {
    font-size: 15px;
    line-height: 1.55;
  }

  .actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .download-links,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item.wide {
    grid-column: span 1;
  }
}
