/* Shared header */
.hm-header {
  --hm-primary: #245fc4;
  --hm-secondary: #0b1d38;
  --hm-accent: #24a98b;
  --hm-text: #34445d;
  --hm-bg: #fff;
  --hm-light-bg: #f3f7fc;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #dfe7f1;
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: inherit;
}

.hm-header .hm-topbar {
  background: #10243d;
  color: #f1f5f9;
  font-size: 0.83rem;
}

.hm-header .hm-topbar-inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.hm-header .hm-topbar-content {
  min-width: 0;
  flex: 1 1 auto;
}

.hm-header .hm-topbar-content p {
  margin: 0;
}

.hm-header .hm-topbar-content .topbar {
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.hm-header .hm-topbar-content a,
.hm-header .hm-topbar-phone {
  color: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.4;
}

.hm-header .hm-topbar-phone {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #fff;
  white-space: nowrap;
}

.hm-header .hm-topbar-phone:hover,
.hm-header .hm-topbar-phone:focus-visible {
  color: #cbdcf1;
}

.hm-header .hm-topbar-phone-icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #cbdcf1;
  font-size: 11px;
}

.hm-header .hm-topbar a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.hm-header .hm-topbar a:hover,
.hm-header .hm-topbar a:focus-visible {
  color: #9fc5ff;
}

.hm-header .header-wraper {
  padding: 12px 0;
  background: var(--hm-bg);
}

.hm-header .header-main {
  min-height: 60px;
  gap: clamp(16px, 2.5vw, 34px);
}

.hm-header .hm-logo {
  flex: 0 0 auto;
}

.hm-header .hm-logo a {
  min-height: 48px;
}

.hm-header .hm-logo img {
  display: block;
  width: clamp(118px, 12vw, 150px);
  height: auto;
  aspect-ratio: 2.508 / 1;
  object-fit: contain;
}

.hm-header .hm-nav {
  min-width: 0;
}

.hm-header #primary-menu,
.hm-header #primary-menu ul.sub-menu {
  margin: 0;
  list-style: none;
}

.hm-header #primary-menu > li > a,
.hm-header #primary-menu > li > span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--hm-secondary);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.hm-header #primary-menu > li > a:hover,
.hm-header #primary-menu > li > a:focus-visible,
.hm-header #primary-menu > li.current-menu-item > a,
.hm-header #primary-menu > li.current-menu-item > span,
.hm-header #primary-menu > li.current-menu-ancestor > a,
.hm-header #primary-menu > li.current-menu-ancestor > span,
.hm-header #primary-menu > li.current_page_item > a {
  background: #edf3fc;
  color: var(--hm-primary);
}

.hm-header #primary-menu li.current-menu-item > a {
  color: var(--hm-primary) !important;
}

.hm-header #primary-menu a:focus-visible,
.hm-header .hm-nav-toggle:focus-visible,
.hm-header .contactlink a:focus-visible {
  outline: 3px solid rgba(36, 95, 196, 0.48);
  outline-offset: 2px;
}

.hm-header #primary-menu ul.sub-menu {
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: var(--hm-bg);
  box-shadow: 0 14px 32px rgba(11, 29, 56, 0.12);
}

.hm-header #primary-menu ul.sub-menu a {
  color: var(--hm-text);
  text-decoration: none;
}

.hm-header #primary-menu ul.sub-menu a:hover,
.hm-header #primary-menu ul.sub-menu a:focus-visible,
.hm-header #primary-menu ul.sub-menu li.current-menu-item > a {
  color: var(--hm-primary);
}

.hm-header #primary-menu li ul.sub-menu li.current-menu-item > a {
  background: var(--hm-primary) !important;
  color: #fff !important;
}

.hm-header .contactlink a {
  display: inline-flex;
  min-width: 128px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--hm-primary);
  border-radius: 999px;
  background: var(--hm-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hm-header .contactlink a:hover {
  transform: translateY(-1px);
  border-color: #194da6;
  background: #194da6;
  color: #fff;
}

.hm-header .hm-nav-toggle {
  border-color: #dfe7f1;
  background: #fff;
  color: var(--hm-primary);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hm-header .hm-nav-toggle:hover {
  border-color: #bfd0e8;
  background: var(--hm-light-bg);
}

@media (max-width: 991px) {
  .hm-header .header-wraper {
    padding: 10px 0;
  }

  .hm-header .header-main {
    min-height: 56px;
  }

  .hm-header .header-main .hmenu {
    display: flex;
    visibility: hidden;
    border-color: #dfe7f1;
    background: #fff;
    box-shadow: 0 16px 34px rgba(11, 29, 56, 0.14);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .hm-header .header-main.is-menu-open .hmenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .hm-header .hm-nav-toggle {
    min-width: 44px;
    min-height: 44px;
    border-color: #dfe7f1;
    border-radius: 12px;
  }

  .hm-header #primary-menu > li > a {
    min-height: 48px;
    border-radius: 8px;
  }

  .hm-header #primary-menu ul.sub-menu {
    border: 0;
    border-left: 2px solid #bfd0e8;
    border-radius: 0;
    background: var(--hm-light-bg);
    box-shadow: none;
  }

  .hm-header #primary-menu ul.sub-menu a {
    min-height: 44px;
  }
}

@media (max-width: 575px) {
  .hm-header .hm-topbar-inner {
    gap: 8px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .hm-header .hm-topbar-content a,
  .hm-header .hm-topbar-phone {
    font-size: 0.78rem;
  }

  .hm-header .hm-topbar-phone {
    gap: 6px;
  }

  .hm-header .hm-topbar-phone-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .hm-header .hm-logo img {
    width: 122px;
  }

  .hm-header .hm-topbar {
    font-size: 0.78rem;
  }
}

  @media (min-width: 1200px) {
    .hm-header .header-wraper {
      padding-block: 14px;
    }

    .hm-header .header-main {
      gap: 30px;
    }
  }

/* Shared footer */
.hm-footer {
  --hm-primary: #245fc4;
  --hm-secondary: #0b1d38;
  --hm-accent: #24a98b;
  --hm-text: #34445d;
  --hm-bg: #fff;
  --hm-light-bg: #f3f7fc;
  border-top: 1px solid #dfe7f1;
  background: #f3f7fc;
  color: #34445d;
  font-family: inherit;
}

.hm-footer .footer-section,
.hm-footer .container {
  color: inherit;
}

.hm-footer > .container {
  padding-top: clamp(42px, 5vw, 64px);
  padding-bottom: 38px;
}

.hm-footer .fwraper {
  border: 0;
}

.hm-footer .fwraper > .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}

.hm-footer .hm-footer-col {
  width: auto;
  max-width: none;
  padding: 0;
}

.hm-footer .fotter1 {
  height: 100%;
  padding-top: 0;
  text-align: left;
}

.hm-footer .hm-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
}

.hm-footer .hm-footer-logo img {
  display: block;
  width: 190px;
  height: auto;
  aspect-ratio: 2.508 / 1;
  object-fit: contain;
}

.hm-footer .fotter1 h3 {
  margin: 5px 0 20px;
  color: #0b1d38;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hm-footer .fwraper .fotter1 > h3::after {
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: #245fc4;
  content: "";
}

.hm-footer .fotter1 ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-footer .fotter1 ul li {
  margin: 0;
  padding: 0;
}

.hm-footer .fotter1 ul li + li {
  margin-top: 4px;
}

.hm-footer .fotter1 ul li a,
.hm-footer .cinfo a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #34445d;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 180ms ease;
}

.hm-footer .fwraper .fotter1 ul li a {
  min-height: 36px;
  color: #34445d;
  font-size: 1rem;
  line-height: 1.5;
}

.hm-footer .fotter1 ul li a:hover,
.hm-footer .fotter1 ul li a:focus-visible,
.hm-footer .cinfo a:hover,
.hm-footer .cinfo a:focus-visible {
  color: #245fc4;
}

.hm-footer .fwraper .fotter1 ul li a:hover,
.hm-footer .fwraper .fotter1 ul li a:focus-visible,
.hm-footer .fwraper .fotter1 .cinfo a:hover,
.hm-footer .fwraper .fotter1 .cinfo a:focus-visible {
  color: #245fc4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hm-footer .fotter1 a:focus-visible,
.hm-footer .fslinks a:focus-visible {
  outline: 2px solid #245fc4;
  outline-offset: 3px;
}

.hm-footer .fotter1 .cinfo p {
  position: relative;
  margin: 0 0 12px;
  padding-left: 23px;
  color: #34445d;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.65;
}

.hm-footer .fotter1 .cinfo p i {
  position: absolute;
  top: 4px;
  left: 0;
  color: #245fc4;
}

.hm-footer .fotter1 .cinfo a {
  display: flex;
  overflow-wrap: anywhere;
}

.hm-footer .fwraper .fotter1 .cinfo a {
  min-height: 36px;
  color: #34445d;
  font-size: 1rem;
  line-height: 1.5;
}

.hm-footer .fwraper .fotter1 .cinfo a i {
  color: #245fc4;
}

.hm-footer .fcopyright {
  padding: 17px 0;
  border-top: 1px solid #d7e1ee;
  background: #0b1d38;
}

.hm-footer .fcopyright > .container {
  width: min(100% - 40px, 1200px);
}

.hm-footer .hm-footer-bottom > .container > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.hm-footer .hm-footer-bottom .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

.hm-footer .fcopyright p {
  display: block;
  margin: 0;
  color: #e0eafa;
  font-family: inherit;
  font-size: 0.83rem;
  line-height: 1.55;
}

.hm-footer .fcopyright .fsocial {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.hm-footer .fcopyright .fstitle h3 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.hm-footer .fcopyright .fslinks {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
}

.hm-footer .fcopyright .fslinks a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(224, 234, 250, 0.32);
  border-radius: 50%;
  color: #e0eafa;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.hm-footer .fcopyright .fslinks a:hover {
  transform: translateY(-2px);
  border-color: #9fc5ff;
  background: rgba(159, 197, 255, 0.12);
  color: #fff;
}

@media (max-width: 1199px) {
  .hm-footer .hm-footer-logo img {
    width: 172px;
  }
}

@media (max-width: 991px) {
  .hm-footer .fwraper > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}

@media (max-width: 767px) {
  .hm-footer > .container {
    padding-top: 42px;
    padding-bottom: 30px;
  }

  .hm-footer .hm-footer-bottom > .container > .row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .hm-footer .fcopyright .fsocial {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 575px) {
  .hm-footer .fwraper > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hm-footer .fotter1 {
    text-align: left;
  }

  .hm-footer .hm-footer-bottom > .container {
    width: calc(100% - 32px);
  }
}

@media (max-width: 400px) {
  .hm-footer .hm-footer-logo img {
    width: 166px;
  }
  .hm-footer .hm-footer-bottom > .container {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-header *,
  .hm-footer * {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
