:root {
  --blue: #168dcc;
  --blue-dark: #0b6fa8;
  --blue-soft: #e7f5fc;
  --ink: #14253a;
  --muted: #5e6d7c;
  --line: #dce5ec;
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --warm: #fff5df;
  --warning: #9b5d00;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(24, 63, 91, .11);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(22, 141, 204, .10), transparent 30rem),
    var(--canvas);
  font-size: 17px;
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: #074e77; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid #f7a928;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 229, 236, .85);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px 13px 13px 4px;
  background: linear-gradient(145deg, #35b8ee, #168dcc);
  box-shadow: 0 7px 18px rgba(22, 141, 204, .25);
}

.brand-mark svg { width: 24px; height: 24px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 12px;
  border-radius: 11px;
  color: #304256;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-soft); }

.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(22, 141, 204, .20);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-cta { min-height: 42px; padding: 9px 14px; font-size: 14px; }
.button:hover, .nav-cta:hover { color: #fff; background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(22, 141, 204, .26); }
.button-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.button-secondary:hover { color: var(--blue-dark); background: #f8fbfd; box-shadow: none; }

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.menu-button span, .menu-button::before, .menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 3px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  min-height: 650px;
  padding: 68px 0 74px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 36px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(53, 184, 238, .15), rgba(22, 141, 204, .03));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--blue); }

h1, h2, h3 { color: #102238; line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 850px; margin: 0; font-size: clamp(38px, 5.7vw, 68px); }
h2 { margin: 0 0 18px; font-size: clamp(28px, 3.5vw, 43px); }
h3 { margin: 0 0 9px; font-size: 21px; }

.lead { max-width: 720px; margin: 24px 0 0; color: #42566b; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.micro-note { max-width: 670px; margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.home-hero { min-height: 720px; }
.home-hero .lead strong:first-child { color: var(--ink); }
.answer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.answer-chips span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #cce3ef;
  border-radius: 999px;
  color: #315873;
  background: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 750;
}

.login-preview {
  position: relative;
  padding: 19px;
  border: 1px solid rgba(220, 229, 236, .95);
  border-radius: 32px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.browser-top { display: flex; align-items: center; gap: 6px; padding: 0 4px 13px; }
.browser-top i { width: 9px; height: 9px; border-radius: 50%; background: #c8d5df; }
.browser-address { flex: 1; margin-left: 9px; padding: 6px 10px; border-radius: 8px; color: #5a6d7d; background: #edf3f6; font-size: 12px; text-align: center; }

.preview-body {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.plane-badge { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 22px 22px 22px 7px; background: var(--blue); }
.plane-badge svg { width: 36px; height: 36px; }
.preview-body h2 { margin: 0 0 8px; font-size: 25px; }
.preview-body p { max-width: 300px; margin: 0 auto 18px; color: var(--muted); font-size: 15px; }

.qr-demo { width: 210px; margin: 18px auto 0; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qr-demo:focus { outline: none; }
.qr-grid {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #18344b 13%, transparent 13% 25%, #18344b 25% 37%, transparent 37% 49%, #18344b 49% 62%, transparent 62% 75%, #18344b 75% 87%, transparent 87%),
    linear-gradient(#18344b 13%, transparent 13% 25%, #18344b 25% 37%, transparent 37% 49%, #18344b 49% 62%, transparent 62% 75%, #18344b 75% 87%, transparent 87%);
  background-size: 34px 34px;
  filter: blur(1.8px);
  opacity: .85;
}
.qr-grid::after {
  content: "ДЕМО";
  position: absolute;
  inset: 34% 12%;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: rgba(20, 37, 58, .92);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .12em;
}
.qr-demo small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.trust-strip div { min-height: 88px; padding: 18px; background: #fff; }
.trust-strip strong { display: block; margin-bottom: 3px; font-size: 16px; }
.trust-strip span { color: var(--muted); font-size: 14px; }

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-bottom: 42px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 24px rgba(24, 63, 91, .045);
}
.jump-nav strong { margin-right: 2px; font-size: 14px; }
.jump-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 10px;
  color: #3d566b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.jump-nav a:hover { color: var(--blue-dark); background: var(--blue-soft); }

.section { padding: 78px 0; }
.section-tight { padding: 48px 0; }
.section-white { border-block: 1px solid var(--line); background: #fff; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.route-card,
.info-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(24, 63, 91, .055);
}
.route-card { position: relative; min-height: 265px; display: flex; flex-direction: column; padding: 25px; color: inherit; text-decoration: none; }
.route-card:hover { color: inherit; border-color: #a7d6ed; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(24, 63, 91, .09); }
.route-number { color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.route-card p { margin: 0; color: var(--muted); }
.route-card .text-link { margin-top: auto; padding-top: 22px; color: var(--blue-dark); font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; counter-reset: steps; }
.step-card { padding: 25px; counter-increment: steps; }
.step-card::before { content: counter(steps); width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; color: var(--blue-dark); background: var(--blue-soft); font-weight: 900; }
.step-card p { margin: 0; color: var(--muted); }

.key-answer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px 26px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid #b9ddee;
  border-radius: 16px;
  background: #f0f9fd;
}
.key-answer strong { color: var(--blue-dark); }
.key-answer span { color: #3e566a; }

.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.method-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(24, 63, 91, .06);
}
.method-card:nth-child(2) { background: #fbfdfe; }
.method-card h3 { margin-top: 10px; font-size: clamp(25px, 3vw, 32px); }
.method-card ol { margin: 22px 0; padding-left: 22px; }
.method-card li + li { margin-top: 11px; }
.method-card p { color: #4c6074; }
.method-card .text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; font-weight: 800; }
.method-label { color: var(--blue-dark); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

.two-column { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(30px, 6vw, 78px); align-items: start; }
.sticky-copy { position: sticky; top: 108px; }
.prose { max-width: 810px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin-top: 54px; }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { padding-left: 23px; }
.prose li + li { margin-top: 8px; }

.note,
.warning,
.success {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: var(--blue-soft);
}
.warning { border-left-color: #f0a33a; color: #684100; background: var(--warm); }
.success { border-left-color: #35a276; background: #eaf8f2; }

.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #35a276; font-size: 12px; font-weight: 900; }

.comparison { width: 100%; overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.comparison table { width: 100%; min-width: 590px; border-collapse: collapse; }
.comparison th, .comparison td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison tr:last-child td { border-bottom: 0; }
.comparison th { color: #213950; background: #eef5f8; font-size: 14px; }
.comparison td:first-child { font-weight: 750; }
.table-note { max-width: 900px; color: var(--muted); }
.diagnostic-table table { min-width: 820px; }
.diagnostic-table td:nth-child(1) { width: 23%; }
.diagnostic-table td:nth-child(2) { width: 29%; color: #4c6074; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.section-actions .text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; }

.safety-card { padding: clamp(24px, 3vw, 34px); }
.exit-list { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: exit-steps; }
.exit-list li { position: relative; min-height: 58px; padding-left: 62px; counter-increment: exit-steps; }
.exit-list li + li { margin-top: 20px; }
.exit-list li::before {
  content: counter(exit-steps);
  position: absolute;
  left: 0;
  top: 1px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-weight: 900;
}
.exit-list strong, .exit-list span { display: block; }
.exit-list span { margin-top: 3px; color: var(--muted); font-size: 15px; }

.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #eef6fa;
}
.source-panel h2 { font-size: clamp(27px, 3.3vw, 39px); }
.source-panel p:not(.eyebrow) { margin: 0; color: #4b6173; }
.source-panel ul { margin: 0; padding: 0; list-style: none; }
.source-panel li + li { border-top: 1px solid #d5e3ea; }
.source-panel a { display: flex; min-height: 52px; align-items: center; font-weight: 800; text-decoration: none; }
.source-panel a::after { content: "↗"; margin-left: auto; }
.final-access { padding-bottom: 78px; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 26px; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

.breadcrumbs { padding-top: 28px; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #a0adb8; }

.article-hero { padding: 44px 0 52px; }
.article-hero h1 { max-width: 940px; font-size: clamp(38px, 5vw, 61px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; padding-bottom: 80px; }

.side-nav { position: sticky; top: 108px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.side-nav strong { display: block; margin-bottom: 11px; font-size: 14px; }
.side-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.side-nav a:hover { color: var(--blue-dark); }

.related { padding: 34px; border-radius: 24px; color: #fff; background: #102d44; }
.related h2 { color: #fff; }
.related p { color: #c7d7e2; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { padding: 10px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff; text-decoration: none; }
.related-links a:hover { background: rgba(255,255,255,.08); }

.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.contact-card dt { margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.contact-card dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }

.site-footer { padding: 52px 0 26px; color: #c8d5dd; background: #102238; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand { max-width: 370px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 18px 0 0; color: #aebfca; font-size: 14px; }
.footer-contact { display: grid; gap: 4px; margin-top: 15px; color: #9fb3bf; font-size: 13px; font-style: normal; }
.footer-contact a { color: #d5e4ec; font-weight: 750; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-column strong { display: block; margin-bottom: 12px; color: #fff; font-size: 14px; }
.footer-column a { display: block; padding: 5px 0; color: #b8c8d2; font-size: 14px; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #93a8b6; font-size: 12px; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal][data-visible="true"] { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    inset: 72px 20px auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { width: 100%; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .login-preview { width: min(560px, 100%); margin-inline: auto; }
  .route-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .method-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .side-nav { position: static; order: -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav-shell, .page-shell, .footer-shell { width: min(100% - 28px, 1160px); }
  .brand small { display: none; }
  .hero { padding: 50px 0 58px; gap: 38px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .preview-body { min-height: 390px; padding: 28px 18px; }
  .trust-strip { grid-template-columns: 1fr; }
  .jump-nav { align-items: stretch; }
  .jump-nav strong { width: 100%; padding: 5px 8px 0; }
  .jump-nav a { flex: 1 1 145px; background: #f4f8fa; }
  .section { padding: 58px 0; }
  .section-tight { padding: 38px 0; }
  .route-grid, .steps, .two-column { grid-template-columns: 1fr; }
  .key-answer, .source-panel { grid-template-columns: 1fr; }
  .key-answer { gap: 4px; }
  .method-card { border-radius: 19px; }
  .section-actions, .section-actions .button { width: 100%; }
  .route-card { min-height: 220px; }
  .sticky-copy { position: static; }
  .article-hero { padding: 36px 0 42px; }
  .article-layout { padding-bottom: 58px; }
  .related { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
