body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fffefa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  background: #c0d9b8;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: #f7cfe3; }

.menu-logo {
  display: none;
}

footer {
  text-align: center;
  padding: 30px;
  background: #c0d9b8;
  margin-top: auto;
}

.burger {
  display: none; 
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
}

.burger span {
  display: block;
  width: 100%;
  height: 4px;
  background: #444;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .burger.active {
    position: fixed;
    top: 32px;
    transform: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    gap: 30px;
    z-index: 1000;
    transition: transform 0.4s ease;
    transform: translateX(-100%);
    box-sizing: border-box;
    height: 100vh; 
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .menu-logo {
    display: flex !important;
    position: absolute;
    bottom: calc(40px + env(safe-area-inset-bottom)); 
    width: 100%;
    justify-content: center;
  }

  .menu-logo img {
    max-width: 120px;
    height: auto;
    display: block !important;
  }
}