/* FOOTER — контакты и копирайт */

.site-footer {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg) 0 calc(var(--sp-md) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  align-items: start;
  padding-bottom: var(--sp-md);
  text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .brand { justify-content: flex-start; }
.footer-brand p { margin: 0; }

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    text-align: left;
  }
  .footer-brand { grid-column: 1 / -1; align-items: flex-start; }
  .footer-brand .brand { justify-content: flex-start; }
  .footer-brand p { margin: 0; }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-brand { grid-column: auto; }
}

.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.footer-brand strong {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  color: var(--text-0);
}

.footer-brand p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.7vw, 11px);
}

.footer-col a {
  color: var(--text-1);
  font-size: clamp(13px, 1vw, 15px);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-col a:hover { color: var(--accent-tg); }

.footer-bottom {
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  font-size: clamp(11px, 0.85vw, 13px);
  text-align: center;
}

@media (min-width: 600px) {
  .footer-bottom { justify-content: space-between; text-align: left; }
}

.footer-bottom a { color: var(--text-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-mint); }

.footer-col a { min-height: 44px; display: inline-flex; align-items: center; } /* WCAG touch */

/* Автор проекта — Потап */
.footer-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.footer-author:hover {
  border-color: var(--accent-tg);
  background: rgba(0, 136, 204, 0.06);
  transform: translateY(-1px);
}
.fa-avatar {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.fa-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.fa-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  font-family: 'Manrope', sans-serif;
  line-height: 1.3;
}
.fa-sub {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.footer-author:hover .fa-sub { color: var(--accent-tg); }

.footer-tech {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-3);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--dur-fast), background var(--dur-fast);
  opacity: 0.75;
}
.footer-tech:hover {
  color: var(--accent-tg);
  background: rgba(0, 136, 204, 0.06);
  opacity: 1;
}
