body > .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 930px;
}

body > .header header {
  text-transform: uppercase;
  width: 300px;
  margin: 20px 0;
  color: var(--primary-text-color);
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  position: fixed;
  top: 0;
}

body > .header header::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  z-index: -1;
  background-color: var(--background-color);
}

body > .header nav div {
  display: grid;
  grid-auto-flow: column;
}

body > .header nav a {
  text-decoration: none;
  color: var(--nav-text-color);
  padding: 5px 15px;
}

body > .header nav a:hover {
  text-decoration: underline;
}

body > .header nav a:nth-of-type(1),
body > .header nav a:nth-of-type(2),
body > .header nav a:nth-of-type(3),
body > .header nav a:nth-of-type(4),
body > .header nav a:nth-of-type(5) {
  display: none;
}

body > .header nav a:nth-of-type(5) {
  text-decoration: underline;
  color: var(--primary-text-color);
}

body > .header nav a:nth-of-type(4) {
  position: relative;
}

body > .header nav a:nth-of-type(4)[data-number]::after  {
  content: attr(data-number);
  position: absolute;
  top: 23px;
  left: 3px;
  display: block!important;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  min-width: 18px;
  min-height: 18px; 
  font-size: 14px;
  text-align: center;
  line-height: 17px;
  box-sizing: border-box;
  border-radius: 9px;
  z-index: -1;
  padding: 0 5px;
  background-color: var(--red-color);
  color: var(--background-color);
  font-weight: bold;
}

body > main {
  margin-top: 64px;
  padding: 0 25px;
  width: 100%;
  box-sizing: border-box;
}

body > main figure {
  margin: 0;
  display: flex;
}

body > main figure img {
  margin: 0 16px 16px 0;
}

body > main figure figcaption {
  color: var(--primary-text-color);
  line-height: 48px;
}

body > main figure figcaption span {
  cursor: pointer;
}

body > main iframe {
  width: 100%;
  height: calc(100vh - 154px);
  margin-bottom: 90px;
  border: 0;
  grid-area: map;
}

body > footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100px;
  background: linear-gradient(
    180deg,
    var(--background-color-alpha) 0%,
    var(--background-color) 25%
  );
}

@media only screen and (min-width: 480px) {
  body > .header {
    flex-direction: row;
    height: 80px;
    width: calc(100% - 50px);
    justify-content: space-between;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
  }

  body > .header::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--background-color);
    z-index: -1;
  }

  body > .header header {
    font-size: 20px;
    font-weight: bold;
    min-width: 240px;
    margin: 0;
    position: initial;
  }

  body > .header nav {
    margin: 0;
    padding: 0;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }

  body > .header nav a:nth-of-type(1),
  body > .header nav a:nth-of-type(2) {
    display: initial;
  }

  body > main {
    margin-top: 10px;
  }
}

@media only screen and (min-width: 560px) {
  body > .header nav a:nth-of-type(5) {
    display: initial;
  }

  body > main iframe {
    height: calc(100vh - 290px);
    margin-bottom: 10px;
    min-height: 400px;
  }

  body > footer {
    display: none;
  }

  body > main {
    display: grid;
    grid-template-areas: ". ." ". ." "map map";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr auto;
    row-gap: 25px;
  }

  body > main figure {
    width: 270px;
    justify-self: center;
  }
}

@media only screen and (min-width: 700px) {
  body > .header nav a:nth-of-type(3),
  body > .header nav a:nth-of-type(4) {
    display: initial;
  }
}

@media only screen and (min-width: 900px) {
  body > main {
    -moz-column-gap: 70px;
         column-gap: 70px;
  }

  body > main figure:nth-of-type(1),
  body > main figure:nth-of-type(3) {
    justify-self: right;
  }

  body > main figure:nth-of-type(2),
  body > main figure:nth-of-type(4) {
    justify-self: left;
  }
}
