
/* ========================================== */
/* 1. СТИЛИ ВИДЕО И ГЛАВНОГО ЭКРАНА           */
/* ========================================== */

.video-container {
  position: relative;
  width: 100%;
  height: 97%;
  overflow: hidden;
  z-index: 1;
  background-color: #000;
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%) scaleY(1.1);
  z-index: -1;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  font-family: 'Overpass', sans-serif;
}

.text-background {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 10px;
}

.text-background h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: black;
}

.small-text {
  font-size: 1.2rem;
  color: #000;
  font-family: 'Overpass', sans-serif;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: red;
  color: white !important;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-family: 'Overpass', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: darkred;
  color: white !important;
}

/* ========================================== */
/* 2. НОВОЕ МЕНЮ (MEGA MENU GRID)             */
/* ========================================== */

/* --- КОНТЕЙНЕР МЕНЮ --- */
#custom-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    
    position: fixed; 
    top: 150px;   
    left: 0;
    width: 100%;
    z-index: 99990;
    
    max-height: 80vh;
    overflow-y: auto;
    
    background: rgba(20, 24, 30, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px 0;
}

#custom-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- СЕТКА (GRID) --- */
.menu-level-1 { 
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
}

@media (max-width: 1024px) { .menu-level-1 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .menu-level-1 { grid-template-columns: 1fr; } #custom-menu { top: 70px; } }

/* --- ПУНКТ МЕНЮ (ГЛАВНЫЙ) --- */
.menu-item { 
    position: relative; display: block; 
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.3s ease;
}

/* Ссылка или заголовок пункта */
.menu-item > a, 
.menu-item > div.menu-header { 
    display: flex; align-items: center; padding: 15px 20px;
    /* !important решает проблему с синим цветом */
    color: #e0e0e0 !important; 
    text-decoration: none !important;
    font-family: 'Overpass', sans-serif; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; border-radius: 12px;
}

.menu-icon { width: 36px; height: 36px; margin-right: 15px; opacity: 0.8; filter: invert(1); transition: 0.3s; }
.submenu-icon { margin-left: auto; font-size: 12px; color: #666; transition: 0.3s; }

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ И ОТКРЫТИИ --- */

.menu-item:hover, .menu-item.open { background: rgba(255, 255, 255, 0.06); }

.menu-item:hover > a, .menu-item:hover > div.menu-header, 
.menu-item.open > a, .menu-item.open > div.menu-header { 
    color: #fff !important; /* Белый при наведении */
}

.menu-item:hover .menu-icon, .menu-item.open .menu-icon { opacity: 1; transform: scale(1.1); }
.menu-item:hover .submenu-icon, .menu-item.open .submenu-icon { color: #e60012; }

/* === КРАСНАЯ ПОЛОСКА СЛЕВА === */
/* Добавлена проверка на hover и open */
.menu-item:hover > a::before, 
.menu-item:hover > div.menu-header::before,
.menu-item.open > a::before, 
.menu-item.open > div.menu-header::before {
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 10%; 
    height: 80%; 
    width: 4px; /* Чуть толще */
    background-color: #e60012; 
    border-radius: 0 4px 4px 0; 
    box-shadow: 0 0 10px #e60012;
}

/* --- ПОДМЕНЮ --- */
.submenu {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    background: transparent; margin: 0;
    list-style: none; padding: 0; display: block;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.submenu a {
    display: block; 
    padding: 8px 20px 8px 70px;
    color: #888 !important; 
    text-decoration: none; font-size: 14px;
    transition: 0.2s; font-family: 'Overpass', sans-serif;
    border-left: 3px solid transparent; /* Резерв места */
}

/* ХОВЕР ДЛЯ ПОДМЕНЮ */
.submenu a:hover {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(230, 0, 18, 0.1) 0%, transparent 100%);
    border-left: 3px solid #e60012;
    padding-left: 67px; /* Компенсация сдвига */
}

/* Состояние открытого подменю */
.menu-item.open .submenu { max-height: 500px; padding-bottom: 15px; }
.menu-item.open .submenu-icon { transform: rotate(90deg); }

/* ========================================== */
/* 3. ОСТАЛЬНЫЕ СТИЛИ                         */
/* ========================================== */

#custom-menu::-webkit-scrollbar { width: 6px; }
#custom-menu::-webkit-scrollbar-track { background: #1a1a1a; }
#custom-menu::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

.t-product__option-input_radio { accent-color: #FFFFFF !important; }
.t-product__option-input_radio:checked { accent-color: #FFFFFF !important; }
.t-product__option-input_radio:checked + .t-product__option-checkmark_radio::before {
    background-color: #004aad; border: 2px solid #004aad; border-radius: 100%;
}
.t-product__option-checkmark_radio::before {
    border: 2px solid #004aad !important; background-color: transparent; border-radius: 50%;
}
.t-product__option-checkmark_radio:hover::before { background-color: #004aad !important; }

.btn-watt .tn-atom {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    font-family: 'Overpass', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 15px !important;
    transition: all 0.4s ease;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding-top: 2px !important; line-height: 1 !important;
}
.btn-watt:hover .tn-atom {
    border-color: #e60012 !important; color: #e60012 !important;
    background-color: rgba(230, 0, 18, 0.1) !important;
    box-shadow: 0 0 15px rgba(230, 0, 18, 0.6), inset 0 0 10px rgba(230, 0, 18, 0.2);
    transform: translateY(-1px);
}

.my-hover-text .tn-atom, .my-hover-text .tn-atom a {
    transition: color 0.3s ease; text-decoration: none !important;
}
.my-hover-text:hover .tn-atom, .my-hover-text:hover .tn-atom a {
    color: #e60012 !important;
}

/* ========================================== */
/* 4. ФИКСЫ КЛИКАБЕЛЬНОСТИ                    */
/* ========================================== */

#rec872093201 .t396__artboard,
#rec872093218, 
#rec872093219 {
    pointer-events: none !important;
}

#rec872093201 .tn-atom, 
#chat-button, #chat-box, #chat-box *,
#custom-menu, .menu-item, .menu-item *,
#rec872093218 a, #rec872093219 a,
#rec872093218 .t-btn, #rec872093219 .t-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

html { scroll-behavior: smooth; }
.hidden { display: none; }
