/* Nexa Tools — nexatools.pro. Палитра — как у канала и обоев: лайм #B8FF3A → мята #5EE6A8 → циан #1FC7D8 на угле. */
  :root {
    --void:      #050505;
    --coal:      #0A0C0D;
    --panel:     rgba(21, 25, 28, 0.55);
    --panel-2:   rgba(30, 35, 39, 0.58);
    --panel-solid: #101315;
    --line:      rgba(255,255,255,0.11);
    --line-soft: rgba(255,255,255,0.06);
    --blur:      saturate(130%) blur(18px);

    --lime:      #B8FF3A;
    --cyan:      #1FC7D8;
    --mint:      #5EE6A8;
    --grad:      linear-gradient(120deg, #B8FF3A 0%, #5EE6A8 55%, #1FC7D8 100%);

    --silver:    #F5F5F5;
    --text:      #C3CBD0;
    --muted:     #7C878E;

    --f: "Montserrat", "Segoe UI", system-ui, sans-serif;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
  }

  body {
    margin: 0;
    position: relative;
    background: var(--void);
    color: var(--text);
    font-family: var(--f);
    font-size: 16.5px;
    line-height: 1.62;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
  }

  /* мягкое высветление к центру, как на аватарах продуктов */
  .glowbed { position: relative; z-index: 1; }

  footer.site { position: relative; z-index: 1; }

  .shell { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

  h1, h2, h3 { color: var(--silver); margin: 0; }

  a { color: var(--cyan); }
  a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }


  /* ---------- фоновая графика ----------
     Мотив взят из фирменного знака: три полосы-сигнал справа от буквы N.
     Три слоя, каждый со своей плотностью, все под контентом. */

  :root { --l-grain: .03; }

  /* ---------- живое небо на всю страницу ----------
     Слои снизу вверх: уголь → сияние (бесшовная лента, плывёт) → звёзды (canvas, мерцают,
     параллакс на прокрутке) → знаки-созвездия (разбросаны JS по всей высоте страницы) → контент. */

  .sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--void);
  }

  .sky-aurora {
    position: absolute;
    left: 0; right: 0;
    top: 6vh;
    height: 62vh;
    background: url("/assets/aurora-tile.webp") repeat-x center / auto 100%;
    opacity: 0.75;
    animation: aurora-drift 140s linear infinite;
    will-change: background-position;
  }

  @keyframes aurora-drift {
    from { background-position: 0 center; }
    to   { background-position: -2880px center; }
  }

  .sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; }

  /* знаки — абсолютно по высоте всей страницы, за контентом */
  .signs {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .signs .sg {
    position: absolute;
    will-change: transform;
  }

  .signs .sg img {
    display: block;
    width: 100%;
    opacity: var(--o, .45);
    animation: sign-float var(--t, 14s) ease-in-out infinite alternate;
  }

  @keyframes sign-float {
    from { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
    to   { transform: translate3d(0, -12px, 0) rotate(calc(var(--r, 0deg) + 2deg)); }
  }

  @media (prefers-reduced-motion: reduce) {
    .sky-aurora, .signs .sg img, .hero-n { animation: none; }
  }

  /* hero: N-созвездие справа */
  .hero-n {
    justify-self: center;
    width: min(100%, 520px);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(94,230,168,0.18));
    animation: sign-float 16s ease-in-out infinite alternate;
  }

  @media (max-width: 919px) {
    .hero-n { width: min(70%, 380px); margin-top: 8px; }
  }

  /* панели чуть плотнее — под живым небом текст должен читаться */
  :root { --panel: rgba(21, 25, 28, 0.72); --panel-2: rgba(30, 35, 39, 0.74); }

  .bg-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: var(--l-grain);
  }


  /* ---------- шапка ---------- */

  .site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px;
  }

  /* на узких экранах ссылки уходят в одну прокручиваемую строку,
     иначе шапка разрастается на три этажа */
  @media (max-width: 860px) {
    .nav-in { flex-wrap: wrap; padding-block: 14px 10px; }
    .nav-in .nav-links {
      order: 3;
      width: 100%;
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 22px;
      padding-bottom: 4px;
      scrollbar-width: none;
    }
    .nav-in .nav-links::-webkit-scrollbar { display: none; }
    .nav-in .nav-links a { white-space: nowrap; }
  }

  section[id] { scroll-margin-top: 92px; }

  /* на телефоне воздух сжимается, а шапка перестаёт быть липкой:
     две её строки съедали слишком много экрана при прокрутке */
  @media (max-width: 700px) {
    .site-head { position: static; }
    .hero { padding-block: 44px 40px; gap: 28px; }
    section.block { padding-block: 56px; }
    section[id] { scroll-margin-top: 12px; }
    .final { padding: 38px 22px; }
    footer.site { padding-block: 34px 44px; }
  }

  .nowrap { white-space: nowrap; }

  ::selection { background: var(--lime); color: #0A0C00; }

  .brand { display: flex; align-items: center; gap: 11px; }

  .mark { width: 34px; height: 29px; display: block; filter: drop-shadow(0 0 10px rgba(31,199,216,0.35)); }

  .wordmark {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.17em;
    color: var(--silver);
    padding-left: 2px;
    white-space: nowrap;
  }

  /* «TOOLS» — циан, как подпись продукта на фирменных аватарах;
     приглушённым серым он не читался */
  .wordmark span { color: var(--cyan); font-weight: 600; }

  .nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; flex-wrap: wrap; }
  .nav-links a { color: var(--muted); text-decoration: none; letter-spacing: 0.02em; transition: color .2s ease; }
  .nav-links a:hover { color: var(--silver); }

  .lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
  .lang-btn {
    font-family: var(--f);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 7px 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }

  .lang-btn { transition: color .2s ease, background .2s ease; }
  .lang-btn:hover:not(.is-on) { color: var(--silver); }
  .lang-btn.is-on { background: var(--lime); color: #0A0C00; }
  .lang-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

  /* ---------- герой ---------- */

  .hero {
    padding-block: 96px 84px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
  }

  @media (min-width: 920px) {
    .hero { grid-template-columns: minmax(0, 1.05fr) 0.95fr; gap: 48px; min-height: 78vh; }
  }

  .hero-q {
    font-size: clamp(21px, 2.7vw, 27px);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--muted);
    margin: 0 0 14px;
    text-wrap: balance;
  }

  .hero-a {
    font-size: clamp(46px, 8.4vw, 88px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    margin: 0;
  }

  .hero-sub {
    margin: 30px 0 0;
    font-size: 17.5px;
    max-width: 47ch;
  }

  .hero-sub b { color: var(--silver); font-weight: 600; }

  .hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

  .btn {
    font-family: var(--f);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 15px 26px;
    border-radius: 9px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
  }

  .btn-main {
    background: var(--grad);
    color: #060A00;
    box-shadow: 0 0 30px -8px rgba(31,199,216,0.45);
  }

  .btn { transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
  .btn-main:hover { box-shadow: 0 0 44px -6px rgba(31,199,216,0.65); transform: translateY(-1px); }
  .btn-ghost { border-color: var(--line); color: var(--silver); }
  .btn-ghost:hover { border-color: var(--cyan); }

  /* ---------- экран бота ---------- */

  .phone {
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    background: linear-gradient(180deg, rgba(26,31,35,0.62) 0%, rgba(12,15,17,0.62) 100%);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 16px 13px 18px;
    max-width: 336px;
    width: 100%;
    justify-self: center;
    box-shadow: 0 30px 60px -34px rgba(31,199,216,0.4);
  }

  .phone-bar { display: flex; align-items: center; gap: 10px; padding: 4px 8px 13px; border-bottom: 1px solid var(--line-soft); margin-bottom: 13px; }

  .phone-ava {
    width: 32px; height: 32px; border-radius: 10px;
    background: var(--grad);
    color: #060A00; font-weight: 800; font-size: 15px;
    display: grid; place-items: center;
  }

  .phone-name { font-weight: 600; font-size: 14px; color: var(--silver); line-height: 1.25; }
  .phone-status { font-size: 11.5px; color: var(--muted); }

  .bubble {
    background: var(--panel-2);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 13px;
    display: flex; flex-direction: column; gap: 8px;
  }

  .b-title { font-weight: 600; color: var(--silver); font-size: 13.5px; }
  .b-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
  .b-row span:last-child { color: var(--lime); font-weight: 600; font-variant-numeric: tabular-nums; }

  .tg-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }

  .tg-key {
    background: var(--panel-2);
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
  }

  .tg-key.wide { grid-column: 1 / -1; }
  .tg-key.main { background: var(--grad); color: #060A00; font-weight: 700; border-color: transparent; }

  /* ---------- полоса фактов ---------- */

  .facts {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(10,12,13,0.5);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
  }

  .facts-in { display: grid; grid-template-columns: 1fr; }

  @media (min-width: 720px) {
    .facts-in { grid-template-columns: repeat(3, 1fr); }
    .facts-in > div + div { border-left: 1px solid var(--line); border-top: none; }
  }

  .facts-in > div { padding: 30px 30px; display: flex; flex-direction: column; gap: 5px; }
  .facts-in > div + div { border-top: 1px solid var(--line); }

  .fact-n { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .fact-t { font-size: 14px; color: var(--muted); }

  /* ---------- секции ---------- */

  section.block { padding-block: 84px; }

  .sec-head { display: flex; flex-direction: column; gap: 13px; margin-bottom: 40px; max-width: 60ch; }

  .sec-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cyan);
  }

  h2 {
    font-size: clamp(27px, 3.9vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.032em;
    text-wrap: balance;
  }

  .sec-head p { margin: 0; color: var(--muted); font-size: 17px; }

  /* ---------- продукты ---------- */

  .products { display: grid; grid-template-columns: 1fr; gap: 18px; }

  @media (min-width: 880px) { .products { grid-template-columns: repeat(3, 1fr); } }

  .product {
    position: relative;
    background: var(--panel);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
  }

  .product { transition: border-color .25s ease, transform .25s ease; }
  .product:hover { border-color: rgba(31,199,216,0.34); transform: translateY(-3px); }

  .product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad);
    opacity: 0.85;
  }

  .product.dim::before { opacity: 0.3; }

  .p-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

  .p-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--silver);
    line-height: 1.2;
  }

  .pill {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 5px;
    white-space: nowrap;
    background: rgba(184,255,58,0.13);
    color: var(--lime);
    border: 1px solid rgba(184,255,58,0.25);
  }

  .pill.soon { background: rgba(255,255,255,0.05); color: var(--muted); border-color: var(--line); }

  .p-line { font-size: 15px; color: var(--text); margin: 0; }

  .p-list {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14.5px;
  }

  .p-list li { padding-left: 18px; position: relative; color: var(--text); }

  .p-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.62em;
    width: 8px; height: 2px;
    border-radius: 2px;
    background: var(--grad);
  }

  .p-foot { margin-top: auto; padding-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }

  .p-foot a {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 17px;
    border-radius: 8px;
  }

  .p-foot a { transition: border-color .2s ease, color .2s ease, box-shadow .25s ease; }
  .p-foot .go { background: var(--grad); color: #060A00; }
  .p-foot .go:hover { box-shadow: 0 0 30px -8px rgba(31,199,216,0.6); }
  .p-foot .go.quiet:hover { border-color: var(--cyan); }
  .p-foot .more:hover { color: var(--silver); border-color: var(--line); }
  .p-foot .go.quiet { background: transparent; color: var(--cyan); border: 1px solid rgba(31,199,216,0.35); }
  .p-foot .more { color: var(--muted); border: 1px solid var(--line); }

  /* ---------- пары вопрос → ответ ---------- */

  .pairs { display: grid; grid-template-columns: 1fr; gap: 16px; }

  @media (min-width: 880px) { .pairs { grid-template-columns: repeat(3, 1fr); } }

  .pair {
    background: var(--panel);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .pair-q { margin: 0; font-size: 15.5px; font-weight: 300; color: var(--muted); line-height: 1.45; min-height: 3em; }

  .pair-a {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-wrap: balance;
  }

  /* ---------- что общего ---------- */

  .common {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
  }

  @media (min-width: 800px) { .common { grid-template-columns: 1fr 1fr; } }

  .common > div {
    background: var(--panel);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .common h3 { font-size: 16.5px; font-weight: 700; letter-spacing: 0.01em; }
  .common p { margin: 0; color: var(--muted); font-size: 15px; }

  /* ---------- финал ---------- */

  .final {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 56px 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background:
      radial-gradient(620px 260px at 50% 0%, rgba(31,199,216,0.10), transparent 70%),
      var(--panel);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
  }

  .final h2 { max-width: 19ch; }
  .final p { margin: 0; color: var(--muted); max-width: 52ch; }

  /* ---------- подвал ---------- */

  footer.site {
    border-top: 1px solid var(--line);
    padding: 46px 0 62px;
    margin-top: 44px;
    background: rgba(10,12,13,0.55);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
  }

  .foot-in { display: grid; grid-template-columns: 1fr; gap: 32px; }

  @media (min-width: 780px) { .foot-in { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

  .foot-in h4 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
  }

  .foot-in ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
  .foot-in a { color: var(--text); text-decoration: none; transition: color .2s ease; }
  .foot-in a:hover { color: var(--lime); }
  .foot-note { font-size: 13.5px; color: var(--muted); margin: 24px 0 0; }

  /* ---------- текстовые страницы (условия, конфиденциальность) ---------- */
  .doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; position: relative; z-index: 1; }
  .doc h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
  .doc .doc-date { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
  .doc h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
  .doc p, .doc li { font-size: 16px; color: var(--text); }
  .doc ul { padding-left: 20px; }
  .doc a { color: var(--cyan); }
  .doc .back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 14px; }
  .doc .back:hover { color: var(--silver); }
  .sky-aurora-dim { opacity: 0.35; }
  .doc-top { display: flex; justify-content: space-between; gap: 16px; }
