html {
  height: 100%;
}
body {
  font-family: "Barlow", sans-serif;
  margin: 0;
  text-align: center;
  color: #2d2d2d;
  background: #ffffff;
  height: 100vh;
}

.wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px;
  box-sizing: border-box;
}

h1 {
  color: #0066ff;
  margin-top: -40px;
  margin-bottom: -10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.subtitle {
  margin-bottom: 3rem;
  font-size: 1.2rem;
  font-weight: 500;
  position: relative;
  top: -30px;
}

.subtitle em {
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(to right, #3bffef, #6e2bdd50 66%, #6e2bdd00);
  margin-bottom: 20px;
  display: inline-block;
  transition: background 2ms ease;
  padding: 8px 6px;
  border-radius: 10px;
}

.content {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

.main-image {
  position: absolute;
  left: 50%;
  margin: 0 0 0 -50px;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  position: absolute;
  width: 260px;
}

.service:nth-child(1) {
  left: 15%;
  text-align: right;
}

.service:nth-child(2) {
  left: 22%;
  top: 150px;
  text-align: right;
}
.service:nth-child(3) {
  right: 15%;
  text-align: left;
}
.service:nth-child(4) {
  right: 22%;
  top: 150px;
  text-align: left;
}

.service__action {
  font-style: italic;
}

.service__title {
  margin: 0.4rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  border-top: 1px solid;
  padding-top: 0.4rem;
}

.service__text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-link {
  color: #000;
  font-style: italic;
  transition: color 200ms ease-out;
}

.contact-link:hover {
  color: #0243e7;
  text-decoration: none;
}

footer {
  padding: 20px 0 30px;
}

@media (max-width: 1000px) {
  .wrapper {
    height: auto;
  }
  .subtitle {
    margin-bottom: 0;
  }
  .services {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 30px 0;
  }
  .service {
    position: static;
    text-align: left !important;
    flex: 1 0 300px;
    margin: 0 20px 40px 0;
  }
  .main-image {
    position: static;
    margin: 0;
  }
}
