:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --surface-muted: #f7f9fc;
  --text: #172033;
  --muted: #5f6f84;
  --muted-2: #7b8798;
  --line: #d9e3ef;
  --line-soft: #e8eef6;
  --primary: #143866;
  --primary-2: #205a99;
  --primary-3: #2d74bf;
  --success: #25724a;
  --warning: #9a5b10;
  --danger: #9f2b2b;
  --shadow: 0 24px 60px rgba(20, 43, 75, 0.12);
  --shadow-soft: 0 14px 35px rgba(20, 43, 75, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-width: 320px;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--primary); }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li + li { margin-top: 8px; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(20, 56, 102, 0.18);
}

.brand span { font-size: 18px; }

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary);
  border-radius: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 10px;
  gap: 14px;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a { color: #334155; }
.main-nav a { white-space: nowrap; }
.main-nav a:hover { color: var(--primary-2); }

.header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; }

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover,
button.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #fff;
  background: var(--primary-2);
  box-shadow: 0 14px 28px rgba(32, 90, 153, 0.22);
}
.button-primary:hover { color: #fff; background: var(--primary); }
.button-secondary {
  color: var(--primary);
  background: #fff;
  border-color: var(--line);
}
.button-secondary:hover { background: var(--surface-soft); }
.button-ghost {
  color: var(--primary);
  background: transparent;
  border-color: var(--line);
}

.hero {
  padding: 76px 0 56px;
  background:
    radial-gradient(circle at 86% 16%, rgba(45,116,191,.14), transparent 34%),
    linear-gradient(180deg, #f9fbff 0%, #f5f7fb 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--primary-3);
  border-radius: 2px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.hero-subtitle {
  margin: 0 0 18px;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
  font-weight: 750;
  color: #1c3556;
  letter-spacing: -0.03em;
}
.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
}
.hero-panel img {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.trust-item {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 16px;
}
.trust-item strong { display: block; color: var(--primary); font-size: 15px; }
.trust-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.section { padding: 72px 0; }
.section-tight { padding: 52px 0; }
.section-white { background: var(--surface); }
.section h2,
.page-content h1,
.page-content h2,
.page-content h3 {
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.section h2 { font-size: clamp(30px, 4vw, 44px); }
.section-intro {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 34px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card-muted { background: var(--surface-muted); box-shadow: none; }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.025em; }
.card p { color: var(--muted); }
.card ul { color: var(--muted); }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #e5effb;
  border: 1px solid #d6e4f4;
  margin-bottom: 18px;
  position: relative;
}
.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  background: var(--primary-2);
  border-radius: 4px;
}
.feature-icon::before { width: 18px; height: 4px; left: 12px; top: 14px; }
.feature-icon::after { width: 24px; height: 4px; left: 9px; top: 24px; opacity: .7; }

.connection-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: start;
}
.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.rule-list span {
  display: block;
  padding: 11px 13px;
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: #334155;
  font-weight: 650;
}
.example-box {
  background: #102c52;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.example-box h3 { margin-top: 0; color: #fff; }
.example-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.example-row:last-child { border-bottom: 0; }
.example-row dt { color: #b9cbe2; font-weight: 750; }
.example-row dd { margin: 0; font-family: Consolas, "Courier New", monospace; font-size: 14px; color: #fff; }

.screenshot-showcase {
  display: grid;
  gap: 22px;
}
.screenshot-large,
.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.screenshot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #151b24;
  cursor: zoom-in;
}
.screenshot-open:focus-visible {
  outline: 3px solid rgba(45,116,191,.35);
  outline-offset: -3px;
}
.screenshot-large img,
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #151b24;
}
.screenshot-card img {
  height: 260px;
  object-fit: contain;
  object-position: top center;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.screenshot-caption {
  padding: 18px;
}
.screenshot-caption h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.screenshot-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(8, 18, 33, .88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-dialog {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(96vw, 1480px);
  max-height: 92vh;
}
.lightbox-image {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 26px 80px rgba(0,0,0,.38);
}
.lightbox-caption {
  color: #fff;
  font-weight: 750;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: #fff;
  color: #10233f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox-close:focus-visible {
  outline: 3px solid rgba(255,255,255,.55);
  outline-offset: 2px;
}
body.lightbox-open {
  overflow: hidden;
}

.status-list { display: grid; gap: 14px; }
.status-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
}
.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 7px;
  background: var(--primary-3);
}
.status-dot.success { background: var(--success); }
.status-dot.warning { background: var(--warning); }
.status-dot.danger { background: var(--danger); }
.status-item strong { display: block; margin-bottom: 4px; }
.status-item span { color: var(--muted); }

.download-box {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #102c52;
  color: #fff;
  box-shadow: var(--shadow);
}
.download-box img { width: 92px; height: 92px; border-radius: 22px; }
.download-box h2 { color: #fff; margin-bottom: 8px; }
.download-box p { color: #c8d6e8; }
.download-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.meta-item {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.meta-item span { display: block; color: #9fb8d6; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.meta-item strong { display: block; margin-top: 3px; font-size: 14px; word-break: break-word; }

.doc-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.doc-card a { margin-top: auto; font-weight: 800; }

.pricing-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.pricing-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.pricing-card h2,
.pricing-card h3 {
  margin: 0;
  font-size: 25px;
}
.pricing-card p {
  margin: 0;
  color: var(--muted);
}
.pricing-scope {
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: #25415f;
  font-weight: 800;
}
.price-grid {
  display: grid;
  gap: 10px;
}
.price-grid div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.price-grid div:last-child { border-bottom: 0; }
.price-grid span { color: var(--muted); }
.price-grid strong {
  color: var(--primary);
  font-size: 20px;
}
.pricing-card-dark {
  background: #102c52;
  color: #fff;
}
.pricing-card-dark p { color: #c8d6e8; }
.pricing-card-dark .pricing-scope {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.price-request {
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
}
.pricing-details {
  margin-top: 26px;
}
.pricing-note {
  max-width: 940px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  align-items: start;
}
.contact-data {
  display: grid;
  gap: 12px;
}
.contact-line {
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-muted);
}
.contact-line span { display: block; color: var(--muted-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.contact-line strong { display: block; margin-top: 4px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-weight: 750; color: #25364e; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
textarea { min-height: 124px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(45,116,191,.25);
  outline-offset: 2px;
}
.form-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.form-result { margin-top: 14px; font-weight: 750; color: var(--primary); }

.site-footer {
  background: #0d223f;
  color: #c8d6e8;
  padding: 42px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #dbe8f8; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #fff; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }

.page-hero {
  padding: 62px 0 38px;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f7fb 100%);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.breadcrumbs a { color: var(--primary-2); font-weight: 700; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.055em; }
.page-hero p { max-width: 860px; color: var(--muted); font-size: 18px; }
.page-content { padding: 54px 0 80px; }
.page-content h2 { font-size: 30px; margin-top: 36px; }
.page-content h3 { font-size: 22px; margin-top: 28px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 42px; align-items: start; }
.doc-main { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-soft); }
.doc-aside { position: sticky; top: 96px; }
.doc-aside nav { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 18px; }
.doc-aside a { display: block; padding: 9px 0; font-weight: 700; color: #334155; }
.notice {
  border-left: 4px solid var(--primary-3);
  background: #eef4fb;
  padding: 16px 18px;
  border-radius: 12px;
  color: #24405f;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: #2d3d52; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
code { font-family: Consolas, "Courier New", monospace; background: #eef4fb; border: 1px solid #dce6f2; border-radius: 7px; padding: 2px 6px; }
pre { white-space: pre-wrap; overflow-x: auto; background: #102c52; color: #fff; border-radius: 16px; padding: 20px; }

@media (max-width: 1320px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header.is-open .main-nav {
    display: grid;
    position: absolute;
    left: 24px;
    right: 24px;
    top: 76px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }
  .hero-grid,
  .connection-layout,
  .contact-layout,
  .doc-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .doc-aside { position: static; }
}

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .trust-row, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .screenshot-grid, .pricing-layout { grid-template-columns: 1fr; }
  .screenshot-card img {
    height: auto;
    object-fit: initial;
  }
  .download-box { grid-template-columns: 72px 1fr; }
  .download-box .download-action { grid-column: 1 / -1; }
  .download-box img { width: 72px; height: 72px; }
  .download-meta { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { min-height: 68px; }
  .brand span { font-size: 16px; }
  .brand img { width: 36px; height: 36px; }
  .header-actions .button { display: none; }
  .site-header.is-open .main-nav { top: 68px; left: 18px; right: 18px; }
  .hero-actions .button { width: 100%; }
  .trust-row { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .rule-list { grid-template-columns: 1fr; }
  .example-row { grid-template-columns: 1fr; gap: 4px; }
  .lightbox { padding: 18px; }
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-image { max-height: 78vh; }
  .download-box { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .doc-main { padding: 24px; }
}
