:root {
  color-scheme: light;
  --teacher-bg: #f2f5f8;
  --teacher-surface: rgba(255, 255, 255, 0.76);
  --teacher-surface-solid: #ffffff;
  --teacher-ink: #18222c;
  --teacher-muted: #66717c;
  --teacher-faint: #89939c;
  --teacher-blue: #176ca4;
  --teacher-blue-dark: #0c517f;
  --teacher-blue-soft: #e1f0fa;
  --teacher-red: #c33b48;
  --teacher-line: rgba(24, 34, 44, 0.12);
  --teacher-shadow: 0 24px 80px rgba(37, 59, 76, 0.12), 0 2px 12px rgba(37, 59, 76, 0.06);
  --teacher-radius: 28px;
  --teacher-content: 1180px;
  --teacher-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--teacher-bg); color: var(--teacher-ink); font: 100%/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: radial-gradient(circle at 10% 8%, rgba(196, 224, 242, .68), transparent 28rem), radial-gradient(circle at 92% 22%, rgba(202, 218, 233, .48), transparent 34rem), var(--teacher-bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote { margin: 0; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(23, 108, 164, .35); outline-offset: 4px; }

.teacher-skip-link { position: fixed; z-index: 200; top: 1rem; left: 1rem; padding: .7rem 1rem; border-radius: 999px; color: white; background: var(--teacher-ink); transform: translateY(-180%); }
.teacher-skip-link:focus { transform: translateY(0); }
.teacher-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(24, 34, 44, .08); background: rgba(242, 245, 248, .76); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); }
.teacher-header-inner { width: min(calc(100% - 2.5rem), var(--teacher-content)); min-height: 68px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.teacher-brand { display: flex; align-items: center; gap: .72rem; font-weight: 740; letter-spacing: -.025em; }
.teacher-monogram { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--teacher-blue), var(--teacher-blue-dark)); box-shadow: 0 8px 20px rgba(23, 108, 164, .24); font-size: .78rem; letter-spacing: .03em; }
.teacher-nav { display: flex; align-items: center; gap: .25rem; }
.teacher-nav a { min-height: 40px; padding: 0 .78rem; display: inline-flex; align-items: center; border-radius: 999px; color: var(--teacher-muted); font-size: .84rem; font-weight: 650; transition: color 160ms ease, background 160ms ease, transform 100ms ease; }
.teacher-nav a:hover { color: var(--teacher-ink); background: rgba(255, 255, 255, .74); }
.teacher-nav a:active { transform: scale(.96); }
.teacher-nav .teacher-nav-contact { margin-left: .3rem; color: white; background: var(--teacher-ink); }
.teacher-nav .teacher-nav-contact:hover { color: white; background: var(--teacher-blue-dark); }

.teacher-page { width: min(calc(100% - 2.5rem), var(--teacher-content)); margin: auto; }
.teacher-hero { min-height: min(820px, calc(100vh - 68px)); min-height: min(820px, calc(100dvh - 68px)); padding: clamp(3.5rem, 8vw, 7rem) 0; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.teacher-eyebrow { display: block; color: var(--teacher-blue); font-size: .72rem; font-weight: 780; letter-spacing: .105em; line-height: 1.35; text-transform: uppercase; }
.teacher-hero h1 { margin: .28em 0 .28em; font-size: clamp(3.8rem, 7vw, 6.7rem); font-weight: 730; letter-spacing: -.067em; line-height: .9; }
.teacher-lead { max-width: 42rem; color: var(--teacher-muted); font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.6; }
.teacher-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.teacher-button { min-height: 48px; padding: .76rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-size: .92rem; font-weight: 700; transition: transform 100ms ease-out, box-shadow 180ms ease, background 180ms ease; }
.teacher-button:hover { transform: translateY(-1px); }
.teacher-button:active { transform: scale(.97); }
.teacher-button-primary { color: white; background: var(--teacher-blue); box-shadow: 0 10px 28px rgba(23, 108, 164, .22); }
.teacher-button-primary:hover { background: var(--teacher-blue-dark); box-shadow: 0 14px 32px rgba(23, 108, 164, .27); }
.teacher-button-secondary { border-color: var(--teacher-line); background: rgba(255, 255, 255, .68); }
.teacher-portrait-wrap { position: relative; width: min(100%, 510px); justify-self: end; padding: 14px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 42px; background: rgba(255, 255, 255, .55); box-shadow: var(--teacher-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.teacher-portrait-glow { position: absolute; z-index: -1; inset: 12% -12% -10% 14%; border-radius: 50%; background: rgba(23, 108, 164, .23); filter: blur(52px); }
.teacher-portrait { width: 100%; aspect-ratio: 743 / 762; object-fit: cover; border-radius: 31px; }
.teacher-portrait-note { position: absolute; right: -1.2rem; bottom: 2rem; padding: .82rem 1rem; display: grid; border: 1px solid rgba(255, 255, 255, .84); border-radius: 17px; background: rgba(255, 255, 255, .82); box-shadow: 0 16px 34px rgba(24, 34, 44, .14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.teacher-portrait-note span { color: var(--teacher-faint); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.teacher-portrait-note strong { margin-top: .1rem; font-size: 1rem; }

.teacher-facts { margin-bottom: clamp(6rem, 12vw, 10rem); padding: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--teacher-radius); background: rgba(255, 255, 255, .48); box-shadow: 0 16px 48px rgba(37, 59, 76, .08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.teacher-facts article { min-height: 118px; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 18px; background: rgba(255, 255, 255, .62); }
.teacher-facts strong { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.05em; }
.teacher-facts span { margin-top: .38rem; color: var(--teacher-muted); font-size: .76rem; }

.teacher-section { padding: clamp(4.5rem, 9vw, 8rem) 0; border-top: 1px solid var(--teacher-line); scroll-margin-top: 70px; }
.teacher-section-intro { max-width: 760px; }
.teacher-section-intro h2 { margin-top: .35rem; font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 720; letter-spacing: -.055em; line-height: 1; }
.teacher-section-intro-wide { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.teacher-section-intro-wide > p { max-width: 31rem; color: var(--teacher-muted); }
.teacher-about-grid { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: 1fr .9fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.teacher-prose { display: grid; gap: 1.2rem; color: var(--teacher-muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.teacher-about blockquote { padding-left: 1.5rem; border-left: 3px solid var(--teacher-red); font-size: clamp(1.45rem, 2.8vw, 2.2rem); font-weight: 630; letter-spacing: -.035em; line-height: 1.25; }

.teacher-path-grid { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.teacher-info-card { padding: clamp(1.5rem, 4vw, 2.3rem); border: 1px solid var(--teacher-line); border-radius: var(--teacher-radius); background: var(--teacher-surface); box-shadow: 0 12px 36px rgba(37, 59, 76, .07); }
.teacher-card-index { color: var(--teacher-blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.teacher-info-card h3 { margin: .75rem 0 1.5rem; font-size: 1.65rem; letter-spacing: -.04em; }
.teacher-info-card ul { margin: 0; padding: 0; display: grid; gap: 1rem; list-style: none; }
.teacher-info-card li { padding-top: 1rem; border-top: 1px solid var(--teacher-line); }
.teacher-info-card li:first-child { padding-top: 0; border-top: 0; }
.teacher-info-card strong, .teacher-info-card span { display: block; }
.teacher-info-card strong { font-size: .92rem; }
.teacher-info-card span { margin-top: .2rem; color: var(--teacher-muted); font-size: .79rem; }

.teacher-project-grid { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: 1.08fr .96fr .96fr; gap: .8rem; }
.teacher-project-card { min-height: 380px; padding: clamp(1.5rem, 3.4vw, 2.2rem); display: flex; flex-direction: column; border: 1px solid var(--teacher-line); border-radius: var(--teacher-radius); background: var(--teacher-surface); box-shadow: 0 12px 36px rgba(37, 59, 76, .07); transition: transform 180ms var(--teacher-ease), box-shadow 180ms ease, border-color 180ms ease; }
a.teacher-project-card:hover { transform: translateY(-4px); border-color: rgba(23, 108, 164, .28); box-shadow: var(--teacher-shadow); }
.teacher-project-primary { color: white; border-color: transparent; background: linear-gradient(145deg, #176ca4, #0d4b74); box-shadow: 0 22px 60px rgba(13, 75, 116, .22); }
.teacher-project-type { color: var(--teacher-blue); font-size: .7rem; font-weight: 770; letter-spacing: .08em; text-transform: uppercase; }
.teacher-project-primary .teacher-project-type { color: #bfe4fb; }
.teacher-project-card h3 { margin: auto 0 .65rem; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.04; letter-spacing: -.045em; }
.teacher-project-card p { color: var(--teacher-muted); font-size: .86rem; }
.teacher-project-primary p { color: rgba(255, 255, 255, .72); }
.teacher-project-link { margin-top: 1.7rem; font-size: .84rem; font-weight: 720; }
.teacher-project-pending { background: rgba(231, 236, 240, .68); }
.teacher-project-pending .teacher-project-link { color: var(--teacher-faint); }

.teacher-awards { margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0; list-style: none; }
.teacher-awards li { padding: 1.25rem 0; display: grid; grid-template-columns: 64px 1fr; gap: 1rem; border-top: 1px solid var(--teacher-line); }
.teacher-awards li:last-child { border-bottom: 1px solid var(--teacher-line); }
.teacher-awards span { color: var(--teacher-blue); font-size: .72rem; font-weight: 800; }
.teacher-awards p { max-width: 62rem; font-size: clamp(1rem, 1.7vw, 1.2rem); }

.teacher-publication-group, .teacher-publication-more { margin-top: 3rem; border: 1px solid var(--teacher-line); border-radius: var(--teacher-radius); background: var(--teacher-surface); box-shadow: 0 12px 36px rgba(37, 59, 76, .06); }
.teacher-publication-heading, .teacher-publication-more summary { min-height: 92px; padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.teacher-publication-heading h3, .teacher-publication-more summary strong { font-size: 1.2rem; letter-spacing: -.025em; }
.teacher-publication-heading > span, .teacher-publication-more summary small { color: var(--teacher-faint); font-size: .74rem; }
.teacher-publication-more summary span:first-child { display: grid; }
.teacher-publication-more summary { cursor: pointer; list-style: none; }
.teacher-publication-more summary::-webkit-details-marker { display: none; }
.teacher-details-action { color: var(--teacher-blue); font-size: .8rem; font-weight: 720; }
.teacher-publication-more[open] .teacher-details-action { font-size: 0; }
.teacher-publication-more[open] .teacher-details-action::after { content: "Скрыть список"; font-size: .8rem; }
.teacher-publication-list { margin: 0; padding: 0; list-style: none; counter-reset: publications; }
.teacher-publication-list li { min-height: 82px; padding: 1rem 1.4rem 1rem 4.2rem; position: relative; display: flex; align-items: center; border-top: 1px solid var(--teacher-line); color: var(--teacher-muted); font-size: .84rem; counter-increment: publications; }
.teacher-publication-list li::before { content: counter(publications, decimal-leading-zero); position: absolute; left: 1.4rem; color: var(--teacher-blue); font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.teacher-publication-list-secondary { border-top: 1px solid var(--teacher-line); }
.teacher-publication-more { margin-top: .8rem; }

.teacher-contact-section { margin: clamp(5rem, 10vw, 9rem) 0; padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; align-items: flex-start; border-radius: 34px; color: white; background: linear-gradient(145deg, #1b2934, #0d4b74); box-shadow: var(--teacher-shadow); }
.teacher-contact-section .teacher-eyebrow { color: #a9d8f5; }
.teacher-contact-section h2 { max-width: 850px; margin: .45rem 0 2rem; font-size: clamp(2.3rem, 5vw, 4.8rem); letter-spacing: -.055em; line-height: 1; }
.teacher-contact-section .teacher-button-primary { color: var(--teacher-ink); background: white; box-shadow: none; }

.teacher-footer { width: min(calc(100% - 2.5rem), var(--teacher-content)); min-height: 124px; margin: auto; padding: 2.2rem 0 calc(2.2rem + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--teacher-line); color: var(--teacher-muted); font-size: .8rem; }
.teacher-footer div { display: grid; gap: .2rem; }
.teacher-footer strong { color: var(--teacher-ink); font-size: .92rem; }
.teacher-footer a { color: var(--teacher-blue); font-weight: 700; }

.teacher-error { width: min(calc(100% - 2.5rem), 760px); min-height: calc(100dvh - 192px); margin: auto; padding: clamp(5rem, 14vw, 10rem) 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.teacher-error h1 { margin: .4rem 0 1rem; font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -.06em; line-height: .95; }
.teacher-error p { max-width: 38rem; color: var(--teacher-muted); font-size: 1.08rem; }
.teacher-error .teacher-button { margin-top: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  .teacher-hero-copy, .teacher-portrait-wrap, .teacher-facts { animation: teacher-materialize 560ms var(--teacher-ease) both; }
  .teacher-portrait-wrap { animation-delay: 80ms; }
  .teacher-facts { animation-delay: 130ms; }
  @keyframes teacher-materialize { from { opacity: 0; transform: translateY(15px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .teacher-header { background: var(--teacher-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .teacher-portrait-wrap, .teacher-portrait-note, .teacher-facts, .teacher-facts article, .teacher-info-card, .teacher-project-card, .teacher-publication-group, .teacher-publication-more { background: var(--teacher-surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --teacher-line: rgba(24, 34, 44, .38); --teacher-muted: #3e4852; }
  .teacher-button-secondary, .teacher-info-card, .teacher-project-card, .teacher-publication-group, .teacher-publication-more { border-width: 2px; }
}

@media (max-width: 920px) {
  .teacher-hero { min-height: auto; grid-template-columns: 1fr; }
  .teacher-portrait-wrap { width: min(100%, 610px); justify-self: start; }
  .teacher-facts { grid-template-columns: repeat(2, 1fr); }
  .teacher-about-grid, .teacher-path-grid { grid-template-columns: 1fr; }
  .teacher-section-intro-wide { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .teacher-project-grid { grid-template-columns: 1fr 1fr; }
  .teacher-project-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .teacher-header-inner, .teacher-page, .teacher-footer { width: min(calc(100% - 1.5rem), var(--teacher-content)); }
  .teacher-header-inner { min-height: 60px; }
  .teacher-brand > span:last-child { display: none; }
  .teacher-nav { flex: 1; justify-content: flex-end; }
  .teacher-nav a { display: none; }
  .teacher-nav .teacher-nav-contact { display: inline-flex; }
  .teacher-hero { padding: 3.5rem 0 5rem; gap: 3rem; }
  .teacher-hero h1 { font-size: clamp(3.45rem, 17vw, 5.1rem); }
  .teacher-hero-actions { align-items: stretch; }
  .teacher-hero-actions .teacher-button { flex: 1; }
  .teacher-portrait-wrap { padding: 9px; border-radius: 30px; }
  .teacher-portrait { border-radius: 22px; }
  .teacher-portrait-note { right: .5rem; bottom: 1.2rem; }
  .teacher-facts { grid-template-columns: 1fr 1fr; padding: .6rem; }
  .teacher-facts article { min-height: 104px; padding: .8rem; }
  .teacher-section { padding: 4.5rem 0; }
  .teacher-project-grid { grid-template-columns: 1fr; }
  .teacher-project-card:first-child { grid-column: auto; }
  .teacher-project-card { min-height: 320px; }
  .teacher-awards li { grid-template-columns: 40px 1fr; }
  .teacher-publication-heading, .teacher-publication-more summary { min-height: 78px; padding: 1rem; }
  .teacher-publication-list li { padding: 1rem 1rem 1rem 3.4rem; }
  .teacher-publication-list li::before { left: 1rem; }
  .teacher-contact-section { margin: 4rem 0; padding: 2rem 1.25rem; border-radius: 26px; }
  .teacher-contact-section .teacher-button { width: 100%; }
  .teacher-footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

@media (max-width: 430px) {
  .teacher-facts { grid-template-columns: 1fr; }
  .teacher-lead { font-size: 1rem; }
  .teacher-section-intro h2 { font-size: 2.55rem; }
  .teacher-publication-heading > span { display: none; }
}
