/* =========================================================
   Digital Hand — landing styles
   Палитра снята с логотипа: неоновый циан → синий → фиолет
   на глубоком тёмно-синем фоне.
   ========================================================= */

/* ---------- локальные шрифты ----------
 * Onest, Inter, IBM Plex Mono — лицензия SIL Open Font License 1.1,
 * самостоятельный хостинг разрешён. Файлы лежат в assets/fonts/.
 *
 * Раздаём со своего сервера, а не с Google Fonts: иначе IP каждого
 * посетителя уходит на серверы Google в США ещё до того, как человек
 * что-либо заполнил. Теперь сайт не делает ни одного внешнего запроса.
 *
 * Взяты только кириллица и латиница. unicode-range оставлен, чтобы
 * браузер качал лишь те файлы, которые реально нужны странице.
 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/onest-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/onest-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/onest-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/onest-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/onest-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/onest-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:          #04091a;
  --bg-deep:     #020610;
  --surface:     #080f24;
  --surface-2:   #0b1430;
  --line:        rgba(120, 180, 255, .12);
  --line-strong: rgba(120, 190, 255, .26);

  --text:        #e8f1ff;
  --text-soft:   #b9c9e4;
  --muted:       #8497b8;

  --cyan:        #38e1fc;
  --blue:        #5b8cff;
  --violet:      #a855f7;

  --accent-grad: linear-gradient(100deg, #38e1fc 0%, #5b8cff 52%, #a855f7 100%);
  --glow-cyan:   rgba(56, 225, 252, .35);

  --font-display: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --wrap: 1160px;
  --pad: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
code { font-family: var(--font-mono); font-size: .86em; color: var(--cyan); }

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 820px; }

.section { padding: clamp(60px, 6.5vw, 96px) 0; position: relative; }
/* якорные переходы не должны прятать заголовок под липкой шапкой */
section[id], .hero { scroll-margin-top: 92px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(11, 20, 48, .55) 12%, rgba(11, 20, 48, .55) 88%, transparent); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.section-sub { margin-top: 16px; color: var(--text-soft); font-size: 17px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.footnote { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ---------- background decor ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120, 180, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 180, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 78%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% -6%, rgba(56, 225, 252, .16), transparent 65%),
    radial-gradient(560px 400px at 8% 8%,  rgba(168, 85, 247, .13), transparent 66%),
    radial-gradient(900px 600px at 50% 108%, rgba(91, 140, 255, .10), transparent 70%);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: #04091a; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 9, 26, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(4, 9, 26, .9); }

.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 46px; height: auto; filter: drop-shadow(0 0 12px var(--glow-cyan)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--text-soft); font-size: 15px; font-weight: 500;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent-grad); transition: right .28s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle-bar { display: block; width: 17px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s, border-color .25s, color .25s;
}
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent-grad); color: #030814; box-shadow: 0 0 0 rgba(56, 225, 252, 0);
  /* строго после шортката background: иначе он сбрасывает origin в padding-box и
     прозрачная рамка в 1px заполняется повтором градиента — чужой цвет по краям */
  background-origin: border-box;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -10px var(--glow-cyan); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: rgba(120, 180, 255, .05); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(120, 180, 255, .1); border-color: var(--cyan); transform: translateY(-2px); }

:where(a, button, input, select, textarea, summary, details):focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 9vw, 136px) 0 clamp(44px, 5.5vw, 80px); }
.hero-copy { max-width: 900px; }

.hero h1 { font-size: clamp(34px, 6vw, 66px); letter-spacing: -.028em; text-wrap: balance; }
.hero .lead { margin-top: 24px; font-size: clamp(16.5px, 1.5vw, 19.5px); color: var(--text-soft); max-width: 33em; }
.hero .lead strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; padding: 30px 28px;
  background: linear-gradient(180deg, rgba(11, 20, 48, .72), rgba(8, 15, 36, .5));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s, transform .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover { transform: translateY(-3px); }
.card:hover::before { opacity: .55; }

.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 15.5px; }

.card-plain { background: transparent; border-color: var(--line); padding: 26px 24px; }
.card-idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--cyan); display: block; margin-bottom: 14px; opacity: .8; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(56, 225, 252, .08); border: 1px solid rgba(56, 225, 252, .22);
  color: var(--cyan); margin-bottom: 20px;
}
.card-icon svg { width: 23px; height: 23px; }

.ticks { margin-top: 18px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 15px; color: var(--text-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--glow-cyan);
}
.ticks-lg li { font-size: 16px; }

/* подпись автора — пригодится, когда появится секция отзывов (см. README, раздел 5) */
.card-author {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; color: var(--muted) !important;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 24px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(8, 15, 36, .45); }
.step-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #030814;
  background: var(--accent-grad); margin-bottom: 18px;
  box-shadow: 0 0 20px -4px var(--glow-cyan);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* ---------- заметка о цене рядом с формой ---------- */
.price-note {
  margin-top: 26px; padding: 16px 18px;
  border-left: 2px solid var(--cyan); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(56, 225, 252, .05);
  color: var(--text-soft); font-size: 14.5px; line-height: 1.6;
}
.price-note strong { color: var(--text); font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(8, 15, 36, .45); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 500; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
  border-right: 1.6px solid var(--cyan); border-bottom: 1.6px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item[open] summary { color: var(--cyan); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--text-soft); font-size: 15.5px; }

/* ---------- lead form ---------- */
.section-lead { padding-bottom: clamp(80px, 9vw, 130px); }
.lead-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.lead-copy h2 { font-size: clamp(28px, 3.6vw, 42px); }
.lead-copy .lead { margin-top: 18px; color: var(--text-soft); }
.lead-copy .ticks { margin-top: 28px; }

.lead-contacts { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text-soft); font-size: 15.5px; padding: 8px 0; margin-right: 26px; transition: color .2s;
}
.contact-link svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.contact-link:hover { color: var(--cyan); }

.lead-form-wrap {
  position: relative; padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(11, 20, 48, .85), rgba(6, 12, 30, .75));
  box-shadow: 0 24px 70px -40px rgba(56, 225, 252, .5);
}

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 8px; color: var(--text-soft); }
.req { color: var(--cyan); }

.field input[type="text"], .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: rgba(3, 8, 20, .7); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2338e1fc' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.field select option { background: #080f24; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #5c6f8f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 225, 252, .13); background: rgba(3, 8, 20, .95);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #f87171; }

.field-hint { margin-top: 7px; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.field-error { margin-top: 7px; font-size: 13px; color: #fca5a5; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.field-check input { width: 19px; height: 19px; margin-top: 2px; accent-color: #38e1fc; cursor: pointer; flex-shrink: 0; }
.field-check label { margin: 0; font-size: 13.5px; line-height: 1.5; }
.field-check a { color: var(--cyan); }
.field-check .field-error { grid-column: 1 / -1; }

/* honeypot — не display:none, чтобы боты его находили */
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { margin-top: 8px; position: relative; }
#submitBtn[disabled] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(3, 8, 20, .3); border-top-color: #030814; border-radius: 50%; animation: spin .7s linear infinite; }
#submitBtn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-top: 16px; font-size: 15px; display: none; padding: 13px 16px; border-radius: var(--r-sm); }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: rgba(56, 225, 252, .1); border: 1px solid rgba(56, 225, 252, .35); color: #a5f3fc; }
.form-status.is-err { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fca5a5; }

.form-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(2, 6, 16, .6); padding-top: clamp(48px, 5vw, 68px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding-bottom: 46px; }
.footer-tagline { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer-nav h4, .footer-contacts h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contacts a { text-decoration: none; color: var(--text-soft); font-size: 14.5px; transition: color .2s; width: fit-content; }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); font-family: var(--font-mono);
}

/* ---------- страница документа ---------- */
.legal h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.legal h2 { font-size: clamp(19px, 2.1vw, 23px); margin: 44px 0 14px; }
.legal p { color: var(--text-soft); font-size: 16px; margin-bottom: 14px; }
.legal .ticks { margin: 0 0 18px; }
.legal-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted) !important; margin-bottom: 26px; }
.legal-callout {
  padding: 18px 22px; border-radius: var(--r-md);
  border: 1px solid rgba(168, 85, 247, .4); background: rgba(168, 85, 247, .09);
  margin-bottom: 34px;
}
.legal-callout p { margin: 0; color: #e9d5ff; font-size: 15px; }
.legal-back { margin-left: auto; }
.legal-back-link { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-back-link a { color: var(--cyan); text-decoration: none; }
.legal a { color: var(--cyan); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* лёгкая лесенка внутри сеток — задаётся классами, без inline-стилей (CSP) */
.cards > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .07s; }
.cards > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .14s; }
.cards > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .21s; }
.faq > .reveal:nth-child(2) { transition-delay: .05s; }
.faq > .reveal:nth-child(3) { transition-delay: .1s; }
.faq > .reveal:nth-child(4) { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================
   Адаптив
   1180  узкий ноутбук
   1024  планшет-альбом (iPad 1024×768)
    900  планшет-книга (iPad 834, iPad mini 768) — здесь бургер
    620  телефон
    380  узкий телефон
   ========================================================= */

@media (max-width: 1180px) {
  :root { --pad: 22px; }
  .nav { gap: 20px; }
}

/* планшет-альбом */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero .lead { max-width: 38em; }
  .lead-grid { gap: 36px; }
}

/* планшет-книга: бургер, одна колонка в тяжёлых секциях */
@media (max-width: 900px) {
  .nav {
    --nav-top: 74px;
    position: fixed; inset: var(--nav-top) 0 auto; flex-direction: column; gap: 0;
    background: var(--bg);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
    border-bottom: 1px solid var(--line); padding: 8px var(--pad) 22px;
    /* уводим панель за верх экрана целиком. -120% от собственной высоты не хватало:
       меню ниже 330px не дотягивало и свисало непрозрачной плашкой на шапку,
       перекрывая верх логотипа и названия */
    transform: translateY(calc(-100% - var(--nav-top)));
    /* закрытое меню не должно быть доступно с клавиатуры и скринридеру */
    visibility: hidden;
    transition: transform .3s ease, visibility .3s; margin-left: 0;
    max-height: calc(100dvh - var(--nav-top)); overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .lead-grid { grid-template-columns: 1fr; gap: 34px; }
  .lead-form-wrap { max-width: 620px; }

  .section-head { margin-bottom: 32px; }
}

/* телефон */
@media (max-width: 620px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }

  .header-inner { height: 66px; gap: 14px; }
  .nav { --nav-top: 66px; }   /* остальное пересчитается само */
  section[id], .hero { scroll-margin-top: 78px; }
  .brand { gap: 14px; }
  .brand-mark { width: 40px; }
  .brand-name { font-size: 15px; }

  .hero { padding-top: 44px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }

  .cards-2, .cards-4, .steps { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .card-plain { padding: 22px 18px; }

  .faq-item summary { padding: 17px 46px 17px 18px; font-size: 15.5px; }
  .faq-item summary::after { right: 18px; }
  .faq-body { padding: 0 18px 18px; }

  .lead-form-wrap { padding: 22px 18px; }
  .contact-link { display: flex; margin-right: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* узкий телефон */
@media (max-width: 380px) {
  :root { --pad: 15px; }
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 25px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .field input[type="text"], .field select, .field textarea { font-size: 16px; }
}

/* ландшафт на телефоне — не растягиваем вертикальные отступы */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: 36px; padding-bottom: 44px; }
  .nav { max-height: calc(100dvh - var(--nav-top)); }
}
