body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

header, section, footer {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  background: white;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: auto;
}

h1, h2 {
  text-align: center;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.certificates img {
  width: 100px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}

.certificates img:hover {
  transform: scale(1.05);
}

/* Новое: стиль для проектов */
.project {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #fafafa;
}

/* Новое: модальное окно для сертификатов */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal.active {
  display: flex;
}

footer {
  text-align: center;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .avatar {
    width: 100px;
    height: 100px;
  }
}
