body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background: url('../img/bg.webp') no-repeat center center;
    
    background-size: cover;
    overflow-x:hidden ;
  }

  canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
  }
  
  .main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 80px;
}
  
  .left {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .logo {
    width: 140px;
    margin-bottom: 30px;
  }

  
  .pday {
    width: 731px;
    max-width: 100%;
  }
  
  .btn-image {
    width: 379px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 30px;
  }
  
  .btn-image:active {
    transform: scale(0.96);
  }  
  
  .right {
    width: 50%;
  }
  
  .pizza-wheel {
    position: relative;
    width: 879px;
    height: 879px;
    transform: scale(0.85);
    transform-origin: center center;
    margin: 0 0px 0 -50px;
  }
  
  .board {
    position: absolute;
    top: 40px;
    left: -15px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
 }
  
  .slice {
    position: absolute;
    transition: transform 0.3s ease;
    cursor: pointer;
    z-index: 1;
  }
  
  @keyframes floatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.09); }
  }
  
  .slice.random-animate {
    animation-name: floatPulse;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
  }
  
  #popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgb(255 255 255 / 0%);
    z-index: 100;
    display: none; /* покажем через JS */
    justify-content: center;
    align-items: center;
  }
  
  #popupBox {
    background: url(../img/bgpop.webp) no-repeat center center;
    background-size: cover;
    width: 500px;
    min-height: 700px;
    padding: 40px 30px;
    border-radius: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .popup-title {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 30px;
  }

  .close-btn {
    position: absolute;
    top: -5px;
    right: -60px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .close-btn:active {
    transform: scale(0.85);
  }
  
  
  .form-container {
    width: 100%;
    display: flex;
    margin-top: -30px;
    justify-content: center;
}



@media (max-width: 1560px) {
    .main-container {
        padding: 0px 20px;
    }
    .pizza-wheel {
        transform: scale(0.72);
        margin: -30px 0px 0 -50px;
    }
    .pday {
        max-width: 85%;
    }
    .right {
        width: 52%;
    }
}

@media (max-width: 1400px) {
    .left {
        margin-left: -40px;
    }
    .pizza-wheel {
        transform: scale(0.70);
        margin: -30px 0px 0 -130px;
    }
    .right {
        width: 54%;
    }
}

@media (max-width: 1024px) {
    body {
        height: 100%;
    }

    #popupBox {
      background: url(../img/bgpop.webp) no-repeat center center;
      background-size: cover;
      width: 484px;
      min-height: 676px;
      padding: 17px 20px;
      border-radius: 30px;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      z-index: 10;
    }
    .popup-title {
      width: 100%;
      max-width: 400px;
      height: auto;
      margin-bottom: 30px;
      margin-top: 50px;
  }

    .logo {
        width: 105px;
        margin-top: 30px;
    }
    .main-container {
        display: flex;
        flex-direction: column;
    }
    .pday {
        max-width: 100%;
        width: 500px;
    }
    .left {
        width: 100%;
        margin-left: 0px;
        z-index: 10;
    }
    .right {
        width: 768px;
        margin-top: -100px;
    }
    .btn-image {
        width: 212px;
    }
    .pizza-wheel {
        transform: scale(0.70);
        margin: 0 auto;
        margin-left: -50px;
    }
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }
  body {
    height: 100vh;
  }
  .logo {
    width: 62px;
    margin-top: 15px;
    margin-bottom: 10px;
  }
  .main-container {
    padding: 0px 10px;
    overflow-x: hidden;
  }
  .pizza-wheel {
    transform: scale(0.41);
    margin: 0 auto;
    margin-left: -242px;
    margin-top: -440px;
    z-index: 10;
}
.pday {
  max-width: 100%;
  width: 320px;
  }
  .right {
    width: 380px;
    height: 380px;
    margin-top: -275px;
}
  .btn-image {
    width: 159px;
    margin-top: 400px;
}

  #popupBox {
    background: url(../img/bgpopmob.webp) no-repeat center center;
    background-size: contain;
    width: 286px;
    min-height: 470px;
    padding: 25px 20px;
    border-radius: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
  .popup-title {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    margin-top: 10px;
}
.close-btn {
  position: absolute;
  top: -33px;
  right: 1px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
}

@media (max-width: 360px) {
  html {
    overflow-x: hidden;
  }
  body {
    height: 100vh;
  }
  .logo {
    width: 62px;
    margin-top: 15px;
    margin-bottom: 10px;
  }
  .main-container {
    padding: 0px 10px;
    overflow-x: hidden;
  }
 .pizza-wheel {
  transform: scale(0.33);
  margin: 0 auto;
  margin-left: -276px;
  margin-top: -390px;
  z-index: 10;
  }
.pday {
  max-width: 100%;
  width: 320px;
  }
.right {
  width: 320px;
  height: 340px;
  margin-top: -275px;
  }
.btn-image {
  width: 159px;
  margin-top: 315px;
  }

  #popupBox {
    background: url(../img/bgpopmob.webp) no-repeat center center;
    background-size: contain;
    width: 286px;
    min-height: 470px;
    padding: 25px 20px;
    border-radius: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
  .popup-title {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    margin-top: 10px;
}
.close-btn {
  position: absolute;
  top: -33px;
  right: 1px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
}