footer {
  position: relative;
  z-index: 2;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  color: var(--text);
  line-height: 1.56;
  padding: 100px 0;
}

body.is-heritage .site-footer {
  display: none;
}

footer a,
footer a.shine {
  color: var(--accent);
  text-decoration: none;
}
footer p + p {
  margin-top: 1.4rem;
}
footer address {
  font-style: normal;
}
footer .grid:first-of-type {
  margin-bottom: 100px;
}

.footer-logo {
  width: 145px;
  margin: -9px 0 0 -5px;
}
[data-col="1"] .socials {
  justify-self: end;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--box);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition:
    background-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.socials a svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* hover */
.socials a:hover {
  background-color: var(--box-hover);
}
.socials a {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* focus для клавиатуры */
.socials a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

/* active / tap */
.socials a:active {
  transform: translateY(0);
}

@media (max-width: 1023px) {
  footer .grid > [data-col] {
    grid-column: span 1;
  }
  footer .grid:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    row-gap: 24px;
  }
  footer .grid:first-of-type > [data-col]:nth-child(4) {
    justify-self: start;
  }
  footer .grid:first-of-type > [data-col]:nth-child(1) {
    grid-column: 1 / -1;
  }
  footer .grid:nth-of-type(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    row-gap: 24px;
  }
}

@media (max-width: 767px) {
  .socials a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  footer .grid:first-of-type {
    margin-bottom: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }

  footer .grid:first-of-type > [data-col]:nth-child(1) {
    order: 1;
    grid-column: 1 / -1;
  }
  footer .grid:first-of-type > [data-col]:nth-child(2) {
    order: 2;
    grid-column: 1 / span 1;
  }
  footer .grid:first-of-type > [data-col]:nth-child(4) {
    order: 3;
    justify-self: start;
    grid-column: 2 / span 1;
  }
  footer .grid:first-of-type > [data-col]:nth-child(3) {
    order: 4;
    grid-column: 1 / -1;
  }
}

@media (max-width: 499px) {
  footer .grid {
    grid-column-gap: 0;
  }
  footer .grid:first-of-type > [data-col]:nth-child(4) {
    justify-self: end;
  }
}
