@font-face {
  font-family: 'opensans-regular';
  src:
      url('fonts/opensans-regular-webfont.woff')
      format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'opensans-semibold';
  src:
      url('fonts/opensans-semibold-webfont.woff')
      format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'opensans-bold';
  src:
      url('fonts/opensans-bold-webfont.woff')
      format('woff');
  font-weight: normal;
  font-style: normal;
}

html {
  font-size: 100%;
  font-family: 'opensans-bold', sans-serif;
  line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: normal;
}

h1,
h2 {
  line-height: 1.1;
}

h3,
h4,
h5,
h6 {
  line-height: 1.4;
}

p {
  margin-top: 0;
}

figure {
  display: inline-block;
  margin: 0;
}

img {
  max-width: 100%;
}

.main-wrapper {
  display: flex;
  min-height: 100vh;
}

.site-bg {
  background: url('./images/bg.jpg') no-repeat;
  background-position-x: center;
  background-position-y: center;
  background-size: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  margin: 0 auto;
}

.logo {
  max-width: 310px;
  top: 60px;
  background: #fff;
  padding: 10px;
}

.flex-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header {
  text-align: center;
}

.main-title {
  max-width: 30rem;
  color: #fff;
  font-family: 'opensans-bold', sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #054686;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1rem;
  text-align: center;
}

.connection-path {
  display: none;
  height: 5rem;
  margin-bottom: 3rem;
}

.connection-path:before {
  content: '';
  display: block;
  width: 3rem;
  border-top: 1px solid;
}

.connection-path:after {
  content: '';
  display: block;
  width: 3rem;
  border-bottom: 1px solid;
}

.connection-path__middle {
    border-right: 1px solid;
}

.footer {
  text-align: center;
}

.box__text {
  font-family: 'opensans-bold',
  sans-serif;
  font-size: 1.8rem;
  background-color: #fff;
  color: #861A5A;
}

@media (min-width: 600px) {
  .main {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .box {
    flex: 1;
    flex-basis: 30rem;
  }

  .main-figure {
    margin-left: 1rem;
    flex: 1;
  }
}

@media (min-width: 800px) {
  .container {
    padding-top: 2rem;
  }

  .main {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .box {
    max-width: 17rem;
    padding: 1rem;
    margin-top: 100px;
  }

  .box__text:last-child {
    margin-bottom: 0;
  }

  .main-figure {
    margin-left: 0;
    flex: initial;
  }

  .connection-path {
    display: flex;
  }

  .site-bg {
    background-position-y: 65%;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 110%;
  }
}
