:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1b1f2a;
  --muted: #53627a;
  --primary: #2f6fed;
  --primary-soft: rgba(47, 111, 237, 0.12);
  --line: #e7edf7;
  --shadow: 0 18px 46px rgba(11, 25, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #eef3ff 0%, var(--bg) 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.language-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(17, 31, 58, 0.06);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.28);
}

.cv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 38px 40px 24px;
}

.lang-panel {
  display: none;
}

.lang-panel.active {
  display: block;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  line-height: 1.1;
}

h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
  font-weight: 600;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

.contact-list li {
  line-height: 1.5;
}

.contact-list span {
  font-weight: 700;
}

.portrait-wrap {
  flex-shrink: 0;
  width: 180px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), #e8f0ff);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.14);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block {
  margin-top: 30px;
}

.block h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
  color: var(--primary);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.block p,
.block li {
  color: #2b3240;
  line-height: 1.7;
  font-size: 0.97rem;
}

.block ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.job {
  margin-top: 18px;
}

.job + .job {
  margin-top: 28px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.job-header h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.job-header span,
.role,
.float-right {
  color: var(--muted);
  font-weight: 600;
}

.role {
  margin: 8px 0 10px;
}

.float-right {
  float: right;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 14px 36px;
  }

  .cv-card {
    padding: 20px 18px 18px;
    border-radius: 18px;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portrait-wrap {
    width: 140px;
    height: 180px;
  }

  .job-header {
    flex-direction: column;
  }
}
