.site-footer {
  background: #0e1b42;
  color: #ffffff;
  padding: 28px 0 20px;
  font-size: 14px;
}

.footer-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-ad-slot {
  width: 100%;
}

.footer-separator {
  width: 100%;
  max-width: 790px;
  height: 1px;
  background: #ffffff4d;
  margin: 0 auto 40px;
}

.footer-main {
  width: 100%;
  max-width: 790px;
  display: grid;
  grid-template-columns: 220px 220px 180px;
  grid-template-areas: 
    "b1 b2 b3"
    "b1 b2 b4";
  column-gap: 40px;
  row-gap: 20px;
  align-items: start;
}

.footer-col--brand {
  grid-area: b1;
  min-width: 0;
}

.footer-brand-content img { 
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.footer-brand-content p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.75;
}

.footer-col--menu {
  grid-area: b2;
  min-width: 0;
}

.footer-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 28px;
}

.footer-menu-list li {
  break-inside: avoid;
  margin: 0 0 14px;
}

.footer-menu-list a {
  color: #ffffff;
  text-decoration: none;
  line-height: 1.35;
}

.footer-menu-list a:hover {
  text-decoration: underline;
}

.footer-fixed-links{
  grid-area: b3;
  width: 100%;
}

.footer-fixed-links ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.footer-fixed-links a {
  font-size: 10px;
  line-height: 1.35;
}

.footer-fixed-links a:hover {
  text-decoration: underline;
}

.footer-socials {
  grid-area: b4;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.footer-socials .icon {
  width: 25px;
  height: 25px;
  --fill-0: #ffffff;
}

.footer-socials .icon .icon-cutout {
  fill: #0e1b42;
}

.footer-powered {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 100;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .footer-fixed-links,
  .footer-socials {
    align-self: end;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-separator {
    max-width: 616px;
  }

  .footer-main {  
    max-width: 616px;
    display: grid;
    grid-template-columns: 220px 150px 1fr;
    grid-template-areas: 
      "b1 b2 b2"
      "b1 b4 b3";
    gap: 32px;
  } 

  .footer-col--right:nth-child(3) {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-menu-list {
    column-count: 3;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 24px 0 16px;
  }
  
  .site-footer .site-container {
    max-width: 494px;
  }

  .footer-separator {
    max-width: 494px;
  }

  .footer-main {
    max-width: 494px;
    display: grid;
    grid-template-columns: 220px 150px 1fr;
    grid-template-areas: 
      "b1 b2 b3"
      "b1 b4 .";
    gap: 20px;
  } 

  .footer-menu-list {
    column-gap: 0px;
  }

  .footer-menu-list li {
    margin: 0 0 6px;
  }

  .footer-col--right {
    grid-column: auto;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-fixed-links {
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-fixed-links ul {
    display: block;
  }

  .footer-fixed-links ul li {
    margin: 0 0 4px;
  }
}

@media (max-width: 574px) {
  .footer-separator {
    max-width: 289px;
  }

  .footer-main {
    max-width: 220px;
    margin-inline: auto;
    justify-content: center;
    grid-template-columns: 1fr;
    grid-template-areas: 
      "b2"
      "b1"
      "b4"
      "b3";
    gap: 20px;
  }

  .footer-col--menu,
  .footer-col--right,
  .footer-fixed-links,
  .footer-socials {
    width: 100%;
  }

  .footer-menu-list {
    text-align: center;
  }

  .footer-fixed-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .footer-menu-list a {
    font-size: 16px;
  }

  .footer-fixed-links a {
    font-size: 12px;
  }

  .footer-socials .icon {
    width: 35px;
    height: 35px;
  }
}
