html,
body {
  padding: 0;
  margin: 0;
  height: auto;
  min-height: 100vh;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

.header-content-right-menu-list li {
  position: relative;
}

.header-content-right-menu-list .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-content-right-menu-list .dropdown-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform;
  transition-duration: 300ms;
}

@media (hover: hover) and (pointer: fine) {
  .header-content-right-menu-list li:hover .dropdown-toggle svg {
    transform: rotate(180deg);
  }
}

.header-content-right-menu-list .dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  background-color: #191E32;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 182px;
}

@media (hover: hover) and (pointer: fine) {
  .header-content-right-menu-list li:hover .dropdown-menu {
    display: block;
  }
}

.header-content-right-menu-list .dropdown-menu a {
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  font-family: "Gotham-Pro-Regular", sans-serif;
  transition: color;
  transition-duration: 300ms;
  white-space: normal;
}

@media (hover: hover) and (pointer: fine) {
  .header-content-right-menu-list .dropdown-menu a:hover {
    color: #777F8C;
    background-color: #191E32;
  }
}

.filter-menu {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
  overflow-x: auto;
}

.filter-menu__item {
  flex-shrink: 0;
}

.filter-menu__button {
  background: transparent;
  border: none;
  color: #191E32;
  font-size: 16px;
  line-height: 120%;
  cursor: pointer;
  font-family: 'Roboto-Regular', sans-serif;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 24px;
  transition: background-color 0.3s ease;
  display: flex;
}

.filter-menu__button:hover,
.filter-menu__button:focus,
.filter-menu__button:active {
  color: #191E32;
}

.filter-menu__item.active .filter-menu__button {
  background-color: #B4C6FE;
}

.home__projects {
  margin: 100px 0;
}

.home__projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home__projects-link {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #8C8C8C;
  font-size: 16px;
  transition: color 0.3s ease;
}

.home__projects-link:hover {
  color: #000;
}

.home__projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.home__projects-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.home__projects-item-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.home__projects-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.5s linear;
}

.home__projects-item:hover .home__projects-item-img img {
  transform: scale(1.2);
}

.home__projects-item-category {
  margin-top: 12px;
  display: inline-flex;
  padding: 6px 8px 4px 8px;
  border-radius: 16px;
  background-color: #F0F0F0;
  color: #808080;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.home__projects-item-title {
  margin-top: 8px;
  color: #191E32;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.home__projects-item-title::before {
  content: '';
  position: absolute;
  inset: 0;
}

.home__last-news-content-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #8C8C8C;
  font-size: 16px;
  transition: color 0.3s ease;
  justify-content: end;
  margin-bottom: 24px;
}

.home__last-news-content-link:hover {
  color: #000;
}

.news__gallery {
  margin: 0 auto;
  margin-top: 30px;
}

.news__gallery h2 {
  margin-bottom: 20px;
}

.news__gallery .slick-arrow {
  width: 93px;
  height: 60px;
  background-color: #fff;
  top: inherit;
  bottom: 0;
  background-image: none;
  position: absolute;
  border: 0;
  text-indent: -999999px;
  left: 50%;
  z-index: 10;
  transition: all .15s linear;
}

.news__gallery .slick-prev {
  left: 50%;
  transform: translateX(-100%);
}

.news__gallery .slick-next {
  right: 50%;
  transform: translateX(0);
}

.news__gallery .slick-arrow:after {
  content: '';
  position: absolute;
  width: 33px;
  height: 22px;
  background-image: url(../images/btn-slick.png);
  background-repeat: no-repeat;
  background-position: 0px 0px;
  left: -webkit-calc((100% - 33px) / 2);
  left: calc((100% - 33px) / 2);
  top: -webkit-calc((100% - 22px) / 2);
  top: calc((100% - 22px) / 2);
}

.news__gallery .slick-next:after {
  background-position: -38px 0px;
}

@media (max-width: 993px) {
  .header-content-right-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-content-right-menu-list .dropdown-toggle {
    justify-content: center;
  }

  .header-content-right-menu-list li.active .dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .header-content-right-menu-list .dropdown-menu {
    display: none;
    position: static;
    background-color: transparent;
    z-index: 0;
    margin: 8px 0;
    max-width: 178px;
    float: none;
    text-align: left;
    border: none;
    box-shadow: none;
    flex-direction: column;
    align-items: center;
  }

  .header-content-right-menu-list li.active .dropdown-menu {
    display: flex;
  }

  @media (hover: hover) and (pointer: fine) {
    .header-content-right-menu-list li:hover .dropdown-menu {
      display: flex;
    }
  }

  .header-content-right-menu-list .dropdown-menu a {
    padding: 8px 0px;
    color: #AFAFAF;
    text-align: center;
  }

  .home__projects-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .home__projects-item:nth-child(n+3) {
    display: none;
  }

  .home__projects-item-title {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .news__gallery .slick-arrow {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 0;
    z-index: 10;
    transition: all .15s linear;
    margin: 0;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    background-color: #fff !important;
  }

  .news__gallery .slick-prev {
    left: 0;
  }

  .news__gallery .slick-next {
    left: auto;
    right: 0;
  }

  .news__gallery .slick-arrow:after {
    background-image: url(../images/mobile/slider-arrows.png);
    width: 40px;
    height: 40px;
    background-size: auto 40px;
    left: 0;
    top: 0;
    margin-top: 0;
  }

  .news__gallery .slick-prev:after {
    background-position: 0 0 !important;
  }

  .news__gallery .slick-next:after {
    background-position: -40px 0 !important;
  }
}

@media (max-width: 640px) {
  .home__projects-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .home__projects-item:nth-child(n+2) {
    display: none;
  }
}