.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  max-width: 520px;
  width: 90%;
  padding: 48px 40px;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray-light);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--accent);
}
.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal-photo {
  text-align: center;
  margin-bottom: 20px;
}
.modal-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-quote {
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

.modal-text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--gray-light);
}
.modal-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.modal-text a:hover {
  border-color: var(--accent);
}

.modal-signature {
  text-align: center;
  margin-top: 24px;
}
.modal-signature img {
  height: 56px;
  width: auto;
}
