/* @font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Light.woff2') format('woff2'), url('../fonts/Montserrat-Light.woff') format('woff');
  font-weight: 300;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2'), url('../fonts/Montserrat-Regular.woff') format('woff');
  font-weight: 400;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2'), url('../fonts/Montserrat-Medium.woff') format('woff');
  font-weight: 500;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2'), url('../fonts/Montserrat-SemiBold.woff') format('woff');
  font-weight: 600;
} */

.page {
  scroll-snap-type: y mandatory;
  overflow: scroll;
  font-family: 'Montserrat', 'Tahoma', sans-serif;
  font-size: 25px;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}

.page__body {
  margin: 0;
  color: #555;
}

.preview-pic {
  display: none;
}

.main-title-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0 25px;
  scroll-snap-align: start;

  background-color: #000;
  background-image: url('../img/content/Main-BG.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  color: #fff;
}

.main-title-page__title,
.section__title {
  font-size: 1.75rem;
  font-weight: 400;
  text-align: center;
}

.main-title-page__title {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 1rem;
}

.main-title-page__subtitle,
.section__subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
}

.header,
.footer {
  display: grid;
  grid-template-columns: repeat(2, 470px);
  align-items: end;
  justify-content: space-between;
  gap: 250px;
  font-size: 0.9rem;
  line-height: 2;
}

.header {
  margin: 4rem 0 0;
}

.footer {
  scroll-snap-align: start;
  padding: 5vh 50px 15vh;
}

.footer,
.footer .nav__link,
.footer .contacts__link {
  color: #555;
}

.nav {
  display: flex;
  flex-direction: column;
}

.nav__link,
.contacts__link {
  position: relative;
  display: block;
  width: max-content;
  color: #fff;
  text-decoration: none;
  /* overflow: hidden; */
  transition: 0.3s;
  font-weight: 500;
  outline: none;
}

.contacts__link {
  overflow: hidden;
}

/* .nav__link::after, */
.contacts__link--underlined::after {
  position: absolute;
  bottom: 10%;
  left: 0;
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transition: 0.3s;
}

.nav__link::before {
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  content: '';
  display: block;
  width: 5px;
  box-sizing: border-box;
  border-style: solid;
  border-color: transparent;
  border-width: 5px;
  border-left-color: currentColor;
  border-right-width: 0;
  background-color: transparent;
  transition: 0.3s;
}

/* .contacts__item:has(.contacts__link:hover), */
.contacts__link:hover {
  margin-left: 8px;
  transform: scaleX(1.1);
}

.nav__link:hover {
  transform: scaleX(1.1);
}

.contacts__link--underlined:hover::after {
  transform: translateX(102%);
}

.nav__link:hover::before {
  transform: translateY(-50%) rotate(90deg);
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts__item {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.contacts__logo {
  display: block;
  height: 1em;
}

.contacts__link {
  font-weight: 400;
}

.section__slide--title-page {
  padding: 0 10px;
}

.section__slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: end;
  height: 100vh;
}

.section__slide:nth-child(1),
.section__slide:nth-child(2),
.section__slide:nth-child(3) {
  scroll-snap-align: start;
}

.section__slide-pic {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.section__slide-pic--after {
  display: none;
}

.show-after-pics .section__slide-pic--after {
  display: block;
}

.show-after-pics .section__slide-pic--before {
  display: none;
}

.page__button {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  background-color: #fff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  opacity: 0;
  bottom: 20px;
  right: 20px;
  transition: 0.5s;
  pointer-events: none;
  cursor: pointer;
}

.page__button svg {
  transform: rotate(90deg);
  width: 60%;
}

.page__button.visible {
  opacity: 1;
  pointer-events: all;
}

.page__button.hover {
  opacity: 0.8;
}

@media (max-width: 1450px) {
  .page {
    font-size: 20px;
  }
  .header,
  .footer {
    gap: 50px;
  }
}

@media (max-width: 1300px) {
  .page {
    font-size: 16px;
  }

  .main-title-page {
    background-position: 45%;
  }

  .header,
  .footer {
    grid-template-columns: repeat(2, 380px);
  }
}

@media (max-width: 1024px) {
  .page {
    font-size: 14px;
  }

  .header,
  .footer {
    grid-template-columns: repeat(2, 320px);
    gap: 20px;
  }

  .footer {
    padding: 70px 20px;
  }
}

@media (max-width: 768px) {
  .page {
    scroll-snap-type: none;
  }

  .main-title-page {
    min-height: 600px;
    height: auto;
  }

  .header,
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    font-size: 1rem;
  }

  .header {
    margin: 40px 0 0;
  }

  .nav,
  .contacts {
    text-align: center;
    align-items: center;
  }

  .nav__title {
    margin: 0.3rem 0;
  }

  .nav__link::before {
    display: none;
  }

  .section__slide {
    height: auto;
    padding: 0 0 10px;
    aspect-ratio: 16 / 9;
  }

  .section__slide--title-page {
    padding: 10px;
    min-height: 350px;
    aspect-ratio: auto;
  }
}
