@import url("https://fonts.googleapis.com/css?family=Ubuntu:400,700&subset=latin-ext");
html {
  font-size: 62.5%;
}

body {
  background-color: #FFFFFF;
  color: #404750;
  font-family: "Ubuntu", sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
}

body, section, footer {
  position: relative;
}

section {
  margin-bottom: 5rem;
}

nav, section {
  padding: 0 3.6rem;
}

section:nth-child(n+2) {
  padding-top: 0;
}

section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
}

section::after {
  color: rgba(64, 71, 80, 0.05);
  content: attr(data-bg-text);
  display: block;
  font-size: 16rem;
  font-weight: 700;
  letter-spacing: -0.4rem;
  line-height: 16rem;
  position: absolute;
  top: 0rem;
  right: 50%;
  -webkit-transform: translate(50%);
          transform: translate(50%);
}

h1 {
  color: #FFFFFF;
  font-size: 7.5rem;
  font-weight: 700;
  letter-spacing: -0.45rem;
  line-height: 7rem;
}

h1 span {
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: -0.15rem;
  line-height: 2rem;
}

h2 {
  color: rgba(64, 71, 80, 0.5);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.1rem;
  text-align: center;
  margin: 0 0 4rem;
}

h3 {
  font-size: 3rem;
  line-height: 3.5rem;
  letter-spacing: -0.1rem;
  margin: 0 0 4rem;
}

h3 span {
  color: #F9B000;
  font-weight: 700;
}

a {
  color: #404750;
  text-decoration: underline;
}

a:hover, a:focus {
  color: #F9B000;
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.arrow-down {
  height: 4.4rem;
  width: 2.6rem;
  -webkit-animation: slide-in-top 1.5s infinite both;
  animation: slide-in-top 1.5s infinite both;
}

/* animations */
@-webkit-keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-6rem);
    transform: translateY(-6rem);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-6rem);
    transform: translateY(-6rem);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

#container {
  background-color: #FFFFFF;
  position: relative;
}

nav {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  max-height: 6rem;
}

nav img {
  background-color: #FFFFFF;
  border: 1.2rem solid #FFFFFF;
  border-radius: 1rem;
  -webkit-box-sizing: unset;
          box-sizing: unset;
  height: 9.5rem;
  margin-top: 6rem;
  width: 6rem;
  z-index: 99;
}

nav ul li {
  display: inline-block;
  margin-left: 4.5rem;
  position: relative;
}

nav ul li a {
  text-decoration: none;
}

nav .offer::before, nav .contact::before {
  content: '';
  display: block;
  left: -2.5rem;
  position: absolute;
  top: 0.3rem;
}

nav .offer::before {
  content: url(../images/language.svg);
  height: 1.6rem;
  width: 1.6rem;
}

nav .contact::before {
  content: url(../images/envelope.svg);
  height: 1.6rem;
  width: 1.6rem;
}

header {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: url(../images/london.png) center center no-repeat;
  background-size: auto 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: calc(66.7rem - 5rem);
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  text-align: center;
}

header .page-header {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

header .page-header::before {
  content: '';
  background: url(../images/pinat-shape-line-.svg) 50% 0rem/58rem 58rem no-repeat;
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
}

header h1 {
  top: -8.5rem;
  position: relative;
  margin: 0 0 2rem;
}

header a {
  background-color: #F9B000;
  border-radius: 3rem;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 2rem;
  padding: 1rem 5rem;
  position: relative;
  text-decoration: none;
  top: -4.5rem;
  -webkit-box-shadow: 0 0.5rem 3rem 0 rgba(249, 176, 0, 0.6);
  box-shadow: 0 0.5rem 3rem 0 rgba(249, 176, 0, 0.6);
}

header a span {
  color: #404750;
  font-weight: 700;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

header a:hover, header a:focus {
  background-color: #404750;
  color: #FFFFFF;
  text-decoration: none;
  -webkit-box-shadow: 0 0.5rem 3rem 0 rgba(249, 176, 0, 0.6);
  box-shadow: 0 0.5rem 3rem 0 rgba(64, 71, 80, 0.6);
}

header a:hover span, header a:focus span {
  color: #F9B000;
}

header .arrow-down {
  position: absolute;
  bottom: 5rem;
  left: 4rem;
}

main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -ms-flex-line-pack: center;
      align-content: center;
}

main ul li {
  min-height: 8rem;
  margin-bottom: 2rem;
}

main .school-small-groups,
main .school-kids-and-others,
main .school-courses,
main .translation {
  position: relative;
  margin-left: 8rem;
}

main .school-small-groups::before,
main .school-kids-and-others::before,
main .school-courses::before,
main .translation::before {
  content: '';
  display: block;
  left: -8rem;
  position: absolute;
  top: -0.5rem;
}

main .school-small-groups::before {
  content: url(../images/group.svg);
  height: 6rem;
  width: 5rem;
}

main .school-kids-and-others::before {
  content: url(../images/people.svg);
  height: 6rem;
  width: 5rem;
}

main .school-courses::before {
  content: url(../images/book.svg);
  height: 6rem;
  width: 5rem;
}

main .translation::before {
  content: url(../images/language-big.svg);
  height: 6rem;
  width: 5rem;
}

main .arrow-down {
  margin: 3rem auto auto;
}

footer {
  background-color: #F1F1F1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

footer section {
  text-align: center;
  width: 100%;
  padding-left: 3.6rem;
  padding-right: 3.6rem;
}

footer section p {
  margin-bottom: 0;
}

footer .adress-details {
  font-size: 1.2rem;
  line-height: 1.3rem;
}

footer .social-media {
  margin-bottom: 0;
  padding-bottom: 3rem;
}

footer .social-media ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-left: 2rem;
}

footer .social-media ul li {
  margin: 0 4rem 2rem;
}

footer .social-media a {
  position: relative;
}

footer .social-media .facebook::before, footer .social-media .instagram::before {
  content: '';
  display: block;
  left: -3.5rem;
  position: absolute;
  top: -0.5rem;
}

footer .social-media .facebook::before {
  content: url(../images/facebook-logo.svg);
  height: 2.8rem;
  width: 2.8rem;
}

footer .social-media .instagram::before {
  content: url(../images/instagram-logo.svg);
  height: 2.8rem;
  width: 2.8rem;
}

footer .copyright {
  background-color: #404750;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.2rem;
  margin: 0;
  padding: 2rem;
  text-align: center;
}

footer .go-up {
  background-color: #F9B000;
  border-radius: 50%;
  bottom: 4rem;
  height: 4.5rem;
  position: fixed;
  right: 2rem;
  text-indent: -9999rem;
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  width: 4.5rem;
  -webkit-box-shadow: 0 0.5rem 3rem 0 rgba(249, 176, 0, 0.6);
  box-shadow: 0 0.5rem 3rem 0 rgba(249, 176, 0, 0.6);
}

footer .go-up:hover, footer .go-up:focus {
  background-color: #404750;
  -webkit-box-shadow: 0 0.5rem 3rem 0 rgba(249, 176, 0, 0.6);
  box-shadow: 0 0.5rem 3rem 0 rgba(64, 71, 80, 0.6);
}

footer .go-up::before {
  content: '';
  background-image: url(../images/arrow.svg);
  background-size: 2rem 2rem;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  bottom: 4rem;
  height: 4.5rem;
  position: fixed;
  right: 2rem;
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  width: 4.5rem;
  -webkit-filter: grayscale(100%) brightness(5);
  filter: grayscale(100%) brightness(5);
}

/*media queries
@media only screen and (min-width: 710px) { 
    header {
        height: calc(100rem - 5rem);
    }     
}*/
@media only screen and (min-width: 500px) {
  html {
    font-size: calc(62.5% + 0.1rem);
  }
  nav, section {
    padding-left: 4.6rem;
    padding-right: 4.6rem;
  }
}

@media only screen and (min-width: 768px) {
  html {
    font-size: calc(62.5% + 0.1rem);
  }
  h1 {
    font-size: 10rem;
    line-height: 8.5rem;
  }
  nav, section {
    padding-left: 5.4rem;
    padding-right: 5.4rem;
  }
  main ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: space-evenly;
        -ms-flex-pack: space-evenly;
            justify-content: space-evenly;
  }
  main ul li {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    width: 30%;
  }
  main ul li:first-child {
    margin-right: 2rem;
  }
  main ul li:last-child {
    -ms-flex-preferred-size: 60%;
        flex-basis: 60%;
  }
}

@media only screen and (min-width: 900px) {
  html {
    font-size: calc(62.5% + 0.15rem);
  }
  h1 {
    font-size: 10rem;
    line-height: 8.5rem;
  }
  nav, section {
    padding-left: 10rem;
    padding-right: 10rem;
  }
  header h1 {
    top: -10.5rem;
  }
  header a {
    top: -6.5rem;
  }
  header .page-header::before {
    background: url(../images/pinat-shape-line-.svg) 50% -1rem/62rem 62rem no-repeat;
  }
  header .arrow-down {
    bottom: 7rem;
    left: 10rem;
  }
  main ul li:last-child {
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
  }
  footer .go-up {
    right: 10rem;
  }
  footer .go-up::before {
    right: 10rem;
  }
}

@media only screen and (min-width: 1366px) {
  html {
    font-size: calc(62.5% + 0.3rem);
  }
  nav, section {
    padding-left: 15rem;
    padding-right: 15rem;
  }
  header .arrow-down {
    bottom: 10rem;
    left: 15rem;
  }
  main ul li {
    -ms-flex-preferred-size: auto;
        flex-basis: auto;
    width: 20%;
  }
  main ul li:first-child {
    margin-right: 0;
  }
  main ul li:last-child {
    -ms-flex-preferred-size: auto;
        flex-basis: auto;
  }
  main ul li.translation {
    width: 30%;
  }
  footer .go-up {
    right: 15rem;
  }
  footer .go-up::before {
    right: 15rem;
  }
}
/*# sourceMappingURL=style.css.map */