/* ===== LAYOUT ===== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  align-items: stretch;
  min-height: 100vh;
  max-width: 78rem;
  margin: 0 auto;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: var(--color-sidebar);
  color: var(--color-on-dark);
}
.sidebar-inner {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}
.sidebar-inner::-webkit-scrollbar { width: 6px; }
.sidebar-inner::-webkit-scrollbar-thumb {
  background: rgba(250, 250, 247, 0.2);
  border-radius: 3px;
}

.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center -50%;
  transform: scale(1.35) translateX(3%);
}

.sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.section-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
  margin-bottom: var(--space-3);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--fs-base);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: inherit;
}
.contact-link:hover { opacity: 0.7; }
.contact-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  fill: currentColor;
}
.news-item {
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.5;
}
.news-item + .news-item { margin-top: 0.4375rem; }
.news-date {
  font-size: inherit;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.news-item a { text-decoration: underline; }

/* ===== MAIN ===== */
.main {
  max-width: var(--content-max);
  padding: 0 3.75rem 4rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  background: var(--color-bg);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--color-black);
}
.top-nav a {
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.top-nav a:hover { opacity: 0.6; }

.hero { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); }
.hero h1 {
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero h1 .first-name { font-weight: 700; }
.subtitle {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-top: -0.25rem;
}
.bio {
  font-size: var(--fs-base);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin-top: var(--space-3);
  max-width: 50rem;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  scroll-margin-top: 6rem;
}
.content-section > .section-title {
  color: var(--color-text);
  border-color: var(--color-text);
}
.content-section + .content-section { margin-top: var(--space-7); }

.entry {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.entry-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.entry-meta,
.entry-year,
.entry-venue,
.entry-body {
  font-size: var(--fs-base);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.entry-meta strong { font-weight: 700; }
.entry-year { color: var(--color-text-soft); }
.entry-body { margin-top: 0.25rem; }

.content-section .entry {
  position: relative;
  padding-left: 2rem;
}
.content-section .entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--color-text);
  border-radius: 50%;
  background: var(--color-bg);
  z-index: 1;
}
.content-section .entry::after {
  content: '';
  position: absolute;
  left: calc(0.425rem - 1px);
  top: 1.15rem;
  bottom: calc(-1 * var(--space-6));
  width: 2px;
  background: var(--color-text);
  z-index: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  background: var(--color-text);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.badge:hover { background: var(--color-text-soft); }
.badge-tag { background: var(--color-text-soft); cursor: default; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  :root { --sidebar-width: 18rem; }
  .sidebar { padding: 2.5rem 1.75rem; }
  .main { padding: 0 2.5rem 3rem; }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-inner {
    padding: 2rem 1.5rem;
    align-items: center;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .photo { max-width: 16rem; }
  .sidebar-block { width: 100%; max-width: 24rem; }
  .main { padding: 0 1.5rem 3rem; }
  .top-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1rem 0 0.75rem;
  }
  .top-nav a { font-size: var(--fs-md); }
  .hero h1 { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: var(--fs-xl); }
  .subtitle { font-size: var(--fs-sm); }
  .bio, .entry-body, .entry-meta, .entry-year { font-size: var(--fs-sm); }
  .entry-title { font-size: var(--fs-md); }
  .section-title { font-size: var(--fs-lg); }
  .badge { font-size: var(--fs-xs); padding: 0.35rem 0.85rem; }
  .top-nav { gap: 1rem; }
  .top-nav a { font-size: var(--fs-sm); }
}
