/* Footer v5 — точная композиция утверждённого макета */
body footer.footer.ep-footer {
  background:#08080a;
  border-top:1px solid rgba(226,45,65,.45);
  padding:clamp(36px,5vw,56px) 0 24px;
}
body footer.ep-footer .footer-grid {
  display:grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.12fr) !important;
  column-gap:clamp(20px,3vw,46px) !important;
  row-gap:0 !important;
  align-items:start;
}
body footer.ep-footer .footer-info,
body footer.ep-footer .footer-contacts,
body footer.ep-footer .footer-social-block {grid-column:auto !important; min-width:0;}
body footer.ep-footer .footer-contacts,
body footer.ep-footer .footer-social-block {
  border-left:1px solid rgba(255,255,255,.12);
  padding-left:clamp(18px,3vw,40px);
  min-height:110px;
}
body footer.ep-footer .footer-logo {
  font-size:clamp(1.8rem,3.4vw,2.8rem);
  letter-spacing:.09em;
  line-height:1.05;
}
body footer.ep-footer .footer-info p {
  margin:14px 0 0;
  max-width:260px;
  color:#909096;
  font-size:.86rem;
  line-height:1.6;
}
body footer.ep-footer :is(.footer-contacts h4,.footer-social-block h4) {
  font-size:.72rem;
  letter-spacing:.13em;
  margin:0 0 14px;
  color:#a0a0a7;
  text-transform:uppercase;
}
body footer.ep-footer .footer-tags {display:flex;gap:9px;flex-wrap:wrap;}
body footer.ep-footer .footer-tags a {
  color:#f03a50;
  border:1px solid #28282d;
  background:#111114;
  border-radius:6px;
  padding:9px 12px;
  min-height:39px;
  font-size:.78rem;
}
body footer.ep-footer .footer-socials {
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap;
  align-items:flex-start;
}
body footer.ep-footer .footer-socials .social-link {
  width:46px;height:46px;min-width:46px;min-height:46px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #27272c;border-radius:10px;
  background:#111114;padding:8px;
}
body footer.ep-footer .footer-socials .social-link img {
  width:28px;height:28px;object-fit:contain;flex-shrink:0;
}
body footer.ep-footer .footer-socials .social-link span {display:none !important;}
body footer.ep-footer .footer-bottom {
  grid-column:1 / -1 !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:space-between;
  align-items:center;
  gap:18px 28px;
  border-top:1px solid #26262a;
  margin-top:38px;
  padding:20px 0 0;
  text-align:left;
}
body footer.ep-footer .footer-bottom p {
  flex:0 0 auto;
  font-size:.73rem;
  color:#77777e;
}
body footer.ep-footer .footer-bottom .legal-links {
  display:flex !important;flex:1;justify-content:flex-end !important;
  align-items:center;flex-wrap:wrap;
  width:auto !important;max-width:none !important;
  gap:5px 17px !important;
  margin:0 !important;padding:0 !important;
  border:0 !important;background:none !important;
  font-size:.72rem !important;
}
body footer.ep-footer .legal-links a,
body footer.ep-footer .legal-links button {
  color:#77777e !important;
  font-size:.72rem !important;
  text-decoration:none !important;
  font-weight:400 !important;
  padding:5px 0 !important;
  min-height:32px;
  border:0 !important;
  background:transparent !important;
}
body footer.ep-footer .legal-links :is(a,button):hover {color:#c3c3ca !important;}
/* Скрыть внешнюю кнопку входа, но не менять адрес и саму админку. */
body > a[href*="/admin"], body > .admin-link, body > .admin-button {display:none !important;}
@media(max-width:850px) {
  body footer.ep-footer .footer-grid {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    row-gap:25px !important;
  }
  body footer.ep-footer .footer-info {grid-column:1/-1 !important;}
  body footer.ep-footer .footer-contacts {border-left:0;padding-left:0;}
  body footer.ep-footer .footer-social-block {padding-left:20px;}
  body footer.ep-footer .footer-bottom {margin-top:8px;flex-wrap:wrap;}
  body footer.ep-footer .footer-bottom .legal-links {justify-content:flex-start !important;}
}
@media(max-width:600px) {
  body footer.footer.ep-footer {padding:34px 0 25px;}
  body footer.ep-footer .footer-grid {
    display:flex !important;flex-direction:column;align-items:center;
    gap:25px !important;
  }
  body footer.ep-footer .footer-info,
  body footer.ep-footer .footer-contacts,
  body footer.ep-footer .footer-social-block {
    width:100%;border:0;min-height:0;padding:0 !important;text-align:center;
  }
  body footer.ep-footer .footer-logo {font-size:clamp(2rem,8vw,2.7rem);}
  body footer.ep-footer .footer-info p {margin:10px auto 0;max-width:260px;}
  body footer.ep-footer .footer-tags,
  body footer.ep-footer .footer-socials {justify-content:center !important;}
  body footer.ep-footer .footer-socials {display:flex !important;gap:10px !important;}
  body footer.ep-footer .footer-bottom {
    width:100%;display:flex !important;flex-direction:column-reverse !important;
    align-items:center;gap:15px;margin-top:1px;padding-top:20px;
  }
  body footer.ep-footer .footer-bottom .legal-links {
    width:100% !important;display:flex !important;
    justify-content:center !important;text-align:center;
    gap:4px 14px !important;
  }
  body footer.ep-footer .footer-bottom p {text-align:center;}
}
