/* Лендинги 20 продуктов. Три стиля: theme-a (деловой), theme-b (тёплый), theme-c (яркий).
   Цвет продукта — --accent из product.js. Шрифты лежат на нашем сервере (/_fonts). */

.kind-landing {
  --l-bg: #ffffff;
  --l-alt: #f5f7fa;
  --l-ink: #0f172a;
  --l-muted: #556070;
  --l-line: #e3e8ef;
  --l-card: #ffffff;
  --l-radius: 14px;
  --l-head: "Manrope Variable", "Segoe UI", Arial, sans-serif;
  --l-head-weight: 800;
  --l-btn-radius: 10px;
  --l-soft: color-mix(in srgb, var(--accent) 10%, #ffffff);
  --l-shadow: 0 18px 50px -18px rgba(15, 23, 42, 0.28);
  background: var(--l-bg);
  color: var(--l-ink);
  font-family: "Manrope Variable", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
.theme-b {
  --l-bg: #fbf7f1;
  --l-alt: #f3ece1;
  --l-ink: #2a2119;
  --l-muted: #6d5f52;
  --l-line: #e6dccd;
  --l-card: #fffdf9;
  --l-radius: 24px;
  --l-head: "Lora Variable", Georgia, serif;
  --l-head-weight: 700;
  --l-btn-radius: 999px;
  --l-soft: color-mix(in srgb, var(--accent) 12%, #fffaf2);
  --l-shadow: 0 22px 50px -24px rgba(80, 55, 30, 0.35);
}
.theme-c {
  --l-alt: #f3f5fb;
  --l-head: "Unbounded Variable", "Segoe UI", Arial, sans-serif;
  --l-head-weight: 700;
  --l-btn-radius: 999px;
  --l-shadow: 0 30px 80px -20px color-mix(in srgb, var(--accent) 55%, transparent);
}

.kind-landing h1, .kind-landing h2, .kind-landing h3 { font-family: var(--l-head); font-weight: var(--l-head-weight); letter-spacing: -0.01em; }
.theme-c h1, .theme-c h2 { letter-spacing: -0.02em; }
.kind-landing a { color: var(--accent); }
.l-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.l-narrow { max-width: 820px; }
.l-muted { color: var(--l-muted); font-size: 0.92rem; }
.kind-landing .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Кнопки */
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.75em 1.3em; border-radius: var(--l-btn-radius);
  background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 700; transition: transform 0.15s, filter 0.15s; }
.l-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.l-btn-ghost { background: transparent; color: var(--accent) !important; }
.l-btn-big { padding: 0.95em 1.6em; font-size: 1.05rem; }
.l-btn-small { padding: 0.5em 1em; font-size: 0.92rem; }

/* Шапка */
.l-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--l-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--l-line); }
.l-top-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.l-brand { font-family: var(--l-head); font-weight: var(--l-head-weight); font-size: 1.12rem; color: var(--l-ink) !important; text-decoration: none; display: flex; align-items: center; gap: 0.55rem; }
.l-brand i { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px var(--l-soft); }
.l-top nav { display: flex; gap: 1.4rem; margin-left: auto; }
.l-top nav a { color: var(--l-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.85; }
.l-top nav a:hover { opacity: 1; color: var(--accent); }

/* Первый экран */
.l-hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.theme-a .l-hero { background: radial-gradient(900px 400px at 85% 0%, var(--l-soft), transparent 70%), linear-gradient(var(--l-line) 1px, transparent 1px) 0 0 / 100% 48px; background-color: var(--l-bg); }
.theme-a .l-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--l-bg)); pointer-events: none; }
.theme-b .l-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -200px; border-radius: 50%; background: var(--l-soft); }
.theme-c .l-hero { background: radial-gradient(800px 500px at 80% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%), #0b1120; color: #f1f5f9; }
.l-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.l-badge { display: inline-block; padding: 0.35em 0.9em; border-radius: 999px; background: var(--l-soft); color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.theme-c .l-badge { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.l-hero h1 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); line-height: 1.14; margin: 0.55em 0 0.45em; text-wrap: balance; }
.theme-c .l-hero h1 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); line-height: 1.22; }
.l-lead { font-size: 1.15rem; color: var(--l-muted); margin: 0; }
.theme-c .l-lead { color: #cbd5e1; }
.l-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1.4rem; }
.theme-c .l-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,0.45); }
.l-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.l-facts li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: var(--l-muted); font-weight: 600; }
.theme-c .l-facts li { color: #cbd5e1; }
.l-facts svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.theme-c .l-facts svg { color: #fff; }

.l-shot { margin: 0; width: 100%; justify-self: center; box-sizing: border-box; border-radius: calc(var(--l-radius) - 2px); overflow: hidden; background: var(--l-card); box-shadow: var(--l-shadow); border: 1px solid var(--l-line); transform: none; }
.theme-c .l-shot { border-color: rgba(255,255,255,0.15); transform: none; }
.l-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: color-mix(in srgb, var(--l-alt) 80%, #fff); border-bottom: 1px solid var(--l-line); font-size: 0.8rem; color: var(--l-muted); }
.l-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d9e1; }
.l-shot-bar i:first-child { background: #ff6159; } .l-shot-bar i:nth-child(2) { background: #ffbd2e; } .l-shot-bar i:nth-child(3) { background: #28c941; }
.l-shot-bar span { margin-left: 8px; font-weight: 600; }
.l-shot img { display: block; width: 100%; height: auto; }
.l-shot figcaption { padding: 8px 14px; font-size: 0.78rem; color: var(--l-muted); background: var(--l-card); border-top: 1px solid var(--l-line); }
.l-shot-empty { min-height: 280px; display: grid; place-items: center; font-family: var(--l-head); font-size: 1.6rem; color: var(--accent); background: var(--l-soft); transform: none; }

/* Для кого */
.l-audience { padding: 22px 0; border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); background: var(--l-alt); }
.l-audience p { margin: 0; text-align: center; font-weight: 700; font-size: 1.05rem; }

/* Секции */
.l-sec { padding: 72px 0; }
.l-sec-alt { background: var(--l-alt); }
.l-sec h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1.4em; line-height: 1.2; }
.theme-c .l-sec h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.l-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-pain { background: var(--l-card); border: 1px solid var(--l-line); border-radius: var(--l-radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.theme-b .l-pain { box-shadow: 0 10px 30px -20px rgba(80,55,30,0.4); border-color: transparent; }
.l-pain svg { width: 26px; height: 26px; color: #e0742c; flex: none; margin-top: 2px; }
.l-pain p { margin: 0; font-weight: 600; }
.l-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.l-steps li { background: var(--l-card); border-radius: var(--l-radius); padding: 26px; border: 1px solid var(--l-line); }
.l-steps h3 { margin: 0.7em 0 0.35em; font-size: 1.15rem; }
.l-steps p { margin: 0; color: var(--l-muted); }
.l-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem; }
.theme-b .l-num { border-radius: 50%; }
.theme-c .l-num { border-radius: 50%; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.l-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.l-features li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 1.02rem; }
.l-features svg { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--l-soft); color: var(--accent); flex: none; }
.l-honest { margin-top: 32px; padding: 20px 24px; border-radius: var(--l-radius); border: 1px dashed var(--l-line); background: var(--l-alt); }
.l-honest ul { margin: 0.5em 0 0; padding-left: 1.2em; color: var(--l-muted); }

/* Цены */
.l-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.l-plan { background: var(--l-card); border: 1px solid var(--l-line); border-radius: var(--l-radius); padding: 26px; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; position: relative; }
.l-plan h3 { margin: 0; font-size: 1.1rem; }
.l-plan p { margin: 0; color: var(--l-muted); }
.l-plan .l-btn { margin-top: auto; }
.l-plan-main { border: 2px solid var(--accent); box-shadow: var(--l-shadow); }
.l-plan-free { background: var(--l-soft); border-color: transparent; }
.l-plan-tag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.25em 0.7em; border-radius: 999px; }
.l-price { font-family: var(--l-head); font-size: 2rem; font-weight: 800; }
.l-price small { font-size: 0.9rem; color: var(--l-muted); font-weight: 600; }

/* Вопросы */
.l-faq details { border-bottom: 1px solid var(--l-line); padding: 18px 4px; }
.l-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.l-faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.l-faq details[open] summary::after { content: "−"; }
.l-faq p { color: var(--l-muted); margin: 0.6em 0 0; }

/* Заявка */
.l-pilot { padding: 72px 0; background: var(--accent); color: #fff; }
.theme-c .l-pilot { background: radial-gradient(700px 400px at 100% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%), #0b1120; }
.l-pilot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.l-pilot h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.6em; }
.l-pilot p { opacity: 0.92; font-size: 1.08rem; }
.kind-landing .l-pilot p a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.l-form { background: var(--l-card); color: var(--l-ink); border-radius: var(--l-radius); padding: 26px; display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5); }
.l-form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.l-form input:not([type=checkbox]), .l-form textarea { font: inherit; font-weight: 500; padding: 0.7em 0.85em; border: 1px solid var(--l-line); border-radius: 10px; background: #fff; width: 100%; }
.l-form .l-check { display: flex; gap: 10px; font-weight: 500; font-size: 0.88rem; align-items: flex-start; }
.l-form .l-check input { margin-top: 3px; }

/* Подвал и липкая кнопка */
.l-footer { padding: 32px 0 40px; color: var(--l-muted); font-size: 0.9rem; }
.l-footer .l-wrap { display: grid; gap: 0.4rem; }
.l-sticky { display: none; }

@media (max-width: 900px) {
  .l-hero { padding: 40px 0 44px; }
  .l-hero-in, .l-pilot-in { grid-template-columns: 1fr; gap: 32px; }
  .l-shot { transform: none !important; }
  .l-pains, .l-steps { grid-template-columns: 1fr; }
  .l-features { grid-template-columns: 1fr; }
  .l-top nav a:not(:last-child) { display: none; }
  .l-top .l-btn-small { display: none; }
  .l-sec, .l-pilot { padding: 52px 0; }
  .l-footer { padding-bottom: 96px; }
  .l-sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; }
  .l-sticky .l-btn { width: 100%; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.45); }
}
