.uhm,
.uhm * { box-sizing: border-box; }

.uhm {
  --uhm-primary: #45a236;
  --uhm-secondary: #347fe8;
  --uhm-accent: #ed3937;
  --uhm-bg: #fff;
  --uhm-surface: #f3f8f5;
  --uhm-text: #111827;
  --uhm-ticker-text: #fff;
  --uhm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --uhm-base: 16px;
  --uhm-ticker-speed: 34s;
  position: relative;
  z-index: 9990;
  display: block;
  width: 100%;
  color: var(--uhm-text);
  background: var(--uhm-bg);
  font: 400 var(--uhm-base)/1.35 var(--uhm-font);
  box-shadow: 0 8px 28px rgba(18, 45, 32, .07);
}

.uhm a { color: inherit; text-decoration: none; }
.uhm button { font: inherit; }
.uhm svg { display: block; width: 1.4em; height: 1.4em; fill: currentColor; }
.uhm-skip { position: fixed; left: 16px; top: -80px; z-index: 10020; padding: 12px 18px; color: #fff !important; background: #111; border-radius: 0 0 10px 10px; transition: top .2s; }
.uhm-skip:focus { top: 0; }

.uhm-ticker { overflow: hidden; color: var(--uhm-ticker-text); background: linear-gradient(90deg, var(--uhm-primary), var(--uhm-secondary)); }
.uhm-ticker__track { display: flex; width: max-content; animation: uhm-marquee var(--uhm-ticker-speed) linear infinite; }
.uhm-ticker:hover .uhm-ticker__track { animation-play-state: paused; }
.uhm-ticker__group { display: flex; align-items: center; flex-shrink: 0; min-width: 100vw; }
.uhm-ticker__group span { display: inline-flex; align-items: center; padding: 9px 24px; white-space: nowrap; font-size: .78em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.uhm-ticker__group span::after { content: ""; width: 5px; height: 5px; margin-left: 48px; border-radius: 50%; background: currentColor; opacity: .9; }
@keyframes uhm-marquee { to { transform: translateX(-50%); } }

.uhm-main { display: grid; grid-template-columns: minmax(290px, 1.3fr) minmax(520px, 2.2fr) auto; gap: 22px; align-items: center; max-width: 1500px; min-height: 106px; margin: 0 auto; padding: 14px 24px; }
.uhm-brand { display: flex; align-items: center; min-width: 0; gap: 14px; }
.uhm-logo { display: flex; flex: 0 0 94px; align-items: center; justify-content: center; height: 78px; }
.uhm-logo img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.uhm-brand__copy { min-width: 0; }
.uhm-title { max-width: 330px; margin: 5px 0 0; font-size: .9em; font-weight: 800; line-height: 1.25; }
.uhm-socials { display: flex; gap: 7px; }
.uhm-socials a { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--uhm-primary), var(--uhm-secondary)); border-radius: 50%; transition: transform .2s; }
.uhm-socials a:hover { transform: translateY(-2px); }
.uhm-socials svg { width: 17px; height: 17px; }

.uhm-contacts { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 9px; }
.uhm-contact { display: flex; align-items: center; min-height: 50px; gap: 10px; padding: 9px 12px; border: 1px solid rgba(26, 73, 50, .08); border-radius: 13px; background: var(--uhm-surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
a.uhm-contact:hover { border-color: var(--uhm-secondary); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31, 74, 52, .08); }
.uhm-contact__icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--uhm-primary), var(--uhm-secondary)); border-radius: 10px; }
.uhm-contact__icon svg { width: 18px; height: 18px; }
.uhm-contact strong, .uhm-contact small { display: block; }
.uhm-contact strong { font-size: .86em; line-height: 1.2; }
.uhm-contact small { margin-top: 2px; color: color-mix(in srgb, var(--uhm-text) 60%, transparent); font-size: .7em; }

.uhm-actions { display: grid; gap: 8px; min-width: 190px; }
.uhm-button { display: flex; align-items: center; justify-content: center; min-height: 43px; gap: 9px; padding: 9px 15px; border: 0; border-radius: 12px 12px 12px 3px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.uhm-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20, 47, 34, .15); }
.uhm-button--contact { color: #fff !important; background: linear-gradient(105deg, var(--uhm-primary), var(--uhm-secondary)); }
.uhm-button--a11y { color: #fff; background: var(--uhm-accent); }
.uhm-button--a11y svg { width: 22px; height: 22px; }
.uhm-button--dark { color: var(--uhm-text); background: var(--uhm-surface); border: 1px solid color-mix(in srgb, var(--uhm-text) 15%, transparent); }
.uhm-dark-icon { display: inline-grid; place-items: center; }
.uhm-dark-icon--sun { display: none; }
[data-uhm-dark-toggle].is-active .uhm-dark-icon--moon { display: none; }
[data-uhm-dark-toggle].is-active .uhm-dark-icon--sun { display: inline-grid; }

.uhm-nav { width: 100%; padding: 0 12px; border-top: 1px solid rgba(17, 24, 39, .07); background: var(--uhm-bg); }
.uhm-nav-menu { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; width: 100%; max-width: none; min-height: 58px; margin: 0 auto !important; padding: 0 !important; list-style: none !important; }
.uhm-nav-menu > li { position: relative; display: flex; margin: 0 !important; padding: 0 !important; }
.uhm-nav-menu > li > a { display: flex; align-items: center; justify-content: center; max-width: 205px; padding: 12px clamp(7px, .62vw, 15px); text-align: center; font-size: clamp(10px, .68vw, 13px); font-weight: 800; line-height: 1.15; }
.uhm-nav-menu > li > a::after { content: ""; position: absolute; right: 17px; bottom: 9px; left: 17px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--uhm-primary), var(--uhm-secondary)); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.uhm-nav-menu > li:hover > a::after, .uhm-nav-menu > .current-menu-item > a::after { transform: scaleX(1); }
.uhm-nav-menu .sub-menu { position: absolute; top: calc(100% - 3px); left: 0; z-index: 3; display: none; width: 290px; margin: 0 !important; padding: 8px !important; list-style: none !important; background: #fff; border: 1px solid rgba(17, 24, 39, .08); border-radius: 12px; box-shadow: 0 18px 35px rgba(17, 24, 39, .15); }
.uhm-nav-menu li:hover > .sub-menu, .uhm-nav-menu li:focus-within > .sub-menu { display: block; }
.uhm-nav-menu .sub-menu li { position: relative; margin: 0 !important; }
.uhm-nav-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: .82em; font-weight: 650; }
.uhm-nav-menu .sub-menu a:hover { background: var(--uhm-surface); color: var(--uhm-secondary); }
.uhm-nav-menu .sub-menu .sub-menu { top: 0; left: calc(100% + 4px); }

.uhm.is-sticky-nav { padding-bottom: var(--uhm-sticky-height, 58px); }
.uhm-nav.uhm-nav--sticky { position: fixed; top: 0; right: 0; left: 0; z-index: 10005; padding: 8px 16px; border: 0; background: linear-gradient(105deg, var(--uhm-primary), var(--uhm-secondary)); box-shadow: 0 8px 24px rgba(12, 42, 28, .24); animation: uhm-sticky-in .22s ease-out; }
.uhm-nav--sticky .uhm-nav-menu { width: 100%; min-height: 0; gap: 6px; }
.uhm-nav--sticky .uhm-nav-menu > li > a { min-height: 34px; padding: 7px clamp(9px, .68vw, 14px); color: #fff; border: 1px solid rgba(255,255,255,.52); border-radius: 999px; font-size: clamp(10px, .62vw, 12px); line-height: 1; }
.uhm-nav--sticky .uhm-nav-menu > li > a::after { display: none; }
.uhm-nav--sticky .uhm-nav-menu > li:hover > a,
.uhm-nav--sticky .uhm-nav-menu > .current-menu-item > a { color: var(--uhm-secondary); background: #fff; border-color: #fff; }
.uhm-nav--sticky .sub-menu { color: #111827; }
body.admin-bar .uhm-nav.uhm-nav--sticky { top: 32px; }
@keyframes uhm-sticky-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }

.uhm-burger { display: none; width: 46px; height: 46px; padding: 0; place-items: center; color: #fff; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--uhm-primary), var(--uhm-secondary)); cursor: pointer; }
.uhm-drawer, .uhm-a11y-panel { position: fixed; z-index: 10010; background: #fff; color: #111827; box-shadow: 0 25px 70px rgba(0, 0, 0, .28); }
.uhm-drawer { top: 0; right: 0; bottom: 0; width: min(430px, 92vw); padding: 20px; overflow: auto; transform: translateX(102%); transition: transform .28s ease; }
.uhm-drawer.is-open { transform: translateX(0); }
.uhm-drawer__head, .uhm-a11y-panel__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #e5e7eb; }
.uhm-drawer__head strong, .uhm-a11y-panel__head strong { font-size: 1.15em; }
.uhm-drawer__head button, .uhm-a11y-panel__head button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 10px; background: #eef2f0; cursor: pointer; }
.uhm-mobile-menu { margin: 12px 0 18px !important; padding: 0 !important; list-style: none !important; }
.uhm-mobile-menu li { margin: 0 !important; }
.uhm-mobile-menu a { display: block; padding: 13px 4px; border-bottom: 1px solid #e5e7eb; font-weight: 750; }
.uhm-mobile-menu .sub-menu { margin: 0 0 0 16px !important; padding: 0 !important; list-style: none !important; }
.uhm-mobile-menu .sub-menu a { font-size: .9em; font-weight: 550; }
.uhm-drawer__contacts { display: grid; gap: 8px; }
.uhm-drawer__contacts a { display: flex; align-items: center; gap: 10px; padding: 11px; background: #f3f8f5; border-radius: 10px; }
.uhm-drawer__contacts svg { flex: 0 0 23px; color: var(--uhm-secondary); }
.uhm-drawer__contacts strong, .uhm-drawer__contacts small { display: block; }
.uhm-drawer__contacts strong { font-size: .86em; }
.uhm-drawer__contacts small { color: #667085; font-size: .74em; }
.uhm-drawer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.uhm-drawer__socials a { display: flex; align-items: center; gap: 6px; padding: 9px 11px; color: #fff; background: linear-gradient(135deg, var(--uhm-primary), var(--uhm-secondary)); border-radius: 9px; font-size: .78em; font-weight: 700; }
.uhm-drawer__socials svg { width: 18px; height: 18px; }
.uhm-drawer__dark { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; gap: 9px; margin-top: 14px; color: #111827; background: #eef2f0; border: 1px solid #d6ded9; border-radius: 10px; font-weight: 800; cursor: pointer; }
.uhm-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(5, 15, 10, .56); backdrop-filter: blur(2px); }

.uhm-a11y-panel { top: 20px; right: 20px; width: min(480px, calc(100vw - 28px)); padding: 20px; border: 3px solid #111; border-radius: 16px; }
.uhm-a11y-control { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; margin-top: 16px; }
.uhm-a11y-control > span { font-weight: 750; }
.uhm-a11y-control div { display: flex; flex-wrap: wrap; gap: 7px; }
.uhm-a11y-control button, .uhm-a11y-reset { min-height: 42px; padding: 8px 12px; border: 2px solid #111; border-radius: 8px; background: #fff; font-weight: 750; cursor: pointer; }
.uhm-a11y-control button.is-active { color: #fff; background: #111; }
.uhm-a11y-check { display: block; margin: 17px 0; font-weight: 700; }
.uhm-a11y-check input { width: 21px; height: 21px; vertical-align: middle; }
.uhm-a11y-reset { width: 100%; color: #fff; background: #111; }
body.uhm-lock { overflow: hidden; }

/* JS sets exact pixel values from each element's computed size so Elementor
   typography declared in px grows too. Classes remain as stable state hooks. */
html.uhm-theme-contrast body { color: #fff !important; background: #000 !important; }
html.uhm-theme-contrast body :where(main, section, article, header, footer, aside, nav, div) { color: #fff !important; background-color: #000 !important; background-image: none !important; border-color: #fff !important; }
html.uhm-theme-contrast body a { color: #ff0 !important; text-decoration: underline !important; }
html.uhm-theme-contrast body button { color: #fff !important; background: #000 !important; border: 2px solid #fff !important; }
html.uhm-theme-grayscale body { filter: grayscale(1); }
html.uhm-hide-images body img, html.uhm-hide-images body picture, html.uhm-hide-images body video, html.uhm-hide-images body svg:not(.uhm svg) { visibility: hidden !important; }

/* Universal dark theme: deliberately targets common WordPress/Elementor shells
   so the whole page changes, while media keeps its natural colors. */
html.uhm-dark { color-scheme: dark; }
html.uhm-dark body,
html.uhm-dark body #page,
html.uhm-dark body .site,
html.uhm-dark body .jupiterx-site,
html.uhm-dark body main,
html.uhm-dark body article,
html.uhm-dark body .elementor,
html.uhm-dark body .elementor-location-single,
html.uhm-dark body .elementor-location-archive { color: #f4f7f5 !important; background-color: #0d1511 !important; }
html.uhm-dark body :where(.elementor-section, .e-con, .elementor-column-wrap, .elementor-widget-wrap, header:not(.uhm), footer, aside) { color: #f4f7f5 !important; background-color: #111b16 !important; }
html.uhm-dark body :where(.elementor-widget-container, .card, [class*="-card"], [class*="_card"], table, blockquote) { color: #f4f7f5 !important; background-color: #17241e !important; border-color: #34483e !important; }
html.uhm-dark body :where(h1, h2, h3, h4, h5, h6, p, li, label, strong, small, span) { color: inherit !important; }
html.uhm-dark body a:not(.uhm a) { color: #8ebcff !important; }
html.uhm-dark body :where(input, textarea, select) { color: #f4f7f5 !important; background: #17241e !important; border-color: #53685d !important; }
html.uhm-dark body :where(input, textarea)::placeholder { color: #aebbb4 !important; }
html.uhm-dark body :where(hr, table, td, th) { border-color: #34483e !important; }
html.uhm-dark body :where(img, picture, video, canvas) { filter: none; }
html.uhm-dark .uhm { --uhm-bg: #101914 !important; --uhm-surface: #1a2921 !important; --uhm-text: #f5f7f6 !important; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
html.uhm-dark .uhm-nav-menu .sub-menu,
html.uhm-dark .uhm-drawer,
html.uhm-dark .uhm-a11y-panel { color: #f5f7f6; background: #101914; border-color: #34483e; }
html.uhm-dark .uhm-drawer__head button,
html.uhm-dark .uhm-a11y-panel__head button,
html.uhm-dark .uhm-drawer__dark { color: #f5f7f6; background: #1a2921; border-color: #34483e; }
html.uhm-dark .uhm-mobile-menu a,
html.uhm-dark .uhm-drawer__head,
html.uhm-dark .uhm-a11y-panel__head { border-color: #34483e; }
html.uhm-dark .uhm-drawer__contacts a { color: #f5f7f6; background: #1a2921; }

@media (max-width: 1180px) {
  .uhm-main { grid-template-columns: minmax(300px, 1fr) minmax(390px, 1.35fr) auto; padding-right: 18px; padding-left: 18px; }
  .uhm-contacts { grid-template-columns: 1fr 1fr; }
  .uhm-contact:nth-child(n+3) { display: none; }
  .uhm-nav-menu { width: 100%; }
  .uhm-nav-menu > li > a { padding-right: 9px; padding-left: 9px; font-size: 10px; }
  .uhm-actions { min-width: 166px; }
}

@media (max-width: 1400px) and (min-width: 901px) {
  .uhm-nav-menu { flex-wrap: wrap; }
  .uhm-nav-menu > li > a { max-width: none; white-space: nowrap; }
}

@media (max-width: 900px) {
  .uhm-main { grid-template-columns: 1fr auto; min-height: 84px; gap: 12px; padding: 10px 16px; }
  .uhm-brand { min-width: 0; }
  .uhm-logo { flex-basis: 68px; height: 62px; }
  .uhm-title { max-width: 430px; font-size: .82em; }
  .uhm-socials, .uhm-contacts, .uhm-actions, .uhm-nav { display: none; }
  .uhm-burger { display: grid; }
  .uhm-ticker__group span { padding: 8px 17px; }
}

@media (max-width: 782px) {
  body.admin-bar .uhm-nav.uhm-nav--sticky { top: 46px; }
}

@media (max-width: 520px) {
  .uhm-main { min-height: 76px; padding: 8px 12px; }
  .uhm-logo { flex-basis: 56px; height: 56px; }
  .uhm-title { display: -webkit-box; overflow: hidden; font-size: .73em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .uhm-burger { width: 44px; height: 44px; }
  .uhm-a11y-control { grid-template-columns: 1fr; }
  .uhm-ticker__group span { font-size: .7em; }
}

@media (prefers-reduced-motion: reduce) {
  .uhm *, .uhm *::before, .uhm *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .uhm-ticker__track { width: auto; transform: none; }
  .uhm-ticker__group { flex-wrap: wrap; justify-content: center; }
  .uhm-ticker__group[aria-hidden="true"] { display: none; }
}
