#root {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: initial;
  width: 100%;
  min-height: 100%;
  background: transparent;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}
:root {
  --bg: #1a1d24;
  --surface: #242730;
  --surface-2: #2d3240;
  --text: #e6e7eb;
  --text-muted: #a9acb8;
  --primary: #7c5cff; /* фиолетовый как архетипический/мистический акцент */
  --primary-600: #6a49f0;
  --accent: #19e0ff; /* сине-циан для науки/исследований */
  --success: #3ddc97;
  --warning: #ffcc66;
  --danger: #ff6b6b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

html, body, #root { 
  height: 100%; 
  min-height: 100%;
}

#root {
  background: transparent;
}

html {
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,0.12), transparent),
              radial-gradient(1000px 600px at -10% 20%, rgba(25,224,255,0.10), transparent),
              var(--bg);
  background-attachment: fixed;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
}

.container { width: min(1440px, 96%); margin: 0 auto; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0d12; font-weight: 600; border: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.button:active { transform: translateY(1px); }
.button.secondary {
  background: var(--surface-2); color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  padding: 12px; /* ensure inner spacing on small screens */
  min-height: 64px; /* prevent collapsing */
  overflow-wrap: anywhere; /* wrap long words */
}

.kicker { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: 12px; }
.h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 800; }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 800; }
.p { font-size: 16px; color: var(--text-muted); }
.small { font-size: 13px; color: var(--text-muted); }

.card-hover-shimmer {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-hover-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.2),
    rgba(25, 224, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.card-hover-shimmer:hover::before {
  left: 100%;
}

.card-hover-shimmer:hover {
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.2), 0 0 24px rgba(25, 224, 255, 0.15);
  transform: translateY(-2px);
}

.card-hover-shimmer > * {
  position: relative;
  z-index: 2;
}
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: rgba(255, 255, 255, 0.87);
  /* background-color удален - используется из tokens.css */

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html, body, #root { 
  height: 100%; 
  width: 100%; 
}

html {
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,0.12), transparent),
              radial-gradient(1000px 600px at -10% 20%, rgba(25,224,255,0.10), transparent),
              #1a1d24;
  background-attachment: fixed;
  min-height: 100%;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  background: transparent;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}
