* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #302e2d;
  color: white;
}

header ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  gap: 40px;
}

header a {
  color: white;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

header a:hover {
  color: #a0a0a0;
  text-decoration: none;
  transform: translateY(-2px);
}

header {
  position: fixed;
  width: 100%;
}

.header-nav a {
  text-shadow: 1px 1px 1px #00000066;
}

/* NAVBAR Improvements */
.header-nav {
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 95%;
  padding: 15px 30px;
  margin: 20px auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.header-nav.active {
  flex-direction: column;
  height: auto;
  padding: 20px;
  background-color: rgba(48, 46, 45, 0.95);
  border-radius: 20px;
  transform: translateX(-50%) translateY(0);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  list-style-type: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.bimg img,
.account-icon {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
  filter: invert(100%);
}
.bimg-custom {
  filter: invert(0%);
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}
.bimg-custom:hover img,
.nav-right a:hover .bimg-custom {
  transform: scale(1.1) translateY(-2px);
}

.bimg:hover img,
.nav-right a:hover .account-icon {
  transform: scale(1.1) translateY(-2px);
  filter: invert(80%);
}

.mod-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mod-info p {
  line-height: 1.4;
  margin-bottom: 5px;
  color: #c0c0c0;
  text-align: center;
}

/* Old Burger Menu - no longer needed */
.burger {
  display: none;
}

.main-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('backgroundhome1.png');
  background-position: center center;
  background-size: cover;
  width: 100%;
  height: calc(100vh - 6.3158rem);
  border-bottom: 1px solid rgb(30, 30, 30);
}

.main-text-banner h1,
.main-text-banner p {
  color: white;
  text-shadow: 1px 1px 1px #0000007a;
  text-align: center;
}

.news {
  border-top: 1px solid rgb(79, 79, 79);
  padding: 20px;
}

.news div {
  color: white;
  text-align: left;
  display: flex;
  margin: 20px;
}

/* --- FOOTER --- */

.c-social-wrapper {
  position: relative;
  overflow: hidden;
  margin: 10px;
  border-radius: 10px;
}

.c-social-blur-bg {
  position: absolute;
  inset: 0;
  background-image: url('backgroundhome.png');
  background-position: center;
  background-size: cover;
  filter: blur(2px);
  opacity: 50%;
  z-index: 0;
}

.c-social {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: white;
}

.footer-info, .footer-socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.footer-socials {
  align-items: center;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* --- NEW MOBILE NAVBAR STYLES --- */
.mobile-nav {
  display: none; /* Скрываем по умолчанию */
}

@media (max-width: 768px) {
  /* Скрываем стандартный верхний navbar на мобильных */
  .header-nav {
    display: none;
  }

  /* Отображаем и стилизуем новый нижний navbar */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
  }
  
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 0.7rem;
    padding: 5px;
    transition: color 0.3s ease;
  }
  
  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: #ffd700;
  }
  
  .mobile-nav a i {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

  .main-banner {
    height: auto;
    padding: 40px 20px;
    padding-top: 80px; /* Adjusted padding to avoid content being hidden */
    text-align: center;
  }

  .main-text-banner h1 {
    font-size: 1.8rem;
  }

  .main-text-banner p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .news div {
    flex-direction: column;
    margin: 10px;
  }

  .c-social {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }

  .footer-info,
  .footer-socials {
    align-items: center;
  }

  .social-icons {
    gap: 15px;
  }
}