
/*                                                          Стили для секции #HEADER */
/* Общие стили для заголовка */
/* базовые стили */
/* Оформление header */

header {
  background-color: #fff;
  height: 100px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Оформление логотипа */
.container {
  max-width: 800px;
  width: 100%; /* изменено с 80% */
  margin: 0 auto;
}

nav ul.menu li:last-child {
  margin-right: 0;
}

.logo {
  margin-left: 20px;
}

.logo img {
  max-height: 60px;
  
}

/* Оформление меню */

nav ul.menu {
  display: flex;
  list-style: none;
  margin-right: 20px;
  font-family: 'Nasalization', sans-serif;
}

nav ul.menu li {
  margin-left: 30px;
  font-size: 18px;
}

nav ul.menu li a {
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
}

nav ul.menu li a:hover {
  color: #ff7b00;
}

/* Оформление кнопки меню */

.menu-toggle {
  background-color: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 20px;
  margin-right: 20px;
}

/* Оформление иконок социальных сетей */

.social-icons {
  list-style: none;
  display: flex;
  margin-right: 20px;
}

.social-icons li {
  margin-left: 20px;
}

.social-icons a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #ff7b00;
}
/* Оформление мобильного меню */


@media screen and (max-width: 757px) {

header {
  height: auto;
  padding: 10px;
}

nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 998;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul.menu {
  flex-direction: column;
}

nav ul.menu li {
  margin: 10px 0;
  font-size: 18px;
  text-align: center;
}

nav ul.menu li a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 10px;
}

nav ul.menu li a:hover {
  color: #ff7b00;
}

.menu-toggle {
  display: block;
}

.header-info {
  display: none;
}

/* Отображение мобильного меню при нажатии на кнопку */

header.open nav {
  display: block;
}

}
/* Оформление мобильного меню */

/* Оформление мобильного меню */
@media screen and (max-width: 767px) {
header, nav {
  box-sizing: border-box;
}
header {
  height: auto;
  padding: 10px;
}
nav.menu {
  display: none;
  position: absolute;
  bottom: 0; /* изменено с top: 60px */
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 998;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto; /* добавлено */
}
nav.menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
}
nav ul.menu li {
  margin: 10px 0;
  font-size: 18px;
  text-align: center;
}
nav ul.menu li a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 10px;
}
nav ul.menu li a:hover {
  color: #ff7b00;
}
.menu-toggle {
  display: block;
}
.header-info {
  display: none;
}
/* Оформление иконок социальных сетей */
.social-icons {
  list-style: none;
  display: flex;
  margin-right: 20px;
  justify-content: center;
}
.social-icons li {
  margin-left: 20px;
}
.social-icons a {
  color: #000000fd;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  color: #ff7b00;
}
/* Отображение мобильного меню при нажатии на кнопку */
header.open nav {
  display: block;
}
}
/* Скрытие изображения мобильного меню на десктопной версии сайта */

@media screen and (min-width: 730px) {

.menu-toggle {
  display: none;
  margin-right: 20px;
}

} 

/*                                                          Стили для секции #banner */
body {
  margin: 0;
  padding: 0;
}

/* Стилизация секции-баннера */
#banner {
  position: relative; /* относительное позиционирование */
  height: 800px; /* задаем высоту секции */
  overflow: hidden; /* скрываем все, что выходит за пределы блока */
  object-fit: cover;
}
#banner::before {
  content: "";
  background-image: url("POV.gif"); /* добавляем ссылку на анимированный GIF-файл */
  background-size: cover;
  background-position: bottom;
  position: absolute; /* абсолютное позиционирование */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: -1; /* отображаем элемент под контентом */
}

/* Стилизация наложения */
#banner .overlay {
  position: absolute; /* абсолютное позиционирование */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; /* позволяет дочерним элементам выстраиваться в ряд */
  flex-direction: column; /* задаем направление выстраивания - сверху вниз */
  justify-content: center; /* выравнивание по вертикали */
  align-items: center; /* выравнивание по горизонтали */
  background-color: rgba(0, 0, 0, 0.5); /* добавляем полупрозрачный черный фон */
  color: #fff; /* задаем цвет текста */
  text-align: center; /* центрируем текст */
  padding: 20px; /* добавляем отступы вокруг текста и кнопки */
}
/* Стилизация видеофайла */
#banner video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover; /* скрываем края, которые не помещаются */
  object-position: bottom; /* показываем только нижнюю часть видео */
}

/* Стилизация наложения */
#banner .overlay {
  position: absolute; /* абсолютное позиционирование */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; /* позволяет дочерним элементам выстраиваться в ряд */
  flex-direction: column; /* задаем направление выстраивания - сверху вниз */
  justify-content: center; /* выравнивание по вертикали */
  align-items: center; /* выравнивание по горизонтали */
  background-color: rgba(0, 0, 0, 0.5); /* добавляем полупрозрачный черный фон */
  color: #fff; /* задаем цвет текста */
  text-align: center; /* центрируем текст */
  padding: 20px; /* добавляем отступы вокруг текста и кнопки */
}

/* Стилизация заголовка */
#banner h2 {
  font-size: 2.5rem; /* задаем размер шрифта */
  margin-bottom: 2rem; /* добавляем небольшой отступ снизу */
}

/* Стилизация кнопки */
#banner .button {
  display: inline-block;
  background-color: #ff7b00;
  color: #ffffff;
  font-size: 1rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: none;
  transition: all 0.3s ease; /* плавный переход при наведении */
}

/* Стилизация кнопки при наведении */
#banner .button:hover {
  background-color: #fff;
  color: #000000;
  cursor: pointer;
}


@media screen and (max-width: 767px) {
  #banner {
    height: 60vh;
  }

  #banner video {
    width: 100%;
    height: auto;
    min-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
  }
}

  /* Стили для секции #about */
  #about {
    padding: 4rem 0;
    text-align: center;
    
  }
  
  #about h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  #about ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  #about li {
    margin: 1.5rem;
    flex-basis: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #about i {
    color: #ff7b00;
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  #about p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  
  /*                                                ОСНОВНЫЕ СТИЛИ ЮРЛИЦА*/

/* Общие стили */

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

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Стили для блоков секций */

section {
  padding: 60px 0;
}

section h3 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 30px;
  color: #ff7b00;
}

section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

section li {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

section li i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 24px;
}

/* Стили для блока контактов */

#contacts {
  background-color: #f7f7f7;
  
}

#contacts ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#contacts li {
  margin: 0 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  
}

#contacts li i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}
/* Section partnership */
#partnership.animate__animated.animate__fadeInLeft {
  animation-duration: 1s;
  animation-delay: 0.5s;
}

#services.animate__animated.animate__fadeInRight {
  animation-duration: 1s;
  animation-delay: 0.5s;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Section Services */
#services {
  background-color: #f2f2f2;
  padding: 50px;
  margin: 50px 0;
  text-align: center;
}

#services h3 {
  color: #ff7b00;
  font-size: 32px;
  margin-bottom: 30px;
}

#services ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#services li {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: center;
}

#services li i {
  font-size: 24px;
  margin-right: 15px;
}

/* Section Partnership */
#inc {
  background-color: #fff;
  padding: 50px;
  margin: 50px 0;
  text-align: center;
}

#inc h2 {
  color: #ff7b00;
  font-size: 32px;
  margin-bottom: 30px;
}

#inc ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#inc li {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
}

#inc li i {
  font-size: 24px;
  margin-right: 15px;
}


/* Медиа-запросы для оптимизации под мобильные устройства */

@media screen and (max-width: 767px) {

  section h2 {
    font-size: 28px;
  }

  section li {
    font-size: 16px;
    margin-bottom: 5px;
    padding-left: 25px;
  }

  section li i {
    font-size: 20px;
  }

  #contacts li {
    margin: 0 10px;
    font-size: 16px;
    line-height: 1.4;
  }

  #contacts li i {
    font-size: 20px;
    margin-bottom: 5px;
  }

}

  
  
  /*                                                ОСНОВНЫЕ СТИЛИ ЮРЛИЦА*/


  /*                                      FOOTER */
#footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background-color: #333;
  color: #fff;
  font-size: 14px;
}
.footer a {
  color: #fff;
  text-decoration: none;
}
.footer {
  flex-basis: 40%;
  text-align: center;
  margin-bottom: 20px;
  flex-direction: column;
}

navig {
  order: 1;
  flex-basis: 30%;
  
}

navig ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

navig ul li {
  margin-bottom: 10px;
}

navig ul li a {
  color: #fff;
  text-decoration: none;
}

navig ul li a:hover {
  text-decoration: underline;
}

.copy {
  flex-basis: 30%;
  text-align: right;
}

@media screen and (max-width: 768px) {
  
  navig {
    order: 1;
    flex-basis: 100%;
    text-align: center;
  }
  .footer {
    flex-basis: 100%;
    flex-direction: column;
  }

  .copy {
    flex-basis: 100%;
    text-align: center;
    order: 2;
    margin-top: auto;
  }
}

#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background-color: #ff7b00;
  border: none;
  border-radius: 10%;
  opacity: 0.3 ;
  visibility: hidden;
  z-index: 999;
  cursor: pointer;
  transition: visibility 0s, opacity 0.5s ease;
}

#scroll-to-top:hover {
  opacity: 1;
}

#scroll-to-top i {
  color: #fff;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
}

/* Показываем кнопку только после прокрутки на 100px */
@media screen and (min-width: 768px) {
  #scroll-to-top {
    visibility: visible;
  }
}

/* Для мобильных устройств показываем кнопку всегда */
@media screen and (max-width: 767px) {
  #scroll-to-top {
    visibility: visible;
  }
}
/*                                                               ДЛЯ СТРАНИЦЫ ПРЕИМУЩЕСТВА */
/* Стили для advantage-item */
.advantage-item {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto; /* центрируем блоки по горизонтали */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 80%;
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.advantage-item i {
  color: #ff7f00;
  margin-bottom: 15px;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
  .advantage-item {
      width: 100%; /* расширяем блоки на всю ширину экрана на мобильных устройствах */
  }
}

/*                                                               ДЛЯ СТРАНИЦЫ ПРЕИМУЩЕСТВА */

