.jm-footer {
  display: block;
  clear: both;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 4px solid #e1ae5c;
  background: #172c42;
  color: #f8f7f4;
  font-size: 1rem;
  line-height: 1.55;
}

.jm-footer-grid {
  display: grid;
  grid-template-columns: 1.26fr 1fr 1.02fr 1.12fr;
  max-width: 1440px;
  margin-inline: auto;
}

.jm-footer-brand,
.jm-footer-section {
  min-width: 0;
  padding: clamp(1.5rem, 2.6vw, 2.8rem);
}

.jm-footer-brand { background: #102238; }
.jm-footer-section + .jm-footer-section { border-inline-start: 1px solid #ffffff20; }

.jm-footer a { color: inherit; text-decoration: none; }
.jm-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.jm-footer a:focus-visible { outline: 2px solid #f2c77b; outline-offset: 4px; }

.jm-footer h2 {
  margin: 0 0 .85rem;
  color: #f4c981;
  font-size: 1rem;
  font-weight: 750;
}

.jm-footer p { margin: 0 0 .9rem; }
.jm-footer p:last-child { margin-bottom: 0; }
.jm-footer address { margin: 0 0 1rem; font-style: normal; }
.jm-footer ul { margin: 0; padding: 0; list-style: none; }
.jm-footer nav li + li { margin-top: .4rem; }

.jm-footer-logo {
  display: inline-block;
  max-width: 100%;
  margin-bottom: .9rem;
  padding: .5rem .65rem;
  border-radius: .4rem;
  background: #fff;
}
.jm-footer-logo img { display: block; width: 11.5rem; max-width: 100%; height: auto; }
.jm-footer-phone { font-weight: 750; }

.jm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: .85rem;
}

.jm-footer-social a {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #ffffff70;
  border-radius: 50%;
}

.jm-footer-social a:hover { background: #ffffff15; }
.jm-footer svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

.jm-footer-quote {
  display: inline-block;
  padding: .5rem .85rem;
  border: 1px solid #f4c981;
  border-radius: .4rem;
  font-weight: 700;
}

.jm-footer .jm-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.1rem;
}

.jm-footer-tags li {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .55rem;
  border-radius: .3rem;
  background: #ffffff16;
  font-size: .9rem;
}

.jm-footer-tags a { display: inline-flex; align-items: center; gap: .4rem; }

.jm-footer-bottom {
  padding: .9rem 1.25rem;
  border-top: 1px solid #ffffff20;
  text-align: center;
  font-size: .875rem;
}

@media (max-width: 960px) {
  .jm-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jm-footer-section + .jm-footer-section { border-inline-start: 0; border-top: 1px solid #ffffff20; }
}

@media (max-width: 560px) {
  .jm-footer-grid { grid-template-columns: 1fr; }
  .jm-footer-section { border-top: 1px solid #ffffff20; }
  .jm-footer-bottom { padding-bottom: 4.25rem; }
}
