/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
  display: grid;

  grid-template-columns:
    1fr
    .7fr
    1.2fr;

  gap:
    0
    clamp(44px, 5vw, 70px);

  min-height: 310px;

  padding:
    var(--space-footer-y)
    var(--page-right-gap);

  background: #fff4e2;
}


/* =========================================================
   COMMON
   ========================================================= */

.site-footer__nav,
.site-footer__contacts,
.site-footer__legal {
  display: flex;
  flex-direction: column;
}


.site-footer a,
.site-footer__legal-toggle {
  width: fit-content;

  color: inherit;

  font-family:
    "Nata Sans",
    Arial,
    sans-serif;

  font-size: 17px;
  font-weight: 300;
  line-height: 1.25;

  text-decoration: none;
}


/* =========================================================
   NAV
   ========================================================= */

.site-footer__nav {
  gap: 20px;
}


/* =========================================================
   LEGAL TOGGLE
   ========================================================= */

.site-footer__legal-toggle {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  text-align: left;

  transition:
    opacity 180ms ease;
}


.site-footer__legal-toggle:hover,
.site-footer__legal-toggle:focus-visible {
  opacity: .6;
}


.site-footer__legal-toggle:focus-visible {
  outline:
    1px
    solid
    currentColor;

  outline-offset: 4px;
}


.site-footer__legal-arrow {
  display: inline-block;

  font-size: 23px;
  font-weight: 300;
  line-height: 1;

  transform:
    translateY(-1px);

  transition:
    transform 220ms ease;
}


.site-footer__legal-toggle[aria-expanded="true"]
.site-footer__legal-arrow {
  transform:
    translateY(-1px)
    rotate(90deg);
}


/* =========================================================
   BRAND
   ========================================================= */

.site-footer__brand {
  justify-self: center;
}


.footer-logo,
.site-footer .footer-logo,
.site-footer .footer-logo:link,
.site-footer .footer-logo:visited {
  font-family: "MAK", "Mak", serif !important;
  font-weight: 400 !important;
  font-style: normal !important;

  font-size: 38px !important;
  line-height: .95 !important;
  letter-spacing: -0.4px;

  text-transform: none;
}


.site-footer__brand p {
  margin:
    14px
    0
    0;

  font-size: 14px;
  line-height: 1.25;
}


/* =========================================================
   SOCIALS
   ========================================================= */

.site-footer__socials {
  display: flex;
  align-items: center;

  gap: 26px;

  margin-top: 42px;
}


.site-footer__socials a {
  display: grid;

  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  place-items: center;

  padding: 9px;

  border: 2px solid var(--accent);
  border-radius: 50%;

  background: transparent;

  overflow: hidden;

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}


/* Иконка-картинка */

.site-footer__socials a img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* Hover */

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

/* =========================================================
   CONTACTS
   ========================================================= */

.site-footer__contacts {
  align-items: flex-end;

  gap: 20px;

  text-align: right;
}


.site-footer__legal {
  align-items: flex-end;

  gap: 22px;

  margin-top: auto;
}


/* =========================================================
   DEVELOPER
   ========================================================= */

.site-footer__developer {
  margin-top: 2px;

  font-size: 14px !important;

  opacity: .78;

  transition:
    opacity 180ms ease;
}


.site-footer__developer:hover,
.site-footer__developer:focus-visible {
  opacity: .5;
}


/* =========================================================
   EXPANDABLE LEGAL INFO
   ========================================================= */

.site-footer__legal-info {
  grid-column: 1 / -1;

  width: 100%;

  display: none;
}


.site-footer__legal-info.is-open {
  display: block;
}


.site-footer__legal-info-inner {
  width: 100%;

  margin-top: 38px;
  padding-top: 34px;

  border-top:
    1px
    solid
    rgb(13 13 13 / 20%);
}

/* =========================================================
   LEGAL INFO CONTENT
   ========================================================= */

.site-footer__legal-info-column {
  min-width: 0;
}


.site-footer__legal-info-column h3 {
  margin:
    0
    0
    18px;

  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
}


.site-footer__legal-info-column p {
  margin:
    0
    0
    9px;

  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}


.site-footer__legal-info-column strong {
  font-weight: 400;
}


.site-footer__legal-info-column a {
  display: block;

  margin-bottom: 10px;

  font-size: 14px;
  line-height: 1.45;

  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   <= 1024px
   ========================================================= */

@media (max-width: 1024px) {

  .site-footer {
    padding-right:
      var(--tablet-page-gap);

    padding-left:
      var(--tablet-page-gap);
  }

}


/* =========================================================
   <= 760px
   ========================================================= */

@media (max-width: 760px) {

  .site-footer {
    grid-template-columns:
      1fr
      1fr;

    gap:
      var(--space-section)
      30px;

    padding-top:
      var(--space-footer-y);

    padding-bottom:
      var(--space-footer-y);
  }


  .site-footer__brand {
    justify-self: end;
  }


  .site-footer__contacts {
    grid-column:
      1 / -1;

    align-items: flex-start;

    text-align: left;
  }


  .site-footer__legal {
    align-items: flex-start;

    margin-top: 20px;
  }


  .site-footer__legal-info {
    grid-column:
      1 / -1;
  }


  .site-footer__legal-info-inner {
    grid-template-columns:
      1fr
      1fr;

    gap:
      28px
      30px;
  }


  .site-footer__legal-info-column:last-child {
    grid-column:
      1 / -1;
  }

}


/* =========================================================
   <= 480px
   ========================================================= */

@media (max-width: 480px) {

  .site-footer {
    grid-template-columns:
      1fr;

    gap:
      var(--space-section);

    padding:
      var(--space-footer-y)
      var(--mobile-page-gap);
  }


  .site-footer__brand,
  .site-footer__contacts {
    justify-self: stretch;

    align-items: flex-start;
  }


  .site-footer__brand {
    order: -1;
  }


  .site-footer__contacts {
    grid-column: auto;
  }


  .site-footer__socials {
    margin-top: 28px;
  }


  .site-footer__legal-info-inner {
    grid-template-columns:
      1fr;

    gap: 22px;
  }


  .site-footer__legal-info-column:last-child {
    grid-column: auto;
  }


  .site-footer__legal-info.is-open
  .site-footer__legal-info-inner {
    margin-top: 30px;

    padding-top: 28px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .site-footer__legal-info,
  .site-footer__legal-info-inner,
  .site-footer__legal-arrow {
    transition-duration:
      .01ms;
  }

}