@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap');


/* Components styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik';
}

p {
  font-weight: 400;
  font-size: 18px;
  line-height: 32px;
  color: #666;
  margin: 0;
}

.container {
  width: 1096px;
  margin: 0 auto;
}

.yellow-btn {
  margin-left: 14px;
  padding: 12px 36px;
  background-color: #FFA000;
  border-radius: 10px;
  line-height: 21px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .4s;
}

.yellow-btn:hover {
  background-color: #f3b13f;
}


/* Header styles */
.header {
  display: flex;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 22px;
}

.header__logo p {
  color: #000;
  font-weight: 600;
  line-height: 21px;
}

.header ul {
  display: flex;
  margin: 0 0 0 auto;
  padding: 0;
  list-style-type: none;
}


/* Front-block styles */
.front-block {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../img/front-img.jpg) no-repeat 100% / cover;
}

.front-block p {
  display: block;
  margin: 97px 0;
  padding-left: 29px;
  font-size: 64px;
  line-height: 104px;
  font-weight: 700;
  color: #fff;
  border-left: 10px solid #FFB400;
}


/* Text styles */
h1, 
h2, 
h3 {
  position: relative;
  padding-bottom: 40px;
  margin: 50px 0;
  font-weight: 700;
  line-height: 50px;
}

h1 {
  font-size: 40px;
}

h1::after,
h2::after,
h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 5px;
  background-color: #FFB400;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
  }

a {
  color: #FFB400;
  cursor: pointer;
  transition: all .4s;
}

a:hover {
  color: #efc35c;
}

img {
  max-width: 100%;
  width: 100%;
  margin: 50px 0 0;
}

ol, 
ul {
  margin: 30px 0;
  padding-left: 21px;
  font-size: 18px;
  line-height: 32px;
  font-family: 'Rubik';
  font-weight: 400;
  color: #666;
}

.laptop-none {
  display: none;
}


/* Footer styles */
.footer {
  padding: 100px 0 85px;
  text-align: center;
  font-size: 20px;
  line-height: 24px;
}


/* Media query */
@media (max-width: 1280px) {
  .container {
    width: 980px;
  }
}


@media (max-width: 1024px) {
  .container {
    width: 740px;
  }

  .front-block p {
    font-size: 54px;
  }

  h1,
  h2,
  h3 {
    line-height: 40px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }

  .footer {
    padding: 60px 0 45px;
    font-size: 18px;
    line-height: 21px;
  }
}


@media (max-width: 768px) {
  .container {
    width: 520px;
  }

  .header {
    flex-direction: column;
    margin-top: 38px;
  }

  .header ul {
    display: block;
    margin: 30px 0 0;
    text-align: center;
  }

  .yellow-btn {
    display: block;
    margin: 0 0 30px;
  }

  .front-block {
    display: none;
  }

  h1,
  h2,
  h3 {
    margin: 30px 0;
    padding-bottom: 0;
    text-align: center;
    font-size: 20px;
    line-height: 24px;
  }

  h1::after,
  h2::after,
  h3::after {
    display: none;
  }

  .mobile-none {
    display: none;
  }

  .laptop-none {
    display: block;
  }

  img {
    margin: 30px 0 0;
  }

  .footer {
    padding: 30px 0 43px;
  }
}


@media (max-width: 550px) {
  .container {
    width: 90%;
    min-width: 300px;
  }
}