:root {
  --color-primary: #0f172a;
  --color-secondary: #38bdf8;
  --color-accent: #f97316;
  --color-bg: #020617;
  --color-surface: #020617;
  --color-text: #e5e7eb;
  --radius-base: deep-rounded;
  --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);
}

/* =========================
   Active page (header + burger overlay)
   Works even if some links were hard-coded with wrong Tailwind text colors.
========================= */

/* Desktop nav (lg+) */
header .hidden.lg\:flex a[href]:not([aria-current="page"]) {
  color: #475569; /* slate-600 */
}

header .hidden.lg\:flex a[href][aria-current="page"] {
  color: #0f172a; /* slate-900 */
  position: relative;
}

header .hidden.lg\:flex a[href][aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: #38bdf8; /* cyan-400 */
  border-radius: 999px;
  opacity: 0.95;
}

/* Mobile overlay */
[data-mobile-nav] a[href]:not([aria-current="page"]) {
  color: rgba(255, 255, 255, 0.92);
}

[data-mobile-nav] a[href][aria-current="page"] {
  color: #38bdf8;
}