.site-footer {
  margin-top: var(--section-gap);
  padding: 150px 0 40px;
  background: var(--color-footer);
}

.site-footer__top {
  align-items: start;
}

.site-footer__brand {
  display: flex;
  grid-column: 1;
  gap: 14px;
}

.site-footer__brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.site-footer__quote {
  grid-column: 2 / 4;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.site-footer__navigation {
  margin-top: 100px;
  padding-top: 20px;
  border-top: 1px solid var(--color-secondary);
}

.site-footer__label {
  margin-bottom: 20px;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
}

.site-footer__navigation li + li {
  margin-top: 8px;
}

.site-footer__navigation a,
.site-footer__bottom {
  font-size: 14px;
}

.site-footer__navigation a,
.site-footer__privacy {
  transition: color 200ms ease;
}

.site-footer__navigation a {
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__navigation a:hover {
    color: rgba(107, 107, 107, 0.3);
  }

  .site-footer__privacy:hover {
    color: var(--color-ink);
  }
}

.site-footer__navigation a:focus-visible {
  color: rgba(107, 107, 107, 0.3);
}

.site-footer__privacy:focus-visible {
  color: var(--color-ink);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}

.site-footer__bottom p:last-child a {
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 992px) {
  .site-footer {
    padding: 9.375rem 0 2.5rem;
  }

  .site-footer > .layout-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: 8rem;
    row-gap: 2.5rem;
  }

  .site-footer__navigation,
  .site-footer__bottom {
    display: contents;
  }

  .site-footer__top {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-footer__brand {
    gap: 6px;
  }

  .site-footer__brand img:first-child {
    width: 76px;
    height: 80px;
  }

  .site-footer__brand img:last-child {
    width: 80px;
    height: 80px;
  }

  .site-footer__quote {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.02rem;
    line-height: 1.2;
  }

  .site-footer__navigation > div {
    grid-row: 1;
  }

  .site-footer__navigation > div:nth-child(1) {
    grid-column: 2;
  }

  .site-footer__navigation > div:nth-child(2) {
    grid-column: 3;
  }

  .site-footer__navigation > div:nth-child(3) {
    grid-column: 4;
  }

  .site-footer__navigation {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .site-footer__label {
    margin-bottom: 20px;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 16px;
    line-height: 1.2;
  }

  .site-footer__navigation a {
    font-size: 16px;
    line-height: 1.2;
  }

  .site-footer__navigation li + li {
    margin-top: 10px;
  }

  .site-footer__divider {
    width: 100%;
    height: 1px;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 2.5rem;
    background: var(--color-ink);
  }

  .site-footer__privacy,
  .site-footer__bottom p {
    grid-row: 3;
    font-size: 14px;
    line-height: 1.2;
  }

  .site-footer__privacy {
    grid-column: 1;
    color: var(--color-secondary);
  }

  .site-footer__bottom p:first-of-type {
    grid-column: 2;
    color: var(--color-secondary);
  }

  .site-footer__bottom p:last-child {
    grid-column: 4;
    color: var(--color-ink);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .site-footer {
    padding: 6.25rem 0 1.875rem;
  }

  .site-footer__top {
    display: flex;
    width: 70%;
    align-items: center;
    gap: 1.25rem;
  }

  .site-footer__brand {
    flex: 1 0 auto;
    grid-column: auto;
    gap: 6px;
  }

  .site-footer__brand img {
    width: 64px;
    height: 64px;
  }

  .site-footer__quote {
    width: 100%;
    grid-column: auto;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.02rem;
    line-height: 1.2;
  }

  .site-footer__navigation {
    row-gap: 3.75rem;
    margin-top: 3.75rem;
    padding-top: 0;
    border-top: 0;
  }

  .site-footer__label,
  .site-footer__navigation a {
    font-size: 15px;
    line-height: 1.2;
  }

  .site-footer__divider {
    width: 100%;
    height: 1px;
    margin-top: 6.25rem;
    background: var(--color-ink);
  }

  .site-footer__bottom {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    margin-top: 3.75rem;
    padding-top: 0;
    border-top: 0;
    font-size: 14px;
    line-height: 1.2;
  }

  .site-footer__privacy {
    position: absolute;
    bottom: 24px;
    grid-column: 1;
  }

  .site-footer__bottom p:first-of-type {
    grid-column: 1;
  }

  .site-footer__bottom p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 3.125rem 0 1.875rem;
  }

  .site-footer__top {
    gap: 20px;
  }

  .site-footer__brand,
  .site-footer__quote {
    grid-column: 1;
  }

  .site-footer__brand {
    gap: 6px;
  }

  .site-footer__brand img:first-child {
    width: 60px;
    height: 64px;
  }

  .site-footer__brand img:last-child {
    width: 64px;
    height: 64px;
  }

  .site-footer__quote {
    max-width: 70%;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.02rem;
    line-height: 1.28;
  }

  .site-footer__navigation {
    gap: 30px;
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
  }

  .site-footer__label {
    margin-bottom: 20px;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 15px;
    line-height: 1.28;
  }

  .site-footer__navigation a {
    font-size: 15px;
    line-height: 1.28;
  }

  .site-footer__navigation li + li {
    margin-top: 10px;
  }

  .site-footer__bottom {
    gap: 0;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: 15px;
    line-height: 1.2;
  }

  .site-footer__privacy {
    color: var(--color-secondary);
    font-size: 15px;
    line-height: 1.2;
  }

  .site-footer__divider {
    width: 100%;
    height: 1px;
    margin: 30px 0;
    background: var(--color-ink);
  }

  .site-footer__bottom p:first-of-type {
    margin-top: 6px;
  }

  .site-footer__bottom p:last-child {
    margin-top: 30px;
    color: var(--color-ink);
  }
}
