.tands-cost-guide-view .site-main,
.tands-cost-guide-view main {
  overflow: clip;
}

.cost-guide {
  --cg-navy: #071b36;
  --cg-green: #08764f;
  --cg-mint: #dff7eb;
  --cg-soft: #f5faf8;
  --cg-line: #c9dfd6;
  --cg-text: #10243c;
  --cg-muted: #526579;
  color: var(--cg-text);
  direction: rtl;
}

.cg-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.cg-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  background: var(--cg-navy);
  isolation: isolate;
}

.cg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 27, 54, .88), rgba(7, 27, 54, .56));
}

.cg-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cg-hero__content {
  padding-block: 76px 64px;
  color: #fff;
}

.cg-kicker,
.cg-heading > p {
  margin: 0 0 10px;
  color: #22dc92;
  font-weight: 800;
}

.cg-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.cg-hero__lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: #eef7f3;
  font-size: 1.08rem;
  line-height: 1.9;
}

.cg-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.cg-facts li {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(7,27,54,.42);
  color: #fff;
}

.cg-section {
  padding-block: 72px;
}

.cg-section--soft { background: var(--cg-soft); }
.cg-section--dark { background: var(--cg-navy); color: #fff; }

.cg-heading { max-width: 790px; margin-bottom: 30px; }
.cg-heading h2 { margin: 0; color: inherit; font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.3; letter-spacing: 0; }
.cg-heading__intro { margin-top: 14px; color: var(--cg-muted); line-height: 1.9; }
.cg-section--dark .cg-heading__intro { color: #cad7e5; }

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

.cg-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--cg-line);
  border-radius: 8px;
  background: #fff;
}

.cg-card h3 { margin: 0 0 10px; color: var(--cg-green); font-size: 1.2rem; }
.cg-card p { margin: 0; color: var(--cg-muted); line-height: 1.8; }
.cg-card__tag { display: inline-block; margin-top: 18px; color: var(--cg-green); font-weight: 800; font-size: .9rem; }

.cg-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-checklist li {
  position: relative;
  padding: 17px 48px 17px 18px;
  border-bottom: 1px solid var(--cg-line);
  line-height: 1.75;
}

.cg-checklist li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 12px;
  top: 17px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cg-mint);
  color: var(--cg-green);
  font-weight: 900;
}

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

.cg-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.cg-links a:hover,
.cg-links a:focus-visible { border-color: #22dc92; color: #22dc92; }

.cg-note {
  margin-top: 28px;
  padding: 20px 22px;
  border-inline-start: 4px solid var(--cg-green);
  background: var(--cg-mint);
  color: var(--cg-text);
  line-height: 1.85;
}

.cg-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--cg-line);
  border-radius: 8px;
  background: #fff;
}

.cg-cta h2 { margin: 0 0 8px; color: var(--cg-text); font-size: 1.8rem; }
.cg-cta p { margin: 0; color: var(--cg-muted); line-height: 1.8; }
.cg-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 6px; background: var(--cg-green); color: #fff; font-weight: 800; text-decoration: none; }
.cg-button:hover,.cg-button:focus-visible { background: #075f42; color: #fff; }

@media (max-width: 900px) {
  .cg-grid, .cg-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-cta { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cg-shell { width: min(100% - 28px, 1180px); }
  .cg-hero { min-height: 500px; }
  .cg-hero__content { padding-block: 62px 42px; }
  .cg-hero h1 { font-size: 2.15rem; }
  .cg-section { padding-block: 52px; }
  .cg-grid, .cg-links, .cg-checklist { grid-template-columns: 1fr; }
  .cg-card { min-height: auto; }
  .cg-cta { padding: 24px 20px; }
  .cg-button { width: 100%; }
}
