*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.43;
  color: #333;
  background-color: #fff;
}

h1,
h2,
.contact {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.1;
}

h1 .small {
  display: block;
  margin-top: 0.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: #999;
  font-size: 2.4rem;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #d9d9d9;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: #111 url(../img/background-3.jpg) no-repeat center center;
  background-size: cover;
}

.section-outer {
  padding: 4rem 0;
}

.section-outer:first-child {
  padding-bottom: 7rem;
}

.section-outer:last-child {
  padding-top: 7rem;
}

section h1,
section h2,
.contact {
  text-align: center;
}

section h1 {
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 3.4rem;
  margin: 0;
  color: #000;
}

section h2 {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  padding-bottom: 3.6rem;
  margin-top: 0;
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.contact {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  padding-bottom: 3.6rem;
  margin-bottom: 0;
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .section-outer:first-child {
    padding-bottom: 4.5rem;
  }

  .section-outer:last-child {
    padding-top: 4.5rem;
  }

  section h1 {
    font-size: 2.4rem;
  }

  h1 .small {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  .contact {
    font-size: 1.1rem;
  }
}

@media (max-width: 460px) {
  section h1 {
    font-size: 2rem;
  }

  h1 .small {
    font-size: 1.3rem;
  }
}
