/* ООО Мабини — общие стили */
:root {
  --bg: #0c0d10;
  --bg-elevated: #14161c;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #5b8cff;
  --accent-dim: rgba(91, 140, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #8fb0ff;
}

/* Фоновый градиент */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 140, 255, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(120, 80, 200, 0.08), transparent),
    var(--bg);
}

/* Главная */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 6rem;
  text-align: center;
}

.home__logo {
  width: min(280px, 72vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(91, 140, 255, 1));
}

.home__logo path {
  fill: var(--text);
}

.home__tagline {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}

.home__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem 1.5rem;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}

.home__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  align-items: center;
  max-width: 42rem;
  margin: 0 auto;
}

.home__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.home__links a:hover {
  color: var(--accent);
}

.home__sep {
  display: none;
}

@media (min-width: 480px) {
  .home__sep {
    display: inline;
    color: var(--border);
    user-select: none;
  }
}

/* Внутренние страницы */
.site-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header a.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-header .brand__logo {
  width: 36px;
  height: auto;
}

.site-header .brand__logo path {
  fill: currentColor;
}

.article-wrap {
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.article-wrap h1 {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.prose {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.prose h2 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.note-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.site-footer-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer-inner a {
  color: var(--text-muted);
}

.site-footer-inner a:hover {
  color: var(--accent);
}
