/*Menu*/
/* Центрирование только основного меню */
.nasa-menus-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-wrapper.main-menu-warpper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.nasa-menu-vertical-header {
    margin-right: auto;
}

.nasa-beside-mm {
    margin-left: auto;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .nav-wrapper.main-menu-warpper {
        position: static;
        transform: none;
        order: 2;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .nasa-menu-vertical-header,
    .nasa-beside-mm {
        width: 100%;
        text-align: center;
    }
}


/*Телефоны CSS*/
/* Базовые стили (для всех разрешений) */
.vtel {
  display: inline-block;
  line-height: 1.3;
}

.vtel .nasa-flex {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.vtel .nasa-icon {
  margin-right: 8px;
  font-size: 28px; /* Фиксированный размер иконки */
  position: relative;
  top: 1px;
}

.vtel-numbers {
  display: inline;
}

/* Десктоп: >1279px */
.vtel-phone {
  font-size: 20px;
  color: inherit;
  text-decoration: none !important;
}

/* Ноутбуки: 801px-1279px */
@media (min-width: 801px) and (max-width: 1279px) {
  .vtel-phone {
    font-size: 18px;
  }
  
  .vtel .nasa-icon {
    font-size: 24px; /* Чуть уменьшаем иконку */
  }
}

.vtel-phone {
  color: #826039;
}


/* Мобильные: ≤800px - стили НЕ меняются */




/*Vnos*/
.ns-items-gap.nasa-slick-slider.products.grid.nasa-modern-2.nasa-slick-nav.nasa-nav-top-radius.nasa-nav-radius.slick-initialized.slick-slider {
    max-width: 1400px;
    margin: auto;
}

/* Иконка меню */
.nasa-mobile-menu-icon svg {
    width: 40px !important;
    height: 40px !important;
    stroke: #b69064 !important;
    stroke-width: 4px !important;
}

.nasa-mobile-menu_toggle {
    padding: 2px !important;
}

#nasa-menu-sidebar-content {
    max-width: 95% !important;
}

/* Адаптивные стили */
#my-custom-category-block {
    width: auto;
    margin: 0;
}

@media (max-width: 768px) {
    #my-custom-category-block {
        margin: auto;
        width: 97%;
    }
}

#mobile-navigation .nav-dropdown-mobile li a {
    font-size: 18px !important;
} 
/*END_Vnos*/

/* Типография */
.custom-classh {
    position: static !important;
    left: auto !important;
    opacity: 1 !important;
    height: auto !important;
    font-size: 18px;
    margin: 20px 0;
    text-align: center;
}

.custom-classh-h {
    font-size: 20px;
}

/* Блоки контента */
#my-custom-block {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.in-my-custom-block {
    padding: 15px;
    border-radius: 3px;
    max-width: 1580px;
    margin: auto;
}

/* Админ-элементы */
.admin-seo-text {
    color: red;
    font-weight: bold;
    margin: 10px 0;
}

.admin-button {
    background: #2271b1;
    color: white;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.admin-button:hover {
    background: #135e96;
}

.price-button {
    background: #2c3e50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    margin: 15px 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.price-button:hover {
    background: #1a2e3f;
}

/* Модальные окна */
.secret-modal,
#price-list-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.secret-modal-content,
#price-list-modal > div:last-child {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.secret-modal-close,
#price-list-modal .modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.secret-modal-close:hover,
#price-list-modal .modal-close:hover {
    color: #333;
}

.secret-modal-body {
    padding: 20px 10px;
    margin-top: 20px;
}

/* Специфичные стили для таблицы */
#tablepress-modal .tablepress {
    width: 100% !important;
    margin: 0;
}

#tablepress-modal .entry-header,
#tablepress-modal .comments-area,
#tablepress-modal .nasa-clear-both {
    display: none !important;
}

/* Анимации */
#my-custom-block, 
#my-custom-category-block {
    transition: opacity 0.3s ease;
    will-change: opacity;
}

/* Кнопка закрытия в модальном окне прайса */
#price-list-modal .modal-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100000;
}

/* Контейнер таблицы прайсов */
#price-list-modal > div:last-child {
    max-width: 95%;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}