/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt). Manrope is a variable font. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-latin.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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-latin-ext.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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-500.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-ext-500.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-mono-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* Academic Portal — public styles. Dark laboratory theme (approved design). */

:root {
  --bg: #070E13;
  --bg-2: #0B161D;
  --panel: #0E1A21;
  --panel-2: #12232C;
  --footer: #050A0E;
  --line: #1E3340;
  --line-2: #2F4A57;
  --cyan: #4FE3D1;
  --cyan-dim: #2F7F78;
  --amber: #FFB04A;
  --text: #E6F0F2;
  --text-2: #C5D4D8;
  --muted: #8FA6AE;
  --ink: #06161A;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__title { display: block; font-weight: 800; font-size: 17px; line-height: 1.1; }
.brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.lang { display: flex; gap: 6px; }
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}
.lang a:hover { border-color: var(--cyan); color: var(--cyan); }
.lang a[aria-current="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.nav a { padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute;
  width: 60%;
  height: 70%;
  pointer-events: none;
  animation: pulse 7s ease-in-out infinite;
}
.hero__glow--a { left: -10%; top: -10%; background: radial-gradient(closest-side, rgba(79, 227, 209, .28), transparent); }
.hero__glow--b { right: -12%; bottom: -6%; background: radial-gradient(closest-side, rgba(255, 176, 74, .24), transparent); animation-delay: -3.5s; }
.hero__bg, .banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) clamp(20px, 4vw, 48px) clamp(56px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(32px, 4.9vw, 70px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.c-cyan { color: var(--cyan); }
.c-amber { color: var(--amber); }

.portrait {
  position: relative;
  width: min(100%, clamp(260px, 36vw, 460px));
  aspect-ratio: 1 / 1;
  margin-top: clamp(40px, 5vw, 72px);
}
.portrait__ring { position: absolute; border-radius: 50%; }
.portrait__ring--outer { inset: 0; border: 1px solid var(--line); animation: spinr 40s linear infinite; }
.portrait__ring--inner { inset: 6%; border: 1px dashed var(--cyan-dim); animation: spin 26s linear infinite; }
.dot { position: absolute; border-radius: 50%; }
.dot--amber { top: -6px; left: 50%; margin-left: -6px; width: 12px; height: 12px; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.dot--cyan { bottom: 14%; right: 5%; width: 8px; height: 8px; background: var(--cyan); }
.dot--glow { top: -5px; left: 50%; margin-left: -5px; width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.portrait__img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 60% 15%;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 90px rgba(79, 227, 209, .28);
}
.hero__name { margin-top: 32px; font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.01em; }
.hero__role { margin-top: 10px; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.chip--accent { border-color: var(--cyan-dim); color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding-top: clamp(56px, 7vw, 100px); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section__title { font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.015em; }
.section__note { max-width: 420px; color: var(--muted); font-size: 16px; }
.link-accent { font-weight: 700; font-size: 14px; color: var(--cyan); }
.link-accent--amber { color: var(--amber); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 18px;
  margin-top: 34px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { border-color: var(--cyan); background: var(--panel-2); transform: translateY(-4px); }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__num { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--cyan); }
.card__title { display: block; font-weight: 700; font-size: 22px; line-height: 1.2; }
.card__text { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 32px;
}
.col { padding-top: 22px; border-top: 2px solid var(--cyan); }
.col--amber { border-top-color: var(--amber); }
.col__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.col__title { font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); }
.empty { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.empty-state {
  padding: 40px 28px;
  background: var(--panel);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Inner page banner ---------- */
.banner { position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.banner__inner { position: relative; padding-block: clamp(36px, 4.5vw, 64px); }
.crumb { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.crumb a { color: var(--cyan); }
.banner__title { margin-top: 16px; font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em; }
.banner__text { margin-top: 14px; max-width: 640px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--text-2); }

/* ---------- About ---------- */
.profile { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 4vw, 64px); }
.profile__photo { position: relative; flex: 0 1 400px; width: 400px; max-width: calc(100% - 18px); }
.profile__photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px dashed var(--cyan-dim);
  border-radius: 24px;
}
.profile__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% 15%;
  border: 2px solid var(--cyan);
  border-radius: 24px;
}
.profile__body { flex: 1 1 480px; min-width: 0; }
.profile__name { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.facts { margin-top: 28px; }
.facts__row { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  flex: 0 0 160px;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.facts dd { flex: 1 1 280px; font-size: 17px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 40px; }
.contact__info { flex: 0 1 380px; min-width: 260px; display: flex; flex-direction: column; gap: 20px; }
.contact__row { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact__label { margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form {
  flex: 1 1 520px;
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.form__fields { display: flex; flex-direction: column; gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__pair { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text);
  font: 500 15px var(--font);
}
.field input { height: 48px; }
.field textarea { padding-block: 14px; resize: vertical; }
.form__fields:disabled { opacity: .55; }
.form__note--top { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line, #d9d9d9); border-radius: 6px; }
.form__note { margin-top: 20px; font-size: 14.5px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--ink);
  font: 700 16px var(--font);
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.cta .btn { margin-top: 28px; }
button:disabled { cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 8vw, 110px); background: var(--footer); border-top: 1px solid var(--line); }
.cta { padding-top: clamp(48px, 6vw, 80px); }
.cta__label { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.cta__title { margin-top: 18px; max-width: 780px; font-weight: 800; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -.02em; }
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 28px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer__bar--ruled { margin-top: 52px; border-top: 1px solid var(--line); }

/* ---------- Error and notice pages ---------- */
.error-page { padding-block: clamp(72px, 10vw, 140px); text-align: center; }
.error-page__code { font-family: var(--mono); font-size: clamp(48px, 8vw, 96px); color: var(--cyan); line-height: 1; }
.error-page__title { margin-top: 20px; font-weight: 800; font-size: clamp(28px, 4vw, 44px); }
.error-page__text { margin: 14px auto 0; max-width: 520px; color: var(--text-2); }
.error-page .btn { margin-top: 32px; }
.plain { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.plain__card { max-width: 520px; padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.plain__line { margin-bottom: 12px; font-size: 18px; }
.plain__card .btn { margin-top: 16px; }

/* ---------- Animation ---------- */
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .85; } 100% { transform: translateY(-1100px); opacity: 0; } }
@keyframes rise-sm { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .85; } 100% { transform: translateY(-340px); opacity: 0; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(16px, -24px) rotate(40deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinr { to { transform: rotate(-360deg); } }
@keyframes flow { to { stroke-dashoffset: -240; } }
@keyframes pulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: .75; transform: scale(1.18); } }
@keyframes flick { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.9, 1.18); } 60% { transform: scale(1.07, .92); } }

.b { animation-name: rise; animation-iteration-count: infinite; animation-timing-function: linear; }
.b--sm { animation-name: rise-sm; }
.hx { animation-name: drift; animation-iteration-count: infinite; animation-timing-function: ease-in-out; transform-box: fill-box; transform-origin: center; }
.hx-spin { animation: spin 80s linear infinite; transform-box: fill-box; transform-origin: center; }
.flow { stroke-dasharray: 8 16; animation: flow 6s linear infinite; }
.flame { animation: flick 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: reduce) {
  .b, .hx, .hx-spin, .flow, .flame, .hero__glow, .portrait__ring { animation: none; }
  .card { transition: none; }
}

/* ---------- Content pages ---------- */
.card__meta { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.card h2.card__title { margin: 0; }
.prose p { margin: 0 0 .8em; }
.prose p:last-child { margin-bottom: 0; }
.prose--page { font-size: 17px; line-height: 1.75; }
.prose--page p { margin-bottom: 1.1em; }
.container--narrow { max-width: 760px; }
.section__foot { margin-top: 36px; }
.note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--amber); background: rgba(255, 176, 74, .08); font-size: 14px; line-height: 1.5; border-radius: 0 8px 8px 0; color: var(--text); }
.group-title { margin: 44px 0 0; font-size: 20px; font-weight: 800; color: var(--cyan); }
.group-title:first-child { margin-top: 0; }
.card__action { color: var(--cyan); font-weight: 700; }

/* ---------- Contact form feedback, profile ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__ok, .form__error { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; }
.form__ok { background: rgba(79, 227, 209, .1); border: 1px solid rgba(79, 227, 209, .45); color: #B6F5EC; }
.form__error { background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .45); color: #FFB4B4; }
.field__error { margin: 6px 0 0; color: #FFB4B4; font-size: 13.5px; }
.field--error input, .field--error textarea { border-color: rgba(255, 90, 90, .7); }
.profile__sub { margin: 28px 0 8px; font-size: 18px; font-weight: 800; color: var(--cyan); }

/* ---------- Home: latest items ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-list a:hover .mini-list__title { color: var(--cyan); }
.mini-list__meta { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.mini-list__title { font-weight: 700; line-height: 1.4; }
