.footer {
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.footer p {
  margin: 0;
}

.footer-row {
  row-gap: 3rem;
}

.footer-contact {
  position: relative;
  isolation: isolate;
  padding: 4rem 0;
  color: var(--color-white);
  background: linear-gradient(to bottom, transparent 64%, var(--color-bg) 64%);
}

.footer-contact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: var(--color-green);
  content: "";
}

@media (min-width: 992px) {
  .footer-contact::before {
    inset: 0 0 0 min(3rem, 4vw);
  }
}

.footer-contact .container {
  padding-block: 3rem;
  padding-inline: 1.5rem;
}

.footer-contact .footer-row {
  align-items: center;
}

.footer-contact-label {
  margin-bottom: 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.footer-contact-title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.7;
}

.footer-contact-description {
  font-weight: 400;
  overflow-wrap: anywhere;
}

.footer-contact-item + .footer-contact-item {
  margin-top: 1.5rem;
}

.footer-contact-link {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  color: inherit;
  text-decoration: none;
}

.footer-contact-link img {
  display: block;
  grid-column: 1;
  grid-row: 1;
}

.footer-contact-heading {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.footer-contact-note {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.footer-contact-form {
  position: relative;
  grid-template-columns: 22px minmax(0, auto);
  column-gap: 0.5rem;
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  border-radius: 6rem;
  color: var(--color-green);
  background-color: var(--color-white);
  transition: background-color 0.2s ease;
}

.footer-contact-form::after {
  position: absolute;
  top: 50%;
  right: 2.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.footer-contact-form img {
  width: 22px;
  height: 17px;
}

.footer-contact-form:hover {
  background-color: var(--color-bg);
  text-decoration: none;
  color: var(--color-green);
}

.footer-contact-phone {
  grid-template-columns: 1.875rem minmax(0, auto);
  width: fit-content;
  margin-inline: auto;
}

.footer-contact-phone img {
  width: 1.875rem;
  height: 1.875rem;
}

.footer-contact-phone .footer-contact-heading {
  font-size: 2rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  font-weight: 600;
  letter-spacing: 0.03rem;
}

.footer-contact-phone:hover {
  color: inherit;
  text-decoration: none;
}

.footer-contact-phone .footer-contact-note {
  font-size: 1rem;
}

.footer-main {
  padding-block: 3rem;
  color: var(--color-black);
  background-color: var(--color-bg);
}

.footer-main .container {
  padding-block: 3rem 0;
}

.footer-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin-bottom: 1.5rem;
}

.footer-company {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-address {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.footer-nav .footer-row {
  row-gap: 0;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  margin-bottom: 0.5rem;
  color: inherit;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav-link::before {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-green);
  content: "";
}

.footer-nav-link:hover {
  color: var(--color-green);
  text-decoration: none;
}

.footer-contact-link:focus-visible,
.footer-nav-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.footer-copyright {
  margin-top: 3rem;
  color: var(--color-gray2);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
