body {
  font-family: "Helvetica";
  background-color: #f5f5f5;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header {
  margin: 5px 0;
}

.header__avatar {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  border: 4px solid transparent; /* по умолчанию без обводки */
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.header__avatar:hover {
  border: 4px solid #a370f0; /* 💜 сиреневая обводка при наведении */
  box-shadow: 0 0 12px rgba(179, 107, 240, 0.4);
}

.header__diplom {
  width: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 4px solid transparent; /* по умолчанию без обводки */
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.header__diplom:hover {
  border: 4px solid #a370f0; /* 💜 сиреневая обводка при наведении */
  box-shadow: 0 0 12px rgba(179, 107, 240, 0.4);
}


.header__title {
  margin: 30px 0 10px 0;
  font-size: 32px;
  line-height: 1.2;
  font-family: "Helvetica Neue";
  width: 360px;            /* выравниваем по контейнеру */
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.header__subtitle {
  color: #8f8f8f;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  font-weight: normal;
  width: 360px;            /* та же ширина */
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.links {
  width: 400px;
  margin: 0 auto 5px;
}

.links__header {
  width: 360px;
  margin: 0 auto 15px;
  font-family: "Helvetica Neue";
  font-size: 24px;
  line-height: 1.4;
}

.links__container {
  list-style-type: none;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 10px;
  gap: 10px;
  flex: none;
  order: 1;
  flex-grow: 0;
  box-sizing: border-box;
  margin: 0 auto;
  width: 360px; /* например, фиксированная ширина */
}

.links__link,
.links__title {
  font-size: 14px;
  font-size: 1.4;
}

.links__link {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px 0px 10px;
  gap: 30px;
  border-bottom: 1px solid #dadada;
  width: 320px;
}

.links__link:last-child {
  border-bottom: none;
}

.linsk__link {
  color: #a370f0; /* базовый сиреневый */
  text-decoration: none;
  transition: color 0.3s ease;
}

.linsk__link:hover {
  color: #7a4ccc; /* темнее при наведении */
  text-decoration: underline;
}

.links__title {
  margin: 0;
  min-width: 100px;
}

footer {
  margin: 0 0 40px 0;
}
.button-link {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 350px;
  background: #a370f0;
  border-radius: 20px;

  font-size: 14px;
  line-height: 1.4;

  color: #ffffff;
  text-decoration: none;
}


.btn-up {
  /* фиксированное позиционирование */
  position: fixed;
  /* цвет фона */
  background-color: #673ab7;
  /* расстояние от правого края окна браузера */
  right: 15px;
  bottom: 15px;
  /* расстояние от нижнего края окна браузера */
  border-radius: 25px;
  /* вид курсора */
  cursor: pointer;
  /* отображение элемента как flex */
  display: flex;
  /* выравниваем элементы внутри элемента по центру вдоль поперечной оси */
  align-items: center;
  /* выравниваем элементы внутри элемента по центру вдоль главной оси */
  justify-content: center;
  /* ширина элемента */
  width: 50px;
  /* высота элемента */
  height: 50px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.15s ease-in-out, transform 0.3s ease-in-out;
}

.btn-up::before {
  content: "";
  width: 20px;
  height: 20px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}

.btn-up_hide {
  display: none;
}

.btn-up_hiding {
  opacity: 0;
  transform: translateY(100px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-up:hover {
    background-color: #512da8; /* цвет заднего фона при наведении */
  }
}


.btn-menu {
  /* фиксированное позиционирование */
  position: fixed;
  /* цвет фона */
  background-color: #673ab7;
  /* расстояние от правого края окна браузера */
  right: 15px;
  top: 15px;
  /* расстояние от нижнего края окна браузера */
  border-radius: 25px;
  /* вид курсора */
  cursor: pointer;
  /* отображение элемента как flex */
  display: flex;
  /* выравниваем элементы внутри элемента по центру вдоль поперечной оси */
  align-items: center;
  /* выравниваем элементы внутри элемента по центру вдоль главной оси */
  justify-content: center;
  /* ширина элемента */
  width: 50px;
  /* высота элемента */
  height: 50px;
  box-shadow: 2px 2px 2px 2px #00000038;
}

.btn-menu svg {
  fill: rgb(255, 255, 255);
  width: 20px;
  height: 20px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
}

.btn-home {
  /* фиксированное позиционирование */
  position: fixed;
  /* цвет фона */
  background-color: #673ab7;
  /* расстояние от правого края окна браузера */
  left: 15px;
  top: 15px;
  /* расстояние от нижнего края окна браузера */
  border-radius: 25px;
  /* вид курсора */
  cursor: pointer;
  /* отображение элемента как flex */
  display: flex;
  /* выравниваем элементы внутри элемента по центру вдоль поперечной оси */
  align-items: center;
  /* выравниваем элементы внутри элемента по центру вдоль главной оси */
  justify-content: center;
  /* ширина элемента */
  width: 50px;
  /* высота элемента */
  height: 50px;
  box-shadow: 2px 2px 2px 2px #00000038;
}

.btn-home svg {
  fill: rgb(255 255 255 / 0%);
  width: 35x;
  height: 35px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
}
.btn-home svg path{
  stroke: white;
}

.dropdown {
  position: relative;
  display: inline-block;
    /* выравниваем элементы внутри элемента по центру вдоль поперечной оси */
  align-items: center;
  /* выравниваем элементы внутри элемента по центру вдоль главной оси */
  justify-content: center;
  width: 60%
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 100%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
    margin-left: auto;
  margin-right: auto;
    text-align: center;
}

.dropdown-content a:hover {background-color: #ddd}

.show {display:block;}