:root {
  --jm-primary: #0d98db;
  --jm-accent: #ef224d;
  --jm-dark: #172b3a;
  --jm-text: #3c4650;
  --jm-muted: #6b7680;
  --jm-light: #f4f7f9;
  --jm-border: #dfe6eb;
  --jm-white: #fff;
  --jm-shadow: 0 12px 32px rgba(23, 43, 58, .1);
  --jm-radius: 6px;
  --jm-width: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--jm-white);
  color: var(--jm-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--jm-primary); text-decoration: none; }
a:hover { color: var(--jm-accent); }
button, input, select, textarea { font: inherit; }

.jm-container {
  width: min(var(--jm-width), calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  inset: 8px auto auto 8px;
  padding: 10px 16px;
  translate: 0 -150%;
  background: var(--jm-dark);
  color: #fff;
}
.skip-link:focus { translate: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.jm-topbar {
  padding: 8px 0;
  background: var(--jm-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
}
.jm-topbar a { color: #fff; }
.jm-topbar-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.jm-header {
  position: relative;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.jm-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.jm-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--jm-dark);
}
.jm-brand:hover { color: var(--jm-dark); }
.jm-brand > img { width: auto; max-height: 72px; }
.jm-brand-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--jm-primary);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  box-shadow: inset -10px -8px 0 rgba(0,0,0,.08);
}
.jm-brand-copy { display: flex; min-width: 0; flex-direction: column; }
.jm-brand-copy strong {
  overflow-wrap: anywhere;
  color: var(--jm-dark);
  font-size: 1.15rem;
  line-height: 1.2;
}
.jm-brand-copy small {
  color: var(--jm-muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.jm-navigation { margin-left: auto; }
.jm-navigation ul {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jm-navigation li { position: relative; }
.jm-navigation a,
.jm-navigation .nav-header {
  display: block;
  padding: 32px 13px;
  color: var(--jm-dark);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.jm-navigation .current > a,
.jm-navigation a:hover { color: var(--jm-primary); }
.jm-navigation li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  align-items: stretch;
  padding: 8px 0;
  background: #fff;
  box-shadow: var(--jm-shadow);
}
.jm-navigation li:hover > ul,
.jm-navigation li:focus-within > ul { display: block; }
.jm-navigation li > ul a { padding: 10px 17px; text-transform: none; }
.jm-navigation li > ul ul { top: 0; left: 100%; }
.jm-menu-toggle {
  width: 46px;
  height: 42px;
  display: none;
  padding: 9px;
  border: 0;
  border-radius: 4px;
  background: var(--jm-primary);
  cursor: pointer;
}
.jm-menu-toggle > span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.jm-hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--jm-primary), var(--jm-dark));
  color: #fff;
}
.jm-hero > * { margin: 0; }
.jm-hero img { width: 100%; }
.jm-hero .custom { min-height: inherit; }

.jm-section { padding: 64px 0; }
.jm-top1, .jm-bottom2 { background: #fff; }
.jm-top2, .jm-bottom1 { background: var(--jm-light); }
.jm-top3 { background: var(--jm-primary); color: #fff; }

.jm-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
}
.card,
.jm-module-grid > .moduletable {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius);
  background: #fff;
}
.card-header,
.card h3,
.moduletable > h3 {
  margin: 0 0 18px;
  color: var(--jm-dark);
  font-size: 1.2rem;
}
.jm-top3 .card { color: var(--jm-text); }

.jm-breadcrumbs {
  padding: 13px 0;
  border-bottom: 1px solid var(--jm-border);
  background: var(--jm-light);
  font-size: .86rem;
}
.jm-breadcrumbs ol { margin: 0; }

.jm-main-grid {
  display: grid;
  gap: 34px;
  padding-block: 55px;
}
.site.no-sidebars .jm-main-grid { grid-template-columns: minmax(0, 1fr); }
.site.has-left .jm-main-grid { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
.site.has-right .jm-main-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); }
.site.has-both .jm-main-grid { grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(190px, 240px); }
.jm-content, .jm-sidebar { min-width: 0; }
.jm-content-top { margin-bottom: 28px; }
.jm-content-bottom { margin-top: 28px; }
.jm-sidebar .card { margin-bottom: 24px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--jm-dark);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.page-header h1, .item-title { margin-top: 0; }

.btn,
.jm-button,
button.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--jm-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover, .jm-button:hover { background: var(--jm-accent); color: #fff; }
.btn-secondary { background: var(--jm-dark); }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  max-width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #bcc8d0;
  border-radius: 3px;
  background: #fff;
}
textarea { min-height: 130px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border: 1px solid var(--jm-border); text-align: start; }

.alert {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--jm-primary);
  background: #edf8fd;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  list-style: none;
}
.pagination a, .pagination span { display: block; padding: 7px 12px; border: 1px solid var(--jm-border); }

.jm-footer {
  padding-top: 52px;
  background: var(--jm-dark);
  color: rgba(255,255,255,.72);
}
.jm-footer h1, .jm-footer h2, .jm-footer h3, .jm-footer h4 { color: #fff; }
.jm-footer a { color: rgba(255,255,255,.82); }
.jm-footer a:hover { color: #fff; }
.jm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 32px;
}
.jm-footer-bottom {
  min-height: 74px;
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.jm-backtop {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: 45px;
  height: 45px;
  display: none;
  border: 0;
  border-radius: 50%;
  background: var(--jm-accent);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--jm-shadow);
}
.jm-backtop.is-visible { display: block; }

.jm-error,
.jm-offline {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.jm-error-code {
  margin: 0;
  color: var(--jm-primary);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: .8;
}
.offline-page { background: var(--jm-light); }
.jm-offline { max-width: 680px; }
.component { padding: 25px; }

@media (max-width: 980px) {
  .jm-menu-toggle { display: block; margin-left: auto; }
  .jm-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    background: #fff;
    box-shadow: var(--jm-shadow);
  }
  .jm-navigation.is-open { display: block; }
  .jm-navigation ul { display: block; }
  .jm-navigation a, .jm-navigation .nav-header { padding: 13px 22px; border-bottom: 1px solid var(--jm-border); }
  .jm-navigation li > ul {
    position: static;
    min-width: 0;
    display: block;
    padding: 0 0 0 18px;
    box-shadow: none;
  }
  .site.has-left .jm-main-grid,
  .site.has-right .jm-main-grid,
  .site.has-both .jm-main-grid { grid-template-columns: minmax(0, 1fr); }
  .site.has-left .jm-sidebar-left,
  .site.has-both .jm-sidebar-left { order: 2; }
  .site.has-left .jm-content,
  .site.has-both .jm-content { order: 1; }
  .site.has-right .jm-sidebar-right,
  .site.has-both .jm-sidebar-right { order: 3; }
}

@media (max-width: 650px) {
  .jm-container { width: calc(100% - 24px); }
  .jm-topbar-grid, .jm-footer-bottom { flex-direction: column; align-items: flex-start; }
  .jm-topbar-grid { gap: 4px; }
  .jm-header-inner { min-height: 76px; gap: 12px; }
  .jm-brand-icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 1.25rem; }
  .jm-brand-copy strong { font-size: .98rem; }
  .jm-brand-copy small { font-size: .58rem; }
  .jm-hero { min-height: 180px; }
  .jm-section { padding: 42px 0; }
  .jm-main-grid { gap: 26px; padding-block: 38px; }
  .card, .jm-module-grid > .moduletable { padding: 20px; }
  .jm-footer { padding-top: 40px; }
  .jm-footer-bottom { padding-block: 20px; }
}

@media print {
  .jm-topbar, .jm-header, .jm-hero, .jm-sidebar, .jm-footer, .jm-backtop, .jm-breadcrumbs { display: none !important; }
  .jm-main-grid { display: block; padding: 0; }
  a { color: #000; text-decoration: underline; }
}
