footer.main-footer {
  background: transparent;
  color: #666;
  font-size: 0.9rem; /* ~14.4px */
  padding: 16px 24px;
  box-shadow: none;
  user-select: none;
  text-align: center;
}

.main-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

footer.main-footer p.links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  user-select: none;
  font-size: 0.85rem; /* ~13.6px */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100vw;
}

footer.main-footer p.links a + a {
  position: relative;
  padding-left: 1rem;
}

footer.main-footer p.links a + a::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-weight: normal;
}

footer.main-footer p.links a {
  color: #2d72d9;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 0.2rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

footer.main-footer p.links a:hover,
footer.main-footer p.links a:focus {
  color: #1a4ea8;
  outline: none;
  text-decoration: underline;
}

footer.main-footer p.copy {
  font-size: 0.8rem; /* ~12.8px */
  color: #999;
  margin: 0;
  user-select: none;
  padding-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100vw;
}

/* Адаптивность */
@media (max-width: 768px) {
  footer.main-footer {
    font-size: 0.85rem;
    padding: 14px 20px;
  }

  footer.main-footer p.links {
    font-size: 0.8rem;
    gap: 0.75rem;
  }

  footer.main-footer p.copy {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  footer.main-footer {
    font-size: 0.8rem;
    padding: 12px 16px;
  }

  footer.main-footer p.links {
    gap: 0.6rem;
    font-size: 0.75rem;
  }

  footer.main-footer p.links a {
    padding: 0 0.1rem;
  }

  footer.main-footer p.copy {
    font-size: 0.7rem;
    padding-top: 0.15rem;
  }
}

@media (max-width: 320px) {
  footer.main-footer {
    font-size: 0.75rem;
    padding: 10px;
  }

  footer.main-footer p.links {
    gap: 0.4rem;
    font-size: 0.7rem;
  }

  footer.main-footer p.copy {
    font-size: 0.65rem;
    padding-top: 0.1rem;
  }
}
