:root {
  --green: #00614e;
  --green-dark: #003d32;
  --green-deep: #06261f;
  --teal: #14998a;
  --teal-soft: #e7f6f4;
  --gold: #e4b33a;
  --ink: #142421;
  --muted: #5d6d68;
  --paper: #f4f1ea;
  --card: #ffffff;
  --line: #e4e7e4;
  --danger: #9d2c2c;
  --shadow: 0 18px 50px rgba(6, 38, 31, 0.12);
  --radius: 22px;
  --header: 78px;
  --max: 1140px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.topbar {
  background: var(--green-deep);
  color: #e7f3ef;
  font-size: 13.5px;
}
.topbar-inner, .header-inner, .wrap, .footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar span { opacity: 0.85; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(6, 38, 31, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header);
}
.brand img,
.footer-logo {
  height: 54px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(6, 38, 31, 0.18);
}
.footer-logo {
  height: 58px;
  box-shadow: none;
}
.nav-toggle, .caret {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle {
  margin-left: auto;
  padding: 10px 14px;
  display: none;
}
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.menu a, .drop > a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 560;
  font-size: 14.5px;
}
.drop { position: relative; display: flex; align-items: center; }
.drop > a, .menu > a {
  padding: 8px 8px;
  border-radius: 999px;
}
.menu a.active, .drop > a.active, .drop:hover > a, .menu a:hover { background: var(--teal-soft); color: var(--green-dark); }
.caret {
  width: 28px;
  height: 28px;
  padding: 0;
  position: relative;
}
.caret::before {
  content: "";
  position: absolute;
  inset: 10px 8px auto;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}
.panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  border: 1px solid var(--line);
}
.panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.panel a:hover, .panel a.active { background: var(--teal-soft); }
@media (min-width: 1040px) {
  .drop:hover .panel, .drop:focus-within .panel, .drop.open .panel { display: block; }
}
.header-cta { margin-left: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn.light { background: #fff; color: var(--green-dark); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn.teal { background: var(--teal); }
.btn.small { padding: 10px 14px; font-size: 14px; }

.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  display: grid;
  align-items: end;
  background: #06261f center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 38, 31, 0.88) 0%, rgba(6, 38, 31, 0.55) 52%, rgba(6, 38, 31, 0.2) 100%),
    linear-gradient(180deg, rgba(6, 38, 31, 0.15), rgba(6, 38, 31, 0.45));
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 88px; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.hero h1, .page-hero h1, .display {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 740px; margin: 10px 0 12px; }
.lede { font-size: 19px; max-width: 620px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.stat {
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-family: var(--display); font-size: 30px; color: var(--green); line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 72px 0; }
.section h2 { font-family: var(--display); font-size: clamp(32px, 4vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; }
.intro { color: var(--muted); max-width: 680px; margin-bottom: 28px; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card, .offer, .news-card, .agency, .value, .product {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.offer, .value {
  padding: 22px;
  text-decoration: none;
  color: inherit;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer:hover, .value:hover, .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer .mark, .value .mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--green); font-weight: 800;
  margin-bottom: 16px;
}
.offer h3, .value h3, .product h3 { margin: 0 0 8px; font-size: 22px; }
.offer p, .value p { margin: 0; color: var(--muted); }
.offer .more, .value .more { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--green); }

.page-hero {
  background: linear-gradient(160deg, var(--green-deep), var(--green) 70%);
  color: #fff;
  padding: 54px 0 46px;
}
.page-hero p { max-width: 680px; color: rgba(255,255,255,.88); }
.crumbs { font-size: 14px; opacity: .8; margin-bottom: 10px; }
.crumbs a { color: #fff; }

.prose { max-width: 760px; }
.prose h2 { font-size: 32px; }
.timeline { display: grid; gap: 14px; margin: 22px 0; }
.timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
}
.timeline b { color: var(--green); }

.product { padding: 22px; }
.product ul { margin: 10px 0 0; padding-left: 18px; }
.product li { margin: 4px 0; }
.note {
  background: #fff8e8;
  border: 1px solid #f0ddaa;
  border-radius: 16px;
  padding: 14px 16px;
  color: #5c4a16;
}

.news-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.news-card div { padding: 16px 16px 18px; }
.news-card time, .tag {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button[aria-pressed="true"] { background: var(--green); color: #fff; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.agency-layout { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.agency-list { display: grid; gap: 10px; max-height: 680px; overflow: auto; padding-right: 4px; }
.agency { padding: 14px; cursor: pointer; text-align: left; width: 100%; }
.agency strong { display: block; }
.agency small { color: var(--muted); }
.agency.selected { outline: 2px solid var(--green); }
.map-frame {
  background: #dfe7e4;
  border-radius: 22px;
  overflow: hidden;
  min-height: 680px;
  border: 1px solid var(--line);
  position: sticky;
  top: 96px;
}
.map-frame iframe { width: 100%; height: 680px; border: 0; }

.sim-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
form.panel-form, .result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
label { display: block; font-weight: 650; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd6d3;
  border-radius: 12px;
  padding: 12px 12px;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: 14px; margin-top: 6px; }
.error { color: var(--danger); font-size: 14px; }
.result b.amount { font-family: var(--display); font-size: 40px; color: var(--green); display: block; line-height: 1; }
.rows { display: grid; gap: 8px; margin-top: 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
th, td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
.table-wrap { max-height: 280px; overflow: auto; }

.ribbon {
  background: var(--green-deep);
  color: #fff;
  padding: 28px 0;
}
.ribbon-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; align-items: center; }
.ribbon h2 { color: #fff; font-size: 34px; margin: 0 0 8px; }
.ribbon p { margin: 0 0 12px; color: rgba(255,255,255,.84); }
.digital-tile {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
}
.digital-tile strong { display: block; font-size: 20px; }
code.ussd {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gold);
}

.site-footer { background: var(--green-dark); color: #e5f2ee; padding: 42px 0 22px; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.site-footer h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  font-size: 13px; font-weight: 800;
}
.legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.75); }
.hp { position: absolute; left: -9999px; }

.article-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 22px; }
.faq details {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.status {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.status.ok { background: #e7f6f1; color: #0d4f3e; }
.status.bad { background: #fdecec; color: #7d2222; }

@media (max-width: 1039px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .drop { flex-wrap: wrap; }
  .drop > a { flex: 1; }
  .panel { position: static; box-shadow: none; display: none; width: 100%; }
  .drop.open .panel { display: block; }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .grid-3, .sim-layout, .agency-layout, .ribbon-grid, .footer-grid { grid-template-columns: 1fr; }
  .map-frame, .map-frame iframe { min-height: 360px; height: 360px; position: static; }
  .timeline article { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-2, .stats { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .brand img { height: 46px; border-radius: 14px; }
}
