* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  line-height: 1.4;
  text-decoration-line: none;
  user-select: none;
}

body {
  width: 100%;
}

.header {
  background-color: rgb(47, 109, 245);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header .nav {
  padding: 15px 20px; 
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
}

.header .nav .logo a {
  font-size: 32px;
  font-weight: 600;
  color: white;
}

.header .nav .logo a:hover {
  border-bottom: 2px solid rgb(255, 255, 255);
  transition: 0.1s ease-in;
}

.header .nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.header .nav .nav-menu a {
  color: white;
}

.header .nav .nav-menu li {
  color: white;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease-in;
  cursor: pointer;
}

.header .nav .nav-menu li:hover {
  border-bottom: 2px solid rgb(255, 255, 255);
  transition: 0.2s ease-in;
}

.menu-checkbox, .menu-icon {
  display: none;
}

.main .intro-section {
  background-image: url(./img/gif/d404a5024bfac366790c5ba8bc9482d6.gif);
  height: 850px;
  width: 100%;
  display: grid;
  color: rgb(255, 255, 255);
  font-size: 30px;
  place-items: center;
  text-align: center;
  position: relative;
  background-color: rgb(47, 109, 245);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.mobile-gif {
  display: none;
}

.main .intro-section .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

.main .intro-section h1 {
  font-size: 96px;
}

.main .intro-section h3 {
  font-size: 32px;
}

.main .intro-section .pulsate-bck {
  font-size: 25px;
  background-color: rgb(47, 109, 245);
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 20px;
  padding: 14px 25px;
  margin-top: -100px;
  margin-bottom: 20px;
  -webkit-animation: pulsate-bck 1.5s ease-in-out infinite both;
  animation: pulsate-bck 1.5s ease-in-out infinite both;
}

@-webkit-keyframes pulsate-bck {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(0.95); transform: scale(0.95); }
  100% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes pulsate-bck {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(0.95); transform: scale(0.95); }
  100% { -webkit-transform: scale(1); transform: scale(1); }
}

.main .about-section {
  background-color: rgb(47, 109, 245);
}

.main .about-section .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  color: white;
  width: 100%;
}

.read-more-check {
  display: none;
}

.more-content {
  display: inline;
}

.read-more-label {
  display: none;
  color: #ffeb3b;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 5px;
}

.main .about-section .container .bea-img {
  margin-top: 20px; 
  margin-bottom: -150px; 
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
}

.main .about-section .container .bea-img img {
  max-width: 90%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main .about-man {
  position: relative;
  padding-top: 180px; 
  display: flex;
  flex-direction: column;
  gap: 50px;
  text-align: center;
  margin-bottom: 50px;
  color: rgb(1, 54, 168);
  max-width: 100%;
}

.members-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; 
  flex-wrap: wrap; 
  padding: 0 40px; 
}

.member-block {
  display: flex;
  align-items: center; 
  gap: 20px;
  flex: 1 1 300px; 
  text-align: left;
}

.member-block img {
  width: 200px; 
  height: 300px; 
  object-fit: cover; 
  border: 1px solid #ccc;
  border-radius: 8px;
}

.member-block p {
  font-size: 14px;
  margin: 0;
  text-align: justify;
  flex: 1;
}

.divider-img {
  height: 150px; 
  width: auto;
  opacity: 0.5;
}

.footer .footer-lower {
  background-color: rgb(28, 90, 223);
  padding: 20px;
  display: flex;
  justify-content: center;
  color: white;
}

@media (max-width: 768px) {
  .header .nav {
    padding: 15px 25px !important;
  }

  .separator {
    display: none;
  }

  .menu-icon {
    display: block;
    font-size: 40px;
    cursor: pointer;
    color: white;
  }

  .header .nav .nav-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgb(47, 109, 245);
    flex-direction: column;
    padding: 20px;
  }

  .menu-checkbox:checked ~ .nav-menu {
    display: flex;
  }

  /* На мобильных гифка показывается как обычное изображение, фон убираем */
  .main .intro-section {
    height: auto; 
    min-height: 0;
    background-image: none; 
    background-color: rgb(47, 109, 245); 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  /* Новый контейнер для позиционирования текста поверх GIF */
  .mobile-hero-container {
    position: relative;
    width: 100%;
  }

  .mobile-gif {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Наложение заголовков на GIF */
  .main .intro-section .intro-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); /* Тень для читаемости */
  }

  .main .intro-section .container {
    padding: 20px;
    gap: 15px;
  }

  .main .intro-section h1 { 
    font-size: 48px; 
    padding-top: 0;
    margin: 0;
  }

  .main .intro-section h3 { 
    font-size: 22px; 
    padding-bottom: 0;
    margin: 0;
  }

  .main .intro-section p {
    background-color: rgb(47, 109, 245);
    padding: 20px;
    font-size: 18px;
    margin-top: 0;
    color: white;
  }
  
  .main .intro-section .pulsate-bck { 
    font-size: 18px;
    padding: 10px 20px;
    margin-top: 10px; 
    margin-bottom: 20px;
    background-color: white; 
    color: rgb(47, 109, 245); 
  }

  .more-content { display: none; }
  .read-more-label { display: inline-block; }
  .read-more-check:checked ~ .more-content { display: inline; }
  .read-more-check:checked ~ .read-more-label { display: none; }

  .main .about-section h2 { 
    font-size: 24px !important; 
    text-align: center !important;
    width: 100%;
    margin-left: 0 !important;
  }
  
  .main .about-section h4 { 
    font-size: 14px !important; 
    padding: 0 20px; 
    text-align: justify; 
  }

  .members-row { flex-direction: column; padding: 0 20px; }
  .member-block { flex-direction: column; width: 100%; }
  .member-block img { order: -1; margin-bottom: 15px; width: 240px; height: 240px; }
  .divider-img { display: none; }

  .about-man h3 {
    font-size: 30px !important; 
  }
}
