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

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Ubuntu', sans-serif;
  height: 100%;
}

.wrapper {
  position: relative;
  min-height: 100%;
}

.content {
  padding-bottom: 900px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

.header-block img {
  width: 50%;
}

.nav-block-list-item a {
  text-decoration: none;
  color: white;
}

h2 {
  font-size: 36px;
  color: #1f1f1f;
  line-height: 1.5em;
  word-wrap: break-word;
  font-weight: 500;
  align-self: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.text {
  font-weight: 300;
  line-height: 1.9em;
}

.header-img {
  position: relative;
  background-image: url(images/shutterstock_1575078727_.jpeg);
  background-position: center;
  background-size: cover;
  width: 100%;
  contain: content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.header-img:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .5);
}

.header-img-logo {
  position: relative;
}

.header-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background-color: black;
}

.header-line {
  background-color: black;
  position: sticky;
  top: 0;
  width: 100%;
  height: fit-content;
}

.nav-block {
  width: 35%;
}

.nav-block-list {
  display: flex;
  justify-content: space-between;
}

.nav-block-list-item {
  color: #fff;
  list-style-type: none;
}

.about-block,
.info-block,
.team-block {
  display: flex;
  flex-direction: column;
  padding-top: 90px;
  text-align: center;
  max-width: 650px;
}

.optimization-block {
  display: flex;
  justify-content: space-between;
  align-content: center;
  max-width: 100%;
  padding: 0;
  padding-top: 90px;
}

.optimization-block img {
  width: 100%;
}

.optimization-block-img {
  width: 50%;
}

.optimization-block-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(255, 105, 0, 1);
  width: 50%;
  align-items: center;
}

.width {
  max-width: 650px;
}

.padding {
  padding: 50px;
}

.optimization-block-divider {
  border: 1px solid white;
  width: 15%;
  align-self: center;
}

.optimization-block-title {
  color: white;
  font-size: 36px;
  line-height: 1.5em;
  word-wrap: break-word;
  font-weight: 500;
  align-self: center;
}

.optimization-block-text {
  color: white;
  font-weight: 300;
  line-height: 1.9em;
}

.offer-block {
  display: flex;
  padding-top: 90px;
  justify-content: center;
}

.offer-block-text,
.offer-block-img {
  max-width: 350px;
}

.divider {
  border: 1px solid rgba(255, 105, 0, 1);
  width: 15%;
  align-self: center;
}

.arrow-8 {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 30px auto 80px auto;
}

.arrow-8:before,
.arrow-8:after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-left: 10px solid white;
  border-bottom: 10px solid white;
  animation: arrow-8 3s linear infinite;
}

.arrow-8:after {
  animation: arrow-8 3s linear infinite -1.5s;
}

@keyframes arrow-8 {
  0% {
    opacity: 0;
    transform: translate(0, -53px) rotate(-45deg);
  }

  10%,
  90% {
    opacity: 0;
  }

  50% {
    opacity: 1;
    transform: translate(0, 0) rotate(-45deg);
  }

  100% {
    opacity: 0;
    transform: translate(0, 53px) rotate(-45deg);
  }
}

.counter {
  display: flex;
  flex-direction: wrap;
  justify-content: space-around;
  margin-top: 40px
}

.counter .item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 200px;
  padding: 0 30px 30px;
  color: #fff;
}

.item {
  flex-direction: column;
}

.item-name {
  font-family: sans-serif;
  font-size: 20px;
  padding-top: 10px;
  color: black;
}

.number,
.number2,
.number3 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  color: rgba(255, 105, 0, 1);
  font-size: 50px;
  font-family: sans-serif;
  font-weight: bold;
}

.percentage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.percentage p {
  display: flex;
  color: rgba(255, 105, 0, 1);
  font-size: 50px;
  margin: 0;
}

.contact-block {
  padding-top: 90px;
  text-align: center;
}

.footer {
  display: flex;
  align-content: center;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: fit-content;
  padding-top: 90px;
}

.footer-img {
  position: absolute;
  width: 15%;
  left: 42.6%;
  align-self: center;
}

.footer-left {
  width: 50%;
  background-color: rgba(255, 105, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-description {
  width: 50%;
  background-color: #4d1760;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.footer-text {
  color: white;
  font-weight: 300;
  line-height: 1.9em;
  padding-left: 30%;
}

@media(max-width: 1280px) {
  .optimization-block-img {
    display: flex;
  }

  .optimization-block-img img {
    object-fit: none;
  }
}


@media(max-width: 1024px) {

  .header-block-small-logo {
    width: 30%;
  }

  .header-block img {
    width: 100%;
  }

  .offer-block {
    flex-direction: column;
    align-items: center;
  }

  .offer-block-text {
    min-width: 350px;
  }

  .offer-block-item {
    display: flex;
    align-items: center;
  }
}

@media(max-width: 768px) {

  .nav-block {
    width: 100%;
  }

  .header-block {
    flex-direction: column;
  }

  .header-block-small-logo {
    padding-bottom: 20px;
  }

  .arrow-8 {
    width: 30px;
    height: 30px;
  }

  .header-img-logo {
    width: 70%;
  }

  .counter {
    flex-direction: column;
    align-items: center;
  }

  .offer-block-item {
    flex-direction: column;
  }

  .offer-block-text {
    text-align: center;
    max-width: 280px;
    min-width: 250px;
  }

  .offer-block-img {
    width: 100%;
  }

  .optimization-block-img {
    display: none;
  }

  .optimization-block-description {
    width: 100%;
  }

  .footer-img,
  .footer-left {
    display: none;
  }

  .footer-description {
    width: 100%;
  }

  .footer-width {
    max-width: 300px;
  }

  .footer-text {
    text-align: center;
    padding-left: 0;
    padding-bottom: 20px;
  }

  h2,
  .optimization-block-title {
    font-size: 25px;
  }

  .text,
  .optimization-block-text,
  .footer-text,
  .item-name {
    font-size: 14px;
  }

  .number,
  .number2,
  .number3 {
    font-size: 40px;
  }

  .about-block,
  .info-block,
  .team-block,
  .offer-block,
  .padding,
  .contact-block {
    padding-left: 20px;
    padding-right: 20px;
  }

  .divider,
  .optimization-block-divider {
    width: 30%;
  }

}