* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#eng {
  width: 100%;
  min-height: 100vh;
  background-image: url(../image/bg2.jpg);
  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center; /* по центру по горизонтали */
  align-items: flex-start; /* ВАЖНО! карточка прижимается к верху */
  padding-top: 60px; /* отступ сверху */
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
  color: rgb(69, 116, 186);
}

#card {
  width: 370px;
  border-radius: 12px;
  background: rgb(28, 28, 28);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  padding: 20px;
  text-align: center;

  /* Убираем фиксированные высоты */
  height: auto;
  min-height: auto;
  flex: 0 0 auto; /* чтобы flex не растягивал */
}

#photo {
  width: 122px;
  height: 122px;
  border-radius: 100%;
  margin-top: 10px;
  background-image: url(../image/maxetsy.jpg);
  background-size: cover;
  background-position: center;
}

#chanel_name {
  width: 100%;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

#chanel_name .title {
  font-size: 26px;
  line-height: 32px;
  font-weight: bold;
}

#channel_description {
  font-size: 15px;
  font-weight: 300;
  color: rgb(179, 179, 179);
  line-height: 22px;
  max-width: 320px;
}

#button_join {
  width: 160px;
  height: 44px;
  margin-top: 30px;
  border: none;
  align-items: center;
  display: flex;
  justify-content: center;
  border-radius: 22px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  background-color: #15649c;
  cursor: pointer;
}

.shine {
  background-image: linear-gradient(
    270deg,
    rgba(100, 181, 239, 0) 48.44%,
    #64b5ef 75.52%,
    rgba(100, 181, 239, 0) 100%
  );
  background-repeat: no-repeat;
  animation: bg-move linear 5s infinite;
}

@keyframes bg-move {
  0% {
    background-position: -500px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@media (max-width: 768px) {
  #card {
    margin: 50px 0;
    width: 90%;
  }
}
