/* Palette and typography inspired by The Hong Kong Polytechnic University (PolyU):
   PolyU red #A02337, greys #454545 / #58595B / #717171, light background #F4F4F4,
   Roboto for text, Playfair Display for headings. */

@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(fonts/roboto-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(fonts/roboto-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(fonts/roboto-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(fonts/roboto-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(fonts/roboto-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(fonts/roboto-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url(fonts/playfair-display-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url(fonts/playfair-display-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --red: #a02337;
  --red-dark: #7f1b2c;
  --red-bright: #c80f2e;
  --text: #454545;
  --text-strong: #2b2b2b;
  --muted: #717171;
  --grey: #58595b;
  --line: #e2e2e2;
  --bg-alt: #f4f4f4;
  --white: #fff;
  --max: 1080px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Roboto", "Segoe UI", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.topbar { height: 6px; background: var(--red); }
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--text-strong); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--red); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--grey); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--red); text-decoration: none; }
.lang { display: flex; border: 1px solid var(--red); border-radius: 2px; overflow: hidden; }
.lang a, .lang span { padding: 3px 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lang span { background: var(--red); color: var(--white); }
.lang a { color: var(--red); }
.lang a:hover { background: #f8e9ec; text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 80px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; color: var(--text-strong);
  font-size: clamp(40px, 7vw, 64px); line-height: 1.1; margin: 0 0 18px;
}
.hero .role { font-size: clamp(19px, 2.6vw, 24px); color: var(--grey); margin: 0 0 22px; max-width: 760px; line-height: 1.45; }
.hero .lead { max-width: 720px; margin: 0 0 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 36px; padding: 0; list-style: none; font-size: 15px; color: var(--grey); }
.facts li { padding-left: 14px; border-left: 3px solid var(--red); line-height: 1.3; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 26px; font-weight: 500; font-size: 16px;
  border: 2px solid var(--red); border-radius: 2px; transition: background .15s, color .15s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); text-decoration: none; }
.btn-outline { color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: var(--white); text-decoration: none; }

/* Sections */
section { padding: 76px 0; }
section.alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--serif); font-weight: 700; color: var(--text-strong);
  font-size: clamp(28px, 4vw, 36px); line-height: 1.2; margin: 0 0 40px;
}
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin-top: 14px; }
.about p { max-width: 820px; margin: 0 0 16px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 26px 28px; }
section:not(.alt) .card { background: var(--white); }
.card h3 { margin: 0 0 12px; font-size: 19px; color: var(--text-strong); font-weight: 700; }
.card p { margin: 0 0 10px; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 4px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.tags li { font-size: 13px; padding: 3px 10px; background: var(--bg-alt); color: var(--grey); border-radius: 2px; margin: 0; }
section.alt .tags li { background: #ececec; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* Timeline (experience, education) */
.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.item { position: relative; padding: 0 0 40px 32px; }
.item:last-child { padding-bottom: 0; }
.item::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px;
  background: var(--white); border: 3px solid var(--red); border-radius: 50%;
}
.item .period { font-size: 14px; font-weight: 500; color: var(--red); letter-spacing: .03em; }
.item h3 { margin: 4px 0 2px; font-size: 20px; color: var(--text-strong); }
.item .org { color: var(--grey); font-weight: 500; margin-bottom: 10px; }
.item ul { margin: 0; padding-left: 18px; max-width: 820px; }
.item li { margin: 4px 0; }
.item p { margin: 6px 0; max-width: 820px; }
.highlight { display: inline-block; background: var(--red); color: var(--white); font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; }

/* Contacts */
.contacts { background: var(--red); color: var(--white); }
.contacts .section-title { color: var(--white); }
.contacts .section-title::after { background: var(--white); }
.contacts p { max-width: 640px; margin: 0 0 28px; opacity: .95; }
.contact-list { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-list a {
  display: inline-flex; flex-direction: column; min-width: 220px; padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, .55); color: var(--white); border-radius: 2px;
}
.contact-list a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.contact-list small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.contact-list strong { font-size: 18px; font-weight: 500; }

.footer { padding: 24px 0; font-size: 14px; color: var(--muted); background: var(--white); }

/* Mobile */
@media (max-width: 820px) {
  .nav > a { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 56px; }
  section { padding: 56px 0; }
  .card { padding: 22px; }
}
@media print {
  .header, .topbar, .buttons { display: none; }
  section, .hero { padding: 24px 0; }
  .contacts { background: none; color: var(--text); }
  .contacts .section-title, .contact-list a { color: var(--text); border-color: var(--line); }
}
