html:root body footer.brand-footer {
  --bf-text: #b6b6b6;
  --bf-muted: #b6b6b6;
  --bf-amber: #ff682c;
  display: block;
  padding: clamp(56px, 6vw, 104px) clamp(24px, 5.6vw, 112px) 56px;
  background: #0b161d;
  color: var(--bf-text);
  border: 0;
  font: 400 15px/1.45 'Inter', 'Inter', Arial, sans-serif;
}
html:root body footer.brand-footer > .bf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.48fr) minmax(0, 1fr);
  grid-template-areas: "contact brand map" "directory directory directory" "note note note";
  align-items: center;
  gap: clamp(42px, 4.8vw, 84px) clamp(20px, 3.4vw, 68px);
  max-width: 1580px;
  margin: 0 auto;
  color: inherit;
  font-size: inherit;
}
html:root body footer.brand-footer > .bf-layout:not(:has(> .stock-date)) { grid-template-areas: "contact brand map" "directory directory directory"; }
.brand-footer :where(h2, p, address) { margin: 0; font: inherit; letter-spacing: normal }
.brand-footer .bf-brand {
  grid-area: brand;
  justify-self: center;
  display: grid;
  justify-items: center;
  width: min(100%, 530px);
  gap: clamp(13px, 1.4vw, 25px);
}
html:root body .brand-footer .bf-brand img { width: 100%; max-width: none; height: auto; display: block }
html:root body .brand-footer .bf-brand:hover { text-decoration: none }
.brand-footer .bf-signature {
  color: #b6b6b6;
  font: 400 clamp(30px, 3vw, 54px)/1.1 'PT Serif', 'PT Serif', Georgia, serif;
  text-align: center;
  letter-spacing: -.038em;
}
.brand-footer .bf-contacts { grid-area: contact; display: grid; justify-items: start; align-content: center; min-width: 0 }
.brand-footer .bf-contacts h2, .brand-footer .bf-navigation h2 {
  font: 600 14px/1.35 'Inter', 'Inter', Arial, sans-serif;
  letter-spacing: .01em;
  color: var(--bf-text);
  margin: 0 0 12px;
}
.brand-footer .bf-phone, .brand-footer .bf-contact-page {
  color: var(--bf-text);
  font: 400 clamp(24px, 2vw, 37px)/1.25 'PT Serif', 'PT Serif', Georgia, serif;
  letter-spacing: -.028em;
}
.brand-footer .bf-email { margin-top: 6px; font-size: clamp(15px, 1.15vw, 20px); color: var(--bf-muted) }
.brand-footer .bf-socials { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 9px }
html:root body .brand-footer .bf-social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  color: #b6b6b6;
  border: 1px solid #8b9ea14d;
  border-radius: 50%;
  background: #203139;
}
.brand-footer .bf-social svg { display: block; width: 25px; height: 25px }
html:root body .brand-footer .bf-vk:hover { background: #245c93 }
html:root body .brand-footer .bf-whatsapp:hover { background: #226648 }
html:root body .brand-footer .bf-telegram:hover { background: #24688a }
html:root body .brand-footer .bf-subscribe {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bf-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.brand-footer .bf-map { grid-area: map; min-width: 0; }
.brand-footer .bf-map-inline { display: block; width: 100%; height: clamp(180px, 14vw, 230px); border: 0; border-radius: 5px; background: #202d3c }
.brand-footer .bf-map-links { display: flex; gap: 6px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.brand-footer .bf-map-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--bf-text); background: none; border: 0; font: 500 14px/1.4 'Inter', Arial, sans-serif; cursor: pointer }
.brand-footer .bf-map-toggle:hover { color: #b6b6b6; text-decoration: underline; text-underline-offset: .18em }
.brand-footer .bf-map address { margin: 13px 0 1px; color: var(--bf-text); font: 400 15px/1.45 'Inter', Arial, sans-serif }
.brand-footer .bf-provider, .brand-footer .bf-dialog-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bf-amber); font: 500 14px/1.4 'Inter', Arial, sans-serif }
.brand-footer .bf-directory { grid-area: directory; display: flex; align-items: start; gap: 4%; }
.brand-footer .bf-catalog { flex: 0 0 24%; color: var(--bf-text); font: 400 clamp(25px, 2.2vw, 38px)/1.15 'PT Serif', Georgia, serif; letter-spacing: -.035em }
.brand-footer .bf-navigation { flex: 1; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: clamp(18px, 3.4vw, 68px); min-width: 0; }
.brand-footer .bf-navigation > * { display: flex; flex-direction: column; align-items: start }
.brand-footer .bf-navigation h2 { margin-bottom: 8px }
.brand-footer .bf-navigation a { display: block; width: fit-content; padding: 5px 0; color: var(--bf-muted); font: 400 14px/1.45 'Inter', Arial, sans-serif; }
.brand-footer .stock-date { grid-area: note; margin: -13px 0 0; color: #b6b6b6; font: 12px/1.45 'Inter', Arial, sans-serif }
html:root body .brand-footer :is(a, button):focus-visible { outline: 2px solid #ff682c; outline-offset: 3px }
html:root body .brand-footer :is(.bf-subscribe, .bf-email, .bf-phone, .bf-catalog, .bf-provider, .bf-navigation a):hover {
  color: #b6b6b6; text-decoration: underline; text-underline-offset: .18em;
}
.brand-footer .bf-dialog {
  box-sizing: border-box; width: min(900px, calc(100% - 32px)); max-width: none; max-height: 92vh;
  max-height: 92dvh; overflow: auto; border: 1px solid #3e5059; border-radius: 8px;
  padding: 0; margin: auto; background: #12212a; color: var(--bf-text);
}
.brand-footer .bf-dialog:not([open]) { display: none }
.brand-footer .bf-dialog::backdrop { background: #04090dde }
.brand-footer .bf-dialog-head, .brand-footer .bf-dialog-foot { padding: 12px clamp(14px, 2vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.brand-footer .bf-dialog-head h2 { font: 400 clamp(19px, 2.2vw, 28px)/1.2 'PT Serif', Georgia, serif; }
.brand-footer .bf-dialog-head button { min-height: 44px; padding: 8px 12px; color: inherit; background: transparent; border: 1px solid #849499; border-radius: 4px; font: inherit; cursor: pointer }
.brand-footer .bf-interactive iframe { display: block; width: 100%; height: min(55vh, 520px); height: min(55dvh, 520px); border: 0; background: #e6e6df }
.brand-footer .bf-dialog-foot address { margin: 0 }
@media (max-width: 960px) {
  html:root body footer.brand-footer > .bf-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand brand" "contact map" "directory directory" "note note";
  }
html:root body footer.brand-footer > .bf-layout:not(:has(> .stock-date)) { grid-template-areas: "brand brand" "contact map" "directory directory"; }
  .brand-footer .bf-brand { width: min(68%, 410px) }
  .brand-footer .bf-navigation { gap: 20px }
  .brand-footer .bf-catalog { flex-basis: 19% }
}
@media (max-width: 620px) {
  html:root body footer.brand-footer { padding: 44px 22px 70px }
  html:root body footer.brand-footer > .bf-layout {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "contact" "map" "directory" "note";
    gap: 36px; max-width: 460px;
  }
html:root body footer.brand-footer > .bf-layout:not(:has(> .stock-date)) { grid-template-areas: "brand" "contact" "map" "directory"; }
  .brand-footer .bf-brand { width: min(94%, 355px); gap: 14px }
  .brand-footer .bf-contacts { justify-items: center; text-align: center }
  .brand-footer .bf-contacts h2 { margin-bottom: 7px }
  .brand-footer .bf-socials { margin: 14px 0 0 }
  .brand-footer .bf-phone { font-size: 29px }
  .brand-footer .bf-directory { display: grid; gap: 19px }
  .brand-footer .bf-navigation { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px }
  .brand-footer .bf-navigation a { min-height: 36px; display: flex; align-items: center }
  .brand-footer .stock-date { margin: 0 }
}


/* Адаптация готового подвала к нативному шаблону Битрикс */
html:root body footer.brand-footer { margin:0; clear:both; box-sizing:border-box; }
html:root body footer.brand-footer *, html:root body footer.brand-footer *::before, html:root body footer.brand-footer *::after { box-sizing:border-box; }
html:root body footer.brand-footer a { text-decoration:none; }
html:root body .brand-footer .bf-navigation h2 a { padding:0; font:inherit; color:inherit; min-height:0; }
html:root body .brand-footer h2 { text-transform:none; }
html:root body .brand-footer .bf-contacts h2, html:root body .brand-footer .bf-navigation h2 { font-family:'PT Serif',Georgia,serif; }
html:root body .brand-footer .bf-phone { font-family:'Inter',Arial,sans-serif; font-style:normal; }
html:root body .brand-footer .bf-social img { display:block; width:24px; height:24px; object-fit:contain; }
html:root body .brand-footer .bf-social { flex-shrink:0; }
html:root body .brand-footer .bf-contact-page { display:inline-flex; min-height:44px; align-items:center; padding:0; background:none; border:0; }
html:root body .brand-footer .bf-dialog { position:fixed; inset:0; }
html:root body .brand-footer .bf-dialog[open] { display:block; }
html:root body .brand-footer .bf-dialog::backdrop { background:#04090dde; }
html:root body .brand-footer .footer-bottom { max-width:1580px; margin:44px auto 0; padding:0; background:transparent; border:0; color:#b6b6b6; }
html:root body .brand-footer .footer-bottom > .container { width:100%; min-width:0; max-width:100%; padding:0; margin:0; }
html:root body .brand-footer .footer-bottom-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; }
html:root body .brand-footer .footer-bottom-copyright { font:400 13px/1.5 'Inter',Arial,sans-serif; }
html:root body .brand-footer .footer-bottom-paysystems { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:12px; }
html:root body .brand-footer .paysystem-icon { margin:0; }
@media(max-width:620px) { html:root body .brand-footer .footer-bottom-row { flex-direction:column; align-items:flex-start; } html:root body .brand-footer .bf-navigation a { min-height:44px; } }
