/* Header — style from enterprise prototype (ported from Tailwind mock) */

.ja-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
}

.ja-header.is-scrolled .ja-header__shell {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.ja-header__top {
  background: linear-gradient(90deg, #090d16 0%, #111827 100%);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 500;
  border-bottom: 1px solid #1e293b;
}

.ja-header__top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  min-height: 2.15rem;
}

.ja-header__tagline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  flex-wrap: wrap;
}

.ja-header__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
}

.ja-header__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #10b981;
  animation: ja-pulse 1.8s ease-out infinite;
}

@keyframes ja-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ja-header__meta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.ja-header__meta svg { color: #60a5fa; }

@media (min-width: 768px) {
  .ja-header__meta--md { display: inline-flex; }
}

@media (min-width: 1024px) {
  .ja-header__meta--lg { display: inline-flex; }
}

.ja-header__contacts {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ja-header__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: #94a3b8;
}

.ja-header__chip strong {
  color: #fff;
  font-weight: 700;
}

.ja-header__divider {
  width: 1px;
  height: 0.75rem;
  background: #334155;
}

.ja-header__contacts a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  transition: color 0.2s;
}

.ja-header__contacts a:hover {
  background: transparent;
  color: #60a5fa;
}

.ja-header__shell {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.ja-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem 0;
}

.ja-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0f172a;
}

.ja-logo:hover { color: #2563eb; }
.ja-logo:hover .ja-logo__mark { transform: scale(1.05); }

.ja-logo__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: linear-gradient(to top right, #1d4ed8, #3b82f6);
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s var(--ja-ease);
}

.ja-logo__name {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.ja-logo__sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
}

.ja-header__search {
  min-width: 0;
  max-width: 42rem;
  width: 100%;
}

.ja-search__icon { color: #2563eb; }

.ja-search input[type="search"] {
  min-height: 3rem;
  background: rgba(241, 245, 249, 0.75);
  border-color: #e2e8f0;
}

.ja-search input[type="search"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ja-header__search-wrap .dgwt-wcas-sf-wrapp {
  background: rgba(241, 245, 249, 0.75) !important;
  border-color: #e2e8f0 !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.ja-header__search-wrap .dgwt-wcas-sf-wrapp:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

.ja-header__search-wrap .dgwt-wcas-search-input { height: 3rem !important; }
.ja-header__search-wrap .dgwt-wcas-ico-magnifier,
.ja-header__search-wrap .dgwt-wcas-ico-magnifier-handler {
  color: #2563eb !important;
}

.ja-header__search-wrap .dgwt-wcas-search-submit,
.ja-header__search-wrap button.dgwt-wcas-search-submit {
  background: #2563eb !important;
}

.ja-action {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: #334155;
}

.ja-action:hover {
  border-color: #bfdbfe;
  color: #2563eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ja-action__icon {
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  border-radius: 0;
}

.ja-action__text { display: none; }

@media (min-width: 1280px) {
  .ja-action__text { display: grid; }
}

.ja-action__label {
  font-size: 0.75rem;
  color: #1e293b;
}

.ja-action:hover .ja-action__label { color: #2563eb; }

.ja-action__hint {
  font-size: 0.62rem;
  color: #64748b;
}

.ja-action__count {
  min-width: 1rem;
  height: 1rem;
  font-size: 0.62rem;
  line-height: 1rem;
  background: #d97706;
}

.ja-action__count--amber {
  background: #d97706;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}

.ja-action__count--blue {
  background: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.ja-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  color: #fff !important;
  font-family: var(--ja-font-display);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ja-header__cta:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.38);
  color: #fff !important;
  background: linear-gradient(90deg, #ea580c, #d97706);
}

.ja-nav {
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.82);
}

.ja-nav__list > li > a,
.ja-nav__mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  color: #334155;
  text-decoration: none;
  font-family: var(--ja-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px 10px 0 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.ja-nav__list > li > a:hover,
.ja-nav__mega:hover > .ja-nav__mega-trigger {
  color: #2563eb;
  background: #f8fafc;
}

.ja-nav__list > li.current-menu-item > a,
.ja-nav__list > li.current-menu-item > .ja-nav__mega-trigger {
  color: #2563eb;
  background: rgba(239, 246, 255, 0.9);
  border-bottom-color: #2563eb;
}

.ja-nav__chevron {
  transition: transform 0.2s;
  opacity: 0.55;
}

.ja-nav__mega:hover .ja-nav__chevron {
  transform: rotate(180deg);
}

.ja-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  width: min(640px, 90vw);
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  animation: ja-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ja-nav__mega:hover > .ja-mega,
.ja-nav__mega:focus-within > .ja-mega {
  display: block;
}

@keyframes ja-fade-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.ja-mega__cols {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
}

.ja-mega__label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ja-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ja-mega__list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.ja-mega__list a:hover { background: #eff6ff; }

.ja-mega__icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: #dbeafe;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ja-mega__list a:hover .ja-mega__icon {
  background: #2563eb;
  color: #fff;
}

.ja-mega__name {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
}

.ja-mega__count {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}

.ja-mega__panel {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.ja-mega__badge {
  display: inline-flex;
  width: fit-content;
  background: #2563eb;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.ja-mega__panel h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.ja-mega__panel p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.ja-mega__panel .ja-btn {
  justify-self: stretch;
  margin-top: 0.35rem;
  border-radius: 10px;
}

.ja-nav__shop-link {
  color: #2563eb;
  font-size: 0.875rem;
  padding: 0.45rem 0.2rem;
  border-radius: 0;
  background: transparent;
}

.ja-nav__shop-link:hover {
  color: #1d4ed8;
  background: transparent;
}

@media (max-width: 1100px) {
  .ja-header__cta span + svg { display: none; }
}

.ja-header__mobile-search {
  display: none;
  padding: 0 0 0.85rem;
}

.ja-header__mobile-search .ja-search,
.ja-header__mobile-search .ja-header__search-wrap {
  width: 100%;
}

.ja-header__mobile-search .ja-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.4rem 0.35rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.ja-header__mobile-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  outline: none;
}

@media (max-width: 768px) {
  .ja-header__chip,
  .ja-header__divider { display: none; }

  .ja-header__mobile-search { display: block; }

  .ja-mega {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    padding: 0.5rem 0 0.75rem;
    display: none;
  }

  .ja-nav__mega.is-open > .ja-mega,
  .ja-nav.is-open .ja-nav__mega > .ja-mega {
    display: block;
  }

  .ja-mega__cols {
    grid-template-columns: 1fr;
  }
}
