/* TradeCore V2 — premium fintech layout & polish */

:root {
  --tc-accent: #4f7cff;
  --tc-accent-bright: #6b93ff;
  --tc-accent-glow: rgba(79, 124, 255, 0.4);
  --tc-alpha: #16d985;
  --tc-profit: #16d985;
  --tc-bg-base: #030406;
  --tc-bg-elevated: #0a0e14;
  --tc-bg-card: rgba(14, 20, 32, 0.88);
  --tc-border: rgba(255, 255, 255, 0.08);
  --tc-radius-xl: 24px;
  --tc-shadow-glow: 0 0 60px rgba(79, 124, 255, 0.12);
}

/* —— Ambient background —— */
.tc-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.tc-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.tc-bg__orb--1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(79, 124, 255, 0.18);
}

.tc-bg__orb--2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: -80px;
  background: rgba(22, 217, 133, 0.1);
}

.tc-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
}

body.page-home .container,
body.page-home .header,
body.page-home .partners-bar {
  position: relative;
  z-index: 1;
}

body.page-home {
  background: var(--tc-bg-base) !important;
}

/* —— Header —— */
body.page-home .header {
  background: rgba(3, 4, 6, 0.75) !important;
  border-bottom: 1px solid var(--tc-border) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

body.page-home .header-main {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

body.page-home .nav--desktop {
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid var(--tc-border);
}

body.page-home .nav-item--link {
  padding: 8px 16px !important;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 0.2s, color 0.2s;
}

body.page-home .nav-item--link:hover {
  background: rgba(79, 124, 255, 0.15);
  color: #fff !important;
}

.tc-header-cta {
  margin-left: 12px;
  padding: 10px 20px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* —— Hero zone —— */
.tc-hero-zone {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body.page-home .home-hero {
  max-width: none;
  padding: 32px 0 20px;
  text-align: left;
}

body.page-home .home-hero__inner {
  max-width: 640px;
}

body.page-home .hero-title {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  text-align: left;
  line-height: 1.08 !important;
}

body.page-home .hero-subtitle {
  text-align: left;
  margin-left: 0 !important;
}

body.page-home .home-hero__actions {
  justify-content: flex-start;
}

/* Feature pills */
.tc-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto 28px;
  max-width: 1200px;
  padding: 0 20px;
}

.tc-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tc-text-muted, #9ca3af);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tc-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.tc-feature svg {
  width: 16px;
  height: 16px;
  color: var(--tc-alpha);
  flex-shrink: 0;
}

/* Trust strip v2 */
body.page-home .home-trust {
  max-width: none;
  margin: 0 0 32px;
  gap: 14px;
}

body.page-home .home-trust__item {
  position: relative;
  padding: 20px 16px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  overflow: hidden;
}

body.page-home .home-trust__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tc-accent), var(--tc-alpha));
  opacity: 0.7;
}

body.page-home .home-trust__value {
  font-size: 1.5rem !important;
}

/* —— Strategy + Performance layout —— */
body.page-home .content-layout {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px;
  gap: 24px !important;
}

@media (min-width: 1024px) {
  body.page-home .content-layout {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    align-items: start !important;
  }

  body.page-home .trader-card,
  body.page-home .performance-section {
    flex: unset !important;
    width: auto !important;
    max-width: none !important;
  }

  body.page-home .performance-section {
    min-height: 520px;
  }
}

/* Strategy card */
body.page-home .trader-card.tc-strategy-card {
  padding: 0 !important;
  overflow: hidden;
  box-shadow: var(--tc-shadow-glow), var(--tc-shadow-card) !important;
}

body.page-home .trader-card::after {
  height: 4px;
  background: linear-gradient(90deg, var(--tc-alpha), var(--tc-accent), var(--tc-alpha));
  background-size: 200% 100%;
  animation: tc-shimmer 4s linear infinite;
}

@keyframes tc-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (min-width: 769px) {
  body.page-home .trader-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: unset !important;
    padding: 28px 24px 20px !important;
    gap: 16px !important;
    text-align: center;
  }

  body.page-home .mobile-pnl-highlight {
    display: none !important;
  }
}

body.page-home .trader-card .trader-avatar {
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  box-shadow:
    0 0 0 3px rgba(79, 124, 255, 0.35),
    0 0 40px rgba(22, 217, 133, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

body.page-home .strategy-badge--title {
  font-size: 12px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.2), rgba(22, 217, 133, 0.12));
  border-color: rgba(79, 124, 255, 0.4);
  color: #e8eeff;
}

body.page-home .strategy-badge::before {
  background: var(--tc-alpha);
  box-shadow: 0 0 10px var(--tc-alpha);
}

/* Hero P&L block */
body.page-home .tc-pnl-highlight {
  width: calc(100% - 24px);
  max-width: 100%;
  margin: 0 12px 16px;
  padding: 18px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(22, 217, 133, 0.25) !important;
  background:
    linear-gradient(145deg, rgba(22, 217, 133, 0.12) 0%, rgba(79, 124, 255, 0.06) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  box-sizing: border-box;
  container-type: inline-size;
}

body.page-home .tc-pnl-highlight .stat-label {
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tc-text-muted) !important;
  line-height: 1.3;
}

body.page-home .tc-pnl-highlight .stat-value {
  font-size: clamp(1.15rem, 11cqw, 1.7rem) !important;
  font-weight: 800 !important;
  margin-top: 8px;
  display: block;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 32px rgba(22, 217, 133, 0.45);
}

body.page-home .trader-stats {
  display: block !important;
  width: 100%;
  grid-template-columns: unset !important;
}

/* Strategy insights — under overview stats */
body.page-home .tc-insights-section {
  margin-top: 4px;
  padding: 20px 18px 8px;
  border-top: 1px solid var(--tc-border);
}

body.page-home .tc-insights-section__title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

body.page-home #overview-tab .tc-strategy-insights {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  body.page-home #overview-tab .tc-strategy-insights {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-home #overview-tab .tc-insight--spark,
  body.page-home #overview-tab .tc-strategy-tags {
    grid-column: 1 / -1;
  }
}

body.page-home .tc-insight {
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--tc-border);
}

body.page-home .tc-insight__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.page-home .tc-insight__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.page-home .tc-insight__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

body.page-home .tc-insight__value .tc-rating-max,
body.page-home .tc-insight__value .rating {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tc-text-muted);
}

body.page-home .tc-insight__value--risk {
  color: #fb7185;
}

body.page-home .tc-insight__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tc-text-muted);
}

body.page-home .tc-rating-stars {
  display: flex;
  gap: 4px;
}

body.page-home .tc-rating-stars span {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.35;
}

body.page-home .tc-rating-stars span:nth-child(-n + 4) {
  opacity: 1;
}

body.page-home .tc-rating-stars span:nth-child(5) {
  opacity: 0.55;
}

body.page-home .tc-winloss-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 0 8px;
}

body.page-home .tc-winloss-bar__win {
  background: linear-gradient(90deg, #12a363, var(--tc-profit));
}

body.page-home .tc-winloss-bar__loss {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

body.page-home .tc-winloss-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--tc-text-muted);
}

body.page-home .tc-winloss-legend strong {
  color: var(--tc-profit);
  font-weight: 700;
}

body.page-home .tc-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

body.page-home .tc-dot--win { background: var(--tc-profit); }
body.page-home .tc-dot--loss { background: #fb7185; }

body.page-home .tc-insight--spark {
  padding-bottom: 10px;
}

body.page-home .tc-sparkline {
  width: 100%;
  height: 48px;
  display: block;
  margin-top: 8px;
}

body.page-home .tc-strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

body.page-home .tc-strategy-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

body.page-home .tc-strategy-tag--green {
  color: var(--tc-profit);
  background: rgba(22, 217, 133, 0.1);
  border-color: rgba(22, 217, 133, 0.25);
}

body.page-home .tc-strategy-tag--blue {
  color: var(--tc-accent-bright);
  background: rgba(79, 124, 255, 0.1);
  border-color: rgba(79, 124, 255, 0.25);
}

body.page-home .tc-strategy-tag--violet {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.25);
}

body.page-home .tc-api-sync {
  display: none !important;
}

/* Performance panel */
body.page-home .performance-section {
  padding-top: 0 !important;
  overflow: hidden;
}

body.page-home .tc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--tc-border);
  background: rgba(0, 0, 0, 0.2);
}

body.page-home .tc-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

body.page-home .tc-panel-head__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tc-profit);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22, 217, 133, 0.1);
  border: 1px solid rgba(22, 217, 133, 0.28);
}

body.page-home .tc-panel-head__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tc-profit);
  animation: home-pulse 2s ease-in-out infinite;
}

body.page-home .stats-grid {
  padding: 18px 18px 8px !important;
  gap: 12px !important;
}

body.page-home .stat-card {
  position: relative;
  padding: 20px 16px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
}

body.page-home .stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.2), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

body.page-home .stat-card:hover::after {
  opacity: 1;
}

body.page-home .stat-value {
  font-size: 1.45rem !important;
}

body.page-home .trades-progress {
  margin: 12px 18px 20px !important;
}

/* Banner — fixed bottom dock */
body.page-home .registration-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(3, 4, 6, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--tc-border) !important;
  box-shadow: 0 -8px 40px rgba(79, 124, 255, 0.12) !important;
}

body.page-home .banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(14, 20, 32, 0.98), rgba(20, 28, 48, 0.95)) !important;
  border: 1px solid rgba(79, 124, 255, 0.25) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.page-home .container {
  padding-bottom: 120px !important;
}

body.page-home .footer-info {
  padding-bottom: 24px !important;
}

body.page-home .banner-btn {
  padding: 14px 32px !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--tc-accent) 0%, #3d66e8 50%, var(--tc-alpha) 100%) !important;
  background-size: 200% auto !important;
  transition: background-position 0.3s, transform 0.2s, box-shadow 0.2s !important;
}

body.page-home .banner-btn:hover {
  background-position: right center !important;
}

/* Partners bar subtle */
body.page-home .partners-bar {
  background: rgba(3, 4, 6, 0.9) !important;
}

/* Mobile */
@media (max-width: 768px) {
  /* Desktop strategy block — only mobile-header */
  body.page-home .trader-info {
    display: none !important;
  }

  body.page-home .mobile-pnl-highlight {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: min(100%, 340px) !important;
    max-width: calc(100% - 32px) !important;
    margin: 4px auto 12px !important;
    padding: 16px 14px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body.page-home .mobile-pnl-highlight .stat-label,
  body.page-home .mobile-pnl-highlight .stat-value,
  body.page-home .mobile-pnl-highlight .mobile-pnl-value {
    width: 100%;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-home .mobile-header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 20px 0 8px !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 1 !important;
  }

  body.page-home .mobile-trader-info {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100%;
    padding: 0 16px;
  }

  body.page-home .mobile-avatar {
    width: 88px !important;
    height: 88px !important;
    flex-shrink: 0;
    box-shadow:
      0 0 0 3px rgba(79, 124, 255, 0.35),
      0 0 32px rgba(22, 217, 133, 0.12) !important;
  }

  body.page-home .mobile-trader-name {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    gap: 8px;
  }

  body.page-home .mobile-trader-name .strategy-badge--title {
    font-size: 11px;
    padding: 8px 14px;
  }

  body.page-home .mobile-strategy-sub {
    margin: 0 !important;
  }

  body.page-home .trader-card.tc-strategy-card {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

  body.page-home .mobile-performance-section,
  body.page-home .trader-card .mobile-stats-row {
    margin-top: 0 !important;
  }

  body.page-home .mobile-trader-details {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }

  body.page-home .home-hero,
  body.page-home .hero-title,
  body.page-home .hero-subtitle {
    text-align: center;
  }

  body.page-home .home-hero__actions {
    justify-content: center;
  }

  body.page-home .home-hero__inner {
    max-width: 100%;
  }

  .tc-header-cta {
    display: none;
  }

  .tc-features {
    justify-content: center;
    padding: 0 12px;
  }

  body.page-home .content-layout {
    padding: 0 12px;
  }

  body.page-home .trader-card.tc-strategy-card {
    border-radius: var(--tc-radius-lg) !important;
    margin: 0 !important;
  }

  /* Компактный нижний баннер — не колонкой на пол-экрана */
  body.page-home .registration-banner {
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.page-home .banner-content {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    text-align: left !important;
  }

  body.page-home .banner-content .gift-icon {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
  }

  body.page-home .banner-content .gift-icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  body.page-home .banner-content > span:not(.gift-icon) {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: var(--tc-text-muted) !important;
    min-width: 0;
  }

  body.page-home .banner-btn {
    padding: 8px 12px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    width: auto !important;
    min-height: 0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  /* style.css mobile block сбрасывает padding и скрывает .hero-header */
  body.page-home .container {
    padding-top: calc(60px + env(safe-area-inset-top, 0px) + 14px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 76px !important;
  }

  body.page-home .hero-header.home-hero {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
  }

  body.page-home .tc-hero-zone {
    padding-top: 4px;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.page-home .home-hero {
    padding-top: 0 !important;
    padding-bottom: 16px !important;
  }

  body.page-home .home-trust {
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-home .mobile-tags {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 10px 14px !important;
    margin-bottom: 4px !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    overflow: hidden;
  }

  body.page-home .mobile-tag {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 6px 4px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
    min-height: 28px !important;
    white-space: normal !important;
    text-align: center;
    hyphens: auto;
  }

  body.page-home .mobile-bottom-actions {
    padding: 12px 14px 4px !important;
    margin-top: 16px !important;
  }

  body.page-home .mobile-action-row {
    gap: 8px;
  }

  body.page-home .mobile-action-btn {
    padding: 6px 6px !important;
    min-width: 52px !important;
    font-size: 10px !important;
  }

  body.page-home .mobile-main-cta-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-left: 6px !important;
    margin-right: 8px !important;
    padding: 9px 12px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    border-radius: 10px !important;
    white-space: normal !important;
    text-align: center;
  }
}

@media (max-width: 380px) {
  body.page-home .banner-content {
    grid-template-columns: auto 1fr;
    row-gap: 6px;
  }

  body.page-home .banner-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: 7px 10px !important;
  }
}

@media (min-width: 769px) {
  body.page-home .header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
  }

  body.page-home .logo-section {
    flex-shrink: 0;
  }

  body.page-home .nav--desktop {
    margin-left: auto;
  }

  body.page-home .nav-burger {
    display: none;
  }
}

/* —— Внутренние страницы (бизнес, о нас, FAQ, legal) — mobile —— */
body.page-business,
body.page-about,
body.page-faq,
body.page-terms,
body.page-privacy {
  background: var(--tc-bg-base, #050608) !important;
}

body.page-business .header,
body.page-about .header,
body.page-faq .header,
body.page-terms .header,
body.page-privacy .header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 4, 6, 0.92) !important;
  border-bottom: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08)) !important;
  backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
  body.page-business .partners-bar,
  body.page-about .partners-bar,
  body.page-faq .partners-bar,
  body.page-terms .partners-bar,
  body.page-privacy .partners-bar {
    display: none !important;
  }

  body.page-business .container,
  body.page-about .container,
  body.page-faq .container,
  body.page-terms .container,
  body.page-privacy .container {
    padding-top: calc(56px + env(safe-area-inset-top, 0px) + 16px) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 48px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.page-business .main,
  body.page-about .main,
  body.page-faq .main,
  body.page-terms .main,
  body.page-privacy .main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-business .header-content,
  body.page-about .header-content,
  body.page-faq .header-content,
  body.page-terms .header-content,
  body.page-privacy .header-content {
    padding: 8px 0 !important;
  }

  body.page-business .footer-info,
  body.page-about .footer-info,
  body.page-faq .footer-info,
  body.page-terms .footer-info,
  body.page-privacy .footer-info {
    padding: 24px 4px 16px !important;
    text-align: center;
  }

  body.page-business .banner-btn,
  body.page-about .banner-btn,
  body.page-faq .banner-btn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    box-sizing: border-box;
  }

  body.page-terms .terms-doc,
  body.page-privacy .terms-doc {
    padding: 22px 18px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
