/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;

  width: 44px;
  height: 44px;

  background: #f5f5f5;
  border: 1px solid #ebe8f4;
  border-radius: 8px;

  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  z-index: 1100;
}

.menu-toggle:hover {
  background: #ececec;
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle__line {
  width: 22px;
  height: 2px;
  background: #2a254b;
  border-radius: 2px;
  transition: 0.3s;
}

/* Active state (X icon) */
.menu-toggle.active .menu-toggle__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .hero,
  .benefits,
  .products,
  .masonry-gallery,
  .newsletter,
  .about {
    padding: 60px 20px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: white;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: white;
    padding: 80px 20px;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .benefits__list,
  .products__list {
    grid-template-columns: 1fr 1fr;
  }

  .masonry__container {
    column-count: 1;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: center;
  }

  .input {
    max-width: 300px;
    width: 100%;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 575px) {

  .benefits__list,
  .products__list {
    grid-template-columns: 1fr;
  }

  .h1 { font-size: 28px; }
  .h2 { font-size: 24px; }
  .h4 { font-size: 18px; }
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 56px;
  height: 56px;

  border-radius: 50%;
  background: var(--color-primary-dark);
  color: white;

  border: none;
  font-size: 22px;
  font-weight: bold;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;

  z-index: 2000; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:active {
  transform: scale(0.9);
}

