/* ============================================================
   Igor Stukalov — Personal digital platform
   Editorial / business design system
   Light paper base · graphite ink · oxblood accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f3ed;
  --paper-tint: #efeadf;
  --paper-deep: #e7e0d2;
  --card: #ffffff;

  --ink: #1b1917;
  --ink-2: #43403a;
  --muted: #7c766b;

  --line: #dcd5c8;
  --line-soft: #e7e1d5;

  --accent: #a3311f;
  --accent-deep: #7e2314;
  --accent-soft: #f3e3dd;

  --footer-bg: #171511;
  --footer-ink: #ece7dd;
  --footer-muted: #9a9284;

  --serif: Georgia, "Times New Roman", Times, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --container: 1320px;
  --section-pad: clamp(48px, 7vw, 96px);
  --radius: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* sticky header height (77px) + breathing room for in-page anchors */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, figure, dl, dd, dt { margin: 0; overflow-wrap: break-word; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tint { background: var(--paper-tint); }
.section--tint::before,
.section--tint::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.section--tint::before { top: 0; }
.section--tint::after { bottom: 0; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow__rule {
  width: 34px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--lead { max-width: 880px; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 18px;
}

.section-lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Source links ---------- */
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}
.source-link__arrow { font-size: 11px; color: var(--accent); transition: transform .2s; }
.source-link:hover { color: var(--ink); }
.source-link:hover .source-link__arrow { transform: translate(2px, -2px); }

/* ============================================================
   Page head (inner pages)
   ============================================================ */
.page-head { padding-block: clamp(28px, 4.5vw, 64px) clamp(12px, 2vw, 28px); }
.page-head__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: 14px;
  max-width: 900px;
}
.page-head__lead {
  margin-top: 14px;
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65;
  color: var(--ink-2);
}
.about--after-head,
.section--after-head { padding-top: clamp(8px, 1.5vw, 20px); }
.about__motto {
  margin-top: 0;
  margin-bottom: clamp(16px, 2.5vw, 28px);
  max-width: 720px;
}

/* ============================================================
   Now («Сейчас»)
   ============================================================ */
.now__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.now__item {
  position: relative;
  min-width: 0;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
}
.now__header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; }
.now__title { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; line-height: 1.3; min-width: 0; }
.now__status {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.now__text { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.now__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}
.now__link-arrow { color: var(--accent); transition: transform .2s; }
.now__link:hover { color: var(--accent); }
.now__link:hover .now__link-arrow { transform: translateX(4px); }

/* ============================================================
   CTA panel
   ============================================================ */
.cta__inner {
  background: var(--ink);
  color: #fff;
  padding: clamp(34px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute;
  top: 0; left: -40px;
  width: 200px; height: 100%;
  background: linear-gradient(120deg, rgba(163, 49, 31, .55), transparent 70%);
  transform: skewX(-12deg);
  pointer-events: none;
}
.cta__title {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.cta__text { position: relative; margin-top: 14px; max-width: 560px; color: rgba(255, 255, 255, .74); line-height: 1.7; }
.cta__inner .btn { position: relative; margin-top: 26px; }

/* ============================================================
   Block footers (more links)
   ============================================================ */
.projects__more { margin-top: clamp(32px, 4vw, 44px); display: flex; justify-content: center; }
.publications__more { margin-top: 32px; }
.publications__more .btn { width: auto; }

.pub-group { margin-top: clamp(28px, 3.5vw, 40px); }
.pub-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.pub-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.project__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 0 8px 30px rgba(27, 25, 23, .06);
}

.header__inner {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 0;
}
.header__logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}
.header__logo:hover .header__logo-img { opacity: .8; }
.header__logo-img { transition: opacity .2s; }

.header__nav-list { display: flex; align-items: center; gap: 4px; }

.header__nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-2);
  border-radius: 2px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.header__nav-link:hover { color: var(--ink); background: var(--paper-deep); }
.header__nav-link--active { color: var(--ink); }
.header__nav-link--active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--accent);
}
.header__nav-link--accent {
  margin-left: 10px;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.header__nav-link--accent:hover { background: var(--accent); color: #fff; }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.header__burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity .25s;
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 21, 17, .4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s;
}
.mobile-menu[aria-hidden="false"] { pointer-events: auto; opacity: 1; }
.mobile-menu[aria-hidden="false"]::before { opacity: 1; }

.mobile-menu__nav {
  position: relative;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 28px 28px 40px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-menu[aria-hidden="false"] .mobile-menu__nav { transform: translateX(0); }

.mobile-menu__brand { padding: 8px 4px 28px; }
.mobile-menu__brand-img { display: block; height: 40px; width: 90px; object-fit: contain; object-position: left center; }

.mobile-menu__list { display: flex; flex-direction: column; gap: 4px; }

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__link::after { content: "→"; color: var(--muted); font-size: 16px; }
.mobile-menu__link--accent { color: var(--accent); }
.mobile-menu__link:hover, .mobile-menu__link:focus-visible { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: 0; }

.hero__grid {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  line-height: .98;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.hero__tagline {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
  max-width: 22ch;
}

.hero__description {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}

.hero__roles {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__role {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.hero__role dt {
  flex: none;
  min-width: 150px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hero__role dd { font-size: 15.5px; color: var(--ink-2); }

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Hero figure */
.hero__figure {
  position: relative;
  z-index: 0;
  margin: 0;
}
.hero__figure::before {
  content: "";
  position: absolute;
  top: 14px; left: -14px;
  width: 100%; height: 100%;
  border: 1px solid var(--accent);
  opacity: .4;
  z-index: -1;
}
.hero__figure-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  box-shadow: 0 30px 60px -30px rgba(27, 25, 23, .35);
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 6.4;
  transition: transform 1.2s ease;
}
.hero__figure:hover .hero__photo { transform: scale(1.02); }

.hero__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.hero__caption-text { font-family: var(--mono); font-size: 11.5px; }
.hero__caption-link {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  flex: none;
  transition: background .2s, color .2s, border-color .2s;
}
.hero__caption-link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================================================
   Divider strip
   ============================================================ */
.divider {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-tint);
  overflow: hidden;
  padding: 14px 0;
}
.divider__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 100%;
}
.divider__item { color: var(--ink-2); }
.divider__dot { color: var(--accent); }
.divider__dot--gap { margin-inline: 14px; }

/* ============================================================
   Facts
   ============================================================ */
.facts {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-top: clamp(56px, 7vw, 88px);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.fact {
  padding: 26px 20px 26px 0;
  border-bottom: 1px solid var(--line);
}
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact__value {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.01em;
}
.fact__label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__text {
  margin-top: 26px;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
}
.about__text p + p { margin-top: 18px; }
.about__text p:first-of-type {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}

.about__aside { padding-top: 6px; border-top: 2px solid var(--ink); }
.about__timeline-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  padding-top: 18px;
}

.timeline { margin-top: 26px; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 16px 0 16px 20px;
  border-left: 1px solid var(--line);
  margin-left: 2px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--accent);
}
.timeline__item:last-child::before { background: var(--accent); }
.timeline__year {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.timeline__event { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ============================================================
   Directions
   ============================================================ */
.directions__list { border-top: 2px solid var(--ink); }

.direction {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.direction__num {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--line);
  transition: color .2s;
}
.direction--linked:hover .direction__num { color: var(--accent); }
.direction--linked:hover .direction__title { color: var(--accent); }

.direction__body { max-width: 62ch; }
.direction__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  transition: color .2s;
}
.direction__text {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.direction__link {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
  font-size: 14px;
  font-weight: 600;
}
.direction__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.direction__link-arrow { color: var(--accent); transition: transform .2s; }
.direction__link:hover .direction__link-arrow { color: #fff; transform: translateX(3px); }

/* ============================================================
   Projects
   ============================================================ */
.projects__list { border-top: 2px solid var(--ink); }

.project {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}

.project__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.project__num {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--accent);
}
.project__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.project__body { max-width: 68ch; }
.project__title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
}
.project__text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-2);
}

.project__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.project__topics li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  padding: 6px 12px;
  background: var(--paper-deep);
  border-radius: 2px;
  color: var(--ink-2);
}

.project__subblock {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--paper-tint);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.project__subblock-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.project__subblock-text { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }

.project__channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 14px;
}
.project__channels-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
.project__channel:hover { border-color: var(--accent); }
.project__channel-arrow { color: var(--accent); font-size: 12px; }

.project__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ============================================================
   Public role (НО «ОПОРА РОССИИ»)
   ============================================================ */
.public-role__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.public-role__figure {
  position: sticky;
  top: 104px;
  margin: 0;
}
.public-role__figure::before {
  content: "";
  position: absolute;
  top: 14px; left: -14px;
  width: 100%; height: 100%;
  border: 1px solid var(--accent);
  z-index: 0;
}
.public-role__img {
  position: relative;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(27, 25, 23, .3);
}
.public-role__figure .hero__caption { z-index: 1; position: relative; }

.award-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 34px 36px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(23, 21, 17, .5);
}
.award-panel__year {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  padding-top: 4px;
}
.award-panel__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.award-panel__text { margin-top: 12px; font-size: 15px; color: var(--footer-muted); line-height: 1.65; }
.award-panel .source-link { color: var(--footer-muted); margin-top: 18px; }
.award-panel .source-link:hover { color: #fff; }
.award-panel .source-link__arrow { color: var(--accent); }

.events { margin-top: clamp(32px, 4vw, 48px); }
.event {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.event:last-child { border-bottom: 1px solid var(--line); }
.event__date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  padding-top: 3px;
}
.event__title { font-family: var(--serif); font-size: 18.5px; font-weight: 600; line-height: 1.3; }
.event__text { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.event .source-link { margin-top: 14px; }

/* ============================================================
   Publications
   ============================================================ */
.publications__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.pub-featured {
  padding: 0 0 0 26px;
  border-left: 3px solid var(--accent);
}
.pub-featured__source {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.pub-featured__title {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}
.pub-featured__title a { display: inline; }
.pub-featured__title a:hover { color: var(--accent); }
.pub-featured__arrow { color: var(--accent); margin-left: 6px; }
.pub-featured__annotation { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.pub-featured__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.pub-featured__divider { width: 40px; height: 1px; background: var(--line); }

.pub-list { border-top: 2px solid var(--ink); }
.pub-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s, background .2s;
}
.pub-item:hover { padding-left: 12px; background: linear-gradient(90deg, var(--paper-tint), transparent 70%); }
.pub-item__date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pub-item__body { display: flex; flex-direction: column; gap: 4px; }
.pub-item__title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.pub-item__source { font-size: 12.5px; color: var(--muted); }
.pub-item__arrow { color: var(--accent); font-size: 18px; transition: transform .2s; }
.pub-item:hover .pub-item__arrow { transform: translateX(4px); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: box-shadow .3s, transform .3s;
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery__item--medium { aspect-ratio: 4 / 3; }
.gallery__item--small { aspect-ratio: 3 / 2; }
.gallery__item:hover { box-shadow: 0 24px 50px -24px rgba(27, 25, 23, .4); transform: translateY(-2px); }

.gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, opacity .3s;
}
.gallery__item:hover .gallery__img { transform: scale(1.03); }

.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(23, 21, 17, .72));
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption { opacity: 1; transform: translateY(0); }

.gallery__zoom {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(23, 21, 17, .55);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
}
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; }

.gallery__item--hidden { display: none; }
.gallery__item--visible { display: block; animation: galleryIn .4s ease both; }
@keyframes galleryIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.gallery__footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.gallery__toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.gallery__toggle:hover { background: var(--ink); color: #fff; }
.gallery__toggle-arrow { color: var(--accent); transition: transform .3s; }
.gallery__toggle:hover .gallery__toggle-arrow { color: #fff; }
.gallery__toggle[aria-expanded="true"] .gallery__toggle-arrow { transform: rotate(180deg); }

/* ============================================================
   Contacts
   ============================================================ */
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contacts__text { margin-top: 20px; max-width: 44ch; font-size: 17px; color: var(--ink-2); }
.contacts__location {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__channels { display: flex; flex-direction: column; }
.contact-card {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.contact-card:first-child { border-top: 2px solid var(--ink); }
.contact-card__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-card__phone {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  transition: color .2s;
  overflow-wrap: anywhere;
}
.contact-card__phone:hover { color: var(--accent); }
.contact-card__link {
  display: flex;
  width: fit-content;
  align-items: center;
  margin: 10px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color .2s, border-color .2s;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-card__link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-top: clamp(56px, 7vw, 88px);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 48px;
}
.footer__brand-img { display: block; height: 52px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.footer__description {
  margin-top: 20px;
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--footer-muted);
}
.footer__nav-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--footer-muted);
  font-weight: 600;
}
.footer__nav ul, .footer__socials ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__socials a {
  font-size: 14px;
  color: var(--footer-ink);
  transition: color .2s;
}
.footer__nav a:hover, .footer__socials a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid #2e2a24;
  font-size: 13px;
  color: var(--footer-muted);
}

/* ============================================================
   Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.modal[aria-hidden="false"] { pointer-events: auto; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(23, 21, 17, .88); backdrop-filter: blur(4px); }
.modal__content {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(.97);
  transition: transform .25s;
}
.modal[aria-hidden="false"] .modal__content { transform: scale(1); }
.modal__img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #000;
}
.modal__caption { color: var(--footer-ink); font-size: 13.5px; text-align: center; }
.modal__close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--footer-ink);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  font-size: 15px;
  transition: background .2s;
}
.modal__close:hover { background: var(--accent); color: #fff; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.js .hero__content,
.js .hero__figure,
.js .section,
.js .page-head { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .hero__content,
.js .hero__figure,
.js .section.is-visible,
.js .page-head.is-visible { opacity: 1; transform: none; }
.js .hero__figure { transition-delay: .12s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__figure::before { left: -10px; }

  .about__grid,
  .public-role__grid,
  .publications__grid,
  .contacts__grid { grid-template-columns: 1fr; }

  .now__list { grid-template-columns: 1fr; }

  .public-role__figure { position: static; }

  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }

  .direction { grid-template-columns: 56px minmax(0, 1fr); }
  .direction__link { grid-column: 2; justify-self: start; }

  .project { grid-template-columns: 56px minmax(0, 1fr); }

  .event { grid-template-columns: 1fr; gap: 8px; }

  .award-panel { grid-template-columns: 1fr; gap: 16px; padding: 26px 24px; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --section-pad: clamp(40px, 10vw, 64px); --gutter: 16px; }

  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px 22px 0; }
  .fact + .fact { padding-left: 16px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 16px; }

  .gallery__grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__caption { opacity: 1; transform: none; }
  .gallery__zoom { opacity: 1; }

  .btn { width: 100%; }
  .hero__buttons { flex-wrap: wrap; gap: 10px; }
  .hero__buttons .btn { width: auto; flex: 1 1 auto; min-width: calc(50% - 6px); }

  .page-head__title { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .section-title { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }

  .direction__link { width: 100%; justify-content: center; }
  .project__top { flex-direction: row; align-items: center; gap: 12px; }
  .project { grid-template-columns: 1fr; }

  .timeline__item { grid-template-columns: 52px 1fr; gap: 12px; }

  .divider__track { justify-content: flex-start; animation: dividerScroll 26s linear infinite; }
  @keyframes dividerScroll { to { transform: translateX(-50%); } }
}

/* ---------- VK updates feed ---------- */
.updates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.update-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.update-card:hover { border-color: var(--line-strong, var(--line)); box-shadow: 0 10px 30px rgba(23, 21, 17, .08); }
.update-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-tint); border-bottom: 1px solid var(--line); }
.update-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.update-card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(23, 21, 17, .68);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.update-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.update-card__meta { display: flex; align-items: baseline; gap: 12px; }
.update-card__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.update-card__date { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.update-card__text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.update-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}
.update-card__link:hover { color: var(--accent); }
.update-card__link span { color: var(--accent); transition: transform .2s; }
.update-card__link:hover span { transform: translate(2px, -2px); }
.updates__more { margin-top: 24px; }
.updates__more .btn[hidden] { display: none; }
.updates--page .updates__grid { grid-template-columns: repeat(2, 1fr); }
.updates__empty {
  margin-top: 34px;
  padding: 32px;
  border: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .updates__grid { grid-template-columns: 1fr; }
  .updates--page .updates__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .js .hero__content, .js .hero__figure, .js .section { opacity: 1; transform: none; transition: none; }
}