/* Base styles */

/* Header styles */
.site-header {
  padding-bottom: 614px;
  overflow: hidden;
  position: relative;
  min-height: 2000px;
  padding-top: 59px;
}

.header-background {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.header-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1582px;
  margin: 0 auto;
}

/* Navigation */
.main-nav {
  display: flex;
  margin-right: 100px;
  width: 1181px;
  max-width: 100%;
  align-items: stretch;
  gap: 20px;
  font-family:
    "Source Code Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 25px;
  font-weight: 500;
  justify-content: space-between;
  margin-left: auto;
}

.nav-title {
  color: #fff;
  margin: 0;
  font-size: 25px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 100px;
  color: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: #fff;
  text-decoration: none;
}

/* Dividers */
.header-divider {
  width: 100%;
  margin-top: 58px;
  object-fit: contain;
}

/* Profile section */
.profile-section {
  padding-top: 200px;
  padding-bottom: 55px;
  max-width: 100%;
}

.profile-container {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid rgb(255, 255, 255);;
  position: relative;
}

.profile-image-container {
  width: 35%;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.profile-name-container {
  width: 45%;
  display: flex;
  align-items: center;
}

.profile-name {
  color: #fff;
  font-size: 95px;
  font-family:
    "Druk Cyr",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1.96px;
  margin: 0;
}

/* Main content */
.main-content {
  position: relative;
  background-color: #121212;
  z-index: 10;
  margin-top: -231px;
  margin-bottom: -614px;
  padding: 8px 80px 48px;
}

.user-info {
  width: 100%;
  max-width: 1582px;
  margin: 0 auto;
}

.info-container {
  padding-top: 110px;
  align-self: end;
  width: 55%;
  max-width: 100%;
  font-family:
    "Source Code Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  color: #fff;
  font-weight: 500;
}

.specialty-group {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgb(255, 255, 255);
  padding-bottom: 25px;
  padding-top: 20px;
}

.specialty {
  font-size: 20px;
  margin: 0;
}

.group {
  font-size: 15px;
  margin: 0;
  line-height: 2;
}

.content-divider {
  width: 100%;
  margin-top: 26px;
}

.description {
  font-size: 20px;
  margin-top: 49px;
}

.section-divider {
  width: 100%;
  margin-top: 67px;
}

/* Grid layout */
.grid-container {
  margin-top: 79px;
}

.grid-row {
  display: flex;
  gap: 45px;
  margin-bottom: 70px;
}

.grid-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.item-image {
  background-color: #d9d9d9;
  width: 100%;
  aspect-ratio: 1;
}

.item-title {
  color: #fff;
  font-size: 35px;
  font-family:
    "Druk Cyr",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  margin: 13px 0;
}

.item-link {
  border: 1px solid #fff;
  padding: 4px 70px;
  font-family:
    "Source Code Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.background-image {
  position: absolute;
  z-index: -1;
  background-size: cover;
  height: 400px;
}

body {
  background-color: #121212;
}

.profile-btns {
  position: absolute;
  display: flex;
  gap: 15px;
  right: 0;
  top: 120px;
}

.profile-btn {
  display: block;
  padding: 10px;
  border: 2px solid white;
  width: 80px;
  height: 80px;
}

.border-mobile {
  display: none;
}

@media (max-width: 1200px) {
  .profile-name {
    width: 70%;
    line-height: 0.85;
    font-size: 75px;
  }
  .info-container {
    padding-top: 72px;
  }

}

@media (max-width: 991px) {
  .info-container {
    width: 60%;
  }

  .profile-btn {
    width: 65px;
    height: 65px;
  }

  .profile-btns {
    top: 135px;
  }

      .info-container {
        padding-top: 98px;
    }

  .profile-name {
    font-size: 60px;
    width: 60%;
  }

  .specialty {
    font-size: 16px;
  }

  .group {
    font-size: 12px;
    line-height: 2;
  }

  .description {
    font-size: 15px;
    margin-top: 20px;
    padding-bottom: 30px;
  }


}

@media (max-width: 768px) {
   .profile-btn {
    width: 45px;
    height: 45px;
  }

  .profile-btns {
    top: 55px;
  }

      .info-container {
        padding-top: 28px;
    }

  .profile-name {
    font-size: 42px;
    width: 60%;
  }

  .background-image {
    height: 300px;
  }


  .specialty-group {
    padding-bottom: 10px;
  }

}

@media (max-width: 576px) {
   .profile-btn {
    width: 35px;
    height: 35px;
     padding: 5px;
     flex-shrink: 0;
     border: none;
     outline: 1px solid white;
  }

  .profile-btns {
    top: 25px;
  }

  .profile-name {
    font-size: 35px;
    line-height: 0.85;
    width: 50%;

  }

    .info-container {
    padding-top: 0;
  }

    .profile-section {
      padding-top: 240px;
    }

    .specialty {
      font-size: 10px;
      margin-top: 5px;
    }

    .group {
      font-size: 9px;
      margin-top: 5px;
    }

    .description {
      font-size: 9px;
      padding: 10px 0;
      margin-top: 0px;
    }

    .profile-container {
        border: none;
      position: relative;
    }



    .profile-section {
      padding-bottom: 0;
    }

    .border-mobile {
      display: block;
      width: 100%;
      height: 1px;
      background: white;
    }
}

@media (max-width: 460px) {
  .profile-btn {
    display: flex;
    width: 20px;
    height: 20px;
    padding: 2px;

  }

  .profile-btns {
    top: 38px;
  }
}