@layer components {
/* Footer */
.tm-footer{
  background:var(--color-ink); color:rgba(255,255,255,.8);
  padding:var(--space-8) 0; margin-top:var(--space-8);
}
.tm-footer__grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-7);
  margin-bottom:var(--space-7);
}
.tm-footer__title{ font-size:var(--text-body); font-weight:700; color:var(--color-surface-alt); margin-bottom:var(--space-4); }
.tm-footer__menu{ display:flex; flex-direction:column; gap:var(--space-2); }
.tm-footer__menu a{ color:rgba(255,255,255,.7); font-size:var(--text-body-sm); }
.tm-footer__menu a:hover{ color:var(--color-brand-to); }
.tm-footer__menu .current-menu-item a{ color:var(--color-brand-to); }
/* Footer journal */
.tm-footer-journal{ display:flex; flex-direction:column; gap:var(--space-3); }
.tm-footer-journal__card{
  display:flex; gap:var(--space-3); align-items:flex-start;
  padding:var(--space-2); margin:0 calc(var(--space-2) * -1);
  border-radius:var(--radius-sm);
}
.tm-footer-journal__thumb{
  flex:0 0 64px; width:64px; height:64px; border-radius:var(--radius-sm);
  overflow:hidden; background:rgba(255,255,255,.08);
}
.tm-footer-journal__thumb img{ display:block; width:100%; height:100%; object-fit:cover; }
.tm-footer-journal__thumb--empty{ display:flex; align-items:center; justify-content:center; background:var(--gradient-brand); color:var(--color-ink); }
.tm-footer-journal__body{ min-width:0; }
.tm-footer-journal__date{
  display:block; font-family:var(--font-mono); font-size:var(--text-label);
  text-transform:uppercase; letter-spacing:.02em;
  color:rgba(255,255,255,.5); margin-bottom:var(--space-1);
}
.tm-footer-journal__name{
  display:block; font-size:var(--text-body-sm); font-weight:600; line-height:1.45;
  color:rgba(255,255,255,.85); transition:color .15s ease-out;
}
.tm-footer-journal__card:hover .tm-footer-journal__name{ color:var(--color-brand-to); }
.tm-footer-journal__all{
  display:inline-flex; align-items:center; gap:var(--space-2);
  margin-top:var(--space-1); font-size:var(--text-body-sm); font-weight:700;
  color:var(--color-surface-alt);
}
.tm-footer-journal__all svg{ transition:transform .15s ease-out; }
.tm-footer-journal__all:hover{ color:var(--color-brand-to); }
.tm-footer-journal__all:hover svg{ transform:translateX(4px); }
.tm-footer__disclaimer{
  font-size:var(--text-body-sm); color:rgba(255,255,255,.5);
  padding:var(--space-4) 0; border-top:1px solid rgba(255,255,255,.1);
  margin-bottom:var(--space-4); line-height:1.6;
}
.tm-footer__bottom{
  font-size:var(--text-body-sm); color:rgba(255,255,255,.5);
  padding-top:var(--space-4); border-top:1px solid rgba(255,255,255,.1);
}
@media (max-width:1279px){
  .tm-footer__grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:767px){
  .tm-footer__grid{ grid-template-columns:1fr; gap:var(--space-5); }
}

/* ─── Футер: правовые ссылки ───────────────────────── */
.tm-footer__bottom{
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:var(--space-2) var(--space-5);
}
.tm-footer__copy{ margin:0; }
.tm-footer__legal{ display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-5); font-size:var(--text-label); }
.tm-footer__legal a{ color:rgba(255,255,255,.55); transition:color .15s ease-out; }
.tm-footer__legal a:hover{ color:var(--color-brand-to); text-decoration:underline; text-underline-offset:3px; }
@media (max-width:767px){
  .tm-footer__bottom{ flex-direction:column; align-items:flex-start; gap:var(--space-2); }
}
}
