.header {
  box-shadow: 0px 1px 5px rgba(90, 86, 86, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 12px;
}
.header-contacts {
  margin-left: auto;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.header-contacts__phone {
  color: #25294a;
  margin: 14px 0 0;
  display: block;
  font-size: 14px;
  font-weight: 500;
  padding-left: 16px;
  margin-top: 0;
  text-decoration: none;
}
.header-contacts__phone:hover {
  color: #007b8c !important;
}
.header-contacts__link {
  color: #25294a;
  font-size: 14px;
  font-weight: 500;
  padding-left: 16px;
  text-decoration: none;
}
@media (max-width: 569px) {
  .header-contacts__link.desktop {
    display: none;
  }
}
.header-contacts__link.mobile {
  display: none;
}
@media (max-width: 569px) {
  .header-contacts__link.mobile {
    display: block;
  }
}
.header-contacts__link:hover {
  color: #007b8c !important;
}
.header-contacts__link img {
  width: 18px;
  height: 19px;
  margin-right: 8px;
  margin-right: 8px;
}
.header-contacts__list {
  position: relative;
}
.header-contacts__list__content {
  max-height: 0px;
  transition: max-height 0.7s;
  overflow-y: hidden;
  position: absolute;
  z-index: 1;
  box-shadow: 0px 1px 13px #9f9494;
  top: 100%;
  right: 0;
  background-color: #f7f8fa;
  display: flex;
  flex-direction: column;
  width: 185px;
  align-items: flex-start;
  border-radius: 8px;
}
.header-contacts__list__content .header-contacts__link {
  padding-bottom: 16px;
}
.header-contacts__list__content .header-contacts__link:first-of-type {
  padding-top: 8px;
}
.header-contacts__list:hover .header-contacts__list__content {
  max-height: 400px;
}

.sectionTitle {
  font-size: 32px;
  font-weight: 700;
  color: #39484F;
  margin: 1.5rem 0;
  text-align: center;
}

.sectionSubTitle {
  font-size: 24px;
  font-weight: 500;
  color: #39484F;
  margin: 1rem 0;
  text-align: center;
}

.footer {
  margin-top: 2rem;
  max-width: 1800px;
  width: 100%;
  background-color: #000000;
  padding: 0.5rem 1.5rem;
}
.footer__copyright {
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  color: #ffffff;
  margin-bottom: 0;
}

.grid-gallery__container {
  max-width: 1426px;
  width: 100%;
  padding: 80px 100px 32px;
}
@media (max-width: 1024px) {
  .grid-gallery__container {
    padding: 80px 60px 32px;
  }
}
@media (max-width: 768px) {
  .grid-gallery__container {
    padding: 80px 16px 32px;
  }
}
.grid-gallery__title {
  text-align: center;
  text-transform: uppercase;
  color: #39484F;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .grid-gallery__title {
    font-size: 24px;
    margin-bottom: 24px;
  }
}
.grid-gallery__list {
  width: 100%;
}
.grid-gallery__list__item {
  background-color: transparent;
  position: relative;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 10px;
  width: 32%;
  height: 300px;
  border: none;
  padding: 0;
  border-radius: 0.25rem;
}
.grid-gallery__list__item:hover {
  box-shadow: 0px 0px 12px #3f3939;
}
.grid-gallery__list__item:first-of-type {
  height: 610px;
}
.grid-gallery__list__item:nth-of-type(3), .grid-gallery__list__item:nth-of-type(6), .grid-gallery__list__item:nth-of-type(9n + 1), .grid-gallery__list__item:nth-of-type(9n + 3), .grid-gallery__list__item:nth-of-type(9n + 6) {
  height: 610px;
}
.grid-gallery__list__item:last-of-type {
  height: 300px;
}
@media (max-width: 1024px) {
  .grid-gallery__list__item {
    width: 49%;
  }
  .grid-gallery__list__item:nth-of-type(3), .grid-gallery__list__item:nth-of-type(6), .grid-gallery__list__item:nth-of-type(9n + 1), .grid-gallery__list__item:nth-of-type(9n + 3), .grid-gallery__list__item:nth-of-type(9n + 6) {
    height: 300px;
  }
  .grid-gallery__list__item:nth-of-type(3n + 1) {
    height: 610px;
  }
  .grid-gallery__list__item:first-of-type {
    height: 610px;
  }
}
@media (max-width: 768px) {
  .grid-gallery__list__item {
    width: 100%;
    height: calc((100vw - 32px - 100px) / 2);
  }
  .grid-gallery__list__item:nth-of-type(3), .grid-gallery__list__item:nth-of-type(6), .grid-gallery__list__item:nth-of-type(9n + 1), .grid-gallery__list__item:nth-of-type(9n + 3), .grid-gallery__list__item:nth-of-type(9n + 6) {
    height: calc((100vw - 32px - 100px) / 2);
  }
  .grid-gallery__list__item:nth-of-type(3n + 1) {
    height: calc((100vw - 32px) / 1.5);
  }
  .grid-gallery__list__item:first-of-type {
    height: calc((100vw - 32px) / 1.5);
  }
}
@media (max-width: 480px) {
  .grid-gallery__list__item {
    width: 100%;
    height: calc(100vw - 32px - 100px);
  }
  .grid-gallery__list__item:nth-of-type(3), .grid-gallery__list__item:nth-of-type(6), .grid-gallery__list__item:nth-of-type(9n + 1), .grid-gallery__list__item:nth-of-type(9n + 3), .grid-gallery__list__item:nth-of-type(9n + 6) {
    height: calc(100vw - 32px - 100px);
  }
  .grid-gallery__list__item:nth-of-type(3n + 1) {
    height: calc(100vw - 32px);
  }
  .grid-gallery__list__item:first-of-type {
    height: calc(100vw - 32px);
  }
}
.grid-gallery__list__item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.25rem;
}
.grid-gallery__list__item__view {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 100%;
  max-width: 200px;
}
.grid-gallery__list__item__sum {
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  position: absolute;
  right: 20px;
  bottom: 20px;
}
@media (max-width: 768px) {
  .grid-gallery__list__item__sum {
    bottom: unset;
    top: 20px;
  }
}
.grid-gallery__list__item__sum img {
  width: 18px;
  height: 16px;
  margin-right: 10px;
}

.gallerySwiper {
  position: relative;
}
.gallerySwiper-slide img, .gallerySwiper-slide iframe {
  width: 100%;
  height: calc(100vh - 175px);
  -o-object-fit: cover;
     object-fit: cover;
}
.gallerySwiper-button-next, .gallerySwiper-button-prev {
  background: rgba(255, 255, 255, 0.2);
  width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 100;
  border-radius: 50%;
}
.gallerySwiper-button-next {
  right: 20px;
  bottom: 36px;
}
.gallerySwiper-button-prev {
  right: 93px;
  bottom: 36px;
}

#galeryPageModal .modal-dialog {
  max-width: 800px;
  min-width: 800px;
}
@media (max-width: 900px) {
  #galeryPageModal .modal-dialog {
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
}
#galeryPageModal .modal-body__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}
#galeryPageModal .modal-body__top__close {
  display: inline-block;
  background-color: transparent;
  border: none;
}