/* ========== Intro Styles ========== */

.Intro {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
  padding-bottom: 200px;
}

.Intro__Bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.98;
}

/* Новый фиксированный контейнер */
.Intro__FixedContainer {
  position: relative;
  max-width: 1280px; /* Фиксированная ширина */
  margin: 0 auto; /* Центрирование по всей странице */
  padding: 0 20px; /* Отступы по краям на мобильных */
  z-index: 3;
}

/* Контент внутри фиксированного контейнера */
.Intro__Content {
  position: relative;
  text-align: left;
  padding-left: 40px; /* Сдвигаем текст влево относительно контейнера */
}

section.Intro .Intro__Title {
  font-family: var(--font-tertiary);
  font-size: 64px;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--color-white);
  max-width: 800px; /* Ограничиваем ширину текста */
  text-align: unset;
}
@media screen and (max-width: 767px) {
  section.Intro .Intro__Title {
  font-family: var(--font-tertiary);
  font-size: 32px;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--color-white);
  max-width: 800px; /* Ограничиваем ширину текста */
  text-align: unset;
}
}
.Intro__Subtitle {
  max-width: 700px;
  margin: 12px 0 24px 0; /* Убираем auto, чтобы был сдвиг влево */
}

section.Intro .Intro__Buttons {
    gap: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: normal;
}

/* Изображение героя - позиционируем относительно фиксированного контейнера */
.Intro__HeroImg {
  position: absolute;
  right: -80px; /* Выступает за пределы контейнера вправо */
  bottom: -100px;
  width: 420px;
  z-index: 1;
}

/* Декоративный элемент - позиционируем относительно фиксированного контейнера */
.Intro__Decor {
  position: absolute;
  left: -300px; /* Выступает за пределы контейнера влево */
  bottom: 20px;
  width: 320px;
  opacity: .6;
  z-index: 1;
}

.Intro__FixedContainer .Case {
  margin: 0;
  position: relative;
}

.Intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(49,21,1,0.7) 75%,
    #311501 100%
  );
}

/* Адаптивность */
@media (max-width: 1400px) {
  .Intro__FixedContainer {
    padding: 0 40px;
  }

  .Intro__HeroImg {
    right: 20px;
    width: 380px;
  }

  .Intro__Decor {
    left: 20px;
  }
}

@media (max-width: 1024px) {
  .Intro__FixedContainer {
    max-width: 100%;
    padding: 0 30px;
  }

  .Intro__Content {
    padding-left: 20px;
  }

  .Intro__HeroImg {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 420px;
    margin: 40px auto 0;
    display: block;
  }

  .Intro__Decor {
    display: none; /* На мобильных скрываем декор */
  }
}

@media (max-width: 768px) {
  .Intro__Content {
    padding-left: 0;
    text-align: center;
  }

  .Intro__Title {
    font-size: 42px;

  }

  .Intro__Subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .Intro__Buttons {
    justify-content: center;
  }
}

section.Intro .Case {
    height: 100%;
    margin-top: 220px;
    position: unset;
}
@media screen and (max-width: 767px) {
  section.Intro .Case {
    height: 100%;
    margin-top: 220px;
    position: unset;
}
}

/* ========== Fixed Button Box ========== */
.fixedbuttonbox {
  position: fixed;
  bottom: 48px;
  left: 24px;
  z-index: 1000;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
}

.phone.Button {
  padding: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  width: 64px;
}

.phone.Button img {
  left: 0px;
  max-width: none;
  max-height: none;
  position: relative;
}

.whatsapp-button-new {
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  min-height: 64px;
  width: max-content;
  font-family: var(--font-main);
  border-radius: var(--border-rad-full);
  transform: scale(1) translateZ(0);
  transition: var(--transition-main);
  will-change: transform;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  display: flex;
  position: relative;
  color: var(--color-black);
  background: var(--color-brand);
  outline: none;
  border: none;
  padding: 17px 30px;
  height: 64px;
}

@media (max-width: 768px) {
  .fixedbuttonbox {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
  }
  .whatsapp-button-new {
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    min-height: 56px;
    width: max-content;
    padding: 14px 24px;
    height: 56px;
  }
}
