    @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@300;400;600&display=swap');

    :root {
      --bg-color: #f7f5ef; 
      --text-primary: #1e293b; 
      --text-secondary: #536275;
      --accent-main: #364f6b; 
      --accent-warm: #d97757; 
      --accent-soft: #8993a4;
      --accent-blue-warm: #4f87a6;
      --accent-blue-light: #dcecf2;
      --accent-peach-light: #f5dfd2;
      --accent-sand-light: #efe4c9;
      --card-bg: #ffffff;
      --border-radius: 4px 20px 4px 20px; 
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Noto Sans Georgian', sans-serif;
      background-color: var(--bg-color);
      color: var(--text-primary);
      line-height: 1.7;
      background-image: radial-gradient(#d1d8e0 1.2px, transparent 1.2px);
      background-size: 28px 28px;
      overflow-x: hidden;
      position: relative;
      isolation: isolate;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: -1;
      filter: blur(1px);
    }

    body::before {
      width: 260px;
      height: 260px;
      top: 18%;
      left: -130px;
      background: radial-gradient(circle, rgba(245, 223, 210, 0.52), rgba(245, 223, 210, 0));
    }

    body::after {
      width: 320px;
      height: 320px;
      right: -170px;
      bottom: 12%;
      background: radial-gradient(circle, rgba(220, 236, 242, 0.58), rgba(220, 236, 242, 0));
    }

    body.no-scroll { overflow: hidden; }

    .wrapper { display: flex; flex-direction: column; min-height: 100vh; }

    /* Language Control */
    .eng { display: none !important; }
    body.en-mode .geo { display: none !important; }
    body.en-mode .eng { display: block !important; }
    body.en-mode span.eng, body.en-mode h1.eng, body.en-mode h2.eng, body.en-mode h3.eng, body.en-mode strong.eng { display: inline !important; }
    body.en-mode .nav-links span.eng, body.en-mode .btn-primary span.eng { display: inline-block !important; }

    /* Navigation */
    .navbar {
      display: flex; justify-content: space-between; align-items: center;
      padding: 1rem 5%; background-color: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(8px); border-bottom: 1px solid rgba(54, 79, 107, 0.15);
      position: sticky; top: 0; z-index: 1000;
    }
    
    .logo {
      font-size: clamp(1.05rem, 2vw, 1.3rem);
      font-weight: 600;
      color: var(--accent-blue-warm);
      z-index: 1001;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      padding: 0.55rem 0.85rem 0.55rem 0.6rem;
      border-radius: 18px 6px 18px 6px;
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 16% 20%, rgba(255,255,255,0.92) 0 7%, transparent 8%),
        linear-gradient(135deg, rgba(220, 236, 242, 0.86), rgba(245, 223, 210, 0.54));
      border: 1px solid rgba(79, 135, 166, 0.18);
      box-shadow: 0 5px 16px rgba(79, 135, 166, 0.08);
    }

    .logo::after {
      content: '';
      position: absolute;
      width: 58px;
      height: 58px;
      right: -26px;
      bottom: -32px;
      border: 1px solid rgba(217, 119, 87, 0.22);
      border-radius: 50%;
    }

    .logo:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(79, 135, 166, 0.13);
    }

    .brand-mark {
      width: 58px;
      height: 58px;
      flex: 0 0 58px;
      object-fit: contain;
      display: block;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 5px 8px rgba(37, 111, 184, 0.18));
      transition: transform 0.25s ease, filter 0.25s ease;
    }

    .logo:hover .brand-mark {
      transform: scale(1.045);
      filter: drop-shadow(0 7px 11px rgba(37, 111, 184, 0.24));
    }

    /* The mark stays visible throughout the main site, but disappears while a full article is open. */
    body.article-open .logo {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .brand-text {
      position: relative;
      z-index: 1;
      line-height: 1.25;
    }

    .nav-right-group {
      display: flex; align-items: center; gap: 2rem; z-index: 1001;
    }

    .nav-links { list-style: none; display: flex; gap: clamp(0.8rem, 1.6vw, 1.45rem); }
    .nav-links a {
      text-decoration: none; color: var(--text-secondary);
      font-weight: 600; font-size: 0.95rem; transition: 0.3s; position: relative;
    }
    .nav-links a::after {
      content: ''; position: absolute; width: 0; height: 2px;
      bottom: -4px; left: 0; background-color: var(--accent-warm); transition: 0.3s;
    }
    .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
    .nav-links a.active { color: var(--text-primary); }
    
    .lang-switcher {
      background: var(--card-bg); padding: 5px 12px;
      border-radius: 20px; border: 1px solid rgba(54, 79, 107, 0.12);
      font-weight: 600; font-size: 0.85rem; color: var(--text-secondary);
      display: flex; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    .lang-switcher span { cursor: pointer; transition: color 0.3s; }
    .lang-switcher span:hover { color: var(--accent-warm); }
    .lang-switcher span.active { color: var(--accent-main); text-decoration: underline; }
    .separator { margin: 0 8px; cursor: default; opacity: 0.5; text-decoration: none !important; }

    .hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1002; }
    .hamburger span { 
      width: 25px; height: 3px; background-color: var(--text-primary); 
      transition: all 0.3s ease-in-out; transform-origin: left center;
    }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

    /* Sections & Layout */
    .content { flex: 1; padding: 3rem 5%; max-width: 1100px; margin: 0 auto; width: 100%; }
    
    .page-section {
      display: none;
      animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      z-index: 0;
    }
    .page-section.active-section { display: block; }

    .page-section::after {
      content: '';
      position: absolute;
      width: 72px;
      height: 72px;
      right: -18px;
      top: 92px;
      border: 1px solid rgba(217, 119, 87, 0.14);
      border-radius: 50% 50% 18% 50%;
      transform: rotate(18deg);
      pointer-events: none;
      z-index: -1;
    }
    @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

    .section-header { margin-bottom: 2rem; display: flex; align-items: center; gap: 20px; }
    .section-header h2 { font-size: clamp(1.3rem, 3.5vw, 1.7rem); font-weight: 600; color: var(--text-primary); }
    .header-line {
      flex: 1;
      height: 2px;
      background: linear-gradient(90deg, rgba(79, 135, 166, 0.34), rgba(217, 119, 87, 0.2), transparent);
    }

    /* Hero Section */
    .hero {
      position: relative; 
      background: linear-gradient(135deg, #364f6b 0%, #2b3e55 100%); 
      color: white; padding: 3rem 2.5rem; 
      border-radius: var(--border-radius); overflow: hidden;
      box-shadow: 0 10px 30px rgba(54, 79, 107, 0.12); 
      margin-bottom: 3.5rem; border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .hero::before {
      content: ""; position: absolute; inset: 0;
      background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
      background-size: 22px 22px; z-index: 1;
    }
    .hero-ornament {
      position: absolute; right: -40px; bottom: -40px; width: 240px; height: 240px;
      opacity: 0.06; background: radial-gradient(circle, #ffffff 0%, transparent 75%);
      border-radius: 50%; z-index: 1; pointer-events: none;
    }
    .hero-content { position: relative; z-index: 2; max-width: 720px; }
    .hero h1 { font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3; margin-bottom: 0.8rem; font-weight: 600; letter-spacing: -0.01em; }
    .hero p { font-size: clamp(0.9rem, 1.6vw, 1.02rem); opacity: 0.9; line-height: 1.65; text-align: justify; }

    .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
    
    .card {
      background-color: var(--card-bg); padding: 2.2rem; border-radius: var(--border-radius);
      position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.025); border: 1px solid rgba(54, 79, 107, 0.06);
      transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden;
    }

    .card::after {
      content: '';
      position: absolute;
      width: 64px;
      height: 64px;
      right: -34px;
      bottom: -34px;
      border-radius: 50%;
      background: rgba(245, 223, 210, 0.34);
      pointer-events: none;
    }
    .card::before {
      content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
      background: linear-gradient(90deg, var(--accent-main), var(--accent-warm));
      opacity: 0; transition: opacity 0.3s ease;
    }
    .card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(54, 79, 107, 0.07); }
    .card:hover::before { opacity: 1; }

    .card-accent { width: 35px; height: 3px; background-color: var(--accent-main); margin-bottom: 1.2rem; opacity: 0.8; }
    .card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; color: var(--text-primary); font-weight: 600; }
    .card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.5rem; flex-grow: 1; text-align: justify; }

    .home-latest-article { margin-bottom: 3.5rem; }
    .home-latest-grid { margin-top: 0.25rem; }
    .all-articles-btn-wrapper { margin-top: 2rem; text-align: center; }

    .btn-primary {
      display: inline-block; background-color: var(--accent-warm); color: white;
      padding: 0.75rem 1.8rem; border-radius: 30px; text-decoration: none; font-weight: 600;
      border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 12px rgba(217, 119, 87, 0.2);
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(217, 119, 87, 0.3); }

    .btn-secondary {
      display: inline-block; background-color: transparent; color: var(--accent-main);
      padding: 0.75rem 1.8rem; border-radius: 30px; text-decoration: none; font-weight: 600;
      border: 2px solid var(--accent-main); cursor: pointer; transition: all 0.3s;
    }
    .btn-secondary:hover { background-color: var(--accent-main); color: white; transform: translateY(-2px); }

    .read-more {
      color: var(--accent-warm); text-decoration: none; font-weight: 600;
      font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
      margin-top: auto;
    }
    .read-more span:last-child { transition: transform 0.3s; }
    .card:hover .read-more span:last-child { transform: translateX(5px); }

    .news-card .date {
      font-size: 0.78rem; font-weight: 600; color: var(--accent-warm);
      letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 0.8rem; display: block;
    }

    /* Contact */
    .contact-container {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 3.5rem;
      align-items: stretch;

      background-color: var(--card-bg);
      padding: 3rem;
      border-radius: var(--border-radius);
      box-shadow: 0 8px 24px rgba(0,0,0,0.025);
      border: 1px solid rgba(54, 79, 107, 0.06);
      position: relative;
      overflow: hidden;
    }

    .contact-container::before {
      content: '';
      position: absolute;
      width: 130px;
      height: 130px;
      left: -75px;
      bottom: -75px;
      border-radius: 50%;
      background: rgba(220, 236, 242, 0.42);
      pointer-events: none;
    }

    /* Center the text block inside the LEFT grid column only. */
    .contact-info {
      width: 100%;
      min-width: 0;
      height: 100%;
      display: grid;
      place-items: center;
    }

    .contact-info > p {
      width: min(280px, 100%);
      margin: 0;
      color: var(--text-secondary);
      line-height: 1.7;
      text-align: left;
    }

    .contact-form {
      min-width: 0;
    }

    .form-group {
      position: relative;
      margin-bottom: 1.8rem;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 10px 0;
      font-size: 0.95rem;
      color: var(--text-primary);
      border: none;
      border-bottom: 2px solid #cbd5e1;
      outline: none;
      background: transparent;
      transition: 0.3s;
      font-family: inherit;
    }

    .form-group label {
      position: absolute;
      top: 10px;
      left: 0;
      color: var(--text-secondary);
      font-size: 0.95rem;
      pointer-events: none;
      transition: 0.3s ease all;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      border-bottom-color: var(--accent-main);
    }

    .form-group input:focus ~ label,
    .form-group input:not(:placeholder-shown) ~ label,
    .form-group textarea:focus ~ label,
    .form-group textarea:not(:placeholder-shown) ~ label {
      top: -20px;
      font-size: 0.78rem;
      color: var(--accent-main);
      font-weight: 600;
    }

    /* Modals & Blockquotes */
    .modal {
      position: fixed !important; z-index: 9999 !important; left: 0; top: 0;
      width: 100vw; height: 100vh; background-color: rgba(30, 41, 59, 0.75); 
      backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 1rem;
    }
    .modal-content {
      background-color: var(--card-bg); padding: 2.5rem; border-radius: var(--border-radius); 
      width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; position: relative; 
      box-shadow: 0 25px 50px rgba(0,0,0,0.25); animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-25px); } to { opacity: 1; transform: translateY(0); } }
    
    .close-modal {
      position: absolute; right: 20px; top: 15px; font-size: 2.2rem;
      line-height: 1; cursor: pointer; color: var(--text-secondary); transition: color 0.3s; z-index: 10;
    }
    .close-modal:hover { color: var(--accent-warm); }
    
    .full-article h2 {
      color: var(--accent-main); margin-bottom: 1.2rem; font-size: clamp(1.4rem, 3.5vw, 1.8rem);
      border-bottom: 1px solid rgba(54, 79, 107, 0.1); padding-bottom: 0.8rem; padding-right: 2rem;
    }
    .full-article p { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.75; color: var(--text-primary); text-align: justify; }

    .full-article blockquote {
      margin: 2rem 0; padding: 1.2rem 1.8rem; border-left: 4px solid var(--accent-warm);
      background-color: rgba(217, 119, 87, 0.04); border-radius: 0 12px 12px 0;
      font-style: italic; color: var(--text-primary); text-align: justify;
      box-shadow: 0 8px 24px rgba(54, 79, 107, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .full-article blockquote:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(54, 79, 107, 0.09); }
    
    .full-article h4 {
      margin-top: 2rem; margin-bottom: 1rem; color: var(--accent-main); font-size: 1.2rem; font-weight: 600;
    }

    footer { text-align: center; padding: 2rem; background-color: var(--text-primary); color: rgba(255,255,255,0.85); margin-top: auto; font-size: 0.9rem; }

    @media (max-width: 1050px) {
      .hamburger { display: flex; }
      .logo { padding: 0.45rem 0.6rem 0.45rem 0.45rem; gap: 0.5rem; }
      .brand-mark { width: 47px; height: 47px; flex-basis: 47px; }
      .nav-right-group { gap: 1rem; }
      .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--card-bg); flex-direction: column; text-align: center;
        gap: 0; border-bottom: 2px solid var(--text-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease-in-out;
      }
      .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
      .nav-links li { padding: 1.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
      .nav-links li:last-child { border-bottom: none; }
      .hero { padding: 2.5rem 1.5rem; margin-bottom: 2.5rem; }
      .card { padding: 1.8rem 1.3rem; }
      .modal-content { padding: 2rem 1.2rem; }
    }

    @media (max-width: 720px) {
      .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
      }

      .contact-info {
        min-height: 120px;
      }

      .contact-info > p {
        width: min(360px, 100%);
        text-align: center;
      }
    }

    @media (max-width: 520px) {
      .navbar { padding: 0.75rem 3%; }
      .logo { font-size: 0.88rem; padding: 0.38rem 0.48rem 0.38rem 0.38rem; gap: 0.4rem; }
      .brand-mark { width: 41px; height: 41px; flex-basis: 41px; }
      .nav-right-group { gap: 0.6rem; }
      .lang-switcher { padding: 4px 8px; font-size: 0.76rem; }
      .separator { margin: 0 5px; }
    }
	
    /* Circles from the background */
	
	.flat-circles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0; /* ინარჩუნებს ფონის პოზიციას */
    pointer-events: none; /* უზრუნველყოფს, რომ მაუსის კლიკები ფონმა არ შეიწოვოს */
    background-color: #f8fafc; /* საბაზისო ფონი */
  }

  .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35; /* დაახლოებით 65% გამჭვირვალობა */
  }

  /* პირველი წრე */
  .circle-1 {
    width: 450px;
    height: 450px;
    background-color: #4a6fa5;
    top: 20%;
    left: 25%;
  }

  /* მეორე წრე - გადაფარავს პირველს */
  .circle-2 {
    width: 500px;
    height: 500px;
    background-color: #5c766d;
    top: 35%;
    left: 40%;
  }

  /* მესამე წრე */
  .circle-3 {
    width: 400px;
    height: 400px;
    background-color: #8c5866;
    top: 15%;
    left: 50%;
  }

  /* საიტის კონტენტის კონტეინერი, რომელიც უზრუნველყოფს, რომ მენიუ და ტექსტები იყოს ზემოთ */
  .site-content {
    position: relative;
    z-index: 1; /* ათავსებს კონტენტს ფონის ზემოთ */
    width: 100%;
    min-height: 100vh;
  }
	
    /* Circles end here */


    /* Famous psychoanalysts: conceptual genealogy tree */
    .analysts-intro {
      max-width: 850px;
      margin: -0.4rem 0 1.4rem;
      color: var(--text-secondary);
      font-size: 0.95rem;
      text-align: justify;
    }


    .analyst-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
      margin: -0.25rem 0 1rem;
    }

    .analyst-summary > span {
      display: inline-flex;
      align-items: center;
      gap: 0.32rem;
      min-height: 2rem;
      padding: 0.34rem 0.72rem;
      border: 1px solid rgba(54, 79, 107, 0.11);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--text-secondary);
      font-size: 0.76rem;
      box-shadow: 0 3px 10px rgba(54, 79, 107, 0.035);
    }

    .analyst-summary strong {
      color: var(--accent-main);
      font-size: 0.92rem;
    }

    .analyst-tools {
      display: grid;
      grid-template-columns: auto minmax(220px, 1fr) auto;
      align-items: center;
      gap: 0.75rem;
      max-width: 760px;
      margin: 0 0 1.1rem;
      padding: 0.65rem 0.8rem;
      border: 1px solid rgba(54, 79, 107, 0.09);
      border-radius: 12px 4px 12px 4px;
      background: rgba(255, 255, 255, 0.68);
    }

    .analyst-tools label {
      color: var(--text-secondary);
      font-size: 0.8rem;
      font-weight: 600;
      white-space: nowrap;
    }

    #analyst-search {
      width: 100%;
      min-width: 0;
      padding: 0.55rem 0.68rem;
      border: 1px solid rgba(54, 79, 107, 0.18);
      border-radius: 8px 3px 8px 3px;
      background: rgba(255,255,255,0.92);
      color: var(--text-primary);
      font: inherit;
      font-size: 0.86rem;
      outline: none;
    }

    #analyst-search:focus {
      border-color: var(--accent-blue-warm);
      box-shadow: 0 0 0 3px rgba(79, 135, 166, 0.09);
    }

    .analyst-count {
      min-width: 4.3rem;
      color: var(--accent-main);
      font-size: 0.78rem;
      font-weight: 700;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .analyst-node.is-filtered-out {
      display: none;
    }

    .tree-note {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
      padding: 0.9rem 1rem;
      border: 1px solid rgba(79, 135, 166, 0.18);
      border-radius: 14px 5px 14px 5px;
      background: rgba(220, 236, 242, 0.46);
      color: var(--text-secondary);
      font-size: 0.86rem;
    }

    .tree-note-mark {
      flex: 0 0 auto;
      width: 1.55rem;
      height: 1.55rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: var(--accent-blue-warm);
      color: #fff;
      font-weight: 700;
      line-height: 1;
    }

    .psycho-tree-shell {
      overflow-x: visible;
      padding: 1.5rem 1rem 2rem;
      background:
        linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
        radial-gradient(circle at 20% 10%, rgba(220,236,242,0.75), transparent 38%),
        radial-gradient(circle at 85% 85%, rgba(245,223,210,0.66), transparent 36%);
      border: 1px solid rgba(54, 79, 107, 0.09);
      border-radius: var(--border-radius);
      box-shadow: 0 12px 30px rgba(54, 79, 107, 0.055);
    }

    .psycho-tree {
      --tree-line: rgba(54, 79, 107, 0.33);
      width: 100%;
      min-width: 0;
      position: relative;
      padding: 0.5rem 0.65rem 0;
    }

    .tree-root {
      display: flex;
      justify-content: center;
      position: relative;
      padding-bottom: 3.7rem;
    }

    .tree-root::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0;
      height: 3.7rem;
      border-left: 2px solid var(--tree-line);
      transform: translateX(-1px);
    }

    .tree-branches {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.5rem;
      position: relative;
      padding-top: 2.35rem;
    }

    .tree-branches::before {
      content: "";
      position: absolute;
      left: 16.666%;
      right: 16.666%;
      top: 0;
      border-top: 2px solid var(--tree-line);
    }

    .tree-branch {
      --branch-accent: var(--accent-main);
      position: relative;
      padding: 1.1rem 0.85rem 1rem;
      border-radius: 18px 6px 18px 6px;
      border: 1px solid rgba(54, 79, 107, 0.08);
      background: rgba(255, 255, 255, 0.7);
    }

    .tree-branch::before {
      content: "";
      position: absolute;
      left: 50%;
      top: -2.35rem;
      height: 2.35rem;
      border-left: 2px solid var(--tree-line);
      transform: translateX(-1px);
    }

    .tree-branch.freudian { --branch-accent: #657e9a; }
    .tree-branch.kleinian { --branch-accent: #a86858; }
    .tree-branch.independent { --branch-accent: #668078; }

    .tree-school-label {
      display: block;
      width: max-content;
      max-width: 100%;
      margin: 0 auto 0.85rem;
      padding: 0.32rem 0.72rem;
      border-radius: 999px;
      color: #fff;
      background: var(--branch-accent);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      text-align: center;
    }

    .analyst-node {
      display: flex;
      min-height: 72px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 0.16rem;
      padding: 0.75rem 0.65rem;
      border: 1px solid rgba(54, 79, 107, 0.13);
      border-radius: 5px 16px 5px 16px;
      background: #fff;
      color: var(--text-primary);
      text-decoration: none;
      text-align: center;
      box-shadow: 0 5px 14px rgba(54, 79, 107, 0.055);
      transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
      transform-origin: center;
      position: relative;
      z-index: 1;
    }

    .analyst-node strong {
      font-size: 0.91rem;
      line-height: 1.35;
      font-weight: 600;
    }

    .analyst-node span {
      color: var(--text-secondary);
      font-size: 0.76rem;
      line-height: 1.2;
      font-variant-numeric: tabular-nums;
    }

    .analyst-node:hover,
    .analyst-node:focus-visible {
      z-index: 4;
      transform: translateY(-4px) scale(1.045);
      border-color: var(--accent-warm);
      background: #fffdfa;
      box-shadow: 0 15px 30px rgba(54, 79, 107, 0.14);
      outline: none;
    }

    .tree-root .analyst-node {
      width: min(290px, 90%);
      min-height: 82px;
      border-width: 2px;
      border-color: rgba(79, 135, 166, 0.34);
      background: linear-gradient(135deg, #fff, rgba(220, 236, 242, 0.55));
    }

    .branch-lead {
      width: min(235px, 92%);
      margin: 0 auto 2.25rem;
      border-top: 3px solid var(--branch-accent);
    }

    .tree-descendants {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.66rem;
      position: relative;
      padding-top: 1.4rem;
    }

    .tree-descendants::before {
      content: "";
      position: absolute;
      left: 12%;
      right: 12%;
      top: 0;
      border-top: 1px solid var(--tree-line);
    }

    .tree-descendants::after {
      content: "";
      position: absolute;
      left: 50%;
      top: -2.25rem;
      height: 2.25rem;
      border-left: 1px solid var(--tree-line);
      transform: translateX(-0.5px);
    }

    .tree-descendants .analyst-node::before {
      content: "";
      position: absolute;
      left: 50%;
      top: -1.4rem;
      height: 1.4rem;
      border-left: 1px solid var(--tree-line);
      transform: translateX(-0.5px);
      z-index: -1;
    }

    .tree-source-note {
      margin-top: 1rem;
      color: var(--text-secondary);
      font-size: 0.78rem;
      text-align: right;
    }

    /* Detailed psychoanalyst page */
    .analyst-modal .analyst-modal-content {
      max-width: 1080px;
      padding: 0;
      overflow-y: auto;
      border-radius: 6px 24px 6px 24px;
    }

    .close-analyst {
      position: absolute;
      right: 20px;
      top: 15px;
      z-index: 20;
      width: 2.25rem;
      height: 2.25rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255,255,255,0.34);
      border-radius: 50%;
      color: #fff;
      background: rgba(30, 41, 59, 0.22);
      font-size: 1.75rem;
      line-height: 1;
      cursor: pointer;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .close-analyst:hover,
    .close-analyst:focus-visible {
      background: rgba(217, 119, 87, 0.86);
      transform: scale(1.06);
      outline: none;
    }

    .analyst-profile-header {
      position: relative;
      padding: 3rem 4rem 2.3rem 2.8rem;
      color: #fff;
      background:
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.11), transparent 26%),
        linear-gradient(135deg, #364f6b, #263b52);
      overflow: hidden;
    }

    .analyst-profile-header::after {
      content: "";
      position: absolute;
      right: -55px;
      bottom: -85px;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.13);
    }

    .profile-school {
      display: inline-block;
      margin-bottom: 0.75rem;
      padding: 0.3rem 0.72rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.14);
      border: 1px solid rgba(255,255,255,0.18);
      font-size: 0.76rem;
      font-weight: 600;
    }

    .analyst-profile-header h2 {
      position: relative;
      z-index: 1;
      margin: 0;
      color: #fff;
      border: 0;
      padding: 0;
      font-size: clamp(1.7rem, 4vw, 2.45rem);
      line-height: 1.2;
    }

    .profile-dates {
      display: block;
      position: relative;
      z-index: 1;
      margin-top: 0.45rem;
      color: rgba(255,255,255,0.82);
      font-size: 1rem;
      font-variant-numeric: tabular-nums;
    }

    .profile-lead {
      position: relative;
      z-index: 1;
      max-width: 780px;
      margin-top: 1.15rem;
      color: rgba(255,255,255,0.9);
      font-size: 0.98rem;
      line-height: 1.75;
      text-align: justify;
    }

    .analyst-profile-body {
      padding: 2.3rem 2.8rem 2.8rem;
      background:
        linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)),
        radial-gradient(circle at 10% 10%, rgba(220,236,242,0.7), transparent 38%);
    }

    .profile-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.85fr);
      gap: 1.7rem;
      align-items: start;
    }

    .profile-main,
    .profile-sidebar {
      display: grid;
      gap: 1.2rem;
    }

    .profile-section {
      padding: 1.25rem 1.35rem;
      border: 1px solid rgba(54, 79, 107, 0.08);
      border-radius: 5px 18px 5px 18px;
      background: rgba(255,255,255,0.9);
      box-shadow: 0 6px 18px rgba(54, 79, 107, 0.035);
    }

    .profile-section h3 {
      margin: 0 0 0.8rem;
      color: var(--accent-main);
      font-size: 1.12rem;
    }

    .profile-section p {
      margin: 0 0 0.85rem;
      color: var(--text-primary);
      font-size: 0.94rem;
      line-height: 1.78;
      text-align: justify;
    }

    .profile-section p:last-child { margin-bottom: 0; }

    .profile-list {
      margin: 0;
      padding-left: 1.15rem;
      color: var(--text-primary);
    }

    .profile-list li {
      margin: 0.48rem 0;
      padding-left: 0.2rem;
      font-size: 0.91rem;
      line-height: 1.55;
    }

    .profile-works {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .profile-works li {
      padding: 0.62rem 0;
      border-bottom: 1px solid rgba(54,79,107,0.08);
      font-size: 0.88rem;
      line-height: 1.45;
    }

    .profile-works li:last-child { border-bottom: 0; }

    .work-year {
      display: inline-block;
      min-width: 3.25rem;
      color: var(--accent-warm);
      font-weight: 600;
      font-variant-numeric: tabular-nums;
    }

    .profile-back-row {
      margin-top: 1.5rem;
      text-align: center;
    }

    .profile-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      border: 0;
      font-family: inherit;
    }

    @media (max-width: 900px) {
      .profile-layout { grid-template-columns: 1fr; }
      .analyst-profile-header { padding: 2.6rem 3.4rem 2rem 1.6rem; }
      .analyst-profile-body { padding: 1.6rem; }
    }

    @media (max-width: 768px) {
      .psycho-tree-shell {
        margin-left: -2%;
        margin-right: -2%;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }

      .psycho-tree-shell::-webkit-scrollbar { display: none; }
      .psycho-tree { min-width: 930px; }
      .analyst-modal .analyst-modal-content { max-height: 94vh; }
      .profile-section { padding: 1.05rem; }
    }

    @media (max-width: 620px) {
      .analyst-tools {
        grid-template-columns: 1fr auto;
      }

      .analyst-tools label {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 520px) {
      .analysts-intro,
      .profile-lead,
      .profile-section p {
        text-align: left;
      }

      .analyst-profile-header {
        padding: 2.3rem 3rem 1.8rem 1.3rem;
      }

      .analyst-profile-body {
        padding: 1rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .analyst-node,
      .close-analyst { transition: none; }
      .analyst-node:hover,
      .analyst-node:focus-visible { transform: none; }
    }

