:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #0f4c81;
  --accent-light: #e8f1f8;
  --border: #dbe4ee;
  --shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef4fa 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

header {
  padding: 40px 0 24px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-main {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.profile-pic {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  background: #f2f4f8;
}

.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.subtitle {
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.intro {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 22px;
  max-width: 700px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  font-weight: 700;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.secondary {
  background: white;
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.info-card,
.about,
.timeline-section,
.list-section,
.page-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.info-card h3,
.page-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--accent);
}

.info-item {
  margin-bottom: 12px;
}

.info-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  word-break: break-word;
}

section {
  padding: 12px 0 28px;
}

.section-title {
  font-size: 28px;
  margin: 0 0 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.list-item,
.pub-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3,
.timeline-item h3,
.list-item h3,
.pub-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--accent);
}

.card p,
.about p,
.timeline-item p,
.list-item p,
.pub-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.timeline,
.list-grid,
.pub-list {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfdff;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.hobby-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hobby {
  border: 1px solid var(--border);
  background: #fbfdff;
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
}

.page-header {
  padding: 32px 0 18px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 700;
}

footer {
  padding: 10px 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .profile-pic {
    width: 100%;
    max-width: 220px;
    height: 220px;
  }
}

@media (max-width: 560px) {
  .hero,
  .info-card,
  .about,
  .card,
  .timeline-section,
  .list-section,
  .page-card,
  .pub-item {
    padding: 20px;
  }

  .cards,
  .hobby-list {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}