:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-soft: #ececf1;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.12);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", sans-serif;
  --header-h: 6.5rem;
  --logo-size: 56px;
  --nav-fs: 1.06rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 42%, #ececf1 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto minmax(16rem, 1fr);
  align-items: center;
  column-gap: 1rem;
  padding: 1.35rem 0;
  min-height: var(--header-h);
}
.logo {
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
  min-width: 0;
}
.nav {
  grid-column: 2;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  gap: 0.15rem;
  flex-wrap: nowrap;
  z-index: 1;
  padding: 0;
  max-width: 100%;
  background: none;
  border: 0;
  box-shadow: none;
}
.header-inner > .btn-primary {
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
  min-width: 12.75rem;
  padding: 0.95rem 1.55rem;
  font-size: 1.02rem;
  white-space: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-mark {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 10px;
  object-fit: contain;
}
.nav a {
  position: relative;
  padding: 0.65rem 0.85rem 0.8rem;
  border-radius: 0;
  color: var(--muted);
  font-size: var(--nav-fs);
  font-weight: 500;
  border: 0;
  background: transparent;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: transparent;
  transition: background 0.15s ease;
}
.nav a:hover {
  color: var(--text);
  background: transparent;
}
.nav a:hover::after {
  background: rgba(0, 113, 227, 0.35);
}
.nav a.active {
  color: var(--text);
  font-weight: 600;
  background: transparent;
}
.nav a.active::after {
  background: var(--accent);
}
.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.5rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-toggle:hover {
  background: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.22);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }

.hero {
  padding: 4.5rem 0 3rem;
  overflow: visible;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 113, 227, 0.08), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(0, 113, 227, 0.05), transparent 30%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  overflow: visible;
}
.hero-col {
  position: relative;
  min-width: 0;
}
.hero-robot {
  position: absolute;
  top: 0.5rem;
  right: calc(100% + 0.75rem);
  width: clamp(160px, 16vw, 240px);
  margin: 0;
  z-index: 0;
  pointer-events: none;
  animation: hero-robot-bob 5s ease-in-out infinite;
}
.hero-col > :not(.hero-robot) {
  position: relative;
  z-index: 1;
}
.hero-robot[hidden] {
  display: none !important;
  animation: none;
}
.hero-robot img {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
  filter: drop-shadow(0 12px 28px rgba(0, 113, 227, 0.14));
}
@keyframes hero-robot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.hero-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 1.35rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: 0.88rem; }

.section { padding: 4rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.feature-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}
.feature-block:last-child { border-bottom: 0; }
.feature-block h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.feature-block .lead-mini { color: var(--muted); margin: 0 0 1rem; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.feature-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
  font-size: 0.94rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.compare-table, .productivity-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compare-table th, .compare-table td,
.productivity-table th, .productivity-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th, .productivity-table th { background: var(--bg-soft); }
.compare-table tr:last-child td, .productivity-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: #dc2626; }
.productivity-table .highlight { font-weight: 700; color: var(--accent); }
.productivity-table .human { color: var(--muted); }

.calc-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 113, 227, 0.15);
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.price-card {
  position: relative;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: rgba(0, 113, 227, 0.35); box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.12), var(--shadow); }
.price-card .tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.price-card .amount { font-size: 2rem; font-weight: 800; margin: 0.75rem 0; }
.price-card ul { margin: 1rem 0 1.25rem; padding-left: 1.1rem; color: var(--muted); }

.news-list { display: grid; gap: 2rem; max-width: 820px; }
.news-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
}
.news-item:last-child { border-bottom: 0; }
.news-date { color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.news-item h3 { margin: 0 0 0.75rem; font-size: 1.5rem; }
.news-item p { margin: 0 0 0.75rem; color: var(--muted); }
.news-item a { color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card a { color: var(--accent); font-weight: 600; }
.form label { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.9rem; }
.form input, .form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  margin-bottom: 0.9rem;
  font-family: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }

.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.screenshot-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.screenshot-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.screenshot-caption {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.screenshot-caption strong { display: block; margin-bottom: 0.15rem; }
.screenshot-caption span { color: var(--muted); font-size: 0.85rem; }

.screenshot-expandable {
  cursor: zoom-in;
  position: relative;
}
.screenshot-expandable::after {
  content: "🔍 Увеличить";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 2;
}
.screenshot-expandable:hover::after,
.screenshot-expandable:focus-visible::after {
  opacity: 1;
  transform: none;
}
.screenshot-expandable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Lightbox — скриншоты интерфейса */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  animation: lightbox-fade 0.25s ease;
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(98vw, 1280px);
  max-height: 92vh;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  animation: lightbox-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}
.lightbox-title {
  padding: 1rem 3rem 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.lightbox-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.75rem 1rem 1rem;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.lightbox-scale {
  display: block;
  transform-origin: top center;
  margin: 0 auto;
}
.lightbox-scale .fc-wrap {
  width: auto;
  min-width: 0;
  max-width: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --fc-fs: 11px;
  --fc-fs-xs: 8px;
  --fc-fs-sm: 9px;
  --fc-fs-lg: 12px;
  font-size: var(--fc-fs);
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightbox-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ui-mock {
  font-size: 10px;
  line-height: 1.35;
  color: var(--text);
  min-height: 220px;
  background: var(--bg);
}
.ui-mock.tall { min-height: 280px; }
.ui-mock .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ui-mock .brand { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.ui-mock .dot { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.ui-mock .pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 600;
}
.ui-mock .btn-mini {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 113, 227, 0.2);
}
.ui-mock .btn-mini.dark { background: var(--accent); color: #fff; border-color: transparent; }
.ui-mock .body { padding: 10px; display: grid; gap: 8px; }
.ui-mock .panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px;
}
.ui-mock .tabs { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 7px; }
.ui-mock .tab { padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,0.04); color: var(--muted); font-size: 7px; }
.ui-mock .tab.on { background: var(--accent-soft); color: var(--accent); }
.ui-mock .progress { height: 6px; border-radius: 999px; background: rgba(0,0,0,0.06); overflow: hidden; }
.ui-mock .progress > span { display: block; height: 100%; background: var(--accent); }
.ui-mock table { width: 100%; border-collapse: collapse; font-size: 8px; }
.ui-mock th, .ui-mock td { padding: 3px 5px; border-bottom: 1px solid var(--border); text-align: left; }
.ui-mock .ok { color: var(--green); }
.ui-mock .warn { color: #ca8a04; }
.ui-mock .field { height: 16px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); margin-top: 3px; }
.ui-mock .muted { color: var(--muted); font-size: 8px; }

/* Email lead mock — как в sales_notify HTML */
.email-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.email-mock-toolbar {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #64748b;
}
.email-mock-toolbar strong { color: #0f172a; display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }
.email-mock-body { padding: 1.25rem 1.35rem 1.5rem; }
.email-mock-body h2 { margin: 0 0 0.75rem; font-size: 1.05rem; color: #1e3a5f; }
.email-lead-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 1.25rem; }
.email-lead-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f1f5f9;
  width: 34%;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
}
.email-lead-table td { padding: 8px 10px; border-top: 1px solid #e2e8f0; color: #0f172a; }
.email-dialog h3 { margin: 0 0 0.65rem; font-size: 0.95rem; color: #1e3a5f; }
.dialog-bubble {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.dialog-bubble.client { background: #eff6ff; border-left: 4px solid #bfdbfe; }
.dialog-bubble.bot { background: #f8fafc; border-left: 4px solid #e2e8f0; }
.dialog-bubble .who {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.dialog-bubble.client .who { color: #1d4ed8; }
.dialog-bubble.bot .who { color: #475569; }
.email-attach {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 0.85rem;
  color: #64748b;
}

.cta-band {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mission-band {
  padding: 2.5rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(0, 113, 227, 0.04));
  border: 1px solid rgba(0, 113, 227, 0.2);
  box-shadow: var(--shadow);
}
.mission-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.mission-band p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52rem;
}
.mission-band p:last-child { margin-bottom: 0; }
.mission-band .mission-lead {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
}
.mission-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.mission-step {
  padding: 1rem 0.85rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.mission-step strong {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.mission-step.highlight-step {
  border-color: rgba(0, 113, 227, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  margin-top: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem; }
.footer-grid h4 { margin: 0 0 0.65rem; color: var(--text); }
.footer-grid a { color: var(--muted); display: block; margin: 0.25rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  background: radial-gradient(circle at 70% 0%, rgba(0, 113, 227, 0.06), transparent 40%);
}
.page-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-hero p { margin: 0; color: var(--muted); max-width: 720px; }
.text-accent { color: var(--accent); }

/* ── Perimeter / data sovereignty infographic ── */
.perimeter-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.perimeter-zone {
  position: relative;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.perimeter-zone h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.perimeter-zone p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.perimeter-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.perimeter-badge.green { background: var(--green-soft); color: var(--green); }
.perimeter-badge.blue { background: var(--accent-soft); color: var(--accent); }
.perimeter-badge.red { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.perimeter-local {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.06), var(--surface));
}
.perimeter-union {
  border-color: rgba(0, 113, 227, 0.35);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.07), var(--surface));
}
.perimeter-deny {
  border-color: rgba(220, 38, 38, 0.25);
  border-style: dashed;
  background: var(--bg-soft);
  opacity: 0.85;
}
.perimeter-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.perimeter-items li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
}
.perimeter-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
.perimeter-local .perimeter-items li::before { background: var(--green); opacity: 1; }
.perimeter-union .perimeter-items li::before { background: var(--accent); opacity: 1; }
.perimeter-deny .perimeter-items li {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.45);
}
.perimeter-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--muted);
  font-weight: 700;
  min-width: 2rem;
}
.perimeter-arrow.blocked {
  color: #dc2626;
  font-size: 1.5rem;
}
.perimeter-flow-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.perimeter-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
}
.perimeter-chip.ok { border-color: rgba(22, 163, 74, 0.3); color: var(--green); }
.perimeter-chip.cloud { border-color: rgba(0, 113, 227, 0.3); color: var(--accent); }
.perimeter-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.perimeter-legend-item {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--muted);
}
.perimeter-legend-item strong {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.legend-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.legend-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.legend-icon--pc {
  background: var(--green-soft);
  color: var(--green);
}
.legend-icon--union {
  background: var(--accent-soft);
  color: var(--accent);
}
.legend-icon--lock {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

@media (max-width: 960px) {
  .perimeter-wrap {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .perimeter-arrow {
    transform: rotate(90deg);
    min-height: 2rem;
  }
  .perimeter-legend { grid-template-columns: 1fr; }
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 100;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.05);
}
.scroll-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #0071e3 0%, #2997ff 45%, #64d2ff 100%);
  box-shadow: 0 0 14px rgba(0, 113, 227, 0.55), 0 2px 8px rgba(0, 113, 227, 0.25);
  transition: width 0.12s ease-out;
}

/* ── Ambient background ── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  animation: orb-float 22s ease-in-out infinite;
}
.ambient-bg .orb-1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: rgba(0, 113, 227, 0.18);
}
.ambient-bg .orb-2 {
  width: 360px;
  height: 360px;
  top: 35%;
  right: -8%;
  background: rgba(52, 199, 89, 0.12);
  animation-delay: -7s;
  animation-duration: 26s;
}
.ambient-bg .orb-3 {
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: 28%;
  background: rgba(100, 210, 255, 0.14);
  animation-delay: -14s;
  animation-duration: 30s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -18px) scale(1.04); }
  66% { transform: translate(-16px, 22px) scale(0.97); }
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Interactive polish ── */
.card,
.stat,
.price-card,
.mission-step,
.screenshot-wrap,
.news-item,
.cta-band,
.mission-band,
.email-mock {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.card:hover,
.stat:hover,
.price-card:hover,
.mission-step:hover,
.screenshot-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(0, 113, 227, 0.11);
}
.price-card.featured:hover {
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 22px 55px rgba(0, 113, 227, 0.18);
}

.hero-badge {
  animation: badge-glow 3.5s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
  50% { box-shadow: 0 0 18px rgba(22, 163, 74, 0.22); }
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

.hero h1,
.page-hero h1 {
  background: linear-gradient(135deg, var(--text) 0%, #3a3a3c 55%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-band {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(255, 255, 255, 0.95));
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(0, 113, 227, 0.12), transparent 45%);
  pointer-events: none;
}

.mission-band {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.14), rgba(100, 210, 255, 0.06));
  position: relative;
  overflow: hidden;
}
.mission-band::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.08);
  filter: blur(40px);
  pointer-events: none;
}

.stat strong {
  background: linear-gradient(135deg, var(--accent), #64d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(0, 113, 227, 0.09), transparent 55%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ambient-bg .orb,
  .hero-badge,
  .hero-robot { animation: none; }
  .card:hover,
  .stat:hover,
  .price-card:hover,
  .mission-step:hover,
  .screenshot-wrap:hover { transform: none; }
}

@media (max-width: 1080px) and (min-width: 721px) {
  :root {
    --header-h: 5.75rem;
    --logo-size: 48px;
    --nav-fs: 0.92rem;
  }
  .logo { font-size: 1.35rem; gap: 0.75rem; }
  .nav { gap: 0.1rem; padding: 0; }
  .nav a { padding: 0.55rem 0.7rem; }
  .header-inner > .btn-primary {
    min-width: 10.75rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 960px) {
  .hero-grid, .grid-2, .grid-3, .pricing-grid, .contact-grid, .screenshot-grid, .screenshot-grid-3, .footer-grid, .feature-block, .mission-flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root {
    --header-h: 4.75rem;
    --logo-size: 44px;
    --nav-fs: 1rem;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  .site-header {
    z-index: 210;
    background: #fff;
  }
  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 200;
  }
  .mobile-nav-backdrop.open {
    display: block;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: var(--header-h);
  }
  .logo {
    grid-column: auto;
    font-size: 1.28rem;
    gap: 0.65rem;
  }
  .nav {
    grid-column: auto;
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    width: 100%;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: #ffffff !important;
    border: 0;
    border-top: 1px solid var(--border);
    box-shadow: none;
    z-index: 205;
  }
  .nav.open {
    display: flex !important;
  }
  .nav a {
    padding: 1rem 1.25rem;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    color: var(--text) !important;
    background: #ffffff !important;
    -webkit-tap-highlight-color: transparent;
  }
  .nav a:hover {
    color: var(--accent) !important;
    background: var(--bg-soft) !important;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none !important; }
  .nav a.active {
    color: var(--accent) !important;
    font-weight: 600;
    background: var(--accent-soft) !important;
    border-left: 3px solid var(--accent);
    padding-left: calc(1.25rem - 3px);
  }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 211;
  }
  .site-header .container { position: relative; }
  .header-inner .btn-primary { display: none; }
}
