.hm-site-footer {
  color: var(--white);
  background: var(--primary);
}

.hm-footer-cta {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(229, 232, 232, 0.22);
  background: var(--primary);
}

.hm-footer-cta__inner {
  position: relative;
  min-height: 166px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.hm-footer-cta__mark {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 270px;
  height: 110px;
  object-fit: contain;
  object-position: left bottom;
  opacity: 0.86;
}

.hm-footer-cta__copy,
.hm-footer-cta__button {
  position: relative;
  z-index: 1;
}

.hm-footer-cta__copy {
  grid-column: 2;
}

.hm-footer-cta__copy h2 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: clamp(23px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.hm-footer-cta__copy p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.hm-footer-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 235px;
  min-height: 58px;
  padding: 15px 24px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--white);
  background: var(--accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hm-footer-cta__button:hover,
.hm-footer-cta__button:focus-visible {
  color: var(--accent);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.hm-footer-main {
  background: var(--primary);
}

.hm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2.3fr 0.8fr 0.85fr 1.3fr;
  gap: 48px;
  padding: 58px 0 50px;
}

.hm-footer-links[aria-label="Services"] {
  display: grid;
  grid-template-columns: max-content max-content;
  align-content: start;
  column-gap: 26px;
  row-gap: 11px;
}

.hm-footer-links[aria-label="Services"] h3 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.hm-footer-links[aria-label="Services"] a {
  margin-bottom: 0;
  white-space: nowrap;
}

.hm-footer-brand__logo {
  display: inline-block;
  margin-bottom: 17px;
}

.hm-footer-brand__logo img {
  width: 250px;
  height: auto;
  display: block;
}

.hm-footer-brand > p {
  max-width: 220px;
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
}

.hm-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.hm-footer-socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hm-footer-socials a:hover,
.hm-footer-socials a:focus-visible {
  color: var(--primary);
  border-color: var(--white);
  background: var(--white);
}

.hm-footer-links,
.hm-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hm-footer-links h3,
.hm-footer-contact h3 {
  margin: 0 0 21px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hm-footer-links a {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hm-footer-links a::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-right: 9px;
  border-radius: 50%;
  content: "";
  background: var(--tertiary);
}

.hm-footer-links a:hover,
.hm-footer-links a:focus-visible {
  color: var(--tertiary);
}

.hm-footer-contact a {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  margin-bottom: 17px;
  color: var(--white) !important;
  font-size: 16px;
  opacity: 1 !important;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hm-footer-contact a span {
  color: var(--white) !important;
  opacity: 1 !important;
}

.hm-footer-contact a i {
  padding-top: 2px;
  color: var(--tertiary);
  font-size: 14px;
}

.hm-footer-contact a:hover,
.hm-footer-contact a:focus-visible {
  color: var(--white);
}

.hm-footer-locations {
  padding: 0 0 44px;
  border-bottom: 1px solid rgba(229, 232, 232, 0.22);
}

.hm-footer-locations h3 {
  margin: 0 0 21px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hm-footer-locations__list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 26px;
}

.hm-footer-locations a {
  position: relative;
  padding-left: 14px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hm-footer-locations a::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--tertiary);
}

.hm-footer-locations a:hover,
.hm-footer-locations a:focus-visible {
  color: var(--tertiary);
}

.hm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0 24px;
  border-top: 1px solid rgba(229, 232, 232, 0.22);
}

.hm-footer-bottom p,
.hm-footer-bottom a {
  margin: 0;
  color: var(--white);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.hm-footer-bottom div {
  display: flex;
  gap: 22px;
}

.hm-footer-bottom__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-footer-bottom a:hover,
.hm-footer-bottom a:focus-visible {
  color: var(--white);
}

@media (max-width: 1199px) {
  .hm-footer-grid {
    grid-template-columns: 1.25fr 1.35fr 1fr 1fr;
    gap: 38px 28px;
  }

  .hm-footer-links[aria-label="Services"] {
    grid-template-columns: 1fr;
  }

  .hm-footer-links[aria-label="Services"] a {
    white-space: normal;
  }

  .hm-footer-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
  }

  .hm-footer-contact h3 {
    grid-column: 1 / -1;
  }

  .hm-footer-contact a {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .hm-footer-cta__inner {
    min-height: 220px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hm-footer-cta__copy {
    grid-column: 1;
  }

  .hm-footer-cta__button {
    justify-self: start;
    min-width: 220px;
  }

  .hm-footer-cta__mark {
    left: auto;
    right: -45px;
    bottom: 0;
    width: 190px;
    height: 95px;
    opacity: 0.45;
  }

  .hm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    padding: 44px 0 38px;
  }

  .hm-footer-locations {
    padding-bottom: 36px;
  }

  .hm-footer-brand__logo img {
    width: 220px;
  }

  .hm-footer-brand,
  .hm-footer-contact {
    grid-column: 1 / -1;
  }

  .hm-footer-links[aria-label="Services"] {
    display: flex;
  }

  .hm-footer-contact {
    display: flex;
  }

  .hm-footer-contact h3 {
    width: 100%;
  }

  .hm-footer-contact a {
    margin-bottom: 13px;
  }

  .hm-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .hm-footer-cta__copy h2 {
    font-size: 24px;
  }

  .hm-footer-bottom div {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
