:root {
  --kd-graphite: #111820;
  --kd-graphite-2: #1b2630;
  --kd-paper: #f5f2ea;
  --kd-paper-2: #ebe5d8;
  --kd-blueprint: #185c8d;
  --kd-cyan: #19b6d2;
  --kd-redline: #d54836;
  --kd-brass: #b78b42;
  --kd-archive: #507a57;
  --kd-line: #b8c1c8;
  --kd-ink-soft: #4b5863;
  --kd-font-display: "IBM Plex Sans Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --kd-font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --kd-font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--kd-paper);
  font-family: var(--kd-font-body);
  /* Тёмный фон задаём самим body, а не только фикс-canvas: на мобильных вьюпорт
     меняется (адресная строка), canvas в px отстаёт и из-под него вылезал светлый фон. */
  background:
    linear-gradient(rgba(24, 92, 141, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 92, 141, .08) 1px, transparent 1px),
    #101820;
  background-size: 24px 24px;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

#draftingScene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #101820;
}

.cursor-line {
  position: fixed;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(25, 182, 210, .65), transparent);
  opacity: .5;
  pointer-events: none;
  z-index: -1;
  animation: scan 9s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(17, 24, 32, .84);
  border-bottom: 1px solid rgba(184, 193, 200, .28);
  backdrop-filter: blur(18px);
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 8px;
  min-width: 124px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 242, 234, .46);
}

.brand-corner {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--kd-cyan);
  border-left: 3px solid var(--kd-cyan);
}

.brand-main {
  font-family: var(--kd-font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: .82;
  letter-spacing: 0;
}

.brand-meta {
  color: var(--kd-cyan);
  font-family: var(--kd-font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(245, 242, 234, .82);
  font-family: var(--kd-font-mono);
  font-size: 13px;
}

.top-nav a {
  position: relative;
  padding: 8px 0;
}

.top-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--kd-cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

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

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--kd-font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: transform .24s ease, background .24s ease, border-color .24s ease, color .24s ease;
}

.header-cta {
  color: #fff;
  background: var(--kd-redline);
}

.header-cta svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: var(--kd-redline);
}

.btn.primary:hover {
  background: #b93b2c;
}

.btn.secondary {
  color: var(--kd-paper);
  border-color: rgba(245, 242, 234, .62);
  background:
    repeating-linear-gradient(135deg, rgba(245, 242, 234, .08), rgba(245, 242, 234, .08) 2px, transparent 2px, transparent 8px);
}

.btn.secondary.light {
  color: var(--kd-paper);
  border-color: rgba(245, 242, 234, .72);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 610px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 88svh;
  padding: clamp(52px, 7vw, 90px) clamp(18px, 4vw, 56px) 32px;
  color: #fff;
}

.hero::after {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  height: 1px;
  background: rgba(245, 242, 234, .3);
  content: "";
}

.hero-copy {
  max-width: 790px;
  min-width: 0; /* грид-колонка не должна давать контенту вылезать под соседнюю */
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--kd-cyan);
  font-family: var(--kd-font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--kd-font-display);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  /* Слово «КОНСТРУКТОРСКАЯ» должно влезать в колонку: прежний clamp до 112px
     вылезал под картинку на десктопе и за экран на мобильных */
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: .9;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 670px;
  margin: 28px 0 0;
  color: rgba(245, 242, 234, .84);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.drawing-board {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(25, 182, 210, .42);
  background:
    linear-gradient(rgba(25, 182, 210, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 182, 210, .12) 1px, transparent 1px),
    linear-gradient(rgba(245, 242, 234, .04), rgba(245, 242, 234, .02));
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  overflow: hidden;
}

/* Реальный чертёж (BotHub) внутри фирменной рамки КБ */
.drawing-board__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.drawing-board .sheet-label,
.drawing-board::before,
.drawing-board::after {
  z-index: 2;
}

.drawing-board::before,
.drawing-board::after {
  position: absolute;
  width: 56px;
  height: 56px;
  content: "";
}

.drawing-board::before {
  top: 18px;
  left: 18px;
  border-top: 2px solid var(--kd-cyan);
  border-left: 2px solid var(--kd-cyan);
}

.drawing-board::after {
  right: 18px;
  bottom: 18px;
  border-right: 2px solid var(--kd-cyan);
  border-bottom: 2px solid var(--kd-cyan);
}

.sheet-label {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(245, 242, 234, .72);
  font-family: var(--kd-font-mono);
  font-size: 11px;
}

.assembly-lines {
  position: absolute;
  inset: 68px 40px 126px;
}

.axis {
  position: absolute;
  background: rgba(25, 182, 210, .46);
}

.axis-x {
  top: 52%;
  right: 4%;
  left: 4%;
  height: 1px;
}

.axis-y {
  top: 8%;
  bottom: 5%;
  left: 51%;
  width: 1px;
}

.part {
  position: absolute;
  border: 2px solid rgba(245, 242, 234, .88);
  animation: partPulse 4s ease-in-out infinite;
}

.part-a {
  top: 19%;
  left: 24%;
  width: 48%;
  height: 54%;
  border-radius: 50%;
}

.part-b {
  top: 34%;
  left: 39%;
  width: 18%;
  height: 26%;
  border-color: var(--kd-cyan);
  transform: rotate(45deg);
  animation-delay: .4s;
}

.part-c {
  top: 9%;
  left: 13%;
  width: 22%;
  height: 18%;
  border-color: var(--kd-brass);
  animation-delay: .8s;
}

.dimension,
.callout {
  position: absolute;
  color: rgba(245, 242, 234, .9);
  font-family: var(--kd-font-mono);
  font-size: 12px;
}

.dimension {
  padding-top: 8px;
  border-top: 1px solid rgba(245, 242, 234, .56);
}

.dim-1 {
  right: 9%;
  bottom: 9%;
  width: 132px;
}

.dim-2 {
  top: 22%;
  left: 55%;
  color: var(--kd-cyan);
}

.callout {
  padding-left: 38px;
}

.callout::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

.callout-1 {
  top: 8%;
  left: 4%;
}

.callout-2 {
  right: 3%;
  bottom: 33%;
  color: var(--kd-brass);
}

.callout-3 {
  bottom: 0;
  left: 18%;
  color: var(--kd-redline);
}

.stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 76px 112px;
  width: 188px;
  border: 1px solid rgba(245, 242, 234, .68);
  color: rgba(245, 242, 234, .88);
  font-family: var(--kd-font-mono);
  font-size: 10px;
}

.stamp span,
.stamp strong {
  min-height: 24px;
  padding: 5px 7px;
  border-right: 1px solid rgba(245, 242, 234, .38);
  border-bottom: 1px solid rgba(245, 242, 234, .38);
}

.stamp strong {
  color: #fff;
  font-weight: 600;
}

.quick-spec {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(245, 242, 234, .26);
}

.quick-spec a {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 12px 18px;
  border-right: 1px solid rgba(245, 242, 234, .22);
  color: rgba(245, 242, 234, .82);
  font-family: var(--kd-font-mono);
  font-size: 13px;
  transition: background .24s ease, color .24s ease;
}

.quick-spec a:last-child {
  border-right: 0;
}

.quick-spec a:hover {
  color: #fff;
  background: rgba(25, 182, 210, .12);
}

.quick-spec span {
  color: var(--kd-cyan);
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

/* Светлые секции (бумажный фон) — тёмный текст: иначе заголовки/карточки
   наследуют светлый body-цвет (var(--kd-paper)) и получается крем-на-креме.
   Регрессия появилась, когда body стал тёмным, а его цвет — светлым (10267fb). */
.services-section,
.process-section,
.knowledge-section {
  color: var(--kd-graphite);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(240px, 460px);
  gap: 40px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto 36px;
}

.section-head.compact {
  display: block;
}

.section-head h2,
.registry-copy h2,
.request-panel h2 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: .92;
  text-transform: uppercase;
}

.section-head p:not(.eyebrow),
.registry-copy p,
.request-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--kd-ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.services-section {
  background:
    linear-gradient(rgba(17, 24, 32, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, .04) 1px, transparent 1px),
    var(--kd-paper);
  background-size: 24px 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--kd-line);
  border: 1px solid var(--kd-line);
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 24px;
  background: rgba(245, 242, 234, .96);
  overflow: hidden;
  transition: background .25s ease, transform .25s ease;
}

.service-card:hover {
  z-index: 2;
  background: #fff;
  transform: translateY(-4px);
}

.service-card::after {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(24, 92, 141, .2);
  border-radius: 50%;
  content: "";
}

.service-card--visual {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 0;
}

.service-card--visual::after {
  display: none;
}

.service-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--kd-graphite);
}

.service-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 32, .04) 34%, rgba(17, 24, 32, .7) 100%);
  content: "";
  pointer-events: none;
}

.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.service-card--visual:hover .service-card__media img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.service-card__media .doc-no {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  color: var(--kd-cyan);
  background: rgba(17, 24, 32, .82);
  border: 1px solid rgba(25, 182, 210, .4);
  backdrop-filter: blur(7px);
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.service-card.service-card--visual h3 {
  margin-top: 0;
  font-size: 29px;
}

.service-card.service-card--visual p {
  margin-top: 14px;
}

.service-card.service-card--visual dl {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 24, 32, .12);
}

.doc-no {
  color: var(--kd-blueprint);
  font-family: var(--kd-font-mono);
  font-size: 12px;
}

.service-card h3 {
  margin-top: 40px;
  font-size: 34px;
  line-height: .98;
}

.service-card p {
  margin: 18px 0 0;
  color: var(--kd-ink-soft);
  line-height: 1.55;
}

.service-card dl {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 0;
  font-family: var(--kd-font-mono);
  font-size: 12px;
}

.service-card dt {
  color: var(--kd-ink-soft);
}

.service-card dd {
  margin: 0;
  font-weight: 600;
}

.price-section {
  color: #fff;
  background:
    linear-gradient(rgba(25, 182, 210, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 182, 210, .08) 1px, transparent 1px),
    var(--kd-graphite);
  background-size: 24px 24px;
}

.price-section .section-head p:not(.eyebrow) {
  color: rgba(245, 242, 234, .74);
}

.price-ledger {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid rgba(245, 242, 234, .28);
  font-family: var(--kd-font-mono);
}

.ledger-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr .8fr .6fr;
  min-height: 62px;
  border-bottom: 1px solid rgba(245, 242, 234, .18);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row span,
.ledger-row strong {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-right: 1px solid rgba(245, 242, 234, .18);
}

.ledger-row span:last-child,
.ledger-row strong:last-child {
  border-right: 0;
}

.ledger-head {
  color: var(--kd-cyan);
  background: rgba(25, 182, 210, .08);
  text-transform: uppercase;
}

.ledger-row strong {
  color: var(--kd-brass);
}

.process-section {
  background: var(--kd-paper-2);
}

.process-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  max-width: var(--max);
  margin: 0 auto 46px;
  color: var(--kd-paper);
  background: var(--kd-graphite);
  border: 1px solid rgba(17, 24, 32, .36);
}

.process-proof__media {
  position: relative;
  min-height: 410px;
  margin: 0;
  overflow: hidden;
  background: #0e141b;
}

.process-proof__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(14, 20, 27, .82));
  content: "";
}

.process-proof__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-proof__media figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 1;
  color: rgba(245, 242, 234, .78);
  font-family: var(--kd-font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.process-proof__copy {
  align-self: center;
  padding: clamp(30px, 4vw, 54px);
}

.process-proof__copy h3 {
  font-size: clamp(32px, 3.5vw, 47px);
  line-height: .96;
  text-transform: uppercase;
}

.process-proof__copy > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: rgba(245, 242, 234, .72);
  line-height: 1.6;
}

.process-proof__copy ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 26px;
  padding: 0;
  color: rgba(245, 242, 234, .86);
  list-style: none;
}

.process-proof__copy li {
  position: relative;
  padding-left: 20px;
}

.process-proof__copy li::before {
  position: absolute;
  top: .7em;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--kd-cyan);
  content: "";
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--kd-graphite);
}

.process-line li {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  border-right: 1px solid rgba(17, 24, 32, .24);
}

.process-line li:last-child {
  border-right: 0;
}

.process-line span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--kd-redline);
  font-family: var(--kd-font-mono);
  font-size: 13px;
}

.process-line strong {
  display: block;
  font-family: var(--kd-font-display);
  font-size: 30px;
  line-height: .98;
  text-transform: uppercase;
}

.process-line p {
  margin: 14px 0 0;
  color: var(--kd-ink-soft);
  line-height: 1.5;
}

.registry-band {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  gap: 32px;
  align-items: end;
  color: #fff;
  background-color: var(--kd-graphite-2);
  background-image:
    linear-gradient(90deg, rgba(27, 38, 48, 1) 0%, rgba(27, 38, 48, .98) 47%, rgba(27, 38, 48, .7) 72%, rgba(27, 38, 48, .46) 100%),
    url('/kd/images/home/tool-registry-v1.webp');
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, min(58%, 780px) auto;
}

.registry-copy {
  max-width: 780px;
}

.registry-copy p {
  color: rgba(245, 242, 234, .78);
}

.knowledge-section {
  background: var(--kd-paper);
}

.knowledge-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--kd-line);
  border: 1px solid var(--kd-line);
}

.knowledge-item {
  display: grid;
  gap: 26px;
  min-height: 154px;
  padding: 22px;
  background: rgba(245, 242, 234, .96);
  font-family: var(--kd-font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: background .24s ease, color .24s ease;
}

.knowledge-item span {
  color: var(--kd-blueprint);
  font-family: var(--kd-font-mono);
  font-size: 12px;
}

.knowledge-item:hover {
  color: #fff;
  background: var(--kd-blueprint);
}

.knowledge-item:hover span {
  color: var(--kd-cyan);
}

.request-section {
  background:
    linear-gradient(rgba(25, 182, 210, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 182, 210, .08) 1px, transparent 1px),
    #0e141b;
  background-size: 24px 24px;
}

.request-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  border: 1px solid rgba(245, 242, 234, .26);
  background: rgba(17, 24, 32, .72);
}

.request-panel p:not(.eyebrow) {
  color: rgba(245, 242, 234, .76);
}

.request-form {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr auto;
  gap: 12px;
  margin-top: 34px;
  align-items: end;
}

.request-form label {
  display: grid;
  gap: 8px;
}

.request-form label span {
  color: rgba(245, 242, 234, .7);
  font-family: var(--kd-font-mono);
  font-size: 12px;
}

.request-form input,
.request-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(245, 242, 234, .32);
  border-radius: 4px;
  background: rgba(245, 242, 234, .06);
}

.request-form input::placeholder {
  color: rgba(245, 242, 234, .38);
}

.request-form select option {
  color: var(--kd-graphite);
}

/* Scroll-reveal отключён 2026-07-04: контент виден сразу, без fade-up при скролле
   (лагало на слабых устройствах). Hover-анимации карточек/кнопок сохранены. */
.reveal,
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes scan {
  from {
    transform: translateX(-8vw);
  }
  to {
    transform: translateX(108vw);
  }
}

@keyframes partPulse {
  0%,
  100% {
    opacity: .78;
    filter: drop-shadow(0 0 0 rgba(25, 182, 210, 0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(25, 182, 210, .34));
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .drawing-board {
    min-height: 430px;
  }

  .services-grid,
  #directions .services-grid,
  .process-line,
  .knowledge-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .registry-band,
  .request-form {
    grid-template-columns: 1fr;
  }

  .process-proof {
    grid-template-columns: 1fr;
  }

  .process-proof__media {
    min-height: 370px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .brand-mark {
    min-width: 74px;
  }

  .brand-main {
    font-size: 24px;
  }

  .brand-meta {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(30px, 9.6vw, 44px);
  }

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

  .drawing-board {
    min-height: 340px;
  }

  .service-card--visual {
    min-height: 0;
  }

  .process-proof__media {
    min-height: 270px;
  }

  .process-proof__copy {
    padding: 28px 20px 30px;
  }

  .registry-band {
    background-image:
      linear-gradient(180deg, rgba(27, 38, 48, .96), rgba(27, 38, 48, .84)),
      url('/kd/images/home/tool-registry-v1.webp');
    background-position: center;
    background-size: cover;
  }

  .assembly-lines {
    inset: 56px 22px 110px;
  }

  .callout-2,
  .callout-3,
  .dim-1 {
    display: none;
  }

  .quick-spec,
  .services-grid,
  #directions .services-grid,
  .process-line,
  .knowledge-index {
    grid-template-columns: 1fr;
  }

  .quick-spec a {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 242, 234, .22);
  }

  .quick-spec a:last-child {
    border-bottom: 0;
  }

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

  .ledger-row span,
  .ledger-row strong {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 242, 234, .14);
  }

  .ledger-head {
    display: none;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .request-panel {
    padding: 24px 18px;
  }
}

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

/* ============ Футер (перенос из дизайн-дока «Футер») ============ */
.site-footer {
  color: rgba(245, 242, 234, .78);
  background: var(--kd-graphite);
  border-top: 1px solid rgba(184, 193, 200, .24);
  padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 56px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand .brand-mark { color: #fff; }
.footer-tagline { margin: 18px 0 0; max-width: 300px; font-size: 14px; line-height: 1.55; }
.footer-phone {
  display: inline-block; margin-top: 14px; color: #fff;
  font-family: var(--kd-font-mono); font-size: 15px; font-weight: 600;
}
.footer-phone:hover { color: var(--kd-cyan); }
.footer-title {
  margin: 0 0 14px; color: var(--kd-cyan);
  font-family: var(--kd-font-mono); font-size: 11px; text-transform: uppercase;
}
.footer-links { display: grid; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-sign {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: end;
  max-width: var(--max); margin: 48px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(184, 193, 200, .2);
}
.footer-copy { font-family: var(--kd-font-mono); font-size: 12px; color: rgba(245, 242, 234, .5); }
.footer-stamp {
  display: grid; grid-template-columns: repeat(4, auto);
  border: 1px solid rgba(245, 242, 234, .34);
  font-family: var(--kd-font-mono); font-size: 10px; color: rgba(245, 242, 234, .6);
}
.footer-stamp span, .footer-stamp strong {
  padding: 5px 9px; border-right: 1px solid rgba(245, 242, 234, .22);
}
.footer-stamp strong { color: rgba(245, 242, 234, .9); font-weight: 600; }
.footer-stamp :last-child { border-right: 0; }
.request-status { margin: 16px 0 0; font-family: var(--kd-font-mono); font-size: 13px; min-height: 18px; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Доработка главной 2026-07: цифры бюро, журнал работ (кейсы ГИСП),
   база знаний с og-обложками, FAQ бюро. Тёмная тема главной.
   ============================================================ */

/* ---- Бюро в цифрах ---- */
.figures-band .figures-grid,
.cases-section .cases-ledger,
.cases-workbench,
.knowledge-covers,
.knowledge-more,
.home-faq-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: rgba(245, 242, 234, .18);
  border: 1px solid rgba(245, 242, 234, .28);
}
.figure-cell {
  padding: 26px 24px;
  background: rgba(17, 24, 32, .82);
}
.figure-cell strong {
  display: block;
  font-family: var(--kd-font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1;
  color: var(--kd-cyan);
}
.figure-cell span {
  display: block;
  margin-top: 8px;
  color: rgba(245, 242, 234, .68);
  font-size: 13.5px;
  line-height: 1.45;
}

/* ---- Журнал работ: разборы дел ГИСП ---- */
.cases-workbench {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.58fr);
  gap: 1px;
  background: rgba(245, 242, 234, .28);
  border: 1px solid rgba(245, 242, 234, .28);
}

.cases-workbench__media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0e141b;
}

.cases-workbench__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 27, .04) 40%, rgba(14, 20, 27, .9));
  content: "";
}

.cases-workbench__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases-workbench__media figcaption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
  color: rgba(245, 242, 234, .8);
  font-size: 13px;
  line-height: 1.45;
}

.cases-workbench__media figcaption span {
  display: block;
  margin-bottom: 7px;
  color: var(--kd-cyan);
  font-family: var(--kd-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.cases-workbench .cases-ledger {
  max-width: none;
  margin: 0;
  border: 0;
}

.cases-ledger {
  border: 1px solid rgba(245, 242, 234, .28);
}
.case-row {
  display: grid;
  grid-template-columns: .8fr 2.4fr .6fr .8fr;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(245, 242, 234, .18);
  transition: background .2s ease;
}
.case-row:last-child { border-bottom: 0; }
.case-row > span {
  padding: 14px 18px;
  border-right: 1px solid rgba(245, 242, 234, .12);
}
.case-row > span:last-child { border-right: 0; }
.case-head {
  font-family: var(--kd-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--kd-cyan);
  background: rgba(25, 182, 210, .08);
}
a.case-row:hover { background: rgba(24, 92, 141, .28); }
.case-no {
  font-family: var(--kd-font-mono);
  font-size: 13px;
  color: var(--kd-brass);
  white-space: nowrap;
}
.case-title {
  font-size: 15px;
  line-height: 1.4;
  color: var(--kd-paper);
}
.case-date {
  font-family: var(--kd-font-mono);
  font-size: 12px;
  color: rgba(245, 242, 234, .55);
  white-space: nowrap;
}
.case-open {
  font-family: var(--kd-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--kd-cyan);
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 980px) {
  .cases-workbench { grid-template-columns: 1fr; }
  .cases-workbench__media { min-height: 340px; }
}
@media (max-width: 760px) {
  .cases-workbench__media { min-height: 300px; }
  .case-row { grid-template-columns: 1fr; min-height: 0; }
  .case-row > span { border-right: 0; padding: 6px 16px; }
  .case-row > span:first-child { padding-top: 14px; }
  .case-row > span:last-child { padding-bottom: 14px; }
  .case-head { display: none; }
}

/* ---- База знаний: карточки с og-обложками ---- */
#directions .services-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1080px) {
  #directions .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  #directions .services-grid { grid-template-columns: 1fr; }
}

.knowledge-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .knowledge-covers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .knowledge-covers { grid-template-columns: 1fr; }
}
.knowledge-cover {
  display: block;
  position: relative;
  border: 1px solid var(--kd-line);
  background: rgba(17, 24, 32, .82);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.knowledge-cover:hover {
  transform: translateY(-3px);
  border-color: var(--kd-cyan);
}
.knowledge-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.knowledge-cover-no {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 3px 8px;
  background: rgba(17, 24, 32, .78);
  color: var(--kd-cyan);
  font-family: var(--kd-font-mono);
  font-size: 11px;
}
.knowledge-cover-title {
  display: block;
  padding: 14px 16px 16px;
  font-family: var(--kd-font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--kd-paper);
}
.knowledge-more { margin: 18px 0 0; }
.knowledge-more a {
  font-family: var(--kd-font-mono);
  font-size: 13px;
  color: var(--kd-blueprint);
  border-bottom: 1px solid currentColor;
}

/* ---- FAQ бюро (аккордеон в стиле паспортной сетки) ---- */
.home-faq-list {
  display: grid;
  gap: 1px;
  background: rgba(245, 242, 234, .18);
  border: 1px solid rgba(245, 242, 234, .28);
}
.home-faq-list details { background: rgba(17, 24, 32, .82); }
.home-faq-list summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--kd-font-display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--kd-paper);
  transition: background .2s ease;
}
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary:hover { background: rgba(24, 92, 141, .25); }
.home-faq-list details[open] summary { background: rgba(24, 92, 141, .35); }
.home-faq-num {
  flex: 0 0 auto;
  min-width: 40px;
  font-family: var(--kd-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--kd-brass);
}
.home-faq-q { flex: 1 1 auto; }
.home-faq-marker {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--kd-font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--kd-cyan);
  transition: transform .2s ease;
}
.home-faq-list details[open] .home-faq-marker { transform: rotate(45deg); }
.home-faq-answer {
  padding: 4px 18px 18px 72px;
  color: rgba(245, 242, 234, .78);
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .home-faq-answer { padding-left: 18px; }
}

/* ============================================================
   Лента «Новости отрасли» (категория 26, автопостинг AINR) — 2026-07-06.
   Лид-карточка с фото + компактная колонка свежих заголовков. Тёмная тема.
   ============================================================ */
.news-feed-section { background: var(--kd-paper); color: var(--kd-graphite); }
.news-feed {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--kd-line);
  border: 1px solid var(--kd-line);
}
/* Лид — крупная карточка с фото, занимает левую колонку и все строки */
.news-item {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  background: rgba(245, 242, 234, .98);
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.news-item:hover { background: var(--kd-graphite); color: var(--kd-paper); }
.news-item--lead {
  grid-row: 1 / span 4;
  padding: 0;
  background: var(--kd-graphite);
  color: var(--kd-paper);
}
.news-item--lead:hover { background: var(--kd-graphite-2); }
.news-item__img {
  display: block;
  width: 100%;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--kd-cyan);
}
.news-item--lead .news-item__body { padding: 22px 26px 26px; }
.news-item__date {
  display: block;
  font-family: var(--kd-font-mono);
  font-size: 12px;
  color: var(--kd-blueprint);
  margin-bottom: 8px;
}
.news-item--lead .news-item__date { color: var(--kd-cyan); }
.news-item:hover .news-item__date { color: var(--kd-cyan); }
.news-item__title {
  display: block;
  font-family: var(--kd-font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
}
.news-item--lead .news-item__title { font-size: clamp(24px, 2.6vw, 32px); }
.news-item__excerpt {
  display: block;
  margin-top: 12px;
  font-family: var(--kd-font-body);
  font-size: 15px;
  line-height: 1.55;
  text-transform: none;
  color: rgba(245, 242, 234, .82);
}

/* Мало новостей (1): одна колонка, лид без span и без огромной картинки */
.news-feed--solo { grid-template-columns: 1fr; }
.news-feed--solo .news-item--lead { grid-row: auto; }
.news-feed--solo .news-item__img { min-height: 300px; max-height: 380px; }
@media (min-width: 861px){
  .news-feed--solo .news-item--lead { display: grid; grid-template-columns: 1.3fr 1fr; }
  .news-feed--solo .news-item__img { min-height: 100%; border-bottom: 0; border-right: 2px solid var(--kd-cyan); }
  .news-feed--solo .news-item__body { align-self: center; }
}

@media (max-width: 860px) {
  .news-feed { grid-template-columns: 1fr; }
  .news-item--lead { grid-row: auto; }
}
