body {
  margin: 0;
  font-family: sans-serif;
}

.first-block {
  width: 100vw;
  min-height: 100vh;
  height: auto;
  background-image: url("../resources/images/new_back_block1.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  position: relative;
  display: flex;
  flex-direction: column;
}

header {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  box-sizing: border-box;
}

.suplar-logo-header {
  max-width: clamp(180px, 14vw, 280px);
  height: auto;
}

.head-btn {
  display: flex;

  padding: clamp(0.3rem, 0.6vw, 0.7rem) clamp(1rem, 2vw, 2rem);
  background-color: transparent;
  color: #1d1410;

  border: clamp(0.1rem, 0.15vw, 0.2rem) solid #1d1410;
  border-radius: 999px;
  font-family: "Manrope Medium", sans-serif;

  font-size: clamp(0.9rem, 1.1vw, 1.3rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;

  will-change: transform, opacity;
}

.head-btn:hover {
  background-color: #1d1410;
  color: #dae8eb;
}

.head-btn.scrolling {
  transform: scale(0.95);
  opacity: 0.8;
}

.title-container {
  display: flex;
  justify-content: space-between;
  align-items: last baseline;

  padding: 2rem 5%;
  padding-top: clamp(5vh, 10vh, 15vh);
  margin-top: clamp(15vh, 42vh, 45vh);
  width: 100%;
  overflow: visible;
}

.first-block-title {
  flex: 1;
  font-family: "KingRichard-Italic", sans-serif;
  font-size: clamp(3rem, calc(1rem + 6vw), 10rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  color: #ff7300;
  text-transform: uppercase;
  margin: 0;

  will-change: transform, opacity;
}

.subtitle-container {
  display: flex;
  margin-left: auto;
  padding: 2rem 5%;
}

.first-block-subtitle {
  flex-shrink: 0;
  font-family: "Manrope Medium", sans-serif;
  font-size: clamp(0.8rem, 1.4vw, 1.6rem);
  color: #ff7300;

  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: left;
  margin: 0;

  display: inline;
  white-space: pre-line;

  will-change: transform, opacity;
}

.text-animate-segment {
  display: inline !important;
  white-space: normal !important;
  overflow: visible !important;
}

.first-block-subtitle .text-animate-segment {
  white-space: pre-line !important;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}


/* for small laptops */
@media screen and (min-resolution: 120dpi) and (max-width: 1600px) {
  .title-container {
    margin-top: 25vh;
    padding-top: 20vh;
  }

  .first-block-title {
    font-size: clamp(3rem, calc(1rem + 6vw), 10rem);
    line-height: 1;
  }

  .first-block-subtitle {
    font-size: clamp(0.8rem, 1.4vw, 1.6rem);
    line-height: 1.3;
  }
}



/* For tablets */
@media (max-width: 768px) {
  header {
    padding: 1.5rem 4%;
  }

  .head-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .hero-title {
    padding-top: 20vh;
  }

  .hero-subtitle {
    max-width: 60%;
    text-align: right;
  }
}

@media (min-width: 431px) and (max-width: 768px) {
  .title-container {
    margin-top: 22rem;
  }
}

@media (max-width: 600px) {
  .first-block {
    background-image: url("../resources/images/back_mob1_test.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;

    position: relative;
    text-align: center;
    overflow: hidden;
    overflow-x: hidden;
  }

  .first-block::after {
    background-image: none;
  }

  .header {
    width: 100vw;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: clamp(1.2rem, 4vw, 2.2rem) 0 clamp(0.4rem, 2vw, 0.8rem) 0;
    gap: clamp(0rem, 1vw, 0.7rem);
    background: transparent;
    border: none;
    padding-bottom: 1rem;
  }
  .suplar-logo-header {
    display: block;
    margin: 0 auto;
    max-width: 135px;
    height: auto;
  }
  .head-btn {
    position: absolute;
    left: 50%;
    bottom: 2.5em;
    transform: translateX(-50%);
    font-size: clamp(0.97rem, 2.8vw, 1.05rem);
    padding: 0.7rem 1.4rem;
    border: 2px solid #dbe7ea;
    color: #dbe7ea;
    background: transparent;
    z-index: 10;
    margin: 0;
  }

  .head-btn:active {
    background-color: #1d1410;
    color: #dae8eb;
  }

  .title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    padding: 0 clamp(0.2rem, 3vw, 0.5rem);
    margin: 0;
    margin-top: clamp(20rem, 25vh, 40rem);
    margin-bottom: clamp(1vh, 4vw, 2vh);
  }

  .first-block-title {
    font-size: 3.125rem;
    color: #ff7300;
    margin-bottom: 0rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    font-family: "KingRichard-Italic", sans-serif;
  }
  .first-block-subtitle {
    font-size: 0.875rem;
    color: #ff7300;
    line-height: 1.5;
    font-family: "Manrope Medium", sans-serif;
    margin-bottom: 0.7rem;
    text-align: center;
    padding: 0;
    padding-bottom: 1rem;
  }
}

/* 11 */
@media only screen and (width: 414px) and (height: 896px) and (-webkit-device-pixel-ratio: 2) {
  .title-container {
    margin-top: 20rem;
  }

  .head-btn {
    position: absolute;
    left: 50%;
    bottom: 2.5em;
    transform: translateX(-50%);
    font-size: clamp(0.97rem, 2.8vw, 1.05rem);
    padding: 0.7rem 1.4rem;
    border: 2px solid #dbe7ea;
    color: #dbe7ea;
    background: transparent;
    z-index: 10;
    margin: 0;
  }
}

/* 11 Pro Max */
@media only screen and (width: 414px) and (height: 896px) and (-webkit-device-pixel-ratio: 3) {
  .title-container {
    margin-top: 22rem;
  }
}

/*iPhone 14 Pro Max*/
@media only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) {
  .title-container {
    margin-top: 22rem;
    padding-bottom: 2rem;
  }

  .head-btn {
    bottom: 5rem;
  }
}

/* iphone 16 Pro Max */
@media only screen and (-webkit-min-device-pixel-ratio: 3),
  only screen and (-min--moz-device-pixel-ratio: 3),
  only screen and (-o-min-device-pixel-ratio: 3/1),
  only screen and (min-device-pixel-ratio: 3) {
  .title-container {
    margin-top: 18rem;
    padding-bottom: 0rem;
  }

  .head-btn {
    bottom: 3.2rem;
  }
}


/* iphone 16 pro */
@media only screen and (min-width: 402px) and (-webkit-device-pixel-ratio: 3) {
  .title-container {
    margin-top: 20rem;
  }

  .head-btn {
    position: absolute;
    left: 50%;
    bottom: 2.5em;
    transform: translateX(-50%);
    font-size: clamp(0.97rem, 2.8vw, 1.05rem);
    padding: 0.7rem 1.4rem;
    border: 2px solid #dbe7ea;
    color: #dbe7ea;
    background: transparent;
    z-index: 10;
    margin: 0;
  }
}

/* 14 */
@media only screen and (width: 390px) and (height: 844px) and (-webkit-device-pixel-ratio: 3) {
  .title-container {
    margin-top: 20rem;
  }
}

/* 14 Plus */
@media only screen and (width: 428px) and (height: 926px) and (-webkit-device-pixel-ratio: 3) {
  .title-container {
    margin-top: 22rem;
  }
}

/* iPhone SE */
@media only screen and (width: 375px) and (height: 667px) and (-webkit-device-pixel-ratio: 2) {
  .title-container {
    margin-top: 14rem;
  }
}
