:root {
  --bg: #22252a;
  --surface: #2b2f36;
  --surface-2: #333843;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --ink: #eceef1;
  --ink-dim: #c6cad1;
  --muted: #949ba6;
  --accent: #5e9bff;
  --after: #37d39b;
  --radius: 14px;
}

* { box-sizing: border-box; }

body.cv-page {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.cv-back {
  position: fixed; top: 20px; left: 20px; z-index: 20;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 18px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.cv-back:hover { background: var(--surface-2); transform: translateY(-1px); }

.lang-switch {
  position: fixed; top: 20px; right: 20px; z-index: 20;
  display: flex; gap: 2px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 40px; padding: 3px;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 30px; cursor: pointer; transition: color .15s, background .15s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #10131a; }

/* ---------- layout ---------- */
.cv { max-width: 860px; margin: 0 auto; padding: 96px 24px 96px; }

.cv-head { margin-bottom: 40px; }
.cv-head h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -0.03em; }
.cv-head .cv-aka { color: var(--muted); font-size: 15px; }
.cv-head .cv-role { margin: 12px 0 0; font-size: 18px; color: var(--accent); font-weight: 600; }
.cv-head .cv-loc { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.cv-contacts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; }
.cv-contacts a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-dim); text-decoration: none;
  border: 1px solid var(--line); border-radius: 40px; padding: 6px 13px;
  transition: border-color .2s, color .2s;
}
.cv-contacts a:hover { border-color: var(--line-strong); color: var(--ink); }
.cv-contacts i { color: var(--accent); }

.cv-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; }
.cv-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--accent);
  border-radius: 40px; padding: 8px 16px;
  transition: background .2s, transform .2s;
}
.cv-dl-btn:hover { background: #0a63b5; transform: translateY(-1px); }
.cv-dl-alt { font-size: 12px; color: var(--muted); text-decoration: none; }
.cv-dl-alt:hover { color: var(--ink-dim); text-decoration: underline; }

.cv section { margin-bottom: 40px; }
.cv h2 {
  font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.cv p { margin: 0 0 12px; color: var(--ink-dim); }

.cv ul.cols {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.cv ul.cols li { position: relative; padding-left: 20px; color: var(--ink-dim); font-size: 14px; }
.cv ul.cols li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}

/* products */
.cv-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cv-product {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; transition: border-color .2s, transform .2s, background .2s;
}
.cv-product:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--surface-2); }
.cv-product b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.cv-product .cv-product-role { font-size: 12px; color: var(--muted); }
.cv-product .cv-product-res { font-size: 13px; color: var(--after); margin-top: 10px; }

.cv-more { margin-top: 14px; font-size: 13px; }
.cv-more a { color: var(--accent); text-decoration: none; }
.cv-more a:hover { text-decoration: underline; }

/* experience */
.cv-job { margin-bottom: 22px; }
.cv-job h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cv-job .cv-job-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cv-job p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }

.cv ul.plain { list-style: none; margin: 6px 0 0; padding: 0; }
.cv ul.plain li {
  position: relative; padding-left: 18px; margin-bottom: 7px;
  font-size: 14px; color: var(--ink-dim); line-height: 1.5;
}
.cv ul.plain li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 2px; background: var(--accent);
}
.cv ul.plain a { color: var(--accent); text-decoration: none; }
.cv ul.plain a:hover { text-decoration: underline; }

.cv-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cv-langs li {
  font-size: 13px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 40px; padding: 6px 14px;
}
.cv-langs li b { color: var(--ink); font-weight: 600; }

.cv-note {
  font-size: 12.5px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 12px 14px;
}

@media (max-width: 640px) {
  .cv { padding: 84px 16px 72px; }
  .cv ul.cols, .cv-products { grid-template-columns: 1fr; }
}
