footer {
  background: #1d1d1b;
  padding: 60px 0 20px 0;
  padding-inline: 20px;
}

/* Верхня частина футера */

.footer-top {
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (min-width: 768px) {
  .footer-top {
    padding-bottom: 50px;
  }
}

@media screen and (min-width: 1280px) {
  .footer-top {
    padding-bottom: 60px;
  }
}

.footer-top-list {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style-type: none;
  padding: 0 55px;
}

@media screen and (min-width: 768px) {
  .footer-top-list {
    padding: 0;
  }
}

@media screen and (min-width: 1280px) {
  .footer-top-list {
    padding: 0 55px;
  }
}

.footer-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
}

.footer-top-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--active-text-color);
  box-shadow: 0 4px 6px rgba(225, 225, 225, 0.2);
  transition:
    background-color 0.5s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
  margin-bottom: 20px;
}

.footer-top-icon {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.footer-top-text {
  display: none;
}

@media screen and (min-width: 768px) {
  .footer-top-text {
    display: block;
    font-family: var(--primary-font-family);
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.1em;
    color: var(--second-text-color);
  }
}

/* Анімація link при hover: та focus: */

@media (hover: hover) {
  .footer-top-link:hover {
    transform: scale(1.1);
    background-color: #ffffff;
  }

  .footer-top-link:hover .footer-top-icon {
    fill: var(--active-text-color);
  }
}

.footer-top-link:active {
  transform: scale(0.95);
}

.footer-top-link:active .footer-top-icon {
  fill: var(--active-text-color);
}

.footer-top-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Середня частина */

.footer-middle {
  display: grid;
  gap: 30px;
  padding: 60px 30px;
}

@media screen and (min-width: 768px) {
  .footer-middle {
    padding: 60px 70px;
  }
}

@media screen and (min-width: 1280px) {
  .footer-middle {
    padding: 60px 0;
  }
}

/* Логотип - з'являється на планшетній та десктопній версіях */

@media screen and (min-width: 1280px) {
  .footer-logo-link {
    margin-right: 150px;
    margin-left: 80px;
  }
}

.footer-logo {
  display: none;
}

@media screen and (min-width: 1280px) {
  .footer-logo {
    display: block;
    width: 250px;
  }
}

.footer-nav-list {
  list-style-type: none;
  margin-right: 35px;
}

@media screen and (min-width: 768px) {
  .footer-nav-list {
    margin-right: 100px;
  }
}

.footer-nav-item {
  padding: 8px 15px;
}

.footer-nav-link {
  font-family: var(--primary-font-family);
  font-size: 18px;
  color: var(--second-text-color);
  -webkit-transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 768px) {
  .footer-nav-link {
    font-size: 20px;
  }
}

.footer-nav-link:hover,
.footer-nav-link:focus {
  color: var(--active-text-color);
}

.footer-socials-list {
  display: flex;
  gap: 20px;
  list-style-type: none;
}

.footer-socials-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);

  -webkit-transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials-icon {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.3);

  -webkit-transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials-link:hover .footer-socials-icon {
  fill: var(--active-text-color);
}

.footer-socials-link:focus .footer-socials-icon {
  fill: var(--active-text-color);
}

.footer-socials-link:hover,
.footer-socails-link:focus {
  border-color: var(--active-text-color);
}

/* Нижня частина - копірайт */

.footer-bottom {
  padding-top: 30px;
}

.copyright-text {
  font-family: var(--primary-font-family);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

@media screen and (min-width: 768px) {
  .copyright-text {
    resize: 13px;
  }
}

@media screen and (min-width: 1280px) {
  .copyright-text {
    font-size: 15px;
  }
}