/* =========================================================================
   Шовгенов Ислам Русланович — портфолио врача-исследователя
   Премиальная тёмная клиническая тема · glassmorphism · teal/cyan акценты
   ========================================================================= */

:root {
  /* фон */
  --bg:        #070b11;
  --bg-1:      #0a1018;
  --bg-2:      #0d141e;
  --bg-soft:   #101a26;

  /* стекло / линии */
  --glass:     rgba(20, 32, 45, 0.55);
  --glass-2:   rgba(24, 38, 53, 0.40);
  --stroke:    rgba(120, 170, 190, 0.16);
  --stroke-2:  rgba(120, 170, 190, 0.28);

  /* текст */
  --text:      #e8f0f6;
  --muted:     #9fb3c2;
  --muted-2:   #6e8496;

  /* акценты */
  --accent:    #2fe3cf;   /* бирюзовый */
  --accent-2:  #38b6ff;   /* cyan */
  --accent-3:  #5fe0a8;   /* мягкий медицинский зелёно-синий */
  --accent-ink:#04211f;
  --glow:      rgba(47, 227, 207, 0.55);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);

  --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* фоновое медицинское свечение + сетка монитора */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(47,227,207,.10), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(56,182,255,.08), transparent 55%),
    radial-gradient(700px 700px at 50% 110%, rgba(95,224,168,.06), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,170,190,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,190,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200; box-shadow: 0 0 12px var(--glow);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 17, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--stroke);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 34px; height: 21px; color: var(--accent); filter: drop-shadow(0 0 6px var(--glow)); }
.brand-text { font-size: 1.05rem; }
.brand-dot { color: var(--accent); }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  color: var(--muted); font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; position: relative;
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--text); background: var(--glass-2); }
.nav a.active { color: var(--accent); }

.header-cv { margin-left: 4px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 9px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: .96rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ico { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow); }

.btn-outline { border-color: var(--stroke-2); color: var(--text); background: var(--glass-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--glass-2); }

/* ---------------------------------------------------------------- glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  position: relative;
}

/* ---------------------------------------------------------------- HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(47,227,207,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,227,207,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%);
}
.hero-glow { position: absolute; z-index: 0; width: 620px; height: 620px; right: -80px; top: 4%;
  background: radial-gradient(circle, rgba(47,227,207,.16), transparent 60%); filter: blur(30px); }
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 12%; width: 100%; height: 180px; z-index: 0;
  color: rgba(47,227,207,.45); opacity: .5; }
.ecg-path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: ecg 6s linear infinite; filter: drop-shadow(0 0 6px var(--glow)); }
@keyframes ecg { to { stroke-dashoffset: -1600; } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 500; color: var(--accent-3);
  background: rgba(95,224,168,.08); border: 1px solid rgba(95,224,168,.25);
  padding: 7px 15px; border-radius: 999px; letter-spacing: .2px; line-height: 1.3;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(95,224,168,.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,224,168,.5);} 70%{ box-shadow: 0 0 0 10px rgba(95,224,168,0);} 100%{ box-shadow: 0 0 0 0 rgba(95,224,168,0);} }

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.04; font-weight: 800;
  letter-spacing: -1.5px; margin: 20px 0 16px;
  background: linear-gradient(180deg, #ffffff 30%, #b9d4dd); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero-role { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); font-weight: 500; }
.hero-role .accent { color: var(--accent); }
.hero-role .sep { color: var(--muted-2); margin: 0 4px; }
.hero-sub { color: var(--muted); max-width: 46ch; margin: 18px 0 30px; font-size: 1.02rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-stats { list-style: none; display: grid; grid-template-columns: repeat(4, auto); gap: 28px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); font-family: var(--mono); letter-spacing: -1px; }
.hero-stats span { font-size: .8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .6px; }

/* avatar */
.hero-visual { display: flex; justify-content: center; }
.avatar-frame { position: relative; width: min(400px, 80vw); aspect-ratio: 1; }
.avatar-frame picture, .avatar-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-frame img {
  border: 1px solid var(--stroke-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 0 60px rgba(0,0,0,.5);
}
.avatar-ring { position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%, transparent 60%, var(--accent-2), transparent 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 14s linear infinite; opacity: .9;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  position: absolute; font-family: var(--mono); font-size: .76rem; color: var(--text);
  background: rgba(10,18,26,.82); border: 1px solid var(--stroke-2); border-radius: 10px;
  padding: 6px 11px; backdrop-filter: blur(6px); box-shadow: 0 8px 24px -10px rgba(0,0,0,.7);
  animation: float 5s ease-in-out infinite;
}
.chip-tl { top: 6%; left: -6%; color: var(--accent-3); }
.chip-bl { bottom: 12%; left: -10%; color: var(--accent); animation-delay: .8s; }
.chip-br { bottom: 4%; right: -6%; color: var(--accent-2); animation-delay: 1.6s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--stroke-2); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--accent); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0%{ opacity: 0; top: 8px;} 40%{ opacity: 1;} 80%{ opacity: 0; top: 22px;} 100%{ opacity: 0;} }

/* ---------------------------------------------------------------- sections */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(13,20,30,.5), rgba(7,11,17,0)); }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-index { font-family: var(--mono); font-size: .82rem; color: var(--accent); letter-spacing: 2px; display: block; margin-bottom: 8px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.section-desc { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.about-lead p { color: var(--muted); font-size: 1.08rem; margin-bottom: 18px; }
.about-lead strong { color: var(--text); font-weight: 600; }

.info-card { padding: 28px; }
.info-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); margin-bottom: 16px; }
.info-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--stroke); }
.info-card dl div:last-child { border-bottom: 0; }
.info-card dt { color: var(--muted-2); font-size: .9rem; }
.info-card dd { color: var(--text); font-size: .92rem; text-align: right; font-weight: 500; }

/* ---------------------------------------------------------------- cards grid */
.cards-grid { display: grid; gap: 18px; }
.expertise-grid, .writing-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.software-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.bioeq-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card { padding: 26px 24px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); border-color: var(--stroke-2); box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: rgba(47,227,207,.10); border: 1px solid rgba(47,227,207,.22);
  font-size: 1.2rem; color: var(--accent); margin-bottom: 16px; font-family: var(--mono); font-weight: 700;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -.3px; }
.card p { color: var(--muted); font-size: .94rem; }

.card-sm { padding: 22px; border-radius: var(--radius-sm); transition: border-color .3s, transform .3s; }
.card-sm:hover { border-color: var(--stroke-2); transform: translateY(-3px); }
.card-sm h3 { font-size: 1rem; color: var(--accent-3); margin-bottom: 6px; }
.card-sm p { color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------------------------- research */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.role-card { padding: 26px; margin-bottom: 18px; }
.role-card:last-child { margin-bottom: 0; }
.role-lead { border-color: rgba(47,227,207,.35); background: linear-gradient(135deg, rgba(47,227,207,.10), var(--glass)); }
.role-badge { display: inline-block; font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-ink); background: var(--accent); padding: 4px 11px; border-radius: 999px; font-weight: 700; margin-bottom: 12px; }
.role-badge.muted { background: var(--glass-2); color: var(--muted); border: 1px solid var(--stroke); }
.role-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.role-card p { color: var(--muted); font-size: .96rem; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.feature-list li { display: flex; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--stroke); }
.feature-list li:last-child { border-bottom: 0; }
.fl-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(47,227,207,.1); color: var(--accent); font-weight: 700; }
.feature-list b { display: block; font-size: 1rem; font-weight: 600; }
.feature-list span { color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------------------------- bioeq */
.bioeq-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 32px; align-items: start; }

.param-panel { padding: 28px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.panel-title { font-weight: 700; letter-spacing: -.3px; }
.panel-tag { font-family: var(--mono); font-size: .74rem; color: var(--accent); border: 1px solid var(--stroke-2); padding: 3px 9px; border-radius: 999px; }
.ci-scale { display: flex; align-items: center; gap: 12px; }
.ci-bound { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.ci-track { position: relative; flex: 1; height: 38px; border-radius: 10px; background: rgba(255,80,80,.08); border: 1px solid rgba(255,120,120,.18); overflow: hidden; }
.ci-accept { position: absolute; left: 12%; right: 12%; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(47,227,207,.16), rgba(56,182,255,.16)); border-left: 1px dashed var(--accent); border-right: 1px dashed var(--accent); }
.ci-bar { position: absolute; top: 50%; left: 24%; right: 30%; height: 4px; transform: translateY(-50%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.ci-point { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%,-50%); background: var(--text); border-radius: 50%; box-shadow: 0 0 12px var(--glow); }
.panel-note { color: var(--muted); font-size: .86rem; margin: 14px 0 18px; }
.formula { font-family: var(--mono); font-size: .92rem; color: var(--accent-3); background: rgba(0,0,0,.3); border: 1px solid var(--stroke); border-radius: 10px; padding: 12px 14px; text-align: center; margin-bottom: 18px; }
.param-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.param-chips span { font-family: var(--mono); font-size: .76rem; color: var(--muted); border: 1px solid var(--stroke); border-radius: 8px; padding: 5px 10px; transition: color .2s, border-color .2s; }
.param-chips span:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- software */
.project { padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.project:hover { transform: translateY(-5px); border-color: var(--stroke-2); box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.project-top h3 { font-size: 1.12rem; letter-spacing: -.3px; }
.tag { flex: none; font-family: var(--mono); font-size: .72rem; color: var(--accent); border: 1px solid rgba(47,227,207,.3); border-radius: 999px; padding: 4px 10px; }
.project p { color: var(--muted); font-size: .95rem; flex: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); background: rgba(255,255,255,.03); border: 1px solid var(--stroke); border-radius: 7px; padding: 4px 9px; }
.software-note { text-align: center; color: var(--muted-2); font-size: .92rem; margin-top: 26px; }

/* ---------------------------------------------------------------- publications */
.pub { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 30px; }
.pub-side { display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--stroke); }
.pub-type { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.pub-year { font-family: var(--mono); font-size: 2.4rem; font-weight: 800; color: var(--text); letter-spacing: -2px; }
.pub-body h3 { font-size: 1.22rem; line-height: 1.35; margin-bottom: 12px; letter-spacing: -.3px; }
.pub-authors { color: var(--text); font-size: .96rem; margin-bottom: 4px; }
.pub-authors strong { color: var(--accent-3); }
.pub-meta { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.pub-doi { display: inline-block; font-family: var(--mono); font-size: .85rem; color: var(--accent); border: 1px solid var(--stroke-2); border-radius: 999px; padding: 8px 16px; transition: background .25s, color .25s, border-color .25s; }
.pub-doi:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------------------------------------------------------------- timeline */
.timeline { list-style: none; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); }
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-1); border: 3px solid var(--accent); box-shadow: 0 0 10px var(--glow); }
.timeline li:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--mono); font-size: .82rem; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: .5px; }
.tl-card { padding: 20px 24px; }
.tl-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tl-card p { color: var(--muted); font-size: .94rem; }
.tl-now { border-color: rgba(47,227,207,.35); background: linear-gradient(135deg, rgba(47,227,207,.08), var(--glass)); }

/* ---------------------------------------------------------------- contact */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 48px; align-items: center; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(47,227,207,.16), transparent 60%); filter: blur(20px); pointer-events: none; }
.contact-copy { position: relative; z-index: 1; }
.contact-copy p { color: var(--muted); margin-top: 14px; max-width: 42ch; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.contact-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .98rem; color: var(--text); border: 1px solid var(--stroke); border-radius: 12px; padding: 14px 18px; transition: border-color .25s, color .25s, background .25s; }
.contact-link svg { width: 20px; height: 20px; color: var(--accent); }
.contact-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(47,227,207,.06); }
.contact-note { color: var(--muted-2); font-size: .85rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--stroke); padding: 40px 0; background: rgba(7,11,17,.6); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 36px; height: 22px; }
.footer-brand strong { display: block; font-size: .98rem; }
.footer-brand span { display: block; color: var(--muted-2); font-size: .82rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { color: var(--muted-2); font-size: .86rem; }

/* ---------------------------------------------------------------- reveal anim */
/* контент скрыт только когда JS активен (.js); без JS всё видно сразу */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ecg-path, .avatar-ring, .chip, .status-dot, .scroll-cue span { animation: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .hero-stats li { align-items: center; }
  .about-grid, .research-grid, .bioeq-layout, .contact-card { grid-template-columns: 1fr; }
  .contact-card { padding: 32px; }
}

@media (max-width: 760px) {
  .nav, .header-cv { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0; padding: 16px 24px 24px;
    background: rgba(7,11,17,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke); margin-left: 0;
  }
  .nav.open a { padding: 12px 14px; font-size: 1rem; }
  .section { padding: 72px 0; }
  .pub { grid-template-columns: 1fr; gap: 16px; }
  .pub-side { flex-direction: row; align-items: center; gap: 14px; border-right: 0; border-bottom: 1px solid var(--stroke); padding-bottom: 12px; }
  .pub-year { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .hero-actions .btn { flex: 1; }
  .chip-tl { left: 0; } .chip-bl { left: -2%; } .chip-br { right: 0; }
}
