/* =========================
   MOBILE MENU — FINAL
   SoftFlow 3.0
   ========================= */

/* ===== DESKTOP (по умолчанию) ===== */
.burger,
.mobile-menu {
  display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

.header-glow {
  display: none;
}

.mobile-link.active {
  color: var(--act-color);
  font-weight: 600;
}


  /* ---------- HEADER ---------- */

  header {
    position: fixed;
    z-index: 10;
  }

  .header-inner {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
.header-glow {
  pointer-events: none;
}


  /* ---------- LOGO ---------- */
  .logo,
  .header-logo,
  .header-inner img {
    position: relative;
    z-index: 10;
  }

  /* ---------- DESKTOP NAV OFF ---------- */
  .nav {
    display: none !important;
  }

  /* ---------- BURGER ---------- */
  .burger {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  width: 28px;
  height: 22px;
  position: absolute;
  top: 18px;
  right: 16px;
  cursor: pointer;
  z-index: 2000;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #7a4a2a;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s ease;
}




  /* ---------- MOBILE MENU ---------- */
 
.mobile-menu {
  position: fixed;
  top: 100px; /* твой красивый отступ */
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;

  width: 92%;
  border-radius: 22px;

  padding: 20px 0;

  display: flex;
  flex-direction: column;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.4);

  opacity: 0;
  transition: 
    transform 0.5s cubic-bezier(.22,1,.36,1),
    opacity 0.4s ease;

  z-index: 1500;
}


.mobile-menu.open {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}



.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.4),
    rgba(255,255,255,0.1),
    rgba(255,255,255,0.4)
  );

  background-size: 200% 200%;
  animation: mercury 6s ease-in-out infinite;
  pointer-events: none;
}


@keyframes mercury {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.mobile-menu::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.7) 0%,
    rgba(255,255,255,0.1) 40%,
    rgba(255,255,255,0.6) 80%
  );
   opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.mobile-menu.open::after {
  opacity: 0.4;
}
  .mobile-menu a {
    text-decoration: none;
    color: #2b1d14;
    padding: 18px 24px;
    font-size: 18px;
font-weight: 500;
    border-bottom: 1px solid #eee;
border-radius: 18px;
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  }

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

  /* логотип */
  .logo img {
    max-width: 120px;
    height: auto;
  }

  /* бургер */
  .burger {
    position: absolute;
    top: 18px;
    right: 12px;
    z-index: 2001;
  }

.mobile-link {
  displ.mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;

  font-size: 17px;
  font-weight: 500;

  color: #3b2a1f; /* шоколад */
  padding: 16px 0;

  border-bottom: 1px solid rgba(120, 90, 60, 0.15);
}

.sf-icon {
  width: 25px;
  height: 25px;
  color: currentColor;
  opacity: 0.9;
  transition: 0.3s ease;
}

.mobile-link.active {
  color: var(--act-color);
  font-weight: 600;
}

.mobile-link.active .sf-icon {
  opacity: 1;
}


  /* ---------- HERO FIX ---------- */
  .hero,
  .hero * {
    pointer-events: auto;
   
  }
}

/* Мобильная версия — светлый текст hero */

@media (max-width: 768px) {

.hero h1,
.hero-title {
    color: #fff7ee;   /* лунно-белый теплый */
    text-shadow:
        0 0 10px rgba(255, 230, 200, 0.7),
        0 0 20px rgba(255, 210, 170, 0.5);
}

.hero p,
.hero-subtitle {
    color: rgba(255, 245, 235, 0.95);
}

}