/* ═══════════════════════════════════════════════
   МВ Печать — Мегаменю
   ═══════════════════════════════════════════════ */

@keyframes megaIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.mega-lock { overflow: hidden !important; }

.mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 34, 0.7);
  backdrop-filter: blur(14px);
  z-index: 2000;
  overflow-y: auto;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
}

.mega-overlay.is-open { display: flex; }

.mega-panel {
  width: 100%;
  max-width: 1080px;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: megaIn .24s cubic-bezier(.22, 1, .36, 1);
}

.mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.mega-header a { text-decoration: none; }

.mega-logo {
  width: 136px;
  height: auto;
  display: block;
}

.mega-header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mega-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0b1422;
  text-decoration: none;
  letter-spacing: 0;
}

.mega-phone-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.mega-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  background: #f8faff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #637089;
  font-size: 18px;
  font-family: inherit;
  transition: background .15s, color .15s;
}

.mega-close-btn:hover {
  background: #f0f5fc;
  color: #0b1422;
}

.mega-desktop {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 440px;
}

.mega-sidebar {
  background: #f8faff;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
}

.mega-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #9aabbd;
  padding: 4px 10px;
  margin-bottom: 6px;
}

.menu-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s;
}

.menu-cat-btn:hover { background: rgba(36, 97, 235, 0.06); }
.menu-cat-btn.active { background: rgba(36, 97, 235, 0.09); }
.menu-cat-btn.active .cat-label { color: #2461eb; }

.menu-cat-btn.active .cat-icon-blue {
  background: linear-gradient(135deg, #4b8bff, #1a55d4);
  color: #fff;
}

.menu-cat-btn.active .cat-icon-orange {
  background: linear-gradient(135deg, #ff9040, #e87220);
  color: #fff;
}

.cat-icon-blue,
.cat-icon-orange {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
}

.cat-icon-blue { background: rgba(75, 139, 255, 0.1); color: #2461eb; }
.cat-icon-orange { background: rgba(255, 144, 64, 0.1); color: #e87220; }

.cat-label {
  font-size: 13px;
  font-weight: 600;
  color: #344060;
  line-height: 1.3;
}

.mega-company-links {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mega-company-links a {
  display: block;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #637089;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.mega-company-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0b1422;
}

.mega-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

.mega-content-header { margin-bottom: 16px; }

.mega-content-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #0b1422;
}

.mega-content-desc {
  margin: 0;
  font-size: 13px;
  color: #637089;
}

.mega-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.menu-item-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #f8faff;
  border: 1px solid rgba(180, 210, 245, 0.3);
  border-radius: 12px;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s;
}

.menu-item-card:hover {
  background: #eef4ff;
  border-color: rgba(36, 97, 235, 0.28);
  transform: translateY(-2px);
}

.menu-item-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b1422;
  letter-spacing: 0;
}

.menu-item-desc {
  font-size: 11.5px;
  color: #9aabbd;
}

.mega-cta-banner {
  margin-top: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0f5ff, #e8effd);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mega-cta-banner strong {
  font-size: 13px;
  font-weight: 700;
  color: #0b1422;
  display: block;
}

.mega-cta-banner span {
  font-size: 12.5px;
  color: #637089;
}

.mega-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 40px;
  background: linear-gradient(135deg, #4b8bff, #1a55d4);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(26, 85, 212, 0.25);
}

.mega-mobile {
  display: none;
  padding: 8px 0 4px;
}

details.menu-acc { border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
details.menu-acc > summary { list-style: none; cursor: pointer; user-select: none; }
details.menu-acc > summary::-webkit-details-marker { display: none; }

.menu-acc-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.menu-acc-label {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #0b1422;
}

.menu-acc-arr {
  transition: transform .2s ease;
  display: inline-block;
  color: #9aabbd;
}

details.menu-acc[open] .menu-acc-arr { transform: rotate(180deg); }

.menu-acc-items {
  padding: 4px 20px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.menu-acc-items a {
  padding: 10px 12px;
  background: #f8faff;
  border: 1px solid rgba(180, 210, 245, 0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0b1422;
  text-decoration: none;
}

.mega-mobile-links {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mega-mobile-links a {
  padding: 10px 14px;
  background: #f0f5fc;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #344060;
  text-align: center;
  text-decoration: none;
}

.mega-mobile-cta { padding: 0 20px 20px; }

.mega-mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  background: linear-gradient(135deg, #4b8bff, #1a55d4);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(26, 85, 212, 0.28);
}

@media (max-width: 768px) {
  .mega-overlay {
    padding: 20px 12px;
  }

  .mega-panel {
    border-radius: 24px;
  }

  .mega-desktop { display: none !important; }
  .mega-mobile { display: block !important; }
  .mega-header-phone span { display: none; }

  .mega-header-contacts {
    gap: 12px;
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .mega-header {
    padding: 16px 18px;
  }

  .mega-logo {
    width: 124px;
  }

  .menu-acc-items {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .mega-mobile { display: none !important; }
}
