/* ============================================================
   finance-card — landing styles
   High-tech monospace. Dark, terminal / schematic tone.
   ============================================================ */

:root {
  /* palette */
  --bg: #0a0a0a;
  --bg-elev: #101013;
  --bg-elev-2: #15151a;
  --fg: #ededed;
  --fg-muted: #9a9aa3;
  --accent: #00e5a8;
  --accent-soft: rgba(0, 229, 168, 0.10);
  --accent-strong: #00ffbb;
  --border: #1f1f24;
  --border-strong: #2a2a31;
  --grid-line: rgba(255, 255, 255, 0.022);

  /* typography — monospace-first */
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: var(--font-mono);

  /* shape — sharp / technical */
  --radius: 4px;
  --radius-sm: 2px;
  --radius-pill: 4px;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  /* layout */
  --maxw: 1120px;
  --header-h: 64px;

  /* motion */
  --t: 140ms ease;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- focus ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #0a0a0a;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: top var(--t);
}
.skip-link:focus { top: var(--space-2); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- base ---------- */

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #0a0a0a; }

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

/* ---------- typography helpers ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.eyebrow::before { content: "// "; opacity: 0.6; }

h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.05rem; line-height: 1.35; }

p { color: var(--fg); }
.muted { color: var(--fg-muted); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.logo::before { content: "$ "; color: var(--accent); }
.logo__dot {
  color: var(--accent);
  margin: 0 4px;
}

.nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.nav__link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  transition: color var(--t);
}
.nav__link:hover { color: var(--fg); }
.nav__link.is-active { color: var(--accent); }
.nav__link:not(.nav__link--accent):hover::before {
  content: "> ";
  color: var(--accent);
}
.nav__link--accent {
  color: var(--fg);
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), background var(--t);
}
.nav__link--accent:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: transform var(--t), opacity var(--t);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn::before { content: "["; margin-right: 9px; opacity: 0.55; }
.btn::after { content: "]"; margin-left: 9px; opacity: 0.55; }
.btn:hover { transform: translateY(-1px); }
.btn:hover::before, .btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn--primary:hover { background: var(--accent-strong); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn--large {
  height: 54px;
  padding: 0 26px;
  font-size: 0.95rem;
}

/* ---------- hero ---------- */

.hero {
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto -10%;
  height: 60vh;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-6);
  align-items: center;
}

.hero__text {
  max-width: 640px;
}

.hero__title {
  margin-bottom: var(--space-4);
}
.hero__title::after {
  content: "_";
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.06em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__avatar {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
  max-width: 380px;
  justify-self: start;
  width: 100%;
  order: -1;
}
.hero__avatar::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 229, 168, 0.25);
  z-index: 2;
  pointer-events: none;
}
.hero__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}
.hero__avatar picture { display: contents; }
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__avatar-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 3;
}
.hero__avatar-name {
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
}
.hero__avatar-role {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.hero__avatar-role::before { content: "> "; opacity: 0.7; }

.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-muted);
  margin-bottom: var(--space-5);
  max-width: 680px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ---------- section ---------- */

.section {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
}
.section--alt {
  background: var(--bg-elev);
}

.section__header {
  margin-bottom: var(--space-5);
  max-width: 720px;
}
.section__title { margin-top: 0; }

/* ---------- grids ---------- */

.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- benefit cards ---------- */

.benefit-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.benefit-card::after {
  content: "+";
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  color: var(--border-strong);
  line-height: 1;
  transition: color var(--t);
}
.benefit-card:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
.benefit-card:hover::after { color: var(--accent); }

.benefit-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.benefit-card__title {
  margin-bottom: var(--space-2);
}

.benefit-card__text {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* ---------- trust ---------- */

.trust-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
}

.trust-block__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-4);
}
.trust-block__title::before {
  content: "## ";
  color: var(--accent);
  opacity: 0.7;
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.steps li {
  position: relative;
  padding-left: 48px;
  color: var(--fg-muted);
  counter-increment: step;
}
.steps li strong { color: var(--fg); font-weight: 600; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--fg);
  transition: border-color var(--t), color var(--t);
}
.tags li:hover { border-color: var(--accent); color: var(--accent); }

.bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--fg-muted);
}
.bullets li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- faq ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq details[open] {
  border-color: var(--accent);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "[+]";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "[-]"; }
.faq details p {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ---------- pricing ---------- */

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-4) var(--space-4);
  transition: border-color var(--t), transform var(--t);
}
.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.price-card--featured {
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.price-card--featured:hover { border-color: var(--accent); }

.price-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.price-card__name {
  font-size: 1.1rem;
}

.price-card__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.price-card__price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0;
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.price-card__features li {
  position: relative;
  padding-left: 28px;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.price-card__features li::before {
  content: "[\2713]";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.price-card .btn {
  width: 100%;
  margin-top: var(--space-2);
}

/* ---------- cta ---------- */

.cta {
  text-align: center;
}
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.cta__title {
  margin-bottom: var(--space-3);
}
.cta__text {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: var(--space-5);
}

/* ---------- clients ---------- */

.clients {
  margin-top: var(--space-6);
}
.clients__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-3);
}
.clients__label::before { content: "// "; opacity: 0.6; }

.clients__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}
.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--space-4);
  background: #f4f4f5;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  opacity: 0.9;
  transition: opacity var(--t), transform var(--t);
}
.clients__item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.clients__item img {
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
/* per-logo heights — equalize optical text height (icon logos need taller boxes) */
.clients__item img[src*="megafon"]   { height: 18px; }
.clients__item img[src*="zerocoder"] { height: 32px; }
.clients__item img[src*="tatneft"]   { height: 30px; }
.clients__item img[src*="eplex"]     { height: 30px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-2);
}
.footer__label::before { content: "// "; opacity: 0.6; }
.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer__list a {
  color: var(--fg);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color var(--t), color var(--t);
}
.footer__list a:hover { border-color: var(--accent); color: var(--accent); }
.footer__copy {
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ============================================================
   Tablet
   ============================================================ */

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

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 760px) {

  :root {
    --space-6: 48px;
    --space-7: 64px;
  }

  .container { padding: 0 var(--space-3); }

  /* nav */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform var(--t), visibility var(--t);
  }
  .site-header.is-open .nav { transform: translateY(0); visibility: visible; }

  .nav__link {
    padding: var(--space-3);
    border-bottom: 1px solid var(--border);
  }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link--accent {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    margin-top: var(--space-2);
  }

  .nav-toggle { display: flex; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* grids → single column */
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  /* hero */
  .hero { padding: var(--space-6) 0 var(--space-5); }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .hero__avatar {
    order: -1;
    justify-self: center;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
  }
  .hero__avatar::after { display: none; }
  .hero__avatar-caption { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  /* sections */
  .section { padding: var(--space-6) 0; }

  .trust-block { padding: var(--space-4); }

  /* footer */
  .footer__inner { flex-direction: column; }
}
