/* ==========================================================================
   case.samarasolar.ru — «Любовь, Кейсы и Роботы»
   Дизайн-система полностью наследует samarasolar.ru
   («Любовь, Маркетинг и Роботы») и сериал «Love, Death & Robots»:
   чёрный фон, неоновая сетка, глитч, сканлайны, монотипографика.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены (1:1 из samarasolar.ru)
   -------------------------------------------------------------------------- */
:root {
  --background: #000;
  --foreground: #f0f0f0;
  --card: #0a0a0a;
  --card-2: #060606;
  --popover: #1a1a1a;
  --muted: #1a1a1a;
  --muted-foreground: #888;
  --border: #222;
  --border-soft: #1a1a1a;
  --input: #1a1a1a;

  --primary: #ea00d9;
  --secondary: #0abdc6;
  --accent: #711c91;
  --destructive: #ff003c;
  --neon-blue: #133e7c;
  --dark-navy: #091833;

  --radius: 0.25rem;

  --font-sans: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", "IBM Plex Mono", ui-monospace, monospace;

  --shadow-primary: 0 0 10px rgba(234, 0, 217, 0.4);
  --shadow-secondary: 0 0 10px rgba(10, 189, 198, 0.4);
  --shadow-accent: 0 0 10px rgba(113, 28, 145, 0.4);

  --header-h: 64px;
  --maxw: 80rem;
}

/* --------------------------------------------------------------------------
   2. Reset и база
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* Кастомный скроллбар в стиле терминала */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border: 1px solid #262626;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 16px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --------------------------------------------------------------------------
   3. Типографика
   -------------------------------------------------------------------------- */
.font-mono {
  font-family: var(--font-mono);
}
.font-sans {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.12;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.75rem);
}
h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
}

p {
  margin: 0 0 1rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
}

.lead {
  color: #a3a3a3;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.text-accent {
  color: var(--accent);
}
.text-muted {
  color: #6b6b6b;
}

.glow-primary {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary), 0 0 40px rgba(234, 0, 217, 0.35);
}
.glow-secondary {
  color: var(--secondary);
  text-shadow: 0 0 20px var(--secondary), 0 0 40px rgba(10, 189, 198, 0.35);
}

/* --------------------------------------------------------------------------
   4. Каркас
   -------------------------------------------------------------------------- */
main {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
  overflow: hidden;
}
.section--alt {
  background: var(--card);
}
.section--dark {
  background: #000;
}

.rule-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}
.rule-top--cyan {
  background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), transparent);
}
.rule-top--tri {
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
}

.center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 56rem;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section-head .section-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(10, 189, 198, 0.25);
  background: rgba(10, 189, 198, 0.05);
}

/* --------------------------------------------------------------------------
   5. Атмосферные эффекты (порт с samarasolar.ru)
   -------------------------------------------------------------------------- */
.grid-bg {
  background-image: linear-gradient(rgba(10, 189, 198, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 189, 198, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 8s linear infinite;
}
.grid-bg--static {
  animation: none;
}

.scanline-effect {
  position: relative;
  overflow: hidden;
}
.scanline-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(10, 189, 198, 0.15);
  pointer-events: none;
  animation: scanline 6s linear infinite;
}

.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.deco-line {
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  pointer-events: none;
}
.deco-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
}
.deco-square {
  position: absolute;
  pointer-events: none;
}

.glitch-text {
  position: relative;
  animation: logoGlitch 8s infinite;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch-text::before {
  color: var(--primary);
  z-index: -1;
  animation: glitch-red 8s infinite;
}
.glitch-text::after {
  color: var(--secondary);
  z-index: -2;
  animation: glitch-blue 8s infinite;
}

/* --------------------------------------------------------------------------
   6. Шапка и навигация
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: #161616;
  backdrop-filter: blur(12px);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.brand__mark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.brand__text {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #9ca3af;
  transition: color 0.2s ease;
}
.brand:hover .brand__text {
  color: #e5e7eb;
}

.nav__list {
  display: none;
  list-style: none;
  padding: 0;
  align-items: center;
  gap: 32px;
}
.nav-link {
  position: relative;
  overflow: hidden;
  background: none;
  border: 0;
  padding: 0 0 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--secondary);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav .nav__cta {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: block;
  overflow: hidden;
  max-height: 0;
  background: rgba(0, 0, 0, 0.97);
  transition: max-height 0.35s ease;
}
.mobile-menu.is-open {
  max-height: 480px;
  border-bottom: 1px solid #161616;
}
.mobile-menu ul {
  list-style: none;
  padding: 16px 24px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d1d5db;
}
.mobile-menu a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   7. Кнопки
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-block;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-primary {
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(234, 0, 217, 0.4);
}
.btn-primary:hover {
  letter-spacing: 0.15em;
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(234, 0, 217, 0.4);
}
.btn-secondary {
  color: var(--secondary);
  background: transparent;
  border: 2px solid var(--secondary);
}
.btn-secondary:hover {
  letter-spacing: 0.15em;
  background: rgba(10, 189, 198, 0.08);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--secondary), 0 0 40px rgba(10, 189, 198, 0.3);
}
.btn-ghost {
  color: #9ca3af;
  background: transparent;
  border: 1px solid #2a2a2a;
  padding: 11px 22px;
}
.btn-ghost:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-sm {
  font-size: 12px;
  padding: 9px 18px;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 10;
  max-width: 62rem;
  text-align: center;
}
.hero__tag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 16px;
  border: 1px solid rgba(10, 189, 198, 0.25);
  background: rgba(10, 189, 198, 0.05);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
}
.hero h1 {
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero__sans {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #d4d4d4;
  line-height: 1.7;
  max-width: 44rem;
  margin: 0 auto 12px;
}
.hero__note {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #737373;
  margin-bottom: 40px;
}
.hero__stats {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 56px;
}
.hero__stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--primary);
  text-shadow: 0 0 10px rgba(234, 0, 217, 0.5);
}
.hero__stat-label {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  animation: scrollBounce 2s infinite ease-in-out;
}
.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #525252;
}

/* --------------------------------------------------------------------------
   9. Сетка и карточки кейсов
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  background: transparent;
  border: 1px solid #242424;
  border-radius: 2px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.chip:hover {
  color: var(--secondary);
  border-color: rgba(10, 189, 198, 0.5);
}
.chip[aria-pressed="true"] {
  color: #000;
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 14px rgba(10, 189, 198, 0.45);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.case-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(234, 0, 217, 0.15), inset 0 0 24px rgba(234, 0, 217, 0.03);
}
.case-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050505;
  border-bottom: 1px solid var(--border);
}
.case-card__cover img,
.case-card__cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  filter: saturate(0.85) contrast(1.05);
}
.case-card:hover .case-card__cover img,
.case-card:hover .case-card__cover svg {
  transform: scale(1.05);
  filter: saturate(1.15) contrast(1.1);
}
.case-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--secondary);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(10, 189, 198, 0.35);
  padding: 4px 10px;
}
.case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 12px;
}
.case-card__meta .dot {
  color: var(--primary);
}
.case-card h3 {
  margin-bottom: 10px;
  transition: color 0.25s ease;
}
.case-card:hover h3 {
  color: var(--primary);
}
.case-card__desc {
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.case-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #161616;
}
.case-card__more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case-card__more svg {
  transition: transform 0.3s ease;
}
.case-card:hover .case-card__more svg {
  transform: translateX(5px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  border: 1px solid #232323;
  padding: 3px 8px;
  white-space: nowrap;
}
.tag--pink {
  color: var(--primary);
  border-color: rgba(234, 0, 217, 0.35);
  background: rgba(234, 0, 217, 0.04);
}
.tag--cyan {
  color: var(--secondary);
  border-color: rgba(10, 189, 198, 0.35);
  background: rgba(10, 189, 198, 0.04);
}
.tag--purple {
  color: #b06fd0;
  border-color: rgba(113, 28, 145, 0.45);
  background: rgba(113, 28, 145, 0.06);
}

/* --------------------------------------------------------------------------
   10. Метрики / показатели
   -------------------------------------------------------------------------- */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.metric {
  border: 1px solid var(--border-soft);
  background: var(--card-2);
  padding: 20px 22px;
  border-left: 2px solid var(--primary);
}
.metric--cyan {
  border-left-color: var(--secondary);
}
.metric--purple {
  border-left-color: var(--accent);
}
.metric__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--primary);
  text-shadow: 0 0 12px rgba(234, 0, 217, 0.4);
  line-height: 1.15;
}
.metric--cyan .metric__value {
  color: var(--secondary);
  text-shadow: 0 0 12px rgba(10, 189, 198, 0.4);
}
.metric--purple .metric__value {
  color: #b06fd0;
  text-shadow: 0 0 12px rgba(113, 28, 145, 0.45);
}
.metric__label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b6b;
}

/* --------------------------------------------------------------------------
   11. Внутренняя страница кейса
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 28px;
}
.breadcrumbs a:hover {
  color: var(--secondary);
}
.breadcrumbs .sep {
  color: var(--primary);
}
.breadcrumbs [aria-current="page"] {
  color: #a3a3a3;
}

.case-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.case-hero__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.case-hero h1 {
  margin-bottom: 20px;
}
.case-hero__summary {
  color: #a3a3a3;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
  max-width: 46rem;
  margin-bottom: 28px;
}
.case-hero__cover {
  position: relative;
  margin: 0;
  align-self: start;
  border: 1px solid var(--border);
  background: #050505;
  overflow: hidden;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.case-hero__cover img,
.case-hero__cover svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-soft);
}
.facts-table th,
.facts-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #141414;
  font-size: 13px;
  vertical-align: top;
}
.facts-table tr:last-child th,
.facts-table tr:last-child td {
  border-bottom: 0;
}
.facts-table th {
  width: 38%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.facts-table td {
  color: #d4d4d4;
}

.prose {
  max-width: 52rem;
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.85;
}
.prose h3 {
  margin: 36px 0 14px;
  color: #fff;
}
.prose h3:first-child {
  margin-top: 0;
}
.prose ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--primary);
  transform: rotate(45deg);
}
.prose strong {
  color: #e5e5e5;
  font-weight: 600;
}
.prose a {
  color: var(--secondary);
  border-bottom: 1px solid rgba(10, 189, 198, 0.35);
}
.prose a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 26px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(10, 189, 198, 0.12);
}
.feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(234, 0, 217, 0.27);
  background: rgba(234, 0, 217, 0.04);
}
.feature--cyan .feature__icon {
  border-color: rgba(10, 189, 198, 0.27);
  background: rgba(10, 189, 198, 0.04);
}
.feature--purple .feature__icon {
  border-color: rgba(113, 28, 145, 0.35);
  background: rgba(113, 28, 145, 0.05);
}
.feature h3 {
  margin-bottom: 10px;
}
.feature p {
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-left: 1px solid #1c1c1c;
  margin-left: 8px;
}
.step {
  position: relative;
  padding: 0 0 32px 28px;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  background: #000;
  border: 1px solid var(--primary);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(234, 0, 217, 0.5);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: 6px;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step p {
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.quote {
  position: relative;
  margin: 0;
  border: 1px solid var(--border-soft);
  background: var(--card-2);
  padding: 28px;
  border-left: 2px solid var(--secondary);
}
.quote blockquote {
  margin: 0 0 16px;
  color: #cfcfcf;
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
}
.quote figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #7a7a7a;
}

.screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.screen {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--card-2);
  overflow: hidden;
}
.screen img,
.screen svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.screen figcaption {
  padding: 12px 16px;
  border-top: 1px solid #161616;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.case-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
.case-nav a {
  display: block;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 20px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.case-nav a:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.case-nav__dir {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.case-nav__title {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. Список проектов / логотипы
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  margin: 0 0 48px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #333;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.marquee-track span:hover {
  color: var(--secondary);
}
.marquee-track .sep {
  color: #1f1f1f;
}

/* --------------------------------------------------------------------------
   13. CTA и контакты
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card-2);
  padding: clamp(28px, 5vw, 48px);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.cta-band__corner {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0.45;
}
.cta-band__corner--tr {
  top: 0;
  right: 0;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}
.cta-band__corner--bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-list .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-list .txt {
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.65;
}

.contact-card {
  border: 1px solid var(--border-soft);
  background: var(--card-2);
  padding: 24px;
}
.contact-card a {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #d4d4d4;
  margin-bottom: 8px;
  word-break: break-word;
}
.contact-card a:hover {
  color: var(--primary);
}
.contact-card p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #5a5a5a;
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: #000;
  border-top: 1px solid #111;
  padding: 40px 0;
}
.site-footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: center;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer__mark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(234, 0, 217, 0.4);
}
.site-footer__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #333;
}
.site-footer__claim {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6b6b6b;
  max-width: 34rem;
}
.site-footer__claim span {
  color: var(--primary);
}
.site-footer__nav {
  display: flex;
  list-style: none;
  gap: 24px;
  padding: 0;
  margin: 0;
}
.site-footer__nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6b6b6b;
}
.site-footer__nav a:hover {
  color: #d4d4d4;
}

/* --------------------------------------------------------------------------
   15. Анимации
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
}

@keyframes glitch-red {
  0% {
    opacity: 0;
    transform: translate(0);
  }
  10% {
    opacity: 0.8;
    transform: translate(3px);
  }
  20% {
    opacity: 0.6;
    transform: translate(-3px);
  }
  30% {
    opacity: 0;
    transform: translate(0);
  }
  100% {
    opacity: 0;
  }
}
@keyframes glitch-blue {
  0% {
    opacity: 0;
    transform: translate(0);
  }
  10% {
    opacity: 0.8;
    transform: translate(-3px);
  }
  20% {
    opacity: 0.6;
    transform: translate(3px);
  }
  30% {
    opacity: 0;
    transform: translate(0);
  }
  100% {
    opacity: 0;
  }
}
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}
@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes logoGlitch {
  0%,
  90%,
  100% {
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
  }
  92% {
    text-shadow: 3px 0 var(--primary), -3px 0 var(--secondary);
  }
  94% {
    text-shadow: -3px 0 var(--primary), 3px 0 var(--secondary);
  }
  96% {
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes scrollBounce {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, 8px);
  }
}
@keyframes neonPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* --------------------------------------------------------------------------
   16. Адаптив
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .btn-row {
    flex-direction: row;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer__row {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .nav__list {
    display: flex;
  }
  .nav .nav__cta {
    display: inline-block;
  }
  .burger {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
  .brand__text {
    display: block;
  }
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screens {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .case-hero__top {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
  }
}

/* --------------------------------------------------------------------------
   17. Доступность и печать
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up,
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .scroll-hint,
  .hero__grid,
  .scanline-effect::after {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
