/* =========================================================
   footer.css — CodingDEV.RU
   ========================================================= */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  color: var(--text-2);
  margin-top: auto;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin: 16px 0;
  font-size: 14px;
  max-width: 380px;
  color: var(--muted);
  line-height: 1.6;
}
.footer-brand .site-logo { margin-bottom: 8px; }

.footer-req {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  line-height: 1.8;
}
.footer-req strong { color: var(--text-2); }

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-phone {
  background: none;
  border: none;
  color: var(--text-2);
  font: inherit;
  text-align: left;
  padding: 5px 0;
  cursor: pointer;
  display: block;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-phone:hover { color: var(--accent-2); }

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--accent-2); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__links { gap: 12px; }
}