:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #000000;
}

* {
  box-sizing: border-box;
}

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

.part {
  text-decoration: underline;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* language logic */

.lang-en {
  display: none;
}

#lang-toggle:checked ~ .page .lang-ru {
  display: none;
}

#lang-toggle:checked ~ .page .lang-en {
  display: inline;
}

.early {
  color: var(--muted);
}

/* header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.02em;
}

.role {
  margin-top: 4px;
  font-size: 16px;
  color: var(--muted);
}

/* switch */

.lang-switch {
  font-size: 12px;
  color: var(--muted);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.switch-track {
  width: 42px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  background: #fff;
}

.switch-thumb {
  width: 16px;
  height: 16px;
  background: var(--text);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.2s ease;
}

#lang-toggle:checked + .page .switch-thumb {
  transform: translateX(20px);
}

/* blocks */

.block {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: block;
}

.highlight {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  display: block;
}

/* .block.highlight .label,
.block.highlight .value {
  display: block;
} */

h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* grids */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.block.highlight .grid-3 > div {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

/* .grid-3 > div {
  display: grid;
  grid-template-rows: auto auto;
  margin-bottom: 10px;
} */

.label {
  font-size: 18px;
  /* color: var(--muted); */
}


.value {
  font-size: 20px;
  font-weight: 600;
}

/* jobs */

.job {
  margin-top: 24px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.job-title {
  font-weight: 600;
}

.job-period {
  font-size: 12px;
  color: var(--muted);
  visibility: hidden;
}

ul {
  margin: 12px 0 0;
  padding-left: 18px;
  list-style-type: square;
}

/* tags */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  color: var(--muted);
}

/* footer */

.footer {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
