.header {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1;
  background-color: transparent;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 60px;
  width: 80%;
  display: grid;
  grid-template-columns: 1fr auto 1fr; 
  align-items: center;
  border-radius: 0 0 10px 10px;
  padding: 0 20px;
}

.headerNav {
  justify-self: center;
  display: flex;
  gap: 24px;
}

.headerNav a {
  position: relative;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.headerNav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px; /* расстояние от текста до линии */
  width: 0;
  height: 3px; /* толщина линии */
  border-radius:4px;
  background: var(--color-accent-purple); /* твой акцентный цвет */
  transition: width 0.3s ease;
}

.headerNav a:hover::after {
  width: 100%;
}

.headerRight {
  justify-self: end; 
  display: flex;
  align-items: center;
  gap: 16px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* popup */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 3;
  display: flex;            
}

.overlay.open {
  opacity: 0.5;
  visibility: visible;
}

.popupContact {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: var(--color-bg-secondary);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 10;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popupContact.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popupForm{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.popupForm > input[type="text"]{
  padding: 8px;
  background-color: var(--color-bg);
  border: black 1px solid;
  min-width: 300px;
  border-radius: 8px;
  color: white;
}
.popupForm > label{
  margin-top: 8px;
}
.popupForm > button{
  margin-top: 12px;
}
.popupText{
    font-size: 24px;
    background: linear-gradient(90deg, #d000ff 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--shadow-neon-purple);
}
/* tablet and mobile */

.burger {
  display: none;
  position: absolute;  
  right: 20px;         
  top: 50%;            
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 100;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.burgerMenu{
  display: none;
  position: fixed;
  top:0;
  left: 0;
  width: 100vw;
  height: fit-content;
  padding-bottom:40px;
  background-color: var(--color-bg-secondary);
  z-index: 10;
  border-radius: 0 0 50px 50px;
}
.burgerMenuContent{
  display: flex;
  flex-direction: column;
  gap:16px;
  margin:32px 0 0 48px;
}
.burgerNav{
  display: flex;
  flex-direction: column;
  font-size: 20px;
  gap: 8px;
}
.ctaBurger{
  text-align: center;
}
@media screen and (max-width:1024px) {
  .headerRight, .headerNav{
    display: none;
  }
  .burger{
    display: flex;
  }
  .burgerMenu.open{
    display: flex;
  }
}