footer {
  text-align: center;
  padding: 1em 0 0 0;
  color: var(--dark);
  font-size: 0.9rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
}

.footer-links {
  padding: 1em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section h4 {
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-left: 1px solid black;
}

.footer-box {
  padding: 0.5rem;
}

.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-box li {
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.footer-box a {
  color: inherit;
  text-decoration: none;
}

.footer-box a:hover {
  text-decoration: underline;
}

.footer-end-text {
  margin: 2rem 0 3rem 0;
  position: relative;
  bottom: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .two-column-grid {
    gap: 0.5rem;
  }
}