* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #f8f8f7;
}

.logo {
  position: fixed;
  top: 28px;
  left: 32px;
  font-size: 24px;
  line-height: 1;
}

.page {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 30px;
  align-items: start;
  padding: 170px 30px 120px;
}

.intro p {
  margin: 0;
  max-width: 500px;
  font-size: 25px;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.image-section {
  width: 100%;
}

.image-section img {
  width: min(870px, 100%);
  height: auto;
  display: block;
}

/* Desktop footer */
footer {
  position: fixed;
  left: 0;
  bottom: 28px;
  width: 100%;
  display: grid;
  grid-template-columns: 480px 1fr auto;
  column-gap: 30px;
  align-items: center;
  padding: 0 30px;
  font-size: 18px;
}

footer a,
footer span {
  color: #111;
  text-decoration: none;
}

.footer-left {
  grid-column: 1;
  justify-self: start;
}

.footer-center {
  grid-column: 2;
  justify-self: start;
}

.footer-right {
  grid-column: 3;
  justify-self: end;
}

/* Mobile */
@media (max-width: 800px) {
  .page {
    display: block;
    padding: 120px 24px 80px;
  }

  .intro {
    margin-bottom: 40px;
  }

  .intro p {
    font-size: 24px;
    line-height: 1.35;
  }

  .image-section img {
    width: 100%;
  }

  footer {
    position: static;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 24px 24px;
    font-size: 16px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    grid-column: auto;
    justify-self: auto;
  }
}
