/* Общие стили для сайту */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header.header-bg {
  position: relative;
  display: block;
  max-width: 1920px;
  width: 100%;
  height: 240px;
  background: url("../images/zerno-balance.jpg") no-repeat center center !important;
  background-size: cover !important;
  color: #fff;
  padding: 50px 0;
}
.header-main {
  position: relative;
  width: 100%;
  height: auto;
}
.header-main img{
  position: relative;
  width: 340px;
  height: 160px;
}
header h1{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

/* pro nas */
.pro-nas {
  position: relative;
  width: 100%;
  height: auto;
}
.pro-nas h3{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
}
.pro-nas p{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
  border-left: 3px solid #f2f2f2;
}
.pro-nas img{
  position: relative;
  display: block;
  margin: auto;
  width: 100%;
  height: 100%;
}

/* nashi poslugi */
.nashi-poslugi {
  position: relative;
  width: 100%;
  height: auto;
}
.nashi-poslugi h3{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
}
.nashi-poslugi h4{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.3;
}
.nashi-poslugi p{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
  border-left: 3px solid #f2f2f2;
}

/* finansirovanie */
.finansirovanie h2{
  width: 100%;
  height: auto;
  padding-left: 5px;
  padding-bottom: 20px;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
}
.finansirovanie p{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
  border-left: 3px solid #f2f2f2;
}
.finansirovanie li{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
}

/* dogovora */
.dogovora {
  position: relative;
  width: 100%;
  height: auto;
}
.dogovora h2{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
}
.dogovora h5{
  width: 100%;
  height: auto;
  padding: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
}
.dogovora p{
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.2;
  border-left: 3px solid #f2f2f2;
}

/* Стили для переключателя языков */
.lang-switcher {
  width: 200px;
  height: auto;
}
.lang-switcher a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

/* Стили для секций */
.section {
  padding: 50px 0;
}


/* Стили для контейнера с формой */
.form-style {
  position: relative; /* Относительное позиционирование для видео-фона */
  z-index: 1;
  overflow: hidden;
  padding: 50px 0; /* Можно скорректировать отступы по необходимости */
}

/* Контейнер для видеофона внутри .form-style */
.form-style .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Видео будет позади содержимого */
  overflow: hidden;
}

/* Общие стили для видео */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  background-size: cover;
}

/* Горизонтальное видео для десктопов */
.bg-video.desktop {
  width: 100%;
  display: block;
  background-size: cover;
}

/* Вертикальное видео для мобильных устройств скрываем по умолчанию */
.bg-video.mobile {
  display: none;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .bg-video.desktop {
    display: none;
  }
  .bg-video.mobile {
    /* width: 100%; */
    display: block;
    background-size: cover;
  }
}


/* Стили для hero-секции и карусели */
.hero {
  position: relative;
}

/* Стили для описания в карусели */
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 8px;
}
.form-style {
  width: 90%;
  padding: 50px; 
  border-radius: 8px;
  background-color: #424242;
}
footer.footer-bg {
  position: relative;
  display: block;
  width: 100%;
  height: 100px;
  background-color: #000;
  color: #fff;
  padding: 50px 0;
}
footer p{
  width: 100%;
  margin-top: 20px;
  color: #fff;
  height: auto;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 0px 1px 2px #00000054;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  header.header-bg {
    position: relative;
    display: block;
    max-width: 1920px;
    width: 100%;
    height: 150px;
    background: url("../images/zerno-balance.jpg") no-repeat top center !important;
    background-size: cover !important;
    color: #fff;
    padding: 50px 0;
  }
  .header-main img{
    position: relative;
    width: 190px;
    height: 90px;
  }
  header h1{
    width: 100%;
    height: auto;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
  }
  .nashi-poslugi h4{
    width: 100%;
    height: auto;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
    letter-spacing: 1px;
    line-height: 1.3;
  }
  .pro-nas p{
    width: 100%;
    height: auto;
    padding: 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    letter-spacing: 1px;
    line-height: 1.2;
    border-left: 3px solid #f2f2f2;
  }
  .nashi-poslugi p{
    width: 100%;
    height: auto;
    padding: 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    letter-spacing: 1px;
    line-height: 1.2;
    border-left: 3px solid #f2f2f2;
  }
  .section {
      padding: 30px 0;
  }
  footer.footer-bg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
    background-color: #000;
    color: #fff;
    padding: 50px 0;
  }
  footer p{
    width: 100%;
    margin-top: 20px;
    color: #fff;
    height: auto;
    font-size: .7rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0px 1px 2px #00000054;
  }
}


/* welcome page wrapper */
.welcome-page-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; /* Высота равна высоте экрана */
  overflow: hidden;
}
.welcome-page-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.welcome-page-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Настройте прозрачность по необходимости */
  z-index: 1;
}

.welcome-page-wrapper .welcome-page-content-video {
  position: relative;
  z-index: 2; /* Контент поверх видео и оверлея */
  color: #fff;
}

.welcome-page-content-video h1 {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  text-align: center;
  letter-spacing: 1.1px;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px #00000075;
  top: 2rem;
  margin-bottom: 6rem;
}
/* .welcome-page */
.button-welcome-page {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.button-welcome-page a{
text-decoration: none;
}
.welcome-page-flare-button {
  position: relative;
  display: block;
  max-width: 300px;
  width: 100%;
  color: #fff;
  margin: auto;
  border: 0.5px solid #fff;
  letter-spacing: 1.1px;
  font-weight: 500;
  font-size: 1.3rem;
  background-color: #ffffff1f;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
}
.welcome-page-flare-button:hover {
  background-color: #F4F4F4;
  color: #000;
  border: 1px solid gray;
}
.welcome-page-flare-button:active {
  transform: scale(0.95);
}
/* .welcome-page .form end */

/* welcome foot content */
.welcome__foot__content {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  z-index: 1;
}
.welcome__foot__content p {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  text-align: center;
  letter-spacing: 1.1px;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px #00000075;
  top: 1rem;
}
.welcome__foot__content .block__social {
  position: relative;
  display: block;
  width: 140px;
  height: 80px;
  top: 26%;
  left:50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.welcome__foot__content .block__social .telegram {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  margin: auto;
  float: left;
  margin-left: 10px;
}
.welcome__foot__content .block__social .instagram {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  margin: auto;
  float: left;
  margin-left: 10px;
}
/* Оформления иконки */
.custom-telegram,
.custom-instagram {
  font-size: 2.5rem;
  color: #ffffff87;
  transition: color 0.3s ease;
}
/* Цвет при наведении */
.custom-telegram:hover,
.custom-instagram:hover {
  color: #fff;
}
