:root {
  --bg: #000000;
  --bg-elevated: rgba(10, 10, 12, 0.96);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --accent: #7ee7ff;
  --accent-soft: rgba(126, 231, 255, 0.25);
  --text-main: rgba(245, 245, 245, 0.96);
  --text-muted: rgba(245, 245, 245, 0.72);
  --radius-lg: 0px;
  --blur-bg: 16px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.85);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000000;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Canvas фон */
#bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
}

/* Основной лейаут */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.0));
}

.site-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text-main {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.96;
}

.logo-text-sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}

.nav {
  display: inline-flex;
  gap: 16px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 140ms ease-out;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--text-main);
}

.mic-toggle {
  margin-left: 10px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  transition: border-color 140ms ease-out, background 140ms ease-out, box-shadow 140ms ease-out;
}

.mic-toggle svg {
  width: 16px;
  height: 16px;
  fill: rgba(245, 245, 245, 0.85);
  stroke: rgba(245, 245, 245, 0.85);
}

.mic-toggle:hover {
  border-color: rgba(255, 180, 90, 0.9);
}

.mic-toggle.active {
  background: radial-gradient(circle at 30% 30%, rgba(255, 170, 80, 0.9), rgba(255, 110, 60, 0.8));
  box-shadow: 0 0 18px rgba(255, 150, 80, 0.8);
  border-color: transparent;
}

/* Контент */
.site-main {
  flex: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.site-footer {
  padding: 12px 18px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 8px;
}

/* Hero */
.hero {
  margin-top: 10px;
  margin-bottom: 30px;
}

.hero-compact {
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 0;
  border-left: 2px solid var(--accent);
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  border-bottom: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.3rem, 2.7vw + 1.7rem, 3rem);
  margin: 0 0 10px;
}

.hero-subtitle {
  margin: 0;
  max-width: 640px;
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 14px;
}

/* Сетки и карточки */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-main {
    padding-top: 22px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    margin-top: 4px;
  }
}

.card {
  border-radius: 0;
  padding: 18px 18px 20px;
  background: rgba(8, 8, 10, 0.55); /* полупрозрачные всегда */
  border: none;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform 160ms ease-out, background 160ms ease-out;
}

/* синестетическая    rgba(255, 78, 78, 0.0)
  );
  opacity: 0;
  filter: blur(20px);
  mix-blend-mode: screen;
  transform: translateX(-12%);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  pointer-events: none;
}

.card {
  border-radius: 0;
  padding: 18px 18px 20px;
  background: rgba(5, 5, 8, 0.38); /* более прозрачные */
  border: none;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  transition: transform 160ms ease-out, background 160ms ease-out;
}

/* синестетическая цветовая волна */
.card::before {
  content: "";
  position: absolute;
  left: -40%;
  top: -20%;
  width: 180%;
  height: 160%;
  background: linear-gradient(
    115deg,
    rgba(162, 129, 255, 0.0),
    rgba(162, 129, 255, 0.85),
    rgba(72, 190, 255, 0.95),
    rgba(255, 220, 120, 1),
    rgba(255, 150, 85, 0.98),
    rgba(255, 78, 78, 0.95),
    rgba(255, 78, 78, 0.0)
  );
  opacity: 0;
  filter: blur(20px);
  mix-blend-mode: screen;
  transform: translateX(-18%);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  pointer-events: none;
}

/* классический глитч-полосы с шумом */
.card::after {
  content: "";
  position: absolute;
  inset: -4px;
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(2px);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  animation: card-glitch-stripes 1.2s infinite steps(3, end);
  animation-play-state: paused;
}

.card:hover {
  transform: translateY(-1px);
  background: rgba(5, 5, 8, 0.55);
}

.card:hover::before {
  opacity: 0.6;
  transform: translateX(0);
}

.card:hover::after {
  opacity: 0.28;
  animation-play-state: running;
}

@keyframes card-glitch-stripes {
  0% {
    transform: translate3d(0, 0, 0);
  }
  35% {
    transform: translate3d(-1px, -1px, 0);
  }
  36% {
    transform: translate3d(2px, 1px, 0);
  }
  37% {
    transform: translate3d(-0.5px, 0.5px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}


/* Текстовые блоки */
.text-block {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.text-block p + p {
  margin-top: 10px;
}
