/* ===== Авторская модалка (резюме) ===== */

/* Общий контейнер */
#author-modal.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  z-index: 3000;
}

/* ПК версия */
#author-modal .modal__content {
  width: min(880px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  color: #111;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  font-size: 16px;
  line-height: 1.65;
}

#author-modal .modal__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#author-modal .modal__close {
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #6b7280;
  transition: color .2s ease;
}
#author-modal .modal__close:hover { color: #ef4444; }

#author-modal h2 {
  font-size: 28px;
  margin: 16px 0 6px;
  text-align: center;
}

#author-modal .subtitle {
  font-size: 16px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 24px;
}

#author-modal .modal__avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
#author-modal .modal__avatar img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

#author-modal .modal__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}
#author-modal .modal__grid .card {
  background: #f9fafb;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

#author-modal .modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Мобильная версия */
@media (max-width: 800px) {
  #author-modal .modal__content {
    width: 96vw;
    max-height: 92vh;
    padding: 20px;
    font-size: 15px;
    line-height: 1.5;
  }

  #author-modal h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  #author-modal .subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  #author-modal .modal__avatar img {
    width: 140px;
    height: 140px;
  }

  #author-modal .modal__grid {
    grid-template-columns: 1fr;
  }

  #author-modal .modal__actions {
    margin-top: 20px;
  }
}
