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

body {
  font-family: Montserrat, sans-serif;
  background: #070f14;
  color: #F1FAFF;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  background: url("../img/background.png");
  background-position: -292px -573px;
  background-repeat: no-repeat;
}

/* Затемнение */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("../img/dark.png") center no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

/* Свет */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("../img/light.png") center no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 2;
}

.hero__mobile {display: none;}

/* ===============Контент============== */
.hero__inner{
  position: relative;
  z-index: 3;
  padding: 70px 0;
  display:flex;
  flex-direction: row;
  justify-content: center;
  /* Расстояние левый блок (кнопки) ↔ hero__right: растёт с шириной окна, до 50px */
  gap: clamp(0px, calc((100vw - 920px) * 0.11), 50px);
}

.hero__right {
  width: 500px;
}

.hero__left{
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 55px;
}

.hero__right{
  z-index: 3;
}

.hero__content{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Макет: ширина 157px, высота по пропорциям исходника 2466×3233; мобилка — правило ниже */
.hero__logo img {
  display: block;
  width: 157px;
  height: auto;
}

.hero__description{
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items:center;
}

.hero__title {
  font-weight: 600;
  font-size: 95px;
  line-height: 126%;
  text-align: center;
  background: linear-gradient(90deg, #a3aaac 0%, #f7f7f7 50.48%, #a3aaac 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text {
  font-weight: 600;
  font-size: 22px;
  line-height: 131%;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ececec;
}

/* ===КНОПКИ===*/
.hero__buttons{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__line img{
  display: block;
}

.hero__btn {
  padding: 37px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
  cursor: pointer;
  font-weight: 500;
  font-size: 22px;
  line-height: 120%;
  text-align: center;
  width: 347px;
  height: 90px;
  border-radius: 20px;
  text-decoration: none;
  outline: none;
}

.hero__btn-icon{
  width: 50px;
  height:50px;
}

.hero__btn-primary{
  color: #f1faff;
  background-color: #0098e8;
  border: none;
}

.hero__btn-primary:hover {
  background-color: #008fd6;
  transform: translateY(-2px);
}

.hero__btn-secondary{
  color: #ededed;
  border: 3px solid #027dc0;
}

.hero__btn-secondary:hover {
  background-color: rgba(0, 172, 255, 0.1);
  transform: translateY(-2px);
  border: 3px solid #ededed;
}

.hero__btn-ghost {
  color: #ededed;
  border: none;
  background: transparent;
  justify-content: center;
  font-size: 18px;
}

.hero__btn-split {
  padding: 0 10px;
  gap: 0;
  justify-content: stretch;
}

.hero__btn-split__half {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  font: inherit;
  line-height: 1.15;
  padding: 8px 4px;
  border-radius: 12px;
  transition: opacity 0.2s, background-color 0.2s;
}

.hero__btn-split__half:hover {
  opacity: 0.92;
  background-color: rgba(255, 255, 255, 0.06);
}

.hero__btn-split__sep {
  flex-shrink: 0;
  opacity: 0.4;
  padding: 0 2px;
  user-select: none;
  font-weight: 400;
}

.hero__right-mobile{
  display: none;
}

/* ======================АДАПТИВ====================*/
@media (max-width: 1440px) {
  .hero__right{
    max-width: 450px;
  }

  .hero__title {
    font-size: 70px;
  }

  .hero__text {
    font-size: 20px;
    letter-spacing: 0.2em;
  }

  .hero__btn {
    width: 300px;
    height: 80px;
    font-size: 20px;
    padding: 30px 25px;
  }

  .hero__btn-ghost {
    font-size: 16px;
  }
}

/*
  Плавный переход 1112px → 1108px (4px по ширине вьюпорта):
  padding 0→60px, margin телефона 0→-48px, gap между колонками → 0.
  Только двухколоночный десктоп (не мобилка ≤920px).
*/
@media (max-width: 1112px) and (min-width: 921px) {
  .hero__inner {
    gap: calc(
      clamp(0px, calc((100vw - 920px) * 0.11), 50px) *
      clamp(0, calc((100vw - 1108px) / 4px), 1)
    );
  }

  .hero__left {
    position: relative;
    z-index: 2;
    padding-left: clamp(0px, calc(15 * (1112px - 100vw)), 60px);
  }

  .hero__right {
    position: relative;
    z-index: 1;
    max-width: none;
    padding-right: clamp(0px, calc(15 * (1112px - 100vw)), 60px);
    margin-left: clamp(-48px, calc(-12 * (1112px - 100vw)), 0px);
  }
}

@media (max-width: 920px) {
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    background: url("../img/mobile.png");
    background-position: left top;
    background-repeat: no-repeat;

  }

  .hero__mobile {
    display: block;
    position: absolute;
    left: 22%;
    transform: translateY(6%);
    top: 8%;
    pointer-events: none;
  }

  .hero__left{
    gap: 540px;
  }

  .hero__right{
    display: none;
  }

  .hero__content{
    z-index: 10;
  }

  .hero__buttons {
    position: relative;
    top: 5%;
    z-index: 10;
    gap: 2px;
    align-items: center;
  }

  .hero__logo img {
    display: none;
  }

  /* Заголовок + подзаголовок — привязка к верху экрана (секция .hero = вьюпорт) */
  .hero__description {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 11;
  }

  .hero__title {
    font-weight: 600;
    font-size: 45px;
    line-height: 126%;
  }

  .hero__text {
    font-size: 16px;
    line-height: 131%;
  }

  .hero__btn {
    font-size: 17px;
    line-height: 120%;
    border-radius: 16px;
    padding: 27px 27px;
    width: 283px;
    position: relative;
    left: -3%;
    height: 73px;
    transition: none;
  }

  /* Без translateY: иначе кнопки рисуются поверх линии в потоке flex */
  .hero__btn-primary:hover,
  .hero__btn-secondary:hover {
    transform: none;
  }

  .hero__btn-primary:hover {
    background-color: #008fd6;
  }

  .hero__btn-secondary:hover {
    background-color: rgba(0, 172, 255, 0.1);
    border: 3px solid #ededed;
  }

  .hero__btn-ghost {
    font-size: 13px;
  }

  .hero__btn-icon {
    width: 40px;
    height: 40px;
  }

  .hero__line {
    position: relative;
    left: -3%;
    flex-shrink: 0;
  }

  .hero__line img {
    width: 44px;
    height: 27px;
    display: block;
    margin: 0 auto;
  }

  .hero__right{
    display: none;
  }
}



