/* ── FOOTER (БЭМ: блок .footer) ── */
/* Подключение: <link rel="stylesheet" href="partials/footer.css">
   Палитра берётся из :root каждой страницы (--ink, --aged, --gold) */

.footer {
  background: var(--ink);
  color: var(--aged);
  border-top: 3px double var(--gold);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer__kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  opacity: 0.85;
}
.footer__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--aged);
  margin-bottom: 1rem;
}
.footer__title-accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.footer__lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--aged);
  opacity: 0.82;
  max-width: 55ch;
  margin-bottom: 1.2rem;
}
.footer__cta {
  font-family: 'PT Serif', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  opacity: 0.9;
}
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer__contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  opacity: 0.85;
}
.footer__link {
  font-family: 'PT Serif', Georgia, serif;
  color: var(--aged);
  text-decoration: none;
  border-bottom: 1px dotted rgba(184,134,11,0.5);
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
  padding-bottom: 1px;
}
.footer__link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.footer__rule {
  max-width: 1200px;
  margin: 2.5rem auto 1.2rem;
  border: none;
  border-top: 1px solid rgba(184,134,11,0.25);
  position: relative;
}
.footer__meta {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aged);
  opacity: 0.5;
}
.footer__meta-item { display: inline-block; }
.footer--compact { padding: 2.2rem 1.2rem 1.5rem; margin-top: 2.5rem; }

@media (max-width: 720px) {
  .footer        { padding: 2.2rem 1.2rem 1.5rem; margin-top: 2.5rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__meta  { flex-direction: column; text-align: center; opacity: 0.55; }
}
