.cost-article {
  --cost-navy: var(--navy, #19344f);
  --cost-muted: var(--muted, #65768a);
  --cost-soft: var(--soft, #f5f3ee);
  --cost-gold: var(--gold, #b39a6a);
}

.cost-preview-label {
  color: var(--cost-muted);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--cost-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.9;
}

.cost-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  margin: 36px 0 0;
  overflow: hidden;
  background: var(--cost-navy);
  border: 1px solid var(--line);
}

.cost-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(25, 52, 79, 0.92) 0%, rgba(25, 52, 79, 0.66) 42%, rgba(25, 52, 79, 0.08) 72%);
}

.cost-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cost-hero-message {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 220px) 52px minmax(0, 260px);
  grid-template-areas:
    "label-a symbol label-b"
    "value-a symbol value-b";
  gap: 6px 22px;
  align-self: end;
  max-width: 720px;
  padding: clamp(30px, 6vw, 64px);
  color: #fff;
}

.cost-hero-message span {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-hero-message span:first-child { grid-area: label-a; }
.cost-hero-message span:nth-of-type(2) { grid-area: label-b; }
.cost-hero-message strong:first-of-type { grid-area: value-a; }
.cost-hero-message strong:nth-of-type(2) { grid-area: value-b; }

.cost-hero-message strong {
  font-size: clamp(21px, 3vw, 34px);
  line-height: 1.35;
}

.cost-hero-message .cost-term {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.cost-hero-message i {
  grid-area: symbol;
  align-self: center;
  color: var(--cost-gold);
  font-family: Georgia, serif;
  font-size: 46px;
  font-style: normal;
  line-height: 1;
}

.cost-equation {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(360px, 2fr) 44px minmax(180px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin: 32px 0 54px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--cost-soft);
  border: 1px solid var(--line);
}

.cost-equation-base,
.cost-equation-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.cost-equation-result {
  color: #fff;
  background: var(--cost-navy);
  border-color: var(--cost-navy);
}

.cost-equation-base span,
.cost-equation-result span,
.supplier-comparison-heading > span {
  margin-bottom: 8px;
  color: var(--cost-gold);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-equation-base strong,
.cost-equation-result strong {
  color: inherit;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
}

.cost-equation-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cost-equation-factors div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 68px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.cost-equation-factors span {
  color: var(--cost-gold);
  font-size: 20px;
}

.cost-equation-factors strong {
  color: var(--cost-navy);
  font-size: 14px;
  line-height: 1.55;
}

.cost-equation-arrow {
  display: grid;
  place-items: center;
  color: var(--cost-gold);
  font-size: 34px;
}

.supplier-comparison {
  margin: 32px 0 54px;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
}

.supplier-comparison-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.supplier-comparison-heading h3 {
  margin: 0 0 10px;
  color: var(--cost-navy);
  font-size: clamp(21px, 2.4vw, 28px);
}

.supplier-comparison-heading p {
  margin: 0;
  color: var(--cost-muted);
  font-size: 14px;
  line-height: 1.9;
}

.supplier-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.supplier-flow {
  padding: 26px;
  background: var(--cost-soft);
  border-top: 3px solid var(--cost-muted);
}

.supplier-flow-reviewed {
  background: #f4f7f6;
  border-top-color: var(--green, #26463b);
}

.supplier-flow h4 {
  min-height: 3.1em;
  margin: 0 0 18px;
  color: var(--cost-navy);
  font-size: 16px;
  line-height: 1.55;
}

.supplier-flow ol {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: supplier-step;
}

.supplier-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #465462;
  font-size: 14px;
  line-height: 1.6;
  counter-increment: supplier-step;
}

.supplier-flow li::before {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--cost-navy);
  background: #fff;
  border: 1px solid var(--line);
  content: counter(supplier-step, decimal-leading-zero);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.supplier-flow li:not(:last-child)::after {
  position: absolute;
  top: 35px;
  bottom: -17px;
  left: 14px;
  width: 1px;
  content: "";
  background: var(--line);
}

.supplier-comparison-caption {
  margin: 26px 0 0;
  padding-top: 20px;
  color: var(--cost-muted);
  border-top: 1px solid var(--line);
  font-size: 13px !important;
  line-height: 1.8 !important;
}

.cost-consult {
  margin-top: 58px;
}

.cost-consult p {
  margin-top: 0;
}

.cost-consult .button {
  max-width: 100%;
  margin-top: 8px;
  white-space: normal;
  text-align: center;
}

.cost-draft-note {
  margin: 30px 0 0;
  padding: 14px 18px;
  color: var(--cost-muted);
  background: #fff9ec;
  border: 1px solid #eadab8;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .cost-hero {
    min-height: 390px;
  }

  .cost-hero::after {
    background: linear-gradient(0deg, rgba(25, 52, 79, 0.92) 0%, rgba(25, 52, 79, 0.28) 72%);
  }

  .cost-hero-message {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.2fr);
    gap: 6px 12px;
    padding: 28px;
  }

  .cost-equation {
    grid-template-columns: 1fr;
  }

  .cost-equation-base,
  .cost-equation-result {
    min-height: auto;
  }

  .cost-equation-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 620px) {
  .cost-article .article-header h1 {
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.45;
  }

  .cost-hero {
    min-height: 360px;
  }

  .cost-hero img {
    object-position: 56% center;
  }

  .cost-hero-message {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.2fr);
    padding: 22px;
  }

  .cost-hero-message strong {
    font-size: 18px;
  }

  .cost-hero-message i {
    font-size: 32px;
  }

  .cost-equation {
    margin-right: -4px;
    margin-left: -4px;
    padding: 18px;
  }

  .cost-equation-factors,
  .supplier-comparison-grid {
    grid-template-columns: 1fr;
  }

  .cost-equation-factors div {
    min-height: 56px;
  }

  .supplier-comparison {
    padding: 22px 18px;
  }

  .supplier-flow h4 {
    min-height: 0;
  }
}
