/* Block_2 */
  .block_services {
    display: inline;
    margin: 0 auto;
    padding: 0 20px;
  }

  .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1160px;
    margin: 0 auto;
  }

  .services_block {
    flex: 1 1 calc(33.33% - 20px);
    padding: 15px;
    flex-direction: column;
    text-align: center;
    position: relative;
    margin-bottom: 5px;
    box-shadow: 2px 5px 5px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
  }

  .services_block:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.5);
  }

  .contacts_block_img img{
    width: 20%;
    height: 20%;
    margin-top: 20px;
    border-radius: 5px;
  }

  .contacts_block_title {
    font-family: "Roboto Condensed", sans-serif;
    text-align: center;
    margin: 15px 0;
    color: #3d3b3b;
    font-size: 24px;
    font-weight: 700;
    line-height: 33px;
    text-decoration-color: #004085;
  }

  .contacts_block_title:hover {
    color: rgb(51, 51, 51);
    text-decoration: none;
  }

  .ph_3 {
    filter: invert(23%) sepia(52%) saturate(668%) hue-rotate(190deg) brightness(95%) contrast(92%);
  }

  .contacts_block_img.ph_3 img {
    width: 14%;
    height: 14%;
    margin-top: 25px;
    border-radius: 5px;
}

  .custom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  .custom a:visited {
    color: inherit;
  }

  .custom a:active {
    color: inherit;
  }

  .custom a:hover {
    color: rgb(51, 51, 51);
    text-decoration: none;
  }

  .contacts_block_text {
    font-family: Roboto, sans-serif;
    color: rgb(85, 85, 85);
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
    text-align: center;
  }

  .services .contacts_block_text a {
    text-decoration: none;
    color: inherit;
  }

  .contacts_block_map {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 70px 0;
  }

  .contacts_block_map iframe {
    width: 61%;
    height: 500px;
    border-radius: 10px;
    border: 0;
  }

  .center-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }



/* Block_2 */
@media screen and (max-width: 767px) {
  .services {
      flex-direction: column;
      gap: 30px;
      max-width: 87%;
    }

  .services_block {
    min-height: 200px;
    padding: 10px;
    box-shadow: 0 2px 1px 2px rgba(0, 0, 0, 0.2);
  }

  .services_block:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
  }

  .contacts_block_img img {
    width: 50px;
    height: 50px;
  }

  .contacts_block_text {
    font-size: 16px;
    line-height: 20px;
  }

  .contacts_block_map iframe {
    width: 90%;
    height: 350px;
  }
}



@media (min-width: 768px) and (max-width: 1024px) {
  .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 90%;
    margin: 0 auto;
  }

  .services_block {
    flex: 1 1 calc(50% - 20px);
    padding: 15px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
  }

  .block_title_h2 {
    margin-left: 40px;
  }

  .services_block:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
  }

  .contacts_block_img img {
    width: 70px;
    height: 70px;
  }

  .contacts_block_text {
    font-size: 18px;
    line-height: 24px;
  }

  .contacts_block_map iframe {
    width: 90%;
    height: 400px;
    margin: 30px auto;
  }
}
