/* ============================================================
   Ainaryx — marketing landing styles (lp- namespace)
   Theme-aware via Bootstrap's [data-bs-theme].
   ============================================================ */

/* Inter (variable, OFL) — ОДИН файл на все веса (100–900) вместо пяти статических:
   один запрос вместо пяти и меньше байт, когда на странице используются разные веса. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Inter.ttf") format("truetype-variations");
}
/* Space Grotesk (variable) — только для брендового логотипа-надписи. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk.ttf") format("truetype");
}

/* minimal reset — Bootstrap Reboot is no longer loaded */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }

:root {
  --lp-bg: #fbfaf8;
  --lp-surface: #ffffff;
  --lp-surface-2: #f3f1ec;
  --lp-border: #e6e2da;
  --lp-border-strong: #d8d3c8;
  --lp-text: #23211d;
  --lp-muted: #6a655c;
  --lp-faint: #9a948a;
  --lp-accent: #5551d6;
  --lp-accent-strong: #4340c0;
  --lp-accent-soft: rgba(85, 81, 214, 0.1);
  --lp-shadow: 0 4px 20px rgba(35, 33, 29, 0.07), 0 1px 3px rgba(35, 33, 29, 0.05);
  --lp-radius: 16px;
}

[data-bs-theme="dark"] {
  --lp-bg: #0f0f11;
  --lp-surface: #17171a;
  --lp-surface-2: #1f1f22;
  --lp-border: #2a2a2e;
  --lp-border-strong: #3a3a40;
  --lp-text: #ece9e3;
  --lp-muted: #9d988e;
  --lp-faint: #6f6a61;
  --lp-accent: #8380ec;
  --lp-accent-strong: #9a98f0;
  --lp-accent-soft: rgba(131, 128, 236, 0.16);
  --lp-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
}

:root {
  /* override Bootstrap's body font so every component uses Inter */
  --bs-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body,
.lp-header,
.lp-footer,
h1, h2, h3, h4, h5, h6,
.lp-btn,
.btn,
.form-control,
.card {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--lp-bg);
  color: var(--lp-text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

#main { padding: 0; }
main > .container { padding: 0; min-height: 0; }

.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.lp-container--narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.1s, color 0.18s;
  white-space: nowrap;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn--lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.lp-btn--block { width: 100%; }
.lp-btn--primary { background: var(--lp-accent); color: #fff; border-color: var(--lp-accent); }
.lp-btn--primary:hover { background: var(--lp-accent-strong); color: #fff; }
.lp-btn--outline { background: transparent; color: var(--lp-text); border-color: var(--lp-border-strong); }
.lp-btn--outline:hover { background: var(--lp-surface-2); color: var(--lp-text); }
.lp-btn--ghost { background: transparent; color: var(--lp-muted); }
.lp-btn--ghost:hover { background: var(--lp-surface-2); color: var(--lp-text); }

/* ---------- header ---------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--lp-bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.lp-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--lp-text); }
.lp-brand__mark {
  display: grid; place-items: center;
  width: 28px; height: 28px;
}
.lp-brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lp-brand__name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; font-size: 19px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.lp-nav { display: flex; gap: 2px; margin-left: 6px; }
.lp-nav a {
  padding: 6px 10px; border-radius: 7px;
  color: var(--lp-muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.lp-nav a:hover { background: var(--lp-surface-2); color: var(--lp-text); }
.lp-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lp-header .lp-btn { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.lp-icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; border: none; background: transparent; color: var(--lp-muted); cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lp-icon-btn:hover { background: var(--lp-surface-2); color: var(--lp-text); }
.lp-icon-btn svg { display: block; }
.lp-theme-moon, .lp-theme-sun { display: inline-flex; }
.lp-theme-sun { display: none; }
[data-bs-theme="dark"] .lp-theme-moon { display: none; }
[data-bs-theme="dark"] .lp-theme-sun { display: inline-flex; }

/* ---------- hero ---------- */
.lp-hero {
  position: relative;
  padding: 92px 0 80px;
  text-align: center;
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 520px;
  background: radial-gradient(46% 60% at 50% 0%, var(--lp-accent-soft), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}
.lp-hero > * { position: relative; }
.lp-hero__title {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 860px;
  margin: 0 auto 20px;
}
.lp-accent { color: var(--lp-accent); }
.lp-eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--lp-accent); margin-bottom: 14px;
}
.lp-hero__lead {
  max-width: 600px; margin: 0 auto 32px;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55; color: var(--lp-muted);
}
.lp-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Продуктовый скриншот под hero — на всю ширину контейнера (скрин широкий, 1920×945). */
.lp-hero__shot {
  width: 100%;
  margin: 46px auto 0;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--lp-shadow);
  background: var(--lp-surface-2);
}
.lp-hero__shot img { width: 100%; height: auto; display: block; }

/* model marks trust strip (app-style monograms) */
.lp-hero__trust {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 40px; flex-wrap: wrap; justify-content: center;
}
.lp-logos { display: inline-flex; align-items: center; }
.lp-logo {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; margin-left: -10px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, var(--lp-surface));
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
  box-shadow: 0 0 0 3px var(--lp-bg), 0 2px 5px rgba(0, 0, 0, 0.06);
  transition: transform 0.16s ease;
}
.lp-logo:first-child { margin-left: 0; }
.lp-logo:hover { transform: translateY(-2px); z-index: 1; }
[data-bs-theme="dark"] .lp-logo { box-shadow: 0 0 0 3px var(--lp-bg), 0 2px 7px rgba(0, 0, 0, 0.4); }
.lp-hero__trust-text { font-size: 14px; color: var(--lp-muted); font-weight: 500; margin-left: 6px; }

/* ---------- sections ---------- */
.lp-section { padding: 72px 0; }
.lp-section--alt { background: var(--lp-surface-2); }
.lp-section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.lp-section__head h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 750;
  letter-spacing: -0.025em; margin-bottom: 12px;
}
.lp-section__head p { font-size: 17px; color: var(--lp-muted); margin: 0; }

.lp-grid { display: grid; gap: 18px; }
.lp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* feature cards */
.lp-card {
  display: flex; flex-direction: column;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 26px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); border-color: var(--lp-border-strong); }
.lp-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--lp-accent-soft); color: var(--lp-accent); margin-bottom: 16px;
}
.lp-card h3 { font-size: 18px; font-weight: 680; margin-bottom: 8px; letter-spacing: -0.01em; }
.lp-card p { font-size: 14.5px; line-height: 1.5; color: var(--lp-muted); flex: 1; margin: 0; }
.lp-card__link {
  margin-top: 16px; font-size: 14px; font-weight: 600;
  color: var(--lp-accent); text-decoration: none;
}
.lp-card__link:hover { text-decoration: underline; }
/* features: горизонтальная карточка — иконка слева, текст справа.
   Специфичность .lp-card.lp-card--row (0,2,0) — чтобы победить второй глобальный
   .lp-card{flex-direction:column} ниже по файлу (карточки [[CARDS]] в статьях). */
.lp-card.lp-card--row { flex-direction: row; align-items: flex-start; gap: 16px; }
.lp-card--row .lp-card__icon { margin-bottom: 0; flex-shrink: 0; }
.lp-card--row .lp-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* benefits */
.lp-benefit {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lp-benefit:hover { border-color: var(--lp-border-strong); box-shadow: var(--lp-shadow); transform: translateY(-2px); }
.lp-benefit__head { display: flex; align-items: center; gap: 11px; }
.lp-benefit__check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--lp-accent-soft); color: var(--lp-accent);
}
.lp-benefit h3 { font-size: 16px; font-weight: 660; margin: 0; }
.lp-benefit p { font-size: 14px; color: var(--lp-muted); margin: 0; line-height: 1.55; }

/* models */
.lp-model {
  display: flex; gap: 14px; align-items: center;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px; padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-model:hover { border-color: var(--lp-border-strong); box-shadow: var(--lp-shadow); }
.lp-model__mark {
  flex-shrink: 0; width: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c, var(--lp-accent));
}
.lp-model h3 { font-size: 16px; font-weight: 680; margin-bottom: 3px; }
.lp-model__company { font-size: 12px; font-weight: 500; color: var(--lp-faint); }
.lp-model p { font-size: 13.5px; color: var(--lp-muted); margin: 0; line-height: 1.45; }

/* steps */
.lp-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.lp-steps li {
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: 14px; padding: 24px;
}
.lp-steps__n {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--lp-accent); color: #fff;
  font-weight: 700; flex-shrink: 0;
}
.lp-steps h3 { font-size: 17px; font-weight: 660; margin-bottom: 6px; }
.lp-steps p { font-size: 14px; color: var(--lp-muted); margin: 0; }
/* На главной номер — слева от текста (иначе перенос и пустое место сверху).
   :not(.lp-step) — чтобы не задеть шаги в теле статей. */
.lp-steps li:not(.lp-step) { display: flex; gap: 14px; align-items: flex-start; }
.lp-steps__body { min-width: 0; }

/* pricing */
.lp-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius); padding: 26px 22px;
}
.lp-plan--hot { border-color: var(--lp-accent); box-shadow: 0 0 0 1px var(--lp-accent), var(--lp-shadow); }
.lp-plan__badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; color: var(--lp-accent);
  background: var(--lp-accent-soft); padding: 3px 10px; border-radius: 999px;
}
.lp-plan h3 { font-size: 19px; font-weight: 720; margin-bottom: 8px; }
.lp-plan__price { font-size: 28px; font-weight: 780; letter-spacing: -0.02em; margin-bottom: 18px; }
.lp-plan__price span { font-size: 14px; font-weight: 500; color: var(--lp-muted); }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.lp-plan li { font-size: 14px; color: var(--lp-text); padding-left: 24px; position: relative; }
.lp-plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--lp-accent); font-weight: 700;
}

/* faq */
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq__item {
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: 12px; padding: 4px 20px;
}
.lp-faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 620; font-size: 16px; display: flex; justify-content: space-between; align-items: center;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after { content: "+"; color: var(--lp-faint); font-weight: 400; font-size: 22px; margin-left: 16px; }
.lp-faq__item[open] summary::after { content: "−"; }
.lp-faq__item p { margin: 0 0 16px; color: var(--lp-muted); font-size: 15px; line-height: 1.6; }

/* Аккордеон: плавное появление контента при раскрытии + мягкий маркер.
   Работает и для FAQ главной (.lp-faq__item), и для FAQ в статьях (.lp-faq details). */
@keyframes lp-acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lp-faq__item summary::after,
.lp-faq summary::after { transition: transform 0.2s ease, color 0.2s ease; }
.lp-faq__item[open] > p,
.lp-faq details[open] > summary + * { animation: lp-acc-in 0.28s ease; }
@media (prefers-reduced-motion: reduce) {
  .lp-faq__item[open] > p,
  .lp-faq details[open] > summary + * { animation: none; }
}

/* prose + cta band */
.lp-prose h2 { font-size: 26px; font-weight: 730; letter-spacing: -0.02em; margin: 46px 0 18px; }
.lp-prose h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 32px 0 12px; color: var(--lp-text); }
.lp-prose h4 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--lp-text); }
.lp-prose > *:first-child { margin-top: 0; }
.lp-prose p { font-size: 16px; line-height: 1.7; color: var(--lp-muted); margin-bottom: 18px; }
.lp-prose strong { color: var(--lp-text); font-weight: 650; }
.lp-prose a:not([class]) { color: var(--lp-accent); text-decoration: underline; text-underline-offset: 2px; }
.lp-prose ul, .lp-prose ol { margin: 0 0 20px; color: var(--lp-muted); }
.lp-prose li { font-size: 16px; line-height: 1.7; margin-bottom: 9px; }
.lp-prose li::marker { color: var(--lp-accent); }
.lp-prose blockquote {
  margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--lp-accent);
  color: var(--lp-text); font-style: italic;
}
/* comparison / spec tables */
.lp-prose table {
  width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px;
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden;
}
.lp-prose thead th { background: var(--lp-surface-2); color: var(--lp-text); font-weight: 650; }
.lp-prose th, .lp-prose td {
  padding: 12px 16px; text-align: left; vertical-align: top; color: var(--lp-muted);
  border-bottom: 1px solid var(--lp-border); border-right: 1px solid var(--lp-border);
}
.lp-prose th:last-child, .lp-prose td:last-child { border-right: none; }
.lp-prose tbody tr:last-child td { border-bottom: none; }
.lp-prose td strong { color: var(--lp-text); }
.lp-cta-band {
  margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(140deg, var(--lp-accent-soft), var(--lp-surface));
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 28px 30px;
}
.lp-cta-band h3 { font-size: 21px; font-weight: 720; margin-bottom: 4px; margin-top: 0px; }
.lp-cta-band p { font-size: 15px; color: var(--lp-muted); margin: 0; }

/* footer */
.lp-footer { background: var(--lp-surface-2); border-top: 1px solid var(--lp-border); padding: 54px 0 26px; }
.lp-footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.lp-footer__tagline { margin-top: 14px; font-size: 14px; color: var(--lp-muted); line-height: 1.55; max-width: 320px; }
.lp-footer__col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lp-faint); margin-bottom: 14px; }
.lp-footer__col a { display: block; color: var(--lp-muted); text-decoration: none; font-size: 14px; padding: 5px 0; }
.lp-footer__col a:hover { color: var(--lp-text); }
.lp-footer__bottom {
  max-width: 1200px; margin: 36px auto 0; padding: 20px 28px 0;
  border-top: 1px solid var(--lp-border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--lp-muted);
}
.lp-footer__muted { color: var(--lp-faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lp-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lp-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-nav { display: none; }
  .lp-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lp-grid--4, .lp-grid--3, .lp-grid--2 { grid-template-columns: 1fr; }
  .lp-hero { padding: 60px 0 52px; }
  .lp-section { padding: 52px 0; }
  .lp-hide-sm { display: none; }
  .lp-footer__inner { grid-template-columns: 1fr 1fr; }
  .lp-cta-band { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SEO landing pages (models, prompts) + detail pages
   ============================================================ */

.lp-page-head {
  padding: 56px 0 8px;
  text-align: center;
  background: radial-gradient(60% 60% at 50% -20%, var(--lp-accent-soft), transparent 70%);
}
.lp-page-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 780; letter-spacing: -0.03em; margin: 8px 0 14px;
}
.lp-page-lead { max-width: 640px; margin: 0 auto; font-size: 17px; color: var(--lp-muted); line-height: 1.55; }

.lp-section__more { text-align: center; margin-top: 32px; }

/* model as clickable link card */
.lp-model--link { text-decoration: none; cursor: pointer; }
.lp-model__body { display: flex; flex-direction: column; min-width: 0; }
.lp-model__title { font-size: 16px; font-weight: 680; color: var(--lp-text); margin-bottom: 3px; }
.lp-model__desc { font-size: 13.5px; color: var(--lp-muted); line-height: 1.45; }

/* tags */
.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lp-tags--lg { margin: 8px 0 4px; }
.lp-tag {
  font-size: 12px; font-weight: 600; color: var(--lp-accent);
  background: var(--lp-accent-soft); padding: 3px 10px; border-radius: 999px;
}

/* prompt card as link */
.lp-card--link { text-decoration: none; }
.lp-card__cat {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--lp-faint); margin-bottom: 10px;
}

/* media card (обложка сверху + тело). .lp-card.lp-card--media — двойная спецификация,
   чтобы победить .lp-card{padding} ниже по файлу (иначе была рамка + двойной паддинг) */
.lp-card.lp-card--media { padding: 0; overflow: hidden; text-decoration: none; }
.lp-card__media { display: block; aspect-ratio: 16 / 10; background: var(--lp-surface-2); }
.lp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card--media .lp-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 15px 17px; }
.lp-figure--cover { margin: 0 0 26px; }
.lp-figure--cover img { width: 100%; border-radius: var(--lp-radius); display: block; }

/* split-хедер: H1 сверху, слева обложка-панель, справа вступление (лид + описание + бейджи + CTA).
   Обложка ТЯНЕТСЯ по высоте текстовой колонки (align-items: stretch) и обрезается по object-fit —
   так блок сам подстраивается: больше текста справа → выше обложка, без «воздуха» и без узкого баннера. */
.lp-hero-split {
  display: flex; align-items: stretch;
  gap: clamp(20px, 3vw, 32px); margin: 18px 0 34px;
}
.lp-hero-split__media {
  flex: 0 0 clamp(240px, 38%, 340px); min-height: 210px;
  margin: 0; border-radius: var(--lp-radius);
  overflow: hidden; background: var(--lp-surface-2);
}
.lp-hero-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-hero-split__intro {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 15px; align-items: flex-start;
}
.lp-hero-split__intro .lp-detail__lead {
  margin: 0; font-size: 20px; line-height: 1.5; color: var(--lp-text);
}
.lp-hero-split__intro .lp-detail__intro {
  margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--lp-muted);
}
.lp-hero-split__intro .lp-detail__cta,
.lp-hero-split__intro .lp-tags { margin: 0; }
@media (max-width: 720px) {
  .lp-hero-split { flex-direction: column; gap: 16px; }
  .lp-hero-split__media { flex-basis: auto; aspect-ratio: 16 / 10; min-height: 0; }
}

/* галерея примеров (шаблоны) — фото + видео единой сеткой */
.lp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 30px; }
.lp-gallery__item {
  margin: 0; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-surface-2);
}
.lp-gallery__item img, .lp-gallery__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Плитка-пример на главной: ссылка с обложкой + подпись поверх */
.lp-gallery__link { position: relative; text-decoration: none; color: #fff; display: block; }
.lp-gallery__link img { transition: transform 0.35s ease; }
.lp-gallery__link:hover img { transform: scale(1.05); }
.lp-gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  font-size: 13px; font-weight: 600; line-height: 1.25; color: #fff;
  background: linear-gradient(to top, rgba(10, 8, 20, 0.72), transparent);
}

/* мобильная адаптация статейных компонентов */
@media (max-width: 640px) {
  .lp-container { padding: 0 16px; }
  .lp-cards, .lp-keyfacts { grid-template-columns: 1fr; }
  .lp-proscons { grid-template-columns: 1fr; }
  .lp-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lp-prose h2 { font-size: 22px; margin-top: 34px; }
  .lp-prose h3 { font-size: 18px; }
  .lp-prose p, .lp-prose li { font-size: 15.5px; }
  /* широкие таблицы — горизонтальный скролл вместо переполнения */
  .lp-detail__body { overflow-x: hidden; }
  .lp-prose table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* category filter (prompts) */
.lp-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.lp-filter__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--lp-border); background: var(--lp-surface);
  color: var(--lp-text); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.lp-filter__chip:hover { border-color: var(--lp-border-strong); background: var(--lp-surface-2); }
.lp-filter__chip.is-active { background: var(--lp-accent); border-color: var(--lp-accent); color: #fff; }
.lp-filter__n {
  font-size: 12px; font-weight: 700; color: var(--lp-faint);
  background: var(--lp-surface-2); border-radius: 999px; padding: 1px 8px; line-height: 1.5;
}
.lp-filter__chip.is-active .lp-filter__n { color: #fff; background: rgba(255, 255, 255, 0.22); }
.lp-empty { color: var(--lp-muted); padding: 24px 0; }

/* detail page */
.lp-detail { padding: 48px 0 72px; }
.lp-detail__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.lp-detail__mark {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c, var(--lp-accent));
}
.lp-detail h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 780; letter-spacing: -0.03em; }
.lp-detail__lead { font-size: 18px; color: var(--lp-muted); line-height: 1.55; margin: 6px 0 18px; }
.lp-detail__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 30px; }
.lp-detail__intro { font-size: 17px; line-height: 1.7; color: var(--lp-text); margin-bottom: 8px; }
.lp-detail__body { margin-top: 8px; }
.lp-detail__body h2 { font-size: 24px; font-weight: 730; letter-spacing: -0.02em; margin: 30px 0 14px; }
.lp-detail__body ul { padding-left: 22px; margin-bottom: 18px; }
.lp-detail__body li { font-size: 16px; line-height: 1.7; color: var(--lp-muted); margin-bottom: 6px; }

.lp-related { margin-top: 52px; }
.lp-related h2 { font-size: 22px; font-weight: 720; margin-bottom: 20px; }

/* prompt box */
.lp-promptbox {
  border: 1px solid var(--lp-border); border-radius: 14px; overflow: hidden;
  background: var(--lp-surface); margin: 8px 0 4px;
}
.lp-promptbox__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--lp-surface-2); border-bottom: 1px solid var(--lp-border);
  font-size: 13px; font-weight: 600; color: var(--lp-muted);
}
.lp-copy {
  border: none; background: transparent; color: var(--lp-accent); font-weight: 600;
  font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 7px;
}
.lp-copy:hover { background: var(--lp-accent-soft); }
.lp-promptbox__text {
  margin: 0; padding: 18px 16px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px; line-height: 1.6; color: var(--lp-text); white-space: pre-wrap; word-break: break-word;
}
/* [переменные]-плейсхолдеры в промпте — мягкая подсветка (что подставить под себя) */
.lp-promptbox__text .lp-var {
  color: var(--lp-accent);
  background: var(--lp-accent-soft);
  border-radius: 4px;
  padding: 0 3px;
}

/* breadcrumbs (Bootstrap widget) tone-down */
.breadcrumb { font-size: 13px; }

/* ============================================================
   Breadcrumbs, pager, packs, long SEO text
   ============================================================ */

.lp-breadcrumb {
  border-bottom: 1px solid var(--lp-border);
  background: var(--lp-bg);
}
.lp-breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin: 0; padding: 12px 0; font-size: 13.5px;
}
.lp-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.lp-breadcrumb a { color: var(--lp-muted); text-decoration: none; }
.lp-breadcrumb a:hover { color: var(--lp-accent); }
.lp-breadcrumb span[aria-current] { color: var(--lp-text); font-weight: 600; }
.lp-breadcrumb__sep { color: var(--lp-faint); }

.lp-pager {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-top: 40px;
}
.lp-pager__num, .lp-pager__btn {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px;
  padding: 0 12px; border: 1px solid var(--lp-border); border-radius: 10px;
  color: var(--lp-text); text-decoration: none; font-size: 14px; font-weight: 600;
  background: var(--lp-surface); transition: background .18s, border-color .18s, color .18s;
}
.lp-pager__num:hover, .lp-pager__btn:hover { background: var(--lp-surface-2); border-color: var(--lp-border-strong); }
.lp-pager__num--active { background: var(--lp-accent); border-color: var(--lp-accent); color: #fff; }
.lp-pager__num--active:hover { background: var(--lp-accent); color: #fff; }

/* long SEO article — full width, multi-column card layout */
.lp-guide__head { max-width: 760px; margin: 0 0 36px; }
.lp-guide__head h2 {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 760; letter-spacing: -0.025em; margin-bottom: 14px;
}
.lp-guide__lead { font-size: 18px; line-height: 1.7; color: var(--lp-muted); margin: 0; }

.lp-guide-grid {
  columns: 3 300px;
  column-gap: 22px;
}
.lp-guide-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 22px 24px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
}
.lp-guide-card h3 {
  font-size: 17px; font-weight: 680; letter-spacing: -0.01em; margin-bottom: 10px;
}
.lp-guide-card p { font-size: 14.5px; line-height: 1.65; color: var(--lp-muted); margin: 0; }
.lp-guide-card p + p { margin-top: 10px; }
.lp-guide-card strong { color: var(--lp-text); }

@media (max-width: 900px) { .lp-guide-grid { columns: 2 260px; } }
@media (max-width: 560px) { .lp-guide-grid { columns: 1; } }

/* pricing packs */
.lp-packs { margin-top: 48px; }
.lp-packs h2 { font-size: 24px; font-weight: 730; letter-spacing: -0.02em; margin-bottom: 6px; }
.lp-muted { color: var(--lp-muted); margin-bottom: 20px; }
.lp-pack {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--lp-border); border-radius: 14px; background: var(--lp-surface);
}
.lp-pack__c { font-weight: 680; }
.lp-pack__p { color: var(--lp-muted); margin-left: auto; margin-right: 4px; }

/* ── Статьи-обзоры: шире контент + оформление сгенерированных блоков ──────── */
/* .lp-container--article { max-width: 1040px; } */

/* Проза (сгенерированный markdown → HTML): заголовки, таблицы, цитаты, ссылки */
.lp-detail__body h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.lp-detail__body p { font-size: 16.5px; line-height: 1.75; color: var(--lp-muted); margin-bottom: 0; }
.lp-detail__body ol { margin-bottom: 18px; }
.lp-detail__body ol li { font-size: 16px; line-height: 1.7; color: var(--lp-muted); margin-bottom: 6px; }
.lp-detail__body strong { color: var(--lp-text); font-weight: 650; }
.lp-detail__body a:not(.lp-btn) { color: var(--lp-accent); text-decoration: underline; text-underline-offset: 2px; }
.lp-detail__body blockquote {
  margin: 20px 0; padding: 12px 20px; border-left: 3px solid var(--lp-accent);
  background: var(--lp-accent-soft); border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  color: var(--lp-text);
}
.lp-detail__body table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px;
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden;
}
.lp-detail__body th, .lp-detail__body td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--lp-border);
}
.lp-detail__body th { background: var(--lp-accent-soft); color: var(--lp-text); font-weight: 650; }
.lp-detail__body td { color: var(--lp-muted); }
.lp-detail__body tr:last-child td { border-bottom: none; }

/* Инлайн-ссылка «попробовать в сервисе» */
.lp-inline-link {
  color: var(--lp-accent); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1.5px;
}
.lp-inline-link:hover { color: var(--lp-accent-strong); }

/* Картинка статьи ([[IMAGE]]) */
.lp-figure { margin: 28px 0; }
.lp-figure img {
  width: 100%; height: auto; border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow);
}
.lp-figure figcaption {
  margin-top: 10px; font-size: 14px; color: var(--lp-faint); text-align: center;
}

/* CTA-блок «первым бесплатно» ([[CTA]]) */
.lp-cta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin: 32px 0; padding: 24px 28px;
  background: var(--lp-accent-soft); border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}
.lp-cta__body { flex: 1 1 320px; }
.lp-cta__title { font-size: 20px; font-weight: 720; letter-spacing: -0.01em; margin-bottom: 6px; color: var(--lp-text); }
.lp-cta__text { font-size: 15px; line-height: 1.6; color: var(--lp-muted); margin: 0; }
.lp-cta__btn { flex-shrink: 0; }
@media (max-width: 560px) { .lp-cta { padding: 20px; } .lp-cta__btn { width: 100%; justify-content: center; } }

/* Сетка карточек ([[CARDS]]) — auto-fill: равная ширина, одинокая карточка не растягивается */
.lp-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 26px 0; align-items: stretch;
}
.lp-card {
  display: flex; flex-direction: column;
  padding: 20px 22px; background: var(--lp-surface);
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
}
.lp-card__title, .lp-card > h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--lp-text); }
.lp-card__text, .lp-card > p { font-size: 14.5px; line-height: 1.6; color: var(--lp-muted); margin: 0; }

/* Шаги статьи — горизонтальный флоу со стрелками, равные по ширине, на всю ширину.
   На главной .lp-steps (без .lp-step) остаётся сеткой 3 колонки. */
.lp-steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.lp-steps:has(.lp-step) { display: flex; gap: 30px; align-items: stretch; }
.lp-steps .lp-step {
  counter-increment: step; position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; padding: 18px;
  background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
}
.lp-steps .lp-step::before {
  content: "Шаг " counter(step); align-self: flex-start;
  padding: 5px 12px; border-radius: 999px; line-height: 1;
  background: var(--lp-accent); color: #fff;
  font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.lp-steps .lp-step:not(:last-child)::after {
  content: "→"; position: absolute; top: 50%; left: 100%;
  transform: translate(calc(15px - 50%), -50%);
  color: var(--lp-faint); font-size: 20px; font-weight: 700; line-height: 1;
}
.lp-step__t { display: block; font-weight: 650; color: var(--lp-text); margin-bottom: 4px; }
.lp-step__d { display: block; font-size: 14px; line-height: 1.55; color: var(--lp-muted); }
/* 5+ шагов — в один ряд тесно, переносим в сетку и убираем стрелки */
.lp-steps:has(.lp-step:nth-child(5)) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
}
.lp-steps:has(.lp-step:nth-child(5)) .lp-step::after { content: none; }
@media (max-width: 760px) {
  .lp-steps:has(.lp-step) { display: flex; flex-direction: column; gap: 24px; }
  .lp-steps:has(.lp-step:nth-child(5)) { grid-template-columns: 1fr; }
  .lp-steps .lp-step:not(:last-child)::after {
    content: "↓"; top: auto; bottom: -22px; left: 50%; transform: translateX(-50%);
  }
  .lp-steps:has(.lp-step:nth-child(5)) .lp-step::after { content: none; }
}

/* Плюсы/минусы ([[PROSCONS]]) */
.lp-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
.lp-proscons__col { padding: 18px 20px; border-radius: var(--lp-radius); border: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-proscons__col h4 { font-size: 16px; font-weight: 700; margin-top: 0; margin-bottom: 10px; }
.lp-proscons__col ul { list-style: none; padding: 0; margin: 0; }
.lp-proscons__col li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.6; color: var(--lp-muted); margin-bottom: 7px; }
.lp-proscons__col li::before { position: absolute; left: 0; top: -1px; font-weight: 700; }
.lp-proscons__col--pro li::before { content: "✓"; color: #1a9d5a; }
.lp-proscons__col--con li::before { content: "✕"; color: #d8593f; }
.lp-proscons__col--pro h4 { color: #1a9d5a; }
.lp-proscons__col--con h4 { color: #d8593f; }
@media (max-width: 560px) { .lp-proscons { grid-template-columns: 1fr; } }

/* Ключевые факты — спек-полосы (подпись сверху, значение снизу); flex-wrap, чтобы
   неполный последний ряд растягивался, а не оставлял пустой тёмный блок */
.lp-keyfacts {
  margin: 28px 0;
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--lp-border); border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius); overflow: hidden;
}
.lp-keyfacts__row {
  flex: 1 1 180px; min-width: 0;
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 18px; background: var(--lp-surface);
}
.lp-keyfacts dt {
  margin: 0; color: var(--lp-faint);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.lp-keyfacts dd {
  margin: 0; color: var(--lp-text); font-weight: 650; font-size: 15px; line-height: 1.4;
}

/* Врезка-заметка ([[NOTE]]) */
.lp-note {
  margin: 24px 0; padding: 16px 20px; border-radius: var(--lp-radius);
  background: var(--lp-accent-soft); border: 1px solid var(--lp-border);
}
.lp-note p { margin: 0 0 8px; color: var(--lp-text); font-size: 15.5px; line-height: 1.65; }
.lp-note p:last-child { margin-bottom: 0; }

/* FAQ-аккордеон — таргетим СТРУКТУРУ (.lp-faq details), устойчиво к пропуску BEM-классов */
.lp-faq { display: grid; gap: 10px; margin: 22px 0; }
.lp-faq details {
  padding: 20px;
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
  background: var(--lp-surface); overflow: hidden;
}
.lp-faq summary {
  list-style: none; cursor: pointer; position: relative;
  font-weight: 620; font-size: 16px; color: var(--lp-text);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::marker { content: ""; }
.lp-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--lp-accent);
}
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details > summary + * { padding-top: 10px; }
.lp-faq details p { font-size: 15.5px; line-height: 1.7; color: var(--lp-muted); margin: 0 0 10px; }
.lp-faq details p:last-child { margin-bottom: 0; }

/* ---------- cookie consent ---------- */
.lp-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  animation: lp-cookie-in 0.3s ease;
}
.lp-cookie__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}
.lp-cookie__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--lp-muted);
}
.lp-cookie__text a { color: var(--lp-accent); text-decoration: underline; }
.lp-cookie .lp-btn { flex-shrink: 0; cursor: pointer; }
@keyframes lp-cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .lp-cookie { left: 10px; right: 10px; bottom: 10px; }
  .lp-cookie__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .lp-cookie .lp-btn { width: 100%; }
}
