:root {
  --ink: #183230;
  --muted: #61716d;
  --line: #dce5e1;
  --paper: #fbfcfa;
  --soft: #eef4f1;
  --teal: #0d3b38;
  --teal-2: #17645d;
  --gold: #d9aa52;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 45, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal);
  background: var(--soft);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  max-width: 780px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 20px;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-intro .lead {
  font-size: 17px;
}

.actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--teal);
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--teal);
}

.hero-media,
.feature-media {
  position: relative;
}

.hero-media img,
.feature-media img,
.page-visual img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::after,
.feature-media::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 42%;
  height: 38%;
  border: 3px solid var(--gold);
  border-radius: 8px;
  z-index: -1;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact,
.service,
.contact-item,
.policy-block {
  background: var(--white);
  padding: 24px;
}

.fact strong {
  display: block;
  color: var(--teal);
  font-size: 24px;
}

.fact span,
.service p,
.contact-item p,
.policy-block p,
.policy-block li {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.services-grid,
.contact-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  min-height: 180px;
}

.service a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.service a:hover {
  text-decoration: underline;
}

.service .num {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 18px;
}

.page-head {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-head-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.page-head h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.policy-head .page-head-inner {
  grid-template-columns: 1fr;
  padding: 52px 0 42px;
}

.policy-head h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  max-width: 760px;
}

.page-visual img {
  min-height: 260px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.value {
  border-top: 3px solid var(--gold);
  padding-top: 18px;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-item a {
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.policy-grid {
  grid-template-columns: 1fr 1fr;
}

.policy-block ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps,
.feature-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step,
.feature-card,
.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.step span,
.feature-card span,
.detail-card span {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-band {
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 10px 0 0;
}

.cta-band .button {
  border-color: var(--white);
  color: var(--white);
  white-space: nowrap;
}

.detail-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 36px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.detail-hero img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.app-showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.app-visuals {
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screen {
  width: min(330px, 78%);
  max-height: 620px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-icon {
  position: absolute;
  right: 2%;
  bottom: 7%;
  width: 132px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.app-stat {
  padding: 18px;
  background: var(--white);
}

.app-stat strong {
  display: block;
  color: var(--teal);
  font-size: 22px;
}

.app-stat span {
  color: var(--muted);
  font-size: 14px;
}

.content-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.content-page section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.content-page section:first-child {
  padding-top: 0;
}

.content-page section:last-child {
  border-bottom: 0;
}

.legal-document pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  color: var(--muted);
}

.content-page h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 36px);
}

.content-page h3 {
  margin: 22px 0 10px;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page ul,
.content-page ol {
  padding-left: 22px;
}

.loan-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
}

.loan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.loan-table th,
.loan-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.loan-table th {
  background: var(--soft);
  color: var(--teal);
}

.loan-table tr:last-child td {
  border-bottom: 0;
}

.calculation {
  background: var(--soft);
  border-left: 4px solid var(--gold);
  padding: 24px;
  margin-top: 20px;
}

.calculation p {
  margin: 8px 0;
}

.policy-note {
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.footer {
  background: var(--teal);
  color: var(--white);
  margin-top: 40px;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1.25fr 1.2fr;
  gap: 36px;
}

.footer h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 17px;
}

.footer-brand {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
}

.footer-copy {
  margin-top: 14px;
  max-width: 300px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin: 10px 0;
}

.footer-list a {
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-placeholder {
  color: rgba(255, 255, 255, 0.58);
  cursor: default;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--white);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 18, 34, 0.66);
}

.ticket-modal.is-open {
  display: flex;
}

.ticket-dialog {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.ticket-head,
.ticket-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
}

.ticket-head {
  border-bottom: 1px solid var(--line);
}

.ticket-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.ticket-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.ticket-form {
  padding: 22px 26px 24px;
}

.ticket-field {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.ticket-field label {
  color: #666;
  font-size: 18px;
  font-weight: 800;
}

.ticket-field input,
.ticket-field textarea {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #f0f4ff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
}

.ticket-field input {
  min-height: 54px;
}

.ticket-field textarea {
  min-height: 142px;
  resize: vertical;
}

.ticket-field input:focus,
.ticket-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(23, 100, 93, 0.18);
}

.ticket-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.ticket-submit {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: #126df6;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.ticket-message {
  margin: -4px 26px 20px;
  color: var(--teal);
  font-weight: 800;
  display: none;
}

.ticket-message.is-visible {
  display: block;
}

.ticket-message.is-error {
  color: #b42318;
}

.ticket-message.is-success {
  color: var(--teal);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 4px;
  }

  .hero,
  .split,
  .page-head-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .quick-facts,
  .services-grid,
  .values,
  .contact-grid,
  .policy-grid,
  .steps,
  .feature-grid,
  .detail-grid,
  .detail-hero,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 176px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 7px 8px;
  }

  .section,
  .page-head-inner {
    padding: 46px 0;
  }

  .hero-media img,
  .feature-media img,
  .page-visual img {
    min-height: 240px;
  }

  .app-visuals {
    min-height: 520px;
  }

  .app-screen {
    width: 82%;
    max-height: 520px;
  }

  .app-icon {
    width: 96px;
    right: 0;
  }

  .app-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ticket-head,
  .ticket-form,
  .ticket-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ticket-field label {
    font-size: 18px;
  }

  .ticket-field input {
    min-height: 52px;
  }
}
