/* --- Стили для страницы "Обо мне" (about.html) --- */

.about-page {
    padding: calc(var(--spacing-unit) * 2) 0; 
  }
  
  .about-hero {
    display: flex;
    align-items: flex-start; 
    gap: calc(var(--spacing-unit) * 3); 
    margin-bottom: calc(var(--spacing-unit) * 3); 
    padding-bottom: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--light-gray-bg); 
  }
  
  .about-hero__photo {
    flex: 0 0 300px;
    max-width: 100%; 
    align-self: center; 
  }
  
  .about-hero__photo img {
    border-radius: 50%; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white); 
   
  }
  
  .about-hero__text {
    flex: 1;
    display: flex; 
    flex-direction: column;
    align-items: center; 
  }
  
  .about-hero__text h1 {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    text-align: center; 
  }
  
  .about-hero__text .qualification {
    margin-bottom: var(--spacing-unit);
    color: var(--medium-gray);
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
  }
  
  .philosophy-intro {
    font-size: 1.1rem; 
    line-height: 1.7;
    color: var(--dark-gray);
    text-align: left; 
    margin-left: auto; 
    margin-right: auto; 
    
  }
  
  /* Стили для основного контента (образование, подход) */
  .about-content section {
    margin-bottom: calc(var(--spacing-unit) * 3); 
    
  }
  
  .about-content h2 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    border-bottom: 2px solid var(--calm-green); 
    display: inline-block; 
  }
  
  .about-content ul {
    list-style: none; 
    padding-left: 0;
  }
  
  .about-content ul li {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 1.5); 
    margin-bottom: calc(var(--spacing-unit) * 0.75); 
  }
  
  /* Кастомные маркеры для списков */
  .about-content ul li::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--calm-green); 
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.5em; 
    transform: translateY(-50%);
  }
  
  /* Вложенные списки (для образования) */
  .about-content ul ul {
    margin-top: calc(var(--spacing-unit) * 0.5);
    padding-left: calc(var(--spacing-unit) * 1.5); 
  }
  
  .about-content ul ul li::before {
     background-color: var(--neutral-gray);
     width: 6px;
     height: 6px;
  }
  
  .about-content strong {
    color: var(--deep-blue); 
  }
  
  .approach-section a {font-weight: bold;}

  .invitation-section {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 1.5);
    background-color: var(--calm-green-bg); 
    border-radius: 5px;
  }
  
  .invitation-section p {
    margin-bottom: 0; 
    font-size: 1.1rem;
  }
  .invitation-section a {font-weight: bold;}
  sup {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
  }
  
  /* Стили для текста сноски внизу */
  .footnote_text {
    font-size: 0.65em;
    color: #838181; 
    margin-top: 1em; 
  }
  .footnote a {
    text-decoration: none;
  }
  
  .italic {font-style: italic;}

  /* --- Адаптивность для страницы "Обо мне" --- */

@media (max-width: 940px) {
  .about-hero__photo {
      flex-basis: 250px;
  }
  .about-hero__text .qualification,
  .philosophy-intro {
      font-size: 1rem;
  }
}


@media (max-width: 768px) {
  .about-hero {
      flex-direction: column;
      align-items: center; 
      text-align: center; 
      gap: calc(var(--spacing-unit) * 1.5);
      border-bottom: none; 
      margin-bottom: calc(var(--spacing-unit) * 2);
  }

  .about-hero__photo {
      flex-basis: auto; 
      max-width: 200px; 
  }

   .about-hero__text .qualification, .philosophy-intro {
      font-size: 1rem;
      margin-left: 0;
      max-width: none;
      
   }
   .about-hero__text  .philosophy-intro {
    text-align: justify;
    
 }

  .about-content h2 {
      display: block; 
      text-align: center; 
      border-bottom: none; 
      padding-bottom: 0;
   }
   .about-content h2::after { 
      content: '';
      display: block;
      width: 50px;
      height: 2px;
      background-color: var(--calm-green);
      margin: calc(var(--spacing-unit) * 0.5) auto 0; 
   }

   .invitation-section p {
      font-size: 1rem;
   }
}