/* =====================================================================
   XML Viewer — лендинг.

   Светлая тема, «технический паспорт документа»: светлый нейтральный фон,
   белые карточки с тонкой линией, один сдержанный синий акцент, моношрифтовые
   подписи разделов. Без внешних шрифтов, библиотек и картинок-заглушек.
   ===================================================================== */

:root {
  --bg: #f5f6f8;
  --bg-tint: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef1f6;
  --line: #e2e5ec;
  --line-2: #d3d8e2;
  --line-strong: #c2c9d6;
  --text: #12151b;
  --muted: #4b5364;
  --muted-2: #5f6778;
  --accent: #1b4fd8;
  --accent-ink: #ffffff;
  --accent-soft: #e8eeff;
  --accent-line: #c7d5f5;
  --teal: #0f766e;
  --teal-soft: #e2f2f0;
  --amber-ink: #a3201b;
  --amber-soft: #fdecea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -30px rgba(16, 24, 48, .30);
  --shadow-sm: 0 10px 26px -18px rgba(16, 24, 48, .28);
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* Едва заметная техническая сетка: даёт ощущение чертежа, не мешает чтению. */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 32, 60, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 60, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08em .36em;
  color: #1f2937;
  word-break: break-word;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.wrap-narrow { max-width: 800px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------- Шапка ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 248, .86);
  backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(245, 246, 248, .95);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(140deg, #2563eb, #4338ca);
  box-shadow: 0 6px 16px -8px rgba(27, 79, 216, .8);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-size: 17px; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color .18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a[data-active]::after { transform: scaleX(1); }
.nav a[data-active] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ------------------------------- Кнопки ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #1b4fd8, #4338ca);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -14px rgba(27, 79, 216, .95);
}
.btn-primary:hover { box-shadow: 0 14px 30px -14px rgba(27, 79, 216, 1); }

.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 11px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 560;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ------------------------------- Надзаголовки ------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow span { color: var(--accent); font-weight: 600; }

/* ------------------------------- Hero ------------------------------- */

.hero {
  position: relative;
  /* Мягкий подсвет рассеивается здесь; иначе он создаёт горизонтальную
     прокрутку на любой ширине экрана. */
  overflow: hidden;
  padding: 76px 0 64px;
}
.hero-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  width: 1080px;
  height: 600px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(27, 79, 216, .10), transparent 72%),
    radial-gradient(closest-side, rgba(15, 118, 110, .08), transparent 72%);
  background-position: 32% 45%, 70% 35%;
  background-size: 68% 100%, 58% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 52px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.7vw, 52px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 700;
}
.grad {
  background: linear-gradient(100deg, #1b4fd8 10%, #4338ca 55%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 26px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 13px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
}

.hero-note + .chips { margin-top: 24px; }

.hero-note {
  margin: 22px 0 0;
  max-width: 48ch;
  padding-left: 14px;
  border-left: 2px solid var(--accent-line);
  font-size: 15px;
  font-weight: 500;
}

.hero-visual { position: relative; }
.shot-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 1px;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.shot-badge strong { font-size: 14.5px; letter-spacing: -.01em; }
.shot-badge span { font-size: 13px; color: var(--muted-2); }

/* ------------------------------- Снимки экрана ------------------------------- */

.shot {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.shot-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d6dae3;
}
.shot-bar i:first-child { background: #e8b4ae; }
.shot-bar i:nth-child(2) { background: #eed3a2; }
.shot-bar i:nth-child(3) { background: #a9d8bd; }
.shot img { width: 100%; height: auto; }

.shot-lg { box-shadow: 0 26px 60px -34px rgba(16, 24, 48, .45); }

/* ------------------------------- Секции ------------------------------- */

.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -.026em;
  font-weight: 680;
}
.section-sub {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
  max-width: 58em;
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 14px 0 7px; font-size: 18px; letter-spacing: -.014em; font-weight: 640; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.ico svg { width: 20px; height: 20px; }
.ico-teal {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: #c5e3e0;
}

/* ------------------------------- Полоса об автономной работе ------------------------------- */

.band {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 38px 34px;
}
.band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.band-head .section-sub { margin: 0; max-width: 40em; }
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.band-item {
  padding: 22px 24px 4px;
  border-left: 1px solid var(--line);
}
.band-item:first-child { border-left: 0; padding-left: 0; }
.band-item h3 { margin: 12px 0 6px; font-size: 16.5px; font-weight: 640; letter-spacing: -.01em; }
.band-item p { margin: 0; color: var(--muted); font-size: 15px; }
.band-item .ico { margin-top: 4px; }

/* ------------------------------- Табы снимков ------------------------------- */

.shots-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.shot-tab {
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.shot-tab:hover { color: var(--text); border-color: var(--accent-line); }
.shot-tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
  font-weight: 560;
}
.shot-panel figcaption {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  background: var(--surface-2);
}
.shot-panel[hidden] { display: none; }

/* ------------------------------- Этапы работы ------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-n {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.steps h3 { margin: 15px 0 7px; font-size: 18.5px; letter-spacing: -.014em; font-weight: 640; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ------------------------------- Сплит ------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 50px;
  align-items: center;
}
.list { margin: 0; padding: 0; list-style: none; }
.list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  color: var(--muted);
}
.list li::before {
  content: "";
  position: absolute;
  left: 3px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.list-tight li { font-size: 15px; margin-bottom: 10px; }
.list strong { color: var(--text); font-weight: 600; }

.doc-card {
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.doc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.doc-chip {
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--amber-ink);
  background: var(--amber-soft);
  border: 1px solid #f3cfc9;
}
.doc-name { font-weight: 600; }
.doc-mask {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.doc-lines { display: grid; gap: 9px; margin-bottom: 13px; }
.doc-lines i {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: #e7eaf0;
}
.doc-lines i:nth-child(1) { width: 92%; }
.doc-lines i:nth-child(2) { width: 74%; background: #dde2ea; }
.doc-lines i:nth-child(3) { width: 84%; }
.doc-lines i:nth-child(4) { width: 58%; }
.doc-lines i:nth-child(5) { width: 78%; background: #dde2ea; }
.doc-foot { margin: 0; font-size: 13.5px; color: var(--muted-2); }

/* ------------------------------- Загрузка ------------------------------- */

.download {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: 32px;
  padding: 38px 34px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(27, 79, 216, .06), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow);
}
.download h2 { margin: 0 0 10px; font-size: clamp(23px, 2.8vw, 31px); letter-spacing: -.024em; }
.download-sub { margin: 0 0 22px; color: var(--muted); }
.download-note { margin: 14px 0 0; color: var(--muted-2); font-size: 14px; }
.download-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.download-meta div {
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.download-meta div:nth-child(odd) { border-right: 1px solid var(--line); }
.download-meta div:nth-last-child(-n+2) { border-bottom: 0; }
.download-meta dt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.download-meta dd {
  margin: 3px 0 0;
  font-size: 15px;
  word-break: break-word;
}

.download-side {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.download-side h3 { margin: 0 0 12px; font-size: 17px; letter-spacing: -.012em; }
.download-side .link-arrow { margin-top: 4px; font-size: 15px; }

/* ------------------------------- Условия ------------------------------- */

.card-plan { display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; }
.card-plan p { flex: 1; }
.card-plan h3 { margin: 0; }
.plan-price {
  font-size: 29px;
  font-weight: 680;
  letter-spacing: -.028em;
  color: var(--text);
  margin: 0 !important;
}
.card-plan-accent {
  border-color: var(--accent-line);
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(27, 79, 216, .07), transparent 60%),
    var(--surface);
}
.fineprint { margin: 24px 0 0; font-size: 13.5px; color: var(--muted-2); }

/* ------------------------------- FAQ ------------------------------- */

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  padding: 16px 20px;
  font-weight: 570;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--muted-2);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--line-strong); }
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ------------------------------- Призыв и подвал ------------------------------- */

.cta { padding: 76px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 38px 34px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(120deg, rgba(27, 79, 216, .06), rgba(15, 118, 110, .05)),
    var(--surface);
}
.cta h2 { margin: 0 0 8px; font-size: clamp(21px, 2.5vw, 28px); letter-spacing: -.024em; }
.cta p { margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding-top: 50px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 36px;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer-col h3 {
  margin: 0 0 3px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-2);
  font-weight: 600;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  width: fit-content;
  max-width: 100%;
}
.footer-col a:hover { color: var(--accent); }
.footer-note { margin: 3px 0 0; font-size: 14.5px; color: var(--muted-2); max-width: 30em; }
.footer-legal { margin: 5px 0 0; font-size: 13.5px; color: var(--muted-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: 13.5px; color: var(--muted-2); font-family: var(--mono); }

/* ------------------------------- Адаптив ------------------------------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { max-width: 760px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .download { grid-template-columns: 1fr; padding: 30px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-item { border-left: 0; border-top: 1px solid var(--line); padding: 20px 20px 4px; }
  .band-item:nth-child(-n+2) { border-top: 0; }
  .band-item:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 1000px) {
  /* Ниже этой ширины пункты меню не помещаются в строку — прячем их под кнопку.
     Проверено: на 1024 шапка без этого уезжает за экран. */
  .nav {
    position: fixed;
    inset: 70px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(248, 249, 251, .98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 42px; }
  .cta { padding: 56px 0; }
  .grid-2, .grid-3, .steps, .footer-inner, .band-grid { grid-template-columns: 1fr; }
  .download-meta { grid-template-columns: 1fr; }
  .download-meta div { border-right: 0 !important; }
  .download-meta div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .band { padding: 28px 20px; }
  .band-item { padding: 18px 0 4px !important; border-top: 1px solid var(--line) !important; }
  .band-item:first-child { border-top: 0 !important; }
  .download, .cta-inner { padding: 24px 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .lead { font-size: 16.5px; }
  .hero-actions .btn { width: 100%; }
  /* Длинные подписи кнопок на узких экранах должны переноситься,
     иначе «Скачать для Windows» растягивает страницу по горизонтали. */
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 13px 18px; font-size: 15.5px; }
  .btn-sm { padding: 9px 14px; }
  .shot-badge { left: 12px; bottom: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 430px) {
  /* На самых узких экранах в шапке остаётся только бургер: логотип с
     кнопкой «Скачать» вместе не помещаются в 320 px. */
  .header-actions .btn { display: none; }
  .logo-text { font-size: 16px; }
}

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

/* ============================ СТРАНИЦА ДОКУМЕНТА ============================ */
/* Политика конфиденциальности использует те же шрифты и цвета, что и
   лендинг, поэтому текст читается так же, как остальной сайт. */
.prose-page { padding: 76px 0; background: var(--bg); }
.prose { max-width: 860px; }
.prose h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -.02em; margin: 14px 0 6px; }
.prose .eyebrow { margin-bottom: 6px; }
.prose-lead { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.prose h2 { font-size: 20px; letter-spacing: -.01em; margin: 36px 0 10px; padding-top: 6px; }
.prose p { margin: 0 0 13px; color: var(--text); }
.prose ul { margin: 0 0 13px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
/* :not(.btn) обязателен: без него .prose a перебивал .btn-primary по
   специфичности, и текст синей кнопки становился того же синего цвета,
   что и её фон, — надпись «Вернуться на сайт» исчезала. */
.prose a:not(.btn) { color: var(--accent); text-underline-offset: 2px; }
.prose .muted { color: var(--muted); }
.prose-actions { margin-top: 36px; }
.site-footer .footer-bottom a { color: var(--muted); text-decoration: none; }
.site-footer .footer-bottom a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 560px) {
  .prose-page { padding: 32px 0 56px; }
  .prose h2 { font-size: 18.5px; margin-top: 30px; }
}

/* ============================ СОГЛАСИЕ НА COOKIE ============================ */
/* Панель появляется поверх страницы, пока пользователь не выбрал вариант.
   Позиция fixed сдвигается на --cookie-gap, иначе панель перекрывала бы
   нижнюю подпись об авторе. */
:root { --cookie-gap: 0px; }
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0 0 var(--cookie-gap);
  background: rgba(17, 27, 51, .96);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(10, 20, 45, .18);
  transform: translateY(0);
  transition: transform .25s ease, opacity .25s ease;
}
.cookie[hidden] { display: block; opacity: 0; pointer-events: none; transform: translateY(110%); }
.cookie-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-text { font-size: 14.5px; line-height: 1.5; margin: 0; color: #e8ecf6; }
.cookie-text a { color: #fff; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }
.cookie .btn { white-space: nowrap; }
.cookie .btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.cookie .btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.cookie .btn-primary { background: #fff; color: #123a9e; border-color: #fff; }
.cookie .btn-primary:hover { background: #e8eeff; }

@media (max-width: 860px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-actions { width: 100%; margin-left: 0; }
  .cookie-actions .btn { flex: 1; white-space: normal; }
}

/* ============================ ФОРМА СБОРА ПОЧТЫ ============================ */
/* Форма вместо кнопки «Скачать»: адрес нужен, чтобы отдать ссылку на
   установщик. Поле ввода не должно ломать сетку, поэтому ширина задаётся
   через flex, а не фиксированными px. */
.dl-form { max-width: 460px; margin: 22px 0 0; }
.dl-field { display: flex; flex-direction: column; gap: 7px; }
.dl-label { font-size: 14px; font-weight: 600; color: var(--text); }
.dl-input {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dl-input::placeholder { color: #8b93a7; }
.dl-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.dl-hint { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.dl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}
.dl-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.dl-check a { color: var(--accent); text-underline-offset: 2px; }
.dl-error {
  font-size: 14px;
  line-height: 1.45;
  color: #a4262c;
  background: #fdf3f3;
  border: 1px solid #f2d4d4;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin: 16px 0 0;
}
.dl-error:empty { display: none; }
.dl-form .btn { margin-top: 18px; }
/* Ловушка для ботов: поле скрыто от людей и от скринридеров, но
   автозаполнение ботов его видит. Смещать влево нельзя — элемент за
   пределами окна ломает проверку горизонтальной прокрутки. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dl-form.is-busy { opacity: .65; pointer-events: none; }
.dl-done { max-width: 460px; margin: 22px 0 0; padding: 22px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); }
/* Текст ложится на светло-синюю заливку, поэтому нужен тёмный цвет:
   белый давал контраст 1.16:1 и надпись была не видна. */
.dl-done-lead { font-size: 15.5px; line-height: 1.5; color: var(--text); margin: 0 0 16px; }
.dl-done-lead a { color: var(--accent); text-decoration: underline; font-weight: 600; }

.thanks-card {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 34px;
}
.thanks-check {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  margin: 0 0 18px;
}
.thanks-check svg { width: 26px; height: 26px; }
.thanks-card h1 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.02em; margin: 12px 0 10px; }
.thanks-card .btn { margin: 22px 0 4px; }
.thanks-card .download-meta { margin-top: 24px; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }

@media (max-width: 560px) {
  .thanks-card { padding: 26px 20px; }
}
