﻿body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    /* font-family: 'Gilroy', sans-serif; */
    background-color: #1D1E23;
    background-color: #000;
    color: #ffffff;

    
}

html {
  overflow-y: scroll;
}



/* #promoContainer {
    opacity: 0;
} */

#top-content {
    /* overflow: hidden; */
    /* height: 1180px; */
    height: calc(100vh + 100px);
}


.show {
    opacity: 1 !important;
}

/* КОНТЕЙНЕР */
.promo-container {
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* height: 1500px; */
    /* overflow: hidden; */
    /* border: 10px solid #ff0000; */
}

/* ТЕСТОВЫЙ ФОН */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    object-fit: cover;
    z-index: 2;
    transform: translate(-10%, -10%);
}

/* КАРТИНКИ С ПРОЗРАЧНОСТЬЮ */
.chroma-hand {
    position: absolute;
    height: 100vh;
    width: auto;
    object-fit: cover;
    z-index: 3;
}

.left-hand {
    top: 0;
    left: 0;
}

.right-hand {
    top: 0;
    right: 0;
}



/* КОНТЕНТ */
.content {
    position: relative;
    z-index: 10;
    padding: 50px;
    text-align: center;
}

/* .content h1 {
    font-size: 3em;
    margin: 0;
} */

.content p {
    font-size: 1.2em;
    margin-top: 20px;
}

/* .chroma-hand, .ani_decor {
    display: none;
} */

/* ===================== */
.hero-background {
    top: 200px;
    width: 100%;
    margin-left: 190px;
    margin-left: 120px;
    /* filter: 

        drop-shadow(0 -10px 35px #31b588)
        drop-shadow(0 -5px 10px rgba(49, 181, 136, 0.2)); */
}

/* Только для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    .hero-background {
        filter:
            drop-shadow(0 -10px 35px #31b588) drop-shadow(0 -5px 10px rgba(49, 181, 136, 0.2));
    }
}

/* Для тач-устройств - простое свечение через box-shadow */
@media (hover: none) {
    .hero-background {

        filter:
            drop-shadow(0 -10px 35px #31b588);

    }
}


/* ============== */

.moon-background {
    position: absolute;
    top: 8.33%;
    left: 38%;

    /* transform: translate(-50%, -50%); */
    z-index: 1;


}

.moon-background img {
    width: 80px;
    height: 80px;
    display: block;
}

.moon-background::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #2da67b 0%, rgba(49, 181, 136, 0) 60%, transparent 80%);

    mix-blend-mode: overlay;
    opacity: 1.0;
    z-index: -1;
    pointer-events: none;
    filter: blur(10px);

}

/* .hero-background {
    position: relative;
    z-index: 2;
} */

.stars-background {
    position: absolute;
    top: -200px;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    /* автоматическая высота по пропорциям */
    z-index: 0;
}



.decor-right {
    position: absolute;
    top: 0;
    right: 160px;
    height: 304px;
    width: auto;
    object-fit: cover;
    z-index: 2;
    /* поверх всего */
    pointer-events: none;
    /* чтобы не мешал кликам */
}

.decor-left {
    position: absolute;
    top: 0;
    left: 160px;
    height: 209px;
    width: auto;
    object-fit: cover;
    z-index: 2;
    /* поверх всего */
    pointer-events: none;
    /* чтобы не мешал кликам */
}

#shadow {
    position: absolute;
    /* не fixed */
    top: 680px;
    top: calc(100vh - 350px);
    top: 72vh;
    /* top: 65vh; */
    /* как было */
    left: -10px;
    height: 886px;
    /* width: 100dvw; */
    width: 105%;
    object-fit: cover;
    /* z-index: 200; */
    z-index: 3;
    /* поверх всего */
    pointer-events: none;
    /* чтобы не мешал кликам */
    filter: blur(4px);
    /* top: calc(680px + 100vh); */
    /* overflow: hidden; */
}

#shadow img{
    width: 100%;
}

#shadow_black {
    position: absolute;
    /* не fixed */
    top: 1000px;
    /* как было */
    left: 0;
    height: 400px;
    width: 100%;
    object-fit: cover;
    z-index: 580;
    /* поверх всего */
    pointer-events: none;
    /* чтобы не мешал кликам */
    background-color: #000;
}



/* Только для устройств с мышью */
@media (hover: hover) and (pointer: fine) {

    /* Твои стили для мыши тут */
    .chroma-hand,
    .hero-background,
    .stars-background,
    .moon-background,
    #promoContainer,
    #shadow,
    #night-items,
    #thermal-items,
    #fusion-items,
    #promo-title,
    #aisearch,
    #video_block,
    #devices_block {
        /* transition: transform 0.8s ease-out; */
        transition: opacity 0.5s ease-out, transform 2.5s cubic-bezier(0.19, 1, 0.22, 1);
        /* transition: transform 1.0s cubic-bezier(0.19, 1, 0.05, 1.6); */
    }


}



.promo-element {
    transition: opacity 0.3s ease-out;
}






.clouds-background {
    position: absolute;
    top: -50px;
    left: -100px;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 0.5;
    mix-blend-mode: overlay;
    /* mix-blend-mode: screen; */
    opacity: 0.8;
    filter: blur(4px);
}

/* .clouds-background::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -100px;
    right: 0;
    bottom: 0;
    background: url('img/clouds.png');
    background-size: cover;
    mix-blend-mode: screen;
    opacity: 0.7;
    filter: blur(2px);
} */


/* ======================== */

.hero-header::before {
    content: '';
    position: fixed;
    top: 110px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom right, rgba(0, 0, 0, 0.8) 0%, transparent 20%),
        linear-gradient(to bottom left, rgba(0, 0, 0, 0.8) 0%, transparent 20%);
    z-index: 10;
    pointer-events: none;
    /* mix-blend-mode: overlay; */
    mix-blend-mode: darken;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    pointer-events: none;
}

.logo {
    pointer-events: all;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.top-logo {
    height: 74px;
    width: auto;


}

.nav-icons {
    display: flex;
    gap: 20px;
    pointer-events: all;
}

.menu-icon,
.cart-icon {
    width: auto;
    height: 28px;
    cursor: pointer;
    fill: white;

}

.menu-icon {
    padding-top: 1px;
    height: 26px;
}

.menu-icon:hover,
.cart-icon:hover {
    opacity: 0.8;
}

.content {
    margin-top: 60px;

}


.content h4 {
    color: #FFF;
    text-align: center;
    /* text-shadow: 0px 0px 40px rgba(0, 0, 0, 0.25); */
    
    font-size: 100px;
    font-size: 4.7dvw;
    font-size: calc((100px + 4.7dvw) / 2);

    font-style: normal;
    font-weight: 900;
    line-height: 7dvw;
    text-transform: uppercase;
    margin-top: 60px;
    margin-bottom: 100px;
    
}

/* ======================================= */
.categories-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: -80px;
    flex-wrap: wrap;


 }
 
 .category-block {
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.75);
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    padding-top: 16px;
    /* transition: background 1.5s ease-in-out; */
 }

 .category-block:hover {
    background: rgba(17, 17, 17, 0.8);
   
}
 
 .category-block h1, .category-block h2, .category-block h3  {
    /* margin-top: 10px;
    top: 10px; */
    color: #0DB13E;
    color: #3BD943;
    
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
    padding-left: 30px;
    padding-bottom: 10px;
 }
 
 .category-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
 }
 
 
 .category-block li {
    color: #FFF;
    
    /* font-size: 14px; */
    font-style: normal;
    /* font-weight: 500; */
    line-height: normal;
    /* letter-spacing: 0.7px; */
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: left;
    padding-left: 65px;
    /* margin-top: 10px; */

    padding-bottom: 10px;
    position: relative;
 }
 
 .category-block li:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 33%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('../img/icons/header-li-item.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: left 0.2s ease;
 }


 .category-block li a {
    color: #FFF;
    
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;

}

.category-block li a:hover {
    color: #3BD943;

}

/* ----- */
.search-container {
    position: relative;
    margin-top: 160px;
    display: flex;
    justify-content: center;
    z-index: 200;
}

.search-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 5px; /* было 8px */
    width: 100%;
    max-width: 970px;
    backdrop-filter: blur(10px);
}

.search-container form {
        width: 100%;
    max-width: 970px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 25px; /* было 15px */
    color: #212121;
    
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 1.2px;
    outline: none;
}

.search-input::placeholder {
    color: #333;
}

.search-btn {
    background: #3BD943;

    border: none;
    border-radius: 50px;
    padding: 10px 20px; 
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #073009;
    text-align: center;
    
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
     
}
.search-btn span {
    margin-top: 2px;
}

.search-icon {
    width: 36px;
    height: 36px;
}

.search-input:focus::placeholder {
    opacity: 0;
}


.search-btn:hover {
    background: linear-gradient(45deg, #62F014, #3BD943, #0DB13E, #62F014, #3BD943, #0DB13E, #62F014, #3BD943, #0DB13E);
    
    background-size: 500% 500%;
    animation: gradientShift 13s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 100% 50%; }
    100% { background-position: -400% 50%; }
}

.search-input::placeholder {
    color: #333;
    transition: opacity 0.2s ease;
}

/* =============================== */

/* ========== VIDEO SECTION ========== */
#video_block {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    /* padding: 80px 0 0 0; */
    padding: 80px 0;
    /* background-color: #000; */
}

/* ========== VIDEO SECTION ========== */
/* #video_block {
    position: relative;
    z-index: 500;
    padding: 80px 0;

} */

.video-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Заголовки */
.main-title {
    color: #3BD943;
    text-align: center;
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    /* letter-spacing: 2.4px; */
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.video-subtitle {
    color: #ddd;
    text-align: center;
    margin-top: -5px;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 20px;
}

/* Селекты */
.category-selects {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 80px;
}

.select-wrapper {
    position: relative;
    width: 585px;
}

.select-block {
    /* background: #000; */
    border-bottom: 2px solid #333;
    padding: 20px 0;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
}

.select-block:hover {
    border-color: #3BD943;
}

.select-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 40px;
}

.select-label {
    color: #3BD943;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.select-value {
    color: #FFF;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 70%;
    transform: translateY(-50%) rotate(0deg);
    /* transition: transform 0.3s ease; */
    width: 17px;
    height: 8px;
    filter: brightness(0) saturate(100%) invert(68%) sepia(97%) saturate(1419%) hue-rotate(73deg) brightness(99%) contrast(92%);
}

.select-arrow.open {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.5);
    border-radius: 20px;
    padding: 10px 0;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(59, 217, 67, 0.2); */
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    padding: 15px 30px 15px 65px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.dropdown-menu li:hover {
    background: rgba(59, 217, 67, 0.1);
    color: #3BD943;
    border-radius: 5px;
    margin: 0 8px;
}

.dropdown-icon {
    position: absolute;
    left: 30px;
    width: 20px;
    height: 20px;
    transition: filter 0.2s ease;
}

.dropdown-menu li:hover .dropdown-icon {
    filter: brightness(0) saturate(100%) invert(68%) sepia(97%) saturate(1419%) hue-rotate(73deg) brightness(99%) contrast(92%);
}

.item-base {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    display: inline;
    border: none;
    background: none;
    font-family: inherit;
}

/* Адаптивная версия, повторяющая поведение селектов */
.video-thumbs {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: -20px;
}

.video-thumb {
    position: relative;
    max-width: 564px;
    width: 564px;
    width: 454px;
    
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease;
    transition: background-size 0.8s ease;
  }
  
  .glitch-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 18px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: transform 0.8s ease;
    transition: background-size 0.8s ease;
  }
  
  .video-thumb:hover .glitch-layer {
    /* animation: glitch-anim 2s linear infinite alternate;
    opacity: 1; */
    /* opacity: 0; */
  }

  .video-thumb.changing .glitch-layer {
    animation: glitch-anim 2s linear infinite alternate;
    opacity: 1;
}

  .video-thumb:hover {
    cursor: pointer;
    
  }

  @keyframes glitch-anim {
    0%   { clip-path: polygon(0 2%,100% 2%,100% 5%,0 5%); transform: translateZ(0); }
    2%   { clip-path: polygon(0 78%,100% 78%,100% 100%,0 100%); transform: translate(-5px); }
    6%   { transform: translate(5px); }
    8%   { transform: translate(-5px); }
    9%   { transform: translate(0); }
    10%  { clip-path: polygon(0 54%,100% 54%,100% 44%,0 44%); transform: translate3d(5px,0,0); }
    13%  { transform: translateZ(0); }
    13.1%{ clip-path: polygon(0 0,0 0,0 0,0 0); transform: translate3d(5px,0,0); }
    15%  { clip-path: polygon(0 60%,100% 60%,100% 40%,0 40%); }
    20%  { transform: translate3d(-5px,0,0); }
    20.1%{ clip-path: polygon(0 0,0 0,0 0,0 0); }
    25%  { clip-path: polygon(0 85%,100% 85%,100% 40%,0 40%); }
    30%  { transform: translate3d(-5px,0,0); }
    30.1%{ clip-path: polygon(0 0,0 0,0 0,0 0); }
    35%  { clip-path: polygon(0 63%,100% 63%,100% 80%,0 80%); transform: translate(-5px); }
    40%  { transform: translate(5px); }
    45%  { transform: translate(-5px); }
    50%  { transform: translate(0); }
    55%  { clip-path: polygon(0 10%,100% 10%,100% 0,0 0); transform: translate3d(5px,0,0); }
    60%  { transform: translateZ(0); opacity: 1; }
    60.1%{ clip-path: polygon(0 0,0 0,0 0,0 0); }
    100% { clip-path: polygon(0 0,0 0,0 0,0 0); opacity: 1; }
  }
    
  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    z-index: 3;
  }
  
  .video-thumb:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.3);
  }

  /* .video-thumb:hover {
    background-size: 108%; 
  }

  .video-thumb:hover .glitch-layer{
    background-size: 108%; 
  } */

  /* /================ */

  /* .video-thumb:hover {
    animation: zoom-bg 0.8s forwards ease;
  }
  
  .video-thumb:hover .glitch-layer {
    animation: glitch-anim 2s linear infinite alternate, zoom-bg 0.8s forwards ease;
  }
  
  @keyframes zoom-bg {
    from { background-size: 105%; }
    to   { background-size: 110%; }
  }
   */

   .zoom-in {
    animation: zoom-in 0.4s forwards ease;
  }
  .zoom-out {
    animation: zoom-out 0.8s forwards ease;
  }
  
  @keyframes zoom-in {
    from { background-size: 105%; }
    to   { background-size: 110%; }
  }
  @keyframes zoom-out {
    from { background-size: 110%; }
    to   { background-size: 105%; }
  }
  
  /* .video-thumbs-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap; 
  }
  
  .thumb-block {
    flex: 1 1 30%; 
    max-width: 564px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  
  .thumb-caption {
    margin-top: 12px;
    color: #48ff00;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
  }
   */

   .video-thumb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
  }
  
  /* .mini-video-title {
    margin-top: 12px;
    font-size: 14px;
    color: #7bff4a;
    text-align: center;
  }
  
   */

   .mini-video-title {
    text-align: center;
    color: #7bff4a;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
  }
  

  .decor_line {
    position: absolute;
    top: 97%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
  }

  /* --------------------------------------- */

  /* ТЕРМИНАЛ */
.terminal-modal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -500px; /* будет анимировано вниз */
    width: 972px;
    height: 481px;
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.75);
    /* background: rgba(17, 17, 17, 1); */
    z-index: 1080;
    /* box-shadow: 0 6px 38px #000c; */
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: 
        opacity 0.45s,
        top 0.45s,
        left 0.45s,
        width 0.45s,
        height 0.45s,
        transform 0.45s;


}

.terminal-modal.show {
    opacity: 1;
    top: -10px; 
    pointer-events: all;
    width: calc( 50% + 2px );
    height: 550px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 32px 40px 12px 32px;
    width: 100%;
}

.terminal-logo {
    height: 56px;
    width: auto;
    margin-top: -10px;
}

.terminal-close, .terminal-clear {
    background: none;
    border: none;
    color: #F0F014;
    font-family: Gilroy, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: -10px;
    margin-right: 50px;
    outline: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: opacity 0.2s;
}
.terminal-close span {
    font-size: 26px;
    font-weight: 700;
    margin-left: 7px;
    color: #F0F014;
    line-height: 0.7em;
}

.terminal-close:hover, .terminal-clear:hover {
    opacity: 0.7;
}

.terminal-clear {
    position: relative;
    margin-right: -600px;
    color: #A1FF00;
}

/* .terminal-body {
    flex: 1;
    padding: 10px 40px 30px 32px;
    font-family: Gilroy, sans-serif;
    color: #62F014;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.8px;
    text-transform: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
} */

.terminal-body {
    flex: 1;
    padding: 10px 40px 30px 32px;
    font-family: Gilroy, sans-serif;
    color: #62F014;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.8px;
    text-transform: none;
    
    display: flex;
    flex-direction: column;       
    justify-content: flex-end;    
    
    overflow-y: auto;             
    overflow-x: hidden;

    text-align: left;
    border-radius: 0 0 20px 20px;
}


/* Стили для тёмного скролла в терминале */
.terminal-body {
    flex: none;                     
    max-height: calc(100% - 145px);  
    padding: 10px 40px 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;    
    overflow-y: auto;
    overflow-x: hidden;
    /* ваш тёмный скролл */
    scrollbar-width: thin;
    scrollbar-color: #444 rgba(0,0,0,0.2);
}

/* WebKit */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #666;
}





.terminal-line {
    white-space: pre;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #62F014;
    margin-bottom: 3px;
    text-transform: none;
    letter-spacing: 0.8px;
    /* letter-spacing: -0.3px; */
    /* font-family: 'Consolas', 'Courier New', monospace; */
}

.terminal-line.operator {
    color: #62F014;
    color: #F0F014;
    margin-top: 10px;
    margin-bottom: 10px;
    /* font-weight: 500; */
    
    /* text-transform: uppercase; */
}

.terminal-line.night-wolf {
    color: #62F014;
    /* font-weight: 500; */

}

/* Анимация fade-in строк */
.terminal-line.visible {
    opacity: 1;
    transition: opacity 0.2s;
}

.terminal-line {
    opacity: 0.94;
    transition: opacity 0.15s;
}

@media (max-width: 1100px) {
    .terminal-modal {
        width: 99vw;
        left: 0.5vw;
        transform: none;
        min-width: 320px;
    }
}

/* Прячем все нужное */
.hide-on-terminal {
    transition: opacity 0.4s;
    opacity: 0 !important;
    pointer-events: none !important;
}





.blur-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    backdrop-filter: blur(12px);
    z-index: 98;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 1;

}

.fade {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(.6,0,.5,1);
}

.fade-show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s cubic-bezier(.6,0,.5,1);
}

/* Плейсхолдер под низом */
/* .thumb-placeholder{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-1;         
  opacity:0.7;
  transition: opacity .25s ease;
}


.video-thumb.loaded .thumb-placeholder{
  opacity:0;
} */

/* фиксим вылезание текста в терминале */
#terminalBody{overflow-x:hidden;overflow-y:auto}
#terminalBody, 
#terminalBody *{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}
.terminal-input-slot .search-input-wrapper {
    margin-top: 100px;
    
}

.operator-info {
    position: absolute;
  bottom: 50%;
  left: 50%;             /* для горизонтального центрирования */
  transform: translate(-50%, 75%);
  width: 1250px;
  height: 100vh;
  z-index: 250;
pointer-events: auto;

}

.terminal-modal.show  {
    position: absolute;
    top: -250px;
    width: 980px;
}

.terminal-modal:not(.show) {
  pointer-events: none;
}


.operator-info .search-container {
    /* margin-top: -150px; */
    top: 170px;

}



.operator-info {
  pointer-events: none;   
}



.operator-info > * {
  pointer-events: auto;   
}




/* #top-blur-bg {
    backdrop-filter: none !important;
}

.video-thumb-wrap {
    height: 340px; 
    overflow: hidden;
} */


/* ========== DEVICES SECTION ========== */
#devices_block {
    position: relative;
    z-index: 10;
    margin-top: 0vh;
    /* padding: 80px 0 0 0; */
    padding: 80px 0;
    /* background-color: #000; */
}


.sub-main-title {
      display: block;
  text-align: center;
  width: 100%;
    color: #3BD943;
    text-align: center;
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    /* letter-spacing: 2.4px; */
    /* text-transform: uppercase; */
    margin: 0 0 10px 0;

color: #888;
text-align: center;

font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;

}


/* ============================== */
/* DEVICES BLOCK MENU */
/* ============================== */

.devices-menu {
  margin-top: 80px;
  text-align: center;
}

.main-tabs {
  display: flex;
  justify-content: center;

  gap: 60px;
  margin-bottom: 40px;
}

.main-tabs div {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  padding-bottom: 4px;
}

/* неактивные — пунктир */
.main-tabs div::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  /* border-bottom: 1px dotted rgba(255, 255, 255, 0.4); */
    background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.4) 0px,
    rgba(255,255,255,0.4) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* активная вкладка */
.main-tabs div.active {
  color: #3BD943;
}



.main-tabs div.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background-color: #3BD943;
  opacity: 1;
  background-image: none;
}



.sub-tabs {
  display: inline-flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 40px;
}

.sub-tabs div {
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}

.sub-tabs div.active {
  background: #0E1E0E;
  color: #3BD943;
  /* border-radius: 50px; */
}




/* #promoContainer {
    position: absolute;
    min-height: 80vh;
    height: 100vh;
    transform: translateZ(0);
    
    will-change: transform;
    
    
    overflow: hidden;
} */



/* #promoContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90vh;               
  transform: translateZ(0);    
  will-change: transform;

} */

/* html, body {
  height: 100%;
  overflow: hidden;            
}

#scrollRoot {
  height: 100%;
  width: 100%;
  overflow-y: auto;            
  scroll-behavior: smooth;
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

#promoContainer {
  position: sticky;            
  top: 0;
  height: 100vh;
  transform: translateZ(0);
}

#video_block,
#devices_block {
  position: relative;
  z-index: 2;
} */


.video-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-popup-content {
  position: relative;
  width: 80%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px #000;
}

.video-popup-content iframe {
  width: 100%;
  height: 100%;
}

.video-popup-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #fff;
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity .3s;
}
.video-popup-close:hover { opacity: .7; }
