/* ==========================================================================
   Poznanie: extensions (express badge, system requirements strip)
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
  color-scheme: light;
  --primary: #1f6feb;
  --primary-dark: #1450a8;
  --primary-light: #e8f1fe;
  --accent: #38bdf8;
  --sky: #f0f7ff;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --card: #ffffff;
  --text: #16243a;
  --text-muted: #5b6b84;
  --border: #e2e9f2;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(31, 111, 235, 0.08);
  --shadow-lg: 0 24px 70px rgba(20, 80, 168, 0.14);
  --maxw: 1200px;
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #6aa6ff;
  --primary-dark: #8dbdff;
  --primary-light: rgba(106, 166, 255, 0.16);
  --accent: #38bdf8;
  --sky: #0e1830;
  --bg: #0a1120;
  --bg-alt: #0d1728;
  --card: #111b31;
  --text: #e7eef9;
  --text-muted: #98a8c2;
  --border: #202e4a;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 15px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
section { position: relative; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; color: var(--text); }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 860px; margin: 0 auto 52px; text-align: center; }
.section-head .section-tag { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-tag-light {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4c93f0);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31,111,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31,111,235,0.4);
}
.btn-ghost {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(31,111,235,0.12);
}
.btn-ghost:hover { background: var(--primary-light); transform: translateY(-2px); }
.hero .btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-small { padding: 9px 18px; font-size: 0.88rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: #fff;
  box-shadow: 0 6px 30px rgba(20,80,168,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 34px; width: auto; display: block; }
.logo-img--white { filter: brightness(0) invert(1); }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--text); }
.logo-text small { font-size: 0.72rem; color: var(--text-muted); }

.main-nav ul { display: flex; gap: 18px; }
.main-nav ul a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav ul a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.main-nav ul a:hover { color: var(--primary); }
.main-nav ul a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.back-btn:hover { border-color: var(--primary); background: var(--primary-light); transform: translateX(-2px); }
.back-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hub-back--menu { margin-top: 12px; align-self: flex-start; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone svg { color: var(--primary); }
.nav-cta-mobile { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: 0.3s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: 74px;
  padding-bottom: 44px;
  min-height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #001a1a 0%, #002323 55%, #003030 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(110,255,255,0.14), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(0,110,110,0.28), transparent 50%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.18"><path fill="none" stroke="%236effff" stroke-width="0.4" d="M0 50h100M50 0v100"/><circle cx="50" cy="50" r="3" fill="%236effff"/></svg>');
  background-size: 80px 80px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,0.25), transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,0.25), transparent 70%);
}
.hero-flow {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}
.hero-flow.no-vanta {
  background-image: url('../img/bg-placeholder.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Настройки фона (кнопка в углу) ---------- */
.vanta-settings {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}
.vanta-settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f6feb;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,111,235,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31,111,235,0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.vanta-settings-toggle:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31,111,235,0.25); }
.vanta-settings-toggle svg { color: #1f6feb; }
.vanta-settings-panel {
  width: 232px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(22,36,58,0.16);
  padding: 14px 16px;
  animation: vantaPanelIn 0.18s ease;
}
@keyframes vantaPanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.vanta-settings-head {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.vanta-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.vanta-settings-row:last-child { margin-bottom: 0; }
.vanta-settings-row input[type="color"] {
  width: 42px; height: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  background: none;
  cursor: pointer;
}
.vanta-settings-row input[type="range"] {
  width: 92px;
  accent-color: #1f6feb;
}
.vanta-settings-row input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: #1f6feb;
  cursor: pointer;
}
.vanta-settings-select {
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--card);
  cursor: pointer;
  max-width: 120px;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: stretch;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 74px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 9px 18px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.22);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Статы hero (на всю ширину) ---------- */
.hero-stats {
  background: var(--bg);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 30px 0;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stats-in .hero-meta-item { opacity: 1; transform: none; }
.stats-in .hero-meta-item:nth-child(1) { transition-delay: 0s; }
.stats-in .hero-meta-item:nth-child(2) { transition-delay: 0.1s; }
.stats-in .hero-meta-item:nth-child(3) { transition-delay: 0.2s; }
.stats-in .hero-meta-item:nth-child(4) { transition-delay: 0.3s; }
.hero-meta-item:hover {
  transform: translateY(-4px);
  border-color: rgba(31,111,235,0.38);
  box-shadow: 0 14px 34px rgba(22,36,58,0.12);
  transition-delay: 0s;
}
.hero-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31,111,235,0.12), rgba(56,189,248,0.12));
  border: 1px solid rgba(31,111,235,0.25);
  color: var(--primary);
  margin-bottom: 4px;
}
.hero-meta-icon svg { width: 23px; height: 23px; }
.hero-meta-item strong {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-meta-item span:not(.hero-meta-icon) { font-size: 0.86rem; color: var(--text-muted); line-height: 1.4; }

.hero-visual { position: relative; height: 100%; }
.hero-img-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-cloud {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20,80,168,0.32), transparent 45%);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(20,80,168,0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.hero-arrow svg { width: 22px; height: 22px; }
.hero-img-wrap:hover .hero-arrow { opacity: 1; visibility: visible; }
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero-dots {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.hero-dots button.active { background: #fff; width: 24px; border-radius: 999px; }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }
.hero-wave path { fill: var(--bg); }

/* ==========================================================================
   ПРОГРАММА
   ========================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.program-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.program-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.program-icon svg { width: 26px; height: 26px; }
.program-card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; }
.program-card p { font-size: 0.92rem; color: var(--text-muted); }

/* ==========================================================================
   НАПРАВЛЕНИЯ
   ========================================================================== */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.direction-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.direction-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--c, var(--primary));
}
.direction-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.direction-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--c, var(--primary));
  margin-bottom: 18px;
}
.direction-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.direction-card p { font-size: 0.9rem; color: var(--text-muted); }

.directions-cta {
  margin-top: 40px;
  background: var(--sky);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.directions-cta p { font-size: 1.05rem; font-weight: 600; color: var(--text); max-width: 620px; }

/* ==========================================================================
   ФЛАГМАН
   ========================================================================== */
.flagship {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 45%, #e8f1fe 100%);
}
.flagship-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 54px;
  align-items: stretch;
}
.flagship-visual { position: relative; display: flex; }
.flagship-stamp {
  position: absolute;
  top: 16px; right: 16px;
  max-width: calc(100% - 32px);
  text-align: center;
  line-height: 1.35;
  background: linear-gradient(135deg, var(--primary), #4c93f0);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(31,111,235,0.35);
}
.flagship-img {
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.flagship-img:hover { transform: translateY(-4px); }
.flagship-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flagship-content { display: flex; flex-direction: column; justify-content: center; }
.flagship-content .section-tag { margin-bottom: 16px; }
.flagship-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  min-height: 2.44em;
}
.flagship-content h2.h2-compact {
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  min-height: 2.9em;
}
.flagship-content > p { color: var(--text-muted); margin-bottom: 22px; font-size: 1.02rem; }
.flagship-list { margin-bottom: 30px; display: flex; flex-direction: column; gap: 11px; }
.flagship-list li {
  padding-left: 32px;
  position: relative;
  font-size: 0.98rem;
}
.flagship-list li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 7px;
  background: var(--primary-light);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231f6feb" stroke-width="3"><path d="M5 13l4 4 10-10"/></svg>');
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Карусель АгроПро VR --- */
.flagship-carousel { position: relative; }
.flagship-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.25, 0.8, 0.35, 1), visibility 0s linear 0.55s;
}
.flagship-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.55s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.flagship-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}
.flagship-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.flagship-arrow:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }
.flagship-arrow svg { width: 20px; height: 20px; }
.flagship-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flagship-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.flagship-dots button.active { background: var(--primary); width: 26px; border-radius: 999px; }
.flagship-arrow:focus-visible,
.flagship-dots button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hero-badge:hover { background: rgba(255,255,255,0.24); }

/* ==========================================================================
   ПРОДУКЦИЯ / ТАБЫ
   ========================================================================== */
.products-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 42px;
}
.ptab {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.ptab:hover { border-color: var(--primary); color: var(--primary); }
.ptab.active {
  background: linear-gradient(135deg, var(--primary), #4c93f0);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(31,111,235,0.3);
}

.products-panels { position: relative; }
.ppanel { display: none; animation: fadeIn 0.4s ease; }
.ppanel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.product-body .btn { position: relative; z-index: 3; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card.product-wide { grid-column: 1 / -1; flex-direction: row; }
.product-card.product-wide .product-img { flex: 0 0 46%; }
.product-card.product-wide .product-body { padding: 30px 34px; justify-content: center; }
.product-img { aspect-ratio: 16/9; overflow: hidden; background: var(--sky); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 11px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 13px;
}
.product-body h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.product-body p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.product-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.product-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text);
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}
.price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--primary);
}

.products-note {
  margin-top: 38px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.products-note p { font-size: 1.02rem; margin-bottom: 18px; color: var(--text); font-weight: 600; }
.products-note-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   ПРЕИМУЩЕСТВА
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.advantage-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.advantage-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.adv-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--sky));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.adv-icon svg { width: 26px; height: 26px; }
.advantage-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 9px; }
.advantage-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ==========================================================================
   РЕЕСТРЫ
   ========================================================================== */
.section-blue {
  background: linear-gradient(135deg, var(--primary), #2c7fe0 60%, #38bdf8);
  color: #fff;
  overflow: hidden;
}
.registry-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 46px;
  align-items: center;
}
.registry-content h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.registry-content p { color: rgba(255,255,255,0.9); font-size: 1.02rem; }
.registry-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.registry-badge {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.registry-badge:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.registry-badge svg { width: 24px; height: 24px; margin-bottom: 4px; }
.registry-badge strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; }
.registry-badge span { font-size: 0.82rem; color: rgba(255,255,255,0.85); line-height: 1.4; }

/* ==========================================================================
   ГАЛЕРЕЯ КЕЙСОВ
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.gallery-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  min-height: 340px;
  display: flex;
}
.gallery-video iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: none;
  display: block;
  flex: 1;
}
.gallery-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  background: var(--card);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: rgba(6, 12, 22, 0);
  transition: background 0.25s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  background: rgba(255,255,255,0.9) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231f6feb" stroke-width="2.4" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3M11 8v6M8 11h6"/></svg>') center / 17px no-repeat;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::before { background: rgba(6, 12, 22, 0.3); }
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Лайтбокс */
.gallery-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1080px, 94vw);
  width: auto;
  margin: auto;
  overflow: visible;
}
.gallery-lightbox::backdrop {
  background: rgba(4, 8, 16, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.gallery-lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 14px 6px 0;
  font-size: 0.95rem;
}
.gallery-lightbox-close {
  position: absolute;
  top: -48px; right: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }
.gallery-lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Лайтбокс видеообзора */
.video-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  width: min(960px, 94vw);
  margin: auto;
  overflow: visible;
}
.video-lightbox::backdrop {
  background: rgba(4, 8, 16, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.video-lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.video-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   ЭТАПЫ
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(31,111,235,0.3);
}
.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.86rem; color: var(--text-muted); }

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */
.section-foot { background: var(--bg-alt); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.02rem; }
.contact-contacts { display: flex; flex-direction: column; gap: 14px; }
.contact-contacts a {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-contacts a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.contact-contacts svg { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; }
.contact-contacts span { display: flex; flex-direction: column; }
.contact-contacts small { font-size: 0.78rem; color: var(--text-muted); }
.contact-contacts strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 34px 30px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(31,111,235,0.1);
}
.form-consent { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; text-align: center; line-height: 1.5; }
.form-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 6px;
}
.form-success {
  margin-top: 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 11px;
  padding: 14px;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0e1a33; color: #c7d2e4; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr 1.3fr;
  gap: 36px;
  padding: 56px 0 40px;
}
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small { color: #93a7c4; }
.footer-brand p { font-size: 0.9rem; margin-top: 18px; color: #93a7c4; max-width: 340px; line-height: 1.6; }
.footer-nav h4, .footer-contacts h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul a { color: #c7d2e4; font-size: 0.92rem; transition: color 0.2s; }
.footer-nav ul a:hover { color: var(--accent); }
.footer-social { margin-top: 22px; }
.footer-social-title { display: block; font-size: 0.78rem; color: #93a7c4; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-social-list { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-list a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #16233f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #c7d2e4;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social-list a:hover { background: #1f3161; color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.footer-social-list svg { width: 18px; height: 18px; fill: currentColor; }
.footer-contacts p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 12px; color: #93a7c4; }
.footer-contacts a { color: #c7d2e4; font-size: 0.95rem; transition: color 0.2s; }
.footer-contacts a:hover { color: var(--accent); }
.footer-contacts-title { font-size: 0.85rem !important; margin: 14px 0 4px !important; }
.footer-contacts-title:first-of-type { margin-top: 0 !important; }
.footer-contacts-phone { display: inline-block; font-size: 1.05rem; font-weight: 600; color: #fff !important; margin-bottom: 2px; }
.footer-contacts-mail { display: inline-block; margin-top: 8px; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 18px 0;
}
.footer-bottom p { font-size: 0.82rem; color: #7892b3; }
.footer-copy { font-weight: 700; color: #c7d2e4 !important; margin: 0; white-space: nowrap; }
.footer-bottom-legal { flex: 1 1 320px; max-width: 620px; }
.footer-bottom-legal p { line-height: 1.55; margin: 0 auto 7px; }
.footer-bottom-legal a { color: var(--accent); }
.footer-bottom-legal a:hover { text-decoration: underline; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: #c7d2e4;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 9px 18px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ + ТЁМНАЯ ТЕМА
   ========================================================================== */
.theme-toggle {
  position: fixed;
  right: 18px; bottom: 64px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,111,235,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31,111,235,0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.theme-toggle:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31,111,235,0.25); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: block; color: var(--primary); }
.theme-toggle .icon-sun { display: none; color: #f59e0b; }
html[data-theme="dark"] .theme-toggle {
  background: rgba(17,27,49,0.88);
  color: #8dbdff;
  border-color: rgba(106,166,255,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
html[data-theme="dark"] .theme-toggle:hover { background: #16233f; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.theme-toggle:focus-visible,
.vanta-settings-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Переопределения для тёмной темы --- */
html[data-theme="dark"] .site-header { background: rgba(10,17,32,0.92); }
html[data-theme="dark"] .site-header.scrolled { background: #0c1526; box-shadow: 0 6px 30px rgba(0,0,0,0.45); }
html[data-theme="dark"] .logo-img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .flagship {
  background: linear-gradient(135deg, #0b1426 0%, #0e1d36 45%, #112442 100%);
}
html[data-theme="dark"] .form-success {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.45);
  color: #6ee7b7;
}
html[data-theme="dark"] .form-error { color: #fca5a5; }
html[data-theme="dark"] .btn-outline { background: transparent; }
html[data-theme="dark"] .vanta-settings-toggle {
  background: rgba(17,27,49,0.88);
  color: #8dbdff;
  border-color: rgba(106,166,255,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
html[data-theme="dark"] .vanta-settings-toggle:hover { background: #16233f; }
html[data-theme="dark"] .vanta-settings-panel {
  background: rgba(17,27,49,0.97);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1080px) {
  .program-grid, .directions-grid, .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .registry-inner { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .header-actions .btn-shrink { display: none; }
  .main-nav ul { gap: 14px; }
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-video, .gallery-video iframe { min-height: 220px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
  .hero-visual { order: -1; max-width: 560px; height: auto; }
  .hero-img-wrap { height: auto; aspect-ratio: 4/3; }
  .flagship-inner { grid-template-columns: 1fr; }
  .flagship-visual { max-width: 600px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .burger { display: flex; }
  .main-nav {
    position: fixed;
    top: 74px; right: 0; bottom: 0;
    width: min(340px, 85vw);
    background: var(--card);
    box-shadow: -10px 0 40px rgba(20,80,168,0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
    padding: 30px 28px;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .nav-cta-mobile { display: block; margin-top: 30px; }
  .header-phone span { display: none; }
  .header-actions .btn-shrink { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .program-grid, .directions-grid, .advantages-grid, .products-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .registry-badges { grid-template-columns: 1fr; }
.hero-meta { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 24px 0; }
  .hero-meta-item { padding: 18px 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .product-card.product-wide { flex-direction: column; }
  .product-card.product-wide .product-img { flex: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .directions-cta { flex-direction: column; text-align: center; }
}

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

/* ---------- Защита от горизонтального смещения на узких экранах ---------- */
.hero-inner > *,
.flagship-inner > *,
.contact-wrap > *,
.registry-inner > *,
.footer-inner > *,
.products-grid > *,
.program-grid > *,
.directions-grid > *,
.advantages-grid > *,
.steps > * {
  min-width: 0;
}
.vanta-settings-panel { max-width: calc(100vw - 36px); }

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 10px; }
  .hero-inner { padding-top: 36px; padding-bottom: 48px; gap: 32px; }
  .contact-form { padding: 26px 18px; }
  .products-note { padding: 22px 18px; }
  .directions-cta { padding: 24px 18px; }
  .vanta-settings { left: 12px; bottom: 12px; }
  .vanta-settings-toggle { padding: 7px 11px; }
  .theme-toggle { right: 12px; bottom: 52px; padding: 7px 11px; }
}

/* ==========================================================================
   Poznanie: расширения (бейдж экспресс-поставки, системные требования)
   ========================================================================== */

/* Бейдж «Экспресс-поставка» на карточке продукта */
.product-card {
  position: relative;
}
.product-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #e9973b, #e0b23b);
  color: #fff;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(233, 151, 59, .38);
  pointer-events: none;
}

/* Блок минимальных системных требований */
.spec-strip {
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface, #fff);
}
.spec-strip-head {
  padding: 14px 22px;
  background: var(--primary, #2f7cd6);
  color: #fff;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.spec-strip-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.spec-col {
  padding: 20px 22px;
  border-left: 1px solid var(--border);
}
.spec-col:first-child {
  border-left: none;
}
.spec-col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #2f7cd6);
}
.spec-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec-col li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted, #5b6b7f);
}
.spec-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #2f7cd6);
  opacity: .55;
}

@media (max-width: 1080px) {
  .spec-strip-body { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .spec-strip-body { grid-template-columns: 1fr; }
  .spec-col { border-left: none; border-top: 1px solid var(--border); }
  .spec-col:first-child { border-top: none; }
}

/* ==========================================================================
   Poznanie v2: spec icons, media block, footer painting, flagship glimpse
   ========================================================================== */

/* --- Иконки в блоке системных требований --- */
.spec-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
}
.spec-icon svg { width: 24px; height: 24px; }
.spec-col h4 { margin-top: 2px; }

/* --- Медиа-блок: видео 16:9 + лента скриншотов --- */
.media-video {
  margin: 0 0 30px;
}
.media-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #060c16;
  box-shadow: var(--shadow-lg);
}
.media-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.media-video figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.media-shot {
  position: relative;
  flex: 0 0 auto;
  width: min(560px, 78vw);
  border: none;
  padding: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.media-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.media-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.media-shot:hover img { transform: scale(1.05); }
.media-shot::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 42%;
  background: linear-gradient(to top, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0));
  pointer-events: none;
}
.media-shot-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.media-shot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.media-hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Футер: анимированные линии (painting.js, локальный скрипт) --- */
.site-footer {
  position: relative;
  overflow: hidden;
}
.footer-paint {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.footer-paint canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

/* --- Flagship: компактнее по высоте + проблеск на изображениях --- */
.flagship-inner { gap: 40px; }
.flagship-visual { align-items: center; }
.flagship-img {
  aspect-ratio: 16 / 9;
  align-self: center;
  position: relative;
  isolation: isolate;
}
.flagship-img img {
  height: 100%;
  max-height: 340px;
}
.flagship-img::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  z-index: 2;
  width: 45%;
  height: 160%;
  transform: translateX(-160%) skewX(-22deg);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 42%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.14) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: flagship-glimpse 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flagship-glimpse {
  0%   { transform: translateX(-160%) skewX(-22deg); }
  16%  { transform: translateX(340%) skewX(-22deg); }
  100% { transform: translateX(340%) skewX(-22deg); }
}
.flagship-slide:nth-child(2) .flagship-img::after { animation-delay: 1.3s; }
.flagship-slide:nth-child(3) .flagship-img::after { animation-delay: 2.6s; }
.flagship-slide:nth-child(4) .flagship-img::after { animation-delay: 3.9s; }
.flagship-slide:nth-child(5) .flagship-img::after { animation-delay: 5.2s; }
.flagship-content h2 { margin-bottom: 12px; }
.flagship-content > p { margin-bottom: 16px; font-size: 0.98rem; }
.flagship-list { gap: 8px; margin-bottom: 22px; }
.flagship-list li { font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) {
  .flagship-img::after { animation: none; display: none; }
  .footer-paint { display: none; }
}
@media (max-width: 992px) {
  .media-shot { width: min(480px, 84vw); }
}

/* ==========================================================================
   Poznanie v3: sand hero, elevator footer, media carousel, scroll reveal
   ========================================================================== */

/* --- Hero: синий фон с паттерном + песок --- */
.hero {
  background: linear-gradient(135deg, #071a38 0%, #0d2f6b 55%, #134a9e 100%);
}
.hero-bg {
  background-image:
    radial-gradient(circle at 85% 20%, rgba(96, 165, 250, 0.28), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(30, 64, 175, 0.45), transparent 55%);
}
.hero-overlay {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.55), transparent 75%);
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.55), transparent 75%);
}
.hero-visual { position: relative; z-index: 2; }

/* --- Футер: Space Elevator (codepen.io/Eslam-Yahya/pen/MvKZKj, CSS-адаптация без GSAP) --- */
.footer-paint { opacity: 0.9; }
.footer-paint svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.footer-paint .lines { opacity: 0.07; }
.footer-paint .line { fill: #9db8e8; }
.footer-paint .lights { opacity: 0.85; }
.footer-paint .light { fill: #4c93f0; }
@keyframes elevatorUp {
  from { transform: translateY(1080px); }
  to { transform: translateY(-1080px); }
}
@keyframes elevatorDown {
  from { transform: translateY(-1080px); }
  to { transform: translateY(1080px); }
}
.footer-paint .light1 { animation: elevatorUp 9s linear infinite; }
.footer-paint .light2 { animation: elevatorUp 12s linear infinite; }
.footer-paint .light3 { animation: elevatorUp 7s linear infinite; }
.footer-paint .light4 { animation: elevatorDown 11s linear infinite; }
.footer-paint .light5 { animation: elevatorDown 8s linear infinite; }
.footer-paint .light6 { animation: elevatorDown 14s linear infinite; }
.footer-paint .light7 { animation: elevatorDown 10s linear infinite; }
.footer-paint .light8 { animation: elevatorDown 13s linear infinite; }
.footer-paint .light9 { animation: elevatorUp 9.5s linear infinite; }
.footer-paint .light10 { animation: elevatorUp 16s linear infinite; }
.footer-paint .light11 { animation: elevatorDown 7.5s linear infinite; }
.footer-paint .light12 { animation: elevatorDown 12.5s linear infinite; }
.footer-paint .light13 { animation: elevatorDown 10.5s linear infinite; }
.footer-paint .light14 { animation: elevatorDown 8.5s linear infinite; }
.footer-paint .light15 { animation: elevatorDown 15s linear infinite; }
.footer-paint .light16 { animation: elevatorDown 11.5s linear infinite; }
.footer-paint .light17 { animation: elevatorUp 13.5s linear infinite; }

/* --- Медиа: видео-фасад --- */
.media-video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(9, 20, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 26px 14px 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.media-video-play svg {
  width: 46px;
  height: 46px;
  padding: 10px;
  box-sizing: content-box;
  background: var(--primary, #1f6feb);
  border-radius: 50%;
  flex-shrink: 0;
}
.media-video-play:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(9, 20, 40, 0.8);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

/* --- Медиа: карусель без полосы прокрутки --- */
.media-carousel { margin-top: 6px; }
.media-viewport {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.media-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.35, 1);
  will-change: transform;
}
.media-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}
.media-slide .media-shot {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: block;
}
.media-slide .media-shot img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}
.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.media-arrow:hover { transform: translateY(-50%) translateY(-2px); }
.media-arrow-prev { left: -14px; }
.media-arrow-next { right: -14px; }
.media-nav { display: flex; justify-content: center; margin-top: 20px; }
.media-dots { display: flex; gap: 8px; }
.media-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.media-dots button.active { background: var(--primary); width: 26px; border-radius: 999px; }
.media-dots button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 920px) {
  .media-arrow-prev { left: 6px; }
  .media-arrow-next { right: 6px; }
  .media-arrow { background: rgba(255, 255, 255, 0.92); }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .footer-paint .light { animation: none !important; }
  .flagship-img::after { animation: none !important; }
}

/* ==========================================================================
   Poznanie v4: hero in section-blue palette, platforms, swiper coverflow
   ========================================================================== */

/* --- Hero: синие градиенты как в блоке «Импортозамещение и госзакупки» --- */

/* --- Варианты платформ --- */
.platforms-grid {
  display: grid;
  gap: 28px;
}
.platform-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.platform-visual {
  position: relative;
  min-height: 260px;
}
.platform-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 20, 40, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.platform-badge svg {
  width: 15px;
  height: 15px;
  color: #7ee2a8;
}
.platform-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
}
.platform-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.platform-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
}
.platform-icon svg { width: 25px; height: 25px; }
.platform-title h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
}
.platform-body > p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 16px;
}
.platform-specs {
  list-style: none;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--surface, rgba(31, 111, 235, 0.05));
  border: 1px dashed var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-specs li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}
.platform-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.platform-specs strong { font-weight: 700; }
.platform-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .platform-card { grid-template-columns: 1fr; }
  .platform-visual { min-height: 220px; }
}

/* --- Медиа: Swiper coverflow --- */
.media-carousel { margin-top: 6px; }
.media-swiper {
  overflow: visible;
  padding: 10px 0 26px;
}
.media-swiper .swiper-wrapper {
  align-items: center;
}
.media-slide {
  width: auto;
  height: auto;
}
.media-slide .media-shot {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  padding: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.media-slide .media-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.media-slide .media-shot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(to top, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0));
  pointer-events: none;
}
.media-shot-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.media-slide .media-shot:hover {
  box-shadow: var(--shadow-lg);
}
.media-slide .media-shot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* Рамки-уголки в стиле референса */
.media-slide .media-shot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background:
    linear-gradient(var(--primary), var(--primary)) top left / 34px 2px,
    linear-gradient(var(--primary), var(--primary)) top left / 2px 34px,
    linear-gradient(var(--primary), var(--primary)) top right / 34px 2px,
    linear-gradient(var(--primary), var(--primary)) top right / 2px 34px,
    linear-gradient(var(--primary), var(--primary)) bottom left / 34px 2px,
    linear-gradient(var(--primary), var(--primary)) bottom left / 2px 34px,
    linear-gradient(var(--primary), var(--primary)) bottom right / 34px 2px,
    linear-gradient(var(--primary), var(--primary)) bottom right / 2px 34px;
  background-repeat: no-repeat;
}
.media-slide .media-shot:hover::before { opacity: 0.9; }
/* Тени слайдов coverflow */
.media-swiper .swiper-slide-shadow-left,
.media-swiper .swiper-slide-shadow-right {
  border-radius: 16px;
}
.media-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 6px;
}
.media-dots {
  display: flex;
  gap: 8px;
}
.media-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.media-dot.active {
  background: var(--primary);
  width: 26px;
}
.media-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   Poznanie v5: platforms carousel (kak flagship), simple media gallery
   ========================================================================== */

/* --- Секция платформ: фон как у бывшего флагмана --- */
#platforms {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 45%, #e8f1fe 100%);
}

/* --- Карусель платформ --- */
.platforms-carousel { position: relative; }
.platform-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.25, 0.8, 0.35, 1), visibility 0s linear 0.55s;
}
.platform-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.55s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.platform-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.platform-visual {
  position: relative;
  display: flex;
  align-items: center;
}
.platform-visual img {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
/* Проблеск на изображении платформы */
.platform-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  background: linear-gradient(135deg, var(--primary), #4c93f0);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(31, 111, 235, 0.35);
}
.platform-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.platform-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.platform-content .section-tag { margin-bottom: 16px; }
.platform-content h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.platform-content > p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.98rem;
}
.platform-specs {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: rgba(31, 111, 235, 0.05);
  border: 1px dashed var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-specs li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.platform-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.platform-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 992px) {
  .platform-inner { grid-template-columns: 1fr; }
  .platform-visual { max-width: 620px; }
}

/* --- Простая медиагалерея --- */
.media-gallery {
  margin-top: 6px;
}
.media-gallery .gallery-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .media-gallery .gallery-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .media-gallery .gallery-items { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Poznanie v6: no vanta, media banner, swiper row, platform fixes, parallax
   ========================================================================== */

/* --- Платформы: обёртка изображения (блик не выходит за рамки) --- */
.platform-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.platform-visual:hover .platform-img-wrap { transform: translateY(-4px); }
.platform-img-wrap img {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Блик строго в рамках обёртки */
.platform-img-wrap::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  z-index: 2;
  width: 45%;
  height: 140%;
  transform: translateX(-160%) skewX(-22deg);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 42%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.14) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: flagship-glimpse 6.5s ease-in-out infinite;
  pointer-events: none;
}
.platform-slide:nth-child(2) .platform-img-wrap::after { animation-delay: 1.6s; }
.platform-slide:nth-child(3) .platform-img-wrap::after { animation-delay: 3.2s; }
@media (prefers-reduced-motion: reduce) {
  .platform-img-wrap::after { animation: none; display: none; }
}

/* --- Платформы: бейдж-чип в контенте, стабильная высота заголовка, кнопка --- */
.platform-visual { align-items: center; }
.platform-content .platform-badge {
  position: static;
  align-self: flex-start;
  display: inline-flex;
  margin-bottom: 14px;
}
.platform-content h2 {
  min-height: 1.25em;
  margin-bottom: 12px;
}
.platform-foot .btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.platform-foot .btn-primary:hover {
  background: #1b5fd0;
  box-shadow: 0 10px 24px rgba(31, 111, 235, 0.35);
}

/* --- Медиа: баннер «фон + изображение» --- */
.media-banner {
  position: relative;
  margin: 0 0 34px;
  padding: clamp(14px, 2.4vw, 30px);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b2447 0%, #14418b 55%, #1f6feb 100%);
}
.media-banner-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.3px);
  background-size: 24px 24px;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.6), transparent 80%);
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.6), transparent 80%);
}
.media-banner img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(4, 14, 32, 0.5);
}

/* --- Медиа: Swiper-строка с кадрами --- */
.media-swiper {
  overflow: hidden;
  padding: 6px 4px 14px;
}
.media-swiper .swiper-slide {
  height: auto;
}
.media-slide .media-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.media-slide .media-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.media-slide .media-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.media-slide .media-shot:hover img { transform: scale(1.04); }
.media-slide .media-shot::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0));
  pointer-events: none;
}
.media-shot-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.media-slide .media-shot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.media-swiper-wrap { position: relative; }
.media-arrow { position: absolute; top: 42%; z-index: 6; }
.media-arrow-prev { left: -16px; }
.media-arrow-next { right: -16px; }
.media-arrow {
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.media-arrow:hover { box-shadow: 0 14px 34px rgba(31, 111, 235, 0.3); }
@media (max-width: 920px) {
  .media-arrow-prev { left: 6px; }
  .media-arrow-next { right: 6px; }
}
.media-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.media-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.media-dot.active { background: var(--primary); width: 26px; }
.media-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.media-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Параллакс за синими блоками --- */
.section-blue {
  position: relative;
  overflow: hidden;
}
.section-blue::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  bottom: -70px;
  z-index: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="260" height="260" viewBox="0 0 260 260"><g fill="none" stroke="%23ffffff" stroke-width="1.4" opacity="0.35"><circle cx="40" cy="40" r="26"/><circle cx="170" cy="96" r="52"/><circle cx="96" cy="204" r="18"/><path d="M218 190l22 22m0-22l-22 22"/></g></svg>');
  background-size: 260px 260px;
  opacity: 0.5;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
  pointer-events: none;
}
.section-blue .container {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .section-blue::before { transform: none; }
}

/* ==========================================================================
   Poznanie v7: sand hero bg, compact badge, clean media row, strong parallax
   ========================================================================== */

.hero-content { position: relative; z-index: 2; }
.hero-visual { position: relative; z-index: 2; }
.hero-content h1, .hero-content .hero-sub {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* --- Платформы: контейнер изображения + маленькая плашка --- */
.platform-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.platform-visual:hover .platform-img-wrap { transform: translateY(-4px); }
.platform-img-wrap img {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.platform-img-wrap .platform-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  background: linear-gradient(135deg, var(--primary), #4c93f0);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 6px 11px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(31, 111, 235, 0.35);
}
.platform-img-wrap .platform-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* --- Медиа-строка: чистые отступы --- */
.media-gallery-block {
  position: relative;
  margin-top: 4px;
}
.media-gallery-block .media-swiper {
  overflow: hidden;
  margin: 0;
  padding: 4px 2px 10px;
}
.media-gallery-block .swiper-slide {
  height: auto;
}
.media-gallery-block .media-arrow {
  position: absolute;
  top: 38%;
  z-index: 6;
}
.media-gallery-block .media-arrow-prev { left: -14px; }
.media-gallery-block .media-arrow-next { right: -14px; }
.media-gallery-block .media-arrow {
  background: #fff;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 920px) {
  .media-gallery-block .media-arrow-prev { left: 6px; }
  .media-gallery-block .media-arrow-next { right: 6px; }
}
.media-gallery-block .media-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.media-gallery-block .media-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.media-gallery-block .media-dot.active { background: var(--primary); width: 26px; }
.media-gallery-block .media-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Параллакс: заметный, с запасом по высоте --- */
.section-blue {
  position: relative;
  overflow: hidden;
}
.section-blue::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -160px;
  bottom: -160px;
  z-index: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><g fill="none" stroke="%23ffffff" stroke-width="2" opacity="0.55"><circle cx="46" cy="46" r="30"/><circle cx="196" cy="110" r="60"/><circle cx="110" cy="235" r="21"/><path d="M250 218l26 26m0-26l-26 26"/></g></svg>');
  background-size: 300px 300px;
  opacity: 0.6;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
  pointer-events: none;
}
.section-blue .container {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .section-blue::before { transform: none; }
}

/* --- Нейтрализация дефолтных стрелок Swiper на кнопках карусели --- */
.media-gallery-block .swiper-button-next,
.media-gallery-block .swiper-button-prev {
  position: absolute;
  top: 38%;
  margin-top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-gallery-block .swiper-button-next::after,
.media-gallery-block .swiper-button-prev::after {
  content: none;
}
.media-gallery-block .swiper-button-prev { left: -14px; }
.media-gallery-block .swiper-button-next { right: -14px; }
.media-gallery-block .swiper-button-prev svg { width: 20px; height: 20px; }
@media (max-width: 920px) {
  .media-gallery-block .swiper-button-prev { left: 6px; }
  .media-gallery-block .swiper-button-next { right: 6px; }
}

/* ==========================================================================
   Poznanie v8: banner hero (no sand), platforms images fix, card glimmers,
   simple media strip (3 visible)
   ========================================================================== */

/* --- Hero: баннер как фон + затемнение под текст --- */
.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(7, 26, 56, 0.82) 0%, rgba(7, 26, 56, 0.45) 45%, rgba(7, 26, 56, 0.12) 100%),
    url('../img/media/pl-banner.webp');
  background-size: cover, cover;
  background-position: center, center;
}
.hero { background: linear-gradient(135deg, #071a38 0%, #0d2f6b 55%, #134a9e 100%); }

/* --- Платформы: картинка снова в потоке (не absolute) --- */
.platform-img-wrap img {
  position: static !important;
  inset: auto;
  height: auto;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  max-height: none;
}
.platform-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  contain: layout paint;
}

/* --- Проблески на карточках 67 тематик (клиент: 1-2 карточки за раз) --- */
.product-img {
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute;
  top: -25%;
  left: 0;
  z-index: 3;
  width: 40%;
  height: 150%;
  transform: translateX(-180%) skewX(-22deg);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 44%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.16) 56%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.product-card.is-shining .product-img::after {
  opacity: 1;
  animation: product-glimpse 1.5s ease forwards;
}
@keyframes product-glimpse {
  0%   { transform: translateX(-180%) skewX(-22deg); }
  100% { transform: translateX(340%) skewX(-22deg); }
}
@media (prefers-reduced-motion: reduce) {
  .product-card.is-shining .product-img::after { animation: none; opacity: 0; }
}

/* --- Медиа: простая лента, 3 кадра в ряд --- */
.media-gallery-block .media-strip {
  gap: 18px;
  padding: 6px 2px 16px;
}
.media-gallery-block .media-shot {
  width: calc((100% - 36px) / 3);
  min-width: 240px;
}
.media-gallery-block .media-shot:hover img { transform: scale(1.05); }
@media (max-width: 920px) {
  .media-gallery-block .media-shot { width: calc((100% - 18px) / 2); min-width: 220px; }
}
@media (max-width: 560px) {
  .media-gallery-block .media-shot { width: 78%; min-width: 0; }
}
@media (max-width: 920px) {
  .media-gallery-block .media-arrow-prev { left: 6px; }
  .media-gallery-block .media-arrow-next { right: 6px; }
}

/* --- Убираем влияние старых правил swiper-слайдов на кнопки ленты --- */
.media-gallery-block .media-arrow {
  position: absolute;
  top: 42%;
  z-index: 6;
}
.media-gallery-block .media-arrow-prev { left: -14px; }
.media-gallery-block .media-arrow-next { right: -14px; }
/* ==========================================================================
   Poznanie v9: hero -> Vanta HALO (исходная структура как на agrocos),
   badges платформ над изображением, паттерн прозрачнее,
   медиа -> современная Swiper-карусель (без полосы прокрутки)
   ========================================================================== */

/* --- Hero: классическая структура (bg + overlay + vanta HALO) --- */
.hero {
  background: linear-gradient(135deg, #071a38 0%, #0d2f6b 55%, #134a9e 100%);
}
.hero[hidden] { display: none !important; }
.hero-bg {
  background-image:
    radial-gradient(circle at 82% 18%, rgba(79, 141, 235, 0.20), transparent 46%),
    radial-gradient(circle at 12% 82%, rgba(31, 111, 235, 0.28), transparent 52%);
}
.hero .hero-overlay {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.14"><path fill="none" stroke="%231f6feb" stroke-width="0.4" d="M0 50h100M50 0v100"/><circle cx="50" cy="50" r="3" fill="%231f6feb"/></svg>');
  background-size: 80px 80px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.3), transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.3), transparent 70%);
}
.hero-flow {
  z-index: 0;
  opacity: 0.95;
}
/* --- Переключатель вариантов hero (Вариант 1 / Вариант 2) --- */
.hero-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(13, 27, 52, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(7, 15, 32, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-switch-btn {
  border: 0;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  color: #aebad8;
  background: transparent;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.hero-switch-btn:hover { color: #fff; }
.hero-switch-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4c93f0);
  box-shadow: 0 6px 16px rgba(31, 111, 235, 0.4);
}
.hero-switch-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 640px) {
  .hero-switcher { right: 12px; bottom: 12px; }
  .hero-switch-btn { padding: 6px 11px; font-size: 0.72rem; }
}

/* --- Платформы: плашка висит над верхней кромкой фото, изображение не перекрывает --- */
.platform-visual > .platform-badge {
  position: absolute;
  top: -16px;
  right: 18px;
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), #4c93f0);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 8px 13px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(31, 111, 235, 0.35);
}
.platform-visual > .platform-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* --- Параллакс: объекты фона (паттерн) прозрачнее --- */
.section-blue::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><g fill="none" stroke="%23ffffff" stroke-width="1.6" opacity="0.30"><circle cx="46" cy="46" r="30"/><circle cx="196" cy="110" r="60"/><circle cx="110" cy="235" r="21"/><path d="M250 218l26 26m0-26l-26 26"/></g></svg>');
  opacity: 0.35;
}

/* --- Медиа: современная Swiper-галерея (как арт-галерея) --- */
.media-gallery-block .media-swiper {
  overflow: hidden;
  margin: 0;
  padding: 12px 2px 8px;
}
.media-gallery-block .swiper-slide {
  width: auto;
  height: auto;
  opacity: 0.55;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.media-gallery-block .swiper-slide.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
.media-gallery-block .media-shot {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  border-radius: 18px;
}
.media-gallery-block .media-shot-caption {
  left: 16px;
  right: 16px;
  bottom: 13px;
  font-size: 0.92rem;
}
.media-gallery-block .media-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}
.media-gallery-block .media-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.media-gallery-block .media-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.media-gallery-block .media-dot.active { background: var(--primary); width: 26px; }
.media-gallery-block .media-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
