/* Unchanged base CSS copied from activities/index.html, 26 November 2026. */

  /* ===== Reset & Base ===== */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
  body { min-height: 100vh; background-color: #F5F1EB; color: #343F4B; font-family: 'Manrope', sans-serif; font-weight: 400; overflow-x: hidden; position: relative; }
  button { font: inherit; background: none; border: none; }
  ::selection { background: rgba(74,124,111,0.22); }
  a { color: inherit; }

  /* ===== Background blobs ===== */
  .blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .blobs__shape { position: absolute; }
  .blobs__shape--tl { width: 55vw; height: 65vh; top: -12vh; left: -8vw; background: #7A9E8C; opacity: 0.34; filter: blur(92px); border-radius: 70% 30% 60% 40% / 50% 60% 40% 50%; }
  .blobs__shape--br { width: 58vw; height: 66vh; bottom: -14vh; right: -8vw; background: #6B7F94; opacity: 0.26; filter: blur(95px); border-radius: 40% 60% 35% 65% / 60% 40% 65% 35%; }
  .blobs__shape--center { width: 35vw; height: 35vw; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #A0B5A8; opacity: 0.18; filter: blur(120px); border-radius: 50%; }

  /* ===== Header & Footer ===== */
  .header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 2.5rem; background: rgba(245,241,235,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .header__name { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; color: #2B3A4A; white-space: nowrap; }
  .header__desc { font-size: 0.9rem; color: #6B7F94; text-align: center; }
  .header__home { font-size: 0.88rem; font-weight: 500; padding: 0.5rem 1.75rem; border: 1.5px solid #343F4B; border-radius: 100px; color: #343F4B; text-decoration: none; white-space: nowrap; transition: all .25s; }
  .header__home:hover { background: #343F4B; color: #F5F1EB; }
  .footer { position: relative; z-index: 1; text-align: center; padding: 2rem 2.5rem 2.5rem; }
  .footer__email { font-size: 0.85rem; color: #9AAAB8; text-decoration: none; transition: color 0.2s ease; }
  .footer__email:hover { color: #343F4B; }

  .wrap { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 0 2rem; }
  /* static sections align with the tab panel's inner content (one column) */
  .wrap--inset { padding-left: 5.25rem; padding-right: 5.25rem; }

  /* ===== Intro & headings ===== */
  .intro-lead { font-family: 'Playfair Display', serif; font-size: 1.08rem; line-height: 1.7; color: #4A5A66; margin-bottom: 2.75rem; }
  .section-h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 700; color: #2B3A4A; line-height: 1.2; margin-bottom: 2rem; }
  .lead-p { font-family: 'Manrope', sans-serif; font-size: 0.95rem; color: #343F4B; line-height: 1.75; margin-bottom: 1.5rem; }
  .acts-link { color: #4A7C6F; text-decoration: underline; text-decoration-color: rgba(74,124,111,0.35); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
  .acts-link:hover { color: #3A6A5F; text-decoration-color: rgba(74,124,111,0.75); }

  /* ===== Research interests (editorial 01/02/03) ===== */
  .interests-ed { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.25rem 2.5rem; margin-bottom: 2.25rem; }
  .interest-ed__line { height: 2px; width: 34px; background: #7A9E8C; opacity: 0.75; margin-bottom: 1.1rem; }
  .interest-ed__num { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 700; color: rgba(122,158,140,0.5); line-height: 1; margin-bottom: 0.85rem; }
  .interest-ed__title { font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 700; color: #2B3A4A; line-height: 1.35; margin-bottom: 0.5rem; }
  .interest-ed__text { font-family: 'Manrope', sans-serif; font-size: 0.86rem; color: #6B7F94; line-height: 1.65; }

  /* ===== Bubble buttons (kept for channel buttons above the tabs) ===== */
  .bubble-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.7rem 1.8rem; border-radius: 100px;
    font-family: 'Manrope', sans-serif; font-size: 0.88rem; font-weight: 600; color: #2B3A4A;
    text-decoration: none; cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 30% 22%, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.10) 35%, rgba(255,255,255,0.02) 60%, transparent 100%);
    backdrop-filter: blur(20px) saturate(200%) brightness(1.06); -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.06);
    border: 1px solid rgba(255,255,255,0.55); border-top-color: rgba(255,255,255,0.78); border-bottom-color: rgba(255,255,255,0.18);
    box-shadow: 0 4px 18px rgba(0,0,0,0.06), inset 0 1px 14px rgba(255,255,255,0.32), inset 0 -1px 8px rgba(255,255,255,0.05);
  }
  .bubble-btn::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit;
    background: conic-gradient(from 200deg, rgba(255,200,210,0.00) 0deg, rgba(180,210,255,0.30) 50deg, rgba(180,255,220,0.25) 110deg, rgba(255,240,200,0.20) 170deg, rgba(210,190,255,0.30) 230deg, rgba(180,235,255,0.25) 290deg, rgba(255,200,210,0.00) 360deg);
    opacity: 0.85; pointer-events: none; z-index: 0;
  }
  .bubble-btn::after {
    content: ''; position: absolute; width: 56%; height: 44%; top: 5%; left: 8%;
    background: radial-gradient(ellipse at 45% 40%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.45) 30%, rgba(255,255,255,0.10) 55%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 0;
  }
  .bubble-btn > * { position: relative; z-index: 1; }
  .bubble-btn:hover { transform: scale(1.05) translateY(-1px); box-shadow: 0 8px 28px rgba(0,0,0,0.10), inset 0 1px 18px rgba(255,255,255,0.38), inset 0 -1px 10px rgba(255,255,255,0.08); }
  .btn-group { display: flex; justify-content: center; gap: 1rem; margin: 1.75rem 0 0.5rem; flex-wrap: wrap; }

  /* ===== Flat pill buttons (used inside all tab panels) ===== */
  .link-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
  .link-btns--center { justify-content: center; }
  .art-link { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.95rem; border-radius: 100px; font-family: 'Manrope', sans-serif; font-size: 0.78rem; font-weight: 600; color: #2B3A4A; text-decoration: none; background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(43,58,74,0.04); transition: background .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
  .art-link > * { position: relative; z-index: 1; }
  /* iridescent bubble layers, hidden until hover */
  .art-link::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: conic-gradient(from 200deg, rgba(255,200,210,0) 0deg, rgba(180,210,255,0.30) 50deg, rgba(180,255,220,0.25) 110deg, rgba(255,240,200,0.20) 170deg, rgba(210,190,255,0.30) 230deg, rgba(180,235,255,0.25) 290deg, rgba(255,200,210,0) 360deg); }
  .art-link::after { content: ''; position: absolute; width: 56%; height: 44%; top: 5%; left: 8%; border-radius: 50%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(ellipse at 45% 40%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.45) 30%, rgba(255,255,255,0.10) 55%, transparent 70%); }
  .art-link:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); border-color: rgba(255,255,255,0.75); border-top-color: rgba(255,255,255,0.9); box-shadow: 0 6px 20px rgba(43,58,74,0.10), inset 0 1px 12px rgba(255,255,255,0.4); }
  .art-link:hover::before { opacity: 0.85; }
  .art-link:hover::after { opacity: 1; }
  .art-link--muted { color: #9AAAB8; background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.4); opacity: 0.65; pointer-events: none; }
  .art-link--lg { padding: 0.7rem 1.8rem; font-size: 0.88rem; gap: 0.55rem; }

  /* ===== Switchable panel (ads-style glass window) ===== */
  .switch-panel { position: relative; z-index: 1; padding: 1.5rem 3.25rem 2.75rem; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.30)); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 26px 64px rgba(43,58,74,0.14), inset 0 1px 12px rgba(255,255,255,0.5); }
  .switcher { position: sticky; top: 0.75rem; z-index: 40; display: flex; gap: 0.4rem; background: rgba(43,58,74,0.05); padding: 0.35rem; border-radius: 100px; margin-bottom: 2rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
  /* faint iridescent "bubble" tint on the track — a subtle hint of the bubble theme */
  .switcher::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; background: conic-gradient(from 200deg, rgba(255,200,210,0) 0deg, rgba(180,210,255,0.30) 50deg, rgba(180,255,220,0.25) 110deg, rgba(255,240,200,0.20) 170deg, rgba(210,190,255,0.30) 230deg, rgba(180,235,255,0.25) 290deg, rgba(255,200,210,0) 360deg); opacity: 0.55; }
  .switcher__btn { position: relative; z-index: 1; flex: 1; text-align: center; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: #2B3A4A; padding: 0.55rem 0.5rem; border-radius: 100px; background: transparent; transition: color .3s ease; white-space: nowrap; }
  .switcher__btn--active { color: #F5F1EB; background: transparent; }
  .switcher__pill { position: absolute; left: 0; top: 0.35rem; width: 0; height: 0; border-radius: 100px; background: #2B3A4A; z-index: 0; box-shadow: 0 3px 12px rgba(43,58,74,0.28); transform-origin: center; transition: left .52s cubic-bezier(0.4,0,0.2,1), top .52s cubic-bezier(0.4,0,0.2,1), width .52s cubic-bezier(0.4,0,0.2,1), height .52s cubic-bezier(0.4,0,0.2,1); }
  .switcher__pill--hop { animation: pillHop .52s ease-in-out; }
  @keyframes pillHop { 0% { transform: scale(1); } 50% { transform: scale(0.88); } 100% { transform: scale(1); } }
  .panel { display: none; }
  .panel--active { display: block; animation: fadeInUp 0.4s ease; }
  @keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

  /* ===== Tab content blocks (divider-separated) ===== */
  .tab-block { padding: 2.25rem 0; border-top: 1px solid rgba(43,58,74,0.12); }
  .tab-block:first-child { border-top: none; padding-top: 0.5rem; }
  .eyebrow { font-family: 'Manrope', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7A9E8C; margin-bottom: 0.75rem; }
  .tab-h3 { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; color: #2B3A4A; line-height: 1.25; margin-bottom: 0.8rem; }
  .tab-h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #2B3A4A; line-height: 1.3; margin: 2.25rem 0 0.7rem; }
  .tab-p { font-family: 'Manrope', sans-serif; font-size: 0.92rem; line-height: 1.7; color: #343F4B; margin-bottom: 1.25rem; }

  /* ===== Service bullet list ===== */
  .svc-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; }
  .svc-item { display: flex; gap: 0.7rem; align-items: flex-start; font-family: 'Manrope', sans-serif; font-size: 0.9rem; line-height: 1.6; color: #343F4B; }
  .svc-item::before { content: '·'; color: #7A9E8C; font-weight: 700; flex-shrink: 0; }

  /* ===== Book layout ===== */
  .book-layout { display: flex; gap: 1.75rem; align-items: flex-start; flex-wrap: wrap; }
  .book-cover { width: 190px; height: auto; flex-shrink: 0; border-radius: 6px; box-shadow: 2px 4px 16px rgba(43,58,74,0.10); }
  .book-text { flex: 1; min-width: 240px; }
  .book-text p { font-family: 'Manrope', sans-serif; font-size: 0.92rem; line-height: 1.7; color: #343F4B; margin-bottom: 0.85rem; }

  /* ===== Article list (publications) ===== */
  .art-list { display: flex; flex-direction: column; }
  .art-item { padding: 1.25rem 0; border-top: 1px solid rgba(43,58,74,0.08); }
  .art-item:first-child { border-top: none; }
  .art-title { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 600; color: #2B3A4A; line-height: 1.4; margin-bottom: 0.4rem; }
  .art-desc { font-family: 'Manrope', sans-serif; font-size: 0.85rem; color: #6B7F94; line-height: 1.6; margin-bottom: 0; }
  .art-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  /* split rows: description left, buttons stacked & centered on the right */
  .art-item--split { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
  .art-main { min-width: 0; }
  .art-btns { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; min-width: 130px; }
  .art-btns .art-link { justify-content: center; }

  /* ===== СМИ list ===== */
  .smi-list { display: flex; flex-direction: column; }
  .smi-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 1.25rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid rgba(43,58,74,0.08); }
  .smi-item:first-child { border-top: none; }
  .smi-title { font-family: 'Manrope', sans-serif; font-size: 0.92rem; font-weight: 600; color: #2B3A4A; }
  .smi-desc { font-family: 'Manrope', sans-serif; font-size: 0.85rem; font-style: italic; color: #6B7F94; line-height: 1.5; }
  .smi-link { font-family: 'Manrope', sans-serif; font-size: 0.82rem; color: #4A7C6F; text-decoration: none; white-space: nowrap; }
  .smi-link:hover { text-decoration: underline; }

  /* ===== UGC list ===== */
  .ugc-list { display: flex; flex-direction: column; }
  .ugc-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 1.25rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid rgba(43,58,74,0.08); text-decoration: none; transition: opacity .2s ease; }
  .ugc-row:first-child { border-top: none; }
  .ugc-row:hover { opacity: 0.7; }
  .ugc-label { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #2B3A4A; }
  .ugc-desc { font-family: 'Manrope', sans-serif; font-size: 0.85rem; color: #6B7F94; line-height: 1.55; }
  .ugc-arrow { font-family: 'Manrope', sans-serif; font-size: 0.95rem; color: #9AAAB8; }

  /* ===== Talks ===== */
  .talk { padding: 2rem 0; border-top: 1px solid rgba(43,58,74,0.12); }
  .talk:first-of-type { border-top: none; }
  .talk-eyebrow { font-family: 'Manrope', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7A9E8C; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
  .talk-eyebrow__date { color: #2B3A4A; }
  .talk-eyebrow__sep { color: #B7AEA0; }
  .talk-eyebrow__event { color: #6B7F94; font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: 0.8rem; }
  .talk-eyebrow__event a { color: inherit; text-decoration: underline; text-decoration-color: rgba(107,127,148,0.45); text-underline-offset: 2px; }
  .talk-eyebrow__event a:hover { text-decoration-color: rgba(107,127,148,0.9); }
  .talk-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: #2B3A4A; line-height: 1.3; margin-bottom: 0.5rem; }
  .talk-desc { font-family: 'Manrope', sans-serif; font-size: 0.88rem; line-height: 1.65; color: #6B7F94; margin-bottom: 0; }
  .talk-desc em { font-style: italic; color: #5A6A76; }
  /* Bulleted sub-talks, for a slot that held more than one report */
  .talk-points { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.15rem; }
  /* Bullet sits inline at the start of the text — no hanging indent, so wrapped lines
     and the buttons stay flush with the left edge of every other talk card. */
  .talk-point .talk-desc::before { content: '·\00A0'; color: #7A9E8C; font-weight: 700; }
  .talk-point .link-btns { margin-top: 0.7rem; }

  /* ===== Courses (teaching) ===== */
  .course-list { display: flex; flex-direction: column; }
  .course-row { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid rgba(43,58,74,0.08); }
  .course-row:first-child { border-top: none; }
  .course-date { font-family: 'Manrope', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: #7A9E8C; }
  .course-link { font-family: 'Manrope', sans-serif; font-size: 0.92rem; color: #343F4B; line-height: 1.6; text-decoration: underline; text-decoration-color: rgba(74,124,111,0.3); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
  .course-link:hover { text-decoration-color: rgba(74,124,111,0.75); }

  /* ===== Mentoring ===== */
  .mentor-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.4rem; }
  .mentor-item { display: flex; gap: 0.7rem; align-items: flex-start; font-family: 'Manrope', sans-serif; font-size: 0.92rem; line-height: 1.6; color: #343F4B; }
  .mentor-item::before { content: '·'; color: #7A9E8C; font-weight: 700; flex-shrink: 0; }

  /* ===== "Сейчас" static note (current-version styling) ===== */
  .now-block { position: relative; z-index: 1; margin-top: 2.5rem; padding: 0 3.25rem; }
  .yandex-note { background: rgba(255,255,255,0.20); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.35); border-left: 3px solid rgba(74,124,111,0.5); border-radius: 0 12px 12px 0; padding: 1rem 1.5rem; font-family: 'Manrope', sans-serif; font-size: 0.9rem; font-weight: 500; color: #3A4E5C; line-height: 1.6; }

  /* ===== Justified body text (even right edge) ===== */
  .intro-lead, .lead-p, .tab-p, .art-desc, .talk-desc, .book-text p, .yandex-note { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

  /* ===== Responsive ===== */
  @media (max-width: 768px) {
    .book-cover { align-self: center; width: 200px; }
    .wrap--inset { padding-left: 2.2rem; padding-right: 2.2rem; }
    .now-block { padding-left: 1.1rem; padding-right: 1.1rem; }
    .art-item--split { grid-template-columns: 1fr; }
    .art-btns { align-items: flex-start; min-width: 0; }
    .art-btns .art-link { justify-content: center; }
    .header { padding: 0.75rem 1rem; gap: 0.5rem; }
    .header__name { white-space: normal; font-size: 0.95rem; line-height: 1.2; }
    .header__desc { display: none; }
    .wrap { padding: 0 1.1rem; }
    .switch-panel { padding: 1.25rem 1.1rem 1.75rem; }
    .switcher { flex-wrap: wrap; border-radius: 18px; }
    .switcher__btn { font-size: 0.74rem; padding: 0.5rem 0.4rem; flex: 1 1 40%; }
    .smi-item { grid-template-columns: 1fr; gap: 0.2rem; }
    .ugc-row { grid-template-columns: 1fr auto; }
    .course-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .book-layout { justify-content: center; }
    .btn-group { gap: 0.6rem; }
    .bubble-btn { padding: 0.6rem 1.4rem; font-size: 0.82rem; }
  }
