:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #0f2e66;
  --border: #d9e0ec;
  --shadow: 0 16px 40px rgba(15, 46, 102, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.container {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.profile {
  padding: 3rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.2rem;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
}

.profile-photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center 10%;
  background: #dfe6f3;
}

.profile-content {
  padding: 1.2rem 1.3rem 1.4rem;
}

.profile-content h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.role {
  margin: 0.4rem 0 1rem;
  font-weight: 600;
  color: var(--muted);
}

.profile-content p {
  margin: 0 0 0.9rem;
}

.profile-section {
  margin-bottom: 1rem;
}

.profile-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.profile-section ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.profile-section li {
  margin-bottom: 0.35rem;
}

.contact-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  background: #f7f9fe;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--accent);
  background: #ebf1fd;
}

@media (max-width: 760px) {
  .profile {
    padding: 2rem 0;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    min-height: 280px;
  }
}
