/* NFS Footer — визуально как Footer2 (светлый, 4 колонки, outline-иконки, stores) */

.nfs-footer {
  --nfs-footer-fg: #0f172a;
  --nfs-footer-muted: #64748b;
  --nfs-footer-border: rgba(15, 23, 42, 0.1);
  --nfs-footer-blue: var(--nfs-blue, #1a5fd9);

  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 2.5rem;
  padding: 0;
  color: var(--nfs-footer-fg);
  font-family: var(--nfs-ff, 'Montserrat', system-ui, sans-serif);
  background: rgba(248, 250, 252, 0.6);
  border-top: none;
}

/* Сброс legacy shimmer-полоски из nfs-sections.css */
.nfs-footer::before,
.main-footer.nfs-footer::before {
  content: none !important;
  display: none !important;
  animation: none !important;
  height: 0 !important;
  background: none !important;
}

.main-footer.nfs-footer {
  background: rgba(248, 250, 252, 0.6);
  color: var(--nfs-footer-fg);
}

.nfs-footer__inner {
  max-width: 72rem; /* max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .nfs-footer__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Логотип */
.nfs-footer__brand {
  padding-top: 2rem;
  padding-bottom: 0.25rem;
}

.nfs-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nfs-footer-fg);
  min-width: 0;
}

.nfs-footer__logo .nfs-logo-word {
  font-family: var(--nfs-ff, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--nfs-footer-fg);
  white-space: nowrap;
}

/* Те же полосы и shimmer, что в хедере (nfs-design-system.css) — только масштаб */
.nfs-footer__logo .nfs-logo-stripes {
  height: 28px;
  flex-shrink: 0;
}

.nfs-footer__logo .nfs-logo-stripes span {
  width: 5px;
}

.nfs-footer__logo .nfs-logo-stripes span:nth-child(1) {
  height: 28px;
}

.nfs-footer__logo .nfs-logo-stripes span:nth-child(2) {
  height: 22px;
}

.nfs-footer__logo .nfs-logo-stripes span:nth-child(3) {
  height: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .nfs-footer__logo .nfs-logo-stripes span {
    animation: none !important;
  }
}

/* 4 колонки — как Footer2 grid-cols-2 md:grid-cols-4 gap-8 py-8 */
.nfs-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .nfs-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nfs-footer__heading {
  margin: 0 0 1rem;
  font-size: 0.75rem; /* text-xs */
  font-weight: 600;
  line-height: 1.25;
  color: var(--nfs-footer-fg);
}

.nfs-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
}

.nfs-footer__links a {
  display: inline-block;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.4;
  color: var(--nfs-footer-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nfs-footer__links a:hover {
  color: var(--nfs-footer-fg);
}

.nfs-footer__muted {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--nfs-footer-muted);
  font-style: normal;
}

.nfs-footer__rule {
  height: 1px;
  background: var(--nfs-footer-border);
}

/* Соцсети outline + stores — py-5 flex justify-between */
.nfs-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.nfs-footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nfs-footer__soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--nfs-footer-border);
  background: transparent;
  color: var(--nfs-footer-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nfs-footer__soc:hover {
  color: var(--nfs-footer-fg);
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.7);
}

.nfs-footer__soc .nfs-social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nfs-footer__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.nfs-footer__store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.nfs-footer__store:hover {
  opacity: 0.9;
  color: #fff;
}

.nfs-footer__store-icon {
  flex-shrink: 0;
}

.nfs-footer__store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nfs-footer__store-eyebrow {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}

.nfs-footer__store-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nfs-footer__copy {
  padding: 1rem 0;
  text-align: center;
}

.nfs-footer__copy p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--nfs-footer-muted);
}

.nfs-footer .nfs-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--nfs-footer-border);
  border-radius: 999px;
  background: #fff;
  color: var(--nfs-footer-fg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.nfs-footer .nfs-back-to-top:hover {
  color: var(--nfs-footer-blue);
  border-color: rgba(26, 95, 217, 0.35);
}

@media (max-width: 640px) {
  .nfs-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nfs-footer__stores {
    width: 100%;
  }

  .nfs-footer__store {
    flex: 1 1 auto;
    justify-content: center;
  }
}
