@font-face {
  font-family: "Futura PT W01";
  font-weight: 700;
  font-display: swap;
  src: url(https://cdn.finvia.io/fonts/futura-pt-bold.woff2) format("woff2"), url(https://cdn.finvia.io/fonts/futura-pt-bold.woff) format("woff");
}

@font-face {
  font-family: "Futura PT W01";
  font-weight: 500;
  font-display: swap;
  src: url(https://cdn.finvia.io/fonts/futura-pt-book.woff2) format("woff2"), url(https://cdn.finvia.io/fonts/futura-pt-book.woff) format("woff");
}

@font-face {
  font-family: "Futura PT W01";
  font-weight: 600;
  font-display: swap;
  src: url(https://cdn.finvia.io/fonts/futura-pt-medium.woff2) format("woff2"), url(https://cdn.finvia.io/fonts/futura-pt-medium.woff) format("woff");
}

:root {
  --text-color: #5C6E70;
  --link-color: #038B9B;
  --link-hover-color: #038B9B;
  --title-color: #212121;
  --background-color: #f8f9f9;
  --text-font-size: 1.6rem;
  --text-font-size-desktop: 1.8rem;
  --title-font-size: 2.4rem;
  --title-font-size-desktop: 3.6rem;
  --footer-line-color: #E6D6B7;
  --footer-text-color: #5C6E70;
  --footer-font-size: 1.4rem;
  --footer-font-size-desktop: 1.6rem;
  --text-font-family: "Futura PT W01", Arial, Helvetica, sans-serif;
  --title-font-family: "Futura PT W01", Arial, Helvetica, sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  color: var(--text-color);
  font-family: var(--text-font-family);
  background: var(--background-color);
}

a {
  color: var(--link-color);
  font-size: var(--text-font-size);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media only screen and (min-width: 600px) {
  a {
    font-size: var(--text-font-size-desktop);
  }
}

p {
  color: var(--text-color);
  font-size: var(--text-font-size);
}

@media only screen and (min-width: 600px) {
  p {
    font-size: var(--text-font-size-desktop);
  }
}

h1 {
  color: var(--title-color);
  font-family: var(--title-font-family);
  font-size: var(--title-font-size);
  font-weight: 400;
  text-transform: uppercase;
}

@media only screen and (min-width: 600px) {
  h1 {
    font-size: var(--title-font-size-desktop);
  }
}

#mainWrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

header {
  width: 100%;
  max-width: 1200px;
}

header .logo {
  width: 138px;
  height: 32px;
  margin: 30px;
}

@media only screen and (min-width: 600px) {
  header .logo {
    width: 220px;
    height: 50px;
  }
}

.middle {
  width: 100%;
  max-width: 745px;
  text-align: center;
  padding: 20px 50px;
}

.middle .illustration {
  width: 155px;
  height: 181px;
}

@media only screen and (min-width: 600px) {
  .middle .illustration {
    width: 264px;
    height: 309px;
  }
}

footer {
  width: calc(100% - 60px);
  max-width: 1200px;
  padding: 10px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media only screen and (min-width: 600px) {
  footer {
    padding: 20px 0;
    flex-direction: row-reverse;
  }
}

footer .links {
  width: 100%;
  display: flex;
  justify-content: center;
}

footer .links a {
  margin: 0 5px;
  white-space: nowrap;
}

@media only screen and (min-width: 600px) {
  footer .links {
    width: auto;
  }

  footer .links a {
    margin: 0 20px;
  }
}

footer p {
  margin-block-start: 5px;
  margin-block-end: 0;
  text-align: center;
}

footer p,
footer a {
  font-size: var(--footer-font-size);
  color: var(--text-color);
}

@media only screen and (min-width: 600px) {
  footer p {
    margin-block-start: 0;
    width: 100%;
    text-align: left;
  }

  footer p,
  footer a {
    font-size: var(--footer-font-size-desktop);
  }

  footer a:last-child {
    margin-right: 0;
  }
}

footer::before {
  content: "";
  height: 1px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--footer-line-color);
}
