:root {
  color-scheme: light;
  --sidebar: #061b2a;
  --sidebar-deep: #031421;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-panel: #fbfcfe;
  --border: #dce3ec;
  --border-strong: #c8d3df;
  --text: #111827;
  --muted: #5f6b7a;
  --faint: #8a96a5;
  --blue: #1f6feb;
  --blue-strong: #0f5bd7;
  --teal: #18c9c4;
  --green: #168a3a;
  --green-bg: #e8f7ee;
  --amber: #b66d05;
  --amber-bg: #fff4dc;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 48px rgba(15, 23, 42, 0.07);
  --radius: 6px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: #ffffff;
  letter-spacing: 0;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.header-inner,
.trust-main,
.site-footer {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 20px;
  font-weight: 780;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #052132;
  background: linear-gradient(135deg, #14e2db, #20c8f7);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.5;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #344254;
  font-size: 13px;
  font-weight: 700;
}

.app-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 720;
}

.app-link,
.secondary-button {
  color: #253140;
  border: 1px solid var(--border);
  background: #ffffff;
}

.primary-button {
  color: #ffffff;
  border: 1px solid var(--blue-strong);
  background: linear-gradient(180deg, #2b7cff, #0f61dc);
  box-shadow: 0 7px 16px rgba(31, 111, 235, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.app-link:hover {
  text-decoration: none;
}

.trust-main {
  padding: 46px 0 58px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-panel,
.content-card,
.contact-card,
.status-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.hero-panel h2,
.content-card h2,
.contact-card h2 {
  font-size: 15px;
  font-weight: 780;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  box-shadow: none;
}

.status-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-card strong {
  font-size: 16px;
}

.status-card.success strong {
  color: var(--green);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 14px;
  color: #543e16;
  border: 1px solid #f3c77d;
  border-radius: var(--radius);
  background: var(--amber-bg);
  font-size: 13px;
  line-height: 1.45;
}

.notice svg {
  flex: none;
  margin-top: 1px;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.toc strong {
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  padding: 7px 8px;
  color: #2f3b4a;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
}

.toc a:hover {
  background: #ffffff;
  text-decoration: none;
}

.content-stack {
  display: grid;
  gap: 14px;
}

.content-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.content-card p,
.content-card li {
  color: #445161;
  font-size: 14px;
  line-height: 1.65;
}

.content-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.content-card small {
  color: var(--muted);
  line-height: 1.5;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

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

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.form-row span {
  color: #344254;
  font-size: 12px;
  font-weight: 760;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 13px;
}

.form-row textarea {
  min-height: 150px;
  padding-top: 11px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #95bfff;
  outline: 2px solid rgba(31, 111, 235, 0.14);
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-status {
  min-height: 20px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.form-status.error {
  color: #b42318;
}

.contact-side {
  display: grid;
  gap: 12px;
}

.side-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.side-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.side-item strong {
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 880px) {
  .header-inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .header-nav,
  .footer-links {
    flex-wrap: wrap;
  }

  .hero,
  .content-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .form-grid,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .app-link {
    width: 100%;
  }
}
