.advert-item {
  padding: 2rem 2.5rem 2.5rem;
  box-sizing: border-box;
  background: var(--bg);
  width: 100%;
  border-bottom: 1px solid var(--gray);
  border-left: 1px solid var(--gray);
  margin-left: -1px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 1024px) {
  .advert-item {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .advert-item {
    gap: 20px;
  }
}

.advert-item__heading {
  color: var(--white);
  position: absolute;
  left: 2.5rem;
  bottom: 3rem;
}

.advert-item__block-title {
  margin-bottom: 5px;
}

.advert-item__block-title_margin-lg {
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .advert-item__block-title_margin-lg {
    margin-bottom: 10px;
  }
}

.advert-item__subtitle {
  font-size: 2.4rem;
}

.advert-item__documents-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .advert-item__documents-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
}

.advert-item__document {
  padding: 7px 9px;
  flex-grow: 1;
  background-color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.advert-item__document:hover .advert-item__document-description {
  text-decoration: underline;
}

.advert-item__icon {
  width: 36px;
  height: 36px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.advert-item__icon_pdf {
  background-image: url('/images/pdf_icon.png');
}

.advert-item__icon_doc {
  background-image: url('/images/doc_icon.png');
}

.advert-item__document-description {
  user-select: none;
}

.advert-item__contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
}

@media (max-width: 767px) {
  .advert-item__contacts {
    flex-direction: column;
  }
}

.advert-item__contact-item {
  width: 50%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 42px;
}

@media (max-width: 767px) {
  .advert-item__contact-item {
    width: 100%;
    padding-bottom: 0;
  }
}

.advert-item__avatar-container {
  flex-shrink: 0;
  width: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
}

.advert-item__contacts-avatar {
  width: 100%;
}

.advert-item__contact-name {
  margin-bottom: 5px;
}

.advert-item__contact-position {
  margin-bottom: 10px;
}

.advert-item__contact-phone {
  margin-bottom: 5px;
}

.advert-item__contact-email, .advert-item__contact-email a{
  color: var(--secondary);
}