:root {
  --color-primary: #0f172a;
  --color-secondary: #38bdf8;
  --color-accent: #f97316;
  --color-bg: #020617;
  --color-surface: #020617;
  --color-text: #e5e7eb;
  --radius-base: Soft / Rounded-md;
  --layout-container-width: 1200px;
  --layout-gutter-x: 1.5rem;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Базовый контейнер, чтобы все страницы были визуально согласованы */
.site-container {
  max-width: var(--layout-container-width);
  margin-inline: auto;
  padding-inline: var(--layout-gutter-x);
}

/* Общие utility-классы, которые ИИ может использовать в Tailwind-окружении */
.site-card {
  border-radius: var(--radius-base);
  background-color: var(--color-surface);
}

/* Кнопки на всякий случай (если модель захочет использовать эти классы) */
.btn-primary-soft {
  border-radius: var(--radius-base);
  background: var(--color-primary);
  color: white;
}

.btn-primary-soft:hover {
  filter: brightness(1.05);
}

/* Минимальная адаптация шапки/футера, если модель захочет использовать */
.site-header,
.site-footer {
  backdrop-filter: blur(12px);
}

/* Header navigation active-state normalization */
header nav:not([data-mobile-nav]) a[href$=".html"]:not([aria-current="page"]) {
  color: #1e3a8a;
}

header nav:not([data-mobile-nav]) a[href$=".html"]:not([aria-current="page"])::after {
  background-color: transparent;
  opacity: 0;
}

header nav:not([data-mobile-nav]) a[href$=".html"]:not([aria-current="page"]):hover {
  color: #8b5cf6;
}

header nav:not([data-mobile-nav]) a[href$=".html"][aria-current="page"]::after {
  background-color: #8b5cf6;
  opacity: 1;
}

header [data-mobile-nav] a[href$=".html"]:not([aria-current="page"]) {
  background: transparent;
  font-weight: 500;
}

header [data-mobile-nav] a[href$=".html"]:not([aria-current="page"]):hover {
  background: rgba(139, 92, 246, 0.9);
}

header [data-mobile-nav] a[href$=".html"][aria-current="page"] {
  background: rgba(124, 58, 237, 0.8);
  font-weight: 600;
}
