/* Главная (лендинг) */

body.body-landing {
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 12rem);
}

body.body-landing .top {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.body-landing .top-nav {
  gap: 0.5rem;
}

body.body-landing .top-auth-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

body.body-landing .top-auth-link:hover {
  background: #f1f5f9;
  text-decoration: none;
}

body.body-landing .top-auth-register {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.wrap.wrap-landing {
  max-width: 68rem;
  padding: 1.25rem 1.25rem 4rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 0.5rem 0 1rem;
}

@media (min-width: 900px) {
  .landing-hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 22rem;
  }
}

.landing-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.landing-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.landing-lead {
  margin: 0 0 1.35rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.btn-lg {
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
}

.landing-hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Демо-устройство в герое */
.landing-device {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  max-width: 28rem;
  margin: 0 auto;
}

.landing-device-hero {
  max-width: 26rem;
}

.landing-device-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.landing-device-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.landing-device-bar em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.landing-device-body {
  padding: 1rem 1rem 1.1rem;
}

.landing-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.landing-tab-row-wrap {
  gap: 0.35rem;
}

.landing-demo-tab {
  font-size: 0.72rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.landing-demo-tab:hover {
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.landing-demo-tab.is-on {
  background: var(--accent-soft);
  border-color: #c7d2fe;
  color: #1e3a8a;
  font-weight: 600;
}

.landing-panel-stage {
  position: relative;
  height: 15.25rem;
  overflow: hidden;
}

.landing-panel-stage-hero {
  height: 14.75rem;
}

.landing-panel-stage-tall {
  height: 18.5rem;
}

.landing-demo-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  animation: ld-panel-in 0.45s ease;
}

.landing-demo-panel.is-visible {
  display: block;
}

@keyframes ld-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ld-target {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 0.5rem;
}

.ld-target-sm {
  width: 200px;
  height: 200px;
}

.landing-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.landing-ring.r1 { width: 70px; height: 70px; }
.landing-ring.r2 { width: 120px; height: 120px; }
.landing-ring.r3 { width: 168px; height: 168px; }
.landing-ring.r4 { width: 210px; height: 210px; }

.landing-node {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: rotate(var(--a, 0deg)) translateY(calc(-1 * var(--dist, 50px))) rotate(calc(-1 * var(--a, 0deg)));
}

.landing-node.shape-m {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: var(--node-c, #64748b);
  border: 1px solid #1f2937;
}

.landing-node.shape-f {
  width: 0;
  height: 0;
  margin: -6px 0 0 -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid var(--node-c, #64748b);
  background: transparent;
}
.landing-node.z1 { --node-c: #22c55e; }
.landing-node.z2 { --node-c: #84cc16; }
.landing-node.z3 { --node-c: #f59e0b; }
.landing-node.z4 { --node-c: #94a3b8; }

.landing-demo-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.landing-demo-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* Панели отчёта */
.ld-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.ld-kpi-grid-sm {
  grid-template-columns: 1fr;
}

.ld-kpi {
  padding: 0.45rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
}

.ld-kpi span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.ld-kpi strong {
  font-size: 0.95rem;
  color: var(--accent);
}

/* Компактная панель «Результаты» в hero */
.landing-demo-panel[data-panel="results"] .ld-kpi {
  padding: 0.28rem 0.42rem;
  font-size: 0.66rem;
}

.landing-demo-panel[data-panel="results"] .ld-kpi strong {
  font-size: 0.78rem;
}

.landing-demo-panel[data-panel="results"] .ld-kpi-grid-sm {
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.ld-rank-table-hero {
  font-size: 0.62rem;
}

.ld-rank-table-hero th,
.ld-rank-table-hero td {
  padding: 0.18rem 0.32rem;
}

.ld-rank-table-hero .ld-zone {
  font-size: 0.58rem;
  padding: 0.05rem 0.28rem;
}

.ld-rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ld-rank-table th,
.ld-rank-table td {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.ld-rank-table th {
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

.ld-zone {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.ld-zone.z1 { background: #d1fae5; color: #065f46; }
.ld-zone.z2 { background: #ecfccb; color: #3f6212; }
.ld-zone.z3 { background: #fef3c7; color: #92400e; }
.ld-zone.z4 { background: #f1f5f9; color: #475569; }

.ld-group-card {
  padding: 0.5rem 0.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.ld-group-card strong {
  display: block;
  font-size: 0.78rem;
  color: #1e3a8a;
  margin-bottom: 0.2rem;
}

.ld-group-card span { color: var(--muted); }

.ld-group-card-muted {
  background: #f8fafc;
  border-style: dashed;
}

.ld-group-note,
.ld-matrix-caption,
.ld-network-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.ld-matrix {
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ld-matrix th,
.ld-matrix td {
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.4rem;
  text-align: center;
  min-width: 1.8rem;
}

.ld-matrix th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--muted);
}

.ld-matrix td.mutual-pos {
  background: #ecfdf5;
  border-color: #86efac;
  font-weight: 700;
  color: #065f46;
}

.ld-network-svg {
  width: 100%;
  max-width: 18rem;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ld-net-edge {
  stroke: #94a3b8;
  stroke-width: 1.5;
  marker-end: url(#ld-arrow);
}

.ld-net-edge.mutual { stroke: #64748b; stroke-width: 2; }
.ld-net-edge.neg { stroke: #dc2626; stroke-width: 1.5; }

.ld-net-node.z1 { fill: #22c55e; stroke: #1f2937; stroke-width: 0.8; }
.ld-net-node.z2 { fill: #84cc16; stroke: #1f2937; stroke-width: 0.8; }
.ld-net-node.z3 { fill: #f59e0b; stroke: #1f2937; stroke-width: 0.8; }
.ld-net-node.z4 { fill: #94a3b8; stroke: #1f2937; stroke-width: 0.8; }

.landing-frame-report .lf-excel {
  margin-top: 0.75rem;
  text-align: center;
}

.landing-frame-report .lf-excel .btn {
  pointer-events: none;
  font-size: 0.82rem;
}

/* Секции */
.landing-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  text-align: center;
}

.landing-section-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-audience {
  margin-bottom: 3rem;
}

.landing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .landing-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #1e3a8a;
}

.landing-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.landing-flow {
  margin-bottom: 3rem;
}

.landing-steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .landing-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.landing-step {
  margin: 0;
}

.landing-step-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.landing-step-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.landing-step-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.landing-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Анимированные фреймы */
.landing-frame {
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  min-height: 9rem;
}

.landing-frame--tall {
  box-sizing: border-box;
  min-height: 25.75rem;
}

.landing-frame-report {
  display: flex;
  flex-direction: column;
}

.landing-frame-cabinet {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lf-cabinet-mock {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 23rem;
  background: #fff;
  border-radius: calc(var(--radius) - 1px);
  overflow: hidden;
}

.lf-cabinet-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.lf-cabinet-mock-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.lf-cabinet-mock-new {
  pointer-events: none;
  font-size: 0.76rem;
  padding: 0.32rem 0.6rem;
}

.lf-cabinet-table-wrap {
  flex: 1;
  overflow: auto;
}

.lf-cabinet-table {
  margin: 0;
  font-size: 0.8rem;
}

.lf-cabinet-table th {
  font-size: 0.68rem;
  padding: 0.5rem 0.6rem;
}

.lf-cabinet-table td {
  padding: 0.5rem 0.6rem;
}

.lf-cabinet-table td .muted {
  font-size: 0.72rem;
}

.lf-cabinet-table .num strong {
  color: var(--accent);
}

.lf-cabinet-table .actions .btn {
  pointer-events: none;
  margin-left: 0.25rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
}

.lf-cabinet-table tbody tr.lf-cabinet-row-active {
  background: var(--accent-soft);
}

.lf-cabinet-mock-hint {
  margin: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  line-height: 1.45;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.lf-line {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}

.lf-line.lf-title {
  width: 50%;
  height: 0.65rem;
  background: #cbd5e1;
}

.lf-line.short { width: 72%; }

.lf-q {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
}

.lf-positive { background: #f7fff9; border-color: #86efac; }
.lf-negative { background: #fffbfb; border-color: #fca5a5; }

.lf-btn {
  margin-top: 0.35rem;
  pointer-events: none;
  font-size: 0.82rem;
}

.lf-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.lf-pick {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.lf-pick.active {
  border-color: #93c5fd;
  background: var(--accent-soft);
  color: #1e3a8a;
  font-weight: 600;
}

.lf-gender {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0.65rem;
}

.lf-gender-opt {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: var(--muted);
}

.lf-gender-opt.on {
  background: var(--accent-soft);
  border-color: #93c5fd;
  color: #1e3a8a;
}

.lf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lf-chip {
  padding: 0.25rem 0.55rem;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #065f46;
}

.lf-cabinet-table .num strong.anim-count {
  font-size: 1rem;
}

/* Пошаговая история: ученик заполняет анкету */
.landing-frame-student {
  min-height: 15.5rem;
  padding: 0.75rem 0.85rem;
}

.lf-story-stage {
  position: relative;
  height: 13.75rem;
  overflow: hidden;
}

.lf-story-frame {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  animation-duration: 20s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.lf-sf1 { animation-name: lf-sf-1; }
.lf-sf2 { animation-name: lf-sf-2; }
.lf-sf3 { animation-name: lf-sf-3; }
.lf-sf4 { animation-name: lf-sf-4; }
.lf-sf5 { animation-name: lf-sf-5; }
.lf-sf6 { animation-name: lf-sf-6; }
.lf-sf7 { animation-name: lf-sf-7; }
.lf-sf8 { animation-name: lf-sf-8; }

@keyframes lf-sf-1 {
  0%, 1% { opacity: 0; }
  2%, 10% { opacity: 1; }
  11%, 100% { opacity: 0; }
}
@keyframes lf-sf-2 {
  0%, 10% { opacity: 0; }
  11%, 20% { opacity: 1; }
  21%, 100% { opacity: 0; }
}
@keyframes lf-sf-3 {
  0%, 20% { opacity: 0; }
  21%, 30% { opacity: 1; }
  31%, 100% { opacity: 0; }
}
@keyframes lf-sf-4 {
  0%, 30% { opacity: 0; }
  31%, 42% { opacity: 1; }
  43%, 100% { opacity: 0; }
}
@keyframes lf-sf-5 {
  0%, 42% { opacity: 0; }
  43%, 52% { opacity: 1; }
  53%, 100% { opacity: 0; }
}
@keyframes lf-sf-6 {
  0%, 52% { opacity: 0; }
  53%, 62% { opacity: 1; }
  63%, 100% { opacity: 0; }
}
@keyframes lf-sf-7 {
  0%, 62% { opacity: 0; }
  63%, 72% { opacity: 1; }
  73%, 100% { opacity: 0; }
}
@keyframes lf-sf-8 {
  0%, 72% { opacity: 0; }
  73%, 97% { opacity: 1; }
  100% { opacity: 0; }
}

.lf-story-caption {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.lf-chat-bubble {
  display: inline-block;
  max-width: 88%;
  padding: 0.45rem 0.65rem;
  background: #e0f2fe;
  border-radius: 10px 10px 10px 2px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.lf-chat-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.65rem;
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  font-size: 0.78rem;
}

.lf-link-url {
  font-family: ui-monospace, monospace;
  color: var(--accent);
}

.lf-click-ring {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: lf-click-pulse 20s ease infinite;
}

@keyframes lf-click-pulse {
  0%, 5% { opacity: 0; transform: scale(0.6); }
  6%, 8% { opacity: 1; transform: scale(1); }
  9%, 10% { opacity: 0.3; transform: scale(1.35); }
  11%, 100% { opacity: 0; }
}

.lf-browser {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.55rem;
}

.lf-browser-bar {
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.lf-browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.lf-browser-url {
  padding: 0.45rem 0.55rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.lf-story-loading {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  animation: lf-loading-dots 1.2s ease infinite;
}

@keyframes lf-loading-dots {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.lf-mini-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.lf-mini-muted {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.lf-mini-label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.lf-mini-input {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
}

.lf-mini-input.sm {
  min-height: 1.75rem;
  flex: 1;
}

.lf-mini-input.empty .lf-placeholder {
  color: #94a3b8;
  font-size: 0.76rem;
}

.lf-mini-input.filled {
  border-color: #93c5fd;
  background: var(--accent-soft);
  font-weight: 600;
  color: #1e3a8a;
}

.lf-typed {
  color: var(--text);
  font-weight: 500;
}

.lf-typewriter {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

.lf-typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  font-weight: 500;
  color: var(--text);
}

.lf-sf4 .lf-typewriter-text {
  animation: lf-type-iva 20s linear infinite;
}

@keyframes lf-type-iva {
  0%, 30.9% { width: 0; }
  31%, 32.4% { width: 0.62em; }
  32.5%, 33.9% { width: 1.15em; }
  34%, 42% { width: 1.7em; }
  43%, 100% { width: 0; }
}

.lf-sf5 .lf-ac-reveal {
  opacity: 0;
  transform: translateY(-5px);
  animation: lf-ac-reveal-iva 20s ease infinite;
}

@keyframes lf-ac-reveal-iva {
  0%, 43.4% { opacity: 0; transform: translateY(-5px); }
  44%, 52% { opacity: 1; transform: translateY(0); }
  53%, 100% { opacity: 0; transform: translateY(-5px); }
}

.lf-caret {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 1px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: lf-caret-blink 0.9s step-end infinite;
}

@keyframes lf-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.lf-ac-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.lf-ac-list.sm { font-size: 0.76rem; }

.lf-ac-list li {
  padding: 0.38rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text);
  border-bottom: 1px solid #f1f5f9;
}

.lf-ac-list li:last-child { border-bottom: none; }

.lf-ac-list li.is-active {
  background: var(--accent-soft);
  color: #1e3a8a;
  font-weight: 600;
}

.lf-gender-story {
  display: flex;
  gap: 0.45rem;
  margin: 0.55rem 0;
}

.lf-mini-btn {
  display: inline-block;
  font-size: 0.76rem;
  padding: 0.35rem 0.7rem;
  pointer-events: none;
  animation: lf-btn-pulse 32s ease infinite;
}

@keyframes lf-btn-pulse {
  0%, 60% { box-shadow: none; }
  63%, 70% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); }
  75%, 100% { box-shadow: none; }
}

.lf-qtext {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.lf-pick-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lf-rank {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  width: 1.1rem;
}

.landing-report-tabs .guide-report-chip {
  pointer-events: none;
}

/* CSS-анимации появления (шаги 1–3) */
.anim-fill {
  transform-origin: left;
  animation: lf-fill 3s ease-in-out infinite;
}

.anim-slide {
  opacity: 0;
  transform: translateX(-8px);
  animation: lf-slide 3s ease-in-out infinite;
}

.anim-pop {
  opacity: 0;
  transform: scale(0.92);
  animation: lf-pop 3s ease-in-out infinite;
}

.anim-fade {
  opacity: 0;
  animation: lf-fade 3s ease-in-out infinite;
}

.anim-pick {
  animation: lf-pick 4s ease-in-out infinite;
}

.anim-chip {
  opacity: 0;
  animation: lf-chip 4s ease-in-out infinite;
}

.anim-tab {
  animation: lf-tab 4s ease-in-out infinite;
}

.anim-count {
  display: inline-block;
  animation: lf-count 3s ease-in-out infinite;
}

.d2 { animation-delay: 0.35s; }
.d3 { animation-delay: 0.7s; }
.d4 { animation-delay: 1.05s; }
.d5 { animation-delay: 1.4s; }

@keyframes lf-fill {
  0%, 8% { transform: scaleX(0); }
  25%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes lf-slide {
  0%, 12% { opacity: 0; transform: translateX(-8px); }
  28%, 82% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-8px); }
}

@keyframes lf-pop {
  0%, 45% { opacity: 0; transform: scale(0.92); }
  58%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.92); }
}

@keyframes lf-fade {
  0%, 10% { opacity: 0; }
  22%, 85% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes lf-pick {
  0%, 15% { opacity: 0.4; border-color: var(--border); background: #fff; color: var(--muted); font-weight: 400; }
  25%, 40% { opacity: 1; border-color: #93c5fd; background: var(--accent-soft); color: #1e3a8a; font-weight: 600; }
  55%, 100% { opacity: 0.4; border-color: var(--border); background: #fff; color: var(--muted); font-weight: 400; }
}

@keyframes lf-chip {
  0%, 50% { opacity: 0; transform: translateY(4px); }
  62%, 88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

@keyframes lf-tab {
  0%, 30% { background: #fff; color: var(--muted); font-weight: 400; }
  40%, 70% { background: var(--accent-soft); border-color: #c7d2fe; color: #1e3a8a; font-weight: 600; }
  100% { background: #fff; color: var(--muted); }
}

@keyframes lf-count {
  0%, 20% { opacity: 0.3; }
  35%, 75% { opacity: 1; }
  100% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-demo-panel {
    animation: none !important;
  }

  .anim-fill,
  .anim-slide,
  .anim-pop,
  .anim-fade,
  .anim-pick,
  .anim-chip,
  .anim-tab,
  .anim-count,
  .lf-story-frame,
  .lf-click-ring,
  .lf-caret,
  .lf-mini-btn,
  .lf-story-loading,
  .mm.cell.mutual-pos {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .lf-story-frame {
    display: none !important;
  }

  .lf-story-frame.lf-sf1 {
    display: block !important;
    opacity: 1 !important;
  }
}

.landing-features {
  margin-bottom: 1.5rem;
}

.landing-features-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .landing-features-grid {
    grid-template-columns: 1fr 220px;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.landing-feature-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .landing-feature-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}

.landing-feature-list li {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.landing-sample-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  min-height: 11.5rem;
  padding: 1.15rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.landing-sample-panel-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.landing-sample-panel-sub {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.landing-sample-btns {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.45rem;
}

.landing-sample-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.landing-sample-btn:hover {
  transform: translateY(-1px);
}

.landing-sample-panel-info {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid #e8ecf4;
  list-style: none;
  text-align: left;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

.landing-sample-panel-info li {
  position: relative;
  padding-left: 0.85rem;
  margin-bottom: 0.35rem;
}

.landing-sample-panel-info li:last-child {
  margin-bottom: 0;
}

.landing-sample-panel-info li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #94a3b8;
}

.landing-sample-btn-excel {
  background: rgba(163, 230, 53, 0.42);
  border-color: rgba(101, 163, 13, 0.28);
  color: #3f6212;
}

.landing-sample-btn-excel:hover {
  background: rgba(163, 230, 53, 0.58);
  border-color: rgba(101, 163, 13, 0.4);
  color: #365314;
}

.landing-sample-btn-pdf {
  background: rgba(251, 182, 206, 0.48);
  border-color: rgba(219, 39, 119, 0.22);
  color: #9d174d;
}

.landing-sample-btn-pdf:hover {
  background: rgba(251, 182, 206, 0.65);
  border-color: rgba(219, 39, 119, 0.35);
  color: #831843;
}

.landing-final {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.landing-final-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.landing-final-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-final-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
