:root {
  --primary-color: #2b4074;
  --secondary-color: #f9f6e5;
  --heading-font-family: "Roboto Condensed", sans-serif;
  --defoult-font-family: "Roboto", sans-serif;
}

.container {
  max-width: 100%;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font-family);
  font-weight: 400;
  margin: 0 auto;
}

h5,
h6,
p,
button {
  font-family: var(--defoult-font-family);
  font-weight: 400;
  margin-bottom: 0;
}

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

header {
  background-color: var(--primary-color);
  height: 100px;
  padding: 17px 61px;
}

header .wrapper-block,
.promo .wrapper-block {
  position: relative;
}

.menu-button {
  position: absolute;
  top: 13px;
  right: 150px;
}

.intro {
  background-image: url("../images/bg-img.jpg");
  background-size: cover;
  height: 668px;
  width: 100%;
  text-align: center;
  color: white;
  position: relative;
}

.arrows {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 4px;
  top: 264px;
  width: 70px;
  height: 70px;
}

.arrows button {
  border: none;
  padding: 0;
}

.arrow-back {
  background-color: var(--primary-color);
  padding: 22px 27px;
}

.arrow-forward {
  background-color: var(--secondary-color);
  padding: 22px 27px;
}

.owl-prev {
  position: absolute;
  width: 70px;
  height: 70px;
  z-index: 1;
  opacity: 0;
  transition: all 0.5s ease;
}

.owl-prev:hover {
  opacity: 0.1;
}

.owl-next:hover {
  background-color: #2b4074;
  opacity: 0.1;
}

.owl-next {
  position: absolute;
  width: 70px;
  height: 70px;
  z-index: 1;
  opacity: 0;
  top: 70px;
  transition: all 0.5s ease;
}

.intro .owl-theme .owl-dots {
  position: relative;
  top: 197px;
}

.intro h1 {
  font-size: 96px;
  line-height: 96px;
  letter-spacing: 2px;
  padding: 107px 0 26px 0;
  text-transform: uppercase;
  max-width: 513px;
}

.intro h2 {
  font-size: 24px;
  line-height: 26px;
  max-width: 886px;
}

.main-button {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  width: 200px;
  height: 50px;
  font-size: 18px;
  padding-top: 6px;
  border-radius: 3px;
  border: none;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
}

.main-button:hover {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

.page-nav img {
  width: 10px;
  height: 10px;
  margin: 124px 3px 79px 2px;
}

.promo {
  background-color: var(--primary-color);
  color: white;
  height: 192px;
  padding: 57px 150px;
  position: relative;
}

.promo h5 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
}

.promo p {
  font-family: "Dosis", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 18px;
  margin-top: 10px;
}

.promo-button {
  font-size: 18px;
  font-weight: 500;
  width: 200px;
  height: 50px;
  padding-top: 2px;
  padding-left: 5px;
  border-radius: 3px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-transform: uppercase;
  border: none;
  position: absolute;
  top: 10px;
  right: 149px;
  transition: all 0.2s ease-in-out;
}

.promo-button:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.services {
  display: flex;
  justify-content: space-between;
  height: 546px;
  max-width: 1140px;
}

.services-content {
  width: 515px;
  margin-top: 90px;
  margin-right: 46px;
}

.services-content h2 {
  font-size: 48px;
  font-weight: 400;
  color: var(--primary-color);
}

.services-content h5 {
  color: #4a4a4a;
  font-size: 24px;
  line-height: 26px;
  font-weight: 400;
  padding-top: 70px;
  padding-bottom: 22px;
}

.services p {
  font-size: 18px;
  line-height: 24px;
  color: #797979;
  width: 351px;
  padding-top: 24px;
  padding-bottom: 134px;
}

.service-line {
  display: none;
}
.services-items {
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  width: 84%;
}

.item {
  width: 25%;
  height: 270px;
  text-align: center;
  outline: 1px solid #f9f6e5;
  padding: 77px 8px 65px;
  height: 269px;
  transition: all 0.3s ease-in-out;
}

.services-items h3 {
  position: relative;
  font-weight: 700;
  font-size: 16px;
  margin-top: -8px;
  margin-left: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a4a4a;
}

.item2 h3 {
  margin-top: -24px;
}

.services-items p {
  font-size: 16px;
  width: 100%;
  padding: 10px 0 10px;
}

.hidden h3 {
  margin-top: 3px;
  color: var(--primary-color);
}

.hidden {
  display: none;
}

.item:hover .hidden {
  display: block;
}

.item:hover {
  border: 4px solid var(--primary-color);
  padding-bottom: 3px;
  padding-top: 3px;
}

.item2 img {
  padding-bottom: 53px;
}

.item4 img {
  padding-right: 20px;
}

.item6 {
  padding-top: 40px;
}

.item6 img {
  padding-bottom: 45px;
}

.item5 img,
.item6 img,
.item7 img {
  padding-right: 53px;
}

.recent-work {
  background-image: url("../images/bg-portfolio.png");
  height: 618px;
  text-align: center;
}

.recent-work h2 {
  color: white;
  font-size: 48px;
  padding: 77px 0 13px;
}

.recent-work p {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--primary-color);
  font-family: var(--heading-font-family);
  font-weight: 700;
  padding-right: 22px;
}

.portfolio {
  display: flex;
  justify-content: space-between;
  margin: 73px auto 0;
  max-width: 1130px;
}

.portfolio img {
  width: 100%;
  margin-bottom: 33px;
  border-radius: 4px;
  padding: 0 2px;
}

.portfolio .photo-block {
  position: relative;
}

.portfolio-hover {
  position: absolute;
  background-color: var(--secondary-color);
  width: 90%;
  height: 73%;
  opacity: 0.83;
  border-radius: 4px;
  left: 13px;
  top: 11px;
  display: none;
}

.portfolio-hover img {
  margin: 0 12px 0;
  width: 25px;
  height: 25px;
}

.photo-block:hover .portfolio-hover {
  display: block;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.icon {
  cursor: pointer;
}

.video-block {
  height: 580px;
}

.team-block {
  display: flex;
}

.wrapper {
  max-width: 1160px;
  margin: 0px auto;
  height: 100%;
  padding: 0 11px;
}

.team {
  border-radius: 4px;
  margin-top: 50px;
  max-width: 100%;
}

.team-content {
  padding-left: 100px;
}

.video-block h2 {
  font-size: 48px;
  font-weight: 400;
  font-family: "Roboto Condensed", sans-serif;
  margin: 47px 0 20px;
  color: #4a4a4a;
}

.video-block p {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: #9b9b9b;
  margin-top: 32px;
  max-width: 584px;
}

.video-button {
  width: 230px;
  height: 60px;
  margin-top: 38px;
}

.video-block .main-button:hover {
  font-weight: 500;
  border: 1px solid var(--primary-color);
  background-color: white;
}

.latest-news {
  background-image: url("../images/bg-2.png");
  height: 1044px;
  text-align: center;
}

.wrapper-news {
  max-width: 1170px;
  margin: 0 auto;
  height: 100%;
}

.latest-news h2 {
  font-size: 48px;
  font-weight: 400;
  font-family: "Roboto Condensed", sans-serif;
  color: #4a4a4a;
  padding: 52px 0 8px 0;
}

.wrapper-news .line {
  margin-bottom: 108px;
}

.news-photo {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.photo-title {
  width: 100%;
  height: 40px;
  position: absolute;
  bottom: 0px;
  background-color: white;
  border-radius: 0 0 4px 4px;
  color: #4a4a4a;
  text-align: left;
  padding-left: 20px;
}

.photo-title p {
  margin-top: 10px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: 2px;
}

.photo-conteiner:hover .img {
  border: 10px solid var(--primary-color);
}

.photo-conteiner:hover .info {
  display: inline;
}

.photo-conteiner:hover .sign {
  bottom: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.content-block img {
  border-radius: 4px;
  width: 268px;
  transition: all 0.3s ease-in-out;
}

.content-block {
  position: relative;
  max-width: 270px;
}

.content-block:hover img.photo-content {
  border: 10px solid var(--primary-color);
}

.content-block:hover .photo-title {
  bottom: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.content-block:hover .info {
  display: block;
  width: 29px;
}

.content-block:hover .photo-title1 {
  bottom: 60px;
}

.content-block:hover .info5,
.content-block:hover .info7 {
  top: 35%;
}

.info {
  position: absolute;
  top: 46.5%;
  left: 44.5%;
  cursor: pointer;
  display: none;
}

.block1 {
  height: 444px;
}
.block2 {
  height: 344px;
}
.block3 {
  height: 385px;
}
.block4 {
  height: 215px;
}
.block5 {
  height: 197px;
  margin-top: 30px;
}
.block6 {
  height: 343px;
  margin-top: -72px;
}
.block7 {
  height: 218px;
  margin-top: -30px;
}
.block8 {
  height: 437px;
  margin-top: -204px;
}

.testimonial {
  text-align: center;
  color: #4a4a4a;
  padding: 91px 0 80px 0;
}

.testimonial h3 {
  padding: 50px 8px 30px 0;
  font-size: 36px;
  line-height: 42.19px;
  font-weight: 700;
}

.testimonial h4 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  padding-left: 3px;
  padding-bottom: 70px;
  margin-bottom: 0;
}

.testimonial .owl-theme .owl-nav.disabled + .owl-dots {
  margin-top: 3px;
  margin-bottom: -5px;
}

.footer-logo {
  width: 230px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 3px;
  text-align: center;
  display: block;
  margin: 18px auto 0;
}

.footer-content {
  background-color: var(--primary-color);
  color: white;
  height: 639px;
  font-family: "Roboto", sans-serif;
  margin-top: -30px;
}

.highlight {
  color: var(--primary-color);
}

.footer-content h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 32px;
  font-weight: 400;
  width: 751px;
  padding: 155px 22px 80px 0px;
  margin-left: 150px;
}

.footer-content h4 {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 2px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  padding-bottom: 19px;
}

.footer-content p {
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
}

td {
  border: 1px solid #7ebf84;
  height: 57px;
  width: 25%;
  padding-top: 13px;
  text-align: center;
}

#first-cell {
  border-left: none;
}

#last-cell {
  border-right: none;
}

i {
  font-size: 20px;
  color: white;
}

i:hover {
  cursor: pointer;
}

table {
  max-width: 1141px;
  margin: 0 auto;
  color: white;
  padding: 26px 0 17px 0;
  width: 100%;
  height: 61px;
  border-collapse: collapse;
}

.widgets {
  display: flex;
  justify-content: space-between;
  padding: 85px 308px 0 151px;
}

.widgets a,
.widgets a:hover {
  text-decoration: none;
  color: white;
}

.copyright {
  height: 42px;
  background-color: var(--secondary-color);
  position: relative;
}

.copyright a,
.copyright a:hover {
  border: none;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a4a4a;
  background-color: var(--secondary-color);
  position: absolute;
  bottom: 9px;
  right: 146px;
  text-decoration: none;
}

@media only screen and (max-width: 1110px) {
  .latest-news {
    height: 1368px;
  }

  .wrapper-news .line {
    margin-bottom: 94px;
  }

  .latest-news h2 {
    padding: 60px 0 29px 0;
  }

  .news-photo {
    margin: 0 auto;
    max-width: 871px;
    justify-content: start;
  }

  .content-block {
    margin: 0 10px;
  }

  .block4 {
    margin-top: 30px;
  }

  .block5 {
    margin-top: -70px;
  }

  .block6 {
    margin-top: -26px;
  }

  .block7 {
    margin-top: -38px;
  }

  .block8 {
    margin-top: -157px;
  }
}

@media only screen and (max-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  header .wrapper-block,
  .promo .wrapper-block {
    position: static;
  }

  header {
    padding: 17px 46px;
  }

  .menu-button {
    top: 30px;
    right: 42px;
  }

  .intro {
    height: 618px;
  }

  .intro h1 {
    font-size: 84px;
    line-height: 84px;
    padding: 114px 0 32px;
  }

  .intro h2 {
    font-size: 18px;
    width: 587px;
    line-height: 20px;
  }

  .main-button {
    margin-top: 12px;
    padding-top: 4px;
    padding-right: 10px;
  }

  .page-nav img {
    margin-top: 112px;
  }

  .arrows {
    top: 253px;
    width: 56px;
    height: 56px;
  }

  .arrow-back,
  .arrow-forward {
    padding: 18px 22px;
  }

  .promo {
    height: 160px;
    padding: 42px 46px;
  }

  .promo h5 {
    font-size: 18px;
    line-height: 36px;
  }

  .promo p {
    font-size: 14px;
    line-height: 16px;
  }

  .promo-button {
    top: 55px;
    right: 42px;
  }

  .services {
    height: 912px;
    flex-direction: column;
    margin: 0;
  }

  .services-content {
    width: 93%;
    margin-top: 47px;
    margin-left: 44px;
  }

  .services-content h2 {
    text-align: center;
  }

  .services-content h5 {
    padding: 65px 0 29px;
  }

  .services-content p {
    width: 608px;
    padding: 34px 0 0 0;
  }

  .services-items {
    width: 100%;
    height: 552px;
  }

  .recent-work {
    height: 1033px;
    background-size: cover;
  }

  .recent-work h2 {
    padding-top: 76px;
  }

  .portfolio {
    flex-wrap: wrap;
    max-width: 663px;
  }

  .photo-title p {
    font-size: 18px;
  }

  .photo-block .portfolio-photo {
    width: 317.23px;
    height: 282.91px;
    margin-bottom: 0;
  }

  .recent-work p {
    padding: 37px 51px 25px 0;
  }

  .video-block {
    height: 540px;
  }

  .video-block .team {
    margin-top: 79px;
  }

  .wrapper {
    padding: 0px 40px;
    max-width: 1007px;
  }

  .team-content {
    padding-left: 37px;
  }

  .team-content h2 {
    margin: 91px 0 5px;
  }

  .team-content img {
    width: 100px;
  }

  .video-block p {
    margin-top: 11px;
    max-width: 523px;
  }

  .video-button {
    margin-top: 20px;
    padding-top: 9px;
    padding-right: 25px;
  }

  .testimonial {
    height: 480px;
  }

  .testimonial h3 {
    font-size: 32px;
    line-height: 40px;
    padding: 42px 7px 45px 0;
  }

  .testimonial h4 {
    font-size: 20px;
    padding: 0 0 72px 4px;
  }

  footer {
    height: 720px;
  }

  .footer-logo {
    margin-top: 21px;
  }

  .footer-content {
    height: 632px;
  }

  .footer-content h3 {
    font-size: 36px;
    margin-left: 43px;
    padding-bottom: 82px;
  }

  table {
    max-width: 939px;
  }

  .widgets {
    padding: 59px 166px 0 41px;
  }

  .widgets h4 {
    font-size: 18px;
  }

  .footer-content p {
    font-size: 16px;
  }

  .copyright a,
  .copyright a:hover {
    right: 10px;
  }
}

@media only screen and (max-width: 886px) {
  .video-block {
    height: 479px;
  }

  .wrapper {
    max-width: 680px;
    padding: 0;
  }

  .video-block .team {
    width: 240px;
    height: 227px;
    margin-top: 39px;
  }

  .team-content {
    padding-left: 33px;
  }

  .team-content img {
    width: 88.64px;
    height: 8px;
  }

  .video-block h2 {
    font-size: 36px;
    line-height: 38px;
    margin: 41px 0 11px;
  }

  .video-block p {
    font-size: 18px;
    line-height: 18px;
    margin-top: 1px;
    width: 407px;
  }

  .video-button {
    margin-top: 39px;
    margin-left: -71px;
    padding-top: 2px;
  }
}

@media only screen and (max-width: 864px) {
  .latest-news {
    height: 1745px;
  }

  .wrapper-news {
    max-width: 580px;
  }

  .latest-news h2 {
    font-size: 36px;
    padding: 51px 0 27px 0;
  }

  .wrapper-news .line {
    margin-bottom: 48px;
  }

  .block3 {
    margin-top: 30px;
  }

  .block4 {
    margin-top: -70px;
  }

  .block5 {
    margin-top: -246px;
    margin-left: 300px;
  }

  .block6 {
    margin-top: 28px;
  }

  .block7 {
    margin-top: -20px;
    margin-right: 3px;
  }

  .block8 {
    margin-top: -142px;
    margin-left: 297px;
  }
}

@media only screen and (max-width: 770px) {
  .container {
    max-width: 768px;
  }

  header .wrapper-block,
  .promo .wrapper-block {
    position: static;
  }

  header {
    padding: 17px 44px;
  }

  .intro {
    height: 465px;
  }

  .intro .owl-theme .owl-dots {
    top: 142px;
  }

  .intro h1 {
    font-size: 60px;
    line-height: 60px;
    padding: 83px 0 28px;
    margin: auto;
    letter-spacing: 0;
  }

  .intro h2 {
    margin: auto;
  }

  .arrows {
    top: 177px;
  }

  .main-button {
    margin-top: 32px;
    padding-top: 6px;
    padding-right: 6px;
  }

  .page-nav img {
    margin-top: 50px;
  }

  .promo {
    height: 187px;
    padding: 61px 0 0 44px;
  }

  .promo h5 {
    font-size: 24px;
    line-height: 24px;
    max-width: 62%;
  }

  .promo p {
    font-size: 16px;
    line-height: 18px;
    margin-top: 18px;
    letter-spacing: 0.7px;
    width: 400px;
  }

  .promo-button {
    top: 69px;
    right: 42px;
  }

  .services {
    height: 1655px;
    justify-content: flex-start;
  }

  .services-content h2 {
    margin-top: -2px;
  }

  .services-content h5 {
    padding: 32px 0 21px;
  }

  .services-content p {
    max-width: 689px;
    padding-top: 25px;
  }

  .services-items {
    height: 770px;
    margin-top: 313px;
  }

  .item {
    width: 50%;
    height: 335px;
  }

  .photo-block .portfolio-photo {
    width: 317.23px;
    height: 282.91px;
  }

  .testimonial {
    height: 410px;
    padding-top: 51px;
  }

  .testimonial h3 {
    line-height: 34px;
    padding: 37px 10px 44px 7px;
  }

  .testimonial h4 {
    padding-bottom: 31px;
  }

  .footer-logo {
    margin-left: 273px;
    margin-top: 15px;
  }

  .footer-content h3 {
    width: 690px;
    padding: 116px 22px 41px 0px;
  }

  table {
    max-width: 690px;
    height: 67.7px;
  }

  i {
    font-size: 22px;
  }

  .widgets {
    flex-wrap: wrap;
    padding: 72px 23px 0 45px;
  }

  .widgets div {
    width: 50%;
    margin-bottom: 36px;
  }

  .copyright a,
  .copyright a:hover {
    right: 13px;
  }
}

@media only screen and (max-width: 716px) {
  .recent-work {
    height: 2288px;
  }

  .portfolio {
    margin-top: 36px;
    justify-content: center;
  }

  .portfolio .portfolio-photo {
    width: 518px;
    height: 460px;
  }

  .recent-work h2 {
    padding-top: 35px;
    padding-bottom: 9px;
  }

  .recent-work p {
    font-size: 20px;
    padding: 19px 20px 18px 0;
  }

  .portfolio-hover {
    width: 89%;
    height: 80%;
    left: 24px;
    top: 21px;
  }

  .portfolio-hover .icon {
    width: 56px;
    height: 56px;
    margin: 0px 3px 0;
  }
}

@media only screen and (max-width: 640px) {
  .container {
    max-width: 640px;
  }

  header {
    padding: 17px 53px;
  }

  .menu-button {
    right: 29px;
  }

  .intro {
    height: 386px;
  }

  .intro h1 {
    padding-top: 59px;
    margin: auto;
  }

  .intro h2 {
    display: none;
  }

  .arrows {
    top: 132px;
  }

  .main-button {
    margin-top: -12px;
    margin-bottom: 3px;
    padding-top: 3px;
  }

  .intro .owl-theme .owl-dots {
    top: 113px;
  }

  .promo {
    height: 254px;
    text-align: center;
    padding: 48px 0;
  }

  .promo-button {
    position: static;
    margin-top: 6%;
  }

  .promo h5 {
    max-width: 100%;
  }

  .promo-content p {
    width: 95%;
    margin: 16px auto 0;
  }

  .services {
    height: 1551px;
  }

  .services-content {
    text-align: center;
    max-width: 559px;
    margin: 20px auto 0;
  }

  .services-content h5 {
    padding: 23px 0 18px;
  }

  .services-content p {
    width: 98%;
  }

  .services-items {
    margin-top: 275px;
  }

  .item {
    height: 310px;
    padding-top: 99px;
  }

  .recent-work img {
    height: 8px;
  }

  .video-block {
    height: 1007px;
  }

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

  .wrapper {
    max-width: 520px;
    display: block;
    text-align: center;
  }

  .video-block .team {
    width: 90%;
    height: auto;
    display: block;
    margin: 46px auto 10px;
  }

  .team-content {
    text-align: center;
    padding-left: 0;
  }

  .video-block h2 {
    margin-top: 48px;
  }

  .video-block p {
    font-size: 16px;
    margin: 32px auto;
    width: 96%;
  }

  .video-button {
    margin: 74px auto 0;
    display: block;
  }

  .latest-news h2 {
    font-size: 48px;
    padding: 46px 0 9px 0;
  }

  .wrapper-news .line {
    margin-bottom: 59px;
  }

  .testimonial h3 {
    font-size: 32px;
    max-width: 552px;
    padding: 39px 4px 44px 26px;
  }

  .footer-logo {
    margin: 22px auto 0;
  }

  .footer-content h3 {
    font-size: 24px;
    line-height: 26px;
    width: 90%;
    padding: 96px 16px 41px 10px;
  }

  table {
    max-width: 560px;
    height: 55px;
  }

  td {
    padding-top: 5px;
    height: 55px;
  }

  i {
    font-size: 17px;
  }

  .widgets {
    padding: 42px 19px 0 37px;
  }

  .widgets div {
    width: 40%;
  }
}

@media only screen and (max-width: 575px) {
  .latest-news {
    height: 2896px;
  }

  .wrapper-news {
    max-width: 280px;
  }

  .latest-news h2 {
    font-size: 24px;
    padding: 37px 0 25px 0;
  }

  .latest-news .line {
    width: 50px;
    height: 8px;
    margin-bottom: 40px;
  }

  .block2 {
    margin-top: 20px;
    margin-bottom: -12px;
  }

  .block4 {
    margin-top: 19px;
  }

  .block5 {
    margin-top: 15px;
    margin-left: 0px;
  }

  .block6 {
    margin-top: 21px;
    margin-bottom: 40px;
  }

  .block8 {
    margin-top: 20px;
    margin-left: 9px;
  }

  .services-items {
    margin-top: 253px;
  }
}

@media only screen and (max-width: 470px) {
  .arrows {
    display: none;
  }
  .services-items {
    margin-top: 231px;
  }
}

@media only screen and (max-width: 535px) {
  .recent-work {
    height: 1384px;
    margin-top: 40px;
  }

  .recent-work h2 {
    font-size: 24px;
    padding-top: 24px;
  }

  .recent-work img {
    width: 50px;
  }

  .portfolio .portfolio-photo {
    width: 280px;
    height: 250px;
  }

  .portfolio-hover {
    height: 73%;
    left: 14px;
    top: 10px;
  }

  .portfolio-hover .icon {
    width: 30px;
    margin: 0;
  }

  .recent-work p {
    font-size: 16px;
    padding: 18px 20px 19px 0;
  }
}

@media only screen and (max-width: 340px) {
  .container {
    max-width: 320px;
  }

  header {
    height: 80px;
    padding: 7px 25px;
  }

  .menu-button {
    right: 20px;
    top: 20px;
  }

  .intro {
    height: 193px;
  }

  .intro h1 {
    font-size: 28px;
    line-height: 28px;
    margin: 0 auto;
    width: 193px;
    padding-top: 44px;
  }

  .intro .main-button {
    display: none;
  }

  .intro .owl-theme .owl-dots {
    top: 17px;
  }

  .page-nav img {
    margin-top: 35px;
  }

  .promo {
    height: 301px;
    padding-top: 40px;
  }

  .promo-content h5 {
    max-width: 280px;
    margin: 0 auto;
  }

  .promo-content p {
    width: 280px;
    margin: 10px auto 0;
  }

  .promo-button {
    margin-top: 11%;
  }

  .services {
    height: 2799px;
  }

  .services-content {
    width: 270px;
  }

  .services-content h2 {
    font-size: 24px;
    letter-spacing: 2px;
    margin-top: 9px;
  }

  .services-content h5 {
    font-size: 20px;
    line-height: 24px;
    padding: 25px 0 0px;
  }

  .services-content p {
    font-size: 15px;
    line-height: 17px;
    width: 270px;
    margin-bottom: 33px;
  }

  .services-content img {
    display: none;
  }

  .services-content .service-line {
    display: block;
    margin: 20px auto;
  }

  .services-items {
    margin: auto;
  }

  .item {
    width: 280px;
  }

  .video-block {
    height: 844px;
  }

  .video-block .team {
    width: 281.08px;
    height: 243.88px;
    margin-top: 19px;
  }

  .video-block h2 {
    font-size: 24px;
    margin-top: 37px;
  }

  .team-content img {
    width: 45px;
    height: 8px;
  }

  .video-block p {
    width: 280px;
    margin-top: 16px;
  }

  .video-button {
    margin-top: 102px;
  }

  .testimonial {
    height: 421px;
  }

  .testimonial h3 {
    width: 275px;
    font-size: 24px;
    line-height: 26px;
    padding: 89px 4px 24px 8px;
  }

  footer {
    height: 1141px;
  }

  .footer-logo {
    margin: 54px 40px 0;
  }

  .footer-content {
    height: 954px;
  }

  .footer-content h3 {
    width: 274px;
    font-size: 20px;
    line-height: 22px;
    padding-top: 104px;
    padding-left: 20px;
    margin: 0 auto;
    width: 319px;
    text-align: center;
  }

  table {
    width: 100%;
  }

  tr {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  td {
    border: none;
    height: 41px;
  }

  i {
    font-size: 24px;
  }

  .widgets div {
    width: 80%;
  }

  .widgets {
    text-align: center;
    padding: 29px 19px 0 64px;
  }

  .copyright {
    height: 142px;
    text-align: center;
    padding-top: 50px;
  }
  .copyright a,
  .copyright a:hover {
    position: static;
  }
}
