:root {
  --bg: #f7f5ef;
  --paper: #ffffff;
  --ink: #18202a;
  --muted: #667085;
  --line: #e6e1d6;
  --accent: #0f766e;
  --accent-dark: #0b4f49;
  --gold: #d69c2f;
  --soft: #e7f3ef;
  --shadow: 0 18px 48px rgba(24, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.error-card {
  width: min(100%, 620px);
  padding: clamp(32px, 7vw, 64px);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.error-card h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
}

.error-card p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(230, 225, 214, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 17px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #384252;
  font-size: 15px;
  white-space: nowrap;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 620px;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.hero-copy h1,
.checkout-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-text,
.checkout-copy p {
  max-width: 670px;
  margin: 24px 0 0;
  color: #4f5b6b;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.pay-button {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover,
.pay-button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
}

.hero-panel {
  position: relative;
  min-height: 420px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 42%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
}

.price-card {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  padding: 24px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
}

.service-label,
.price-note {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.price-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 52px;
  line-height: 1;
}

.logic-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 96px;
}

.logic-board span {
  min-height: 86px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 800;
}

.section {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section h2,
.terms h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

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

.feature {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature h3,
.steps h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.feature p,
.steps p,
.notice p,
.terms li,
.pay-tip {
  margin: 0;
  color: var(--muted);
}

.band {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 18px;
  padding: 26px;
  background: #f8fbfa;
  border: 1px solid #dce9e5;
  border-radius: 8px;
}

.steps span {
  color: var(--gold);
  font-weight: 900;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--accent-dark);
  color: #fff;
}

.notice p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: 28px;
  padding: clamp(42px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.checkout-copy,
.pay-card,
.terms {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(24, 32, 42, 0.07);
}

.checkout-copy {
  padding: clamp(28px, 5vw, 46px);
}

.summary-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list span {
  color: var(--muted);
}

.pay-card {
  padding: 26px;
}

.pay-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pay-total span {
  color: var(--muted);
}

.pay-total strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.order-form {
  display: grid;
  gap: 16px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.order-form textarea {
  resize: vertical;
}

.pay-button {
  width: 100%;
  margin-top: 4px;
}

.pay-tip {
  margin-top: 16px;
  font-size: 13px;
}

.terms {
  grid-column: 1 / -1;
  padding: 30px;
}

.terms ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 18px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  .hero,
  .checkout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .checkout-copy h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

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

  .logic-board {
    margin-top: 56px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .hero,
  .section,
  .checkout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .button {
    width: 100%;
  }

  .logic-board {
    grid-template-columns: 1fr;
  }

  .summary-list div,
  .pay-total {
    align-items: flex-start;
    flex-direction: column;
  }
}
