:root {
  --blue: #1f5f93;
  --text: #111;
  --muted: #333;
  --border: #d8d8d8;
  --paper: #fff;
  --bg: #f2f4f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.35;
}

.page-shell {
  max-width: 980px;
  margin: 28px auto;
  padding: 42px 54px;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border: 1px solid var(--border);
}

.site-header {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
}

.header-main {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 20px;
  align-items: start;
}

.header-text { grid-column: 1 / 2; padding-left: 120px; }

.profile-photo {
  grid-column: 2 / 3;
  grid-row: 1;
  width: 88px;
  height: 116px;
  object-fit: cover;
  justify-self: end;
  border: 1px solid #eee;
}

h1 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
}

.contacts {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

.contacts a { color: #2c7180; text-decoration: underline; }
.contacts span { margin: 0 5px; }

.language-switch {
  margin: 18px auto 0;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  padding: 7px 14px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active { background: var(--blue); color: #fff; }

.resume { display: none; }
.resume.active { display: block; }

.top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 18px;
}

h2 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
}

.section-title {
  color: var(--blue);
  font-size: 24px;
  margin: 18px 0 8px;
}

h3 {
  margin: 10px 0 2px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  text-decoration: underline;
}

h3 span { font-weight: 700; }

p { margin: 0 0 7px; }

.meta {
  text-align: right;
  margin: 0 0 6px;
  font-size: 15px;
}

ul { margin: 5px 0 8px 20px; padding: 0; }
li { margin-bottom: 3px; }
.plain-list { list-style: none; margin-left: 0; }

[lang="hy"] {
  font-family: "Sylfaen", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
}

[lang="hy"] h1 { font-size: 32px; }
[lang="hy"] .section-title { font-size: 24px; }

@media (max-width: 760px) {
  body { font-size: 14px; }
  .page-shell { margin: 0; padding: 24px 18px; border: 0; box-shadow: none; }
  .header-main { display: block; }
  .header-text { padding-left: 0; }
  .profile-photo { display: block; margin: 0 auto 12px; width: 82px; height: 108px; }
  h1 { font-size: 28px; }
  .top-grid { grid-template-columns: 1fr; gap: 14px; }
  .meta { text-align: left; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .page-shell { margin: 0; padding: 0; box-shadow: none; border: 0; max-width: none; }
  .language-switch { display: none; }
  .resume:not(.active) { display: none !important; }
  a { color: inherit; text-decoration: none; }
  h1 { font-size: 25pt; }
  .section-title { font-size: 16pt; }
  h3, h2 { page-break-after: avoid; }
  .job { break-inside: avoid; }
}
