:root {
  --site-accent: #2563eb;
  --site-accent-hover: #1d4ed8;
  --site-text: #111827;
  --site-muted: #64748b;
  --site-line: #e5e7eb;
}

/* Единая оболочка публичных страниц */
.top-nav {
  background: #fff;
  border-bottom: 1px solid var(--site-line);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
}
.top-nav__inner {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--site-text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--site-text); }
.brand__logo {
  box-sizing: border-box;
  background: var(--site-accent) !important;
  color: #fff !important;
  font: 800 .85rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .05em;
  padding: .2rem .55rem;
  border-radius: 8px;
}
.brand__title {
  color: var(--site-text);
  font: 700 1.15rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.02em;
}
.brand__pro { color: var(--site-accent); }
.brand__badge {
  background: #f3f4f6;
  color: #4b5563;
  font: 600 .75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: .25rem .55rem;
  border-radius: 6px;
}
.top-nav__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.btn-switch-complex { color: #64748b; font-size: .82rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.btn-switch-complex:hover { color: var(--site-accent); }
.btn-tg-bot,
.btn-post {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 38px;
  padding: .5rem .85rem;
  border-radius: 8px;
  font: 600 .85rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-tg-bot {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.btn-tg-bot:hover { background: #0284c7; color: #fff; }
.btn-post {
  background: var(--site-accent);
  color: #fff;
  border: 1px solid var(--site-accent);
}
.btn-post:hover { background: var(--site-accent-hover); border-color: var(--site-accent-hover); color: #fff; }

.page-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 3rem 0 0;
  padding: 2rem 1rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.page-footer__inner { max-width: 1240px; margin: 0 auto; }
.footer-main { color: #475569; font-size: .9rem; line-height: 1.6; margin-bottom: .8rem; }
.footer-main strong { color: #0f172a; }
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .55rem .75rem; font-size: .82rem; }
.footer-links a { color: #64748b; text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: var(--site-accent); }
.footer-divider { color: #cbd5e1; }
.footer-copy { margin-top: .65rem; color: #94a3b8; font-size: .78rem; }

@media (max-width: 700px) {
  .top-nav__inner { flex-wrap: wrap; gap: .65rem; }
  .brand__badge { display: none; }
  .top-nav__actions { width: 100%; }
  .btn-tg-bot, .btn-post { flex: 1 1 0; white-space: normal; text-align: center; }
  .btn-switch-complex { width: 100%; text-align: center; }
  .page-footer { margin-top: 2rem; padding-top: 1.5rem; }
}

@media (max-width: 390px) {
  .brand__title { font-size: 1.05rem; }
  .btn-tg-bot, .btn-post { font-size: .78rem; padding-inline: .55rem; }
}
