.contact {
  padding: 0 4rem;
  margin-bottom: 20rem;
}

.contact {
  margin-bottom: 6rem;
}

.contact .section__head {
  justify-content: center;
  margin-bottom: 6rem;
}

.contact__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0 auto;
  row-gap: 3rem;
  column-gap: 2rem;
  background: var(--color-bg);
  border-radius: 1rem;
  padding: 5.5rem 4rem;
}

.contact__item {
  max-width: 34rem;
  width: 100%;
}

.contact__body {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  border-left: 0.5px solid var(--color-white);
  padding: 2.5rem;
  position: relative;
  height: 35rem;
}

.contact__body p,
.contact__body a {
  font-size: 1.5rem;
  color: var(--color-white);
}

.contact__item:first-child .contact__body {
  border: none;
}

.contact__item h5 {
  color: var(--color-green);
  margin-bottom: 4rem;
  margin-left: 2.5rem;
}

.contact__body-item {
  display: flex;
  gap: 2.8rem;
}

.contact__body-phones {
  display: flex;
  flex-direction: column;
}

.main-contact-container{
    /*max-width:136rem;*/
    margin:0 auto;
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
}

.contact__map {
    grid-column: 2/-1;
    grid-row: 1/1;
}

.main-contact{
    grid-row: 1/1;
    grid-column: 1/2;
}

@media screen and (max-width: 1280px) {
  .contact__body {
    border: none;
  }
}

@media screen and (max-width: 912px) {
  .contact {
    margin-bottom: 10rem;
  }

  .contact__body {
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  .contact {
    padding: 0 1rem;
    margin-bottom: 9rem;
  }

  .contact__items {
    padding: 0;
  }
}

@media screen and (max-width: 648px) {
  .contact__items {
    padding: 3rem 1rem;
  }
  .contact__body {
    gap: 2.5rem;
    padding: 2.5rem 0;
  }

  .contact__body::after {
    left: 0%;
    bottom: 0%;
    transform: rotate(0);
    width: 90%;
  }

  .contact__item:last-child .contact__body::after {
    border: none;
  }

  .contact__item h5 {
    margin-bottom: 3.3rem;
  }
}

@media screen and (max-width:530px){
    .contact__map {
        grid-column: 1/-1;
        grid-row: 1/1;
    }
    
    .main-contact{
        grid-row: 2/2;
        grid-column: 1/-1;
    }
}


@media screen and (max-width: 480px) {
  .contact__map {
    height: 24rem;
  }

  .contact__map iframe {
    height: 100%;
  }
}
