/* kit-footer — Reference Kit block (mockup: bar + circular social) */
.kit-footer {
  --kit-footer-bg: var(--semantic-surface-inverse);
  --kit-footer-text: var(--semantic-surface-on-inverse);
  --kit-footer-muted: color-mix(in srgb, var(--kit-footer-text) 55%, transparent);
  --kit-footer-accent: var(--semantic-accent-primary, #e8c547);
  --kit-footer-padding-y: 3rem;
  --kit-footer-padding-x: 1.5rem;
  --kit-footer-radius: 0.25rem;
  --kit-footer-shadow: none;
  --kit-footer-font-family: inherit;
  background: var(--kit-footer-band-bg, var(--theme-kit-band-bg, transparent));
  color: var(--kit-footer-text);
  font-family: var(--kit-footer-font-family);
}

.kit-footer,
.kit-footer * {
  box-sizing: border-box;
}

.kit-footer :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--kit-footer-accent);
  outline-offset: 2px;
}

.kit-footer__container {
  background: var(--kit-footer-bg, var(--semantic-surface-bg-elevated));
  max-width: var(--layout-container-max, 1200px);
  margin-inline: auto;
  padding-block: var(--kit-footer-padding-y);
  padding-inline: var(--kit-footer-padding-x, var(--layout-container-gutter, 24px));
  border-radius: var(--kit-footer-radius, var(--semantic-radius-none));
  box-shadow: var(--kit-footer-shadow, none);
}

/* Bar mockup: brand | nav | social */
.kit-footer__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 1.5rem 2rem;
}

.kit-footer__columns {
  display: grid;
  gap: 1.5rem 2rem;
}

.kit-footer--layout-columns_3 .kit-footer__columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kit-footer--layout-columns_2 .kit-footer__columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kit-footer--layout-stacked .kit-footer__columns {
  grid-template-columns: 1fr;
}

.kit-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.kit-footer__brand-name,
.kit-footer strong {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kit-footer__brand-name {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--kit-footer-text);
}

.kit-footer__brand-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--kit-footer-muted);
}

.kit-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.kit-footer__nav-link {
  color: var(--kit-footer-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kit-footer__nav-link:hover {
  color: var(--kit-footer-accent);
}

.kit-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kit-footer__contact {
  color: var(--kit-footer-muted);
  text-decoration: none;
  font-style: normal;
  font-size: 0.95rem;
}

.kit-footer__contact:hover {
  color: var(--kit-footer-accent);
}

.kit-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.kit-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--kit-footer-text) 35%, transparent);
  border-radius: 999px;
  color: var(--kit-footer-text);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.kit-footer__social-link:hover {
  color: var(--kit-footer-accent);
  border-color: var(--kit-footer-accent);
}

.kit-footer__social-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.kit-footer__social-text {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kit-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--kit-footer-text) 12%, transparent);
}

.kit-footer__copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--kit-footer-muted);
}

.kit-footer__privacy {
  font-size: 0.85rem;
  color: var(--kit-footer-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.kit-footer__privacy:hover {
  color: var(--kit-footer-accent);
}

.kit-footer--layout-bar .kit-footer__brand .kit-footer__copyright {
  margin-top: 0.15rem;
}

.kit-footer--layout-bar .kit-footer__privacy {
  margin-top: 0.1rem;
}

@media (max-width: 900px) {
  .kit-footer__row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .kit-footer__nav {
    justify-content: flex-start;
  }

  .kit-footer__social {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .kit-footer {
    --kit-footer-padding-x: 1rem;
    --kit-footer-padding-y: 2rem;
  }

  .kit-footer--layout-columns_3 .kit-footer__columns,
  .kit-footer--layout-columns_2 .kit-footer__columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kit-footer *,
  .kit-footer *::before,
  .kit-footer *::after {
    transition: none !important;
  }
}
