* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: Golos;
  src: url(./fonts/golos-text_bold.woff) format(woff),
    url(./fonts/golos-text_bold.woff2) format(woff2),
    url(./fonts/golos-text_bold.ttf) format(truetype);
  font-weight: 600;
}

@font-face {
  font-family: Golos;
  src: url(./fonts/golos-text_regular.woff) format(woff),
    url(./fonts/golos-text_regular.woff2) format(woff2),
    url(./fonts/golos-text_regular.ttf) format(truetype);
  font-weight: 400;
}

body {
  font-family: Golos, sans-serif;
  background: #f3f4f7;
}

.go-back {
  display: flex;
  gap: 33px;
  cursor: pointer;
  margin-top: 103px;
}

.go-back__svg {
  margin-left: 80px;
}

.go-back__text {
  align-self: center;
  font-size: 24px;
}

.go-back__link {
    text-decoration: none;
    color: black;
}

main {
  max-width: 1064px;
  margin: auto;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}

.main__title {
  font-size: 100px;
  text-align: center;
  font-weight: 600;
}

.main__link {
  align-self: self-end;
  margin-top: 40px;
  margin-bottom: 40px;
  font-size: 24px;
  text-decoration: none;
  color: #27292d;
}

.sort {
  display: flex;
  flex-direction: column;
  width: 400px;
  border: 1px solid black;
  padding-bottom: 80px;
  background: white;
  align-self: self-end;

  position: absolute;
  top: 339px;
  z-index: 10;
}

.sort__container {
  width: 260px;
  margin: auto;
  margin-top: 20px;
}

.container__button {
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    color: white;
    background-color: #27292d;
    cursor: pointer;
    font-size: 22px;

    &:hover {
        opacity: 0.5;
    }
}

.close {
  width: 30px;
  height: 30px;
  align-self: self-end;
  margin-right: 30px;
  margin-top: 30px;
  cursor: pointer;
}

.search {
  width: 100%;
  height: 30px;
  border-radius: 2px;
  background: var(
    --gr,
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.7) 100%
    ),
    linear-gradient(
      104deg,
      #d8b5ff 15.19%,
      #93b2d9 37.54%,
      #58b0b8 73.04%,
      rgba(30, 174, 152, 0.4) 97.7%
    )
  );
  border: none;
  position: relative;
  margin-bottom: 25px;
  padding-left: 34px;
}

.search__img {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 5px;
  left: 7px;
  bottom: 5px;
}

.container__checkbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 310px;
  overflow-y: scroll;
}

.container__checkbox::-webkit-scrollbar {
  width: 2px;
}

.container__checkbox::-webkit-scrollbar-track {
  background: #27292d1a;
}

.container__checkbox::-webkit-scrollbar-thumb {
  background-color: rgba(162, 255, 221, 0.3);
  border-radius: 20px; 
}

.custom-checkbox > input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.custom-checkbox > span {
  display: inline-flex;
  align-items: center;
  user-select: none;
  font-size: 18px;
}

.custom-checkbox > span::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid #27292d;
  border-radius: 0;
  margin-right: 19px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}

.custom-checkbox > input:checked + span::before {
  background-color: #27292d;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.hidden {
  display: none;
}

.main__students {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.student1 {
  display: flex;
  gap: 129px;
  background: white;
  border-radius: 20px;
  padding-top: 40px;
  padding-right: 30px;
  padding-bottom: 33.19px;
  padding-left: 109px;
}

.student__photo {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  margin: auto;
  object-fit: cover;
  object-position: center;
}

.student__info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.student__course__container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.student__course {
  display: block;
  align-self: self-start;
  font-size: 24px;
  border-radius: 50px;
  padding: 12px 34px;
  border: 1px solid var(--dark, #27292d);
  background: var(
    --gr,
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.7) 100%
    ),
    linear-gradient(
      104deg,
      #d8b5ff 15.19%,
      #93b2d9 37.54%,
      #58b0b8 73.04%,
      rgba(30, 174, 152, 0.4) 97.7%
    )
  );
}

.student-name {
  font-size: 32px;
  padding-top: 20px;
  padding-bottom: 10px;
}

.student__text {
  margin-bottom: 20px;
  margin-right: 81px;
}

.read-more {
  display: flex;
  align-self: self-end;
}

.read-more__link {
  font-size: 20px;
  opacity: 0.7;
  color: #27292d;
  text-decoration: none;
  align-self: center;
}

@media (max-width: 1000px){
  .go-back{
    margin-top: 63px;
  }

  .go-back__svg{
    margin-left: 49px;
  }

  main{
    max-width: 738px;
  }

  .main__link{
    margin-right: 34px;
  }

  .student1{
    flex-direction: column;
    padding-top: 40px;
    padding-right: 42px;
    padding-bottom: 40px;
    padding-left: 60px;
    gap: 20px;
  }

  .student__img-and-info{
    display: flex;
    gap: 31px;
  }

  .student__course-and-more{
    display: flex;
    justify-content: space-between;
  }

  .read-more{
    align-self: center;
  }

  .sort{
    top: 328px;
  }
}

@media (max-width: 600px){
  .go-back{
    margin-top: 30px;
    gap: 7px;
  }

  .go-back__svg{
    margin-left: 20px;
    width: 20px;
  }

  .go-back__text{
    font-size: 18px;
  }

  .main__title{
    font-size: 32px;
  }

  .main__link{
    margin-top: 20px;
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 18px;
  }

  main{
    max-width: 89%;
    padding-bottom: 30px;
  }

  .main__students{
    gap: 10px;
  }

  .student1{
    padding-top: 20px;
    padding-right: 15px;
    padding-bottom: 20px;
    padding-left: 15px;
    gap: 17px;
  }

  .student__img-and-info{
    gap: 9px;
  }

  .student__photo{
    width: 100px;
    height: 100px;
  }

  .student-name{
    font-size: 24px;
  }

  .student__text{
    font-size: 15px;
    margin: 0;
  }

  .student__text:last-child{
    display: none;
  }

  .student__course{
    font-size: 16px;
    padding-right: 8px;
    padding-left: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .read-more__link{
    font-size: 16px;
  }

  .read-more > svg{
    width: 20px;
    height: 20px;
  }

  .sort{
    width: 358px;
    top: 155px;
    right: 0;
  }
}
