.shared-footer {
  padding: 34px var(--page-x, 2.35vw) 72px;
  color: #fff;
  text-align: left;
  background: transparent;
}

/* На внутренних страницах футер живёт в финальном блоке и берёт его фон. */
.final-cta > .shared-footer {
  width: 100%;
  align-self: stretch;
  margin-top: clamp(56px, 8vw, 120px);
  position: relative;
  z-index: 1;
}

.shared-footer--overlay {
  position: absolute;
  z-index: 24;
  right: 0;
  bottom: 0;
  left: 0;
  padding-bottom: 22px;
  background: transparent;
}

.shared-footer__panel {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 28px;
  align-items: center;
  padding: 16px 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius, 28px);
  background: rgba(8, 8, 8, .78);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.shared-footer__legal {
  min-height: 52px;
  display: grid;
  grid-template-rows: 21px 17px 15px;
  align-content: center;
  row-gap: 5px;
  color: rgba(255,255,255,.64);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.shared-footer__legal strong { color: #fff; font-size: 17px; font-weight: 300; line-height: 1.2; }
.shared-footer__legal > span { color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.35; }
.shared-footer__legal > div { margin: 0; font-size: 10px; line-height: 1.35; }
.shared-footer__legal a { color: rgba(255,255,255,.84); transition: color .2s ease; }
.shared-footer__legal a:hover { color: #fff; }
.shared-footer__copyright { display: none; }

.shared-footer__item {
  min-height: 48px;
  display: grid;
  grid-template-rows: 21px 17px 15px;
  align-content: center;
  row-gap: 5px;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  text-transform: uppercase;
}

.shared-footer__item strong { font-size: 17px; font-weight: 300; line-height: 1.2; }
.shared-footer__item span { margin: 0; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.35; }
.shared-footer__item span + span { color: rgba(255,255,255,.64); font-size: 11px; line-height: 1.35; }
.shared-footer__item--contacts strong { font-size: 17px; line-height: 1.2; }

.shared-footer__socials { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.shared-footer__social-area { align-self: start; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 8px; }
.shared-footer__hours { color: rgba(255,255,255,.68); font-size: 13px; letter-spacing: .04em; line-height: 1.35; text-align: center; text-transform: uppercase; white-space: nowrap; }
.shared-footer__socials a { width: 28px; height: 28px; display: grid; place-items: center; opacity: .95; transition: opacity .2s ease, transform .2s ease; }
.shared-footer__socials a:hover { opacity: .68; transform: translateY(-2px); }
.shared-footer__socials svg { width: 25px; height: 25px; fill: currentColor; }

@media (max-width: 1180px) {
  .shared-footer__panel { grid-template-columns: 1.2fr 1fr 1fr auto; }
  .shared-footer__item--contacts { display: none; }
}

@media (max-width: 900px) {
  .shared-footer { padding: 22px 18px 52px; }
  .shared-footer--overlay { padding: 0 12px 10px; }
  .shared-footer__panel {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(6px, 2.5vw, 12px);
    row-gap: 0;
    padding: 10px 16px;
  }
  .shared-footer__legal { font-size: 10px; }
  .shared-footer__legal { min-height: 35px; grid-template-rows: 17px 14px; row-gap: 4px; }
  .shared-footer__legal strong { color: rgba(255,255,255,.95); font-size: 14px; }
  .shared-footer__legal > span { color: rgba(255,255,255,.72); font-size: 10px; }
  .shared-footer__legal > div { display: none; }
  .shared-footer__copyright {
    display: block;
    margin: 8px 16px 0;
    color: rgba(255,255,255,.56);
    font-size: 9px;
    letter-spacing: .04em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
  }
  .shared-footer__copyright a { color: inherit; text-decoration: none; }
  .shared-footer__item { display: none; }
  .shared-footer__hours { display: none; }
  .shared-footer__social-area { align-self: center; justify-content: center; gap: 0; padding-top: 0; }
  .shared-footer__socials { gap: 8px; }
  .shared-footer__socials a {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .95;
    transition: none;
  }
  .shared-footer__socials a:hover { opacity: .95; transform: none; }
  .shared-footer__socials svg { width: 18px; height: 18px; }
  .shared-footer__socials a:first-child svg { width: 20px; height: 20px; }
}

@media (max-width: 620px) {
  .shared-footer { padding: 18px 12px 42px; }
  .shared-footer--overlay { padding: 0 12px 10px; }
  .shared-footer__panel { padding: 10px 12px; border-radius: 22px; }
  .shared-footer__legal { font-size: 9px; }
  .shared-footer__copyright { margin-right: 12px; margin-left: 12px; }
  .shared-footer__socials { gap: 8px; }
  .shared-footer__socials a { width: 22px; height: 22px; }
  .shared-footer__socials svg { width: 18px; height: 18px; }
  .shared-footer__socials a:first-child svg { width: 20px; height: 20px; }
}
