.footer {
  background: #031e18;
  color: #ffffffbf;
  padding-top: 78px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .72fr .8fr 1.25fr;
  gap: clamp(38px, 5vw, 78px);
  padding-bottom: 72px;
}

.footer-brand {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  margin-bottom: 22px;
  background: transparent;
}

.home .footer .footer-brand,
.inner-page .footer .footer-brand {
  padding: 0;
  background: transparent;
}

.footer-brand img,
.footer-brand img.official-logo {
  width: 170px;
  height: 74px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-title {
  max-width: 280px;
  margin: 0 0 12px;
  color: white;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}

.footer-identity > p:not(.footer-title):not(.footer-edition) {
  max-width: 300px;
  margin-bottom: 18px;
  font-size: .88rem;
  line-height: 1.75;
}

.footer .footer-edition {
  margin: 0 0 24px;
  color: #efb331;
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  color: #fff;
  line-height: 1;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.footer-socials .footer-social svg {
  display: block;
  flex: 0 0 auto;
}

.footer-socials .footer-social span {
  color: inherit;
  font-size: .78rem;
  font-weight: 600;
}

.footer-socials .footer-social:hover,
.footer-socials .footer-social:focus-visible {
  background: #ffffff0f;
  border-color: #efb331;
  color: #efb331;
  transform: translateY(-2px);
  outline: none;
}

.footer h3 {
  margin: 8px 0 25px;
  color: #efb331;
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer a,
.footer p {
  color: #ffffffc2;
  font-size: .89rem;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  line-height: 1.55;
  transition: color .2s, transform .2s;
}

.footer-column a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-email {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: white !important;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.footer-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 27px;
}

.footer-newsletter-title {
  max-width: 330px;
  margin-bottom: 18px;
  line-height: 1.65;
}

.footer .newsletter label:not(.checkbox) {
  color: #efb331;
  font-size: .73rem;
  letter-spacing: .05em;
}

.footer .input-row {
  display: flex;
  margin: 7px 0 15px;
  border-bottom: 1px solid #ffffff45;
}

.footer .input-row input {
  min-width: 0;
  min-height: 48px;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  background: transparent;
  color: white;
  font-size: .88rem;
}

.footer .input-row input::placeholder {
  color: #ffffff72;
}

.footer .input-row button {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  background: #efb331;
  color: #052d25;
  font-size: 1.2rem;
  transition: background .2s, transform .2s;
}

.footer .input-row button:hover {
  background: white;
  transform: translateY(-2px);
}

.footer .checkbox {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  margin-bottom: 10px;
  color: #ffffffa8;
  font-size: .76rem;
  line-height: 1.45;
  cursor: pointer;
}

.footer .checkbox input {
  width: 17px;
  height: 17px;
  margin: 0;
  align-self: center;
  accent-color: #efb331;
}

.footer .checkbox span {
  display: block;
  min-width: 0;
}

.footer .newsletter .small {
  color: #ffffffa8;
  font-size: .74rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  padding-block: 25px;
  border-top: 1px solid #ffffff25;
  color: #ffffff7d;
  font-size: .72rem;
}

.footer-credit {
  min-width: 0;
  color: #ffffff7d;
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .01em;
  word-spacing: .04em;
  white-space: nowrap;
}

.footer-credit a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #ffffffa8;
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  gap: 22px;
  white-space: nowrap;
}

.footer-bottom > a:last-child {
  justify-self: end;
  white-space: nowrap;
}

.footer-bottom a {
  color: #ffffff91;
  font-size: .72rem;
}

.footer-bottom a:hover {
  color: #efb331;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.2fr .8fr .9fr;
  }
  .footer-connect {
    grid-column: 1 / -1;
    max-width: 620px;
    padding-top: 15px;
  }
  .footer-bottom {
    grid-template-columns: 1fr auto;
  }
  .footer-bottom > a:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .footer {
    padding-top: 52px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 26px;
    padding-bottom: 48px;
  }
  .footer-identity,
  .footer-connect {
    grid-column: 1 / -1;
  }
  .footer-brand img,
  .footer-brand img.official-logo {
    width: 155px;
    height: 68px;
  }
  .footer-title {
    font-size: 1.2rem;
  }
  .footer-column a,
  .footer a,
  .footer p {
    font-size: .86rem;
  }
  .footer-socials .footer-social span {
    font-size: .76rem;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .footer-credit {
    white-space: normal;
  }
  .footer-legal {
    flex-wrap: wrap;
  }
  .footer-bottom > a:last-child {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-identity,
  .footer-connect {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer * {
    transition: none !important;
  }
}
