      * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --orange: #E85D26;
            --red: #C41E2A;
            --dark-red: #8B1A1A;
            --yellow: #FFFB84;
            --white: #FFFFFF;
            --dark: #454545;
        }
html {
    overflow-x: hidden !important;
    width: 100%;
}
/* ===== ШРИФТЫ ===== */
@font-face {
    font-family: 'SegScript'; /* Уникальное имя, чтобы не путать с системным */
    src: url('../font/segoe-script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
        body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #E85D26 0%, #D4441E 20%, #C41E2A 50%, #A01820 80%, #8B1A1A 100%);
    color: var(--white);
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    left: 0;
    background: linear-gradient(90deg, #ff9e3b 0%, #FF8C42 30%, #e55e35 50%, #cd2727 100%);
        }
.hero-particles {
            position: absolute;
            inset: 0;
            overflow: hidden;
        }

        .hero-particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            animation: particleFloat linear infinite;
        }

        @keyframes particleFloat {
            0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
        }

.cookie-notice{
    position: fixed;
    bottom: 40px;
    right: 50%;
    background: rgb(28 28 28 / 74%);
    color: rgb(255, 255, 255);
    padding: 20px 20px;
    z-index: 9999;
    display: block;
    box-shadow: rgba(0, 0, 0, 0.3) 0px -4px 20px;
    backdrop-filter: blur(11px);
    border-radius: 20px;
    transform: translate(50%, 0);
    width: fit-content;
    display: none;
}
/*==========================ЛЕГЕНДАРНАЯ ПИЦЦА=============================*/

.hero_text .letter {
  display: inline-block;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.6s ease;
  transition-delay: calc(var(--i) * 0.05s);
}

/* Когда шрифты загружены - показываем */
.fonts-loaded .hero_text .letter {
  transform: translateY(0);
  opacity: 1;
}

/* Hover эффект */
.hero_text .big-results-wrap:hover .letter {
  transform: translateY(-12px);
}
.hero_text .big-results-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.hero_text .big-results {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 220px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  user-select: none;
  white-space: nowrap;
  font-size: calc(220 / 1920 * var(--vw));
}

.hero_text .big-results-line {
  display: flex;
  justify-content: center;
  white-space: nowrap;
  margin-bottom: 10px;
}

.hero_text .letter {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: calc(var(--i) * 0.03s);
}

.hero_text .big-results-wrap:hover .letter {
  transform: translateY(-12px);
}

.hero_text .letter.space {
  width: 0.3em;
}
/*==========================ЛЕГЕНДАРНАЯ ПИЦЦА=============================*/




.hero_text_now {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 20px 0;
}

.hero_text_now-line {
  display: flex;

  justify-content: center;
  gap: 18px;
  line-height: 1.1;
  white-space: nowrap;
}

.hero_text_now .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.1;
}

.hero_text_now .word > span {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 70px;
  color: var(--yellow);
  text-transform: uppercase;
  line-height: 1.1;
  transform: translateY(118%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 0.12s);
  font-size: calc(70 / 1920 * var(--vw));
}

/* Когда добавлен класс visible — поднимаем на место */
.hero_text_now.visible .word > span {
  transform: translateY(0);
}

/* Для tree-word — span должен быть flex чтобы div.tree встал нормально */
/* Маска для tree-word — такая же как у обычных слов */
.hero_text_now .tree-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 1.1;
    height: 1em;
}

.hero_text_now .tree-word > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1em; /* высота как у других слов */
    transform: translateY(118%);
    background: transparent !important;
    line-height: 1.1;
}

.hero_text_now.visible .tree-word > span {
    transform: translateY(0);
}

/* SVG иконка — размер через vw */
.hero_text_now .tree-word .tree {
    width: calc(44 / 1920 * var(--vw));
    height: calc(67 / 1920 * var(--vw));
    background-image: url(../img/3.svg);
    background-size: cover;
    display: block;
    flex-shrink: 0;
}





.btn-primarys {
color: var(--dark) !important;
    padding: 12px 18px;
    border-radius: 60px;
    font-size: 16px !important;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: solid 0px white;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    will-change: transform;
    background: linear-gradient(270deg, #ffffff 10%, #efefef 70%);
    width: fit-content;
    min-height: 64px;
}



/*==========================остальные картинки=============================*/



/* Начальное состояние — скрыто */
.hero-content,
.hero-image,
.scroll-hint {
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* Когда добавлен класс visible — плавно показываем */
.hero-content.visible,
.hero-image.visible,
.scroll-hint.visible {
    opacity: 1;
}
/*==========================остальные картинки=============================*/















/*==========================SSSSLIIIDERRR=============================*/
.hero_grad{
  display: none;
}
.bigcarusel {
    position: relative;
    width: 100vw;
    left: -4vw;
    top: -70px;
}
  /* ───── ambient background ───── */
  .bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 60% at 50% 50%, rgba(93,120,236,.12) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 30% 70%, rgba(200,80,180,.08) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 75% 30%, rgba(60,200,220,.08) 0%, transparent 60%);
  }

  /* ───── slider viewport ───── */
  .slider-viewport {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
  }
  .slider-viewport.grabbing { cursor: grabbing; }

  /* ───── 3D stage ───── */
  .slider-stage {
    position: relative;
    width: 420px;
    height: 540px;
    transform-style: preserve-3d;
        pointer-events: none;
  }

  /* ───── single slide ───── */
  .slide {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow:
      0 25px 70px rgba(0,0,0,.55),
      0 0 0 1px rgba(255,255,255,.06);
    will-change: transform, opacity;
    transform-origin: center center;
    transition: box-shadow 0.2s ease;
  }

  /* Hover эффект для интерактивных карточек */
  .slide.interactive:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, .55), 0 0 0 3px #fffb84, 0 0 20px rgba(255, 68, 68, 0.4);
    cursor: pointer;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
  }

  /* glossy reflection on each card */
  .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(
      135deg,
      rgba(255,255,255,.18) 0%,
      transparent 45%,
      transparent 55%,
      rgba(0,0,0,.12) 100%
    );
    pointer-events: none;
  }


canvas#tubeCanvas {
    position: absolute;
    top: -300px;
    left: -30px;
    width: calc(100% + 50px);
    height: calc(100% + 600px);
    transform: translate(0px, 0%);
    overflow: visible;
  }



  /* slide caption */
  .slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 50px 24px 22px;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    pointer-events: none;
  }
  .slide-caption h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 4px;
  }
  .slide-caption p {
    font-size: .82rem;
    opacity: .7;
    font-weight: 400;
  }
.slide-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.slide.interactive .slide-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Показываем что можно кликнуть */
.slide.interactive .slide-image-wrapper {
    cursor: pointer;
}
  /* ───── navigation arrows ───── */
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, border-color .25s, transform .25s;
  }
  .nav-btn:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-50%) scale(1.08);
  }
  .nav-btn:active { transform: translateY(-50%) scale(.95); }
  .nav-btn.prev { left: 28px; }
  .nav-btn.next { right: 28px; }

  /* ───── pagination dots ───── */
  .pagination {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 40px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.08);
  }
  p.desc-text {
    max-width: 590px;
    margin: auto;
    text-align: center;
    position: relative;
    width: 100vw;
    top: -30px;
}
  .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: all .35s cubic-bezier(.4,0,.2,1);
  }
  .dot.active {
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,.5);
    transform: scale(1.35);
  }
  .dot:hover:not(.active) {
    background: rgba(255,255,255,.5);
  }

  /* ───── counter ───── */
  .counter {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .12em;
    opacity: .5;
  }
  .counter span { opacity: 1; font-weight: 700; font-size: 1.1rem; }

  /* ───── SETTINGS PANEL ───── */
  .settings-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 360px;
    max-height: 92vh;
    overflow-y: auto;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    font-size: 13px;
        transform: translateX(calc(100% + 30px));
  }
  
  .settings-panel::-webkit-scrollbar {
    width: 6px;
  }
  .settings-panel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
  }
  .settings-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
  }

  .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .settings-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
  }

  .settings-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .settings-toggle:hover {
    background: rgba(255,255,255,0.2);
  }

  .settings-panel.hidden {
    transform: translateX(0);
    transition: transform 0.3s ease;
  }

  .setting-item {
    margin-bottom: 16px;
  }

  .setting-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
  }

  .setting-value {
    color: #5d78ec;
    font-weight: 600;
    font-family: 'Courier New', monospace;
  }

  .setting-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.1);
    outline: none;
    -webkit-appearance: none;
  }

  .setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5d78ec;
    cursor: pointer;
    transition: transform 0.1s;
  }

  .setting-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }

  .setting-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5d78ec;
    cursor: pointer;
    border: none;
  }

  .setting-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .setting-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
    font-weight: 600;
  }

  .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #5d78ec;
    cursor: pointer;
  }

  .checkbox-wrapper label {
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    user-select: none;
  }

  .info-text {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    font-style: italic;
  }

  .row-block {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
  }

  .row-block-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
  }

  /* ──── responsive ───── */
  @media (max-width: 600px) {
    .slider-stage { width: 400px;  }
    .nav-btn { width: 40px; height: 40px; font-size: 1.1rem; }
    .nav-btn.prev { left: 10px; }
    .nav-btn.next { right: 10px; }
    .settings-panel {
      width: 280px;
      right: 10px;
      top: 10px;
    }
  }

/*==========================SSSSLIIIDERRR=============================*/





        /* ===== HEADER ===== */
        .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background: rgba(0, 0, 0, 0.1); */
    backdrop-filter: blur(10px);
        }

        .header-logo {
display: flex;
    align-items: center;
    gap: 8px;
    background-image: url(../img/logo.svg);
    background-size: cover;
    width: 103px;
    height: 40px;
        }

        .header-logo .ninja-label {
            font-size: 10px;
            font-weight: 700;
            color: var(--red);
            background: var(--white);
            padding: 2px 6px;
            border-radius: 3px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .header-logo .pizza-text {
            font-size: 28px;
            font-weight: 900;
            color: var(--white);
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .header-nav {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .header-nav a {
            color: var(--white);
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
            transition: opacity 0.3s;
        }

        .header-nav a:hover {
            opacity: 0.7;
        }

.header-btn {
    background: #ffffff26;
    color: var(--white);
    border: 1px solid #ffffff1f;
    padding: 13px 16px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    
    /* ✅ GPU-ускорение ПОСТОЯННО (не только на hover!) */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* ✅ Плавный переход */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease;
}

.header-btn:hover {
    /* ✅ translate3d форсирует GPU-рендеринг */
    transform: translate3d(0, 0, 0) scale(1.05);
    box-shadow: 0 4px 15px rgb(203 16 14);
}
.molnia{
 display: flex;
    align-items: center;
    gap: 8px;
    background-image: url(../img/molnia.png);
    background-size: cover;
    width: 103px;
    height: 40px; 
}
/* ===== ИСПРАВЛЕННЫЙ БУРГЕР ===== */
.burger {
    display: none; /* Скрыт на десктопе */
    flex-direction: column;
    justify-content: center; /* <-- ВАЖНО: центрируем содержимое по вертикали */
    align-items: center;     /* <-- ВАЖНО: центрируем по горизонтали */
    width: 30px;
    height: 24px;            /* Высота под 3 линии с отступами */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;           /* Поверх меню (999) */
    position: relative;
}

/* Общие стили для всех линий */
.burger span,
.burger span::before,
.burger span::after {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    position: absolute; /* <-- ВАЖНО: абсолютное позиционирование для точного контроля */
    left: 0;
}

/* Центральная линия (сам span) */
.burger span {
    top: 50%;
    transform: translateY(-50%);
}

/* Верхняя линия */
.burger span::before {
    content: '';
    top: 11px; /* Прижат к верху кнопки */
}

/* Нижняя линия */
.burger span::after {
    content: '';
    bottom: 11px; /* Прижат к низу кнопки */
}

/* === АНИМАЦИЯ В КРЕСТИК === */
.burger.active span {
    background-color: transparent; /* Средняя исчезает */
}

.burger.active span::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg); /* Поворот в центре */
}

.burger.active span::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg); /* Поворот в центре */
}
/* Показываем бургер только на мобильных */
@media (max-width: 990px) {
    .burger {
        display: flex;
    }
    .header-nav {
        display: none;
    }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 26, 26, 0.98);
    z-index: 999; /* Ниже чем бургер (1002) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}    /* ===== HERO SECTION ===== */
        .hero {
padding: 80px 4% 40px;
    position: relative;
    max-width: 100vw;
    overflow-x: hidden;


        }

        .hero-content {
    max-width: 600px;
    z-index: 2;
    height: fit-content;
    max-height: 400px;
    min-width: 440px;
        }
.hero-space {
position: relative;
    display: flex;
    justify-content: space-between;
}
.hero-image {
    position: relative;
    height: 400px;
}
        .hero-title {
    font-size: 220px;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 20px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: end;
        }

.title_1 {
    width: fit-content;
}
.title_icon {
    display: flex;
    align-items: center;
    width: fit-content;
}
.hero_text {
    margin: auto;
    width: fit-content;
}

        .hero-title .ninja-icon {
display: inline-block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
    background-image: url(../img/ninja.png);
    background-size: cover;
        }

.sub_text2 {
    display: flex;
    gap: 25px;
}
.tree{
    width: 54px;
    height: 82px;
    background-image: url(../img/3.svg);
    background-size: cover;


}
     .hero-subtitle {
            font-size: 70px;
            font-weight: 700;
            color: var(--yellow);
            text-transform: uppercase;
            margin-bottom: 20px;
            line-height: 1.1;
            font-size: calc(70 / 1920 * var(--vw));
        }

        .hero-desc {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 30px;
            max-width: 500px;
            opacity: 0.9;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
div#pizza {
    height: 80px;
}
        .btn-primary {
color: var(--dark);
    padding: 22px 28px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: solid 0px white;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    will-change: transform;
    background: linear-gradient(270deg, #ffffff 10%, #efefef 70%);
   width: fit-content;
       min-height: 64px;
        }

        .btn-primary:hover {
             will-change: transform;
            transform: scale(1.05);
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }

        .btn-secondary {
              min-height: 64px;
background: #ffffff26;
    color: var(--white);
    border: 1px solid #ffffff63;
    padding: 14px 28px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
        }

        .btn-secondary:hover {
            background: var(--white);
            color: var(--dark);
        }

        .hero-image {
/*            position: absolute;
            right: 5%;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;*/
        }

.hero-image .vending-machine {
    width: 579px;
    height: 874px;
    position: relative;
    transform: translate(-25%, -25%) perspective(800px) rotateY(0deg) rotateX(0deg);
    
}
.ven-btn{
  display: none;
}

.vending{
  height: 100%;
  width: 100%;
  display: block;
  background-image: url(../img/pizzamat.png);
  background-size: cover;
      position: absolute;
      z-index: 4;

}

        .vending-machine .screen {
            position: absolute;
            top: 30px;
            left: 30px;
            right: 30px;
            height: 200px;
            background: #222;
            border-radius: 10px;
            border: 3px solid var(--yellow);
        }

        .vending-machine .slots {
            position: absolute;
            top: 250px;
            left: 20px;
            right: 20px;
            bottom: 80px;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            padding: 10px;
        }

        .vending-machine .slot {
            background: #444;
            border-radius: 5px;
            border: 1px solid #555;
        }

        .vending-machine .dispenser {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 40px;
            background: #222;
            border-radius: 5px;
            border: 2px solid var(--yellow);
        }


        .fly_pizza_1{
            height: 243px;
            width: 252px;
            background-image: url(../img/1P.png);
            transform: translate(-260px, 150px);

        }
                .fly_pizza_2{
            height: 293px;
            width: 312px;
            background-image: url(../img/2P.png);

                transform: translate(590px, 10px);
        }
                .fly_pizza_3{
            height: 344px;
            width: 287px;
            background-image: url(../img/3P.png);

                transform: translate(-400px, -60px);

        }

        /* Flying pizzas */
        .flying-pizza {
            position: absolute;
            width: 100px;
            height: 100px;
            background: var(--yellow);
            border-radius: 50%;
            opacity: 0.8;
            animation: float 6s ease-in-out infinite;
            display: none;
        }

        .flying-pizza:nth-child(1) {
            top: 15%;
            right: 20%;
            animation-delay: 0s;
        }

        .flying-pizza:nth-child(2) {
            top: 40%;
            right: 5%;
            animation-delay: 2s;
            width: 80px;
            height: 80px;
        }

        .flying-pizza:nth-child(3) {
            top: 60%;
            right: 25%;
            animation-delay: 4s;
            width: 120px;
            height: 120px;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(10deg); }
        }

        .scroll-hint {
            position: absolute;
            bottom: 30px;
            right: 0px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
           
            animation: bounce 2s infinite;
        }

        .scroll-hint .arrow {
            width: 30px;
            height: 30px;
            border: 2px solid var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(10px); }
        }

        /* ===== SECTION: NOT ORDINARY ===== */
        .section-not-ordinary {
            padding: 80px 40px;
            text-align: center;
            overflow-x: hidden;
        }
.space_opacity{
    height: 300px;
}
        .section-title {
    font-size: 120px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
        line-height: auto;
        z-index: 50;
    position: relative;
    font-size: calc(120 / 1920 * var(--vw));
        }

        .section-title .highlight {
            color: var(--yellow);
        }

.section-title-script {
     font-family: 'SegScript', cursive; /* Используем наше уникальное имя */
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    display: block;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.4s; /* появляется когда заголовок уже наполовину выплыл */
    z-index: 50;
    position: relative;
}

.section-title.visible + .section-title-script,
.section-title-script.visible {
    opacity: 1;
}














/* Маска для каждого слова в .section-title */
.section-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
  height: 1em;
}

/* Внутренний span — изначально сдвинут вниз за маску */
.section-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 0.1s);
}

/* Когда заголовок полностью во вьюпорте — поднимаем слова */
.section-title.visible .word > span {
  transform: translateY(0);
}






















        .section-not-ordinary .desc-text {
            max-width: 700px;
            margin: 0 auto;
            font-size: 16px;
            line-height: 1.7;
            opacity: 0.9;
        }

        /* ===== SECTION: HOW IT WORKS ===== */
        .section-how {
             padding: 100px 0px;
            text-align: center;
            /*overflow: hidden;*/
        }


        .steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: -70px;
    padding-bottom: 100px;
        }

/*        .steps-line {
    position: absolute;
    top: 50%;
    left: 0%;
    right: 5%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--white) 0px, var(--white) 10px, transparent 10px, transparent 20px);
    opacity: 0.4;
    transform: translateY(-50%);
    width: 100%;
        }*/

        .step-card {
    width: fit-content;
    padding: 10px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: -11px 7px 30px 0px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
    max-width: 404px;
    will-change: transform;
    
        }



        .step-card:nth-child(even) {
            margin-top: 60px;
        }

        .step-card:nth-child(odd) {
            margin-top: 0;
        }
.all_steps_cards {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  gap: var(--steps-gap, 20px); /* CSS переменная вместо фиксированного gap */
  transform-style: preserve-3d;
  /*transition: gap 0.1s linear; /* плавное изменение */*/
}





.card_fl1{

}


.card_fl2{

}

.card_fl3{

}

.card_fl4{

}

.step-card.card_fl1 {
    transform: rotate(3deg);
    border: solid 1px #e3e3e3;
}

.step-card.card_fl2 {
        transform: translate(-11px, 50px) rotate(-8deg);
        border: solid 1px #e3e3e3;
}

.step-card.card_fl3 {
    transform: rotate(0deg);
    border: solid 1px #e3e3e3;
}

.step-card.card_fl4 {
    transform: translate(10px, 60px) rotate(5deg);
    border: solid 1px #e3e3e3;
}


.step-card.card_fl1:hover {
    transform: rotate(3deg) translate(0px, 0px) translateZ(10px) scale(1.09)!important;
    box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}
.step-card.card_fl2:hover {
    transform: rotate(-8deg) translate(-11px, 50px) translateZ(10px) scale(1.09)!important;
        box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}
.step-card.card_fl3:hover {
    transform: rotate(0deg) translate(0px, 0px) translateZ(10px) scale(1.09)!important;
        box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}
.step-card.card_fl4:hover {
    transform: rotate(5deg) translate(10px, 60px) translateZ(10px) scale(1.09)!important;
        box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}


        .step-card .step-image {
width: 324px;
    min-width: 324px;
    height: 314px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    border-radius: 8px;
        }

.step_1{
background-image: url(../img/card/1.jpg);
}
.step_2{
background-image: url(../img/card/2.jpg);
}
.step_3{
background-image: url(../img/card/3.jpg);
}
.step_4{
background-image: url(../img/card/4.jpg);
}
        .step-card .step-content {
    padding: 15px 0px;
    text-align: left;
    color: var(--dark);
        }

        .step-card .step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
        }

        .step-card .step-desc {
    font-size: 16px;
    line-height: 1.4;
    color: #555;
    max-width: 220px;
        }

        .step-card .step-number {
            position: absolute;
            bottom: 10px;
            right: 15px;
            font-size: 28px;
            font-weight: 900;
            color: #b1b1b1;
            opacity: 0.8;
        }

        /* ===== SECTION: SPECIAL PIZZA ===== */
        .section-special {
            padding: 80px 40px;
            text-align: center;
        }


.pizza-all{
    height: 546px;
    min-width: 546px;
    width: 546px;
    background-image: url(../img/many_pizza.png);
    background-size: cover;
}
.pizza-all::before {
    content: '';
    display: block;
    height: 546px;
    width: 546px;
    background-image: url(../img/many_line.png);
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transform-origin: center center;
    animation: rotateCircle 70s linear infinite;
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

        .special-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    margin-top: -60px;
        }

        .special-image {
            
            position: relative;
        }

        .special-image .pizza-stack {

            position: relative;
        }

        .pizza-circle {
            width: 250px;
            height: 250px;
            border-radius: 50%;
            background: linear-gradient(135deg, #D4441E, #C41E2A);
            position: absolute;
            border: 4px solid var(--yellow);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: white;
        }

        .pizza-circle:nth-child(1) {
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 3;
        }

        .pizza-circle:nth-child(2) {
            top: 60px;
            left: 20%;
            z-index: 2;
        }

        .pizza-circle:nth-child(3) {
            top: 100px;
            right: 10%;
            z-index: 1;
        }

        .special-features {
  
    text-align: left;
    display: flex;
    margin-top: 130px;
        }

        .feature-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
     opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
        }
/* Класс для активации анимации */
.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для каждого столбца */
.feature-item.featitem_1.visible {
    transition-delay: 0.1s;
}

.feature-item.featitem_2.visible {
    transition-delay: 0.3s;
}

.feature-item.featitem_3.visible {
    transition-delay: 0.5s;
}
        .feature-icon {
            width: 60px;
            height: 60px;
            min-width: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
.ficon_1{
     background-image: url(../img/pizza_icon.svg);
    background-size: cover;   
}
.ficon_2{
     background-image: url(../img/snow_icon.svg);
    background-size: cover;   
}
.ficon_3{
     background-image: url(../img/rock_icon.svg);
    background-size: cover;   
}






.feature-item.featitem_2 {
    margin-top: 160px;
    margin-left: 40px;
}


.feature-item.featitem_3 {
    margin-top: -60px;
    margin-left: -50px;
}
















        .feature-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
        }

        .feature-text p {
font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    width: 266px;
        }

        /* ===== SECTION: WHY PIZZEMAT ===== */
        .section-pizzemat {
            padding: 80px 40px;
            text-align: center;
        }




        .pizzemat-content {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            gap: 40px;
            align-items: center;
        }

        .pizzemat-image {
            background-image: url(../img/pizzamat_2.png);
            height: 609px;
            width: 488px;
            min-width: 488px;
        }

        .pizzemat-image .machine-placeholder {
            width: 280px;
            height: 400px;
            background: linear-gradient(135deg, #333, #111);
            border-radius: 15px;
            border: 3px solid var(--yellow);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            margin: 0 auto;
        }
.pizz_1{
 background-image: url(../img/pizz_1.svg);
}
.pizz_2{
 background-image: url(../img/pizz_2.svg);
}
.pizz_3{
 background-image: url(../img/pizz_3.svg);
}
.pizz_4{
 background-image: url(../img/pizz_4.svg);
}
        .pizzemat-features {
            flex: 1;
            text-align: left;
        }

        .pizzemat-grid {
display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
        }

        .pizzemat-feature-card {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 16px;
            padding: 30px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s;
        }

        .pizzemat-feature-card:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-3px);
        }

        .pizzemat-feature-card .pf-icon {
            width: 40px;
            height: 40px;
            min-width: 40px;
       background-size: cover;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .pizzemat-feature-card .pf-text {
            font-size: 18px;
            font-weight: 700;
            line-height: 1.3;
        }

.pizzemat-step1 {
    display: flex;
    gap: 15px;
}
.pizzemat-step2 {
    display: flex;
    gap: 15px;
}
.p-f-card1 {
    width: 260px;
    height: fit-content;
}
.p-f-card2 {
    width: 360px;
    height: fit-content;
}
.p-f-card3 {
    width: 300px;
    height: fit-content;
}
.p-f-card4 {
    width: 320px;
    height: fit-content;
}
        .pizzemat-desc {
            font-size: 14px;
            line-height: 1.7;
            opacity: 0.9;
            margin-bottom: 40px;
        }

        .pizzemat-quote {
border-left: 3px solid var(--yellow);
    padding-left: 20px;
    font-size: 18px;
    font-style: italic;
    opacity: 0.9;
    font-weight: 700;
    padding-top: 10px;
    padding-bottom: 10px;
}
        

        /* ===== SECTION: BE FIRST ===== */
        .section-be-first {
            padding: 80px 40px;
            text-align: center;
        }




        .be-first-content {
margin: 0 auto;
    display: flex;
    width: fit-content;
        gap: 40px;
        align-items: center;
        }

        .qr-code {
            width: 475px;
            min-width: 475px;
            height: 475px;
            background: var(--white);
            border-radius: 56px;
            margin: 0 auto 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0px;
        }
.gift{
   background-image: url(../img/gift_btnblack.svg);  
   width: 25px;
   min-width: 25px;
   height: 25px;
   background-size: cover;
       margin-bottom: 4px;
}
.giftwt{
   background-image: url(../img/gift.svg);  
   width: 25px;
   min-width: 25px;
   height: 25px;
   background-size: cover;
       margin-bottom: 4px;
}
.btn-secondary:hover .giftwt{
   background-image: url(../img/gift_btnblack.svg);
}
        .qr-code .qr-placeholder {
background-image: url(../img/qrcode.svg);
    width: 100%;
    height: 100%;
    background-size: cover;
    overflow: hidden;
    border-radius: 60px;
        }

.scan
{
width: 100%;
    height: 80px;
    opacity: 0.5;
    background: linear-gradient(#FFEB3B, transparent);
    animation: scanning 2.0s linear alternate infinite;
}

@keyframes scanning
{
  0%{transform: translatey(0%);}
  100%{transform: translatey(500%);}
}

.be_right {
width: fit-content;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
        .be-first-desc {
font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
    padding: 20px;
    background-color: #ffffff12;
    border-radius: 20px;
    border: solid 1px #ffffff3d;
        }

        .steps-list {
            text-align: left;
            max-width: 400px;
                margin-bottom: 20px;
            
        }

        .steps-list .step {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        .yellow{
            color: var(--yellow);
         
        }

        .steps-list .step-num {
           
            font-weight: 900;
        }

        /* ===== FOOTER ===== */
        .footer {
            background: #1c1c1c;
            padding: 40px;
        }

        .footer-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 40px;
        }

        .footer-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .footer-logo .ninja-label {
            font-size: 10px;
            font-weight: 700;
            color: var(--red);
            background: var(--white);
            padding: 2px 6px;
            border-radius: 3px;
            text-transform: uppercase;
        }

        .footer-logo .pizza-text {
            font-size: 24px;
            font-weight: 900;
            color: var(--white);
        }

        .footer-tagline {
            font-size: 14px;
            opacity: 0.7;
            margin-top: 5px;
            margin-top: 20px;
        }

        .footer-center {
            text-align: center;
        }

        .footer-phone {
            font-size: 24px;
            font-weight: 900;
            color: var(--white);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .footer-socials {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            opacity: 0.7;
        }

        .footer-socials a {
            color: var(--white);
            text-decoration: none;
            width: 30px;
            height: 30px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }

        .footer-socials a:hover {
            background: rgba(255,255,255,0.3);
        }

        .footer-right {
            text-align: right;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .footer-links a {
            color: var(--white);
            text-decoration: none;
            font-size: 13px;
            opacity: 0.6;
            transition: opacity 0.3s;
        }

        .footer-links a:hover {
            opacity: 1;
        }

        .footer-bottom {
margin: 30px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    opacity: 0.5;
    padding: 40px 40px 0px;
        }

.scroll-top {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s;
    padding: 0;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Прогресс-кольцо */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring__circle {
    fill: none;
    stroke: var(--yellow);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 150.8; /* 2 * π * 24 ≈ 150.8 */
    stroke-dashoffset: 150.8; /* полностью скрыто в начале */
    transition: stroke-dashoffset 0.1s ease;
}

/* Стрелка внутри */
.scroll-top-arrow {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-top: -2px;
}

        /* ===== MOBILE NAV OVERLAY ===== */
        .mobile-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(139, 26, 26, 0.98);
            z-index: 999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 30px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .mobile-nav.active {
            opacity: 1;
            pointer-events: all;
        }

        .mobile-nav a {
            color: var(--white);
            text-decoration: none;
            font-size: 24px;
            font-weight: 700;
        }

        .mobile-nav .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: var(--white);
            font-size: 30px;
            cursor: pointer;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero-title {
                font-size: 60px;
            }

            .hero-image .vending-machine {
                width: 350px;
                height: 430px;
            }

            .section-title {
                font-size: 42px;
            }

            .special-content {
                flex-direction: column;
            }

            .pizzemat-content {
                flex-direction: column;
            }

            .pizzemat-image {
                flex: none;
            }
        }

        @media (max-width: 768px) {
          .btn-primary{
            margin: auto;
          }
            .header-nav {
                display: none;
            }

            .burger {
                display: flex;
            }

            .header {
                padding: 12px 20px;
            }

/*            .hero {
                padding: 100px 20px 60px;
                flex-direction: column;
                text-align: center;
            }*/

            .hero-content {
                max-width: 100%;
            }

            .hero-title {
                font-size: 42px;
            }

            .hero-subtitle {
                font-size: 32px;
            }

            .hero-desc {
                font-size: 14px;
            }

            .hero-buttons {
                justify-content: center;
            }

            .hero-image {
                position: relative;
                right: auto;
                top: auto;
                transform: none;
                margin-top: 40px;
            }

            .hero-image .vending-machine {
                width: 280px;
                height: 350px;
                margin: 0 auto;
            }

            .scroll-hint {
                display: none;
            }

            .section-not-ordinary,
            .section-how,
            .section-special,
            .section-pizzemat,
            .section-be-first {
                padding: 60px 20px;
            }

            .section-title {
                font-size: 32px;
            }

            .section-title-script,
            .subtitle-script {
                font-size: 24px;
                line-height: 1em;
            }

            .steps-container {
                flex-direction: column;
                align-items: center;
                gap: 20px;
            }

            .steps-line {
                display: none;
            }

            .step-card {
                width: 260px;
            }

            .step-card:nth-child(even) {
                margin-top: 0;
            }

            .special-content {
                flex-direction: column;
            }

            .special-image .pizza-stack {
                width: 250px;
                height: 250px;
            }

            .pizza-circle {
                width: 180px;
                height: 180px;
            }

            .pizzemat-grid {
                grid-template-columns: 1fr;
            }

            .section-be-first .section-title {
                font-size: 42px;
            }

            .footer-content {
                flex-direction: column;
                text-align: center;
            }

            .footer-left {
                justify-content: center;
            }

            .footer-right {
                text-align: center;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 34px;
            }

            .hero-subtitle {
                font-size: 26px;
            }

            .btn-primary, .btn-secondary {
                padding: 12px 20px;
                font-size: 14px;
            }
        }











@media (max-width: 1718px) {
.fly_pizza_3 {

    transform: translate(-300px, -60px);
}
}




@media (max-width: 1550px) {
.all_steps_cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.steps-container{
margin-top: 0px;  
}
.step-card.card_fl1:hover {
    transform: rotate(3deg) translate(0px, 0px) translateZ(10px) scale(1.09)!important;
    box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}
.step-card.card_fl2:hover {
    transform: rotate(-8deg) translate(0px, 0px) translateZ(10px) scale(1.09)!important;
        box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}
.step-card.card_fl3:hover {
    transform: rotate(0deg) translate(0px, 0px) translateZ(10px) scale(1.09)!important;
        box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}
.step-card.card_fl4:hover {
    transform: rotate(5deg) translate(0px, 0px) translateZ(10px) scale(1.09)!important;
        box-shadow: -39px 40px 50px 1px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}



}
@media (max-width: 1480px) {

.fly_pizza_1{
  transform: translate(-130px, 190px);
}
}

@media (max-width: 1370px) {
.hero-image .vending-machine {
    width: 469px;
    height: 684px;
transform: translate(-25%, -10%) perspective(800px) rotateY(0deg) rotateX(0deg);
    background-size: cover;
}
.fly_pizza_3{
  transform: translate(-340px, -60px);
}
.fly_pizza_2{
  transform: translate(420px, -180px);
}
    .special-content {
        flex-direction: column;
    }
}

@media (max-width: 1260px) {
.pizzemat-image {

    height: 40vw;
    width: 30vw;
    min-width: 30vw;
    background-size: cover;
}
}
@media (max-width: 1030px) {
.pizzemat-features {
    flex: 1;
    text-align: left;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.be-first-content{
      flex-direction: column;
}
.special-features{
  margin-top: 20px;
}
}



@media (max-width: 1260px) {
.section-title.visible + .section-title-script, .section-title-script.visible {
    opacity: 1;
    font-size: 24px;
    line-height: 1em;
}
}

@media (max-width: 1040px) {
    .hero-image .vending-machine {
        width: 469px;
        height: 684px;
        transform: translate(10%, -10%) perspective(800px) rotateY(0deg) rotateX(0deg);
        background-size: cover;
    }
}

@media (max-width: 990px) {
.header-nav{
  display: none;
}
    .burger {
        display: flex;
    }
}
@media (max-width: 970px) {
    .hero-image .vending-machine {
        transform: translate(-13%, 10%) perspective(800px) rotateY(0deg) rotateX(0deg);
    }

}

@media (max-width: 770px) {
.hero-buttons .btn-secondary{
  display: none;
}
.hero-space{
      flex-direction: column;
}
    .hero-image .vending-machine {
        width: 79vw;
        height: 118vw;
        transform: translate(0%, -15%) perspective(800px) rotateY(0deg) rotateX(0deg);
    }
    .fly_pizza_2 {
transform: translate(190%, -80%);
        height: 34vw;
        width: 35vw;
        background-size: cover;
    
    }
        .fly_pizza_1 {
        height: 37vw;
        width: 41vw;
        transform: translate(-60%, 130%);
        background-size: cover;
    }
    .hero-content{
      max-width: 100%;
      min-width: 100%;
    }
    .fly_pizza_3 {
        height: 45vw;
        width: 41vw;
        transform: translate(120%, 0%);
        background-size: cover;
    }
    .hero_text_now .word > span{
      font-size: calc(150 / 1920 * var(--vw));
    }
    .hero_text_now .tree-word{
      height: 1.9em;
    }
    .hero_text_now .tree-word .tree{
          width: calc(84 / 1920 * var(--vw));
    height: calc(127 / 1920 * var(--vw));
    }
.hero_text{
      padding-top: 5vw;
}
.hero_grad{
        display: block;
        background: linear-gradient(90deg, #ff9e3b 0%, #FF8C42 30%, #e55e35 50%, #cd2727 100%);
        height: calc(-20% + 80%);
        width: calc(100% + 80px);
        left: -40px;
        bottom: -20px;
        position: absolute;
        z-index: 6;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 110%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 110%);
        display: none;
    }

.ven-desk{
  display: none;
}
a.btn-primary.ven-btn {
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translate(-50%, 10px);
    z-index: 7;
    display: flex;
}
}


@media (max-width: 770px) {
  .hero_grad{
    bottom: -50%;
    height: calc(60% + 80%);
  }
  .hero-image .vending-machine {
        width: 58vw;
        height: 88vw;
      }

      .step-card .step-image{
height: 33vw;
        min-width: 33vw;
        width: 33vw;
      }
      .step-card .step-number{
            font-size: 16px;
                bottom: 8px;
    right: 8px;
      }
      .step-card{
                width: min-content;
      }
          .special-image .pizza-stack {
        height: 100%;
        width: 100%;
    }
          .pizza-all{
      height: 88vw;
    min-width: 88vw;
    width: 88vw;
    margin: auto;
    }
        .special-image {
        position: relative;
        height: 100%;
        width: 100%;
    }
        .pizza-all::before{
            height: 88vw;
    min-width: 88vw;
    width: 88vw;
    }
}













@media (max-width: 840px) {
    .special-features{
         margin-top: 0px;
    flex-direction: column; 
    }
    .feature-item.featitem_2 {
    margin-top: 0;
    margin-left: 0;
}
.feature-item.featitem_3 {
    margin-top: 0px;
    margin-left: 0px;
}


}







@media (max-width: 600px) {

  .header-btn{
        padding: 9px 14px;
            font-size: 13px;
            gap: 4px;
  }
.giftwt{
 width: 21px;
    min-width: 21px;
    height: 21px;

    margin-bottom: 2px; 
}
  .header-logo{
    width: 76px;
    height: 29px;
  }
      .slider-stage {
        width: 280px;
        height: 408px;
    }
  .footer-content{
        align-items: center;
  }
  .footer-left .header-logo{
    margin: auto;
  }
.hero .section-title-script {
margin-bottom: 40px;
}
.section-how{
  padding: 80px 20px;
}
.space_opacity {
    height: 0px;
} 

.steps-container{
 margin-top: -50px; 
}
.all_steps_cards{
  width: min-content;
}

    .step-card {
        width: fit-content;
        padding: 4px;
        transition: transform 0s;
    }
    .step-card .step-image {
        width: 40vw;
        min-width: 40vw;
        height: 40vw;
    }
.section-title-script{
margin-bottom: 80px;  
}

.step-card .step-desc{
  font-size: 14px;
}
.step-card .step-title{
      width: fit-content;
}

canvas#tubeCanvas {
    position: absolute;
    top: -100px;
    left: -5%;
    width: calc(100% + 60px);
    height: calc(100%);
    transform: translate(0px, 0%);
    overflow: visible;
}
p.desc-text{
     width: fit-content; 
}
.step-card .step-number{
  bottom: 6px;
    right: 8px;
    font-size: 10px;
}
.section-title-script, .subtitle-script{
          font-size: 20px;
}
.special-image {
    position: relative;
    height: 100%;
    width: 100%;
}
    .special-image .pizza-stack {
        height: 100%;
        width: 100%;
    }

    .pizza-all{
      height: 88vw;
    min-width: 88vw;
    width: 88vw;
    margin: auto;
    }
    .pizza-all::before{
            height: 88vw;
    min-width: 88vw;
    width: 88vw;
    }
    .special-features{
         margin-top: 0px;
    flex-direction: column; 
    }
    .feature-item.featitem_2 {
    margin-top: 0;
    margin-left: 0;
}
.feature-item.featitem_3 {
    margin-top: 0px;
    margin-left: 0px;
}
.pizzemat-image{
 height: 83vw;
    width: 67vw;
    min-width: 67vw;
    background-size: cover; 
}
.section-pizzemat .section-title-script{
  margin-bottom: 20px;
}
.pizzemat-step1{
    flex-direction: column;
}
.pizzemat-step2{
    flex-direction: column;
}
.p-f-card1, .p-f-card2, .p-f-card3, .p-f-card4{
      width: 100%;
}
.be-first-content{
      flex-direction: column;
}
.qr-code{
width: 60vw;
        min-width: 60vw;
        height: 60vw;
        border-radius: 13%;
    margin: 0 auto 0px;
}
.section-be-first .section-title-script{
  margin-bottom: 20px;
}
}














































@media (max-width: 450px) {
      .btn-primary, .btn-secondary {

        margin: auto;
    }
    .hero-image .vending-machine {
        width: 80vw;
        height: 118vw;
    }
    .section-how {
        padding: 80px 20px 0px;
    }
.space_opacity {
    height: 0px;
} 



    .step-card {
        width: fit-content;
        padding: 4px;
    }
.step-card .step-image{
width: 40vw;
        min-width: 40vw;
        height: 40vw;
}
.section-title-script{
margin-bottom: 80px;  
}

.step-card .step-desc{
  font-size: 14px;
}
.step-card .step-title{
      width: fit-content;
}

canvas#tubeCanvas {
    position: absolute;
    top: -100px;
    left: -10%;
    width: calc(100% + 60px);
    height: calc(100%);
    transform: translate(0px, 0%);
    overflow: visible;
}
p.desc-text{
     width: fit-content; 
}
.step-card .step-number{
  bottom: 6px;
    right: 8px;
    font-size: 10px;
}
.section-title-script, .subtitle-script{
          font-size: 20px;
}
.special-image {
    position: relative;
    height: 100%;
    width: 100%;
}
    .special-image .pizza-stack {
        height: 100%;
        width: 100%;
    }

    .pizza-all{
      height: 88vw;
    min-width: 88vw;
    width: 88vw;
    }
    .pizza-all::before{
            height: 88vw;
    min-width: 88vw;
    width: 88vw;
    }
    .special-features{
         margin-top: 0px;
    flex-direction: column; 
    }
    .feature-item.featitem_2 {
    margin-top: 0;
    margin-left: 0;
}
.feature-item.featitem_3 {
    margin-top: 0px;
    margin-left: 0px;
}
.pizzemat-image{
 height: 83vw;
    width: 67vw;
    min-width: 67vw;
    background-size: cover; 
}
.section-pizzemat .section-title-script{
  margin-bottom: 20px;
}
.pizzemat-step1{
    flex-direction: column;
}
.pizzemat-step2{
    flex-direction: column;
}
.p-f-card1, .p-f-card2, .p-f-card3, .p-f-card4{
      width: 100%;
}
.be-first-content{
      flex-direction: column;
}
.qr-code{
width: 60vw;
        min-width: 60vw;
        height: 60vw;
        border-radius: 13%;
    margin: 0 auto 0px;
}
.section-be-first .section-title-script{
  margin-bottom: 20px;
}
}





























/* ===== QUIZ POPUP STYLES ===== */
        .quiz-popup {
            display: flex; /* Changed to flex to center immediately */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.5s ease;
        }
/* ===== QUIZ POPUP STYLES ===== */
.quiz-popup {
    display: none; /* Скрыт по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* animation: fadeIn 0.5s ease; - анимацию лучше применять к контенту внутри, если нужно */
}

/* Класс для отображения */
.quiz-popup.active {
    display: flex;
}
        .quiz-popup-content {
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            border-radius: 20px;
            max-width: 700px;
            width: 100%;
            position: relative;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
            border: 0px solid #ff6b35;
            animation: slideUp 0.4s ease;
            max-height: 90vh;
            overflow-y: auto;
        }

        .quiz-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 107, 53, 0.2);
            border: 2px solid #ff6b35;
            padding-left: 1px;
    padding-top: 2px;
            color: #ff6b35;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            z-index: 10;
        }

        .quiz-close:hover {
            background: #ff6b35;
            color: white;
            transform: rotate(90deg);
        }

        .quiz-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .quiz-header h2 {
            color: #ff6b35;
            font-size: 2em;
            margin-bottom: 10px;
            text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
        }

        .quiz-header p {
            color: #ccc;
            font-size: 1.1em;
        }

        .quiz-progress {
            margin-bottom: 30px;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .progress {
            height: 100%;
            background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
            width: 16.66%;
            transition: width 0.4s ease;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
        }

        .progress-text {
            color: #ff6b35;
            font-size: 0.9em;
            font-weight: 600;
        }

        .quiz-container {
            position: relative;
        }

        .quiz-step {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .quiz-step.active {
            display: block;
        }

        .quiz-step h3 {
            color: white;
            font-size: 1.5em;
            margin-bottom: 10px;
        }

        .question-subtitle {
            color: #999;
            font-size: 1em;
            margin-bottom: 20px;
        }

        .quiz-input {
            width: 100%;
            min-height: 150px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 107, 53, 0.3);
            border-radius: 10px;
            color: white;
            font-size: 1em;
            font-family: inherit;
            resize: vertical;
            transition: all 0.3s;
            margin-bottom: 20px;
        }

        .quiz-input:focus {
            outline: none;
            border-color: #ff6b35;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
        }

        .quiz-input::placeholder {
            color: #666;
        }

        .quiz-buttons {
            display: flex;
            gap: 15px;
            justify-content: space-between;
        }

        .btn-prev, .btn-next, .btn-submit {
            padding: 12px 30px;
            border: none;
            border-radius: 10px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-next, .btn-submit {
            background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
            color: white;
            box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
        }

        .btn-next:hover, .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 107, 53, 0.6);
        }

        .btn-prev {
            background: rgba(255, 255, 255, 0.1);
            color: #ccc;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .btn-prev:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #ff6b35;
            color: #ff6b35;
        }

        /* Экран благодарности */
        .quiz-thank-you {
            display: none;
            text-align: center;
            animation: scaleIn 0.5s ease;
        }

        .quiz-thank-you.active {
            display: block;
        }

        .thank-you-icon {
            font-size: 4em;
            margin-bottom: 20px;
            animation: bounce 1s ease infinite;
        }

        .quiz-thank-you h2 {
            color: #ff6b35;
            font-size: 2em;
            margin-bottom: 15px;
        }

        .quiz-thank-you > p {
            color: #ccc;
            font-size: 1.1em;
            margin-bottom: 30px;
        }

        .promo-box {
            background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
            padding: 30px;
            border-radius: 15px;
            margin: 30px 0;
            box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
        }

        .promo-title {
            color: white;
            font-size: 1.2em;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .promo-code {
            background: white;
            color: #ff6b35;
            font-size: 2.5em;
            font-weight: bold;
            padding: 20px;
            border-radius: 10px;
            margin: 15px 0;
            letter-spacing: 3px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .promo-desc {
            color: white;
            font-size: 1em;
            margin-top: 10px;
        }

        .btn-close-thanks {
            padding: 15px 40px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid #ff6b35;
            color: #ff6b35;
            border-radius: 10px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 20px;
        }

        .btn-close-thanks:hover {
            background: #ff6b35;
            color: white;
        }

        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* Мобильная адаптация */
        @media (max-width: 768px) {
            .quiz-popup-content {
                padding: 25px;
                margin: 10px;
            }
            
            .quiz-header h2 {
                font-size: 1.5em;
                padding: 0 40px;
            }
            
            .quiz-step h3 {
                font-size: 1.2em;
            }
            
            .quiz-buttons {
                flex-direction: column;
            }
            
            .btn-prev, .btn-next, .btn-submit {
                width: 100%;
            }
            
            .promo-code {
                font-size: 1.8em;
                padding: 15px;
            }
        }