/**
 * Prefooter mega linkovi — home + 404
 * Figma desktop `1099:14597`, mobile `2082:11600`
 */

.home-prefooter {
  width: 100%;
}

.home-prefooter__inner {
  padding: 0;
}

.home-prefooter__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 15px;
  width: 100%;
}

.home-prefooter__col {
  flex: 0 1 130px;
  min-width: 120px;
}

.home-prefooter__heading {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.196px;
  color: var(--color-neutral-900);
}

.home-prefooter__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-prefooter__list a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.196px;
  color: var(--color-neutral-900);
  text-decoration: none;
}

.home-prefooter__list a:hover {
  color: var(--color-brand-pink-500);
}

.home-prefooter__list a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.page-404 .home-prefooter {
  padding-top: 30px;
  padding-bottom: 48px;
}

@media (max-width: 900px) {
  .home-prefooter__grid {
    justify-content: flex-start;
  }

  .home-prefooter__col {
    flex: 1 1 calc(33.333% - 12px);
  }
}

@media (max-width: 600px) {
  .home-prefooter__col {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 1023px) {
  .home-prefooter {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .home-prefooter__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 0;
    justify-content: stretch;
    align-items: start;
  }

  .home-prefooter__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    flex: none;
    min-width: 0;
    padding: 16px 0;
  }

  .home-prefooter__col:nth-child(-n + 3) {
    margin-bottom: -10px;
  }

  .home-prefooter__heading {
    margin: 0;
    font-size: 17px;
    line-height: 22px;
  }

  .home-prefooter__list {
    gap: 6px;
    padding-top: 4px;
  }

  .home-prefooter__list a {
    font-size: 14px;
    color: var(--color-neutral-700, #47475b);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-prefooter__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 24px;
    align-items: start;
    justify-content: stretch;
    width: 100%;
  }

  .home-prefooter__col {
    display: block;
    flex: none;
    min-width: 0;
    padding: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .home-prefooter__col:nth-child(-n + 3) {
    margin-bottom: 0;
  }

  .home-prefooter__col:nth-child(-n + 4) {
    margin-bottom: -10px;
  }
}
