:root {
  --brand: #1f5fbf;
  --brand-dark: #153f7a;
  --ink: #101820;
  --muted: #5d6977;
  --line: #dfe6ee;
  --surface: #f4f7fb;
  --white: #fff;
  --accent: #df302d;
  --brand-soft: #edf4ff;
  --success: #1e7d50;
  --shadow: 0 18px 48px rgba(16, 24, 32, .10);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { left: 8px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 99px; background: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231,233,232,.8);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 148px; height: auto; }
.brand-text { display: none; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #333a38;
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); color: var(--brand-dark); }
.nav .nav-cta { background: var(--ink); color: #fff; }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.menu-button { display: none; border: 0; background: var(--surface); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s; }

.hero {
  overflow: hidden;
  position: relative;
  padding: 100px 0 80px;
  background:
    radial-gradient(circle at 83% 18%, rgba(31,95,191,.13), transparent 25%),
    linear-gradient(180deg, #fff 0%, #fafbfb 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -300px;
  width: 620px;
  height: 620px;
  border: 80px solid rgba(31,95,191,.05);
  border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.hero h1 { max-width: 760px; margin: 18px 0 20px; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { color: var(--brand); }
.hero-lead { max-width: 710px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1.04rem, 1.6vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(31,95,191,.22); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }

.app-window { overflow: hidden; border: 1px solid #ddd; border-radius: 24px; background: #fff; box-shadow: var(--shadow); transform: rotate(1.3deg); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f4f5f5; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c8cdcb; }
.dot:first-child { background: var(--accent); }
.window-title { margin-left: 8px; color: #666; font-size: .8rem; }
.window-content { padding: 24px; }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.status-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.status-card small { display: block; color: var(--muted); }
.status-card strong { font-size: .9rem; }
.status-ok { color: var(--success); }
.mock-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 1fr .8fr .55fr; gap: 10px; padding: 12px 13px; border-bottom: 1px solid var(--line); font-size: .78rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row.head { color: var(--muted); background: var(--surface); font-weight: 750; }
.badge { display: inline-flex; width: fit-content; align-items: center; padding: 3px 8px; border-radius: 999px; background: #e9f6ef; color: var(--success); font-weight: 750; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 27px 20px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .86rem; }

.section { padding: 92px 0; }
.section-muted { background: var(--surface); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head h2 { margin: 12px 0 14px; font-size: clamp(2rem, 3.6vw, 3.35rem); line-height: 1.08; letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.section-dark .section-head p { color: #b8bfbd; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(16,24,32,.04); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: rgba(31,95,191,.09); color: var(--brand); font-weight: 900; }
.card h3 { margin: 0 0 9px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: steps; }
.flow-item { position: relative; padding: 24px 18px; border: 1px solid #303635; border-radius: 16px; background: #181d1c; }
.flow-item::before { counter-increment: steps; content: counter(steps); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 15px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.flow-item h3 { margin: 0 0 7px; font-size: 1rem; }
.flow-item p { margin: 0; color: #aeb6b3; font-size: .88rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding: 10px 0 10px 31px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--success); font-weight: 900; }
.note { padding: 20px 22px; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: #eef5ff; color: #263b57; }

.page-hero { padding: 72px 0 54px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fff,#fafafa); }
.page-hero h1 { max-width: 840px; margin: 12px 0 15px; font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.04; letter-spacing: -.05em; }
.page-hero p { max-width: 780px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 50px; align-items: start; }
.doc-nav { position: sticky; top: 102px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.doc-nav strong { display: block; margin-bottom: 9px; }
.doc-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: .92rem; text-decoration: none; }
.doc-nav a:hover { color: var(--brand); }
.prose { min-width: 0; }
.prose h2 { scroll-margin-top: 100px; margin: 52px 0 16px; font-size: 2rem; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: #48504e; }
.prose code { padding: 2px 6px; border-radius: 6px; background: #edf2f8; color: #174a94; font-size: .9em; }
.prose pre { overflow-x: auto; padding: 20px; border-radius: 14px; background: #111514; color: #e9eded; }
.info-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; }
.info-table th, .info-table td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 34%; background: var(--surface); }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 38px; border-radius: 24px; background: var(--brand); color: #fff; }
.cta-panel h2 { margin: 0 0 8px; font-size: 2rem; }
.cta-panel p { margin: 0; color: #dbe9ff; }
.cta-panel .button { background: #fff; color: var(--brand-dark); }

.site-footer { padding: 52px 0 26px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-brand img { width: 170px; margin-bottom: 15px; }
.footer-brand p { max-width: 420px; color: var(--muted); }
.footer-col strong { display: block; margin-bottom: 12px; }
.footer-col a { display: block; width: fit-content; margin: 7px 0; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 20px; right: 20px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
  .nav.open { display: grid; }
  .nav a { width: 100%; }
  .hero { padding-top: 70px; }
  .hero-grid, .two-col, .doc-layout, .cta-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doc-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 126px; }
  .hero { padding: 56px 0 58px; }
  .hero h1 { font-size: 2.55rem; }
  .section { padding: 68px 0; }
  .cards, .flow, .footer-grid { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr .7fr; }
  .mock-row span:nth-child(2) { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .cta-panel { padding: 28px; }
  .footer-bottom { flex-direction: column; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; }
}
