/* Slotozal brand logo fit */
.brand-card img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.b8d58-logo { max-height: 36px; width: auto; }

/* Locked first screen: no page scroll until SEO opens */
html,
body {
  overflow: hidden;
  height: 100%;
}
html.seo-open {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  scroll-behavior: auto;
}
body.seo-open,
body.has-together-context.seo-open {
  overflow: visible;
  height: auto;
}
body.has-together-context {
  overflow-y: hidden;
}
body.seo-open .splash {
  overflow-anchor: none;
}
body.seo-open .partner-cloud,
body.seo-open .hero-offer,
body.seo-open .offer,
body.seo-open .focus-card {
  touch-action: pan-y;
}

/* SEO panel hidden until «Подробная информация»; then under splash */
#tgCtxPanel {
  display: none;
  background: #05070c;
  border-top: 1px solid #f0c45d;
}
body.seo-open #tgCtxPanel {
  display: block;
}

/* Bottom dock button - above ticker/footer, design-matched */
.details-dock {
  position: absolute;
  z-index: 32;
  left: 0;
  right: 0;
  bottom: calc(var(--footer-h, 58px) + 6px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.details-dock__btn {
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(255, 240, 164, 0.45);
  border-radius: 999px;
  padding: 0.85rem 1.55rem;
  font: 800 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2c161d;
  background: linear-gradient(90deg, #fff0a4, #f8b5c9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.details-dock__btn:hover,
.details-dock__btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  outline: none;
}
body.seo-open .details-dock__btn {
  background: rgba(12, 6, 11, 0.88);
  color: #fff1c0;
  border-color: rgba(255, 220, 146, 0.45);
}

#tgCtxPanel .cta-inline { margin: 16px 0 20px; }
#tgCtxPanel .cta-inline a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff0a4, #f8b5c9);
  color: #2c161d !important;
  font-weight: 800;
  text-decoration: none !important;
}
#tgCtxPanel .note-date {
  color: #f0c45d;
  font-size: 13px;
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  .details-dock {
    bottom: 72px;
  }
  .details-dock__btn {
    font-size: 10px;
    padding: 0.75rem 1.2rem;
  }
}

/* Footer nav on splash */
.splash footer .site-footer-nav{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 8px;font-size:13px}
.splash footer .site-footer-nav a{color:#f0c45d;text-decoration:none}
.splash footer .site-copyright{margin:8px 0 0;font-size:12px;opacity:.75}
.seo-author{font-size:13px;opacity:.85;margin:0 0 12px}
.seo-author a{color:#f0c45d}

/* Legal nav under SEO — only after «Подробная информация» */
.page-footer {
  display: none;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  box-sizing: border-box;
  color: rgba(243, 235, 224, 0.85);
  font-size: 13px;
  line-height: 1.45;
  border-top: 1px solid rgba(240, 196, 93, 0.2);
  background: #050104;
}
body.seo-open .page-footer {
  display: block;
}
.page-footer .site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
}
.page-footer .site-footer-nav a {
  color: #f0c45d;
  text-decoration: none;
}
.page-footer .site-footer-nav a:hover {
  text-decoration: underline;
}
.page-footer .site-copyright {
  margin: 0 0 8px;
  font-weight: 600;
  color: rgba(243, 235, 224, 0.9);
}
.page-footer__warn {
  margin: 0;
  opacity: 0.7;
  font-size: 12px;
}
