* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

body {
  background-color: #E8E6E5;
  overflow-x: hidden;
  margin: 0;
  font-family: Geist;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  width: 460px;
  margin: 0 auto;
}

#card {
  padding: 16px 16px 32px 16px;
  width: 100%;
}

#card h1 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #191919;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.14px;
}

#card p {
  color: #434343;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

#card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 16px 16px 16px;
  width: 100%;
}

#contacts a {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: #191919;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #000;
  text-wrap: nowrap;
}

#contacts a svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

#contacts .telegram {
  width: 100%;
  color: #191919;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.96px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

#contacts .instagram {
  margin-right: 16px;
  width: calc(50% - 8px);
  color: #191919;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
}

#contacts .phone {
  width: calc(50% - 8px);
  color: #191919;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
}

@media screen and (max-width: 390px) {
  #contacts .instagram {
    width: 100%;
    margin-right: 0;
  }
  
  #contacts .phone {
    width: 100%;
  }
}