.about {
  margin: 120px auto;
}

.about img {
  transform: scale(1.2) !important;
}

.split-layout {
  justify-content: center;
  justify-items: center;
}

.about__left {
  flex: 2;
}

.about__right {
  flex: 1;
  display: flex;
  align-items: center;
}

.about__right img {
  max-height: 400px;
}

.consultants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
}

.consultant {
  width: 20vw;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 400px;
  width: 100%;
}

.consultants img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  height: 350px;
}

.consultants h4 {
  font-size: 20px;
  color: var(--light);
  font-weight: 300;
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
}

.consultants p {
  font-family: "Futurapt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 20px;
  line-height: 24px;
  font-weight: 300;
  color: var(--light);
}

h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.margin {
  margin-bottom: 40px;
}

.partners {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 80px 0;
}

.partners__image-part {
  flex: 1;
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
}

.partners__text-part {
  flex: 7;
  display: flex;
  flex-direction: column;
}

.partners-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  text-transform: uppercase;
}

.partners__image-part img {
  max-width: 100%;
}

.partner {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 10px 10px 4px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid var(--light);
  height: 180px;
}

.partner:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.partner-logo {
  max-width: clamp(100px, 100%, 250px);
  max-height: 250px;
}

.partner-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--light);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: auto;
  align-items: center;
}

.image-container {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .about {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    margin: 80px auto;
  }

  .about img {
    max-height: 200px;
    transform: scale(1) !important;
  }

  .about__left,
  .about__right {
    flex: none;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .about__right img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .about__left {
    gap: 10px;
  }

  .about__left p {
    margin: 0 auto !important;
  }

  .about__left .content-text {
    margin-top: 10px !important;
  }

  .consultants {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .consultants h4 {
    font-size: 20px;
  }

  .consultants p {
    font-size: 18px;
  }

  .content-text {
    font-size: 18px;
  }

  .partners {
    gap: 0;
  }

  .partners__image-part {
    flex: 0;
    visibility: hidden;
  }
}

@media screen and (max-width: 485px) {
  .image-container {
    height: 100%;
    flex-shrink: 1;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .partner-name {
    font-size: 16px;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .partner {
    height: 200px;
    -webkit-line-clamp: None;
  }

  .image-container img {
    max-height: 120px;
  }
}
