/**
 * Общий подвал сайта — один в один как на главной странице.
 *
 * Подключается на лендингах, у которых свой CSS (Библиотека, ПАРАЗИТам.НЕТ,
 * Женские диагнозы). Их стили писались под собственный подвал с классом
 * .site-footer / .brand-footer и на общий [mb_footer] не действовали.
 *
 * Значения скопированы из assets/css/theme.css; переменные (--gold и т.п.)
 * подставлены литералами — у каждого лендинга свой :root, и полагаться
 * на него нельзя.
 *
 * Селектор footer.mbb-site-footer намеренно не трогает собственный
 * подвал «Паразитов» (footer.site-footer).
 */

/* ===== ПОДВАЛ ===== */
footer.mbb-site-footer {
  background: #050f0a;
  padding: 60px 40px 30px;
  text-align: center;
}

footer.mbb-site-footer .footer-name {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 6px;
}

footer.mbb-site-footer .footer-tagline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-style: italic;
  color: #c9a84c;
  margin-bottom: 40px;
}

footer.mbb-site-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

footer.mbb-site-footer .social-btn {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  border-radius: 50%;
}

footer.mbb-site-footer .social-btn svg { width: 22px; height: 22px; display: block; }

footer.mbb-site-footer .social-btn:hover {
  border-color: #c9a84c;
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.1);
}

footer.mbb-site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

footer.mbb-site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

footer.mbb-site-footer .footer-links a:hover { color: #c9a84c; }

footer.mbb-site-footer .footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ===== */
.float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-tg {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #229ed9, #1a8bc4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(34, 158, 217, 0.5);
  transition: all 0.3s ease;
  animation: mbbFloat 3s ease infinite;
}

.float-tg:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(34, 158, 217, 0.7); }

.float-record {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #1a1a1a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.float-record:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201, 168, 76, 0.6); }

@keyframes mbbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .float-tg { animation: none; }
}

/* ===== АДАПТИВ (брейкпоинты как на главной) ===== */
@media (max-width: 900px) {
  .float-btn { bottom: 16px; right: 16px; }
}

@media (max-width: 768px) {
  footer.mbb-site-footer .footer-name { font-size: 22px; }
  footer.mbb-site-footer .footer-links { gap: 14px; }
  footer.mbb-site-footer .footer-links a { font-size: 10px; }
  .float-tg { width: 48px; height: 48px; font-size: 20px; }
  .float-record { font-size: 9px; padding: 10px 16px; }
}

@media (max-width: 480px) {
  .float-record { display: none; }
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ НА ЛЕНДИНГАХ
   На лендингах не грузится theme.css, где лежат эти стили,
   поэтому крошки выводились голым нумерованным списком.
   ============================================================ */
.mbb-crumbs { max-width: 1220px; margin: 0 auto; padding: 96px 24px 0; }
.mbb-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 12px; letter-spacing: .04em;
}
.mbb-crumbs li { display: flex; align-items: center; gap: 8px; }
.mbb-crumbs li::before { content: none; }
.mbb-crumbs li + li::before { content: '›'; opacity: .45; }
.mbb-crumbs a { color: #c9a84c; text-decoration: none; }
.mbb-crumbs a:hover { text-decoration: underline; }
.mbb-crumbs span[aria-current] { opacity: .7; }

/* ============================================================
   ШАПКА ЛЕНДИНГОВ — ВО ВСЮ ШИРИНУ
   Узкая «плавающая» шапка сжимала меню, и пункты («ОБО МНЕ»,
   «БЛОК ХУТТА») ломались на две строки.
   ============================================================ */
.sticky-header { top: 0; padding: 0; }
.sticky-header .header-inner {
  max-width: 100%;
  height: 62px;
  padding: 0 28px;
  border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
  background: rgba(14, 35, 24, .95);
  box-shadow: 0 6px 24px rgba(20, 30, 20, .22);
}
.sticky-header .header-nav {
  display: flex; flex-wrap: nowrap;
  gap: 20px;
  white-space: nowrap;      /* пункты меню не переносятся */
  overflow: visible;
}
.sticky-header .header-nav a { white-space: nowrap; }

/* ============================================================
   ВЫПАДАЮЩЕЕ ПОДМЕНЮ НА ЛЕНДИНГАХ
   Копия правил из theme.css: у лендингов свой CSS, и без этих
   стилей пункты подменю вываливались вторым рядом под шапкой.
   ============================================================ */
.header-nav .nav-item.has-submenu { position: relative; display: inline-flex; align-items: center; }
.header-nav .nav-item.has-submenu > .nav-parent { display: inline-flex; align-items: center; gap: 4px; }
.header-nav .submenu-caret { font-size: 10px; opacity: .7; transition: transform .2s ease; }
.header-nav .nav-item.has-submenu:hover .submenu-caret,
.header-nav .nav-item.has-submenu:focus-within .submenu-caret { transform: rotate(-180deg); opacity: 1; }

.header-nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: rgba(14, 35, 24, .98);
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 12px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 900;
}
.header-nav .nav-item.has-submenu:hover .submenu,
.header-nav .nav-item.has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header-nav .submenu a {
  display: block;
  padding: 10px 22px;
  color: #f5efe1;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.header-nav .submenu a:hover { background: rgba(201, 168, 76, .12); color: #c9a84c; }

@media (max-width: 1100px) {
  .sticky-header .header-inner { padding: 0 16px; gap: 14px; }
  .sticky-header .header-nav { gap: 12px; font-size: 12px; }
  .mbb-crumbs { padding-top: 84px; }
}
@media (max-width: 768px) {
  .mbb-crumbs { padding: 78px 16px 0; font-size: 11px; }
}

/* Фирменные цветные логотипы соцсетей в подвале.
   Рамка и подложка убраны — логотип сам по себе узнаваем. */
.social-btn.is-brand {
  border: 0;
  background: transparent;
  width: 44px; height: 44px;
  padding: 0;
  transition: transform .25s ease, filter .25s ease;
}
.social-btn.is-brand svg { width: 100%; height: 100%; display: block; }
.social-btn.is-brand:hover {
  background: transparent;
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
