/* ===== ДЕСКТОП: от 1200px ===== */
@media (min-width: 1200px) {

  /* Старое мобильное меню на десктопе не нужно */
  #mmenu,
  .mainMenu.mmenu {
    display: none !important;
  }

  /* Строка разделов по центру, без фона */
  .desktop-nav {
    display: block !important;
    position: relative;
    width: 100%;
    text-align: center;
    background: transparent !important;
  }

  .desktop-nav .ul-wrap {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .desktop-nav .first-ul {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 36px;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    transform: none !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .desktop-nav .first-ul > li {
    position: static;
    background: transparent !important;
  }

  .desktop-nav .first-ul > li > a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-family: "Philosopher", serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  }

  .desktop-nav .first-ul > li.is-open > a {
    color: #ffc978;
  }

  /* Подменю скрыто, открывается по клику */
  .desktop-nav .first-ul > li > .second-ul {
    display: none !important;
  }

  /* Панель подменю: полупрозрачный фон #287878, все колонки в один ряд */
  .desktop-nav .first-ul > li.is-open > .second-ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 40px));
    z-index: 1000;
    margin: 0;
    padding: 30px 40px;
    list-style: none;
    text-align: left;
    background: rgba(40, 120, 120, 0.78) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    box-shadow: none !important;
  }

  /* Каждая колонка занимает равную долю ряда */
  .desktop-nav .first-ul > li.is-open > .second-ul > li {
    flex: 1 1 0;
    min-width: 0;
    background: transparent !important;
  }
    /* Небольшой отступ текста внутри колонок панели */
  .desktop-nav .first-ul > li.is-open > .second-ul > li {
    padding: 0 16px;
  }

  /* Заголовки колонок: светло-голубые, с тенью */
  .desktop-nav .first-ul > li.is-open > .second-ul > li > a {
    display: block;
    margin-bottom: 14px;
    color: #cfe9ff !important;
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    pointer-events: none;
    background: transparent !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
  }

  /* Списки пунктов */
  .desktop-nav .first-ul > li.is-open > .second-ul ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
  }

  .desktop-nav .first-ul > li.is-open > .second-ul ul li {
    background: transparent !important;
  }

  /* Ссылки пунктов: белые, с плотной тенью */
  .desktop-nav .first-ul > li.is-open > .second-ul ul a {
    display: block;
    margin-bottom: 8px;
    color: #ffffff !important;
    font-size: 16px;
    line-height: 1.35;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.7);
  }

  .desktop-nav .first-ul > li.is-open > .second-ul ul a:hover {
    color: #ffc978 !important;
  }
}

/* ===== МОБИЛЬНЫЕ И ПЛАНШЕТЫ: строка разделов скрыта, работает старое меню ===== */
@media (max-width: 1199px) {
  .desktop-nav {
    display: none !important;
  }
}