﻿.footer{
  margin-top:80px;
  padding:26px 20px 18px;
  background:#f8f9fa;
  border-top:1px solid rgba(0,0,0,.08);
  color:rgba(0,0,0,.65);
  font-size:14px;
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
}

.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.footer-logo{
  width:42px;
  height:42px;
  border-radius:14px;
  background:#111;
  color:#fff;
  font-weight:1000;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.footer-brand__text{
  display:flex;
  flex-direction:column;
  gap:2px;
  line-height:1.1;
}

.footer-brand__text strong{
  color:#111;
  font-weight:1000;
}

.footer-brand__text span{
  font-weight:800;
  color:rgba(0,0,0,.55);
}

.footer-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.footer a{
  color:rgba(0,0,0,.75);
  font-weight:900;
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  transition:.15s ease;
}

.footer a:hover{
  background:rgba(0,0,0,.04);
  color:#111;
}

.footer-bottom{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.06);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer-muted{
  color:rgba(0,0,0,.50);
  font-weight:800;
}

@media (max-width:640px){
  .footer{padding:20px 14px 14px;font-size:13px}
  .footer-logo{width:38px;height:38px;border-radius:12px}
}



.site-footer, footer {
  width: 100%;
  max-width: 100%;
  margin: 0;
  left: auto;
  right: auto;
  transform: none;
  overflow-x: clip; /* або hidden */
}

.site-footer .footer-inner,
footer .footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 16px;
  min-width: 0;
}


footer, .site-footer{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  overflow-x: clip;
}

:root{ --appbar-h:72px; }

.appbar{ display:none; }

.footer{
  margin-top:48px;
  background:rgba(6,10,14,.88);
  border-top:1px solid rgba(255,255,255,.10);
  color:rgba(234,240,255,.70);
}

.footer-logo{
  background:#05070a;
  color:#fff;
  border:1px solid rgba(46,229,157,.18);
  box-shadow:0 0 0 1px rgba(46,229,157,.10), 0 12px 28px rgba(0,0,0,.32);
}

.footer-brand__text strong,
.footer a{
  color:rgba(234,240,255,.90);
}

.footer-brand__text span,
.footer-muted{
  color:rgba(234,240,255,.58);
}

.footer a:hover{
  background:rgba(46,229,157,.10);
  color:#fff;
}

.footer-bottom{
  border-top-color:rgba(255,255,255,.08);
}

@media (max-width:820px){
  body{
    padding-bottom:calc(var(--appbar-h) + 28px);
    padding-bottom:calc(var(--appbar-h) + env(safe-area-inset-bottom) + 28px);
    scroll-padding-bottom:calc(var(--appbar-h) + 28px);
    scroll-padding-bottom:calc(var(--appbar-h) + env(safe-area-inset-bottom) + 28px);
  }

  main.page{
    padding-bottom:calc(var(--appbar-h) + 28px);
    padding-bottom:calc(var(--appbar-h) + env(safe-area-inset-bottom) + 28px);
  }

  .appbar{
    position:fixed;
    left:12px;
    right:12px;
    bottom:10px;
    z-index:9000;
    height:var(--appbar-h);
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(0, 1fr);
    align-items:center;
    gap:8px;
    padding:10px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(10,12,16,.78);
    box-shadow:0 18px 45px rgba(0,0,0,.55);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }

  .footer{
    margin-bottom:calc(var(--appbar-h) + 12px);
    margin-bottom:calc(var(--appbar-h) + env(safe-area-inset-bottom) + 12px);
  }

  .appbar__item{
    position:relative;
    min-width:0;
    height:100%;
    border-radius:18px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:rgba(234,240,255,.78);
    text-decoration:none;
    transition:background .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
  }

  .appbar__item:hover{
    background:rgba(255,255,255,.06);
    color:#fff;
  }

  .appbar__ico{
    font-size:20px;
    color:#e98743;
    line-height:1;
  }

  .appbar__txt{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
    font-weight:900;
    letter-spacing:0;
  }

  .appbar__item.is-active{
    background:rgba(46,229,157,.14);
    border:1px solid rgba(46,229,157,.22);
    box-shadow:0 0 0 1px rgba(46,229,157,.12), 0 0 22px rgba(46,229,157,.12);
    color:rgba(234,240,255,.95);
  }

  .appbar__item--fab{
    transform:translateY(-14px);
    background:#e98743;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 18px 45px rgba(0,0,0,.55), 0 0 34px rgba(46,229,157,.22);
    color:#071016;
  }

  .appbar__item--fab .appbar__ico,
  .appbar__item--fab .appbar__txt{
    color:#071016;
  }

  .appbar__item--fab .appbar__ico{
    font-size:24px;
  }

  .appbar__badge{
    position:absolute;
    top:8px;
    right:10px;
    min-width:18px;
    height:18px;
    padding:0 6px;
    border-radius:999px;
    background:#e98743;
    color:#071016;
    font-size:11px;
    font-weight:1000;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}

/* Правові посилання внизу кожної сторінки маркету (кольори — від теми сторінки) */
.mkt-legal{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px; margin:40px auto 0; padding:18px 16px 22px; max-width:1200px;
  border-top:1px solid currentColor; border-top-color:color-mix(in srgb, currentColor 14%, transparent); font-size:13px; opacity:.75; }
.mkt-legal a{ color:inherit; text-decoration:none; font-weight:600; }
.mkt-legal a:hover{ text-decoration:underline; }
.mkt-legal span{ opacity:.8; }
