/* Footer */
.site-footer {
  width: 100%;
  background: var(--color-bg);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0 28px;
}

.site-footer-col-contact {
  width: 100%;
  max-width: 760px;
}

.site-footer-col-menu {
  width: 100%;
  max-width: 576px;
  padding-top: 16px;
}

.site-footer-title {
  margin: 0 0 29px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.site-footer-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.underline-field {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-bottom: 14px;
}

.underline-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-muted);
  background: transparent;
  padding: 3px 6px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-ink);
}

.underline-field input::placeholder {
  color: var(--color-muted);
}

.underline-field input:hover,
.underline-field input:focus {
  outline: none;
  border-bottom-color: var(--color-ink);
}

.underline-field::before,
.underline-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 9px;
  background: var(--color-ink);
  transform: translateY(50%);
}

.underline-field::before {
  left: 0;
}

.underline-field::after {
  right: 0;
}

.site-footer-btn {
  position: relative;
  display: inline-block;
  flex: 0 0 132px;
  border: none;
  padding: 5px;
  background: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

a.site-footer-btn:hover,
a.site-footer-btn:focus,
a.site-footer-btn:visited {
  color: inherit;
  text-decoration: none;
}

.site-footer-btn-content {
  display: block;
  padding: 17px 10px;
  background: #fff;
  border: 1px solid var(--color-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.site-footer-btn-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  transform: scale3d(1, 1, 1);
  transform-origin: 0 50%;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 1;
}

.site-footer-btn-label {
  display: block;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.site-footer-btn-text {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

.site-footer-btn-corners {
  --corner-width: 1px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  color: var(--color-ink);
  background:
    linear-gradient(to right, currentColor var(--corner-width), transparent var(--corner-width)) 0 0,
    linear-gradient(to right, currentColor var(--corner-width), transparent var(--corner-width)) 0 100%,
    linear-gradient(to left, currentColor var(--corner-width), transparent var(--corner-width)) 100% 0,
    linear-gradient(to left, currentColor var(--corner-width), transparent var(--corner-width)) 100% 100%,
    linear-gradient(to bottom, currentColor var(--corner-width), transparent var(--corner-width)) 0 0,
    linear-gradient(to bottom, currentColor var(--corner-width), transparent var(--corner-width)) 100% 0,
    linear-gradient(to top, currentColor var(--corner-width), transparent var(--corner-width)) 0 100%,
    linear-gradient(to top, currentColor var(--corner-width), transparent var(--corner-width)) 100% 100%;
  background-repeat: no-repeat;
  background-size: 6px 4px;
  transition: background-size 0.3s ease;
}

@keyframes btn-text-up-out {
  to {
    transform: translate3d(0, -105%, 0);
  }
}

@keyframes btn-text-up-in {
  from {
    transform: translate3d(0, 100%, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (hover: hover) {
  .site-footer-btn:hover .site-footer-btn-content {
    color: var(--color-ink);
  }

  .site-footer-btn:hover .site-footer-btn-content::before {
    transform: scale3d(0, 1, 1);
    transform-origin: 100% 50%;
  }

  .site-footer-btn:hover .site-footer-btn-text {
    animation: btn-text-up-out 0.2s forwards, btn-text-up-in 0.2s forwards 0.2s;
  }

  .site-footer-btn:hover .site-footer-btn-corners {
    background-size: 10px 6px;
  }
}

.site-footer-contact {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.site-footer-contact-mobile {
  display: none;
}

.site-footer-contact-label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-ink);
}

.site-footer-contact-link {
  color: var(--color-ink);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.25s ease;
}

.site-footer-contact-link:hover {
  color: var(--color-accent);
}

.site-footer-menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.site-footer-menu:not(:last-child) {
  margin-bottom: 19px;
}

.site-footer-menu-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.site-footer-menu-list {
  display: flex;
  justify-content: space-between;
  flex: 1 0 auto;
  gap: 5px;
  max-width: 73%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-menu-list a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
  transition: color 0.25s ease;
}

.site-footer-menu-list a:hover {
  color: var(--color-accent);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 120px;
  padding: 17px 28px 24px;
  border-top: 1px solid #abb2b9;
}

.site-footer-copyright {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}
@media (max-width: 900px) {
  .site-footer-inner {
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
  }

  .site-footer-col-menu {
    padding-top: 45px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
    column-gap: 16px;
    max-width: none;
  }

  .site-footer-menu-social {
    order: 2;
  }

  .site-footer-menu:not(.site-footer-menu-social):not(:first-child) {
    order: 3;
  }

  .site-footer-menu-list {
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 17px;
  }

  .site-footer-menu {
    flex-direction: column;
    gap: 11px;
  }

  .site-footer-contact-desktop {
    display: none;
  }

  .site-footer-contact-mobile {
    display: flex;
    margin-top: 34px;
  }

  .site-footer-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-footer-btn {
    flex: none;
    width: 100%;
  }

  .site-footer-bottom {
    flex-wrap: wrap;
    margin-top: 66px;
    padding: 29px 16px 20px;
    row-gap: 20px;
  }

  .site-footer-copyright {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .site-footer-col-menu {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .site-footer-menu-social,
  .site-footer-menu:not(.site-footer-menu-social):not(:first-child) {
    order: 0;
  }

  .site-footer-title {
    font-size: clamp(22px, 7vw, 28px);
  }
}
