/* SECURECHECK — шапка, секции, горизонт, адаптив */
/* только шапка сайта: внутри карточек тоже бывают <header> */
    #site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      width: 100%;
      border-bottom: 1px solid transparent;
      transition: background .3s var(--ease), border-color .3s var(--ease);
    }

    #site-header.is-stuck {
      background: rgba(4, 7, 13, .98);
      backdrop-filter: blur(16px) saturate(120%);
      -webkit-backdrop-filter: blur(16px) saturate(120%);
      border-bottom-color: rgba(255, 255, 255, .08);
      box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .9);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      max-width: var(--wrap);
      margin: 0 auto;
      padding: 20px 32px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      text-decoration: none;
      flex-shrink: 0;
    }

    .logo-icon {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
      filter: drop-shadow(0 0 10px rgba(56, 189, 248, .35));
    }

    .logo-text {
      font-family: 'Manrope', 'Manrope Fallback', sans-serif;
      font-weight: 800;
      font-size: 15px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: #fff;
    }

    .logo-text span { color: #a8bed0; }

    nav { display: flex; align-items: center; gap: 4px; }

    nav a {
      position: relative;
      padding: 8px 14px;
      border-radius: 8px;
      color: var(--text-soft);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: color .2s var(--ease), background .2s var(--ease);
    }

    nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }

    nav a::after {
      content: '';
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 3px;
      height: 1px;
      background: var(--accent);
      opacity: 0;
      transform: scaleX(.4);
      transition: opacity .2s var(--ease), transform .25s var(--ease);
    }

    nav a:hover::after { opacity: .8; transform: scaleX(1); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      font-family: 'Manrope', 'Manrope Fallback', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .09em;
      text-transform: uppercase;
      text-decoration: none;
      border-radius: 10px;
      padding: 13px 24px;
      border: 1px solid transparent;
      cursor: pointer;
      white-space: nowrap;
      transition: transform .2s var(--ease), box-shadow .25s var(--ease),
                  background .25s var(--ease), border-color .25s var(--ease), color .2s var(--ease);
    }

    .btn svg { width: 15px; height: 15px; }

    .btn-primary {
      color: #04121c;
      background: #74c6e9;
      border-color: #8ed4f1;
      box-shadow: none;
    }

    .btn-primary:hover {
      background: #8bd3f1;
      border-color: #a9e2fa;
      transform: translateY(-1px);
    }

    .btn-primary:active { transform: translateY(0); }

    .btn-ghost {
      color: var(--text);
      background: transparent;
      border-color: rgba(255, 255, 255, .16);
    }

    .btn-ghost:hover {
      background: rgba(255, 255, 255, .05);
      border-color: rgba(255, 255, 255, .32);
      color: #fff;
      transform: translateY(-1px);
    }

    .btn-lg { padding: 16px 30px; font-size: 13.5px; }

    .menu-toggle {
      display: none;
      width: 42px;
      height: 42px;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, .04);
      border: 1px solid var(--line);
      border-radius: 10px;
      color: var(--text);
      cursor: pointer;
    }

    main { flex: 1; }

    .hero {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 900px;
      margin: 0 auto;
      padding: clamp(40px, 7vh, 84px) 24px clamp(16px, 3vh, 30px);
    }

    .eyebrow {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: #7fb8d4;
      margin-bottom: 24px;
    }

    h1 {
      font-family: 'Manrope', 'Manrope Fallback', sans-serif;
      font-size: clamp(28px, 4.9vw, 58px);
      font-weight: 700;
      line-height: 1.12;
      letter-spacing: -.028em;
      text-transform: uppercase;
      text-wrap: balance;
      overflow-wrap: break-word;
      min-height: 2.24em;
      color: #fff;
      margin-bottom: 24px;
    }

    h1 .accent { color: #93cfea; }

    .subtitle {
      font-size: clamp(15px, 1.35vw, 18px);
      line-height: 1.65;
      color: var(--text-soft);
      max-width: 660px;
      text-wrap: pretty;
      min-height: 3.3em;
    }

    .sub-accent {
      margin-top: 14px;
      font-size: clamp(13.5px, 1.2vw, 15.5px);
      line-height: 1.6;
      color: var(--muted);
      max-width: 600px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin-top: 38px;
    }

    .cta-hint {
      margin-top: 18px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: #6f7f93;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      max-width: var(--wrap);
      margin: 0 auto;
      padding: 0 32px;
      list-style: none;
      border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .stats li {
      padding: 26px 24px;
      text-align: center;
      border-left: 1px solid var(--line);
    }

    .stats li:first-child { border-left: 0; }

    .stats b {
      display: block;
      font-family: 'Manrope', 'Manrope Fallback', sans-serif;
      font-size: clamp(20px, 2.2vw, 26px);
      font-weight: 800;
      letter-spacing: -.02em;
      color: #fff;
    }

    .stats span {
      display: block;
      margin-top: 5px;
      font-size: 12.5px;
      letter-spacing: .04em;
      color: var(--muted);
    }

    section { position: relative; scroll-margin-top: 88px; }

    .section-inner {
      max-width: var(--wrap);
      margin: 0 auto;
      padding: clamp(64px, 10vh, 108px) 32px;
    }

    .section-head { max-width: 620px; margin-bottom: 44px; }

    .kicker {
      display: block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 14px;
    }

    h2 {
      font-family: 'Manrope', 'Manrope Fallback', sans-serif;
      font-size: clamp(24px, 3vw, 36px);
      font-weight: 800;
      line-height: 1.16;
      letter-spacing: -.02em;
      color: #fff;
      text-wrap: balance;
      margin-bottom: 14px;
    }

    .section-head p { color: var(--text-soft); font-size: 15.5px; }

    .cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      list-style: none;
    }

    .card {
      position: relative;
      padding: 28px 26px 30px;
      border: 1px solid rgba(255, 255, 255, .07);
      border-radius: 12px;
      background: #070d15;
      transition: border-color .25s var(--ease), background .25s var(--ease);
    }

    .card:hover {
      border-color: rgba(125, 211, 252, .26);
      background: #08111b;
    }

    .card-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      margin-bottom: 18px;
      border-radius: 9px;
      background: rgba(56, 189, 248, .08);
      color: #7fc4e4;
    }

    .card-icon svg { width: 21px; height: 21px; }

    .card h3 {
      font-family: 'Manrope', 'Manrope Fallback', sans-serif;
      font-size: 17.5px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 9px;
      letter-spacing: -.01em;
    }

    .card p { font-size: 14.5px; color: var(--text-soft); }

    .card .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 18px;
      list-style: none;
    }

    .card .tags li {
      padding: 4px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      letter-spacing: .05em;
      color: #93a6ba;
      background: rgba(255, 255, 255, .025);
      white-space: nowrap;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      list-style: none;
      counter-reset: step;
    }

    .step {
      position: relative;
      padding: 24px 22px;
      border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .step-num {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      letter-spacing: .12em;
      color: var(--accent);
      margin-bottom: 14px;
    }

    .step h3 {
      font-family: 'Manrope', 'Manrope Fallback', sans-serif;
      font-size: 15.5px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 7px;
    }

    .step p { font-size: 13.8px; color: var(--text-soft); }

    .about {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 40px;
      align-items: center;
    }

    .about p { color: var(--text-soft); font-size: 15.5px; }
    .about p + p { margin-top: 14px; }

    .about-facts {
      list-style: none;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 12px;
      overflow: hidden;
    }

    .about-facts li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 15px 20px;
      font-size: 14px;
      color: var(--text-soft);
      border-top: 1px solid rgba(255, 255, 255, .06);
    }

    .about-facts li:first-child { border-top: 0; }

    .about-facts svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      margin-top: 3px;
      color: var(--accent);
    }

    .contact-panel {
      position: relative;
      overflow: hidden;
      padding: clamp(36px, 5.5vw, 58px) clamp(24px, 5vw, 56px);
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 14px;
      background:
        radial-gradient(ellipse 80% 130% at 50% 125%, rgba(14, 165, 233, .16) 0%, rgba(4, 7, 13, 0) 68%),
        #060c14;
      text-align: center;
    }

    .contact-panel h2 { max-width: 620px; margin-left: auto; margin-right: auto; }

    .contact-panel p {
      max-width: 540px;
      margin: 0 auto;
      color: var(--text-soft);
      font-size: 15.5px;
    }

    .contact-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin-top: 32px;
    }

    .contact-meta {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 26px;
      margin-top: 26px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #6f7f93;
    }

    .contact-meta span { display: inline-flex; align-items: center; gap: 7px; }
    .contact-meta svg { width: 13px; height: 13px; color: var(--accent); }

    footer {
      border-top: 1px solid var(--line);
      margin-top: clamp(40px, 6vh, 70px);
    }

    .footer-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      max-width: var(--wrap);
      margin: 0 auto;
      padding: 26px 32px;
      font-size: 13px;
      color: var(--muted);
    }

    .footer-inner a { color: var(--text-soft); text-decoration: none; transition: color .2s var(--ease); }
    .footer-inner a:hover { color: var(--accent-soft); }

    .hero-stage {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-height: min(calc(100svh - 84px), 820px);
      padding: clamp(24px, 4vh, 48px) 0 290px;
      overflow: hidden;
      z-index: 0;
    }

    .hero-stage .hero {
      position: relative;
      z-index: 2;
    }

    .horizon {
      position: absolute;
      left: 50%;
      /* Привязка к первому экрану, а не к высоте контента: если текст героя
         станет выше/ниже (подмена шрифта, правка через админку), дуга
         остаётся на месте и не даёт CLS. */
      top: calc(min(100svh - 84px, 820px) - 250px);
      bottom: auto;
      transform: translateX(-50%);
      width: 132vw;
      min-width: 1100px;
      height: 820px;
      border-radius: 50%;
      background: radial-gradient(ellipse at 50% 0%, #0c2d48 0%, #040d1a 35%, #02050a 70%);
      border-top: 2px solid #bae6fd;
      box-shadow:
        0 -4px 25px rgba(125, 211, 252, .8),
        0 -20px 80px rgba(14, 165, 233, .35),
        inset 0 15px 60px rgba(56, 189, 248, .45);
      pointer-events: none;
      z-index: 1;
    }

    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .7s var(--ease), transform .7s var(--ease);
    }

    .reveal.is-visible { opacity: 1; transform: none; }

    @media (max-width: 1024px) {
      .cards { grid-template-columns: 1fr 1fr; }
      .steps { grid-template-columns: 1fr 1fr; }
      .about { grid-template-columns: 1fr; gap: 28px; }
    }

    @media (max-width: 860px) {
      .header-inner { padding: 16px 20px; }
      .menu-toggle { display: inline-flex; }

      nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(6, 11, 19, .97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
        display: none;
      }

      nav.is-open { display: flex; }

      nav a { padding: 12px 14px; font-size: 15px; }
      nav a::after { display: none; }

      .header-inner > .btn { display: none; }

      .stats { grid-template-columns: 1fr; }
      .stats li { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px; }
      .stats li:first-child { border-top: 0; }

      .section-inner { padding-left: 20px; padding-right: 20px; }
      .stats { padding: 0 20px; }
    }

    @media (max-width: 620px) {
      .cards, .steps { grid-template-columns: 1fr; }
      .hero { padding-top: 40px; }
      .hero-actions .btn { width: 100%; }
      .contact-actions .btn { width: 100%; }
      .horizon { width: 155vw; height: 560px; top: auto; bottom: -390px; min-width: 0; }
      .hero-stage { min-height: auto; padding: 34px 0 210px; }
      .footer-inner { padding: 22px 20px; justify-content: center; text-align: center; }
    }

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

    .no-js .reveal { opacity: 1; transform: none; }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* на узких экранах заголовок занимает больше строк — резервируем иначе */
@media (max-width: 620px) {
  h1 { min-height: 3.36em; }
  .subtitle { min-height: 4.95em; }
}

/* невидимый маркер для отслеживания скролла без чтения layout */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 13px;
  pointer-events: none;
  visibility: hidden;
}
