.bst-footer {
  --bf-gold: #f3cb32;
  --bf-ivory: #f6f7ee;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 4%, #1b5546 0, transparent 48%), linear-gradient(130deg, #042b20, #0b3c2d 54%, #03291f);
  color: var(--bf-ivory);
  border-radius: 28px 28px 0 0;
  border-top: 2px solid #edc647;
  font-family: Manrope, Arial, sans-serif;
}
.bst-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  pointer-events: none;
  background: linear-gradient(105deg, #96701b, #ffe899 24%, #c09523 45%, #fff9cb 63%, #ebb82e 82%, #916517);
  box-shadow: 0 2px 18px #e8c43c35;
}
.bst-footer::after {
  content: "";
  position: absolute;
  width: 35%;
  height: 5px;
  top: 0;
  left: -40%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #fffced, transparent);
}
.bst-footer:hover::after,
.bst-footer:focus-within::after { animation: bst-footer-glint 1.6s ease-out; }
@keyframes bst-footer-glint {
  0% { left: -40%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}
.bst-footer .bst-footer__wrap {
  width: min(1320px, calc(100% - 64px));
  margin: auto;
  padding: 30px 0 18px;
}
.bst-footer .bst-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid #d7c77455;
}
.bst-footer h2 {
  margin: 0;
  color: var(--bf-ivory);
  font: 600 clamp(23px, 2.5vw, 35px)/1.3 Unbounded, Manrope, sans-serif;
  letter-spacing: -.045em;
}
.bst-footer h2 span { color: var(--bf-gold); }
.bst-footer .bst-footer__top p {
  max-width: 380px;
  margin: 0;
  color: #e3ecdf;
  font-size: 15px;
  line-height: 1.55;
}
.bst-footer .bst-footer__grid {
  display: grid;
  grid-template-columns: .95fr .9fr .85fr 1.4fr;
  gap: 24px;
  padding: 24px 0 0;
}
.bst-footer .bst-footer__grid > * { min-width: 0; }
.bst-footer .bst-footer__grid > * + * {
  border-left: 1px solid #d7c77435;
  padding-left: 24px;
}
.bst-footer .bst-footer__logo {
  display: block;
  max-width: 235px;
  box-sizing: border-box;
  padding: 17px 13px;
  background: linear-gradient(135deg, #eff4d449, #cdddb31a 60%, #f5edc52b);
  border: 1px solid #dbc66c9c;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 #ffffff42, 0 6px 18px #001e1b25;
  backdrop-filter: blur(8px);
  transition: box-shadow .2s, transform .2s;
}
.bst-footer .bst-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 0 #f8f7dd85);
}
.bst-footer .bst-footer__brand p {
  margin: 13px 0 0;
  color: #d7e2d8;
  font-size: 13px;
  line-height: 1.8;
}
.bst-footer h3 {
  margin: 0 0 10px;
  color: var(--bf-ivory);
  font: 800 18px/1.35 Manrope, Arial, sans-serif;
}
.bst-footer .bst-footer__nav a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 0;
  color: #e3eadd;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s, transform .2s;
}
.bst-footer .bst-footer__phone {
  display: inline-block;
  color: var(--bf-ivory);
  font-size: clamp(20px, 1.85vw, 27px);
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.bst-footer .bst-footer__contacts p {
  margin: 4px 0 12px;
  color: #d7e2d8;
  font-size: 12px;
  line-height: 1.6;
}
.bst-footer .bst-footer__actions { display: flex; gap: 8px; }
.bst-footer .bst-footer__button,
.bst-footer .bst-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  color: #fff;
  border: 1px solid #ffffff28;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff3d, 0 4px 10px #001e1b25;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.bst-footer .bst-footer__button {
  flex: 1;
  min-height: 47px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.bst-footer .bst-footer__button--call { background: linear-gradient(145deg, #ef7600, #c34500); }
.bst-footer .bst-footer__button--max { background: linear-gradient(145deg, #994aef, #621bc0); }
.bst-footer .bst-footer__channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}
.bst-footer .bst-footer__social {
  min-height: 44px;
  padding: 7px 5px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
}
.bst-footer .bst-footer__social--telegram { background: linear-gradient(145deg, #17a4e4, #0877b6); }
.bst-footer .bst-footer__social--wa { background: linear-gradient(145deg, #16b34d, #08742d); }
.bst-footer .bst-footer__social--mail { background: linear-gradient(145deg, #faf8ed, #dedfcc); color: #153c2d; }
.bst-footer .bst-footer__social small {
  display: block;
  font-size: 8px;
  line-height: 1.5;
  font-weight: 500;
}
.bst-footer .bst-footer__social[aria-disabled] { box-shadow: none; cursor: default; }
.bst-footer .bst-footer__button svg,
.bst-footer .bst-footer__social svg,
.bst-footer .bst-footer__up svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bst-footer .bst-footer__social svg { width: 17px; height: 17px; flex-basis: 17px; }
.bst-footer .bst-footer__scene {
  display: grid;
  grid-template-columns: .85fr 1.7fr;
  align-items: end;
  gap: 15px;
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7c77455;
}
.bst-footer .bst-footer__wordmark {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  font: 900 clamp(40px, 5.4vw, 80px)/1.1 "Arial Black", Unbounded, Manrope, sans-serif;
  letter-spacing: -.055em;
  color: #fff2ba;
  -webkit-text-stroke: 1px #efd07c;
  text-shadow: 0 1px 0 #e0bb57, 0 2px 0 #c49c3b, 0 3px 0 #a17a20, 0 4px 0 #896218, 2px 6px 1px #06291d, 0 9px 14px #001a16b3;
  white-space: nowrap;
}
.bst-footer .bst-footer__scene img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 245px;
  object-fit: contain;
  object-position: right bottom;
  margin: 0;
}
.bst-footer .bst-footer__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  color: #dce5da;
  font-size: 12px;
  line-height: 1.6;
}
.bst-footer .bst-footer__bottom a { color: inherit; text-underline-offset: 4px; }
.bst-footer .bst-footer__up {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-left: auto;
  color: var(--bf-gold);
  border: 1px solid var(--bf-gold);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.bst-footer :is(a, button):focus-visible { outline: 3px solid #ffda4f; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .bst-footer .bst-footer__button:hover,
  .bst-footer a.bst-footer__social:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 0 0 2px #eace5c, 0 6px 18px #001d1a70; }
  .bst-footer .bst-footer__logo:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--bf-gold); }
  .bst-footer .bst-footer__nav a:hover { color: var(--bf-gold); transform: translateX(3px); }
  .bst-footer .bst-footer__up:hover { background: #e7c83c20; transform: translateY(-3px); }
}
.bst-footer .bst-footer__button:active,
.bst-footer a.bst-footer__social:active { transform: translateY(1px); }
@media (max-width: 1100px) {
  .bst-footer .bst-footer__wrap { width: calc(100% - 40px); }
  .bst-footer .bst-footer__grid { gap: 17px; }
  .bst-footer .bst-footer__grid > * + * { padding-left: 17px; }
  .bst-footer .bst-footer__social { flex-direction: column; text-align: center; }
  .bst-footer .bst-footer__top p { max-width: 300px; font-size: 13px; }
}
@media (max-width: 850px) {
  .bst-footer .bst-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .bst-footer .bst-footer__brand { grid-column: 1; grid-row: 1; }
  .bst-footer .bst-footer__contacts { grid-column: 2; grid-row: 1; }
  .bst-footer .bst-footer__nav { border-left: 0; padding-left: 0; }
  .bst-footer .bst-footer__social { flex-direction: row; }
  .bst-footer .bst-footer__top { align-items: flex-start; flex-direction: column; gap: 7px; }
  .bst-footer .bst-footer__top p { max-width: none; }
  .bst-footer .bst-footer__scene { grid-template-columns: .8fr 1.5fr; }
  .bst-footer .bst-footer__wordmark { font-size: 5vw; }
}
@media (max-width: 600px) {
  .bst-footer { border-radius: 22px 22px 0 0; }
  .bst-footer .bst-footer__wrap { width: calc(100% - 32px); padding-top: 25px; padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
  .bst-footer h2 { font-size: clamp(21px, 6vw, 30px); }
  .bst-footer .bst-footer__top { padding-bottom: 16px; }
  .bst-footer .bst-footer__grid { gap: 17px; padding-top: 18px; }
  .bst-footer .bst-footer__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
  .bst-footer .bst-footer__logo { flex: 0 0 45%; max-width: 175px; padding: 14px 9px; border-radius: 13px; }
  .bst-footer .bst-footer__brand p { margin: 0; font-size: 11px; line-height: 1.65; }
  .bst-footer .bst-footer__nav { border-left: 0; padding-left: 0; }
  .bst-footer h3 { font-size: 16px; margin-bottom: 7px; }
  .bst-footer .bst-footer__nav a { font-size: 13px; padding: 6px 0; min-height: 32px; box-sizing: border-box; }
  .bst-footer .bst-footer__contacts { grid-row: auto; grid-column: 1 / -1; border-left: 0; padding: 15px 0 0; border-top: 1px solid #d7c77435; }
  .bst-footer .bst-footer__phone { font-size: 25px; }
  .bst-footer .bst-footer__contacts p { font-size: 12px; }
  .bst-footer .bst-footer__social { font-size: 12px; }
  .bst-footer .bst-footer__scene { position: relative; grid-template-columns: 1fr; gap: 6px; margin-top: 16px; padding-bottom: 10px; }
  .bst-footer .bst-footer__wordmark { font-size: 12vw; margin: 0; }
  .bst-footer .bst-footer__scene img { max-height: none; }
  .bst-footer .bst-footer__bottom { position: relative; flex-wrap: wrap; gap: 7px 15px; padding-right: 45px; font-size: 10px; min-height: 40px; }
  .bst-footer .bst-footer__bottom > span { width: 100%; }
  .bst-footer .bst-footer__up { position: absolute; right: 0; top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bst-footer::after { display: none; }
  .bst-footer * { animation: none !important; transition: none !important; }
}
.bst-site:has(.bst-footer) ~ .bst-platform-credit {
  padding: 12px 24px !important;
  background: #03291f !important;
  color: #dce5da !important;
}
.bst-site:has(.bst-footer) ~ .bst-platform-credit:empty { display: none; }
.bst-site:has(.bst-footer) ~ .bst-platform-credit a { color: inherit; }
/* The footer reserves space for the fixed mobile contact bar. */
.bst-site > .bst-universal:has(> .bst-footer) { padding-bottom: 0; }
@media (min-width: 601px) and (max-width: 767px) {
  .bst-footer .bst-footer__wrap { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
