/* ===========================================================================
   Бюро 4276 — landing styles
   Vanilla CSS · design tokens · components · utilities
   =========================================================================== */

/* ──────────────────────────  TOKENS  ────────────────────────── */

:root {
  /* Surface */
  --bg-base:        #0A0A0B;
  --bg-elevated:    #15171C;
  --bg-navy:        #0B1929;
  --bg-light:       #FAFAFB;
  --bg-light-soft:  #F3F4F6;

  /* Text */
  --text-on-dark:           #FFFFFF;
  --text-on-dark-secondary: #A0A4AC;
  --text-on-dark-muted:     #6B7280;
  --text-on-light:          #0A0A0B;
  --text-on-light-secondary:#52525B;
  --text-on-light-muted:    #71717A;

  /* Border */
  --border-dark:     #2A2D33;
  --border-dark-soft:#1E2127;
  --border-light:    #E4E4E7;

  /* Accent */
  --accent:          #1E40AF;
  --accent-hover:    #3B82F6;
  --accent-soft:     rgba(30, 64, 175, 0.15);
  --emergency:       #DC2626;
  --emergency-hover: #EF4444;
  --success:         #15803D;

  /* Tag colors (case categories) */
  --tag-leak:    #1E40AF;
  --tag-ransom:  #DC2626;
  --tag-insider: #B45309;
  --tag-fraud:   #7C3AED;

  /* Type */
  --font-sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing scale (8px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-11: 160px;
  --space-12: 192px;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(16px, 4vw, 48px);
  --header-h:      80px;
  --header-h-sm:   60px;

  /* Motion */
  --ease:       cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:     150ms;
  --t-base:     200ms;
  --t-slow:     400ms;
  --t-reveal:   600ms;
}

/* ──────────────────────────  RESET  ────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-base);
  color: var(--text-on-dark);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
input, select, textarea { background: transparent; border: 0; outline: 0; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--accent); color: #fff;
  z-index: 1000;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

/* ──────────────────────────  TYPOGRAPHY  ────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-on-dark-secondary); }
strong { color: var(--text-on-dark); font-weight: 600; }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

.eyebrow__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-hover);
  letter-spacing: 0.05em;
}
.eyebrow__divider {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--border-dark);
}
.eyebrow__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-secondary);
}
.section--light .eyebrow__label { color: var(--text-on-light-secondary); }
.section--light .eyebrow__divider { background: var(--border-light); }

/* ──────────────────────────  LAYOUT  ────────────────────────── */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.section--light {
  background: var(--bg-light);
  color: var(--text-on-light);
}
.section--light p { color: var(--text-on-light-secondary); }
.section--light strong { color: var(--text-on-light); }

main > section {
  padding-block: clamp(64px, 8vw, 128px);
}
main > section:first-child {
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 96px));
}

.section-head {
  max-width: 800px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__meta {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.section-head__title { margin-bottom: var(--space-4); }
.section-head__lead {
  font-size: 1.125rem;
  max-width: 640px;
}

/* ──────────────────────────  ICONS  ────────────────────────── */

.icon {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.icon--sm { width: 16px; height: 16px; }

/* ──────────────────────────  BUTTONS / LINKS  ────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: 2px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--emergency {
  background: var(--emergency);
  color: #fff;
}
.btn--emergency:hover { background: var(--emergency-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-on-dark-secondary);
}
.section--light .btn--ghost {
  color: var(--text-on-light);
  border-color: var(--border-light);
}
.section--light .btn--ghost:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-on-light-secondary);
}

.link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 500;
  transition: color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.link:hover { gap: 10px; }
.link--accent { color: var(--accent-hover); }
.section--light .link--accent { color: var(--accent); }
.link--accent:hover { color: var(--text-on-dark); }
.section--light .link--accent:hover { color: var(--text-on-light); }
.link--lg { font-size: 1.125rem; }

/* ──────────────────────────  HEADER  ────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-dark-soft);
  transition: height var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  height: var(--header-h-sm);
  background: rgba(10, 10, 11, 0.85);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}
.header__cta { display: flex; align-items: center; gap: var(--space-3); }

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text-on-dark);
  transition: opacity var(--t-fast) var(--ease);
}
.logo:hover { opacity: 0.85; }
.logo__mark {
  width: 36px; height: 36px;
  color: var(--text-on-dark);
  flex-shrink: 0;
}
.logo__name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.site-header.is-scrolled .logo__mark { width: 30px; height: 30px; }

.nav {
  display: flex; gap: var(--space-6);
  font-size: 0.9375rem;
}
.nav a {
  color: var(--text-on-dark-secondary);
  transition: color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--text-on-dark); }

.header__burger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 4px;
}
.header__burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-on-dark);
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  margin-inline: auto;
}
.site-header.is-menu-open .header__burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.is-menu-open .header__burger span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .header__burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-base);
  padding: var(--space-7) var(--container-pad);
  display: flex; flex-direction: column; gap: var(--space-5);
  font-size: 1.25rem;
  font-weight: 600;
  border-top: 1px solid var(--border-dark-soft);
  z-index: 99;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
}
.nav-mobile[hidden] { display: flex; }
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile__incident {
  margin-top: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-dark-soft);
  color: var(--emergency-hover);
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .header__burger { display: flex; }
  .header__cta .btn--emergency .icon { display: none; }
  .header__cta .btn--emergency { padding: 10px 14px; font-size: 0.8125rem; }
}
@media (max-width: 640px) {
  .header__cta .btn--emergency { display: none; }
}

/* ──────────────────────────  HERO  ────────────────────────── */

.hero {
  position: relative;
  min-height: clamp(720px, 90vh, 1000px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  color: var(--accent-hover);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 90%);
}
.hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.18), transparent 60%);
  pointer-events: none;
}
.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero__title {
  font-size: clamp(2.5rem, 5.5vw + 0.5rem, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: var(--space-6);
  max-width: 22ch;
}
.hero__title--muted { color: var(--text-on-dark-secondary); }

.hero__sub {
  font-size: 1.125rem;
  max-width: 640px;
  margin-bottom: var(--space-7);
  color: var(--text-on-dark-secondary);
}
.hero__actions {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.hero__marquee {
  margin: 0 calc(var(--container-pad) * -1);
  border-block: 1px solid var(--border-dark-soft);
  padding-block: var(--space-3);
  margin-bottom: var(--space-7);
}
.marquee {
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-base), transparent); }
.marquee__track {
  display: flex; align-items: center; gap: var(--space-5);
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  width: max-content;
}
.marquee__dot { color: var(--accent-hover); font-size: 0.5rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-dark-soft);
}
.stat__value {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
  line-height: 1;
}
.stat__unit {
  font-size: 0.5em;
  color: var(--text-on-dark-secondary);
  font-weight: 500;
}
.stat__text {
  font-family: var(--font-mono);
  font-size: 0.6em;
  letter-spacing: 0.02em;
}
.stat__label {
  font-size: 0.8125rem;
  color: var(--text-on-dark-secondary);
  line-height: 1.5;
  max-width: 28ch;
}

@media (max-width: 640px) {
  .hero__stats { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ──────────────────────────  SERVICES  ────────────────────────── */

.services {
  background: var(--bg-base);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
/* Планшет: трёх колонок не помещается, но и одну растягивать слишком —
   режется до двух (третья карточка едет на следующий ряд). */
@media (max-width: 1023px) and (min-width: 641px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark-soft);
  display: flex; flex-direction: column;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.service-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
}
.service-card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: var(--space-5);
}
.service-card__icon {
  width: 32px; height: 32px;
  color: var(--accent-hover);
  stroke-width: 1.5;
}
.service-card__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.08em;
}
.service-card h3 { margin-bottom: var(--space-3); }
.service-card__lead {
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
  flex-grow: 1;
}
.service-card__list {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: 0.9375rem;
  color: var(--text-on-dark-secondary);
}
.service-card__list li {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-dark-soft);
}
.service-card__list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent-hover);
  margin-top: 4px;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  vertical-align: 2px;
}

/* ──────────────────────────  PRODUCT (CheckDock featured)  ────────────────────────── */

.product {
  background: var(--bg-navy);
  position: relative;
  overflow: hidden;
}
.product::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(30, 64, 175, 0.18), transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(30, 64, 175, 0.1), transparent 50%);
  pointer-events: none;
}
.product .container { position: relative; }

.product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 1023px) {
  .product__layout { grid-template-columns: 1fr; }
}

.product__title {
  font-size: clamp(3rem, 4vw + 1rem, 5rem);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-3);
}
.product__tagline {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-hover);
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}
.product__lead { margin-bottom: var(--space-6); }

.product__features {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-bottom: var(--space-7);
}
.product__features li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding-block: var(--space-2);
  color: var(--text-on-dark-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.product__features li:last-child { border-bottom: 0; }
.product__features .icon {
  color: var(--accent-hover);
  margin-top: 4px;
}

.product__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Document mockup */
.product__visual {
  position: relative;
}
.doc-mockup {
  position: relative;
  background: var(--bg-light);
  color: var(--text-on-light);
  padding: var(--space-5) var(--space-6) var(--space-6);
  aspect-ratio: 5 / 7;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform var(--t-slow) var(--ease);
}
.doc-mockup:hover { transform: rotate(0deg); }
.doc-mockup__header {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}
.doc-mockup__dot {
  width: 8px; height: 8px;
  background: #D4D4D8;
  border-radius: 50%;
}
.doc-mockup__filename {
  margin-left: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-on-light-secondary);
  letter-spacing: 0;
}
.doc-mockup__body {
  display: flex; flex-direction: column; gap: 10px;
}
.doc-mockup__line {
  height: 6px;
  background: #E4E4E7;
  border-radius: 1px;
}
.doc-mockup__line--title { height: 12px; width: 70%; background: #71717A; margin-bottom: var(--space-3); }
.doc-mockup__line--90 { width: 90%; }
.doc-mockup__line--80 { width: 80%; }
.doc-mockup__line--70 { width: 70%; }
.doc-mockup__line--60 { width: 60%; }
.doc-mockup__line--50 { width: 50%; }

.doc-mockup__watermark {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(30, 64, 175, 0.7);
  line-height: 1.4;
  letter-spacing: 0;
}
.doc-mockup__watermark-meta {
  display: block;
  color: rgba(30, 64, 175, 0.5);
  font-size: 0.625rem;
}
.doc-mockup__qr {
  position: absolute;
  bottom: var(--space-5); right: var(--space-5);
  width: 56px; height: 56px;
  color: var(--text-on-light);
  opacity: 0.85;
}

/* Highlight marks (subtle pulsing rectangles) */
.doc-mockup__hl {
  position: absolute;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  pointer-events: none;
  animation: hlPulse 4s ease-in-out infinite;
}
.doc-mockup__hl--1 { top: 18%; left: 12%; width: 35%; height: 4%; animation-delay: 0s; }
.doc-mockup__hl--2 { top: 48%; left: 16%; width: 28%; height: 4%; animation-delay: 1.2s; }
.doc-mockup__hl--3 { top: 70%; left: 20%; width: 40%; height: 4%; animation-delay: 2.4s; }
@keyframes hlPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  20%, 60% { opacity: 1; transform: scale(1.02); }
}

.doc-mockup__caption {
  text-align: center;
  margin-top: var(--space-5);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* ──────────────────────────  TARIFFS  ────────────────────────── */

.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}
@media (max-width: 1023px) { .tariffs__grid { grid-template-columns: 1fr; } }

.tariff {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark-soft);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.tariff:hover {
  border-color: var(--border-dark);
}
.tariff--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), var(--bg-elevated) 30%);
  transform: scale(1.02);
}
.tariff__badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 2px;
}
.tariff__head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-dark-soft);
}
.tariff__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tariff__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}
.tariff__price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: var(--space-5);
}
.tariff__price-from {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
}
.tariff__price-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tariff__price-unit {
  font-size: 0.9375rem;
  color: var(--text-on-dark-secondary);
}
.tariff__features {
  flex-grow: 1;
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: 0.9375rem;
  color: var(--text-on-dark-secondary);
}
.tariff__features li {
  padding-block: var(--space-2);
  padding-left: var(--space-5);
  position: relative;
  border-bottom: 1px solid var(--border-dark-soft);
}
.tariff__features li:last-child { border-bottom: 0; }
.tariff__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 12px; height: 1.5px;
  background: var(--accent-hover);
}

.tariffs__note {
  margin-top: var(--space-6);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}

/* ──────────────────────────  CASES  ────────────────────────── */

.cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.cases__small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1023px) {
  .cases__small { grid-template-columns: 1fr; }
}

.case {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.case:hover {
  border-color: var(--text-on-light-secondary);
  transform: translateY(-2px);
}
.case__meta {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.case__title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--text-on-light);
}
.case--featured .case__title { font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem); }
.case__lead {
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
  flex-grow: 1;
}
.case--featured .case__lead { font-size: 1.0625rem; max-width: 80%; }
.case__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-light-muted);
  margin-left: auto;
}

.case__numbers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  padding-block: var(--space-5);
  margin-bottom: var(--space-5);
  border-block: 1px solid var(--border-light);
}
.case__num-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-on-light);
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}
.case__num-label {
  font-size: 0.75rem;
  color: var(--text-on-light-secondary);
  line-height: 1.4;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-light-secondary);
  background: var(--bg-light-soft);
  border-radius: 2px;
}
.tag--leak    { color: var(--tag-leak);    background: rgba(30, 64, 175, 0.08); }
.tag--ransom  { color: var(--tag-ransom);  background: rgba(220, 38, 38, 0.08); }
.tag--insider { color: var(--tag-insider); background: rgba(180, 83, 9, 0.08); }
.tag--fraud   { color: var(--tag-fraud);   background: rgba(124, 58, 237, 0.08); }

.cases__footer {
  margin-top: var(--space-7);
  text-align: center;
}

/* ──────────────────────────  ANALYTICS  ────────────────────────── */

.analytics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.analytics__grid .article-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.analytics__grid .article-card--featured .article-card__cover {
  height: 100%;
  min-height: 280px;
}
/* Планшет: 4 карточки в сетке 2×2, featured теряет горизонтальный layout
   (выглядит как обычная вертикальная карточка, чтобы все четыре были равны). */
@media (max-width: 1023px) and (min-width: 641px) {
  .analytics__grid { grid-template-columns: repeat(2, 1fr); }
  .analytics__grid .article-card--featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .analytics__grid .article-card--featured .article-card__cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .analytics__grid .article-card--featured h3 { font-size: 1.375rem; }
}
@media (max-width: 640px) {
  .analytics__grid { grid-template-columns: 1fr; }
  .analytics__grid .article-card--featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  .analytics__grid .article-card--featured .article-card__cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

.article-card {
  display: flex; flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark-soft);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  overflow: hidden;
}
.article-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
}
.article-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-navy);
  overflow: hidden;
}
.article-card__cover svg { width: 100%; height: 100%; }
.article-card__body {
  padding: var(--space-5);
  flex-grow: 1;
  display: flex; flex-direction: column;
}
.article-card__meta {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-3);
}
.article-card__meta .tag {
  color: var(--text-on-dark-secondary);
  background: rgba(255, 255, 255, 0.04);
}
.article-card__body h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: var(--text-on-dark);
}
.article-card--featured h3 { font-size: 1.75rem; }
.article-card__body p {
  font-size: 0.9375rem;
  flex-grow: 1;
}

.analytics__footer {
  margin-top: var(--space-7);
  text-align: center;
}

/* ──────────────────────────  TEAM  ────────────────────────── */

.team__grid { max-width: 800px; }
.member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark-soft);
}
@media (max-width: 640px) {
  .member { grid-template-columns: 1fr; }
  .member__photo { max-width: 200px; }
}
.member__photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  background: #15171C;
  overflow: hidden;
}
.member__photo svg { width: 100%; height: 100%; filter: saturate(0); }
.member__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.member__role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-hover);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.member__bio {
  margin-bottom: var(--space-5);
}
.member__tags {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.member__tags .tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-on-dark-secondary);
}

/* ──────────────────────────  LICENSES  ────────────────────────── */

.licenses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1023px) { .licenses__grid { grid-template-columns: 1fr; } }
.license {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--border-light);
}
.license__status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  margin-bottom: var(--space-4);
  border-radius: 2px;
}
.license__status--pending {
  color: var(--text-on-light-secondary);
  background: var(--bg-light-soft);
}
.license__status--active {
  color: var(--success);
  background: rgba(21, 128, 61, 0.08);
}
.license__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  color: var(--text-on-light);
}
.license__desc {
  font-size: 0.875rem;
  color: var(--text-on-light-secondary);
}

/* ──────────────────────────  INCIDENT  ────────────────────────── */

.incident { background: var(--bg-base); }
.incident__card {
  background: var(--bg-navy);
  border: 1px solid var(--border-dark);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.incident__card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60%; height: 60%;
  background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.08), transparent 60%);
  pointer-events: none;
}
.incident__head {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.incident__icon {
  width: 32px; height: 32px;
  color: var(--emergency-hover);
}
.incident__title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  max-width: 22ch;
  position: relative;
}
.incident__lead {
  font-size: 1.125rem;
  max-width: 56ch;
  margin-bottom: var(--space-7);
  position: relative;
}

.incident__channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  position: relative;
}
@media (max-width: 640px) { .incident__channels { grid-template-columns: 1fr; } }
.incident__channel {
  display: block;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.incident__channel:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-on-dark-muted);
}
.incident__channel-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-2);
}
.incident__channel-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.incident__cta {
  position: relative;
  padding-top: var(--space-5);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
}
.incident__cta-note {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  max-width: 56ch;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
}
.field__hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.6875rem;
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--text-on-dark);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
}
.field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}
.field select {
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A0A4AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { background: var(--bg-elevated); color: var(--text-on-dark); }
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--text-on-dark-muted);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-hover);
  background: rgba(255, 255, 255, 0.05);
  outline: 0;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--text-on-dark-muted);
}


/* ──────────────────────────  CONTACT  ────────────────────────── */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 640px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__block {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--border-light);
  transition: border-color var(--t-base) var(--ease);
}
.contact__block:hover { border-color: var(--text-on-light-secondary); }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-2);
}
.contact__value {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  transition: color var(--t-fast) var(--ease);
}
.contact__value:hover { color: var(--accent); }

/* ──────────────────────────  FOOTER  ────────────────────────── */

.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-dark-soft);
  padding-block: var(--space-9) var(--space-6);
  margin-top: var(--space-7);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}
@media (max-width: 1023px) {
  .footer__top { grid-template-columns: 1fr; }
}
.footer__brand .logo { margin-bottom: var(--space-4); }
.footer__tagline {
  font-size: 0.9375rem;
  max-width: 32ch;
  color: var(--text-on-dark-secondary);
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 640px) { .footer__nav { grid-template-columns: repeat(2, 1fr); } }

.footer__col { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-3);
}
.footer__col a {
  font-size: 0.9375rem;
  color: var(--text-on-dark-secondary);
  transition: color var(--t-fast) var(--ease);
}
.footer__col a:hover { color: var(--text-on-dark); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-dark-soft);
  flex-wrap: wrap;
}
.footer__legal {
  display: flex; gap: var(--space-5); flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}
.footer__legal a:hover { color: var(--text-on-dark-secondary); }
.footer__mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0;
}

/* ──────────────────────────  REVEAL ANIMATIONS  ────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .doc-mockup__hl { animation: none; opacity: 0.6; }
}

/* ───────────────────────────  MODAL  ─────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.modal:not([hidden]) {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  overflow-y: auto;
}
.modal.is-open { opacity: 1; }

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.78);
  cursor: pointer;
  z-index: 0;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .modal__backdrop {
    background: rgba(8, 8, 10, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
  }
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 44px);
  transform: translateY(8px);
  transition: transform var(--t-base) var(--ease-out);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}
.modal.is-open .modal__dialog { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-secondary);
  border-radius: 2px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  z-index: 2;
  cursor: pointer;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
}
.modal__close svg { width: 18px; height: 18px; }

.modal__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  padding: 6px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}
.modal__eyebrow--incident {
  color: var(--emergency-hover);
  background: rgba(220, 38, 38, 0.08);
}
.modal__eyebrow--consultation {
  color: var(--accent-hover);
  background: rgba(30, 64, 175, 0.12);
}
.modal__eyebrow svg { width: 14px; height: 14px; }

.modal__title {
  font-size: clamp(1.375rem, 1.5vw + 0.5rem, 1.625rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-3);
  padding-right: 32px;
  color: var(--text-on-dark);
}
.modal__lead {
  font-size: 0.9375rem;
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.55;
}
.modal__context {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: var(--space-5);
}

[data-modal-form] {
  display: flex; flex-direction: column; gap: var(--space-4);
}
[data-modal-form] .field {
  width: 100%;
}

.modal__form-footer {
  display: flex; flex-direction: column; gap: var(--space-4);
  margin-top: var(--space-2);
}
.modal__form-footer .btn {
  align-self: flex-start;
}
@media (max-width: 480px) {
  .modal__form-footer .btn { align-self: stretch; }
}
.modal__form-note {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
}

.modal__success {
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
}
.modal__success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.modal__success-icon svg { width: 24px; height: 24px; }
.modal__success-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.modal__success-text {
  color: var(--text-on-dark-secondary);
  max-width: 40ch;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.55;
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .modal__dialog { padding: 24px 20px 28px; }
  .modal__close { top: 6px; right: 6px; }
  .modal__title { font-size: 1.25rem; padding-right: 28px; }
  .modal__lead { font-size: 0.875rem; }
}

/* ───────────────────────────  BLOG (listing + article)  ─────────────────────────── */

.blog {
  background: var(--bg-light);
  color: var(--text-on-light);
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: var(--space-9);
  min-height: 80vh;
}
.blog p { color: var(--text-on-light-secondary); }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-7);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-on-light-muted);
  transition: color var(--t-fast) var(--ease);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-on-light-muted); }

.blog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.blog__grid--articles {
  grid-template-columns: repeat(3, 1fr);
}
/* Планшет: 2 колонки и для статей, и для кейсов. */
@media (max-width: 1023px) and (min-width: 641px) {
  .blog__grid--articles { grid-template-columns: repeat(2, 1fr); }
}
/* Мобайл: одна колонка. */
@media (max-width: 640px) {
  .blog__grid, .blog__grid--articles { grid-template-columns: 1fr; }
}

.blog-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  color: var(--text-on-light);
  overflow: hidden;
}
.blog-card:hover {
  border-color: var(--text-on-light-secondary);
  transform: translateY(-2px);
}
.blog-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-navy);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.blog-card__cover svg {
  width: 100%; height: 100%; display: block;
}
.blog-card__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.blog-card__meta {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-light-muted);
  margin-left: auto;
}
.blog-card__title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--text-on-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__lead {
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__pagination {
  margin-top: var(--space-7);
  display: flex; align-items: center; justify-content: center; gap: var(--space-5);
}
.blog-page {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-on-light);
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.blog-page:hover {
  border-color: var(--text-on-light-secondary);
  background: #fff;
}
.blog-page--disabled {
  color: var(--text-on-light-muted);
  cursor: default;
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid transparent;
}
.blog-page__indicator {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-on-light-muted);
}

.blog__empty {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: var(--space-8);
  text-align: center;
}

/* Article (detail) ─── */

.blog-article__head {
  max-width: 720px;
  margin-bottom: var(--space-7);
}
.blog-article__meta {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.blog-article__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-light-muted);
  margin-left: auto;
}
.blog-article__title {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-on-light);
  margin-bottom: var(--space-5);
}
.blog-article__lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-on-light-secondary);
}

.case__numbers--article {
  margin-top: var(--space-6);
  border-color: var(--border-light);
}

.blog-article__foot {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

/* Prose — markdown-рендеренный контент */
.prose {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-on-light);
}
.prose > * + * { margin-top: var(--space-4); }
.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--space-7) !important;
  margin-bottom: var(--space-3) !important;
  color: var(--text-on-light);
}
.prose h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--space-6) !important;
  margin-bottom: var(--space-2) !important;
  color: var(--text-on-light);
}
.prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-5) !important;
}
.prose p { color: var(--text-on-light); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-light-soft);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--border-light);
}
.prose pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  color: var(--text-on-dark);
  padding: var(--space-4);
  border-radius: 2px;
  overflow-x: auto;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-4);
  color: var(--text-on-light-secondary);
  font-style: italic;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: var(--space-6) 0;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
.prose th, .prose td {
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  text-align: left;
}
.prose th {
  background: var(--bg-light-soft);
  font-weight: 600;
}

@media (max-width: 640px) {
  .blog { padding-top: calc(var(--header-h) + 32px); }
  .blog-card { padding: var(--space-5); }
  .blog-card__title { font-size: 1.25rem; }
  .blog-article__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.375rem; }
  .prose h3 { font-size: 1.125rem; }
}

/* ───────────────────────────  MOBILE IMPROVEMENTS  ─────────────────────────── */

/* Hover effects — только на устройствах с реальным курсором */
@media (hover: none) {
  .service-card:hover,
  .tariff:hover,
  .case:hover,
  .article-card:hover,
  .contact__block:hover,
  .incident__channel:hover {
    transform: none;
    border-color: var(--border-dark-soft);
  }
  .section--light .case:hover,
  .section--light .contact__block:hover {
    border-color: var(--border-light);
  }
  .logo:hover { opacity: 1; }
  .doc-mockup:hover { transform: rotate(-1.5deg); }
}

/* Min touch targets */
@media (max-width: 1023px) {
  .btn { min-height: 48px; }
  .nav a, .nav-mobile a, .footer__col a {
    padding-block: 4px;
  }
}

/* Compact section padding on phones */
@media (max-width: 640px) {
  main > section { padding-block: 56px; }
  main > section:first-child { padding-top: calc(var(--header-h) + 32px); }

  .section-head { margin-bottom: 40px; }
  .section-head__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .section-head__lead { font-size: 1rem; }

  .hero { min-height: 0; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.75rem); margin-bottom: var(--space-5); }
  .hero__sub { font-size: 1rem; margin-bottom: var(--space-6); }
  .hero__actions { gap: var(--space-2); }
  .hero__actions .btn { width: 100%; }
  .hero__marquee { margin-bottom: var(--space-6); }
  .hero__stats { padding-top: var(--space-5); }
  .stat__value { font-size: 1.75rem; }
  .stat__label { font-size: 0.8125rem; }

  /* Header — компактный логотип, бургер ближе к краю */
  .site-header { height: 64px; }
  .site-header.is-scrolled { height: 56px; }
  main > section:first-child { padding-top: calc(64px + 24px); }
  .logo__mark { width: 28px; height: 28px; }
  .site-header.is-scrolled .logo__mark { width: 26px; height: 26px; }
  .logo__name {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }
  .nav-mobile { inset: 64px 0 0 0; }

  /* Service / tariff / case carousels — adjust paddings */
  .service-card, .tariff, .case, .incident__card {
    padding: var(--space-5);
  }
  .case--featured .case__title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .case__numbers { grid-template-columns: 1fr; gap: var(--space-3); padding-block: var(--space-4); }
  .case__num-value { font-size: 1.5rem; }

  /* Product */
  .product__title { font-size: clamp(2rem, 8vw, 3rem); }
  .doc-mockup { max-width: 100%; transform: rotate(-1deg); }

  /* Tariffs — убрать масштабирование featured на мобиле, не лезет */
  .tariff--featured { transform: none; }
  .tariff__price-value { font-size: 1.75rem; }

  /* Article cards — упростить featured layout */
  .analytics__grid .article-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .analytics__grid .article-card--featured .article-card__cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .article-card--featured h3 { font-size: 1.375rem; }

  /* Incident */
  .incident__card { padding: var(--space-5); }
  .incident__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .incident__lead { font-size: 1rem; margin-bottom: var(--space-5); }
  .incident__channel { padding: var(--space-4); }
  .incident__channel-value { font-size: 1.125rem; }

  /* Footer */
  .footer__top { gap: var(--space-6); margin-bottom: var(--space-6); }
  .site-footer { padding-block: var(--space-7) var(--space-5); }

  /* Eyebrow тексты на мобилке режутся — перенос */
  .eyebrow__label { font-size: 0.6875rem; }
}

@media (max-width: 380px) {
  .logo__name { display: none; }
  .container { padding-inline: 16px; }
  .hero__title { font-size: 1.875rem; }
  .product__title { font-size: 2rem; }
}

/* Marquee — медленнее на тонких экранах для читаемости */
@media (max-width: 640px) {
  .marquee__track { animation-duration: 40s; }
}
