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

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

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

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

  .services_block_img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 250px;
    margin-top: 20px;
    border-radius: 5px;
    object-fit: contain;
  }

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

  .services_block_title:hover {
    text-align: left;
    color: rgb(51, 51, 51);
    text-decoration: none;
    margin: 15px 0;
  }

  .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;
  }

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

  .block_2-button {
    font-family: Roboto, sans-serif;
    font-size: 15px;
    width: 18%;
    font-weight: 500;
    background-color: #004085;
    color: #fff;
    padding: 20px 30px;
    text-align: center;
    border: none;
    margin: 40px auto;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: rgb(14, 14, 14) 0 4px 0 0;
    white-space: nowrap;
    background-image: url('images/pattern_1.png');
    margin-top: 50px;
  }

  .block_2-button:hover {
    transform: scale(1.05);
    background-color: #004085;
  }

  .block_2-button:active {
    background-color: #004085;
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  }



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

  .services_block {
    flex: 1 1 100%;
    padding: 10px;
  }

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

  .block_2-button {
    font-size: 10px;
    padding: 15px 17px;
    width: 60%;
    align-items: center;
    margin: 30px auto;
    box-shadow: rgb(14, 14, 14) 0 3px 0 0;
    justify-content: center;
    text-align: center;
  }
}


@media (min-width: 768px) and (max-width: 1024px) {
  .services {
    max-width: 83%;
  }

  .block_services_container_title {
    font-size: 24px;
    margin-top: 10px;
    margin-left: 75px;
  }

  .services_block {
    flex: 1 1 100%;
    padding: 10px;
  }

  .services_block:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 10px -4px rgba(0, 0, 0, 0.4);
  }

  .block_2-button {
    font-size: 10px;
    padding: 15px 17px;
    width: 25%;
    align-items: center;
    margin: 30px auto;
    box-shadow: rgb(14, 14, 14) 0 3px 0 0;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 1024px) and (max-width: 1300px) {
  .block_2-button {
    width: 30%;
  }
}
