:root {
  --kb-green: #193e33;
  --kb-green-deep: #112b23;
  --kb-green-soft: #dcfbab;
  --kb-border: #edecea;
  --kb-text: #181818;
  --kb-muted: #4d4d4d;
  --kb-surface: #ffffff;
  --kb-surface-alt: #f9f9f9;
  --kb-container: 1189px;
  --kb-radius: 20px;
}

body.kb-body {
  background: #fff;
  color: var(--kb-text);
  font-family: "Raleway", sans-serif;
}

.kb-page {
  background: #fff;
}

.kb-container {
  width: min(calc(100% - 40px), var(--kb-container));
  margin: 0 auto;
}

.kb-detail-hero {
  position: relative;
  min-height: 543px;
  overflow: hidden;
  background: var(--kb-green);
}

.kb-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 62, 51, 0.82) 0%, rgba(25, 62, 51, 0.52) 41%, rgba(25, 62, 51, 0.72) 100%),
    var(--kb-hero-image) var(--kb-hero-position, center center)/cover no-repeat;
}

.kb-detail-hero--plain::before {
  background: linear-gradient(90deg, rgba(25, 62, 51, 0.96) 0%, rgba(25, 62, 51, 0.92) 100%);
}

.kb-detail-hero::after {
  content: "";
  position: absolute;
  right: -52px;
  top: 99px;
  width: 408px;
  height: 443px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #254e41 0%, var(--kb-green) 72%);
  opacity: 0.98;
}

.kb-detail-hero-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.48;
}

.kb-detail-hero-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-detail-hero-layer--corner {
  inset: auto auto 0 0;
  width: 42%;
  height: 48%;
  opacity: 0.42;
}

.kb-detail-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 543px;
  padding-bottom: 110px;
}

.kb-detail-hero-copy {
  width: min(899px, 100%);
  color: #ededed;
}

.kb-detail-hero-label {
  display: block;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.kb-detail-hero-copy h1 {
  margin: 0;
  color: #ededed;
  font-size: clamp(2.55rem, 4vw, 54px);
  line-height: 1.1;
  font-weight: 700;
}

.kb-detail-section {
  padding: 70px 0 110px;
}

.kb-detail-badge {
  display: grid;
  align-content: center;
  width: min(231px, 100%);
  min-height: 48px;
  margin: 0 0 26px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(220, 251, 171, 0.9) 0%, rgba(220, 251, 171, 0.3) 100%);
  color: var(--kb-green-deep);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.kb-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 692px) minmax(320px, 375px);
  gap: 99px;
  align-items: start;
}

.kb-article {
  width: 100%;
}

.kb-article > * + * {
  margin-top: 48px;
}

.kb-block {
  display: grid;
  gap: 18px;
}

.kb-article-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--kb-text);
}

.kb-article h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--kb-text);
}

.kb-minor-heading {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--kb-text);
}

.kb-article p,
.kb-article li,
.kb-sidebar-copy p,
.kb-overview-hero p,
.kb-listing-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--kb-text);
}

.kb-arrow-note {
  font-weight: 500;
}

.kb-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.kb-list--ordered {
  list-style: decimal;
}

.kb-list li::marker {
  color: var(--kb-text);
}

.kb-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius);
  background: #fff;
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.kb-table th,
.kb-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 16px;
  line-height: 1.45;
  color: var(--kb-text);
  vertical-align: top;
}

.kb-table thead th {
  background: var(--kb-green-soft);
  font-weight: 700;
}

.kb-table tbody tr + tr td {
  border-top: 1px solid rgba(24, 24, 24, 0.08);
}

.kb-card {
  padding: 28px 24px;
  border-radius: var(--kb-radius);
  border: 1px solid var(--kb-border);
  background: #edecea;
}

.kb-card--soft {
  background: #f1f1ef;
}

.kb-inline-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.kb-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1.25fr;
  gap: 24px;
}

.kb-spec-grid-column {
  display: grid;
  gap: 16px;
  font-size: 16px;
  line-height: 1.35;
}

.kb-spec-grid-column--label {
  font-weight: 600;
}

.kb-spec-grid-divider {
  background: rgba(24, 24, 24, 0.12);
}

.kb-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kb-stat-card {
  background: var(--kb-green-soft);
  border-radius: 10px;
  padding: 14px 12px;
  display: grid;
  gap: 6px;
}

.kb-stat-card span,
.kb-stat-card small {
  font-size: 14px;
  line-height: 1.3;
}

.kb-stat-card strong {
  font-size: 36px;
  line-height: 1.1;
}

.kb-media,
.kb-split-image,
.kb-quote-image {
  margin: 0;
}

.kb-media--placeholder {
  display: block;
}

.kb-media img,
.kb-split-image img,
.kb-quote-image img,
.kb-listing-image img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--kb-radius);
}

.kb-media img,
.kb-split-image img {
  min-height: 415px;
}

.kb-media-placeholder {
  width: 100%;
  min-height: 415px;
  border-radius: var(--kb-radius);
  background: #c4c4c4;
}

.kb-media--tight img {
  min-height: 0;
  max-width: 560px;
  margin: 0 auto;
}

.kb-quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 289px;
  gap: 28px;
  align-items: end;
}

.kb-quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-style: italic;
  color: #3a3a3a;
}

.kb-quote footer {
  margin-top: 18px;
  font-style: normal;
  font-weight: 600;
  color: var(--kb-text);
}

.kb-callout {
  padding: 31px;
  border-radius: var(--kb-radius);
  background: var(--kb-green-soft);
}

.kb-tip {
  width: min(476px, 100%);
  padding: 20px;
  border-radius: var(--kb-radius);
  background: var(--kb-green-soft);
  display: grid;
  gap: 10px;
}

.kb-tip--compact {
  width: min(483px, 100%);
}

.kb-tip strong {
  font-size: 16px;
  line-height: 1.25;
}

.kb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 277px;
  gap: 28px;
  align-items: start;
}

.kb-price-stack {
  display: grid;
  gap: 18px;
}

.kb-price-stack div {
  display: grid;
  gap: 6px;
}

.kb-price-stack strong,
.kb-price-stack span {
  font-size: 16px;
  line-height: 1.5;
}

.kb-phase-list {
  display: grid;
  gap: 14px;
}

.kb-phase-list div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.kb-phase-list span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--kb-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kb-sidebar {
  position: sticky;
  top: 132px;
}

.kb-sidebar-card {
  display: grid;
  gap: 24px;
}

.kb-sidebar-copy {
  display: grid;
  gap: 12px;
}

.kb-sidebar-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
}

.kb-form-wrapper,
.kb-form-wrapper.grijs {
  margin: 0;
  padding: 24px 25px;
  border-radius: 10px;
  background: #f6f6f4;
}

.kb-form-wrapper .form-block {
  margin: 0;
}

.kb-compact-form {
  display: grid;
  gap: 10px;
}

.kb-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kb-compact-form .form_text-field,
.kb-compact-form .form-textarea {
  min-height: 45px;
  margin-bottom: 0;
  border: 0;
  border-radius: 10px;
  background: var(--kb-surface);
  padding: 15px 25px;
  font-size: 14px;
  line-height: 1.1;
  font-family: "Raleway", sans-serif;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 24, 0.04);
}

.kb-compact-form .form-textarea {
  min-height: 105px;
  resize: vertical;
}

.kb-checkbox {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  font-size: 14px;
  line-height: 1.1;
}

.kb-checkbox input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
}

.kb-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.kb-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kb-green);
  font-size: 16px;
}

.kb-rating span {
  letter-spacing: 2px;
}

.kb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.kb-button:hover {
  transform: translateY(-1px);
}

.kb-button--primary,
.kb-button--secondary {
  background: var(--kb-green);
  color: #fff;
}

.kb-button--ghost {
  border-color: rgba(25, 62, 51, 0.18);
  color: var(--kb-green);
  background: #fff;
}

.kb-detail-actions,
.kb-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kb-detail-actions {
  margin-top: 42px;
}

.kb-overview-hero {
  padding: 120px 0 56px;
  background: linear-gradient(180deg, #f6f7f4 0%, #ffffff 100%);
}

.kb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.kb-overview-hero-copy {
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.kb-overview-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--kb-green);
}

.kb-overview-section {
  padding: 0 0 100px;
}

.kb-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.kb-listing-card {
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--kb-border);
  background: #fff;
}

.kb-listing-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.kb-listing-image img {
  height: 100%;
  transition: transform 0.35s ease;
}

.kb-listing-card:hover .kb-listing-image img {
  transform: scale(1.03);
}

.kb-listing-body {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.kb-listing-body h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.kb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(220, 251, 171, 0.4);
  color: var(--kb-green);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .kb-detail-grid {
    gap: 48px;
  }
}

@media (max-width: 1100px) {
  .kb-detail-grid,
  .kb-split,
  .kb-quote-row {
    grid-template-columns: 1fr;
  }

  .kb-sidebar {
    position: static;
  }

  .kb-detail-grid {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .kb-container {
    width: min(calc(100% - 24px), var(--kb-container));
  }

  .kb-overview-grid,
  .kb-stat-grid,
  .kb-field-row,
  .kb-spec-grid {
    grid-template-columns: 1fr;
  }

  .kb-spec-grid-divider {
    display: none;
  }

  .kb-detail-hero {
    min-height: 420px;
  }

  .kb-detail-hero::after {
    width: 255px;
    height: 280px;
    right: -92px;
    top: 78px;
  }

  .kb-detail-hero-inner {
    min-height: 420px;
    padding-bottom: 64px;
  }

  .kb-detail-hero-label {
    margin-bottom: 14px;
  }

  .kb-detail-badge {
    width: 100%;
  }

  .kb-media img,
  .kb-split-image img {
    min-height: 280px;
  }

  .kb-tip,
  .kb-tip--compact {
    width: 100%;
  }

  .kb-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kb-button {
    width: 100%;
  }
}
