:root {
    --blue: #1255a0; --blue-700: #0d4080; --blue-50: #eaf2fb; --cyan: #18a7dc;
    --ink: #152238; --muted: #5a6b82; --line: #e6ebf2; --soft: #f5f8fc; --white: #fff;
    --r: 16px; --r-sm: 12px; --maxw: 1180px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.6; }
  a { text-decoration: none; color: inherit; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
  h2.sec-title { font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
  .sec-lead { font-size: 16px; color: var(--muted); max-width: 560px; margin-top: 12px; }
  .section { padding: 60px 0; }
  .btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600; padding: 13px 24px; border-radius: var(--r-sm); cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(18,85,160,.22); }
  .btn-primary:hover { background: var(--blue-700); }
  .btn-ghost { background: transparent; color: var(--blue); border-color: rgba(18,85,160,.3); }
  .btn-ghost:hover { background: var(--blue-50); }

  /* NAV */
  nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .nav-in { display: flex; align-items: center; gap: 12px 24px; min-height: 70px; flex-wrap: wrap; padding-block: 8px; }
  .nav-logo img { height: 38px; width: auto; object-fit: contain; object-position: left center; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 12px; min-width: 0; }
  .nav-links a { font-size: 14px; color: var(--muted); padding: 9px 14px; border-radius: 999px; transition: background .15s, color .15s; }
  .nav-links a:hover { color: var(--blue); background: var(--soft); }
  .nav-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
  .nav-phone { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
  .nav-phone i { color: var(--blue); }
  .mobile-cabinet-button, .mobile-menu-button, .mobile-navigation, .mobile-site-menu { display: none; }
  .mobile-menu-button { list-style: none; }
  .mobile-menu-button::-webkit-details-marker { display: none; }
  .mobile-navigation[open] > .mobile-menu-button { color: #fff; background: var(--blue); }
  .mobile-cabinet-button, .mobile-menu-button { width: 42px; height: 42px; padding: 0; place-items: center; flex: 0 0 auto; border: 1px solid rgba(18,85,160,.22); border-radius: 12px; color: var(--blue); background: #fff; cursor: pointer; font-size: 21px; }
  .mobile-menu-button[aria-expanded="true"] { color: #fff; background: var(--blue); }
  .mobile-site-menu { position: fixed; inset: 70px 0 0; z-index: 49; padding: 12px; background: rgba(15,31,53,.34); backdrop-filter: blur(5px); }
  .mobile-site-menu-card { max-height: calc(100vh - 94px); padding: 18px; overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(21,47,90,.22); }
  .mobile-site-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .mobile-site-menu-head span { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-site-menu-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; cursor: pointer; font-size: 20px; }
  .site-nav:not(.site-nav-ready) .mobile-site-menu-close { display: none; }
  .mobile-site-links { display: grid; gap: 5px; padding: 13px 0; }
  .mobile-site-links a { min-height: 45px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 11px; color: var(--muted); font-size: 14px; font-weight: 600; }
  .mobile-site-links a::after { content: '\2192'; color: #9aa8ba; }
  .mobile-site-links a.active { color: var(--blue); background: var(--blue-50); }
  .mobile-site-actions { padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; border-top: 1px solid var(--line); }
  .mobile-site-actions .btn { width: 100%; min-width: 0; justify-content: center; padding: 12px 14px; }
  .mobile-site-actions .mobile-menu-cabinet { grid-column: 1 / -1; }
  .mobile-site-actions .mobile-menu-primary { grid-column: 1 / -1; }
  .mobile-site-phone { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; grid-column: 1 / -1; color: var(--blue); font-size: 13px; font-weight: 650; }
  body.site-menu-open { overflow: hidden; }

  /* HERO */
  .hero { padding: 70px 0 64px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
  .hero-grid > * { min-width: 0; }
  .hero h1, .eyebrow, h2.sec-title { overflow-wrap: normal; word-break: normal; }
  .hero h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 20px; }
  .hero h1 span { color: var(--blue); }
  .hero p.sub { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
  .hero-trust div { font-size: 13px; color: var(--muted); }
  .hero-trust b { display: block; font-size: 26px; font-weight: 700; color: var(--ink); }

  /* HERO showcase card (bento) */
  .showcase { background: linear-gradient(160deg, #fff, var(--blue-50)); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 30px 80px rgba(21,47,90,.10); }
  .showcase-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
  .showcase-head b { color: var(--blue); font-weight: 600; }
  .steps { display: grid; gap: 10px; }
  .step { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,.7); opacity: .5; transition: opacity .4s, border-color .4s, background .4s, transform .4s; }
  .step.active { opacity: 1; border-color: rgba(18,85,160,.4); background: #fff; transform: scale(1.02); box-shadow: 0 12px 30px rgba(21,47,90,.08); }
  .step-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 20px; }
  .step.active .step-ic { background: var(--blue); color: #fff; }
  .step-n { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
  .step-t { font-size: 15px; font-weight: 600; }
  .step-d { font-size: 13px; color: var(--muted); }

  /* METRICS strip */
  .metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .metric { background: var(--soft); border-radius: var(--r); padding: 24px; }
  .metric b { display: block; font-size: 36px; font-weight: 700; color: var(--blue); line-height: 1; }
  .metric span { font-size: 13px; color: var(--muted); display: block; margin-top: 8px; }

  /* AUDIENCE */
  .aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
  .aud { border: 1px solid var(--line); border-radius: var(--r); padding: 32px; transition: border-color .2s, transform .2s, box-shadow .2s; }
  .aud:hover { border-color: rgba(18,85,160,.35); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(21,47,90,.07); }
  .aud-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 24px; margin-bottom: 18px; }
  .aud h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
  .aud .who { font-size: 13px; color: var(--cyan); font-weight: 600; margin-bottom: 14px; }
  .aud ul { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
  .aud li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
  .aud li i { color: var(--blue); margin-top: 2px; }
  .aud a.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
  .aud a.link:hover { gap: 10px; }
  .aud.supply-card { grid-column: span 2; background: linear-gradient(135deg, #fff, var(--blue-50)); border-color: rgba(18,85,160,.28); }

  /* BENTO */
  .bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-top: 44px; }
  .tile { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
  .tile:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(21,47,90,.07); border-color: rgba(18,85,160,.25); }
  .tile i.big { font-size: 26px; color: var(--blue); }
  .tile h4 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
  .tile p { font-size: 13.5px; color: var(--muted); }
  .tile.feature { grid-row: span 2; background: linear-gradient(165deg, var(--blue), var(--blue-700)); border: none; color: #fff; display: flex; flex-direction: column; }
  .tile.feature i.big, .tile.feature h4 { color: #fff; }
  .tile.feature p { color: rgba(255,255,255,.7); }
  .lic { margin-top: auto; display: grid; gap: 10px; padding-top: 20px; }
  .lic div { background: rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px; }
  .lic .lt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); }
  .lic .ln { font-size: 13px; font-weight: 600; }
  .lic .lnum { font-size: 11px; color: rgba(255,255,255,.55); font-family: monospace; }
  .tile.wide { grid-column: span 2; }

  /* SERVICES */
  .svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
  .svc { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .2s, box-shadow .2s; }
  .svc:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(21,47,90,.07); }
  .svc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 23px; margin-bottom: 16px; }
  .svc h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
  .svc p { font-size: 13.5px; color: var(--muted); }

  /* PROCESS */
  .proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
  .pstep { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); }
  .pstep .pn { font-size: 13px; font-weight: 700; color: #fff; background: var(--blue); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 16px; }
  .pstep h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
  .pstep p { font-size: 13.5px; color: var(--muted); }

  /* SUBSCRIPTION */
  .subs { background: linear-gradient(160deg, var(--blue), var(--blue-700)); border-radius: 28px; padding: 48px; color: #fff; }
  .subs-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
  .subs .eyebrow { color: rgba(255,255,255,.7); }
  .subs h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.15; }
  .subs-lead { font-size: 15px; color: rgba(255,255,255,.75); }
  .nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
  .node { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 20px; }
  .node i { font-size: 22px; color: #fff; }
  .node h5 { font-size: 15px; font-weight: 600; margin: 12px 0 4px; }
  .node p { font-size: 12.5px; color: rgba(255,255,255,.6); }
  .terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; }
  .term { background: var(--blue-700); padding: 18px 20px; }
  .term .tl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
  .term .tv { font-size: 15px; font-weight: 600; margin-top: 4px; }

  /* CLIENTS */
  .cli-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
  .cli { border-radius: var(--r); padding: 30px; }
  .cli.gov { background: linear-gradient(160deg, var(--blue), var(--blue-700)); color: #fff; }
  .cli.priv { background: var(--soft); border: 1px solid var(--line); }
  .cli .pct { font-size: 44px; font-weight: 700; line-height: 1; }
  .cli.gov .pct { color: #fff; }
  .cli.priv .pct { color: var(--blue); }
  .cli .ct { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 8px; opacity: .7; }
  .cli h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
  .cli p { font-size: 13.5px; opacity: .8; }

  /* FAQ */
  .faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 12px; }
  .faq details { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 20px; }
  .faq details[open] { border-color: rgba(18,85,160,.3); }
  .faq summary { list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary i { color: var(--blue); transition: transform .2s; flex: 0 0 auto; }
  .faq details[open] summary i { transform: rotate(180deg); }
  .faq details p { font-size: 14.5px; color: var(--muted); padding: 0 0 18px; }

  /* FORM */
  .form-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; margin-top: 44px; align-items: start; }
  .form-info p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
  .contact-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14.5px; }
  .contact-row i { color: var(--blue); font-size: 20px; margin-top: 1px; }
  .form-box { border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r); padding: 28px; box-shadow: 0 20px 50px rgba(21,47,90,.06); }
  .fr { margin-bottom: 16px; }
  .fr label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
  .fr input, .fr select, .fr textarea { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .15s; }
  .fr input:focus, .fr select:focus, .fr textarea:focus { border-color: var(--blue); }
  .fr textarea { resize: vertical; min-height: 84px; }
  .fr-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-box .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
  .form-status { min-height: 20px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: #15905d; }

  /* FOOTER */
  footer { border-top: 1px solid var(--line); padding: 28px 0; }
  .foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .foot-in img { width: auto; height: 30px; object-fit: contain; }
  .foot-info { font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.7; }

  /* REVEAL animation */
  /* Content is visible without JavaScript, including the first screen. */
  .reveal { opacity: 1; transform: none; }
  .reveal.in { opacity: 1; transform: none; }

  /* RESPONSIVE */
  @media (max-width: 920px) {
    .hero-grid, .subs-top, .form-grid { grid-template-columns: 1fr; gap: 32px; }
    .metrics, .svc-grid, .proc, .nodes, .terms { grid-template-columns: 1fr 1fr; }
    .aud-grid, .cli-grid, .bento { grid-template-columns: 1fr; }
    .tile.feature { grid-row: auto; }
    .tile.wide { grid-column: auto; }
    .nav-links { display: none; }
    .nav-right .nav-phone, .nav-right > .btn-ghost { display: none !important; }
    .mobile-cabinet-button, .mobile-menu-button { display: grid; }
    .mobile-navigation { display: block; }
    .mobile-navigation[open] .mobile-site-menu { display: block; }
    .aud.supply-card { grid-column: auto; }
  }
  @media (max-width: 620px) {
    .nav-right > .btn-primary { display: none !important; }
    .nav-in { height: 66px; min-height: 66px; flex-wrap: nowrap; padding-block: 0; }
    .mobile-site-menu { inset: 66px 0 0; }
  }
  @media (max-width: 520px) {
    .metrics, .svc-grid, .proc, .nodes, .terms, .fr-2 { grid-template-columns: 1fr; }
    .nav-phone { display: none; }
    .wrap { padding: 0 18px; }
    .subs { padding: 28px; }
  }

  /* One row; use the native menu before labels would become cramped. */
  @media (min-width: 1280px) {
    .site-nav .nav-in { max-width: 1680px; flex-wrap: nowrap; gap: 18px; padding-block: 10px; }
    .site-nav .nav-logo { display: flex; flex: 0 0 auto; }
    .site-nav .nav-links { flex: 1; justify-content: center; flex-wrap: nowrap; gap: 2px; margin: 0; }
    .site-nav .nav-links a { display: flex; align-items: center; min-height: 44px; font-size: 15px; padding: 9px 8px; white-space: nowrap; }
    .site-nav .nav-right { flex-wrap: nowrap; gap: 10px; flex: 0 0 auto; }
    .site-nav .nav-right .btn { min-height: 44px; padding: 9px 14px; font-size: 14px; white-space: nowrap; }
    .site-nav .nav-phone { display: none; }
  }
  @media (min-width: 1480px) {
    .site-nav .nav-phone { display: inline; }
  }
  @media (min-width: 921px) and (max-width: 1279px) {
    .site-nav .nav-in { flex-wrap: nowrap; }
    .site-nav .nav-links { display: none; }
    .site-nav .nav-right { flex-wrap: nowrap; }
    .site-nav .nav-right .nav-phone, .site-nav .nav-right > .btn-ghost { display: none; }
    .site-nav .mobile-cabinet-button, .site-nav .mobile-menu-button { display: grid; }
    .site-nav .mobile-navigation { display: block; }
    .site-nav .mobile-navigation[open] .mobile-site-menu { display: block; }
  }

/* Активный пункт меню (многостраничный сайт) */
.nav-links a.active { color: var(--blue); background: var(--soft); font-weight: 600; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
@media (max-width: 1279px) {
  .mobile-site-menu { height: calc(100dvh - 70px); }
  .mobile-site-menu-card { max-height: calc(100dvh - 94px); }
}
@media (max-width: 620px) {
  .mobile-site-menu { height: calc(100dvh - 66px); }
  .mobile-site-menu-card { max-height: calc(100dvh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
#public-lead-form { scroll-margin-top: 120px; }
#demo-quote-intro:not([hidden]) { margin-bottom: 24px; }
#demo-quote-intro h3 { margin-bottom: 12px; }
#demo-quote-intro p { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
#demo-quote-intro p:last-child { font-size: 14px; }
