/* Публичный лендинг партнёрской программы — бренд ASUTLab */
.lp {
  --lp-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  margin: 0; color: var(--fg-primary);
  background-color: var(--bg-canvas);
  background-image: var(--lp-noise);
  background-blend-mode: soft-light;
}
.lp-top { background: var(--bg-canvas); border-bottom: var(--bw-1) solid var(--border-default);
  position: sticky; top: 0; z-index: 50; width: 100%; }
.lp-top-inner { display: flex; align-items: center; justify-content: space-between;
  width: min(1200px, 100% - 64px); margin: 0 auto; padding: var(--space-4) 0; }
.lp-brand { display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); color: var(--fg-primary); }
.lp-mark { height: 24px; width: auto; display: block; }
.lp-actions { display: flex; gap: var(--space-3); }

.lp-hero { margin: 0 auto; padding: 64px 0 var(--space-8); text-align: center; }
.lp-h1 { font-family: var(--font-display); font-size: 32px; line-height: 1.2; margin: 0 0 var(--space-4); }
.lp-lead { font-size: var(--t-body-lg, 18px); color: var(--c-steel-500); max-width: 640px; margin: 0 auto var(--space-6); }
.lp-cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.lp-btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--t-body-lg, 18px); }

/* Секция — фон во всю ширину экрана; контент строго в сетке 1200 */
.lp-section { padding: var(--space-9, 48px) 0; }
.lp-section > * { width: min(1200px, 100% - 64px); max-width: none; margin-left: auto; margin-right: auto; }
/* Чередование фона блоков, чтобы сайт не был однотонным (фон во всю ширину) */
.lp-section:nth-of-type(even) { background-color: var(--bg-surface); }
/* Деликатные градиенты + noise на элементах */
.lp-section.lp-contact { background-image:
    linear-gradient(135deg, var(--c-signal-50) 0%, transparent 55%), var(--lp-noise);
  background-blend-mode: normal, soft-light; }
.lp-hero { background-image: radial-gradient(120% 90% at 50% 0%, var(--c-signal-50) 0%, transparent 60%); }
.lp-step-n { background-image: linear-gradient(135deg, var(--c-signal-100, var(--c-signal-50)), var(--c-signal-50)); }
.lp-chartcard { background: var(--bg-canvas); background-image: none;
  border: none; box-shadow: none; }
.lp-h2 { font-family: var(--font-display); font-size: var(--t-h2); margin: 0 auto var(--space-2);
  display: flex; align-items: center; justify-content: flex-start; gap: var(--space-3); text-align: left; }
.lp-h2 svg { width: 26px; height: 26px; color: var(--c-signal-600); flex: 0 0 26px; }
.lp-sub { color: var(--c-steel-500); font-size: var(--t-body-lg, 18px); text-align: left;
  margin: 0 auto var(--space-8); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.lp-step { padding: var(--space-5); }
.lp-step h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--t-h3); }
.lp-step-n { width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--c-signal-50); color: var(--c-signal-700); font-family: var(--font-mono, monospace); font-weight: 700; }
.lp-terms { padding: var(--space-5) var(--space-6); }
.lp-terms ul { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-3); }
.lp-terms a { color: var(--fg-accent); }

.lp-footer { display: flex; justify-content: space-between; width: min(1200px, 100% - 64px); margin: 0 auto;
  padding: var(--space-6) 0; border-top: var(--bw-1) solid var(--border-default); }
.lp-footer a { text-decoration: none; }

/* Что даём + 4 преимущества */
.lp-offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.lp-point { padding: var(--space-5); }
.lp-point h3 { margin: 0 0 var(--space-2); font-size: var(--t-h3); }

/* Для кого — карточки ЦА с выгодами */
.lp-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.lp-aud { padding: var(--space-5); }
.lp-aud svg { width: 28px; height: 28px; color: var(--c-signal-600); margin-bottom: var(--space-2); }
.lp-aud h3 { margin: 0 0 var(--space-2); font-size: var(--t-h3); }
/* Чипы (legacy) */
.lp-chip-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.lp-chip { display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5); border-radius: var(--r-pill);
  background: var(--bg-surface); border: var(--bw-1) solid var(--border-default);
  font-weight: 500; color: var(--fg-primary); }
.lp-chip svg { width: 18px; height: 18px; color: var(--c-signal-600); flex: 0 0 18px; }

/* Как стать партнёром — сетка шагов с выгодами */
.lp-join { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.lp-benefit { display: flex; align-items: flex-start; gap: var(--space-2);
  color: var(--c-signal-700); font-weight: 600; margin: var(--space-3) 0 0; }
.lp-benefit svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }

/* FAQ */
.lp-faq { display: grid; gap: var(--space-3); }
.lp-faq details { padding: var(--space-4) var(--space-5); }
.lp-faq summary { cursor: pointer; font-weight: 600; color: var(--fg-primary); }
.lp-faq details[open] summary { color: var(--c-signal-700); margin-bottom: var(--space-2); }
.lp-faq p { margin: 0; }

/* Контакты + финальный CTA */
.lp-contact { text-align: center; }
.lp-contact .lp-h2 { justify-content: center; text-align: center; }
.lp-contact .lp-sub { text-align: center; max-width: 760px; }
.lp-usp { list-style: none; margin: 0 0 var(--space-6); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: center; }
.lp-usp li { display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; color: var(--fg-primary); }
.lp-usp svg { width: 18px; height: 18px; color: var(--c-signal-600); flex: 0 0 18px; }
.lp-contacts { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; margin-top: var(--space-5); }
.lp-contacts a { color: var(--fg-accent); text-decoration: none; font-weight: 500; }

/* Hero — две колонки: текст + превью кабинета */
.lp-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8);
  align-items: center; text-align: left; width: min(1200px, 100% - 64px); max-width: none; }
.lp-hero-text { min-width: 0; }
.lp-hero .lp-lead, .lp-hero .lp-cta { margin-left: 0; margin-right: 0; }
.lp-hero .lp-cta { justify-content: flex-start; }
.lp-hero-visual { display: block; }
.lp-hero-visual svg { width: 100%; height: auto; display: block; }

/* Графики на лендинге */
.lp-chart { width: 100%; height: 200px; display: block; }
.lp-chart-area { fill: var(--c-signal-500); opacity: .16; }
.lp-chart-line { fill: none; stroke: var(--c-signal-600); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lp-bars { display: flex; align-items: flex-end; gap: var(--space-3); height: 200px; padding-top: var(--space-4); }
.lp-bar { flex: 1; position: relative; min-height: 6px;
  background: linear-gradient(180deg, var(--c-signal-400, #F2954E) 0%, var(--c-signal-600) 100%);
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.lp-bar span { position: absolute; top: -22px; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono, monospace); font-size: var(--t-caption); color: var(--fg-primary); }
.lp-bar small { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center;
  font-size: var(--t-caption); color: var(--c-steel-500); }
.lp-chartcard { max-width: 1200px; margin: 0 auto; padding: var(--space-6); }
.lp-cap { text-align: center; color: var(--c-steel-500); margin-top: var(--space-5); }

/* Воронка «путь клиента» */
.lp-funnel { display: grid; gap: var(--space-3); max-width: 1200px; margin: 0 auto; }
.lp-funnel-row { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: var(--space-3); }
.lp-funnel-label { font-size: var(--t-caption); color: var(--c-steel-500); }
.lp-funnel-track { background: var(--bg-canvas); border: var(--bw-1) solid var(--border-default); border-radius: var(--r-pill); height: 32px; overflow: hidden; }
.lp-funnel-fill { height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(238,106,31,0) 0%, var(--c-signal-400, #F2954E) 45%, var(--c-signal-600) 100%); }
.lp-funnel-val { font-family: var(--font-mono, monospace); text-align: right; }

/* Иконки в карточках преимуществ */
.lp-point .lp-ic { width: 28px; height: 28px; color: var(--c-signal-600); margin-bottom: var(--space-2); }

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; text-align: center; }
  .lp-hero .lp-cta { justify-content: center; }
  .lp-hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .lp-top-inner { padding: var(--space-3) 0; }
  .lp-steps, .lp-offer, .lp-audience { grid-template-columns: 1fr; }
  .lp-hero { padding: var(--space-6) var(--space-4); }
  .lp-flow { flex-direction: column; }
  .lp-flow i { transform: rotate(90deg); }
  .lp-funnel-row { grid-template-columns: 110px 1fr 56px; }
}

/* Сдержанные анимации (уважают reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-text, .lp-point, .lp-step, .lp-chartcard, .lp-funnel { animation: lp-fade-up .4s ease-out both; }
  @keyframes lp-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .lp-point, .lp-step, .lp-chip { transition: transform .15s ease, border-color .15s ease; }
  .lp-point:hover, .lp-step:hover, .lp-chip:hover { transform: translateY(-2px); border-color: var(--c-signal-400); }
  .lp-chart-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: lp-draw 1.4s ease .2s forwards; }
  @keyframes lp-draw { to { stroke-dashoffset: 0; } }
  .lp-chart-area { opacity: 0; animation: lp-area 1s ease .4s forwards; }
  @keyframes lp-area { to { opacity: .16; } }
  /* Столбцы «Пример дохода» — растут при попадании блока в видимую область (.in-view) */
  .lp-bars .lp-bar { transform: scaleY(0); transform-origin: bottom; }
  .lp-bars.in-view .lp-bar { animation: lp-grow .7s var(--ease-out, ease-out) forwards; }
  .lp-bars.in-view .lp-bar:nth-child(1) { animation-delay: .05s; }
  .lp-bars.in-view .lp-bar:nth-child(2) { animation-delay: .18s; }
  .lp-bars.in-view .lp-bar:nth-child(3) { animation-delay: .31s; }
  .lp-bars.in-view .lp-bar:nth-child(4) { animation-delay: .44s; }
  .lp-bars.in-view .lp-bar:nth-child(5) { animation-delay: .57s; }
  @keyframes lp-grow { to { transform: scaleY(1); } }
  .lp-funnel .lp-funnel-fill { transform: scaleX(0); transform-origin: left; }
  .lp-funnel.in-view .lp-funnel-fill { animation: lp-funnelbar .8s var(--ease-out, ease-out) .1s forwards; }
  @keyframes lp-funnelbar { to { transform: scaleX(1); } }
  .lp-hero-visual svg .hv-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lp-draw 1.6s ease .3s forwards; }
}

/* Hover на элементах графиков лендинга */
.lp-bar, .lp-funnel-fill { transition: filter .12s ease; }
.lp-bar:hover, .lp-funnel-fill:hover { filter: brightness(.92); }

/* Hero-превью: KPI-плашки матового стекла над графиком */
.hv-card { overflow: hidden; display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--bg-surface); border: var(--bw-1) solid var(--border-default);
  border-radius: 12px; padding: var(--space-5); }
.hv-chart { width: 100%; height: 150px; display: block; overflow: visible; }
.hv-area { fill: url(#hvArea); }
.hv-line { fill: none; stroke: url(#hvLine); stroke-width: 3;
  vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.hv-grid line { stroke: var(--border-subtle); stroke-width: 1;
  vector-effect: non-scaling-stroke; stroke-dasharray: 4 5; }
.hv-dot { fill: var(--c-signal-600); }
.hv-dot-halo { fill: var(--c-signal-500); opacity: .35; }
.hv-title { font-family: var(--font-display); font-weight: 700; color: var(--fg-primary); }
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.hv-kpi { background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(9px) saturate(1.15); backdrop-filter: blur(9px) saturate(1.15);
  border: var(--bw-1) solid rgba(255,255,255,.65); border-radius: 8px; padding: var(--space-3); }
.hv-kpi.accent { background: rgba(253,241,232,.5); }
.hv-kpi-l { display: block; font-size: var(--t-caption); color: var(--fg-secondary); }
.hv-kpi-n { display: block; font-family: var(--font-mono, monospace); font-size: 20px;
  color: var(--fg-primary); margin-top: 4px; }
.hv-kpi.accent .hv-kpi-n { color: var(--c-signal-700); }

@media (max-width: 980px) { .lp-join { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-join { grid-template-columns: 1fr; } }

/* Калькулятор дохода — плашка в цвет фона, минимум обводок */
.lp-calc { background: var(--bg-canvas); background-image: none; border: none; box-shadow: none;
  padding: var(--space-6); display: grid; gap: var(--space-6); }
.lp-calc-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.lp-calc-field { display: grid; gap: var(--space-2); }
.lp-calc-cap { font-size: var(--t-caption); color: var(--fg-secondary); display: flex;
  justify-content: space-between; gap: var(--space-2); }
.lp-calc-cap output { font-family: var(--font-mono, monospace); font-weight: 600; color: var(--fg-primary); }
.lp-calc input[type="range"] { width: 100%; accent-color: var(--c-signal-500); height: 26px; }
.lp-calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.lp-calc-res { padding: var(--space-4) var(--space-5); border-radius: 10px;
  background: var(--bg-surface); border: none; }
.lp-calc-res.accent { background: var(--c-signal-50); }
.lp-calc-l { display: block; font-size: var(--t-caption); color: var(--fg-secondary); }
.lp-calc-n { display: block; font-family: var(--font-mono, monospace); font-size: 24px;
  color: var(--fg-primary); margin-top: var(--space-1); }
.lp-calc-res.accent .lp-calc-n { color: var(--c-signal-700); }
.lp-calc-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  text-align: left; }
.lp-calc-ctahint { font-size: var(--t-caption); color: var(--c-steel-500); }
@media (max-width: 720px) {
  .lp-calc-controls, .lp-calc-results { grid-template-columns: 1fr; }
}

/* Пунктирная сетка под столбцами «Пример дохода» */
.lp-bars { position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='48'%3E%3Cline x1='0' y1='0.5' x2='12' y2='0.5' stroke='%23DEDBD4' stroke-width='1' stroke-dasharray='3 4'/%3E%3C/svg%3E");
  background-repeat: repeat; background-position: left bottom; }

/* Доп. анимации графиков (уважают reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .hv-dot-halo { transform-box: fill-box; transform-origin: center;
    animation: hv-pulse 2.2s ease-out infinite; }
  @keyframes hv-pulse {
    0%   { transform: scale(1);   opacity: .45; }
    70%  { transform: scale(3.2); opacity: 0; }
    100% { transform: scale(3.2); opacity: 0; }
  }
  .hv-dot { transform-box: fill-box; transform-origin: center; animation: hv-dot-in .5s ease-out 1.1s both; }
  @keyframes hv-dot-in { from { transform: scale(0); } to { transform: scale(1); } }
  /* лёгкий блик по столбцам */
  .lp-bars.in-view .lp-bar::after { content: ""; position: absolute; inset: 0;
    border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.5), transparent 40%);
    opacity: 0; animation: lp-shine .9s ease-out .6s forwards; }
  @keyframes lp-shine { from { opacity: .5; } to { opacity: 0; } }
}

/* График «Пример дохода» — линия в стиле hero */
.lp-linechart { width: 100%; height: auto; display: block; }
.lc-grid line { stroke: var(--border-subtle); stroke-width: 1; stroke-dasharray: 4 5; }
.lc-area { fill: url(#incArea); }
.lc-line { fill: none; stroke: url(#incLine); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.lc-dots circle { fill: var(--bg-surface); stroke: var(--c-signal-600); stroke-width: 3; }
.lc-vals text { font-family: var(--font-mono, monospace); font-size: 15px; font-weight: 600;
  fill: var(--fg-primary); text-anchor: middle; }
.lc-xlabels text { font-size: 13px; fill: var(--c-steel-500); text-anchor: middle; }

@media (prefers-reduced-motion: no-preference) {
  .lp-linechart .lc-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .lp-linechart.in-view .lc-line { animation: lc-draw 1.3s ease forwards; }
  @keyframes lc-draw { to { stroke-dashoffset: 0; } }
  .lp-linechart .lc-area { opacity: 0; }
  .lp-linechart.in-view .lc-area { animation: lc-fade 1s ease .3s forwards; }
  @keyframes lc-fade { to { opacity: 1; } }
  .lp-linechart .lc-dots circle, .lp-linechart .lc-vals text {
    opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
  .lp-linechart.in-view .lc-dots circle { animation: lc-pop .4s ease-out forwards; }
  .lp-linechart.in-view .lc-vals text { animation: lc-pop .4s ease-out forwards; }
  .lp-linechart.in-view .lc-dots circle:nth-child(1), .lp-linechart.in-view .lc-vals text:nth-child(1) { animation-delay: .5s; }
  .lp-linechart.in-view .lc-dots circle:nth-child(2), .lp-linechart.in-view .lc-vals text:nth-child(2) { animation-delay: .75s; }
  .lp-linechart.in-view .lc-dots circle:nth-child(3), .lp-linechart.in-view .lc-vals text:nth-child(3) { animation-delay: 1s; }
  .lp-linechart.in-view .lc-dots circle:nth-child(4), .lp-linechart.in-view .lc-vals text:nth-child(4) { animation-delay: 1.25s; }
  @keyframes lc-pop { to { opacity: 1; transform: scale(1); } }
}
