:root {
  --ink: #17323a;
  --ink-soft: #40575d;
  --deep: #0b2b3c;
  --teal: #1d6b68;
  --teal-soft: #e5f0ec;
  --gold: #c38d2d;
  --gold-soft: #f5ead3;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --white: #ffffff;
  --line: #d8ddd8;
  --line-strong: #bdc8c3;
  --danger: #a13d2d;
  --danger-soft: #fae9e4;
  --success: #237257;
  --success-soft: #e5f3eb;
  --shadow: 0 14px 36px rgba(24, 50, 58, 0.08);
  --radius: 8px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.announcement {
  padding: 9px 24px;
  color: var(--white);
  background: var(--teal);
  text-align: center;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  width: 205px;
  flex: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav .admin-link {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

main {
  overflow: hidden;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
  gap: 64px;
  align-items: end;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 34px;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.intro h1 {
  max-width: 760px;
  margin: 13px 0 14px;
  color: var(--deep);
  font-family: "STZhongsong", "Songti SC", "SimSun", serif;
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.intro-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.intro-facts {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.intro-facts > div {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.intro-facts svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.intro-facts span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.intro-facts strong {
  color: var(--ink);
  font-size: 14px;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(370px, 0.72fr);
  gap: 20px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 34px;
  align-items: start;
}

.tool-panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-panel {
  position: sticky;
  top: 92px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading h2,
.order-topline h2 {
  margin: 4px 0 0;
  color: var(--deep);
  font-size: 22px;
  line-height: 1.35;
}

.format-badge {
  padding: 4px 9px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid #c8ded7;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.live-dot span {
  width: 7px;
  height: 7px;
  background: #2a9b72;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(42, 155, 114, 0.12);
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  color: #758489;
  background: #f9f8f3;
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.step:last-child {
  border-right: 0;
}

.step span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #aeb9b5;
  border-radius: 50%;
  font-size: 11px;
}

.step.current {
  color: var(--teal);
  background: var(--teal-soft);
}

.step.current span {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.step.done {
  color: var(--success);
  background: var(--success-soft);
}

.step.done span {
  color: var(--white);
  background: var(--success);
  border-color: var(--success);
}

.drop-zone {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 134px;
  padding: 22px;
  background: #fbfaf5;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragging {
  outline: none;
  background: var(--teal-soft);
  border-color: var(--teal);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--teal);
  background: var(--white);
  border: 1px solid #cbdcd6;
  border-radius: 6px;
}

.drop-icon svg {
  width: 24px;
  height: 24px;
}

.drop-copy {
  display: grid;
  gap: 4px;
}

.drop-copy strong {
  color: var(--deep);
  font-size: 15px;
}

.drop-copy span {
  color: #728086;
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:focus-visible,
.icon-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(29, 107, 104, 0.25);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

.button-primary:hover:not(:disabled) {
  background: #155b58;
}

.button-quiet {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
  white-space: nowrap;
}

.button-quiet:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}

.button-wide {
  width: 100%;
}

.text-button {
  display: block;
  margin: 12px auto 0;
  padding: 4px;
  color: var(--teal);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.selected-file {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.file-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 5px;
}

.file-symbol svg {
  width: 21px;
  height: 21px;
}

.file-detail {
  min-width: 0;
}

.file-detail strong,
.file-detail span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail strong {
  color: var(--ink);
  font-size: 13px;
}

.file-detail span {
  color: #76858a;
  font-size: 12px;
}

.field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.form-section {
  margin-top: 24px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
  margin-bottom: 11px;
}

.section-label > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.section-label small {
  color: #7a898e;
  font-size: 11px;
}

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

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:hover {
  border-color: var(--teal);
}

.choice.selected {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: var(--teal);
}

.document-note {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  margin-top: 24px;
  padding-top: 16px;
  color: #6f7d81;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.document-note svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--teal);
}

.document-note p {
  margin: 0;
}

.rate-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.rate-line > div {
  padding: 13px 15px;
  background: #fbfaf5;
}

.rate-line > div:first-child {
  border-right: 1px solid var(--line);
}

.rate-line span,
.quote-row span,
.quote-total span,
.order-summary span {
  color: #718086;
  font-size: 12px;
}

.rate-line strong {
  display: block;
  margin-top: 3px;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.2;
}

.rate-line small {
  margin-left: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.quote-box {
  padding: 16px;
  background: #f8f7f1;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
}

.quote-row strong {
  color: var(--ink);
  font-size: 12px;
}

.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line-strong);
}

.quote-total strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
}

.quote-total b {
  font-weight: 700;
}

.quote-hint {
  margin: 12px 0 0;
  color: #718086;
  font-size: 11px;
  line-height: 1.65;
}

.payment-section {
  margin-top: 18px;
}

.payment-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-choice {
  display: grid;
  grid-template-columns: 34px 1fr 15px;
  gap: 9px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.payment-choice:hover {
  border-color: var(--teal);
}

.payment-choice.selected {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.payment-choice.disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.payment-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
}

.payment-mark.wechat {
  color: #176b48;
  background: #e3f3e8;
}

.payment-mark.alipay {
  color: #1768b0;
  background: #e5f0fa;
}

.payment-mark svg {
  width: 18px;
  height: 18px;
}

.payment-choice strong,
.payment-choice small {
  display: block;
}

.payment-choice strong {
  font-size: 12px;
}

.payment-choice small {
  color: #718086;
  font-size: 10px;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.payment-choice.selected .radio-dot {
  background: var(--teal);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--teal);
}

#startButton {
  min-height: 48px;
  margin-top: 18px;
  font-size: 15px;
}

.service-alert {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #ebcfc7;
  border-radius: 5px;
  font-size: 12px;
}

.trust-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #738287;
  font-size: 10px;
  white-space: nowrap;
}

.trust-line svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.order-panel {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 44px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.order-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.order-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-number-row h2 {
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
}

.status-badge {
  padding: 5px 10px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid #c4dcd5;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.warning {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #e9c9c0;
}

.status-badge.success {
  color: var(--success);
  background: var(--success-soft);
  border-color: #c2dfcc;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
}

.order-progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #8c989c;
  font-size: 11px;
  font-weight: 700;
}

.order-progress-step::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.order-progress-step:first-child::before {
  display: none;
}

.order-progress-step svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #879497;
  background: #f2f2ec;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.order-progress-step.done {
  color: var(--success);
}

.order-progress-step.done svg {
  color: var(--white);
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.order-progress-step.done::before,
.order-progress-step.active::before {
  background: var(--teal);
}

.order-progress-step.active {
  color: var(--teal);
}

.order-progress-step.active svg {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 22px;
}

.order-main {
  min-width: 0;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.order-message {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.payment-stage {
  display: grid;
  grid-template-columns: 174px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: #f9f8f3;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.qr-wrap {
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.qr-canvas img,
.qr-canvas canvas {
  display: block;
  width: 154px !important;
  height: 154px !important;
}

#payQrImage {
  width: 154px;
  height: 154px;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8d9a9d;
}

.qr-placeholder svg {
  width: 52px;
  height: 52px;
}

.payment-copy > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.payment-copy > strong {
  display: block;
  margin: 8px 0;
  color: var(--deep);
  font-size: 19px;
}

.payment-copy p {
  margin: 0;
  color: #728085;
  font-size: 12px;
}

.action-stage {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--teal-soft);
  border: 1px solid #c8ded7;
  border-radius: 6px;
}

.stage-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--teal);
  background: var(--white);
  border: 1px solid #c8ded7;
  border-radius: 5px;
}

.stage-icon svg {
  width: 22px;
  height: 22px;
}

.action-stage h3 {
  margin: 0 0 3px;
  color: var(--deep);
  font-size: 15px;
}

.action-stage p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.action-warning {
  background: var(--danger-soft);
  border-color: #e9c9c0;
}

.action-warning .stage-icon {
  color: var(--danger);
  border-color: #e9c9c0;
}

.action-success {
  background: var(--success-soft);
  border-color: #c2dfcc;
}

.action-success .stage-icon {
  color: var(--success);
  border-color: #c2dfcc;
}

.evidence-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  background: #f9f8f3;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.evidence-block strong {
  font-size: 12px;
}

.evidence-block p {
  margin: 2px 0 0;
  color: #718086;
  font-size: 11px;
}

.evidence-block #evidenceStatus {
  grid-column: 1 / -1;
  color: var(--success);
  font-size: 11px;
}

.order-summary {
  align-self: start;
}

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

.order-summary strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.order-summary .summary-contact {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.order-summary .button {
  margin-top: 18px;
}

.workflow-section,
.question-section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0;
}

.workflow-section {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(400px, 1.2fr);
  gap: 10px 50px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .panel-kicker {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0;
  color: var(--deep);
  font-family: "STZhongsong", "Songti SC", "SimSun", serif;
  font-size: 30px;
  line-height: 1.3;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.section-heading.compact {
  display: block;
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  margin-top: 4px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.workflow-grid article {
  position: relative;
  min-height: 220px;
  padding: 24px 22px 18px 0;
  border-right: 1px solid var(--line);
}

.workflow-grid article:not(:first-child) {
  padding-left: 22px;
}

.workflow-grid article:last-child {
  border-right: 0;
}

.workflow-grid article > span {
  position: absolute;
  top: 22px;
  right: 18px;
  color: #c7cfcc;
  font-family: Georgia, serif;
  font-size: 25px;
}

.workflow-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 30px;
  color: var(--teal);
}

.workflow-grid h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 16px;
}

.workflow-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.question-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}

.question-list details {
  border-top: 1px solid var(--line-strong);
}

.question-list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.question-list summary {
  position: relative;
  padding: 15px 34px 15px 0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.question-list summary::-webkit-details-marker {
  display: none;
}

.question-list summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 5px;
  color: var(--teal);
  font-size: 22px;
  font-weight: 400;
}

.question-list details[open] summary::after {
  content: "−";
}

.question-list p {
  margin: -4px 34px 17px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px max(24px, calc((100vw - 1240px) / 2));
  color: #8ba0a1;
  background: var(--deep);
  font-size: 12px;
}

footer img {
  width: 150px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

footer p {
  margin: 7px 0 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 15px;
  color: var(--white);
  background: var(--deep);
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(11, 43, 60, 0.25);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.spinning {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1050px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
  }

  .intro-facts {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .intro-facts > div {
    grid-template-columns: 24px 1fr;
    padding-right: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .intro-facts > div:last-child {
    border-right: 0;
  }

  .intro-facts span {
    display: grid;
    gap: 0;
  }

  .service-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .choice-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-grid article:nth-child(2) {
    border-right: 0;
  }

  .workflow-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    padding: 8px 18px;
  }

  .brand {
    width: 170px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a:not(.admin-link) {
    display: none;
  }

  .intro,
  .service-layout,
  .order-panel,
  .workflow-section,
  .question-section {
    width: min(100% - 30px, 680px);
  }

  .intro {
    padding-top: 34px;
  }

  .intro-facts {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .intro-facts > div {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-facts span {
    display: flex;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: static;
  }

  .tool-panel,
  .order-panel {
    padding: 20px;
  }

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

  .order-main {
    padding-right: 0;
    border-right: 0;
  }

  .order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .order-summary .button {
    grid-column: 1 / -1;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .panel-kicker {
    grid-column: auto;
  }

  .question-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  footer {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: relative;
  }

  .site-nav .admin-link {
    font-size: 12px;
  }

  .intro,
  .service-layout,
  .order-panel,
  .workflow-section,
  .question-section {
    width: calc(100% - 24px);
  }

  .intro h1 {
    font-size: 29px;
  }

  .intro-copy > p {
    font-size: 14px;
  }

  .tool-panel,
  .order-panel {
    padding: 16px;
  }

  .step {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 3px;
    font-size: 10px;
  }

  .drop-zone {
    grid-template-columns: 42px 1fr;
    min-height: 120px;
    padding: 16px;
  }

  .drop-icon {
    width: 42px;
    height: 42px;
  }

  .drop-zone .button {
    display: none;
  }

  .drop-copy strong {
    font-size: 14px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-label {
    align-items: flex-start;
  }

  .section-label small {
    max-width: 130px;
    text-align: right;
  }

  .trust-line {
    flex-wrap: wrap;
  }

  .order-topline {
    display: grid;
  }

  .status-badge {
    justify-self: start;
  }

  .order-progress-step span {
    font-size: 10px;
  }

  .payment-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .action-stage {
    grid-template-columns: 40px 1fr;
  }

  .action-stage .button,
  .action-stage label.button {
    grid-column: 1 / -1;
  }

  .evidence-block {
    grid-template-columns: 1fr;
  }

  .order-summary {
    grid-template-columns: 1fr;
  }

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

  .workflow-grid article,
  .workflow-grid article:not(:first-child) {
    min-height: auto;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-grid svg {
    margin-bottom: 14px;
  }

  .workflow-grid article > span {
    top: 18px;
  }

  footer {
    display: grid;
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
