/* B2B Forge — blueprint / industrial */

:root {
  --paper: #ede8db;
  --paper-2: #e0dac8;
  --paper-3: #f4f0e3;
  --ink: #0f1729;
  --ink-2: #233149;
  --ink-3: #5d6a82;
  --blue: #103369;
  --blue-2: #1d2a4d;
  --cyan: #2b78a3;
  --ochre: #c89132;
  --ochre-soft: #e7c98a;
  --rule: rgba(15,23,41,0.20);
  --rule-strong: rgba(15,23,41,0.55);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --display: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --sans: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 30%, rgba(237, 232, 219, 0.85) 80%);
  pointer-events: none;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

/* ────── HEADER ────── */
.head {
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper-3);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.head-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  padding: 18px 0;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
}
.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand-logo {
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  background: var(--ochre);
  color: var(--ink);
  position: relative;
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed var(--rule-strong);
  pointer-events: none;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-name span { font-weight: 400; color: var(--blue); }

.nav-h {
  display: flex;
  gap: 26px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-h a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav-h a:hover, .nav-h a[aria-current] {
  border-bottom-color: var(--ochre);
  color: var(--blue);
}

.head-spec {
  text-align: right;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.menu-toggle { display: none; background: none; border: 1px solid var(--ink); padding: 6px 12px; font-family: var(--mono); font-size: 11px; cursor: pointer; }
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .head-inner { grid-template-columns: auto auto; }
  .nav-h { display: none; grid-column: 1 / -1; flex-direction: column; gap: 14px; padding: 18px 0 4px; border-top: 1px solid var(--rule); }
  .nav-h.open { display: flex; }
  .head-spec { display: none; }
}

/* ────── HERO ────── */
.hero {
  padding: clamp(60px, 9vw, 130px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  border-bottom: 1px solid var(--rule-strong);
}
.hero-spec-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: clamp(28px, 4vw, 50px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}
.hero-spec-bar strong { color: var(--blue); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 9vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 16ch;
  font-variation-settings: "wdth" 90;
}
.hero h1 .light {
  font-weight: 200;
  font-style: italic;
  color: var(--blue);
  font-variation-settings: "wdth" 110;
}
.hero h1 .ochre { color: var(--ochre); }

.hero-tail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  position: relative;
}
.hero-tail::before, .hero-tail::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 10px; height: 10px;
  background: var(--ochre);
  border: 1.5px solid var(--ink);
}
.hero-tail::before { left: -5px; }
.hero-tail::after { right: -5px; }

@media (max-width: 800px) { .hero-tail { grid-template-columns: 1fr; } }

.hero-fact {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}
.hero-fact strong {
  display: block;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hero-fact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-top: 6px;
  display: block;
}

/* ────── SECTION ────── */
.section { padding: clamp(60px, 9vw, 130px) 0; border-bottom: 1px solid var(--rule-strong); position: relative; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-3);
}
.section-tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--ochre);
  border: 1px solid var(--ink);
}
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}
.section-lead {
  font-size: 19px;
  max-width: 56ch;
  margin-top: 22px;
  color: var(--ink-2);
}

/* ────── SPEC TABLE ────── */
.spec {
  border: 2px solid var(--ink);
  background: var(--paper-3);
  margin-top: 60px;
  position: relative;
}
.spec::before {
  content: "СПЕЦИФИКАЦИЯ / DOC. 02-A";
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--paper);
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 28px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  align-items: baseline;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spec-row dd {
  color: var(--ink);
  font-size: 16px;
}
.spec-row dd em {
  font-style: italic;
  color: var(--blue);
  font-weight: 500;
}
.spec-row .num {
  font-family: var(--mono);
  font-size: 14px;
  text-align: right;
  color: var(--ochre);
  font-weight: 500;
}

@media (max-width: 800px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-row .num { text-align: left; }
}

/* ────── SVC CARDS ────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  margin-top: 50px;
}
@media (max-width: 800px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 32px;
  background: var(--paper-3);
  position: relative;
  transition: background 0.15s;
}
.svc:hover { background: var(--paper-2); }
.svc:hover .svc-num { color: var(--ochre); }

.svc-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}
.svc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.svc h3 em { font-style: italic; font-weight: 300; color: var(--blue); }
.svc p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 18px;
}
.svc-meta {
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 8px;
}
.svc-meta strong { color: var(--ochre); font-weight: 500; }

/* ────── CASES ────── */
.case-list { display: grid; gap: 0; margin-top: 50px; border-top: 2px solid var(--ink); }
.case {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 2px solid var(--ink);
  align-items: start;
}
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 14px; }
}
.case-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variation-settings: "wdth" 70;
}
.case-num small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-top: 6px;
  font-weight: 400;
}
.case-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.case-body h3 em { font-style: italic; font-weight: 300; color: var(--blue); }
.case-body p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.case-body p + p { margin-top: 8px; }
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.case-stack span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-3);
  letter-spacing: 0.06em;
}
.case-result {
  border: 1.5px solid var(--ink);
  padding: 16px 18px;
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}
.case-result strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ochre);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* ────── PROCESS ────── */
.process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 50px;
  border-top: 2px solid var(--ink);
  position: relative;
}
@media (max-width: 1000px) { .process-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-rail { grid-template-columns: 1fr; } }
.process-step {
  border-right: 1px solid var(--rule);
  padding: 28px 20px;
  background: var(--paper-3);
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--ochre);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.process-step:last-child { border-right: none; }
.process-step .step-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}
.process-step h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.process-step p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ────── TEAM ────── */
.team-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 50px;
  border: 2px solid var(--ink);
}
@media (max-width: 900px) { .team-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-list { grid-template-columns: 1fr; } }
.tm {
  border-right: 1px solid var(--rule);
  padding: 24px;
  background: var(--paper-3);
  position: relative;
}
.tm:last-child { border-right: none; }
.tm-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ochre);
  display: block;
  margin-bottom: 14px;
}
.tm-avatar {
  width: 60px; height: 60px;
  background: var(--blue);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  border: 1.5px solid var(--ink);
}
.tm-avatar.ochre { background: var(--ochre); color: var(--ink); }
.tm-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.tm-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ────── FAQ ────── */
.faq { margin-top: 40px; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); cursor: pointer; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding: 24px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.faq-q::after {
  content: "→";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ochre);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-right: 80px;
}
.faq-item.open .faq-a { max-height: 700px; padding-bottom: 24px; }

/* ────── CTA ────── */
.cta {
  background: var(--blue);
  color: var(--paper);
  padding: clamp(60px, 9vw, 120px) 0;
  position: relative;
  border-bottom: 1px solid var(--ink);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta * { position: relative; z-index: 1; }
.cta h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 78px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.cta h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ochre-soft);
}
.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 50px;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--ochre);
  color: var(--ink);
  border: 1.5px solid var(--ochre);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: background 0.15s;
}
.btn:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.cta-side {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(237, 232, 219, 0.7);
  max-width: 38ch;
}
.cta-side a { color: var(--ochre-soft); border-bottom: 1px solid; }

/* ────── FOOTER ────── */
.foot {
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding: 50px 0 32px;
  letter-spacing: 0.04em;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  font-weight: 600;
}
.foot a { display: block; margin-bottom: 6px; }
.foot a:hover { color: var(--blue); }
.foot-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ────── PAGE ────── */
.page-head { padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--rule-strong); }
.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 90;
}
.page-head h1 em { font-style: italic; font-weight: 300; color: var(--blue); }
.page-head p { max-width: 56ch; font-size: 19px; margin-top: 24px; color: var(--ink-2); }

.prose { max-width: 68ch; font-size: 17px; line-height: 1.65; }
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  margin: 50px 0 16px;
  line-height: 1.05;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  margin: 32px 0 10px;
}
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 14px 24px; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; }
.prose a { border-bottom: 1px solid var(--ochre); padding-bottom: 1px; }

/* ────── COOKIE BANNER ────── */
.cookie-banner {
  position: fixed;
  bottom: 18px; left: 18px; right: 18px;
  max-width: 760px;
  margin-inline: auto;
  background: var(--blue);
  border: 2px solid var(--ink);
  padding: 18px 22px;
  z-index: 100;
  display: flex; gap: 18px; align-items: center;
  color: var(--paper);
  animation: cb-up 0.4s ease;
}
.cookie-banner__inner { display: contents; }
.cookie-banner__text {
  font-family: var(--mono); font-size: 12px; line-height: 1.55; margin: 0; flex: 1;
  letter-spacing: 0.02em;
}
.cookie-banner__text a { color: var(--ochre); border-bottom: 1px solid; padding-bottom: 1px; }
.cookie-banner__btn {
  background: var(--ochre);
  color: var(--ink);
  border: 1.5px solid var(--ochre);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner__btn:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.cookie-banner.is-hidden { opacity: 0; transform: translateY(20px); transition: all 0.3s; }
@keyframes cb-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner__btn { align-self: flex-start; }
}
