/* Final logo proportions: original prominent header lockup, reduced by about 10%. */
.brand-image-lockup {
  width: 265px !important;
  height: 66px !important;
  min-width: 265px !important;
}
.brand-image-lockup img {
  content: url("img/avito-logo-footer.webp") !important;
  width: 265px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Keep the footer logo size, but make the whole footer calmer and darker. */
.site-footer-compact {
  background: #18233b !important;
  color: #dce3ef !important;
}
.site-footer-compact a,
.site-footer-compact p,
.site-footer-compact li,
.site-footer-compact small {
  color: #c8d1df !important;
}
.site-footer-compact h3,
.site-footer-compact h4,
.site-footer-compact strong {
  color: #f4f7fb !important;
}
.site-footer-compact .footer-image-lockup,
.site-footer-compact .footer-image-lockup img {
  width: 180px !important;
}
.site-footer-compact .footer-image-lockup img {
  content: url("img/avito-logo-footer.webp") !important;
  height: auto !important;
  filter: brightness(.88) contrast(1.05) !important;
}

/* A clean, unambiguous back-to-top arrow. */
.back-to-top {
  display: flex !important;
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 9999 !important;
  width: 48px !important;
  height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #25324a !important;
  color: transparent !important;
  font-size: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.back-to-top::before {
  content: "\2191" !important;
  color: #fff !important;
  font: 700 24px/1 Arial, sans-serif !important;
}

@media (max-width: 1050px) and (min-width: 621px) {
  .brand-image-lockup { width: 238px !important; height: 60px !important; min-width: 238px !important; }
  .brand-image-lockup img { width: 238px !important; }
}
@media (max-width: 620px) {
  .brand-image-lockup { width: 48px !important; height: 48px !important; min-width: 48px !important; }
  .brand-image-lockup img { content: url("img/avito-mark-mobile.webp") !important; width: 48px !important; height: 48px !important; }
  .site-footer-compact .footer-image-lockup,
  .site-footer-compact .footer-image-lockup img { width: 165px !important; }
  .back-to-top { right: 14px !important; bottom: 14px !important; width: 44px !important; height: 44px !important; }
}
.brand-image-lockup{width:270px!important;min-width:270px!important;height:66px!important;display:flex!important;align-items:center!important;overflow:hidden!important}.brand-image-lockup img{content:url("img/avito-logo-v2.webp")!important;display:block!important;width:270px!important;height:auto!important;opacity:1!important;filter:none!important;object-fit:contain!important}.site-footer-compact{background:#18233b!important}.site-footer-compact .footer-image-lockup,.site-footer-compact .footer-image-lockup img{width:174px!important}.site-footer-compact .footer-image-lockup img{content:url("img/avito-logo-footer.webp")!important;height:auto!important;opacity:.92!important;filter:brightness(.84) contrast(1.08)!important}.back-to-top{display:flex!important;position:fixed!important;right:20px!important;bottom:20px!important;z-index:9999!important;width:48px!important;height:48px!important;align-items:center!important;justify-content:center!important;border:1px solid #ffffff48!important;border-radius:50%!important;background:#25324a!important;color:transparent!important;font-size:0!important;opacity:1!important;visibility:visible!important;cursor:pointer!important;animation:avitoBackTopPulse 2.2s ease-in-out infinite!important}.back-to-top:before{content:"\2191"!important;color:#fff!important;font:700 24px/1 Arial,sans-serif!important;animation:avitoArrowFloat 1.25s ease-in-out infinite!important}@keyframes avitoArrowFloat{0%,100%{transform:translateY(2px)}50%{transform:translateY(-3px)}}@keyframes avitoBackTopPulse{0%,100%{box-shadow:0 12px 28px #131d3338,0 0 0 0 #405cf62e}50%{box-shadow:0 12px 28px #131d3347,0 0 0 7px #405cf600}}@media(max-width:1050px) and (min-width:621px){.brand-image-lockup{width:244px!important;min-width:244px!important;height:62px!important}.brand-image-lockup img{width:244px!important}}@media(max-width:620px){.brand-image-lockup{width:48px!important;min-width:48px!important;height:48px!important;overflow:visible!important}.brand-image-lockup img{content:url("img/avito-mark-mobile.webp")!important;width:48px!important;height:48px!important}.site-footer-compact .footer-image-lockup,.site-footer-compact .footer-image-lockup img{width:158px!important}.back-to-top{right:14px!important;bottom:14px!important;width:44px!important;height:44px!important}}
.brand-image-lockup{width:243px!important;min-width:243px!important;height:60px!important}.brand-image-lockup img{width:243px!important}.site-footer-compact{display:block!important;background:#18233b!important;min-height:0!important;padding:0!important;color:#dce3f1!important}.site-footer-compact .footer-main{display:grid!important;grid-template-columns:minmax(250px,1.45fr) repeat(3,minmax(135px,.75fr))!important;gap:42px!important;width:calc(100% - 60px)!important;max-width:1240px!important;margin:0 auto!important;padding:46px 0 34px!important;align-items:start!important}.site-footer-compact .footer-main>section,.site-footer-compact .footer-main>nav{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important}.site-footer-compact .footer-main h4{margin:0 0 7px!important;font-size:12px!important;letter-spacing:.12em!important;color:#8797b8!important}.site-footer-compact .footer-main a{font-size:15px!important;line-height:1.35!important;color:#eef3ff!important}.site-footer-compact .footer-main p{max-width:270px!important;margin:9px 0 0!important;font-size:14px!important;line-height:1.55!important;color:#aebbd1!important}.site-footer-compact .footer-image-lockup,.site-footer-compact .footer-image-lockup img{width:168px!important}.site-footer-compact .footer-line{display:grid!important;grid-template-columns:1fr 1.4fr 1fr!important;align-items:center!important;gap:24px!important;width:calc(100% - 60px)!important;max-width:1240px!important;height:auto!important;min-height:68px!important;margin:0 auto!important;padding:16px 0!important;border-top:1px solid #ffffff18!important;background:transparent!important}.site-footer-compact .footer-line span,.site-footer-compact .footer-line p,.site-footer-compact .footer-line strong{margin:0!important;font-size:13px!important;line-height:1.4!important;color:#aebbd1!important}.site-footer-compact .footer-line p{text-align:center!important}.site-footer-compact .footer-line strong{text-align:right!important;color:#fff!important;letter-spacing:.08em!important}.back-to-top{transition:background .2s ease,transform .2s ease,box-shadow .2s ease!important}.back-to-top:hover,.back-to-top:focus-visible{background:#405cf6!important;transform:translateY(-4px)!important;box-shadow:0 15px 32px #405cf650!important}.back-to-top:hover:before,.back-to-top:focus-visible:before{animation:none!important;transform:translateY(-1px)!important}@media(max-width:1050px) and (min-width:621px){.brand-image-lockup{width:220px!important;min-width:220px!important;height:58px!important}.brand-image-lockup img{width:220px!important}.site-footer-compact .footer-main{grid-template-columns:1.3fr repeat(3,1fr)!important;gap:26px!important}}@media(max-width:620px){.brand-image-lockup{width:48px!important;min-width:48px!important;height:48px!important}.brand-image-lockup img{width:48px!important;height:48px!important}.site-footer-compact .footer-main{grid-template-columns:1fr 1fr!important;gap:28px 20px!important;width:calc(100% - 36px)!important;padding:34px 0 26px!important}.site-footer-compact .footer-main>section{grid-column:1/-1!important}.site-footer-compact .footer-line{grid-template-columns:1fr!important;gap:8px!important;width:calc(100% - 36px)!important;padding:17px 0 22px!important}.site-footer-compact .footer-line p,.site-footer-compact .footer-line strong{text-align:left!important}}
