body{
  margin: 0;
}

.screen-1{
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header{
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 10vh;
  display: flex;
  background-color: #c6824b;
  color: white;
  font-size: 1.5rem;
}

.header a{
  width: 15%;
}

.header img{
  width: 100%;
  height: 100%;
}

.nav{
  display: flex;
  width: 60%;
  justify-content: space-around;
  align-items: center;
}

.contact {
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact a{
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.burger-menu {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.burger-icon {
  width: 100%;
  height: 2px;
  background-color: white;
  margin-bottom: 5px;
}

.menu-list {
  display: none;
  width: 250px;
  opacity: 0.9;
  position: absolute;
  top: 100%;
  left: -50%;
  background-color: #c6824b;
  padding: 10px;
}

.menu-list>div{
    padding: 5px;
}

.menu-list.show {
  display: block;
}

.lang{
  width: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.lang a{
  text-decoration: none;
  color: white;
}

/* Стили для блока 1 */
.block-1 {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
    
.nav div:hover, .contact a:hover, .lang a:hover{
  color: orange;
  cursor: pointer;
}

video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполнение блока видео без искажений */
}

.down {
      position: absolute;
      bottom: 50px;
      font-size: 2rem;
      display: flex;
      align-items: center;
      color: red;
      cursor: pointer;
      justify-content: center;
      padding-left: 40px;
}

.arrow {
      width: 60px;
      height: 60px;
      color: yellow;
      margin-left: 20px;
      animation: arrowAnimation 1s infinite;
}

@keyframes arrowAnimation {
      0% {
        transform: translateY(10px);
      }
      50% {
        transform: translateY(20px);
      }
      100% {
        transform: translateY(10px);
      }
}

.animated-title {
  color: white;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  font-size: 32px;
  animation: increaseSize 2s ease-in-out forwards;
}

/* Анимация для увеличения размера заголовка */
@keyframes increaseSize {
      from {
        font-size: 2rem;
      }
      to {
        font-size: 5rem;
      }
}

.screen-3{
    text-align: center;
    height: 90vh;
    padding-top: 10vh;
}

.screen-3 h1{
height: 5vh;
color: red;
text-align: center;
margin: 0;
padding: 0;
    }

/* Стили для блока 2 */
.block-2 {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  
}
.left-images,
.right-images {
  box-sizing: border-box;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  opacity: 0;
  transition: opacity 1s, transform 5s;
  gap: 10px;
  -webkit-transition: opacity 1s, transform 5s;
  -moz-transition: opacity 1s, transform 5s;
  -ms-transition: opacity 1s, transform 5s;
  -o-transition: opacity 1s, transform 5s;
}

.left-images {
  left: 0;
  -webkit-transform: translateX(-100%);
  -moz-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  -o-transform: translateX(-100%);
  transform: translateX(-100%);
}

.right-images {
  right: 0;
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
}

.image{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 45%;
}

.image img {
  width: 80%;
  max-height: 100%;
}

.screen-2{
  height: 90vh;
  padding-top: 10vh;
  background-color: #f1f1f1;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.description{
  width: 30%;
  overflow: hidden;
}

.description h1{
  color: red;
  font-size: 3vw;
}

.description h3{
  font-size: 2vw;
  color: #c6824b;
}

.team-photo{
  display: flex;
  justify-content: center;
  width: 60%;
  height: 100%;
}

.team-photo img{
  min-width: 100%;
  height: 100%;
}

.screen-2 {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.about-visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(200px);
  transition: opacity 3s ease-in-out, transform 1s ease-in-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.image {
  position: relative;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background-color: rgba(255, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image:hover .overlay {
  opacity: 1;
}

.how {
  width: 20%;
  height: 50px;
  background-color: bisque;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
    opacity: 0;
    pointer-events: none;
}

#container {
  display: flex;
  height: 300vh;
  width: 100%;
}

#left-section {
  width: 30%;
}

#right-section {
  width: 70%;
}

#line-container {
  position: sticky;
  top: 20vh;
  left: 100px;
  transform: translateX(-50%);
  height: 60vh;
  width: 2px;
  background-color: #c6824b;
  margin: 10vh;
}

#line {
  position: relative;
  height: 0;
  background-color: red;
  transition: height 0.3s ease; /* Плавный переход при изменении высоты */
}

.mark {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #c6824b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#mark1 {
  top: 0;
}

#mark2 {
  top: 33%;
}

#mark3 {
  top: 66%;
}

#mark4 {
  top: 100%;
}

#right-section {
  position: relative;
}

#right-section > div {
  width: 80%;
  position: sticky;
  height: 20%;
  top: 50vh;
  transform: translateY(-50%);
  display: none;
  text-align: center;
  font-size: 24px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

#block1 img,
#block2 img,
#block3 img,
#block4 img {
  width: 100%;
  height: 100%;
}

p{
  margin: 0;
  color: red;
}

.screen-4{
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: #f1f1f1;
}

.screen-4 h1{
  color: red;
  
}

.mark span{
  margin-left: 15px;
  font-size: 1rem;
  font-weight: bold;
  color: red;
}

.contact-container {
  display: flex;
 width: 100%;
 height: 100%;
 font-size: 2rem;
}

.contact-info, .contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  width: 50%;
  align-items: center;
}

.contact-section {
  margin-bottom: 10px;
}

.contact-section i {
  margin-right: 10px;
}

.contact-form h2 {
  margin-bottom: 10px;
  color: white;
}

.contact-form input,
.contact-form button {
  margin-bottom: 10px;
}

.block-3 a{
  text-decoration: none;
  color: white;
}

.block-3 i{
  color: white;
}

.block-3{
  height: 100vh;
  background-color: #c6824b;
}

form{
  display: flex;
  flex-direction: column;
  border: 2px solid white;
  width: 40vw;
  height: 70vh;
  font-size: 1.5rem;
  padding: 20px;
  gap: 10px;
}

input, button {
  height: 50px;
  border-radius: 10px;
  border-style: none;
}

textarea {
  border-radius: 10px;
}

button{
  color: #c6824b;
  font-size: 1.5rem;
}

button:hover{
  background-color: orange;
  color: white;
}

.contact-section a:hover{
  color: orange;
}

.contact-section a > i:hover{
  color: orange;
}

#messageStatus{
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.overlay{
  width: 80%;
  color: white;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 768px) {
.header{
   padding-left: 10px;
   padding-right: 40px;
   box-sizing: border-box;
}

.animated-title{
    width: 100px;
}
    
.nav{
  display: none;
}

.nav-menu{
  display: flex;
  width: 33%;
}

.lang{
  display: none;
}

.header a{
  width: 34%;
}

.contact{
  width: 33%;
}

#about{
  flex-direction: column;
}

.description, .team-photo{
  height: 50vh;
  width: 90%;
}

.description h1{
  font-size: 2rem;
}

.description h3{
  font-size: 1.5rem;
}

.left-images, .right-images{
  position: static;
  width: 90%;
  height: 50%;
}

#container{
  justify-content: center;
  height: 150vh;
}

#left-section{
  display: none;
}

#right-section{
  width: 90%;
  display: flex;
  justify-content: center;
}

.block-3{
    height: 90vh;
}

.contact-container{
  flex-direction: column-reverse;
}

.contact-info, .contact-form{
  width: 90%;
  padding: 0;
  margin: 0 auto;
  font-size: 1.5rem;
}

form{
  width: 90%;
  height: 80%;
  font-size: 1rem;
}

#right-section > div{
  width: 100%;
  height: 30%;
}

.overlay{
    opacity: 1;
    width: 100%;
}

.image img {
    width: 100%;
    height: 30vh;
}

.screen-3, .block-2{
    height: 100%;
}

.block-2{
    gap: 10px;
}

.screen-4 h1{
    margin-top: 40px;
}

}