.footer {
  width: 100%;
  max-width: 1000px;
}

.footer-box {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  grid-template-areas: 'one two three four five';
  background-color: #ffffff;
  padding: 20px 40px;
  font-family: SB-Sans, sans-serif;
  font-size: 15px;
  gap: 25px;
  align-items: center;
}

.footer-metrica {
  grid-area: one;
}

.footer-address {
  grid-area: two;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-empty {
  grid-area: three;
}

.footer-telegram-channel {
  grid-area: four;
}

.footer-youtube-channel {
  grid-area: five;
}

.last-line {
  height: 20px;
  background-color: white;
}

/* Планшеты (горизонтальные) */
@media (max-width: 900px) {
  .footer-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      'one four five'
      'two two two';
    justify-content: center;
    align-items: center;
    gap: 40px;
  }
  .footer-metrica {
    justify-self: right;
  }

  .footer-youtube-channel {
    justify-self: left;
  }

  .footer-address {
    align-items: center;
  }
}

/* Мобильные (большие) */
@media (max-width: 600px) {
  .footer-box {
    gap: 25px;
  }
}

/* Мобильные (маленькие) */
@media (max-width: 480px) {
  .footer-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas:
      'four four five five'
      'one one one one'
      'two two two two';
    justify-content: center;
    align-items: center;
    gap: 25px 20px;
  }
  .footer-metrica {
    justify-self: center;
  }

  .footer-telegram-channel {
    justify-self: right;
  }

  .footer-youtube-channel {
    justify-self: left;
  }

  .footer-address {
    align-items: center;
    font-size: 13px;
  }
}
