﻿.mainscreen-inner {
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mainscreen-inner .mainscreen-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.mainscreen-inner .mainscreen-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.mainscreen-inner .mainscreen-info {
  position: relative;
  z-index: 2;
}
.mainscreen-inner .mainscreen-info .mainscreen-title {
  color: #fff;
  font-family: "STIX Two Text";
  font-size: 124px;
  font-style: normal;
  font-weight: 400;
  line-height: 132px;
  margin-bottom: 190px;
  padding: 0 10px;
  text-align: center;
}
@media (max-width: 992px) {
  .mainscreen-inner .mainscreen-info .mainscreen-title {
    font-size: 98px;
    line-height: 111%;
  }
}
@media (max-width: 576px) {
  .mainscreen-inner .mainscreen-info .mainscreen-title {
    font-size: 72px;
  }
}
.mainscreen-inner .mainscreen-info .mainscreen-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}









/* -------------------------------------------------------------
   Основной контейнер: блок с изображением и контентом поверх него
   ------------------------------------------------------------- */
.hero-block {
  position: relative;
  width: 100%;
  /* Высота блока можно подстроить под ваши нужды.
     Если нужен блок на весь экран — используйте 100vh,
     иначе замените на фиксированную (например, 664px) или min-height. */
  height: calc(100vh);
  /*height: 784px;*/
  overflow: hidden;
}

/* -----------------------------------------
   Фоновое изображение: занимает всю ширину
   ----------------------------------------- */
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------
   Слой с текстом и кнопкой поверх изображения (абсолют)
   ------------------------------------------------- */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Размещаем содержимое вертикально: текст сверху, кнопка снизу */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-text {
  margin: 0;
  padding: 22px 20px 0 20px;
  color: #ffffff;
  font-family: "STIX Two Text", serif;
  font-size: 13px;
  line-height: 14px;
  text-align: center;
}

/* ---------------------------------------
   Кнопка "КАТАЛОГ" прижата к низу блока
   --------------------------------------- */
.hero-button {
  margin: 0 auto 31px;
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #141414;
  font-size: 12px;
  border-radius: 1px;
  text-decoration: none;
  line-height: 16px;
  padding: 8px 16px;
  width: 88px;
  height: 32px;
  font-style: normal;
  font-family: "Inter", sans-serif;
  transition: color .3s ease-in, background-color .3s ease-in;
}

/* Состояние наведения для кнопки */
.hero-button:hover {
  color: #fff;
  background-color: #193026;
}

/* --------------------------------------------
   Пример адаптивного медиазапроса для мобильных 
   -------------------------------------------- */
@media (max-width: 1206px) {
  .hero-block {
    height: calc(100vh);
  }
}