/* ==========================================================================
   Newtech header & menu  ([nt_header])
   Desktop: glass bar + mega panels. Mobile (<1100px): full-screen panel.
   ========================================================================== */

.nt-hdr {
  --nt-red: #E21F1D;
  --nt-ink: #0F0F10;
  --nt-muted: #6B6F76;
  --nt-line: #ECEEF0;
  --nt-radius: 18px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  position: relative;
  z-index: 100;
}
.nt-hdr *, .nt-hdr *::before, .nt-hdr *::after { box-sizing: border-box; }
.nt-hdr a { text-decoration: none; }
.nt-hdr button { font: inherit; cursor: pointer; }
.nt-hdr .nt-ico, .nt-hdr svg.nt-ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none !important; stroke: currentColor !important; }
.nt-hdr svg.nt-ico * { fill: none !important; }

/* ---------- Bar ---------- */
.nt-hdr__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 14px 0 22px;
  border-radius: var(--nt-radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .35s ease, box-shadow .35s ease, min-height .35s ease, transform .35s ease;
}
.nt-hdr__logo { flex: 0 0 auto; display: flex; align-items: center; }
.nt-hdr__logo img { width: 168px; height: auto; display: block; }

/* Sticky state (added by JS after scrolling) */
.nt-hdr.is-stuck .nt-hdr__bar {
  position: fixed;
  top: 10px;
  left: 2%;
  right: 2%;
  min-height: 68px;
  background: rgba(14, 4, 4, .86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  animation: nt-drop .45s cubic-bezier(.2, .8, .2, 1);
}
.admin-bar .nt-hdr.is-stuck .nt-hdr__bar { top: 42px; }
@keyframes nt-drop { from { transform: translateY(-120%); } to { transform: translateY(0); } }
.nt-hdr.is-stuck .nt-hdr__placeholder { display: block; }

/* ---------- Desktop nav ---------- */
.nt-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nt-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nt-nav__item { position: static; list-style: none; }
.nt-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 60px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nt-nav__link:hover,
.nt-nav__item.is-open > .nt-nav__link,
.nt-nav__link:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; outline: none; }
.nt-nav__item.is-current > .nt-nav__link { color: #fff; background: rgba(226, 31, 29, .22); }
.nt-caret { width: 16px !important; height: 16px !important; opacity: .8; transition: transform .25s ease; }
.nt-nav__item.is-open .nt-caret { transform: rotate(180deg); }

/* ---------- Mega panels ---------- */
.nt-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(1120px, calc(100vw - 40px));
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.nt-mega::before { /* hover bridge */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14px; height: 14px;
}
.nt-nav__item.is-open > .nt-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
.nt-mega--cards { width: min(880px, calc(100vw - 40px)); }
.nt-mega--list  { width: min(820px, calc(100vw - 40px)); }
.nt-mega__inner {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(10, 10, 20, .22), 0 2px 6px rgba(10, 10, 20, .06);
  overflow: hidden;
}

/* Grouped (services) */
.nt-mega__groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 26px; }
.nt-mega__group { padding: 6px; }
.nt-mega__group-title {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--nt-line);
  color: var(--nt-ink);
  font-size: 14px; font-weight: 700;
}
.nt-mega__group-title .nt-ico { width: 18px; height: 18px; color: var(--nt-red); }
.nt-mega ul { list-style: none; margin: 0; padding: 0; }
.nt-mega li { list-style: none; }

/* Icon link (used in mega + mobile) */
.nt-mlink {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px;
  border-radius: 12px;
  color: var(--nt-ink);
  transition: background .2s ease;
}
.nt-mlink:hover, .nt-mlink:focus-visible { background: #F6F3F3; outline: none; }
.nt-mlink__ico {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #FDECEC;
  color: var(--nt-red);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nt-mlink__ico .nt-ico { width: 19px; height: 19px; }
.nt-mlink:hover .nt-mlink__ico, .nt-mlink.is-current .nt-mlink__ico { background: var(--nt-red); color: #fff; transform: scale(1.04); }
.nt-mlink__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nt-mlink__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--nt-ink); }
.nt-mlink__desc { font-size: 12.5px; line-height: 1.45; color: var(--nt-muted); }

.nt-mega__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 32px;
  background: #F7F7F8;
  border-top: 1px solid var(--nt-line);
  font-size: 14px; color: var(--nt-muted);
}
.nt-mega__foot-links { display: flex; gap: 22px; align-items: center; }
.nt-mega__foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--nt-ink); font-weight: 600; }
.nt-mega__foot a .nt-ico { width: 16px; height: 16px; transition: transform .2s ease; }
.nt-mega__foot a:hover .nt-ico { transform: translateX(3px); }
.nt-mega__foot a:hover { color: var(--nt-red); }
.nt-mega__foot-cta { color: var(--nt-red) !important; }

/* Product cards */
.nt-mega__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.nt-pcard {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--nt-line);
  color: var(--nt-ink);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nt-pcard::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 31, 29, .14), transparent 70%);
  transition: transform .4s ease;
}
.nt-pcard:hover { border-color: rgba(226, 31, 29, .45); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .08); }
.nt-pcard:hover::after { transform: scale(1.4); }
.nt-pcard__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #E21F1D, #8E0F0E);
  color: #fff;
  box-shadow: 0 10px 22px rgba(226, 31, 29, .3);
}
.nt-pcard__ico .nt-ico { width: 24px; height: 24px; }
.nt-pcard__title { font-size: 18px; font-weight: 700; }
.nt-pcard__desc { font-size: 13.5px; line-height: 1.55; color: var(--nt-muted); }
.nt-pcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--nt-red); }
.nt-pcard__more .nt-ico { width: 15px; height: 15px; transition: transform .2s ease; }
.nt-pcard:hover .nt-pcard__more .nt-ico, .nt-mega__feature:hover .nt-pcard__more .nt-ico { transform: translateX(3px); }

/* List + feature (resources) */
.nt-mega__split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.nt-mega__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 22px; align-content: start; }
.nt-mega__feature {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px;
  background: #F7F7F8;
  border-left: 1px solid var(--nt-line);
  color: var(--nt-ink);
}
.nt-mega__feature-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #eee; }
.nt-mega__feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.nt-mega__feature:hover .nt-mega__feature-img img { transform: scale(1.05); }
.nt-mega__feature-label { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--nt-red); }
.nt-mega__feature-title { font-size: 15px; font-weight: 700; line-height: 1.4; }

/* ---------- Actions ---------- */
.nt-hdr__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.nt-hdr__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.nt-hdr__phone-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s ease, border-color .2s ease;
}
.nt-hdr__phone-ico .nt-ico { width: 18px; height: 18px; }
.nt-hdr__phone:hover .nt-hdr__phone-ico { background: var(--nt-red); border-color: var(--nt-red); }
.nt-hdr__phone-text { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.nt-hdr__phone-text small { font-size: 11.5px; font-weight: 500; opacity: .7; }
.nt-hdr__cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 60px;
  background: var(--nt-red);
  color: #fff !important;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 26px rgba(226, 31, 29, .35);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.nt-hdr__cta .nt-ico { width: 17px; height: 17px; transition: transform .2s ease; }
.nt-hdr__cta:hover { background: #fff; color: var(--nt-ink) !important; transform: translateY(-1px); }
.nt-hdr__cta:hover .nt-ico { transform: translateX(3px); }

/* Burger */
.nt-burger {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  padding: 0;
}
.nt-burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.nt-burger span:nth-child(1) { top: 16px; }
.nt-burger span:nth-child(2) { top: 23px; right: 19px; }
.nt-burger span:nth-child(3) { top: 30px; }
.nt-burger:hover span:nth-child(2) { right: 13px; }

/* ---------- Mobile panel ---------- */
.nt-mpanel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(480px, 100vw);
  height: 100dvh;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(226, 31, 29, .35), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(120, 12, 11, .45), transparent 60%),
    #0B0303;
  color: #fff;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.nt-mpanel[hidden] { display: flex !important; visibility: hidden; }
.nt-hdr.is-menu-open .nt-mpanel { transform: translateX(0); visibility: visible; }
.nt-mbackdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s ease;
}
.nt-mbackdrop[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.nt-hdr.is-menu-open .nt-mbackdrop { opacity: 1; visibility: visible; pointer-events: auto; }
.admin-bar .nt-mpanel { top: 46px; height: calc(100dvh - 46px); }

.nt-mpanel__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nt-mpanel__top .nt-hdr__logo img { width: 150px; }
.nt-mpanel__close {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); padding: 0;
  transition: background .2s ease, transform .3s ease;
}
.nt-mpanel__close:hover { background: var(--nt-red); transform: rotate(90deg); }
.nt-mpanel__close span { position: absolute; left: 13px; right: 13px; top: 22px; height: 2px; border-radius: 2px; background: #fff; }
.nt-mpanel__close span:first-child { transform: rotate(45deg); }
.nt-mpanel__close span:last-child { transform: rotate(-45deg); }

.nt-mnav { padding: 10px 0; flex: 1 0 auto; }
.nt-mnav__item {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; transform: translateX(24px);
  transition: opacity .4s ease, transform .4s ease;
  transition-delay: calc(var(--i, 1) * 45ms + 120ms);
}
.nt-hdr.is-menu-open .nt-mnav__item,
.nt-hdr.is-menu-open .nt-mpanel__foot { opacity: 1; transform: none; }
.nt-mnav__top {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 2px;
  border: 0; background: none; color: #fff; text-align: left;
}
.nt-mnav__num { font-size: 12px; font-weight: 600; color: var(--nt-red); width: 22px; }
.nt-mnav__label { flex: 1; font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.nt-mnav__item.is-current .nt-mnav__label { color: #FF5654; }
.nt-mnav__arrow { width: 20px; height: 20px; opacity: .6; }
.nt-mnav__plus { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); transition: background .25s ease, transform .3s ease; }
.nt-mnav__plus::before, .nt-mnav__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; border-radius: 2px; transition: transform .3s ease; }
.nt-mnav__plus::after { transform: rotate(90deg); }
.nt-mnav__top[aria-expanded="true"] .nt-mnav__plus { background: var(--nt-red); border-color: var(--nt-red); transform: rotate(180deg); }
.nt-mnav__top[aria-expanded="true"] .nt-mnav__plus::after { transform: rotate(0deg); }

.nt-mnav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.nt-mnav__top[aria-expanded="true"] + .nt-mnav__sub { grid-template-rows: 1fr; }
.nt-mnav__sub-inner { overflow: hidden; }
.nt-mnav__sub-inner > :last-child { margin-bottom: 18px; }
.nt-mnav__group-title { margin: 14px 0 6px; padding-left: 36px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.nt-mnav__link { display: flex; align-items: center; gap: 12px; padding: 9px 8px 9px 34px; border-radius: 12px; color: #fff; transition: background .2s ease; }
.nt-mnav__link:hover, .nt-mnav__link.is-current { background: rgba(255, 255, 255, .06); }
.nt-mnav__link .nt-mlink__ico { width: 36px; height: 36px; background: rgba(226, 31, 29, .16); color: #FF6A68; }
.nt-mnav__link .nt-mlink__title { color: #fff; font-size: 15px; }
.nt-mnav__link .nt-mlink__desc { color: rgba(255, 255, 255, .55); }
.nt-mnav__all { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 34px; color: #FF6A68; font-size: 14px; font-weight: 600; }
.nt-mnav__all .nt-ico { width: 16px; height: 16px; }

.nt-mpanel__foot {
  padding-top: 22px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
  transition-delay: calc(var(--i, 6) * 45ms + 160ms);
}
.nt-mpanel__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; border-radius: 60px;
  background: var(--nt-red); color: #fff !important;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(226, 31, 29, .4);
}
.nt-mpanel__cta .nt-ico { width: 18px; height: 18px; }
.nt-mpanel__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.nt-mpanel__quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #fff; font-size: 13px; font-weight: 500;
  transition: background .2s ease, border-color .2s ease;
}
.nt-mpanel__quick a:hover { background: rgba(226, 31, 29, .18); border-color: rgba(226, 31, 29, .5); }
.nt-mpanel__quick .nt-ico { width: 20px; height: 20px; color: #FF6A68; }
.nt-mpanel__addr { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .55); text-align: center; }

body.nt-menu-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .nt-hdr__phone-text { display: none; }
  .nt-nav__link { padding: 0 13px; }
}
@media (max-width: 1180px) {
  .nt-nav__link { padding: 0 11px; font-size: 14.5px; }
  .nt-hdr__logo img { width: 150px; }
}
@media (max-width: 1099px) {
  .nt-nav, .nt-hdr__cta { display: none; }
  .nt-burger { display: inline-block; }
  .nt-hdr__bar { justify-content: space-between; min-height: 70px; padding: 0 10px 0 16px; }
  .nt-hdr__phone-ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
}
@media (max-width: 767px) {
  .nt-hdr__bar { min-height: 64px; gap: 10px; border-radius: 16px; }
  .nt-hdr__logo img { width: 132px; }
  .nt-hdr__phone-ico, .nt-burger { width: 44px; height: 44px; }
  .nt-burger span { left: 12px; right: 12px; }
  .nt-burger span:nth-child(1) { top: 14px; }
  .nt-burger span:nth-child(2) { top: 21px; right: 17px; }
  .nt-burger span:nth-child(3) { top: 28px; }
  .nt-hdr.is-stuck .nt-hdr__bar { left: 8px; right: 8px; top: 8px; }
  .nt-mpanel { width: 100vw; }
  .nt-mnav__label { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nt-hdr *, .nt-hdr *::before, .nt-hdr *::after { transition: none !important; animation: none !important; }
}

/* ---------- Spacing refinements (v2) ---------- */
.nt-mega__groups { gap: 14px; padding: 30px 30px 22px; }
.nt-mega__group-title { padding: 4px 12px 14px; margin-bottom: 10px; }
.nt-mega ul li + li { margin-top: 2px; }
.nt-mlink { padding: 12px; gap: 14px; }
.nt-mlink__text { gap: 3px; }
.nt-mega__foot { padding: 18px 34px; }

/* Resources: roomier list + feature column */
.nt-mega--list { width: min(900px, calc(100vw - 40px)); }
.nt-mega__split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.nt-mega__list { gap: 8px 14px; padding: 30px 28px; }
.nt-mega__list .nt-mlink { padding: 14px; align-items: center; }
.nt-mega__list .nt-mlink__ico { width: 42px; height: 42px; border-radius: 12px; }
.nt-mega__feature { padding: 30px 28px; gap: 10px; }
.nt-mega__feature-img { border-radius: 14px; margin-bottom: 4px; }
.nt-mega__feature-title { font-size: 15.5px; line-height: 1.45; }

/* Products */
.nt-mega__cards { gap: 18px; padding: 28px; }
.nt-pcard { padding: 26px 24px; gap: 12px; }

/* Resources panel: top-align the list with the feature image (beats the generic `.nt-mega ul` reset). */
.nt-mega .nt-mega__list { padding: 16px 20px 24px; gap: 6px 10px; }
.nt-mega .nt-mega__feature { padding: 30px 28px 28px; }
.nt-mega .nt-mega__list .nt-mlink { padding: 14px; }
.nt-mega.nt-mega--list { width: min(960px, calc(100vw - 40px)); }
