:root {
  --ink: #1c2430;
  --text: #2a3442;
  --muted: #7d8b9a;
  --accent: #3d6bff;
  --line: #ced4e0;
  --paper: #fff;
  --link: #2436c7;
  --card: #fbfcfe;
  --news: #f9f9f9;
  --side: 320px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(186, 210, 255, 0.55), transparent 30%),
    radial-gradient(circle at 78% 92%, rgba(176, 204, 255, 0.4), transparent 34%),
    linear-gradient(180deg, #f5f8fc 0%, #e6eef8 52%, #f7f9fc 100%);
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

button, a { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { text-decoration: none; }

.app {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  overflow: hidden;
}

.glass {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(90, 120, 170, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.side {
  width: var(--side);
  flex: 0 0 auto;
  height: calc(100% - 32px);
  margin: 16px 0 16px 16px;
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(90, 120, 170, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.side-top { display: flex; flex-direction: column; align-items: center; width: 100%; }

.name {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.portrait {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  margin: 0 0 18px;
  border-radius: 50%;
  overflow: hidden;
  user-select: none;
}

.portrait img,
.portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portrait img {
  object-fit: cover;
  object-position: center 16%;
  visibility: visible;
  transform: scale(1.55);
  transform-origin: center 18%;
}

.portrait canvas,
.portrait-handle { display: none; }

.portrait-handle {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
  margin-top: -8px;
  z-index: 2;
}

.portrait-handle::before {
  content: "";
  position: absolute;
  top: 7.5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}

.portrait-handle span {
  position: absolute;
  top: 3px;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--ink);
}

.portrait-handle:hover span,
.portrait-handle:focus-visible span { transform: scale(1.2); }

.portrait-handle:focus-visible { outline: none; }

.socials { display: flex; gap: 18px; }

.socials a {
  display: flex;
  color: #3b82f6;
}

.socials a:hover { transform: translateY(-1px); }

.socials svg { width: 18px; height: 18px; fill: currentColor; }

.role {
  margin: 10px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

.logo-msu { height: 16px; width: auto; display: block; }

.logo-hgu { height: 32px; width: auto; display: block; }

.mail { margin: 14px 0 0; font-size: 14px; }

.mail a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mail svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.mail a:hover { text-decoration: underline; text-underline-offset: 3px; }

.nav, .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.nav button, .mobile-nav button {
  display: inline-flex;
  align-items: center;
  color: #555;
  font-size: 15px;
  font-weight: 500;
}

.nav .tile, .mobile-nav .tile {
  display: inline-flex;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #314056;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.nav .tile svg, .mobile-nav .tile svg { width: 15px; height: 15px; }

.nav button:hover, .mobile-nav button:hover { color: var(--ink); }

.nav button.is-active, .mobile-nav button.is-active {
  color: var(--ink);
  font-weight: 650;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.copyright {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar, .mobile-nav { display: none; }

main {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.view {
  width: 100%;
  padding: 72px 28px 72px 20px;
}

h1 {
  max-width: none;
  margin: 0 0 8px;
  font-family: Newsreader, Georgia, serif;
  font-size: 40px;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 em { font-style: italic; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 6px;
}

.stats div {
  padding: 12px 10px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.stats strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.mark {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 -0.14em 0 rgba(61, 107, 255, 0.22);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.08em;
}

.ornament {
  font-style: normal;
  font-size: 0.72em;
}

.touch {
  position: fixed;
  z-index: 40;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(90, 120, 170, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.touch:hover { transform: translateY(-1px); }

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

.intro {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  max-width: none;
  margin-bottom: 8px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(90, 120, 170, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.intro-copy { flex: 1; min-width: 0; }

.hero-look {
  width: clamp(210px, 24vw, 300px);
  aspect-ratio: 460 / 532;
  flex: 0 0 auto;
  display: block;
  opacity: 0;
  filter: drop-shadow(0 16px 22px rgba(70, 90, 130, 0.16));
}

.hero-look.is-ready { opacity: 1; }

.intro p, .cv-lead {
  max-width: none;
  margin: 0 0 16px;
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.7;
}

.intro strong { font-weight: 650; color: var(--ink); }

.intro a {
  color: var(--accent);
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro a:hover { color: #244ed4; }

.cv-place a,
.cv-place a:hover {
  color: inherit;
  text-decoration: none;
}

.cv-place a:has(.logo-hgu) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 8px;
}

.skills article {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(90, 120, 170, 0.1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.skills h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills h3 svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(206, 212, 224, 0.95);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 28px 0 14px;
}

.section-head h2 { margin: 0; }

.carousel-nav { display: flex; gap: 8px; }

.carousel-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(90, 120, 170, 0.1);
  color: var(--ink);
  cursor: pointer;
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.feed {
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.feed-card {
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  align-items: flex-start;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(90, 120, 170, 0.1);
  color: inherit;
  text-decoration: none;
}

.feed-card:hover { transform: translateY(-1px); }

.feed-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 30%;
}

.feed-meta {
  margin: 14px 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feed-title {
  margin: 6px 16px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feed-text {
  margin: 6px 16px 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.cv-place:has(.logo-msu) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cv-place .logo-msu { height: 22px; }

.cv-place .logo-hgu {
  display: inline-block;
  height: 22px;
  margin-right: 8px;
  vertical-align: -6px;
}

.cv-skills { margin: 0; padding: 10px 18px 16px; }

.cv-skills p {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px dotted var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.cv-skills span {
  flex: 0 0 120px;
  color: var(--muted);
  font-size: 13px;
}

.lede {
  max-width: 36em;
  margin: 0;
  color: #3a3a3a;
  font-size: 17px;
}

.wordfield {
  max-width: 680px;
  margin: 22px 0 22px;
  padding: 4px 0 8px;
}

.word {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #1a1a1a;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.facts {
  max-width: 640px;
  margin: 36px 0 0;
  padding: 6px 18px 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px rgba(100, 110, 170, 0.1);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.facts div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px dotted var(--line);
}

.facts dt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}

.facts a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line-b { padding-left: 10%; }
.line-c { padding-left: 18%; }

.tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(120, 130, 190, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.tile svg { width: 20px; height: 20px; display: block; }

.tile-blue,
.tile-green,
.tile-pink,
.tile-violet,
.tile-amber {
  background: rgba(255, 255, 255, 0.72);
  color: #314056;
}

.glyph {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.glyph svg { width: 24px; height: 24px; }

.glyph i {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dcca8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
  padding: 0;
  list-style: none;
}

.tags li, .badge {
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.aside-note {
  color: var(--muted);
  font-size: 15px;
}

.panel {
  margin: 0 0 8px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(90, 120, 170, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.panel > .pub,
.panel > .talk,
.panel > .project,
.panel > .cv-row {
  padding: 16px 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.panel > .pub:first-child,
.panel > .talk:first-child,
.panel > .project:first-child,
.panel > .cv-row:first-of-type {
  border-top: 0;
}

.panel.project-grid { row-gap: 0; }

h2 {
  margin: 28px 0 14px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pub {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 24px 0;
  border-top: 1px dotted var(--line);
}

.pub:first-child {
  border-top: 0;
  padding-top: 0;
}

.thumb { display: none; }

.thumb-hidden {
  width: 260px;
  height: 146px;
  flex: 0 0 auto;
  background: var(--card);
}

.thumb-a { background: linear-gradient(135deg, #f7f1e8 0%, #d9e4e2 55%, #fbfcfe 100%); }
.thumb-b { background: linear-gradient(160deg, #ece7f4 0%, #f6f3ee 50%, #d5ddd9 100%); }
.thumb-c { background: linear-gradient(180deg, #fbfcfe 0%, #e7eeec 100%); }
.thumb-d { background: linear-gradient(135deg, #efe6da 0%, #fbfcfe 60%, #c9d5d3 100%); }

.aside-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.pub-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.venue {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.venue:has(.venue-logo) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.venue-logo {
  height: 26px;
  width: auto;
  flex: none;
  object-fit: contain;
}

.cv-place .venue-logo {
  display: inline-block;
  margin-right: 8px;
  vertical-align: -4px;
}

.pub h3, .project h3, .cv-role {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.authors, .project p, .cv-place {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.me { color: var(--ink); font-weight: 500; }

.chips { display: flex; gap: 16px; margin-top: 2px; }

.chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.chips a:hover { color: var(--ink); }

.filters {
  display: flex;
  gap: 14px;
  margin: -6px 0 22px;
}

.filters button {
  padding: 4px 0;
  font-size: 14px;
  font-weight: 350;
  color: var(--muted);
}

.filters button.is-active {
  color: var(--ink);
  font-weight: 550;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 36px;
}

.project {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid #eee;
}

.visual { display: none; }

.project[hidden] { display: none; }

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project h3 { font-size: 16px; font-weight: 550; }

.project-meta { display: flex; align-items: center; gap: 10px; }

.year { font-size: 14px; color: var(--muted); }

.visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.visual::before, .visual::after {
  content: "";
  position: absolute;
}

.visual-a::before {
  width: 58%;
  height: 70%;
  left: 12%;
  top: 15%;
  background: #d9e4e2;
}
.visual-a::after {
  width: 34%;
  height: 42%;
  right: 10%;
  bottom: 14%;
  background: #111;
}

.visual-b::before {
  width: 46%;
  height: 46%;
  left: 18%;
  top: 22%;
  border-radius: 50%;
  background: #e7d7c3;
}
.visual-b::after {
  width: 70%;
  height: 1px;
  left: 15%;
  top: 62%;
  background: #111;
}

.visual-c::before {
  inset: 18% 16%;
  border: 1px solid #111;
}
.visual-c::after {
  width: 28%;
  height: 48%;
  right: 22%;
  top: 26%;
  background: #c9d5d3;
}

.visual-d::before {
  width: 42%;
  height: 64%;
  left: 14%;
  top: 18%;
  background: #efe6da;
}
.visual-d::after {
  width: 30%;
  height: 30%;
  right: 16%;
  bottom: 18%;
  border-radius: 50%;
  background: #7f8f91;
}

.cv-lead { color: var(--muted); font-size: 15px; }

.cv-group { margin-top: 16px; max-width: none; }

.cv-group h3 {
  margin: 0;
  padding: 16px 18px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-row {
  display: flex;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px dotted var(--line);
}

.cv-when {
  flex: 0 0 120px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.cv-role { font-size: 16px; }

.talk {
  padding: 18px 0;
  border-top: 1px dotted var(--line);
}

.talk:first-child { border-top: 0; padding-top: 0; }

.talk h3 { font-size: 16px; margin: 0; }

.talk .authors { margin-top: 6px; }

.section-gap { margin-top: 36px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #bbb;
  border: 2px solid var(--paper);
  border-radius: 10px;
}

@media (max-width: 1280px) {
  :root { --side: 280px; }
}

@media (max-width: 1024px) {
  .app { flex-direction: column; }
  .side { display: none; }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #ececec;
  }
  .topbar .name { font-size: 22px; }
  .menu-btn {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-nav {
    display: flex;
    padding: 8px 16px 16px;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid #ececec;
  }
  .mobile-nav[hidden] { display: none; }
  .view { padding: 12px 20px 64px; }
  h1 { font-size: 32px; }
  .intro { align-items: flex-start; }
  .hero-look { width: min(220px, 46vw); margin-top: 4px; }
  .side { margin: 0; height: auto; border-radius: 0; }
  .topbar { padding-right: 156px; }
  .touch { top: 12px; right: 12px; padding: 8px 12px; font-size: 13px; }
  .project { width: 100%; }
}

@media (max-width: 640px) {
  .word { font-size: 30px; }
  .line-b { padding-left: 8%; }
  .line-c { padding-left: 4%; }
}

@media (max-width: 768px) {
  .intro { flex-direction: column; align-items: stretch; }
  .hero-look { order: -1; width: min(230px, 68vw); margin: 0 auto 4px; }
  .pub { flex-direction: column; gap: 12px; }
  .thumb { width: 100%; height: 160px; }
  .cv-row { flex-direction: column; gap: 4px; }
  .skills { grid-template-columns: 1fr; }
  .feed-card { flex-basis: 82%; }
  .cv-skills p { flex-direction: column; gap: 2px; }
  .cv-skills span { flex-basis: auto; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
