.footer {
  width: 100%;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0;
}

.footer a {
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer a:hover,
.footer a:focus {
  opacity: 0.85;
  text-decoration: underline;
}

.footer-main {
  background-color: var(--ak-blue);
  padding: 48px 0;
}

.footer-main .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  flex: 1 1 auto;
}

.footer-links-group {
  display: grid;
  grid-template-columns: 1fr;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  max-width: 30rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-right {
  text-align: right;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.footer-social i {
  display: block;
  line-height: 1;
}

.footer-contact h3 {
  max-width: 460px;
  margin: 0 0 10px;
  margin-left: auto;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.footer-contact p {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  background-color: #f2f2f2;
  color: var(--ak-blue);
  padding: 16px 0 18px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-meta-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
}

.footer-meta-nav a {
  color: var(--ak-blue);
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
}

.footer-copyright {
  color: #000;
  font-size: 17px;
  line-height: 1.35;
  text-transform: uppercase;
}

.footer-copyright a {
  color: var(--ak-blue);
}

.separator {
  margin: 0 8px;
  color: var(--ak-blue);
}

/* Tablet */
@media (max-width: 1100px) {
  .footer-main .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }

  .footer-right {
    text-align: left;
  }

  .footer-social {
    margin-bottom: 40px;
  }

  .footer-contact h3 {
    max-width: none;
    margin-left: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* Base scaling */
  .footer {
    font-size: 14px;
  }

  .footer-main {
    padding: 32px 0;
  }

  .footer-main .container {
    flex-direction: column;
    align-items: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-links-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: center;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 32px;
    max-width: 28rem;
    text-align: center;
  }

  .footer-links li {
    margin: 0;
  }

  /* Top link groups */
  .footer-links a {
    display: inline-block;
    font-size: 16px;
    line-height: 1.2;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-contact h3 {
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.2;
  }

  /* Address text */
  .footer-contact p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
  }

  /* Location label */
  .footer-contact p strong {
    font-size: 18px;
  }

  .footer-bottom {
    padding: 26px 0 24px;
  }

  .footer-bottom-inner {
    gap: 26px;
  }

  .footer-meta-nav {
    gap: 12px 16px;
    max-width: 32rem;
  }

  /* Bottom nav */
  .footer-meta-nav a {
    font-size: 15px;
    line-height: 1.35;
  }

  /* Copyright block */
  .footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
  }

  .footer-copyright .separator {
    display: none;
  }

  .footer-copyright span,
  .footer-copyright a {
    display: block;
  }
}
