@font-face {
  font-family: 'MyFont';
  src: url('fonts/Roboto.ttf') format('.ttf');
  font-weight: normal;
  font-style: normal;
}

body{
  margin:0px;
  padding:0px;
  font-family: 'MyFont', sans-serif;
}

.bg{
  z-index: 0;
  position: absolute;
  width: 110%;
  inset: 0;
  height: 150%;
  background-image: url('img/bg.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px) brightness(65%);
}

.wrapper{
  position: relative;
  z-index: 1;
  color: white;
  justify-items: center;
}

.top{
  display:flex;
  justify-items: center;
  justify-self: center;
  align-items: center;
  flex-direction: column;
  font-size: 2.5vw;
}

.contacts{
  display: grid;
  justify-self: center;
  justify-items: center;
  align-items: center;
  max-width: 60vw;
  font-size: 2vw;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.contacts > img {
  max-height: 2em;
  height:fit-content;
  aspect-ratio: 1/1;
  display: b;
  filter: invert(100%);
}

.contacts > a{
  font-weight: 600;
  margin: 0.5em;
  /* <a> как <p> */
  display: block;
  text-decoration: none;
  color: inherit;
}

.certificates {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.wrapper > h3 {
  font-size: 2vw;
  margin-top: 3em;
}

.certificates > div{
  justify-items: center;
  font-size: 2vw;
  margin:0.75em 2em 0em 2em;
}

.certificates img {
  width: 40vw;
  height: auto;
}

@media (min-width:1024px){
  .bg{
    width: 120%;
    height: 120%;
  }
  .top{
    font-size: 1vw;
  }

  .contacts{
    font-size: 0.75vw;
  }

  .wrapper > h3 {
    font-size: 1vw;
  }

  .certificates {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .certificates > div{
    font-size: 1vw;
  }

  .certificates img {
    width: 21vw;
  }
}