/* ==========================================================================
   Архитектор управления — общий дизайн-система сайта
   Палитра и логика — те же, что в презентации.
   Без внешних шрифтов и тяжёлых зависимостей — надёжный рендер на мобильных.
   ========================================================================== */

:root {
  --navy: #101B2B;
  --paper: #F7F5F0;
  --ink: #181C22;
  --ink-soft: #4A505A;
  --white: #FFFFFF;
  --white-soft: #C7CEDA;
  --steel: #2B5C8A;
  --amber: #C97A2E;
  --line: #DCD6C8;
  --line-dark: #303D52;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-light: "Segoe UI Light", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --maxw: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header / nav ---------- */
.site-header {
  background: var(--navy);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--white); font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: 0.02em; }
.logo span { color: var(--amber); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--white-soft); text-decoration: none; font-size: 14.5px; }
.nav a:hover { color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
         flex-direction: column; gap: 0; border-top: 1px solid var(--line-dark);
         max-height: 0; overflow: hidden; transition: max-height .2s ease; }
  .nav.open { max-height: 70vh; overflow-y: auto; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line-dark); }
  .nav-toggle { display: block; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }
}

/* ---------- eyebrow / section labels ---------- */
.eyebrow {
  color: var(--amber);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ---------- hero (navy) ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 820px;
}
.hero-graphic {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 980px) {
  .hero-graphic { display: none; }
}
.hero .lead {
  color: var(--white-soft);
  font-size: 19px;
  font-weight: 300;
  max-width: 640px;
  margin: 0 0 34px;
}
.rule { border: none; border-top: 2px solid var(--amber); width: 64px; margin: 0 0 28px; }
.rule-thin { border: none; border-top: 1px solid var(--line); margin: 0; }
.rule-thin.dark { border-top-color: var(--line-dark); }

.byline { color: var(--white); font-size: 15px; margin: 0 0 4px; }
.byline-sub { color: var(--white-soft); font-size: 13.5px; margin: 0; }

/* ---------- industries strip ---------- */
.industries-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; margin-top: 12px; }
.industries-row .industry-item { flex: 0 1 108px; }
@media (max-width: 760px) { .industries-row .industry-item { flex-basis: 27%; } }
@media (max-width: 460px) { .industries-row .industry-item { flex-basis: 40%; } }
.industry-item { text-align: center; }
.industry-item svg { width: 42px; height: 42px; margin: 0 auto 12px; display: block; }
.industry-item svg .ln { stroke: var(--steel); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.industry-item svg .dot { fill: var(--amber); stroke: none; }
.industry-item span { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; display: block; }

/* ---------- channels block ---------- */
.channels-block { margin-top: 34px; }
.channels-row { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.channel-link { display: flex; align-items: center; gap: 9px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.channel-link svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--amber); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel-link:hover { color: var(--amber); }

/* ---------- author photo ---------- */
.author-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
  flex-shrink: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 3px;
}
.btn:hover { background: #b06a24; }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--white-soft);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 13px 25px;
  border-radius: 3px;
  margin-left: 12px;
}
@media (max-width: 480px) {
  .btn-outline { margin-left: 0; margin-top: 12px; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; position: relative; }
section.paper { background: var(--paper); }
section.navy { background: var(--navy); color: var(--white); }
section.navy.blueprint {
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center;
}
section.navy.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(16,27,43,0.72) 40%, var(--navy) 100%);
}
section.navy.blueprint .wrap { position: relative; z-index: 1; }
section h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
  color: var(--ink);
}
section.navy h2 { color: var(--white); }

/* ---------- symptom list ---------- */
.symptom-list { list-style: none; margin: 0; padding: 0; }
.symptom-list li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.symptom-list li:last-child { border-bottom: none; }
.symptom-num { color: var(--amber); font-weight: 600; font-size: 17px; min-width: 26px; }
.symptom-text { font-size: 15.5px; color: var(--ink); }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) {
  .grid, .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16,27,43,0.09);
}
.card h3 { font-size: 16.5px; margin: 0 0 10px; color: var(--ink); }
.card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.45; }

/* ---------- stat blocks ---------- */
.stat-num { color: var(--amber); font-size: 40px; font-weight: 600; line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 13.5px; color: var(--ink-soft); line-height: 1.3; }
section.navy .stat-label { color: var(--white-soft); }

/* ---------- takeaway (accent line under a rule) ---------- */
.takeaway {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
  color: var(--steel);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}
section.navy .takeaway { border-top-color: var(--line-dark); color: var(--amber); }

/* ---------- numbered steps ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step-num { color: var(--amber); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.step-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* ---------- case teaser cards ---------- */
.case-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
}
.case-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.case-card:hover {
  border-color: var(--steel);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16,27,43,0.09);
}
.case-card .eyebrow { margin-bottom: 14px; }
.case-card h3 { font-size: 19px; margin: 0 0 10px; color: var(--ink); }
.case-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 16px; }
.case-card .stat-num { font-size: 30px; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: var(--white-soft); padding: 44px 0 32px; font-size: 13.5px; }
footer a { color: var(--white); }
footer .foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }

/* ---------- article / blog ---------- */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
}
.article h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.article .meta { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 28px; }
.article p { font-size: 16.5px; line-height: 1.6; color: var(--ink); }

/* ---------- ".reveal" ----------
   Deliberately not wired to any opacity/visibility effect. An earlier
   pass tried a scroll-triggered fade-in here, but testing showed content
   can stay invisible whenever the intersection callback doesn't fire in
   time (fast scroll, anchor jumps, link-preview bots, older browsers) —
   exactly the "content silently missing" failure this whole rebuild
   exists to avoid. The class is kept as a hook for a future, safer
   effect, but today it does nothing and every element is always fully
   visible by default. */

/* ---------- architecture diagram (inline SVG) ---------- */
.arch-diagram { display: block; width: 100%; height: auto; }
.arch-diagram .frame-line { stroke: var(--steel); stroke-width: 2; fill: none; }
.arch-diagram .conn-line { stroke: var(--line-dark); stroke-width: 1.5; fill: none; }
section.paper .arch-diagram .conn-line { stroke: var(--line); }
.arch-diagram .card-bg { fill: var(--navy); }
section.paper .arch-diagram .card-bg { fill: var(--white); stroke: var(--line); stroke-width: 1; }
.arch-diagram .card-num { fill: var(--amber); font-weight: 700; }
.arch-diagram .card-label { fill: var(--white); font-weight: 600; }
section.paper .arch-diagram .card-label { fill: var(--ink); }
.arch-diagram .center-label { fill: var(--white-soft); letter-spacing: 0.06em; }
section.paper .arch-diagram .center-label { fill: var(--ink-soft); }

.hero-graphic .frame-line { stroke: var(--steel); stroke-width: 1.5; fill: none; opacity: 0.85; }
.hero-graphic .frame-line.accent { stroke: var(--amber); }
.hero-graphic .frame-dot { fill: var(--amber); }

/* ---------- floating telegram button ---------- */
.floating-tg {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(16,27,43,0.28);
}
.floating-tg:hover { background: #b06a24; }
.floating-tg svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 480px) {
  .floating-tg { padding: 13px; bottom: 16px; right: 16px; }
  .floating-tg span { display: none; }
}

/* ---------- misc ---------- */
.center { text-align: center; }
.small { font-size: 13px; color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
