.site-footer {
  width: calc(100% - 40px);
  height: 624.547px;
  margin-inline: 20px;
  padding: 48px 40px 32px;
  color: var(--color-light);
  background: #121614;
  border: 1px solid rgba(244, 246, 244, 0.1);
  border-radius: 18px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  height: 277.75px;
}

.site-footer__about {
  height: 277.75px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.site-footer__logo span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 4.94px;
}

.site-footer__logo i {
  width: 6px;
  height: 6px;
  background: var(--color-yellow);
  border-radius: 3px;
}

.site-footer__description {
  width: 320px;
  margin: 16px 0 0;
  color: rgba(244, 246, 245, 0.6);
  font-size: 15px;
  line-height: 24.75px;
}

.site-footer__subscribe {
  position: relative;
  width: 100%;
  margin-top: 24px;
  padding: 20px;
  background: rgba(244, 246, 245, 0.05);
  border: 1px solid rgba(244, 246, 245, 0.12);
  border-radius: 14px;
}

.site-footer__subscribe > strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.site-footer__subscribe > p:not(.site-footer__subscribe-status) {
  margin: 6px 0 0;
  color: rgba(244, 246, 245, 0.55);
  font-size: 12px;
  line-height: 18px;
}

.site-footer__subscribe-row {
  display: flex;
  gap: 8px;
  height: 44.5px;
  margin-top: 14px;
}

.site-footer__email-field {
  display: block;
  flex: 1 1 auto;
  min-width: 150px;
  height: 44.5px;
}

.site-footer__email-field input {
  width: 100%;
  height: 100%;
  padding: 13px 15px;
  color: var(--color-light);
  background: rgba(244, 246, 245, 0.07);
  border: 1px solid rgba(244, 246, 245, 0.18);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-footer__email-field input::placeholder {
  color: rgba(244, 246, 245, 0.38);
}

.site-footer__email-field input:focus,
.site-footer__email-field.is-valid input {
  border-color: rgba(255, 207, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.08);
}

.site-footer__email-field.is-invalid input {
  border-color: #df625b;
  box-shadow: 0 0 0 3px rgba(223, 98, 91, 0.08);
}

.site-footer__subscribe-row button {
  flex: 0 0 auto;
  height: 44.5px;
  padding: 13px 18px;
  color: #121614;
  background: var(--color-yellow);
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.site-footer__subscribe-row button:disabled {
  opacity: 0.4;
  cursor: default;
}

.site-footer__subscribe-status {
  position: absolute;
  bottom: 3px;
  left: 21px;
  margin: 0;
  color: rgba(244, 246, 245, 0.58);
  font-size: 10px;
  line-height: 13px;
}

.site-footer__subscribe-status.is-error {
  color: #ee7770;
}

.site-footer__subscribe-status.is-success {
  color: var(--color-yellow);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.site-footer h3 {
  margin: 0;
  color: rgba(244, 246, 245, 0.42);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.98px;
  text-transform: uppercase;
}

.site-footer__nav-group ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
}

.site-footer__nav-group a {
  color: rgba(244, 246, 245, 0.75);
  font-size: 14px;
}

.site-footer__separator {
  width: 100%;
  height: 1px;
  margin-top: 36px;
  background: rgba(244, 246, 245, 0.1);
}

.site-footer__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  height: 136.797px;
  margin-top: 28px;
}

.site-footer__contacts,
.site-footer__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__phone {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.22px;
}

.site-footer__mail {
  margin-top: 8px;
  color: rgba(244, 246, 245, 0.65);
  font-size: 15px;
}

.site-footer__contacts address {
  margin-top: 12px;
  color: rgba(244, 246, 245, 0.55);
  font-size: 14px;
  font-style: normal;
  line-height: 22.4px;
}

.site-footer__socials > div {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.site-footer__socials a {
  padding: 11px 16px;
  background: rgba(244, 246, 245, 0.07);
  border: 1px solid rgba(244, 246, 245, 0.16);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer__details p {
  margin: 14px 0 0;
  color: rgba(244, 246, 245, 0.55);
  font-size: 13px;
  line-height: 22.75px;
}

.site-footer__separator--bottom {
  margin-top: 28px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding-top: 20px;
  color: rgba(244, 246, 245, 0.42);
  font-size: 12px;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom nav {
  display: flex;
  gap: 20px;
}

.site-footer__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-footer a,
.site-footer button {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.site-footer__nav-group a:hover,
.site-footer__bottom a:hover {
  color: var(--color-light);
}

.site-footer button:focus-visible,
.site-footer a:focus-visible,
.site-footer input:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .site-footer {
    height: auto;
    padding-inline: 28px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    height: auto;
  }

  .site-footer__about {
    height: auto;
  }

  .site-footer__nav {
    min-height: 190px;
  }

  .site-footer__info {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .site-footer__details {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    height: auto;
  }
}

@media (max-width: 620px) {
  .site-footer__nav,
  .site-footer__info {
    grid-template-columns: 1fr;
  }

  .site-footer__socials > div,
  .site-footer__bottom nav {
    flex-wrap: wrap;
  }

  .site-footer__subscribe-row {
    height: auto;
    flex-direction: column;
  }

  .site-footer__email-field,
  .site-footer__subscribe-row button {
    width: 100%;
  }
}
