/* ============================================================
   МояЭксплуатация — стили сайта
   Вынесено из site_beta_11.html. Шрифты — в css/fonts.css
   (генерируется скриптом fetch-fonts.sh, руками не править).
   ============================================================ */

:root {
  --ink: #0e0e0e;
  --paper: #f5f1ea;
  --accent: #c8410a;
  --accent2: #1a3a5c;
  --muted: #6e6559;
  --rule: #d4cfc6;
  --card-bg: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Martian Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── UTILITY ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.accent { color: var(--accent); }
.accent2 { color: var(--accent2); }
.mono { font-family: 'Martian Mono', monospace; }

/* ── PLACEHOLDER IMAGES ──
   Это временные блоки на местах будущих картинок.
   Каждый занимает ровно ту площадь, которую займёт реальное изображение,
   чтобы при подстановке `<img>` ничего не съехало по сетке.
   Замена: <div class="placeholder-img ..."> → <img src="..." alt="...">
*/
.placeholder-img {
  background: rgba(200,65,10,0.04);
  border: 1px dashed rgba(200,65,10,0.35);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 11px; font-style: italic; line-height: 1.6;
  letter-spacing: 0.02em;
  position: relative;
}
.placeholder-img::before {
  content: 'IMG';
  position: absolute; top: 10px; left: 12px;
  font-style: normal; font-size: 9px; letter-spacing: 0.15em;
  color: var(--accent); opacity: 0.6;
}
.placeholder-img.dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.18);
  color: rgba(245,241,234,0.5);
}
.placeholder-img.dark::before { color: var(--accent); opacity: 0.8; }

/* aspect ratios */
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-9x16 { aspect-ratio: 9 / 16; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff;
  border: none; padding: 10px 20px;
  font-family: 'Martian Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: #a83508; }

/* ── HERO ── */
#hero {
  padding-top: 80px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-bg-number {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(200px, 25vw, 380px);
  font-weight: 900;
  color: rgba(200,65,10,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--accent);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: #fff;
  padding: 16px 32px;
  font-family: 'Martian Mono', monospace;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #a83508; transform: translateY(-1px); }

.btn-ghost {
  color: var(--accent2);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--accent); }

/* hero stats card */
.hero-right { position: relative; }
.stat-cards { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  padding: 24px 28px;
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  animation: slideIn 0.6s forwards;
}
.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 900;
  color: var(--accent); line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }

.hero-left {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s 0.1s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ── SECTION COMMON ── */
section { padding: 56px 0; }
.section-rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-lead {
  color: var(--muted); font-size: 13px; line-height: 1.8;
  max-width: 620px; margin-bottom: 56px;
}

/* ── PROBLEM ── */
#problem { background: var(--ink); color: var(--paper); }
#problem .section-eyebrow { color: var(--accent); }
#problem .section-eyebrow::before { background: var(--accent); }
#problem .section-title { color: var(--paper); }
#problem .section-lead { color: rgba(245,241,234,0.6); }

.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.problem-item {
  padding: 36px;
  background: var(--ink);
  transition: background 0.25s;
}
.problem-item:hover { background: #1a1a1a; }
.problem-icon { font-size: 28px; margin-bottom: 16px; }

.icon-svg {
  display: inline-block;
  vertical-align: middle;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.problem-icon .icon-svg { width: 32px; height: 32px; }
.feature-icon .icon-svg { width: 22px; height: 22px; }
.segment-emoji .icon-svg { width: 36px; height: 36px; }
.problem-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px; color: var(--paper);
}
.problem-text { font-size: 12px; color: rgba(245,241,234,0.6); line-height: 1.8; }

.paradox-box {
  margin-top: 48px;
  border: 1px solid rgba(200,65,10,0.4);
  padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.paradox-col-title {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.paradox-col-title.muted { color: rgba(245,241,234,0.55); }
.paradox-col-title.red { color: var(--accent); }
.paradox-list { list-style: none; }
.paradox-list li {
  font-size: 12px; color: rgba(245,241,234,0.7);
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-start; gap: 10px;
}
.paradox-list li::before { content: '—'; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.paradox-list.bad li::before { color: var(--accent); }

.problem-conclusion {
  margin-top: 32px;
  padding: 24px 28px;
  background: rgba(200,65,10,0.07);
  border-left: 3px solid var(--accent);
  font-size: 13px; line-height: 1.8;
  color: rgba(245,241,234,0.85);
}
.problem-conclusion strong { color: var(--paper); font-weight: 500; }

/* ── LOSSES ── */
.losses-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.channel-list { display: flex; flex-direction: column; gap: 24px; }
.channel {
  border: 1px solid var(--rule);
  padding: 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.channel:hover { border-color: var(--accent); transform: translateX(4px); }
.channel-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 900;
  color: rgba(200,65,10,0.08);
  position: absolute; right: 20px; top: 10px;
  line-height: 1;
}
.channel-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
}
.channel-text { font-size: 12px; color: var(--muted); line-height: 1.7; }
.channel-impact {
  margin-top: 14px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
}
.losses-summary { position: sticky; top: 120px; }
.losses-total-box {
  background: var(--accent2);
  color: #fff; padding: 40px;
  margin-bottom: 20px;
}
.losses-total-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 12px; }
.losses-total-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 900; line-height: 1;
  margin-bottom: 6px;
}
.losses-total-sub { font-size: 12px; opacity: 0.65; }

.annual-boxes { display: flex; flex-direction: column; gap: 12px; }
.annual-box {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.annual-box-label { font-size: 11px; color: var(--muted); }
.annual-box-val { font-size: 15px; font-weight: 500; color: var(--ink); }
.annual-box-val span { color: var(--accent); }

.sources-note {
  margin-top: 20px;
  padding: 16px;
  background: rgba(200,65,10,0.05);
  border-left: 2px solid var(--accent);
  font-size: 11px; color: var(--muted); line-height: 1.7;
}

/* ── BREAKDOWN BY SYSTEMS ── */
.breakdown {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.breakdown-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.breakdown-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  margin-bottom: 12px; line-height: 1.25;
}
.breakdown-lead {
  font-size: 12px; color: var(--muted); line-height: 1.8;
  max-width: 580px; margin-bottom: 32px;
}
.systems-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.system-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--rule);
}
.system-row .sys-name {
  font-size: 12px; color: var(--ink); font-weight: 500;
}
.system-row .sys-desc {
  display: block; font-size: 11px; color: var(--muted);
  margin-top: 4px; line-height: 1.5;
}
.system-row .sys-val {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700;
  color: var(--accent); white-space: nowrap;
}
.system-row.total { background: var(--ink); border-color: var(--ink); }
.system-row.total .sys-name { color: rgba(255,255,255,0.7); }
.system-row.total .sys-val { color: var(--accent); font-size: 19px; }

/* ── CALCULATOR ── */
#calculator { background: #f0ece3; }
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.calc-form { background: var(--card-bg); border: 1px solid var(--rule); padding: 40px; }
.calc-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; margin-bottom: 28px;
}
.form-group { margin-bottom: 22px; }
.form-label {
  display: block; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.form-select, .form-input {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px 14px;
  font-family: 'Martian Mono', monospace;
  font-size: 13px; color: var(--ink);
  appearance: none; outline: none;
  transition: border-color 0.2s;
}
.form-select:focus, .form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }

.calc-btn {
  width: 100%;
  background: var(--accent); color: #fff;
  border: none; padding: 16px;
  font-family: 'Martian Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.calc-btn:hover { background: #a83508; }

.calc-disclaimer {
  margin-top: 16px;
  font-size: 10px; color: var(--muted); line-height: 1.7;
}

.calc-result {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  padding: 40px;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
}
.result-placeholder {
  text-align: center; color: var(--muted);
  font-size: 12px; line-height: 1.8;
}
.result-placeholder .big-q {
  font-family: 'Playfair Display', serif;
  font-size: 72px; color: var(--rule); line-height: 1;
  margin-bottom: 16px;
}
.result-content { display: none; }
.result-content.active { display: block; }
.result-title {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.result-big {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 900; color: var(--accent);
  line-height: 1; margin-bottom: 8px;
}
.result-big-label { font-size: 12px; color: var(--muted); margin-bottom: 32px; }

.result-rows { border-top: 1px solid var(--rule); }
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.result-row-label { color: var(--muted); }
.result-row-val { font-weight: 500; }
.result-row-val.highlight { color: var(--accent); }

.result-cta {
  margin-top: 28px;
  width: 100%;
  background: var(--accent2); color: #fff;
  border: none; padding: 15px;
  font-family: 'Martian Mono', monospace;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.result-cta:hover { background: #102845; }

.result-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(26,58,92,0.06);
  border-left: 2px solid var(--accent2);
  font-size: 11px; color: var(--muted); line-height: 1.7;
  display: none;
}
.result-note.show { display: block; }

/* ── SOLUTION ── */
.solution-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--paper); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.feature-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700;
  margin-bottom: 6px;
}
.feature-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

.solution-right { position: sticky; top: 120px; }
.value-prop {
  background: var(--ink); color: var(--paper);
  padding: 40px; margin-bottom: 16px;
}
.value-prop-label { font-size: 11px; opacity: 0.5; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }

.metric-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.metric-row:last-child { border-bottom: none; }
.metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 900; color: var(--accent);
  flex-shrink: 0; min-width: 90px;
}
.metric-desc { font-size: 12px; opacity: 0.6; line-height: 1.5; }

.independence-note {
  border: 1px solid var(--rule); padding: 24px;
  font-size: 12px; color: var(--muted); line-height: 1.8;
}
.independence-note strong { color: var(--ink); font-weight: 500; }

/* ── PARTNER STRIPE ── */
.partner-stripe {
  margin-top: 48px;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  padding: 28px 32px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; align-items: center;
}
.partner-mark {
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent2);
  padding: 14px 22px;
  border: 1px solid var(--accent2);
  white-space: nowrap;
}
.partner-text { font-size: 12px; color: var(--muted); line-height: 1.8; }
.partner-text strong { color: var(--ink); font-weight: 500; }

/* ── COMINDWARE LOGO ──
   Оформление слова Comindware в фирменных цветах и шрифте.
   Используется внутри partner-mark, partner-text strong и в футере.
*/
.comindware-logo {
  font-family: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.comindware-logo .cw-b { color: #1F95D1; }
.comindware-logo .cw-o { color: #F47A1F; }

/* ── DOUBLE VALUE ── */
#value { background: #f0ece3; }
.value-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.value-col {
  background: var(--card-bg);
  padding: 40px;
}
.value-col-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.value-col-label::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.value-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  margin-bottom: 22px; line-height: 1.25;
}
.value-col ul { list-style: none; }
.value-col li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px; line-height: 1.6;
  display: flex; align-items: flex-start; gap: 12px;
}
.value-col li:last-child { border-bottom: none; }
.value-col li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── CASE ── */
#case { background: var(--ink); color: var(--paper); }
#case .section-title { color: var(--paper); }
#case .section-lead { color: rgba(245,241,234,0.6); }
#case .section-eyebrow { color: var(--accent); }
#case .section-eyebrow::before { background: var(--accent); }

.case-hero-img {
  margin-bottom: 48px;
}

.case-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 48px;
}
.case-stat {
  padding: 36px 24px; background: var(--ink);
  text-align: center;
}
.case-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 900; color: var(--accent);
  line-height: 1; margin-bottom: 10px;
}
.case-stat-label { font-size: 11px; color: rgba(245,241,234,0.6); letter-spacing: 0.04em; line-height: 1.5; }

.case-twocol {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 32px; align-items: start;
  margin-bottom: 48px;
}
.case-outcomes { display: flex; flex-direction: column; gap: 12px; }
.outcome-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: rgba(245,241,234,0.75); line-height: 1.6;
}
.outcome-check { color: #5aaa6a; font-size: 14px; flex-shrink: 0; }

.quote-box {
  border-left: 3px solid var(--accent);
  padding: 28px 36px;
  background: rgba(200,65,10,0.05);
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-style: italic; line-height: 1.6;
  color: var(--paper);
  margin-bottom: 16px;
}
.quote-author { font-size: 11px; color: rgba(245,241,234,0.5); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── SEGMENTS ── */
.segments-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.segment-item {
  background: var(--card-bg);
  padding: 32px 28px;
  transition: background 0.2s;
}
.segment-item:hover { background: var(--paper); }
.segment-emoji { font-size: 32px; margin-bottom: 16px; }
.segment-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; margin-bottom: 10px;
}
.segment-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.segment-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent2);
  padding: 4px 8px;
  background: rgba(26,58,92,0.07);
}

/* ── HOW ── */
#how { background: var(--accent2); color: #fff; }
#how .section-eyebrow { color: rgba(255,255,255,0.5); }
#how .section-eyebrow::before { background: rgba(255,255,255,0.3); }
#how .section-title { color: #fff; }
#how .section-lead { color: rgba(255,255,255,0.65); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.1); }
.step {
  padding: 40px 32px;
  background: var(--accent2);
  position: relative;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 72px; font-weight: 900;
  color: rgba(255,255,255,0.06);
  position: absolute; right: 20px; top: 16px;
  line-height: 1;
}
.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.step-text { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.8; }
.step-tag {
  display: inline-block; margin-top: 16px;
  background: rgba(255,255,255,0.1);
  padding: 5px 12px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ── CTA ── */
#contact { border-top: 4px solid var(--accent); }

.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.contact-left .section-title { font-size: clamp(28px, 3vw, 42px); }
.contact-promise { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.promise-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 12px; color: var(--muted); line-height: 1.6;
}
.promise-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }

.contact-form { background: var(--card-bg); border: 1px solid var(--rule); padding: 40px; }
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px;
  font-size: 11px; color: var(--muted); line-height: 1.6;
}
.consent-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-row label { cursor: pointer; }
.consent-row a { color: var(--accent2); text-decoration: underline; }

.submit-btn {
  width: 100%; margin-top: 18px;
  background: var(--accent); color: #fff;
  border: none; padding: 18px;
  font-family: 'Martian Mono', monospace;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, opacity 0.2s;
}
.submit-btn:hover { background: #a83508; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-note { margin-top: 14px; font-size: 10px; color: var(--muted); line-height: 1.7; }

.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success-icon { font-size: 48px; margin-bottom: 16px; color: var(--accent); }
.form-success h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; margin-bottom: 10px;
}
.form-success p { font-size: 12px; color: var(--muted); }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(245,241,234,0.4);
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 900;
  color: var(--paper);
}
.footer-logo span { color: var(--accent); }
footer a { color: rgba(245,241,234,0.55); text-decoration: underline; }
footer a:hover { color: var(--paper); }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
.hint-mobile { display: none; }

@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; padding-top: 80px; min-height: auto; padding-bottom: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .losses-layout, .calc-wrap, .solution-layout, .contact-layout, .case-twocol { grid-template-columns: 1fr; }
  .losses-summary, .solution-right { position: static; }
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .paradox-box, .value-pair { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .partner-stripe { grid-template-columns: 1fr; gap: 16px; }
  .nav-links { display: none; }
  .hero-bg-number { display: none; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
  #how { padding: 56px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .case-grid { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: 1fr; }
  nav { padding: 12px 16px; gap: 12px; }
  .nav-logo { font-size: 15px; }
  .nav-cta {
    font-size: 10px;
    padding: 8px 10px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 20px;
  }
}
/* ── ДОСТУПНОСТЬ: видимый фокус при навигации с клавиатуры ──
   Мышью рамка не появляется — только при Tab. Требование WCAG,
   и заодно helps людям, которые заполняют форму с клавиатуры. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav-cta:focus-visible,
.btn-primary:focus-visible,
.calc-btn:focus-visible,
.result-cta:focus-visible,
.submit-btn:focus-visible {
  outline-offset: 2px;
}

/* ── ДОСТУПНОСТЬ: уважаем системную настройку «меньше движения» ──
   У части людей анимации вызывают тошноту и головокружение.
   Если в ОС включён режим — гасим все переезды и появления,
   контент при этом остаётся полностью виден. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stat-card,
  .hero-left { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── COOKIE-УВЕДОМЛЕНИЕ ──
   Появляется один раз, выбор запоминается. position: fixed —
   значит блок не участвует в потоке и не сдвигает контент
   (иначе поисковик засчитал бы это как «скачок вёрстки», CLS). */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--ink);
  color: rgba(245,241,234,0.75);
  border-top: 2px solid var(--accent);
  padding: 16px 32px;
  font-size: 11px;
  line-height: 1.7;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { flex: 1 1 320px; margin: 0; }
.cookie-bar a { color: var(--paper); border-bottom: 1px solid rgba(245,241,234,0.4); text-decoration: none; }
.cookie-bar a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cookie-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: 'Martian Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cookie-bar button:hover { background: #a83508; }

@media (max-width: 600px) {
  .cookie-bar { padding: 14px 20px; gap: 12px; }
  .cookie-bar button { width: 100%; }
}

/* ── Honeypot ──
   Поле-ловушка для ботов: убрано из потока и из-под курсора, но остаётся в DOM
   и в форме. display:none частью ботов распознаётся, поэтому уводим за экран.
   Заполненное поле — признак бота, сервер такую заявку молча отбрасывает. */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}
