.ka-custom-footer {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--ka-surface) 0%, var(--ka-surface-warm) 100%);
  border-top: 1px solid var(--ka-divider);
  width: 100%;
}

.ka-custom-footer__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 24px;
}

.ka-custom-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(140px, 0.7fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.ka-custom-footer__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ka-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ka-footer-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ka-recipes-soft), var(--ka-surface));
  color: var(--ka-recipes);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: var(--ka-shadow-soft);
}

.ka-custom-footer__title {
  margin: 0;
  color: var(--ka-text-primary);
  font-size: 18px;
  font-weight: 800;
}

.ka-custom-footer__text,
.ka-custom-footer__list a,
.ka-custom-footer__contact a {
  color: var(--ka-text-secondary);
  font-size: 15px;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ka-custom-footer__list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ka-custom-footer__list a:hover,
.ka-custom-footer__list a:focus-visible,
.ka-custom-footer__contact a:hover,
.ka-custom-footer__contact a:focus-visible {
  color: var(--ka-recipes);
  outline: 2px solid var(--ka-recipes);
  outline-offset: 3px;
  text-decoration: underline;
}

.ka-custom-footer__contact {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ka-custom-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--ka-divider);
  color: var(--ka-text-secondary);
  font-size: 14px;
}

@media (max-width: 900px) {
  .ka-custom-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .ka-custom-footer {
    padding: 56px 0 32px;
  }

  .ka-custom-footer__inner {
    padding: 0 18px;
  }

  .ka-custom-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ka-custom-footer__bottom {
    flex-direction: column;
  }
}
