html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Не scroll! scroll идёт в scroll-container */
}


body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    color: white;
    scrollbar-width: none;
    -ms-overflow-style: none;    /* Firefox */
    overflow-x: hidden;
  }
  
  /* Chrome, Safari, Edge */
  body::-webkit-scrollbar {
    display: none;
  }
  
  .scroll-container {
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE */
    scrollbar-width: none;    /* Firefox */
  }
  
  .scroll-container::-webkit-scrollbar {
    display: none; /* Chrome */
  }
  
  
  .scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0%;
    background: linear-gradient(90deg, #a48fff, #ffffff);
    box-shadow: 0 0 8px rgba(164, 143, 255, 0.4);
    z-index: 1;
    border-radius: 0 4px 4px 0;
    transition: width 0.15s ease-out;
  }



.navbar {
    width: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    animation: fadeIn 1.5s ease-out;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(120deg, #ffffff, #a48fff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    background-size: 200% auto;
    background-position: -100% center;
    animation: shineText 4s infinite ease-in-out;
}

@keyframes shineText {
    0% {
        background-position: -100% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 100% center;
    }
}



.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 40px;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.nav-glow:hover {
    color: #ffffff;
    text-shadow: 0 0 12px #a48fff;
}

.nav-links a.nav-glow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #a48fff, #ffffff);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nav-links a.nav-glow:hover::after {
    transform: scaleX(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.nav-links a.nav-glow.active::after {
  transform: scaleX(1);
}







.about-section {
  flex: 1 0 auto;
  max-width: 1080px;
  margin: 120px auto;
  padding: 0 24px;
  text-align: center;
  line-height: 1.75;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
}

.about-section p {
  margin: 24px 0;
}

.h-underline {
  width: 140px;
  height: 3px;
  margin: 20px auto 40px;
  background: linear-gradient(to right, #a48fff, #ffffff);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(164, 143, 255, 0.5);
}

.stack-labels {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.stack-labels span {
  background: rgba(164, 143, 255, 0.12);
  color: #a48fff;
  padding: 8px 16px;
  font-weight: 500;
  border: 1px solid rgba(164, 143, 255, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.stack-labels span:hover {
  background: rgba(164, 143, 255, 0.3);
  color: white;
  border-color: #a48fff;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 60px;
  justify-content: center;
}

.about-box {
  background: linear-gradient(145deg, rgba(255,255,255,0.015), rgba(255,255,255,0.03));
  border: 1px solid rgba(164, 143, 255, 0.08);
  border-radius: 18px;
  padding: 32px;
  flex: 1 1 300px;
  max-width: 340px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 transparent;
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.about-box:nth-child(1) { animation-delay: 0.2s; }
.about-box:nth-child(2) { animation-delay: 0.4s; }
.about-box:nth-child(3) { animation-delay: 0.6s; }

.about-box:hover {
  border-color: #a48fff;
  box-shadow: 0 0 20px rgba(164, 143, 255, 0.12);
  transform: translateY(-4px);
}

.about-box h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}





.footer {
  flex-shrink: 0;
  margin-top: 120px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 5% 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;/* важно: центрируем всё по вертикали */
  padding: 0 20px;
  min-height: 120px; /* немного увеличим высоту */
  position: relative;
}


.footer-left .footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  background: linear-gradient(120deg, #ffffff, #a48fff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  background-position: -100% center;
  animation: shineText 6s infinite ease-in-out;
}

.footer-slogan {
  margin: 10px 0 10px;
  line-height: 1; /* Жестко задаём */
  color: rgba(255, 255, 255, 0.4);
}



.footer-lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 120px;
  height: 44px; /* немного выше, чтоб встало на один уровень с текстом слева */
  box-sizing: border-box;
}


.lang-option {
  flex: 1;
  text-align: center;
  font-weight: 600;
  z-index: 2;
  line-height: 44px; /* чтобы текст был по центру */
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.lang-option.active {
  color: #0a0a0a;
}

.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 50%;
  height: 40px;
  background: linear-gradient(135deg, #a48fff, #866fff);
  border-radius: 10px;
  z-index: 1;
  transition: left 0.3s ease;
  box-shadow: 0 0 10px rgba(164, 143, 255, 0.4);
}


.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}




/* Кнопка-гамбургер */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Анимация крестика */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-close {
  display: none;
  font-size: 2rem;
  color: white;
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1001;
  cursor: pointer;
}

@keyframes fadeInLink {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}





@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 1000;
    gap: 20px;
    padding-bottom: 60px;
  }


  .nav-links.show {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    opacity: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0;
    margin: 5px 0;
  }


  .nav-links a:nth-child(1) { animation-delay: 0.2s; }
  .nav-links a:nth-child(2) { animation-delay: 0.4s; }
  .nav-links a:nth-child(3) { animation-delay: 0.6s; }
  .nav-links a:nth-child(4) { animation-delay: 0.8s; }

  .nav-links a:hover {
    color: #a48fff;
    text-shadow: 0 0 10px #a48fff;
  }

  .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #a48fff, #ffffff);
    box-shadow: 0 0 6px rgba(164, 143, 255, 0.6);
  }


  .nav-close {
    display: block;
    position: fixed;
    top: 20px;
    right: 24px;
    font-size: 2.5rem;
    color: white;
    z-index: 1001;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .nav-close:hover {
    transform: rotate(90deg);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }





  .footer-container {
    padding: 0 10px;
  }

  .footer-left .footer-logo {
    font-size: 1.4rem;
  }


  .footer-lang-switch {
    width: 100px;
    height: 44px;
  }

  .lang-option {
    font-size: 0.75rem;
  }

  .lang-slider {
    top: 1px;
    /* width: 49%;
    height: 38px; */
  }


  .footer-slogan{
    font-size: 0.8rem;
    max-width: 200px;
  }

  .footer-bottom {
    font-size: 0.65rem;
    margin-top: 20px;
  }

}
