@font-face {
  font-family: "din";
  src: local("din"), url("../assets/din.woff") format("woff");
}

@font-face {
  font-family: "din-light";
  src: url("../assets/DINOffcPro-Cond.woff");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.intro-wrapper {
  display: flex;
  align-items: center;
  height: 100dvh;
  overflow: hidden;
  font-family: "din";
  color: white;
  min-width: 100vw;
  min-height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  background: url("../assets/intro_bg.jpg") 0 0 / cover no-repeat;
}

.intro-wrapper__left {
  flex: 0.5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  padding: 30px 0 30px 60px;
  max-height: 800px;
}

.intro-wrapper__photo {
  display: none;
}

.text-wrapper__title {
  font-weight: 700;
  font-size: 60px;
  line-height: 113%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.text-wrapper__subtitle {
  font-family: "din-light";
  font-weight: 400;
  font-size: 32px;
  line-height: 119%;
  margin-bottom: 50px;
}

.mobile-text {
  display: none;
}

.text-wrapper__text {
  flex: 1;
  font-family: "din-light";
  font-weight: 400;
  font-size: 28px;
  line-height: 136%;
  letter-spacing: 0.01em;
  max-width: 400px;
}

.intro-wrapper__right {
  flex: 1;
}

.intro-wrapper__right img {
  width: 100%;
}

.text-wrapper button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../assets/intro_button_bg_hover_3.png") 0 0 / contain no-repeat;
  min-width: 230px;
  height: 55px;
  letter-spacing: 0.01em;
  position: relative;
}

.text-wrapper button::before {
  content: "Вдохновиться";
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  font-size: 32px;
  line-height: 20px;
  min-width: 230px;
  height: 55px;
  position: absolute;
  top: -4px;
  left: -4px;
  transition: 0.2s ease;
  background: url("../assets/intro_button_bg_hover_2.png") 0 0 / contain no-repeat;
  text-transform: uppercase;
}

.text-wrapper button:hover::before {
  top: 0;
  left: 0;
}

.text-wrapper button {
  transform: scale(1.3) translateX(30px);
}

@media screen and (max-width: 769px) and (orientation: portrait) {
  body {
    background: url("../assets/intro_mobile_bg.png") 0 0 / cover no-repeat;
  }
  .intro-wrapper__left {
    padding: 60px 20px;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-width: 100vw;
    max-height: initial;
  }
  .text-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
  }
  .intro-wrapper__photo {
    display: block;
  }
  .intro-wrapper__photo img {
    width: 100%;
  }
  .intro-wrapper__right {
    display: none;
  }
  .text-wrapper__title {
    font-size: 40px;
    margin-top: 0;
  }
  .text-wrapper__subtitle {
    font-size: 22px;
    margin-bottom: 0;
  }
  .text-wrapper__text {
    font-size: 16px;
    display: none;
  }
  .mobile-text {
    display: block;
  }
  .text-wrapper button {
    transform: initial;
  }
}

@media screen and (max-height: 600px) and (orientation: portrait) {
  .intro-wrapper__left {
    max-height: initial;
  }
  .text-wrapper {
    row-gap: 0;
  }
  .text-wrapper button {
    transform: initial;
  }
}

/* Для альбомной ориентации */

@media screen and (max-height: 560px) and (orientation: landscape) {
  .intro-wrapper__left {
    padding: 30px 0 30px 30px;
    max-height: initial;
  }
  .intro-wrapper__photo {
    display: none;
  }
  .text-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
  }
  .text-wrapper__title {
    font-size: 40px;
  }
  .text-wrapper__subtitle {
    font-size: 22px;
    margin-bottom: 0;
  }
  .text-wrapper__text {
    font-size: 16px;
    display: block;
  }
  .mobile-text {
    display: none;
  }
  .text-wrapper button {
    transform: initial;
  }
}

@media screen and (max-height: 321px) and (orientation: landscape) {
  .intro-wrapper__left {
    max-height: initial;
  }
  .text-wrapper {
    row-gap: 0;
  }
  .text-wrapper button {
    transform: initial;
  }
}
