 /* Навбар */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color:var(--color-palet-pink);
    position: relative;
    z-index: 100;
  }

  .logo {
    font-family: var(--font-family-Cormorant-bold);
    font-size: var(--font-size-large);
  }
  
  /* Обычное меню (видно на десктопе) */
  .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    margin-left: 2rem;
  }
  
  .nav-links a {
    text-decoration: none;
    font-family: var(--font-family-Kurale-normal);
    font-size: var(--font-size-middle);
  }
  
  /* Бургер-меню (скрыто на десктопе) */
  .burger {
    display: none;
    cursor: pointer;
  }
  
  .burger div {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px;
    transition: all 0.3s ease;
  }
  
  /* Основной контент */
  .content {
    transition: transform .5s ease; /* Анимация сдвига */
  }


.desktop-two {
  background: var(--color-palet-pink);
  height: clamp(300px, 90.08vw, 1000px);
}

.products {
  display: flex;
  justify-content: center;
  padding-top: 4rem;
}

.tort {
  display: flex;
  justify-content: center;
}

.tort-img {
  max-width: 85%;
}

.art-tort {
  text-align: center;
}

.art-tort h2 {
  margin-top: 5rem;
  margin-bottom: 0;
}

.art-tort h3 {
  margin-top: 4rem;
  margin-bottom: 0;
}

.art-tort p{
  margin-top: 0;
  font-size: var(--font-size-small);
  font-family: var(--font-family-Kurale-normal);
}

.assortment-tort {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  row-gap: 2.5rem;
  column-gap: 3.5rem;
}

.card {
  justify-items: center;
}

.btn-buy {
  background: #000;
  padding: 6px 50px 6px;
  border-radius: var(--border-radius-small);
  color: #fff;
  border: none;
  transition: var(--transition-duration);
  display: inline-block;
  text-align: center;
  font-family: var(--font-family-Kurale-normal);

  &:hover {
        background: #3a3a3a;
        opacity: 0.9;
        transform: translateY(-.5px);
    }
}

.name-tort {
  font-family: var(--font-family-Kurale-normal);
  font-size: var(--font-size-middle);
  text-align: center;
}

.filling-tort {
  font-family: var(--font-family-Kurale-normal);
  text-align: center;
}

.price-tort {
  font-family: var(--font-family-Kurale-normal);
  font-size: var(--font-size-small);
  text-align: center;
}

@media (max-width: 1024px) {
  .nav-btn {
      font-size: 2em;
      padding-inline: 10px;
      border: none;
      background: var(--color-palet-pink);
      display: block;
      cursor: pointer;
  }
  
  .nav-list {
      display: none;
  }

  .nav-list-a {
      background: var(--color-palet-pink);
      border-bottom: 1px solid #000;
  }

  .nav-list-a-one {
      background: var(--color-palet-pink);
  }

  .drop:hover .nav-list {
      display: block;
      position: absolute;
      top: 53px;
      left: 0;
      right: 0;
  }

  .container {
      padding-inline: 10px;
  }
}

@media (max-width: 1200px) {
  .assortment-tort {
      grid-template-columns: repeat(3, 1fr);
      column-gap: 1rem;
  }
}

@media (max-width: 900px) {
  .assortment-tort {
      grid-template-columns: repeat(2, 1fr);
      column-gap: 1rem;
  }
}

  /* Стили для мобильных */
  @media (max-width: 768px) {
    /* Прячем обычное меню */
    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--color-palet-pink);
      flex-direction: column;
      align-items: center;
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height .5s ease;
    }
  
    .nav-links li {
      margin: 1.5rem 0;
      opacity: 0;
      border-bottom: 1px solid #000;
      transition: opacity 1s ease;
    }
    
    .container {
      padding-inline: 10px;
  }
  
    /* Показываем бургер */
    .burger {
      display: block;
    }
  
    /* Классы для JS */
    .nav-active {
      max-height: 100vh; /* Раскрываем меню */
    }
  
    .nav-active li {
      opacity: 1; /* Показываем пункты */
    }
  
    .content-pushed {
      transform: translateY(48vh); /* Сдвигаем контент вниз */
    }
  
    /* Анимация бургера → крестик */
    .toggle .line1 {
      transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
      opacity: 0;
    }
    .toggle .line3 {
      transform: rotate(45deg) translate(-5px, -6px);
    }
  }

@media (max-width: 460px) {
  .container {
      padding-inline: 10px;
  }
}


.animated-photo {
    opacity: 0;
    transform: translateY(40px) scale(0.98); /* Элемент снизу и чуть меньше */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.1s; /* Небольшая задержка для плавности */
    will-change: transform, opacity; /* Подсказка браузеру для оптимизации */
}

.animated-photo.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

