/* ============================================================
   ENGINEERING DESIGN SYSTEM — ENHANCED VISUAL LAYER
   МСО Инжиниринг · Professional Engineering Aesthetic
   ============================================================ */

/* ── ENGINEERING FONT TOKENS ────────────────────────────── */
/* --font-num  = DM Mono   — числа, метрики, индексы     */
/* --eng-mono  = JetBrains Mono — координаты, теги (≤11px) */
:root {
  --font-num:  'DM Mono', 'JetBrains Mono', ui-monospace, monospace;
  --eng-mono:  'JetBrains Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;

  /* Blueprint grid colors */
  --bp-line:       rgba(110, 155, 190, 0.06);
  --bp-line-dark:  rgba(110, 155, 190, 0.10);
  --bp-dot:        rgba(110, 155, 190, 0.18);
  --bp-accent:     rgba(42, 90, 130, 0.25);

  /* Technical readout */
  --eng-tick:      rgba(28, 61, 90, 0.25);
  --eng-tick-dark: rgba(110, 155, 190, 0.22);
}

/* ============================================================
   1. HERO — ENGINEERING OVERLAY & CROSSHAIR
   ============================================================ */

/* Blueprint fine grid over entire hero */
.section-hero {
  position: relative;
}
.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: top left;
}
.section-hero .container { position: relative; z-index: 1; }

/* Scan-line shimmer on hero — subtle horizontal bands */
.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(241, 243, 246, 0.45) 3px,
    rgba(241, 243, 246, 0.45) 4px
  );
  opacity: 0.4;
}

/* ── HERO PHOTO: crosshair + corner brackets ── */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* Center crosshair — horizontal */
    linear-gradient(rgba(28,61,90,0.22) 1px, transparent 1px) center center / 100% 1px no-repeat,
    /* Center crosshair — vertical */
    linear-gradient(90deg, rgba(28,61,90,0.22) 1px, transparent 1px) center center / 1px 100% no-repeat;
  z-index: 2;
}

/* Crosshair center dot */
.hero-photo-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.hero-photo-crosshair::before,
.hero-photo-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(28, 61, 90, 0.5);
}
.hero-photo-crosshair::before {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.hero-photo-crosshair::after {
  height: 1px;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Corner bracket overlay on hero photo */
.hero-photo-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.hero-photo-corners::before,
.hero-photo-corners::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255,255,255,0.55);
  border-style: solid;
}
.hero-photo-corners::before {
  top: 14px;
  left: 14px;
  border-width: 2px 0 0 2px;
}
.hero-photo-corners::after {
  bottom: 14px;
  right: 14px;
  border-width: 0 2px 2px 0;
}

/* ── HERO STAT — mono numerals + index label ── */
.hero-stat {
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: attr(data-index);
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-ink-3);
  opacity: 0.5;
  font-weight: 400;
}
.hero-stat-num {
  font-family: var(--font-num);
}

/* ── ENG BADGE refinement ── */
.eng-badge {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* ============================================================
   2. SECTION-HEAD — engineering coordinate system
   ============================================================ */

.section-head {
  position: relative;
}

/* Large ghost coordinate index behind heading */
.section-head::before {
  content: attr(data-index);
  position: absolute;
  /* Push number to the right edge of the container, not the section-head */
  right: min(0px, calc(0px - (min(var(--max-w), 100vw) - var(--pad-x) * 2 - 780px)));
  left: auto;
  top: -8px;
  font-family: var(--font-num);
  font-size: clamp(80px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-line);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.7;
}
.section-head h2 { position: relative; z-index: 1; }
.section-head .meta { position: relative; z-index: 1; }
.section-head .lead { position: relative; z-index: 1; }

/* Dark section ghost number */
.section--invert .section-head::before {
  color: rgba(110,155,190,0.07);
}

/* Centered section head — ghost number always right */
.text-center .section-head::before,
.section-head.text-center::before {
  right: 0;
  left: auto;
  transform: none;
}

/* ── SECTION-ENG-LABEL: mono coordinate tag ── */
.section-eng-label {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.section-eng-label span {
  font-family: var(--eng-mono);
}

/* ============================================================
   3. AUDIENCE CARDS — technical drawing corner marks
   ============================================================ */

.audience-card {
  position: relative;
}
/* Top-left bracket */
.audience-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  border-top: 1.5px solid var(--eng-tick);
  border-left: 1.5px solid var(--eng-tick);
  pointer-events: none;
  transition: border-color var(--tr);
}
/* Bottom-right bracket */
.audience-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-bottom: 1.5px solid var(--eng-tick);
  border-right: 1.5px solid var(--eng-tick);
  pointer-events: none;
  transition: border-color var(--tr);
}
.audience-card:hover::before,
.audience-card:hover::after {
  border-color: var(--color-accent);
  opacity: 0.6;
}

/* Tag mono style */
.audience-card-tag {
  font-family: var(--eng-mono);
  font-size: 10px;
}

/* ============================================================
   4. STAGES (PROJECT CYCLE) — enhanced dark blueprint
   ============================================================ */

/* Denser blueprint grid on stages section */
.section-stages.section--invert {
  background-image:
    /* Primary grid */
    linear-gradient(var(--bp-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-dark) 1px, transparent 1px),
    /* Secondary sub-grid (4× finer) */
    linear-gradient(rgba(110,155,190,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,155,190,0.025) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
}

/* Stage tab — numeric font */
.stage-num {
  font-family: var(--font-num);
  font-size: 10px;
}
.stage-dur {
  font-family: var(--font-num);
  font-size: 10px;
}

/* Stage panel engineering note strip */
.stage-panel {
  position: relative;
  border-left: 3px solid var(--color-accent);
}

/* ── Progress bar: visual "timeline" strip above stages ── */
.stages-timeline {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  height: 3px;
  background: rgba(110,155,190,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.stages-timeline-fill {
  height: 100%;
  background: linear-gradient(90deg, #2A5A82, #6AAED4);
  transition: width 0.5s ease;
  border-radius: 2px;
}

/* ── Coordinate ticks along stages bar ── */
.stages-flow::before {
  content: "PHASE / TIMELINE";
  display: block;
  position: absolute;
  top: -22px;
  left: 0;
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--eng-tick-dark);
  white-space: nowrap;
  pointer-events: none;
}
.stages-flow { position: relative; }

/* ============================================================
   5. SERVICE CARDS — spec tolerance labels
   ============================================================ */

.service-card {
  position: relative;
}

/* Corner brackets on service cards */
.service-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--eng-tick);
  border-right: 1.5px solid var(--eng-tick);
  pointer-events: none;
  transition: border-color var(--tr);
}
.service-card:hover::after {
  border-color: var(--color-accent);
  opacity: 0.7;
}

/* Service number mono */
.service-num {
  font-family: var(--eng-mono);
}

/* Engineering spec label below service title */
.service-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--eng-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--color-ink-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 3px 8px;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background: var(--color-bg);
}
.service-spec::before {
  content: "◈";
  color: var(--color-accent);
  font-size: 8px;
}

/* ============================================================
   6. OBJECT CARDS — technical drawing frame style
   ============================================================ */

.object-card {
  position: relative;
}

/* Title plate strip — like a technical drawing revision block */
.object-body::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent) 30%, transparent);
  margin-bottom: 14px;
  opacity: 0.35;
}

.object-meta {
  font-family: var(--eng-mono);
  font-size: 11px;
}
.object-meta span { font-family: var(--eng-mono); }

/* Object tag — specification badge */
.object-tag {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

/* ── LEAD CARD: blueprint watermark ── */
.object-card--lead .object-image::after {
  content: "ПЛАН · РАЗРЕЗ · ФАСАД";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
}
.object-card--lead .object-image { position: relative; }

/* ============================================================
   7. CASE CARDS — metrics in mono + annotation
   ============================================================ */

.case-stat-num {
  font-family: var(--eng-mono);
  letter-spacing: -0.02em;
}
.case-stat-label {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.case-metric-val {
  font-family: var(--font-num);
  letter-spacing: -0.02em;
}
.case-metric-label {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.case-meta {
  font-family: var(--eng-mono);
  font-size: 10px;
}
.case-meta .case-type { font-family: var(--eng-mono); }

/* Case annotation — simple label, no backdrop-filter, no blur */
.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--eng-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  background: rgba(14,17,22,0.55);
  padding: 5px 10px;
  border-radius: 2px;
  border-left: 2px solid rgba(110,155,190,0.7);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

/* ── Featured case — right-side tech label ── */
.case-tech-label {
  display: block;
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--color-ink-3);
  opacity: 0.6;
  margin-bottom: 10px;
}

/* ============================================================
   8. TRUST ITEMS — numbered coordinate style
   ============================================================ */

.trust-item-num {
  font-family: var(--font-num);
}

/* Subtle blueprint line rule between items */
.trust-list--numbered .trust-item {
  position: relative;
}
.trust-list--numbered .trust-item::after {
  content: attr(data-spec);
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--color-line-2);
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================
   9. MANIFESTO — engineering framing
   ============================================================ */

.manifesto {
  position: relative;
  overflow: hidden;
}

/* Blueprint grid behind manifesto */
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Corner brackets on manifesto inner */
.manifesto-inner {
  position: relative;
  z-index: 1;
}
.manifesto-inner::before,
.manifesto-inner::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: 0.2;
}
.manifesto-inner::before {
  top: -12px;
  left: -16px;
  border-width: 2px 0 0 2px;
}
.manifesto-inner::after {
  bottom: -12px;
  right: -16px;
  border-width: 0 2px 2px 0;
}

/* Manifesto quote — styled as technical spec */
.manifesto-quote {
  font-family: var(--font-body, 'Inter Tight', sans-serif);
}

/* Attribution — mono */
.manifesto-attr {
  font-family: var(--eng-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ============================================================
   10. CTA SECTION — denser blueprint + pulse signal
   ============================================================ */

.section-cta {
  background-image:
    /* Primary 40px grid */
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    /* Fine 10px sub-grid */
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
  position: relative;
  overflow: hidden;
}

/* Radial glow origin point — top right */
.section-cta::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,90,130,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.section-cta .container { position: relative; z-index: 1; }

/* ── Pulsing signal on CTA submit button ── */
.form-submit {
  position: relative;
  overflow: hidden;
}
.form-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(28, 61, 90, 0.08) 40%,
    rgba(255,255,255,0.18) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0s;
}
.form-submit:hover::after {
  transform: translateX(100%);
  transition: transform 0.55s ease;
}

/* ── Form: mono labels ── */
.form-row label {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ── CTA section coordinate label top-right ── */
.section-cta .cta-eng-coord {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.2);
  position: absolute;
  top: 28px;
  right: 40px;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   11. HEADER — engineering mono accents
   ============================================================ */

/* Logo sub-label: mono */
.logo-sub {
  font-family: var(--eng-mono);
  font-size: 9.5px;
}

/* Header phone — tabular mono */
.header-phone {
  font-family: var(--eng-mono);
  font-size: 13px;
}

/* ── Dropdown: no overrides needed ── */

/* ============================================================
   12. FOOTER — engineering coordinate strip
   ============================================================ */

.site-footer {
  position: relative;
  overflow: hidden;
}
/* Blueprint grid in footer */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.site-footer .container { position: relative; z-index: 1; }

/* Footer brand mono treatment */
.footer-brand {
  font-family: var(--eng-mono);
  font-size: 15px;
  letter-spacing: -0.02em;
}

/* Footer bottom — mono copyright */
.footer-bottom {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ============================================================
   13. DIVIDER-NUM — styled outlined engineering number
   ============================================================ */

.divider-num {
  position: relative;
  overflow: hidden;
}
.divider-num::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.divider-num-figure {
  /* font-family intentionally NOT overridden — uses Inter Tight 800 from style.css */
  -webkit-text-stroke: 1.5px var(--color-ink);
  color: transparent;
  position: relative;
  z-index: 1;
}

/* ============================================================
   14. CLIENTS GRID — spec plate style
   ============================================================ */

.clients-label {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.client-logo {
  font-family: var(--eng-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ============================================================
   15. FAQ — technical accordion (engineering style)
   ============================================================ */

/* Question counter — auto-numbered via CSS */
.faq-list { counter-reset: faq-counter; }
.faq-item { counter-increment: faq-counter; }

/* Номер вопроса в моно-шрифте перед текстом */
.faq-question::before {
  content: counter(faq-counter, decimal-leading-zero);
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--color-accent);
  margin-right: 14px;
  opacity: 0.6;
  flex-shrink: 0;
  align-self: center;
}

/* На тёмном фоне — светлый номер */
.section--invert .faq-question::before {
  color: #6E9BBE;
  opacity: 0.8;
}

/* Тонкая разделительная линия слева у открытого ответа */
.section--invert .faq-answer-inner {
  border-left: 2px solid rgba(110,155,190,0.25);
  padding-left: 16px;
  margin-left: 26px;
}

/* Лёгкий фон для открытого item на тёмном фоне */
.section--invert .faq-item.is-open {
  background: rgba(28,80,130,0.08);
}

/* ============================================================
   16. PAGE HERO (inner pages) — full engineering redesign
   ============================================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-bottom: 1px solid var(--color-line);
}

/* ── Blueprint fine grid ── */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110,155,190,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,155,190,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── Large grid overlay ── */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28,61,90,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,61,90,0.09) 1px, transparent 1px);
  background-size: 160px 160px;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container { position: relative; z-index: 2; }

/* ── Inner layout wrapper ── */
.ph-inner {
  padding: 56px 0 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

/* ── Left: main content ── */
.ph-left { display: flex; flex-direction: column; }

/* ── Right: technical readout panel ── */
.ph-readout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  min-width: 160px;
}
.ph-readout-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(110,155,190,0.18);
  border-left: 2px solid var(--color-accent);
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
}
.ph-readout-key {
  font-family: var(--eng-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  opacity: 0.7;
}
.ph-readout-val {
  font-family: var(--eng-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.04em;
}

/* ── Breadcrumb ── */
.ph-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--color-ink-3);
  font-family: var(--eng-mono);
  letter-spacing: 0.04em;
}
.ph-breadcrumb ol li { display: flex; align-items: center; }
.ph-breadcrumb ol a { color: var(--color-ink-3); transition: color var(--tr); }
.ph-breadcrumb ol a:hover { color: var(--color-accent); }
.ph-breadcrumb .breadcrumb-sep { opacity: 0.35; padding: 0 8px; }

/* ── Section code label ── */
.ph-code {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.75;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ph-code::after {
  content: "";
  display: block;
  height: 1px;
  width: 32px;
  background: var(--color-accent);
  opacity: 0.4;
}

/* ── Title ── */
.ph-title {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  max-width: 20ch;
  margin-bottom: 18px;
  padding-left: 22px;
  border-left: 3px solid var(--color-accent);
  position: relative;
}
/* Accent bottom line */
.ph-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(28,80,130,0.2) 100%);
  margin-top: 16px;
  border-radius: 2px;
}

/* ── Description ── */
.ph-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink-2);
  max-width: 600px;
  padding-left: 22px;
  margin-bottom: 0;
}

/* ── Spec tags row ── */
.ph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 22px;
  margin-top: 24px;
}
.ph-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--eng-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(110,155,190,0.25);
  padding: 5px 10px;
  border-radius: 2px;
}
.ph-tag i { font-size: 9px; color: var(--color-accent); }

/* ── Corner marks ── */
.ph-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 3;
}
.ph-corner--tl { top: 20px; left: 20px; border-top: 1.5px solid var(--color-accent); border-left: 1.5px solid var(--color-accent); opacity: 0.5; }
.ph-corner--tr { top: 20px; right: 20px; border-top: 1.5px solid var(--color-accent); border-right: 1.5px solid var(--color-accent); opacity: 0.5; }
.ph-corner--bl { bottom: 20px; left: 20px; border-bottom: 1.5px solid var(--color-accent); border-left: 1.5px solid var(--color-accent); opacity: 0.5; }
.ph-corner--br { bottom: 20px; right: 20px; border-bottom: 1.5px solid var(--color-accent); border-right: 1.5px solid var(--color-accent); opacity: 0.5; }

/* ── Horizontal rule at bottom of hero ── */
.ph-ruler {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 28px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  padding: 0 var(--pad-x, 40px);
}
.ph-ruler-inner {
  width: 100%;
  height: 14px;
  position: relative;
  border-top: 1px solid rgba(110,155,190,0.2);
}
.ph-ruler-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(110,155,190,0.25) 0px,
    rgba(110,155,190,0.25) 1px,
    transparent 1px,
    transparent 32px
  );
}
/* Large tick every 160px */
.ph-ruler-inner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(28,61,90,0.3) 0px,
    rgba(28,61,90,0.3) 1px,
    transparent 1px,
    transparent 160px
  );
}

/* ── Stats bar (for case pages) ── */
.ph-stats {
  display: flex;
  gap: 0;
  margin-top: 40px;
  border: 1px solid rgba(110,155,190,0.22);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(110,155,190,0.06);
}
.ph-stat {
  flex: 1;
  padding: 18px 20px;
  border-right: 1px solid rgba(110,155,190,0.18);
  background: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ph-stat:last-child { border-right: 0; }
.ph-stat-num {
  font-family: var(--font-num);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ph-stat-label {
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  line-height: 1.3;
}

/* ── Coordinate watermark (top-right) ── */
.ph-coord {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--color-ink-3);
  opacity: 0.35;
  pointer-events: none;
  z-index: 3;
  text-transform: uppercase;
}

/* ── Stage progress bar (for chto-my-delaem pages) ── */
.ph-stage-bar {
  display: flex;
  gap: 4px;
  padding-left: 22px;
  margin-top: 22px;
  align-items: center;
}
.ph-stage-step {
  height: 3px;
  flex: 1;
  max-width: 40px;
  border-radius: 2px;
  background: rgba(110,155,190,0.2);
  transition: background 0.3s;
}
.ph-stage-step.is-done {
  background: var(--color-accent);
}
.ph-stage-step.is-current {
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(28,80,130,0.4);
}
.ph-stage-label {
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--color-ink-3);
  text-transform: uppercase;
  margin-left: 8px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .ph-inner { grid-template-columns: 1fr; gap: 0; }
  .ph-readout { flex-direction: row; flex-wrap: wrap; min-width: unset; margin-top: 28px; }
  .ph-readout-item { flex: 1; min-width: 120px; }
}
@media (max-width: 768px) {
  .ph-inner { padding: 40px 0 48px; }
  .ph-title { font-size: 28px; padding-left: 16px; }
  .ph-desc { font-size: 15px; padding-left: 16px; }
  .ph-tags { padding-left: 16px; }
  .ph-stage-bar { padding-left: 16px; }
  .ph-readout { display: none; }
  .ph-stats { flex-wrap: wrap; }
  .ph-stat { flex: 1 1 50%; }
  .ph-corner { display: none; }
}

/* Title registration line — backward compat */
.page-hero h1::after { display: none; }
.page-hero-title::after { display: none; }

/* ============================================================
   17. SECTION INVERT — axis origin marker
   ============================================================ */

/* Top-right "ORIGIN / 0,0" coordinate label */
.section--invert .container {
  position: relative;
}
.section--invert .container::after {
  content: "[ BLUEPRINT VIEW ]";
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--eng-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--eng-tick-dark);
  pointer-events: none;
  padding-top: 2px;
}

/* ============================================================
   18. GLOBAL: ENGINEERING UTILITY CLASSES
   ============================================================ */

/* Numeric readout style for any number display */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* Engineering annotation callout */
.engineering-note {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--color-accent);
}
.engineering-note::after {
  content: attr(data-note);
  display: block;
  font-family: var(--eng-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.7;
}

/* ── TECHNICAL SPEC TABLE ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.spec-table th {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-weight: 500; color: var(--color-ink); }
.spec-table td.mono { font-family: var(--eng-mono); font-size: 12px; }

/* ── HORIZONTAL RULE — technical line with coordinate ticks ── */
.eng-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
  color: var(--color-ink-3);
}
.eng-rule::before,
.eng-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-line), var(--color-line), transparent);
}
.eng-rule-label {
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  white-space: nowrap;
  opacity: 0.6;
}

/* ── TECH READOUT BADGE ── */
.readout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: var(--eng-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--color-ink-2);
}
.readout::before {
  content: "●";
  font-size: 7px;
  color: var(--color-accent);
  animation: blink 2.4s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* ── VERTICAL RULE: engineering section separator ── */
.eng-vr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px 0;
}
.eng-vr::before {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-line));
}
.eng-vr::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-line), transparent);
}

/* ============================================================
   19. MOTION: REVEAL ANIMATION — technical scan-in
   ============================================================ */

/* Override the existing reveal animation with an engineering variant */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   20. SECTION RULER TICKS — edge decoration
   ============================================================ */

/* Tick marks on left edge of key sections (like a measuring tape) */
.section-audience::before,
.section-trust::before,
.section-faq::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 9px,
    var(--color-line) 9px,
    var(--color-line) 10px,
    transparent 10px,
    transparent 39px,
    var(--color-accent) 39px,
    var(--color-accent) 40px
  );
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.section-audience,
.section-trust,
.section-faq {
  position: relative;
}

/* ============================================================
   21. HERO PHOTO — top-left coordinate label
   ============================================================ */

.hero-photo-coord {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
  background: rgba(14,17,22,0.45);
  padding: 3px 7px;
  border-radius: 2px;
  border-right: 2px solid rgba(110,155,190,0.4);
}

/* ============================================================
   22. OBJECT TYPE SECTION — blueprint background
   ============================================================ */

.section-object-types {
  position: relative;
}
.section-object-types::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.section-object-types .container { position: relative; z-index: 1; }

/* ============================================================
   23. RESPONSIVE — disable heavier effects on mobile
   ============================================================ */

@media (max-width: 768px) {
  /* Reduce ghost coordinate numbers */
  .section-head::before {
    font-size: 64px;
    opacity: 0.5;
  }

  /* Hide manifesto corner brackets on small screens */
  .manifesto-inner::before,
  .manifesto-inner::after { display: none; }

  /* Blueprint grid on hero — lighter */
  .section-hero::before {
    background-size: 24px 24px;
    opacity: 0.6;
  }

  /* Hide stage timeline coordinate label */
  .stages-flow::before { display: none; }

  /* Ruler ticks hidden on mobile */
  .section-audience::before,
  .section-trust::before,
  .section-faq::before { display: none; }

  /* Crosshair hidden on small photos */
  .hero-photo::after { display: none; }
}

@media (max-width: 420px) {
  .section-head::before { display: none; }
  .section-cta .cta-eng-coord { display: none; }
}

/* ============================================================
   24. CTA SECTION — engineering call-to-action banner
   ============================================================ */

.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  padding: var(--sp-section) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Blueprint grid overlay */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110,155,190,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,155,190,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Accent glow — top-left */
.cta-section::after {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(28,80,130,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta-label {
  display: inline-block;
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7FB0D6;
  opacity: 1;
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
}
.cta-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: #7FB0D6;
}

.cta-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(200,216,232,0.7);
  max-width: 540px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 200px;
}

/* White button */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: var(--color-ink) !important;
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  text-align: center;
}
.btn-white:hover {
  background: #EAF2FB;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Outline white button */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: rgba(255,255,255,0.85) !important;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color var(--tr), color var(--tr), background var(--tr);
  text-align: center;
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff !important;
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   25. FOOTER — classes fix (footer-col-title, footer-nav etc.)
   ============================================================ */

/* Col title */
.footer-col-title {
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Nav links in footer */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--tr), padding-left var(--tr);
  display: inline-block;
}
.footer-nav a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Brand description */
.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.4);
  max-width: 240px;
  margin-top: 14px;
}

/* Logo in footer */
.footer-logo {
  margin-bottom: 4px;
}
.footer-logo .logo-abbr {
  color: #fff;
}
.footer-logo .logo-sub {
  color: rgba(255,255,255,0.45);
}

/* Copyright */
.footer-copy {
  color: rgba(255,255,255,0.3);
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Contact items in footer */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-style: normal;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.contact-item i {
  width: 18px;
  text-align: center;
  color: var(--color-accent);
  opacity: 0.75;
  flex-shrink: 0;
  font-size: 13px;
}
.footer-contact-link {
  color: rgba(255,255,255,0.75);
  transition: color var(--tr);
}
.footer-contact-link:hover {
  color: #fff;
}

/* ============================================================
   26. DETAIL GRID — engineering overrides (левый номер, hover)
   ============================================================ */

/* Отступ слева для checklist (чтобы был виден ::before номер) */
.detail-grid .checklist {
  padding-left: 32px;
}

/* Highlight-box — тонкая сетка-фон */
.highlight-box {
  position: relative;
  background:
    linear-gradient(rgba(28,80,130,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,80,130,0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(28,80,130,0.04) 0%, rgba(28,80,130,0.01) 100%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
}

/* Result-card — инженерный номер в правом углу */
.result-card::before {
  content: attr(data-index);
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--eng-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  opacity: 0.2;
}

/* Sidebar (правая колонка detail-grid) */
.detail-grid > div:last-child {
  position: sticky;
  top: 100px;
}

/* ── Responsive CTA ── */
@media (max-width: 860px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-actions {
    flex-direction: row;
    min-width: unset;
  }
  .cta-actions .btn-white,
  .cta-actions .btn-outline-white {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .cta-section { padding: 52px 0; }
  .cta-actions {
    flex-direction: column;
  }
}

/* ============================================================
   27. KEYSY PAGE — cases grid with photos
   ============================================================ */

/* Сетка кейсов на странице keysy */
.keysy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

/* Featured — занимает 2 колонки, горизонтальный layout */
.keysy-grid .case-card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.keysy-grid .case-card--featured .case-image {
  flex: 0 0 50%;
  aspect-ratio: unset;
  min-height: 340px;
}
.keysy-grid .case-card--featured .case-image img {
  object-position: center center;
}
.keysy-grid .case-card--featured .case-body {
  padding: 32px 28px;
  justify-content: space-between;
}
.keysy-grid .case-card--featured .case-title {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.keysy-grid .case-card--featured .case-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-ink-2);
  margin-bottom: 20px;
  flex: 1;
}

/* Обычные карточки */
.keysy-grid .case-card {
  flex-direction: column;
}
.keysy-grid .case-card .case-image {
  aspect-ratio: 16/10;
}

/* Hover — поднять карточку */
.keysy-grid .case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(14,17,22,0.10);
}

/* case-link как инженерная стрелка */
.keysy-grid .case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  font-family: var(--eng-mono);
  letter-spacing: 0.04em;
}
.keysy-grid .case-link::after {
  content: "→";
  transition: transform var(--tr);
}
.keysy-grid .case-card:hover .case-link::after {
  transform: translateX(4px);
}

/* Filter buttons — engineering mono style */
.cases-filter {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--eng-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-ink-3);
  cursor: pointer;
  transition: all var(--tr);
}
.filter-btn:hover {
  color: var(--color-ink);
  border-color: var(--color-line);
}
.filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── Responsive keysy ── */
@media (max-width: 1100px) {
  .keysy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .keysy-grid .case-card--featured {
    grid-column: span 2;
  }
}
@media (max-width: 700px) {
  .keysy-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .keysy-grid .case-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .keysy-grid .case-card--featured .case-image {
    flex: none;
    min-height: unset;
    aspect-ratio: 16/9;
  }
}

/* ── Detail grid responsive ── */
@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr 340px;
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail-grid > div:last-child {
    position: static;
  }
  .detail-grid .checklist {
    padding-left: 28px;
  }
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid .checklist {
    padding-left: 0;
  }
  .checklist-item::before {
    display: none;
  }
}

/* ============================================================
   28. BLOG — блог, список статей и страница статьи
   ============================================================ */

/* Сетка карточек блога */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

/* Карточка статьи */
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md, 10px);
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 8px 28px rgba(14,17,22,0.09);
  transform: translateY(-3px);
}
.blog-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.blog-card-tag {
  font-family: var(--eng-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(28, 90, 140, 0.08);
  padding: 3px 8px;
  border-radius: 2px;
}
.blog-card-read {
  font-family: var(--eng-mono);
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}
.blog-card-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--color-ink);
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--color-accent);
}
.blog-card-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.blog-card-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blog-card-topics li {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding-left: 16px;
  position: relative;
}
.blog-card-topics li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--eng-mono);
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eng-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--tr);
}
.blog-card-link:hover {
  gap: 12px;
}

/* Страница статьи — article typography */
.blog-article h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--color-ink);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}
.blog-article h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.blog-article h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
  color: var(--color-ink);
}
.blog-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-body);
  margin-bottom: 1rem;
}
.blog-article p strong {
  color: var(--color-ink);
}

/* Sidebar table в highlight-box */
.sidebar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.sidebar-table tr {
  border-bottom: 1px solid var(--color-line);
}
.sidebar-table tr:last-child {
  border-bottom: none;
}
.sidebar-table td {
  padding: 6px 4px;
  vertical-align: top;
  color: var(--color-body);
  line-height: 1.4;
}
.sidebar-table td:last-child {
  text-align: right;
  color: var(--color-ink);
}

/* Галерея кейса */
.case-gallery {
  margin: 0;
}
.case-gallery-main {
  margin: 0;
  padding: 0;
  border-radius: var(--r-md, 10px);
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.case-gallery-main img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.case-gallery-main figcaption {
  font-family: var(--eng-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: 10px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
}

/* Responsive blog */
@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-gallery-main img {
    height: 280px;
  }
}
@media (max-width: 560px) {
  .blog-card-body {
    padding: 24px;
  }
  .case-gallery-main img {
    height: 220px;
  }
}

/* ============================================================
   26. BLOG ARTICLE — article body & sidebar fixes
   ============================================================ */

/* Sidebar: override footer-nav link colors (white→dark) */
.detail-sidebar .footer-nav a {
  color: var(--color-accent);
  font-size: 14px;
}
.detail-sidebar .footer-nav a:hover {
  color: var(--color-accent-2);
  padding-left: 4px;
}

/* Sidebar highlight-box heading */
.detail-sidebar .highlight-box h3 {
  font-size: 13px;
  font-family: var(--eng-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin: 0 0 14px;
}
.detail-sidebar .highlight-box p {
  font-size: 14px;
  color: var(--color-ink-2);
  font-style: normal;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Article prose body */
.blog-article h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--color-dark);
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 2px solid var(--color-accent);
  display: inline-block;
}
.blog-article h2:first-child { margin-top: 0; }
.blog-article h3 {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--color-dark);
  margin: 32px 0 12px;
}
.blog-article p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-ink);
  margin-bottom: 18px;
}
.blog-article strong { color: var(--color-dark); }

/* Simple blog list (replaces misused .checklist) */
.blog-article .blog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blog-article .blog-list li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--color-line);
  position: relative;
}
.blog-article .blog-list li:first-child { border-top: 1px solid var(--color-line); }
.blog-article .blog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.blog-article .blog-list li strong { color: var(--color-dark); font-weight: 600; }

/* Result cards grid */
.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.result-cards .result-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--r-md, 10px) var(--r-md, 10px);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-cards .result-card-num {
  font-size: clamp(22px, 2.4vw, 32px);
  white-space: nowrap;
}
.result-card-label {
  font-size: 13px;
  color: var(--color-ink-2);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .result-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   29. PORTFOLIO TABLE — полный список реализованных объектов
   ============================================================ */
.portfolio-intro {
  max-width: 640px;
  margin: -8px 0 28px;
  color: var(--color-ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.portfolio-table {
  border-top: 2px solid var(--color-accent);
}
.portfolio-row {
  display: grid;
  grid-template-columns: 1fr 120px 280px;
  gap: 20px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-line);
  transition: background var(--tr);
}
.portfolio-row:not(.portfolio-row--head):hover {
  background: var(--color-bg);
}
.portfolio-row--head {
  padding: 10px 4px;
  font-family: var(--eng-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eng-dim, #9aa6b4);
}
.portfolio-obj {
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-ink);
  font-weight: 500;
}
.portfolio-obj em {
  font-style: normal;
  font-weight: 400;
  color: var(--color-ink-2);
}
.portfolio-area {
  font-family: var(--font-num, var(--eng-mono));
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.portfolio-role {
  font-family: var(--eng-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--color-ink-2);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .portfolio-row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 2px; }
  .portfolio-row--head { display: none; }
  .portfolio-obj { grid-column: 1 / -1; }
  .portfolio-area { order: 2; }
  .portfolio-role { order: 3; text-align: right; }
}

/* ============================================================
   30. REVIEWS — благодарственные письма заказчиков
   ============================================================ */
.section-reviews { position: relative; }
.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  position: relative;
  margin: 0;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md, 10px);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
}
.review-quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 0.6;
  color: var(--color-accent);
  opacity: 0.18;
  margin-bottom: 8px;
  height: 28px;
}
.review-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink);
  flex: 1;
}
.review-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.review-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink);
}
.review-author-role {
  font-family: var(--eng-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--color-ink-2);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 620px; }
}

/* ============================================================
   ДОВОДКА КАЧЕСТВА (контраст AA, фокус, недостающие классы)
   Загружается последним → переопределения выигрывают по порядку.
   ============================================================ */

/* Недостающие токены (использовались без определения → текст наследовал цвет) */
:root {
  --color-muted: var(--color-ink-3);
  --color-body:  var(--color-ink-2);
  --color-dark:  var(--color-ink);
}

/* Eyebrow-метка секций (.section-label не имела стилей на 18 страницах) */
.section-label {
  display: inline-block;
  font-family: var(--eng-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Размерные модификаторы кнопок (btn--sm/--lg/--full не были определены) */
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* Контурная кнопка на светлом фоне (.btn-outline не была определена) */
.btn-outline { background: transparent; color: var(--color-accent); border: 1px solid var(--color-line); }
.btn-outline:hover { border-color: var(--color-accent); background: rgba(28,61,90,0.05); }

/* Контраст: тёмная CTA-форма — плейсхолдеры */
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,0.55); }

/* Контраст: тёмный подвал — заголовки/копирайт/описание */
.footer-col h4 { color: rgba(255,255,255,0.62); }
.footer-bottom { color: rgba(255,255,255,0.62); }
.footer-copy   { color: rgba(255,255,255,0.62); }
.footer-desc   { color: rgba(255,255,255,0.62); }

/* Контраст: тег объекта / лого клиентов / подзаголовок панели этапа */
.object-tag { color: #246A99; }
.client-logo { opacity: 0.82; }
.section--invert .stage-panel-col h4 { color: #7FA3C4; }

/* Контраст: координатная метка на фото героя (поверх изображения) */
.hero-photo-coord { color: rgba(255,255,255,0.8); background: rgba(14,17,22,0.62); }

/* Доступность: видимый фокус с клавиатуры (WCAG 2.4.7) */
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.45); }
.form-light .form-row input:focus,
.form-light .form-row select:focus,
.form-light .form-row textarea:focus { box-shadow: 0 0 0 3px rgba(28,61,90,0.20); }
.btn:focus-visible,
.form-submit:focus-visible,
.stage:focus-visible,
.faq-question:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.section--invert .btn:focus-visible,
.section--invert .form-submit:focus-visible { outline-color: #6AAED4; }

/* .section-label на тёмных секциях — светлый акцент (иначе тёмное на тёмном) */
.section--invert .section-label { color: #7FA3C4; }


/* ============================================================
   ВИЗУАЛЬНЫЙ КИТ: смягчение hero + фото-заглушки + тёплые блоки
   ============================================================ */

/* Смягчаем «наезд» решётки внизу hero: грид плавно уходит в фон секции */
.page-hero::after {
  background-image:
    linear-gradient(to bottom, transparent 74%, var(--color-bg) 100%),
    linear-gradient(rgba(28,61,90,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,61,90,0.09) 1px, transparent 1px);
  background-size: 100% 100%, 160px 160px, 160px 160px;
}
.page-hero::before {
  background-image:
    linear-gradient(to bottom, transparent 74%, var(--color-bg) 100%),
    linear-gradient(rgba(110,155,190,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,155,190,0.07) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}
.ph-inner { padding-bottom: 46px; }

/* Универсальная фото-заглушка (тёплый градиент + инженерные засечки) */
.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md, 10px);
  border: 1px solid var(--color-line);
  background:
    radial-gradient(120% 120% at 28% 18%, rgba(28,61,90,0.07), transparent 62%),
    linear-gradient(150deg, #E7EEF5 0%, #F3EFE8 100%);
  color: var(--color-accent);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.media-placeholder:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(14,17,22,0.08); }
.media-placeholder i { font-size: 30px; opacity: 0.5; }
.media-placeholder-label {
  font-family: var(--eng-mono, "JetBrains Mono", monospace);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent); opacity: 0.72;
}
.media-placeholder::before,
.media-placeholder::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(28,61,90,0.26);
}
.media-placeholder::before { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.media-placeholder::after  { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }

/* Секция фотогалереи объектов */
.section-gallery .section-head { max-width: 640px; margin-bottom: 30px; }

/* Медиа-блок «фото + текст» (для будущего наполнения) */
.feature-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}
@media (min-width: 820px) {
  .feature-media { grid-template-columns: 1.1fr 1fr; }
  .feature-media--reverse .feature-media-img { order: 2; }
}
.feature-media-body h3 { font-size: 22px; margin-bottom: 12px; color: var(--color-ink); }
.feature-media-body p { color: var(--color-ink-2); margin-bottom: 14px; }


/* ============================================================
   КОНВЕРСИОННЫЕ БЛОКИ + ОЖИВЛЕНИЕ ПАЛИТРЫ
   ============================================================ */
.section--tint { background: #F4F7FB; }
.section-gallery { background: #F4F7FB; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 26px; }
@media (min-width: 620px) and (max-width: 859px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item {
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  border: 1px solid var(--color-line); border-left: 3px solid var(--color-accent);
  border-radius: var(--r-md, 10px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-item:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(14,17,22,0.08); }
.why-item i { font-size: 22px; color: var(--color-accent); margin-bottom: 14px; display: block; }
.why-item h3 { font-size: 16px; margin: 0 0 6px; color: var(--color-ink); line-height: 1.25; }
.why-item p { font-size: 13.5px; line-height: 1.5; color: var(--color-ink-2); margin: 0; }

.stats-band {
  background-image:
    linear-gradient(135deg, #1C3D5A 0%, #14304A 100%),
    linear-gradient(rgba(110,155,190,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,155,190,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-big-num { font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-big-label { margin-top: 10px; font-size: 13px; line-height: 1.4; color: #AEC6DE; }

.mini-review { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; max-width: 920px; }
@media (min-width: 720px) { .mini-review { grid-template-columns: auto 1fr; gap: 28px; } }
.mini-review-logo { width: 96px; height: 96px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--color-line); display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #E7EEF5, #F3EFE8); color: var(--color-accent); font-size: 34px; }
.mini-review-quote { font-size: 18px; line-height: 1.55; color: var(--color-ink); margin: 0 0 14px; }
.mini-review-author { font-weight: 600; color: var(--color-ink); margin: 0; }
.mini-review-role { font-size: 13px; color: var(--color-ink-3); margin: 2px 0 0; }

.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta {
    display: flex; gap: 10px; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.97); border-top: 1px solid var(--color-line);
    box-shadow: 0 -4px 20px rgba(14,17,22,0.10);
  }
  .mobile-cta .btn { flex: 1; }
  .mobile-cta-call { flex: 0 0 50px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-line); border-radius: var(--r-sm, 6px); color: var(--color-accent); font-size: 18px; text-decoration: none; }
  body { padding-bottom: 68px; }
}


/* Галерея — реальные фото (карточка-обёртка с hover-zoom) */
.photo-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-top: 26px; }
@media (min-width: 760px){ .photo-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-gallery-grid .gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--r-md, 10px); border: 1px solid var(--color-line);
  background: var(--color-line);
}
.photo-gallery-grid .gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.photo-gallery-grid .gallery-item:hover img { transform: scale(1.05); }
.photo-gallery-grid .gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14,17,22,0.28) 100%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.photo-gallery-grid .gallery-item:hover::after { opacity: 1; }
/* обратная совместимость: если img вставлена без обёртки .gallery-item */
.photo-gallery-grid > img {
  width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  border-radius: var(--r-md, 10px); border: 1px solid var(--color-line);
}

/* Нумерованный список услуг */
.num-list { margin: 16px 0 20px; padding-left: 0; list-style: none; counter-reset: n; }
.num-list li { position: relative; padding: 8px 0 8px 40px; border-bottom: 1px solid var(--color-line); font-size: 14.5px; line-height: 1.55; color: var(--color-ink-2); }
.num-list li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }


/* Технические показатели объекта */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 0; margin-top: 24px; border: 1px solid var(--color-line); border-radius: var(--r-md,10px); overflow: hidden; }
.spec-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); background: #fff; }
.spec-k { font-family: var(--eng-mono,monospace); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.spec-v { font-size: 16px; font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; }

.case-subhead { font-size: 19px; margin: 28px 0 10px; color: var(--color-ink); }
.case-features { margin: 0 0 8px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.case-features li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: var(--color-ink-2); }
.case-features li::before { content: "\2714"; position: absolute; left: 0; top: 1px; color: var(--color-accent); font-size: 13px; }
.case-study .spec-grid { margin: 8px 0 8px; }


/* ============================================================
   ДОВОДКА: изображение карточки блога (было чисто текстовым)
   ============================================================ */
.blog-card-image { aspect-ratio: 16/10; overflow: hidden; background: var(--color-line); }
.blog-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease; filter: saturate(0.8) contrast(1.05);
}
.blog-card:hover .blog-card-image img { transform: scale(1.04); }

/* ============================================================
   ДОВОДКА: аккордеон «Этапы проектирования» (uslugi-proektirovanie)
   ============================================================ */
.stages-list { max-width: 860px; }
.stage-item { border-bottom: 1px solid var(--color-line); }
.stage-item:first-child { border-top: 1px solid var(--color-line); }
.stage-trigger {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 0;
  background: none; border: none; text-align: left; cursor: pointer;
  color: var(--color-ink); transition: color var(--tr);
}
.stage-trigger:hover { color: var(--color-accent); }
.stage-trigger .stage-num {
  font-family: var(--eng-mono, monospace); font-size: 13px; letter-spacing: 0.08em;
  color: var(--color-ink-3); flex-shrink: 0;
}
.stage-title-text { flex: 1; font-size: 16px; font-weight: 500; line-height: 1.4; }
.stage-icon {
  flex-shrink: 0; width: 28px; height: 28px; border: 1.5px solid var(--color-line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--color-ink-3);
  transition: transform var(--tr), background-color var(--tr), border-color var(--tr), color var(--tr);
}
.stage-item.is-open .stage-trigger { color: var(--color-accent); }
.stage-item.is-open .stage-icon {
  transform: rotate(180deg); background-color: var(--color-accent);
  border-color: var(--color-accent); color: #fff;
}
.stage-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.stage-body-inner { padding: 0 44px 22px 0; }
.stage-body-inner p { font-size: 14.5px; line-height: 1.7; color: var(--color-ink-2); margin: 0; }

/* Аккордеон на тёмной секции (.section--invert): базовые цвета тёмные,
   поэтому текст был неразличим на синем фоне. Инвертируем. */
.section--invert .stages-list .stage-item { border-color: rgba(255,255,255,0.14); }
.section--invert .stages-list .stage-trigger,
.section--invert .stages-list .stage-title-text { color: #F2F6FA; }
.section--invert .stages-list .stage-trigger:hover,
.section--invert .stages-list .stage-trigger:hover .stage-title-text,
.section--invert .stages-list .stage-item.is-open .stage-trigger,
.section--invert .stages-list .stage-item.is-open .stage-title-text { color: #7FB8E8; }
.section--invert .stages-list .stage-trigger .stage-num { color: #8FA9C2; }
.section--invert .stages-list .stage-icon,
.section--invert .stages-list .stage-icon i { border-color: rgba(255,255,255,0.30); color: #C8D4E0 !important; }
.section--invert .stages-list .stage-item.is-open .stage-icon {
  background-color: #7FB8E8; border-color: #7FB8E8; color: #0F2338;
}
.section--invert .stages-list .stage-body-inner p { color: #C3D2E0; }

/* ============================================================
   КАРТОЧКА-ПЕРЕХОД НА РЕАЛЬНЫЙ КЕЙС (замена повторяющейся цитаты)
   ============================================================ */
.case-teaser {
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 920px; border: 1px solid var(--color-line);
  border-radius: var(--r-md, 10px); overflow: hidden; background: #fff;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (min-width: 640px) { .case-teaser { grid-template-columns: 220px 1fr; } }
.case-teaser:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,17,22,0.09); border-color: var(--color-accent); }
.case-teaser-img { aspect-ratio: 4/3; overflow: hidden; background: var(--color-line); }
.case-teaser-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.case-teaser:hover .case-teaser-img img { transform: scale(1.05); }
.case-teaser-body { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.case-teaser-label { font-family: var(--eng-mono, monospace); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.case-teaser-title { font-size: 18px; font-weight: 600; color: var(--color-ink); margin: 0; line-height: 1.3; }
.case-teaser-desc { font-size: 14px; color: var(--color-ink-2); margin: 0; line-height: 1.5; }
.case-teaser-link { font-size: 13px; font-weight: 600; color: var(--color-accent); margin-top: 4px; }
