@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f8fb;
  --bg-strong: #f0f3f8;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-soft: #fbfcff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #111827;
  --text-soft: #5e6b80;
  --text-faint: #7a8799;
  --primary: #1768ff;
  --primary-deep: #0f4fd1;
  --primary-soft: rgba(23, 104, 255, 0.08);
  --accent: #6e5bff;
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.04);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(840px 420px at 8% -8%, rgba(23, 104, 255, 0.08), transparent 64%),
    radial-gradient(620px 300px at 100% 0%, rgba(110, 91, 255, 0.04), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 56%, #f9fafc 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.page-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(440px 220px at 12% 14%, rgba(23, 104, 255, 0.04), transparent 72%),
    radial-gradient(380px 200px at 88% 8%, rgba(110, 91, 255, 0.03), transparent 72%);
}

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(120%);
  background: rgba(249, 250, 252, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.topbar-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(23, 104, 255, 0.18);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark::before {
  top: 12px;
  transform: rotate(-34deg);
}

.brand-mark::after {
  top: 23px;
  transform: rotate(34deg);
}

.brand-text {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--text-soft);
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(23, 104, 255, 0.18));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 10px 24px rgba(23, 104, 255, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(23, 104, 255, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: rgba(23, 104, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.menu-toggle span {
  top: 23px;
}

.menu-toggle::before {
  top: 16px;
}

.menu-toggle::after {
  top: 30px;
}

.menu-toggle.is-open span {
  opacity: 0;
}

.menu-toggle.is-open::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: calc(82px + var(--safe-top)) 0 auto 0;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity 0.28s ease, transform 0.35s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-inner {
  width: min(calc(100% - 24px), 680px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
}

.mobile-actions {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.section-block {
  padding: 30px 0;
}

.hero {
  padding: 28px 0 10px;
}

.section-shell {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.section-shell::before {
  content: none;
}

.section-shell > * {
  position: relative;
  z-index: 1;
}

.section-shell-split {
  padding-top: 34px;
  display: grid;
  gap: 24px;
}

.section-shell-split > .section-head {
  max-width: none;
  margin-bottom: 0;
}

.section-shell-split > .section-head h2 {
  max-width: 32ch;
}

.section-shell-pilot {
  background: var(--surface-solid);
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.04em;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 0.98;
  max-width: 13ch;
}

h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.04;
  max-width: 15ch;
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--text-soft);
}

.display-accent {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #335eea;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 16px 2px 4px;
}

.hero-lead {
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.72;
}

.hero-actions,
.role-grid,
.cost-grid,
.trust-cards,
.compare-grid,
.fit-grid,
.product-grid {
  display: grid;
  gap: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-panel {
  display: flex;
}

.panel-shell {
  width: 100%;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.panel-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.panel-window,
.card,
.mock-card,
.faq-item,
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.panel-window {
  padding: 14px;
  display: grid;
  gap: 14px;
  background: rgba(250, 251, 253, 0.96);
}

.window-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.window-pill,
.mock-chip,
.status-chip,
.window-pill-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.window-pill,
.mock-chip,
.status-chip {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}

.window-pill-live,
.status-chip-live {
  background: rgba(23, 104, 255, 0.12);
  color: var(--primary-deep);
}

.status-chip-done {
  background: rgba(16, 185, 129, 0.12);
  color: #0f8b61;
}

.flow-card {
  padding: 2px 0 0;
  display: grid;
  gap: 14px;
}

.flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flow-card-head strong {
  font-size: 17px;
}

.flow-list {
  display: grid;
  gap: 6px;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.flow-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.flow-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.flow-text {
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.problem-grid,
.trust-grid,
.story-block,
.pilot-grid {
  display: grid;
  gap: 16px;
}

.problem-grid,
.trust-grid,
.story-block,
.pilot-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.card,
.mock-card {
  padding: 22px;
  box-shadow: none;
}

.narrative-card,
.trust-story,
.story-map,
.pilot-card {
  min-height: 100%;
}

.feature-list,
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.compact {
  gap: 12px;
}

.feature-list li,
.timeline li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}

.feature-list li::before,
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(23, 104, 255, 0.05);
}

.timeline li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 17px;
}

.timeline li span {
  color: var(--text-soft);
}

.timeline-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  counter-reset: step;
}

.timeline-flow::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(23, 104, 255, 0.35) 0%, rgba(99, 102, 241, 0.12) 100%);
  z-index: 0;
}

.timeline-flow li {
  position: relative;
  padding-top: 52px;
  counter-increment: step;
}

.timeline-flow li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 6px rgba(23, 104, 255, 0.06);
  z-index: 1;
}

.timeline-flow li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.timeline-flow li span {
  display: block;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

.scenario-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cost-grid,
.trust-cards,
.scenario-stack,
.pilot-side {
  grid-template-columns: 1fr;
}

.story-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.story-point {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(250, 251, 253, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.story-point strong {
  display: block;
  margin-bottom: 6px;
}

.trust-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
  width: fit-content;
}

.trust-link:hover {
  border-bottom-color: var(--primary-deep);
}

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

.compare-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.compare-card-focus {
  background: rgba(23, 104, 255, 0.04);
  border-color: rgba(23, 104, 255, 0.14);
}

.product-grid {
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.9fr));
  align-items: start;
}

.mock-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.mock-card-large {
  min-height: 100%;
}

.mock-head {
  display: grid;
  gap: 10px;
}

.mock-head strong {
  font-size: 22px;
}

.mock-table {
  display: grid;
  gap: 10px;
}

.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 253, 0.96);
  color: var(--text-soft);
  font-size: 14px;
}

.mock-row.active {
  background: rgba(23, 104, 255, 0.08);
  color: var(--text);
}

.result-stack {
  display: grid;
  gap: 12px;
}

.result-pill {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(245, 248, 255, 0.82);
}

.result-pill span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.result-pill strong {
  font-size: 18px;
}

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

.faq-block {
  margin-top: 20px;
  padding-top: 12px;
}

.faq-head {
  max-width: 680px;
  margin-bottom: 18px;
}

.faq-head h3 {
  font-size: 28px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-trigger::after {
  content: "+";
  flex-shrink: 0;
  font-size: 28px;
  color: var(--text-faint);
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.faq-item.is-open .faq-trigger::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 0 24px;
}

.faq-item.is-open .faq-panel {
  max-height: 240px;
  padding: 0 24px 24px;
}

.cta-section {
  padding-top: 20px;
  padding-bottom: 84px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.cta-actions {
  display: grid;
  gap: 12px;
}

.footer {
  padding: 0 0 120px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer p {
  max-width: 520px;
  font-size: 14px;
}

.footer-nav {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.sticky-mobile-cta {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .wrap {
    width: min(calc(100% - 28px), var(--wrap));
  }

  .nav {
    gap: 18px;
  }

  .hero-layout,
  .problem-grid,
  .trust-grid,
  .story-block,
  .pilot-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .role-grid,
  .fit-grid,
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-flow::before {
    top: 0;
    bottom: 0;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-flow li {
    padding-top: 0;
    padding-left: 56px;
    min-height: 36px;
  }

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

@media (max-width: 920px) {
  .nav,
  .actions {
    display: none;
  }

  .menu-toggle,
  .mobile-menu,
  .mobile-backdrop {
    display: block;
  }

  .topbar-inner {
    min-height: 76px;
  }

  .section-block {
    padding: 24px 0;
  }

  .section-shell,
  .panel-shell,
  .cta-band {
    padding: 26px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .role-grid,
  .fit-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .scenario-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 20px), var(--wrap));
  }

  .hero {
    padding-top: 26px;
  }

  .section-shell {
    border-radius: 28px;
    padding: 22px;
  }

  .panel-shell,
  .cta-band,
  .card,
  .mock-card {
    border-radius: 24px;
    padding: 20px;
  }

  .topbar {
    padding-top: var(--safe-top);
  }

  .hero-lead {
    font-size: 16px;
  }

  .flow-row,
  .mock-row {
    grid-template-columns: 1fr;
  }

  .faq-trigger {
    padding: 18px 18px;
    font-size: 16px;
  }

  .faq-panel {
    padding: 0 18px;
  }

  .faq-item.is-open .faq-panel {
    padding: 0 18px 18px;
  }

  .footer {
    padding-bottom: calc(110px + var(--safe-bottom));
  }

  .footer-inner {
    flex-direction: column;
  }

  .sticky-mobile-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--safe-bottom));
    z-index: 55;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  }

  .sticky-mobile-cta .btn {
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
  }
}

/* Engagement card mock — повторяет EngagementCard.vue из продукта */
.eng-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.eng-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eng-card-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eng-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.eng-type-lead {
  background: #fff1e6;
  color: #9a4b12;
  border-color: #ffd9b8;
}

.eng-unread {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  flex-shrink: 0;
}

.eng-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

.eng-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.eng-status-pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.eng-company-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.eng-company-meta {
  font-size: 12.5px;
  color: var(--text-faint);
}

.eng-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eng-finance {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
}

.eng-finance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.eng-finance-label {
  color: var(--text-faint);
}

.eng-finance-value {
  font-weight: 700;
  color: var(--text);
}

.eng-finance-accent {
  color: #0f8b61;
}

.eng-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 12px;
}

.eng-foot-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eng-sla {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
}

.eng-sla::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d97706;
  margin-right: 6px;
  animation: engPulse 1.6s ease-in-out infinite;
}

@keyframes engPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

.eng-assignee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.eng-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eng-actions {
  display: inline-flex;
  gap: 6px;
}

.eng-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: default;
  line-height: 1;
}

.eng-btn-accept {
  background: #16a34a;
  color: #ffffff;
}

.eng-btn-reject {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.eng-btn:disabled {
  opacity: 1;
}

/* Дополнительные типы сделки */
.eng-type-subcontract {
  background: #e0ecff;
  color: #1e40af;
  border-color: #bfd4ff;
}

.eng-type-coproject {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

/* Дополнительные статусы */
.eng-status-in-progress {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.eng-status-finalizing {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.eng-status-paid {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

/* SLA-варианты */
.eng-sla-safe {
  background: #dcfce7;
  color: #15803d;
}

.eng-sla-safe::before {
  background: #16a34a;
  animation: none;
}

.eng-sla-tomorrow {
  background: #f1f5f9;
  color: #475569;
}

.eng-sla-tomorrow::before {
  background: #64748b;
  animation: none;
}

/* Компактная карточка для списка */
.eng-card-compact {
  padding: 14px;
  gap: 10px;
}

.eng-card-active {
  border-color: rgba(23, 104, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(23, 104, 255, 0.08);
}

.eng-foot-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eng-list {
  display: grid;
  gap: 10px;
}

/* Прогресс шагов */
.eng-steps {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}

.eng-steps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.eng-steps-head span:first-child {
  font-weight: 700;
  color: var(--text);
}

.eng-steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.eng-step-dot {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
}

.eng-step-dot.eng-step-done {
  background: #16a34a;
}

.eng-step-dot.eng-step-active {
  background: var(--primary);
  animation: engStepPulse 1.8s ease-in-out infinite;
}

@keyframes engStepPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 640px) {
  .eng-foot {
    align-items: flex-start;
  }
  .eng-actions {
    width: 100%;
  }
  .eng-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
