/* K2Crypto v2 — minimal brutalist fintech */
:root {
  --bg: #fafafa;
  --fg: #0a0a0a;
  --muted: #404040;
  --line: #0a0a0a;
  --grid: rgba(10, 10, 10, 0.06);
  --accent: #be185d;
  --accent-dim: rgba(190, 24, 93, 0.12);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Заголовки: Inter — ровная кириллица, хорошая читаемость */
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Terminal grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Typography —— */
.mono {
  font-family: var(--font-mono);
}

.display {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
  font-feature-settings: "locl" 1;
}

.display--break {
  display: block;
}

.display--shift {
  display: block;
  margin-left: clamp(0px, 8vw, 120px);
  color: var(--accent);
}

.display--huge {
  font-size: clamp(2.5rem, 9vw, 5.5rem);
}

.display--sub {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  margin-top: 0.5em;
  max-width: 18ch;
}

.meta-line {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin: 0 0 2rem;
}

/* —— Layout shell —— */
.shell {
  --shell-gutter: clamp(1.5rem, 5.5vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(var(--shell-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--shell-gutter), env(safe-area-inset-right, 0px));
}

.rule {
  height: 0;
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.rule--thick {
  border-top-width: 2px;
}

/* —— Header —— */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  border-bottom: 2px solid var(--line);
  background: var(--bg);
}

.hdr__logo {
  display: block;
  line-height: 0;
}

.hdr__logo img {
  height: 36px;
  width: auto;
  display: block;
  filter: grayscale(1) contrast(1.1);
}

.hdr__logo:hover img {
  filter: none;
}

.hdr__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hdr__nav a {
  color: var(--fg);
}

.hdr__nav a:hover {
  color: var(--accent);
}

.hdr__cta {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--line);
  color: var(--fg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.hdr__cta:hover {
  background: var(--fg);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--fg);
  color: var(--bg);
}

/* —— Hero —— */
.hero {
  padding: clamp(48px, 10vw, 100px) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 8vw, 80px);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

.hero__statblock {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stat-cell {
  padding: clamp(16px, 3vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 120px;
}

.stat-cell:nth-child(2n) {
  border-right: none;
}

.stat-cell:nth-last-child(-n + 2) {
  border-bottom: none;
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--fg);
}

.stat-num--accent {
  color: var(--accent);
}

.stat-pct {
  font-size: 0.42em;
  font-weight: 700;
  vertical-align: 0.2em;
  margin-left: 1px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  max-width: 14ch;
}

.values-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--line);
}

.values-strip span {
  flex: 1 1 auto;
  min-width: 100px;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
  text-align: center;
}

.values-strip span:last-child {
  border-right: none;
}

/* —— Document sections —— */
.doc-section {
  border-top: 2px solid var(--line);
  padding: clamp(48px, 8vw, 96px) 0;
}

.doc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

@media (max-width: 640px) {
  .doc-head {
    grid-template-columns: 1fr;
  }
}

.doc-ref {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 6px;
}

.doc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  max-width: 20ch;
}

.doc-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
}

/* —— Clause grid (services) —— */
.clause-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .clause-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.clause {
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

@media (min-width: 700px) {
  .clause:nth-child(2n) {
    border-right: none;
  }

  .clause:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 699px) {
  .clause {
    border-right: none;
  }

  .clause:last-child {
    border-bottom: none;
  }
}

.clause__id {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 12px;
}

.clause__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.clause__text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* —— Terminal list (tags) —— */
.term-block {
  margin-top: 40px;
  border: 1px solid var(--line);
  background: #fff;
}

.term-block__hdr {
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--fg);
  color: var(--bg);
}

.term-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.term-lines li {
  padding: 10px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.term-lines li::before {
  content: ">";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 600;
}

.term-lines li:last-child {
  border-bottom: none;
}

/* —— Legal two-column —— */
.legal-split {
  display: grid;
  gap: 32px;
}

@media (min-width: 800px) {
  .legal-split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.legal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.legal-list li {
  padding: 16px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list li::before {
  content: attr(data-mark);
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

/* —— Pipeline —— */
.pipeline-wrap {
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 8px;
}

.pipeline {
  display: flex;
  align-items: stretch;
  min-width: min(1100px, 100%);
}

.pipeline__step {
  flex: 1 1 140px;
  min-width: 120px;
  border: 1px solid var(--line);
  padding: 16px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.pipeline__idx {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}

.pipeline__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.pipeline__desc {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.pipeline__join {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  user-select: none;
  align-self: center;
}

@media (max-width: 800px) {
  .pipeline {
    flex-direction: column;
    min-width: 0;
  }

  .pipeline__join {
    flex: 0 0 auto;
    padding: 4px 0;
    transform: rotate(90deg);
  }
}

/* —— Contact —— */
.contact-row {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .contact-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-cell {
  padding: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .contact-cell {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .contact-cell:last-child {
    border-right: none;
  }
}

@media (max-width: 699px) {
  .contact-cell:last-child {
    border-bottom: none;
  }
}

.contact-cell__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.btn-tg {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid var(--line);
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-tg:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.company-lines {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.company-lines strong {
  color: var(--fg);
  font-weight: 600;
}

.inline-link {
  margin-top: 24px;
  font-size: 12px;
}

/* —— Footer —— */
.ftr {
  border-top: 2px solid var(--line);
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ftr a {
  color: var(--fg);
}

.ftr__links {
  display: flex;
  gap: 24px;
}
