/* Fonts: Literata and Figtree (SIL Open Font License) */
@font-face { font-family: 'Literata Variable'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/literata-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata Variable'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/literata-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree Variable'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/figtree-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree Variable'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/figtree-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree Variable'; font-style: italic; font-display: swap; font-weight: 200 900; src: url(fonts/figtree-latin-ext-wght-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree Variable'; font-style: italic; font-display: swap; font-weight: 200 900; src: url(fonts/figtree-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --crimson: #a9233e;        /* Faculty of Economic Sciences red, taken from the logo */
  --crimson-dark: #7f1a2f;
  --crimson-tint: #f8ebee;
  --ink: #1c1c1e;
  --muted: #5e5f66;
  --rule: #e1e2e6;
  --panel: #f6f6f8;
  --page: #eceef1;
  --sheet: #ffffff;
  --mark: #fff1c7;
  --serif: 'Literata Variable', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 1.03rem; line-height: 1.6;
}
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--crimson-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; border-radius: 2px; }

/* ---------- Page frame ---------- */
.sheet {
  max-width: 1140px; margin: 36px auto; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 6px; overflow: clip;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: 30px 44px 26px; border-bottom: 3px solid var(--crimson);
}
.name {
  display: block; margin: 0; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 500; font-size: 2.15rem; line-height: 1.1; letter-spacing: -0.015em;
}
.name:hover { color: var(--ink); text-decoration: none; }
.role { margin: 6px 0 0; color: var(--muted); font-size: 0.98rem; }
.logo { display: block; height: 66px; width: auto; }

.body { display: grid; grid-template-columns: 250px minmax(0, 1fr); }

/* ---------- Menu ---------- */
.side { background: var(--panel); border-right: 1px solid var(--rule); padding: 28px 0 36px; }
.menu-btn { display: none; }
.nav-group { margin: 0 0 24px; }
.nav-head {
  margin: 0 0 4px; padding: 0 24px;
  font-family: var(--serif); font-size: 1.04rem; font-weight: 600; color: var(--crimson);
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 6px 24px 6px 21px; border-left: 3px solid transparent;
  color: var(--ink); text-decoration: none; font-size: 0.98rem;
}
.nav a:hover { background: #ececf0; color: var(--ink); }
.nav a[aria-current] {
  background: var(--crimson-tint); border-left-color: var(--crimson);
  color: var(--crimson-dark); font-weight: 600;
}

/* ---------- Content ---------- */
.main { padding: 36px 52px 48px; min-width: 0; }
.view { scroll-margin-top: 100vh; }
.js .view { display: none; }
.js .view.is-active { display: block; }
.view + .view { margin-top: 64px; }
.js .view + .view { margin-top: 0; }

.crumb { margin: 0 0 2px; color: var(--muted); font-size: 0.95rem; }
h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 3.4vw, 2.2rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 22px;
}
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 14px; max-width: 72ch; }
.small { font-size: 0.9rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.ph { background: var(--mark); padding: 0 0.3em; border-radius: 3px; }
.note {
  max-width: none; margin: 0 0 24px; padding: 10px 14px; font-size: 0.9rem;
  background: var(--mark); border-left: 3px solid #d9a521;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; line-height: 1.45; }
table.narrow { max-width: 660px; }
th {
  text-align: left; font-weight: 600; font-size: 0.86rem; color: var(--muted); white-space: nowrap;
  padding: 0 14px 8px 0; border-bottom: 2px solid var(--ink);
}
td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:hover td { background: var(--panel); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-r { text-align: right !important; font-variant-numeric: tabular-nums; }
.col-n { width: 5.6rem; font-weight: 600; }
.col-date { width: 5rem; color: var(--muted); }
.files a { white-space: nowrap; }
.files a + a { margin-left: 0.9em; }
.kind { font-size: 0.78rem; color: var(--muted); margin-left: 0.25em; }
.sub td:first-child { padding-left: 1.4em; color: var(--muted); }
.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; }

/* ---------- About ---------- */
.profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }
.photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; width: 100%;
  display: grid; place-items: center; text-align: center; padding: 12px;
  background: var(--panel); border: 1.5px dashed var(--rule); border-radius: 4px;
  color: var(--muted); font-size: 0.86rem;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile p { font-size: 1.07rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 20px 0 24px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 5px;
  background: var(--crimson); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.btn:hover { background: var(--crimson-dark); color: #fff; }

/* ---------- Research ---------- */
.refs { list-style: none; margin: 0; padding: 0; }
.refs li { padding: 0 0 14px 1.6em; text-indent: -1.6em; max-width: 80ch; }
.project { border-left: 3px solid var(--crimson); padding: 2px 0 2px 18px; }
.project p { margin-bottom: 6px; }
.project .title { font-weight: 600; font-size: 1.05rem; }
.talks { list-style: none; margin: 0; padding: 0; }
.talks li {
  display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 4px 20px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.talks li:first-child { border-top: 2px solid var(--ink); }
.talks time { color: var(--muted); font-variant-numeric: tabular-nums; }
.talks strong { display: block; font-weight: 600; }
.talks span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Teaching ---------- */
.two-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  padding: 14px 44px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.86rem;
}

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .sheet { margin: 0; border: 0; border-radius: 0; }
  .top { padding: 18px 16px 16px; flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .logo { height: 42px; }
  .name { font-size: 1.7rem; }
  .body { display: block; }
  .side { border-right: 0; border-bottom: 1px solid var(--rule); padding: 0; }
  .menu-btn {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: transparent; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--ink);
  }
  .menu-btn::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--crimson); }
  .menu-btn[aria-expanded="true"]::after { content: "\2212"; }
  .js .nav { display: none; padding-bottom: 8px; }
  .js .nav.is-open { display: block; }
  .nav-head { padding: 0 16px; }
  .nav a { padding: 9px 16px 9px 13px; }
  .main { padding: 26px 16px 36px; }
  .profile { grid-template-columns: 1fr; gap: 22px; }
  .photo { max-width: 180px; }
  .two-lang { grid-template-columns: 1fr; }
  .talks li { grid-template-columns: 1fr; gap: 2px; }
  table { min-width: 580px; }
  table.narrow { min-width: 0; }
  .foot { padding: 14px 16px; }
}

.photo:has(img) { border: 0; padding: 0; }
