:root {
  --bg: #07111f;
  --bg-elev: rgba(14, 28, 49, 0.72);
  --bg-elev-strong: rgba(11, 24, 42, 0.95);
  --line: rgba(180, 214, 255, 0.12);
  --line-strong: rgba(180, 214, 255, 0.2);
  --text: #edf5ff;
  --muted: #9fb2c9;
  --accent: #6ce5ff;
  --accent-2: #9d7dff;
  --accent-3: #7cffbb;
  --hot: #ffd86a;
  --hotter: #ff8c66;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1200px;
}

/* Контейнер для горизонтального скролла внутри плитки */
.sensitivity-table-wrapper {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Стили самой таблицы — НОВАЯ ТЕМНАЯ ТЕМА */
.sensitivity-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.75rem;
  color: var(--text);
  margin: 0;
}

.sensitivity-table th, 
.sensitivity-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: transparent !important;
}

.sensitivity-table th {
  background-color: rgba(255, 255, 255, 0.03) !important;
  font-weight: 600;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sensitivity-table tr:last-child td {
  border-bottom: none;
}

.sensitivity-table tr:hover td {
  background-color: rgba(108, 229, 255, 0.05) !important;
}

/* Моноширинный шрифт для названий параметров */
.sensitivity-table .mono {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
}

/* Бейджики категорий - адаптированы под общую палитру */
.sensitivity-table .badge {
  display: inline-block;
  padding: 0.3em 0.6em;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sensitivity-table .badge-strong { 
  background: rgba(255, 140, 102, 0.15); 
  color: var(--hotter); 
  border: 1px solid rgba(255, 140, 102, 0.3);
}
.sensitivity-table .badge-moderate { 
  background: rgba(255, 216, 106, 0.15); 
  color: var(--hot); 
  border: 1px solid rgba(255, 216, 106, 0.3);
}
.sensitivity-table .badge-negligible { 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--muted); 
  border: 1px solid var(--line);
}

/* 1. Карточка становится умным Flex-контейнером */
.output-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
  min-height: 500px;
}

/* 2. Блок с графикой забирает всё оставшееся место */
.output-visual {
  position: relative;
  width: 100%;
  flex-grow: 1;
  min-height: 350px;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0 !important;
}

/* 3. График iframe внутри визуального блока */
.output-visual.output-heat iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 4. Плашка текста: возвращается в нормальный поток, но всегда будет сверху */
.output-overlay {
  position: relative;
  width: 100%;
  order: -1;
  padding: 24px;
  background: #050d18; /* Сплошной темный цвет без прозрачности */
  border-bottom: 1px solid var(--line);
  z-index: 20;
  flex-shrink: 0;
}

.output-overlay h3 {
  margin: 0 0 8px !important;
  color: var(--text);
  font-size: 1.15rem;
}

.output-overlay p {
  margin: 0 !important;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 39;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(108, 229, 255, 0.16), transparent 0 28%),
    radial-gradient(circle at 88% 18%, rgba(157, 125, 255, 0.18), transparent 0 24%),
    linear-gradient(180deg, #091425 0%, #07111f 35%, #08121e 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%; /* Запрещаем iOS самовольно увеличивать шрифты */
  text-size-adjust: 100%;
}

.brand-mobile {
  display: none;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(108, 229, 255, 0.16), transparent 0 28%),
    radial-gradient(circle at 88% 18%, rgba(157, 125, 255, 0.18), transparent 0 24%),
    linear-gradient(180deg, #091425 0%, #07111f 35%, #08121e 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.topbar {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.6);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav a.active {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(108, 229, 255, 0.4);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-link.active {
  color: var(--text);
  border: 1px solid rgba(180, 214, 255, 0.34);
  background: rgba(180, 214, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  text-shadow: none;
}

.nav-cta {
  color: var(--text) !important;
  border: 1px solid rgba(108,229,255,0.35) !important;
  background: rgba(108,229,255,0.08) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 0;
  position: relative;
  z-index: 50;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.topbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding-top: 90px;
  padding-bottom: 56px;
}

.section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 15px 80px 0;
  scroll-margin-top: 90px;
  scroll-snap-align: start;
}

.hero {
  display: grid;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9ddf7;
  background: rgba(255,255,255,0.03);
  font-size: 0.88rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(108, 229, 255, 0.8);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.25rem, 3.75vw, 3.45rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 span {
  background: linear-gradient(90deg, #f0f8ff 0%, var(--accent) 45%, #c8bcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: none;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-title {
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 28px;
}

.hero-punchline {
  margin-top: 14px;
  opacity: 0.9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  min-width: 154px;
  border-radius: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #04101c;
  background: linear-gradient(135deg, #9ff0ff 0%, #7de7ff 40%, #a2b8ff 100%);
  box-shadow: 0 20px 40px rgba(108, 229, 255, 0.24);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: #cbddf3;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(108,229,255,0.75);
}

.hero-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18, 30, 49, 0.9), rgba(9, 18, 33, 0.86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.frame-glow-a {
  width: 260px;
  height: 260px;
  background: rgba(108,229,255,0.12);
  top: -80px;
  right: -40px;
}

.frame-glow-b {
  width: 240px;
  height: 240px;
  background: rgba(157,125,255,0.14);
  bottom: -100px;
  left: -50px;
}

.scene-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.scene-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.scene-tab.active {
  color: var(--text);
  background: rgba(108,229,255,0.09);
  border-color: rgba(108,229,255,0.28);
}

.scene-window {
  position: relative;
  min-height: 430px;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mini-caption {
  color: #dbeaff;
  margin: 4px 0 14px;
  font-weight: 600;
}

.code-card {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #050d18;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  max-width: 100%;
}

.code-card pre {
  margin: 0;
  padding: 16px 0; /* Оставляем у pre только отступы сверху и снизу */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-card code {
  display: block;
  width: fit-content; /* Заставляем блок стать шириной с самую длинную строку... */
  min-width: 100%; /* ...но не меньше ширины экрана */
  padding: 0 16px; /* И вот теперь задаем левый и правый отступы прямо здесь */
}

.code-card code,
.code-card pre {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre;
  word-break: normal;
}

.code-large code,
.code-large pre {
  font-size: 0.95rem;
}

.kw { color: #7de7ff; }
.fn { color: #dfb8ff; }
.sym { color: #ffd86a; }
.str { color: #9ff5b8; }
.cls { color: #ffffff; }

.line {
  display: block;
}

.line.dim {
  opacity: 0;
  transform: translateX(-8px);
  animation: lineIn 0.55s ease forwards;
}

.scene.active .line:nth-child(1) { animation-delay: 0.1s; }
.scene.active .line:nth-child(2) { animation-delay: 0.22s; }
.scene.active .line:nth-child(3) { animation-delay: 0.34s; }
.scene.active .line:nth-child(4) { animation-delay: 0.46s; }
.scene.active .line:nth-child(5) { animation-delay: 0.58s; }
.scene.active .line:nth-child(6) { animation-delay: 0.7s; }
.scene.active .line:nth-child(7) { animation-delay: 0.82s; }

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.param-grid,
.function-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.param-grid span,
.function-pills span {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #d7e6fb;
}

.measurement-panel {
  display: grid;
  gap: 18px;
}

.measure-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.measure-node {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  text-align: center;
  font-weight: 600;
}

.measure-node-accent {
  background: linear-gradient(135deg, rgba(108,229,255,0.12), rgba(157,125,255,0.12));
  border-color: rgba(108,229,255,0.24);
}

.measure-arrow {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(108,229,255,0.2), rgba(108,229,255,0.9));
  position: relative;
}

.measure-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.metric-stream {
  display: grid;
  gap: 12px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

.metric-row span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.metric-row strong {
  font-size: 1.1rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.heatmap-card,
.analysis-list {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.heatmap span {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(108,229,255,0.12);
  border: 1px solid rgba(255,255,255,0.05);
}

.heatmap span.hot { background: rgba(255,216,106,0.78); }
.heatmap span.hotter { background: rgba(255,140,102,0.88); }

.heatmap-label {
  margin-top: 14px;
  color: var(--muted);
}

.analysis-list {
  display: grid;
  align-content: center;
  gap: 14px;
  font-weight: 600;
}

.analysis-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(108,229,255,0.7);
}

.scene-progress {
  margin-top: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.scene-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 0.5s ease;
}

.section-head {
  margin-top: 0;
  margin-bottom: 8px;
  max-width: 120ch;
  text-align: left;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 18px 0 12px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.concept-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.concept-step {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  min-height: 210px;
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  margin-bottom: 16px;
}

.concept-step h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.concept-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.concept-line {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, rgba(108,229,255,0.18), rgba(108,229,255,0.8));
}

.feature-grid,
.outputs-grid,
.compare-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.outputs-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin: 0 auto 80px auto;
}

.compare-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.compare-card,
.cta-panel,
.dual-panel,
.panel-copy {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 24, 0.78);
}

.output-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  min-width: 0;
}

.feature-card,
.compare-card {
  padding: 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(108,229,255,0.16), rgba(157,125,255,0.2));
  border: 1px solid rgba(255,255,255,0.08);
}

.feature-card h3,
.compare-card h3 {
  margin: 0 0 10px;
}

.feature-card p,
.compare-card li {
  color: var(--muted);
  line-height: 1.75;
}

.dual-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
  padding: 18px;
}

.panel-copy {
  padding: 24px;
}

.bullet-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.output-heat {
  background:
    linear-gradient(135deg, rgba(108,229,255,0.12), transparent 35%),
    radial-gradient(circle at 70% 40%, rgba(255,140,102,0.65), transparent 0 18%),
    radial-gradient(circle at 56% 52%, rgba(255,216,106,0.8), transparent 0 14%),
    linear-gradient(180deg, rgba(5, 13, 24, 0.95), rgba(10, 20, 35, 0.92));
}

.output-bars {
  position: relative;
  overflow: hidden;
}

.output-cube {
  position: relative;
  overflow: hidden;
}

.output-cube::before,
.output-cube::after {
  content: "";
  position: absolute;
  inset: 30px auto auto 30px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(108,229,255,0.42);
  transform: rotate(0deg);
}

.output-cube::after {
  inset: 54px auto auto 56px;
  border-color: rgba(157,125,255,0.42);
}

.compare-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.compare-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.compare-card-strong {
  background: linear-gradient(180deg, rgba(108,229,255,0.08), rgba(157,125,255,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.cta-section {
  padding-top: 60px;
}

.cta-panel {
  padding: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(108,229,255,0.14), transparent 0 30%),
    radial-gradient(circle at 80% 100%, rgba(157,125,255,0.12), transparent 0 32%),
    rgba(255,255,255,0.03);
}

.cta-panel h2 {
  margin: 18px auto 10px;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
}

.cta-panel .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.step-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step-head h3 {
  margin: 0;
}

.code-section .feature-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 0;
  gap: 0;
}

.code-section .section-head {
  margin-bottom: 8px;
}

.code-section .feature-card {
  display: block; /* Убрали flex и схлопывающуюся высоту */
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.code-section .feature-card h3 {
  margin-bottom: 14px;
}

.code-section .code-card {
  margin-top: 0;
  display: block; /* Убрали flex */
  width: 100%;
  min-width: 0;
}

.code-section .code-card pre {
  margin: 0;
  /* Убрали flex: 1 и min-height: 0 */
}

/* --- СТИЛИ ДЛЯ КАРТОЧЕК WHY FLEXCARTESIAN --- */
.positioning-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.positioning .output-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: auto !important;
  text-align: left;
  /* ДОБАВЛЕН !important, чтобы перебить padding: 0 !important из глобальных стилей */
  padding: 32px 28px 28px 28px !important;
  background-color: #050d18 !important;
}

.positioning .output-card h3 {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 28px 0;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.positioning .output-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
  min-height: 6.5em;
}

/* Списки без точек, акцентным цветом */
.modern-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-list li {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.modern-list li:last-child {
  margin-bottom: 0;
}

/* На всякий случай жестко убиваем псевдоэлементы-точки, если они кэшируются */
.modern-list li::before {
  display: none !important;
}

.positioning-closing {
  margin-top: auto;
  padding-top: 18px;
  color: var(--text);
  font-weight: 600;
}

.outputs-closing {
  margin-top: 18px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 1080px) {
  .hero,
  .dual-panel,
  .feature-grid,
  .outputs-grid,
  .concept-rail,
  .analysis-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .concept-line {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .outputs-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  
  .positioning-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }
}

@media (max-width: 820px) {
  .topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
  }

  .brand-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    text-align: center;
    padding: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
  }
  .nav-toggle {
    display: inline-block;
    grid-column: 3;
    justify-self: end;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(7, 17, 31, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px; /* УМЕНЬШИЛИ: было 20px */
    padding: 20px;
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 0 0 auto;
  }

  .nav a {
    font-size: 1.15rem; /* УМЕНЬШИЛИ: было 1.25rem */
    padding: 10px 24px; /* УМЕНЬШИЛИ: было 12px 24px */
    width: 100%;
    text-align: center;
  }

  .topbar.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .hero {
    gap: 34px;
  }

  .section {
    padding: 10px 0;
    justify-content: flex-start;
  }

  .section-head {
    margin-top: 0;
  }

  .scene-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-window {
    min-height: 500px;
  }

  .feature-grid,
  .outputs-grid,
  .positioning-grid {
    grid-template-columns: 1fr;
  }

  .hero-punchline {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .topbar {
    margin-top: 6px;
    padding: 8px 12px;
    min-height: 58px;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
  }
}
