@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap');

/* ─── Lightgrid tokens — палитра темы 1 из lightgrid/theme.ts ──── */
:root {
  --lg-bg:        #f5eee9;
  --lg-bg-deep:   #ecdcd3;
  --lg-surface:   #ffffff;
  --lg-surface-dim: #f7f7f5;
  --lg-ink:       #141414;
  --lg-ink-soft:  #4a4a4a;
  --lg-muted:     #b6b6b3;
  --lg-pill:      #121212;
  --lg-accent:    #d8563a;
  --lg-accent-soft: #e07a5f;
  --lg-blue:      #5b6ee8;
  --lg-stroke:    #e2e2df;
  --lg-stroke-dark: #c9c9c5;
  --lg-grid-dot:  #cbcbc8;

  --lg-shadow-float: 0 48px 100px rgba(20,20,18,0.16), 0 16px 34px rgba(20,20,18,0.09);
  --lg-shadow-card:  0 24px 50px rgba(20,20,18,0.10), 0 8px 18px rgba(20,20,18,0.05);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lg-body {
  background-color: var(--lg-bg);
  background-image: radial-gradient(var(--lg-grid-dot) 1.4px, transparent 1.4px);
  background-size: 34px 34px;
  background-position: -1px -1px;
  color: var(--lg-ink);
  font-family: 'Onest', system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: clip;
}

.lg-body a { color: inherit; text-underline-offset: 3px; }

/* ─── Типографика: крупный гротеск ──────────────────────────────── */
.lg-body h1, .lg-body h2, .lg-body h3 {
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--lg-ink);
  letter-spacing: -0.035em;
}
.lg-body h1 {
  font-size: clamp(30px, 4.2vw, 54px) !important;
  line-height: 1.06 !important;
  font-weight: 800 !important;
}
.lg-body h2 {
  font-size: clamp(28px, 4vw, 48px) !important;
  line-height: 1.06 !important;
  font-weight: 800 !important;
}
.lg-body h3 {
  font-size: clamp(18px, 2vw, 22px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
.lg-body p { color: var(--lg-ink-soft); }

.lg-lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--lg-ink-soft);
}

/* акцентный курсив — как *слово* в WordFlow */
.lg-em {
  font-style: italic;
  color: var(--lg-accent);
  font-weight: 700;
}

/* чёрная плашка — как [слово] в WordFlow */
.lg-pill {
  display: inline-block;
  background: var(--lg-pill);
  color: #fff;
  border-radius: 0.29em;
  padding: 0.04em 0.24em 0.1em;
  font-weight: 800;
}

/* надзаголовок раздела */
.lg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 14px;
}
.lg-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lg-accent);
  border-radius: 2px;
}

/* ─── Секции и разделители ──────────────────────────────────────── */
.lg-section { max-width: 1080px; margin: 0 auto; padding: 88px 24px; }
.lg-rule { max-width: 1080px; margin: 0 auto; height: 1px; background: var(--lg-stroke-dark); opacity: 0.7; }

/* ─── Карточки: бумага с мягкой тенью ───────────────────────────── */
.lg-card {
  background: var(--lg-surface);
  border: 1px solid var(--lg-stroke);
  border-radius: 28px;
  box-shadow: var(--lg-shadow-card);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lg-card:hover { transform: translateY(-2px); box-shadow: var(--lg-shadow-float); }

.lg-card-dim { background: var(--lg-surface-dim); box-shadow: none; }
.lg-card-dark { background: var(--lg-pill); border-color: var(--lg-pill); color: #fff; }
.lg-card-dark h2, .lg-card-dark h3 { color: #fff; }
.lg-card-dark p { color: rgba(255,255,255,0.72); }

.lg-card-accent { border-color: var(--lg-accent); border-width: 2px; }

/* ─── Чёрная плитка-иконка — фирменный элемент IconBadge ────────── */
.lg-badge {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--lg-pill);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lg-badge svg { width: 26px; height: 26px; }
.lg-badge-accent { background: var(--lg-accent); }
.lg-badge-blue { background: var(--lg-blue); }
.lg-badge-sm { width: 38px; height: 38px; border-radius: 11px; }
.lg-badge-sm svg { width: 19px; height: 19px; }

/* номер шага */
.lg-step {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--lg-pill);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Чипы и метки ──────────────────────────────────────────────── */
.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--lg-surface);
  border: 1px solid var(--lg-stroke);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lg-ink-soft);
}
.lg-chip-accent {
  background: var(--lg-accent);
  border-color: var(--lg-accent);
  color: #fff;
  font-weight: 600;
}
.lg-chip-dark {
  background: var(--lg-pill);
  border-color: var(--lg-pill);
  color: #fff;
  font-weight: 600;
}

/* ─── Списки ────────────────────────────────────────────────────── */
.lg-list { display: flex; flex-direction: column; gap: 11px; }
.lg-list li {
  position: relative;
  padding-left: 19px;
  color: var(--lg-ink-soft);
  line-height: 1.45;
}
.lg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--lg-accent);
}
.lg-list-cross li::before {
  background: var(--lg-muted);
  border-radius: 2px;
  transform: rotate(45deg);
}
.lg-list-check li {
  padding-left: 29px;
}
.lg-list-check li::before {
  width: 18px;
  height: 18px;
  top: 3px;
  border-radius: 6px;
  background: var(--lg-accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9.2L7.4 12.6L14 5.8' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.lg-list-dark li { color: rgba(255,255,255,0.75); }

/* ─── Кнопки ────────────────────────────────────────────────────── */
.lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 18px 30px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}
.lg-btn:hover { transform: translateY(-2px); }
/* Кнопки записи: коралловая заливка, белый шрифт.
   Селектор с `.lg-body a`, иначе правило `a { color: inherit }` перебивает цвет текста. */
.lg-body .lg-btn-primary,
.lg-body a.lg-btn-primary,
.lg-body .lg-btn-dark,
.lg-body a.lg-btn-dark {
  background: var(--lg-accent);
  color: #fff;
  border-color: var(--lg-accent);
  box-shadow: 0 14px 30px rgba(216,86,58,0.28);
}
.lg-body .lg-btn-primary:hover,
.lg-body a.lg-btn-primary:hover,
.lg-body .lg-btn-dark:hover,
.lg-body a.lg-btn-dark:hover { background: var(--lg-accent-soft); border-color: var(--lg-accent-soft); }

/* Второстепенная кнопка (не запись): без заливки, тёмный текст. */
.lg-body .lg-btn-ghost,
.lg-body a.lg-btn-ghost {
  background: transparent;
  color: var(--lg-ink);
  border-color: var(--lg-stroke-dark);
  box-shadow: none;
}
.lg-body .lg-btn-ghost:hover,
.lg-body a.lg-btn-ghost:hover { background: var(--lg-surface); border-color: var(--lg-ink); }
.lg-btn-lg { padding: 22px 38px; font-size: 18px; border-radius: 18px; }
.lg-btn-sm { padding: 11px 18px; font-size: 14px; border-radius: 12px; }
.lg-btn-block { width: 100%; }

/* ─── Навигация ─────────────────────────────────────────────────── */
.lg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,238,233,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lg-stroke-dark);
}
.lg-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lg-nav-link { font-size: 15px; font-weight: 500; color: var(--lg-ink-soft); text-decoration: none; }
.lg-nav-link:hover { color: var(--lg-ink); }

.lg-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lg-logo-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--lg-ink); line-height: 1.1; }
.lg-logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lg-accent); }

/* ─── Тарифы ────────────────────────────────────────────────────── */
.lg-price { font-size: clamp(38px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.lg-price-note { font-size: 14px; color: var(--lg-muted); }

/* ─── Мокап-строки (плитки внутри карточек) ─────────────────────── */
.lg-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--lg-surface-dim);
  border: 1px solid var(--lg-stroke);
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lg-ink);
}

/* ─── Зачёркнутая цена ──────────────────────────────────────────── */
.lg-strike {
  text-decoration: line-through;
  text-decoration-color: var(--lg-accent);
  color: var(--lg-muted);
  font-weight: 600;
}

/* ─── Ссылка в тексте ───────────────────────────────────────────── */
.lg-body .lg-link {
  color: var(--lg-ink);
  text-decoration: underline;
  text-decoration-color: var(--lg-accent);
  font-weight: 500;
}
.lg-body .lg-link:hover { color: var(--lg-accent); }

/* ─── Декор: коралловая искра AccentStar ────────────────────────── */
.lg-star { color: var(--lg-accent); flex-shrink: 0; }

/* ─── Футер ─────────────────────────────────────────────────────── */
.lg-footer { border-top: 1px solid var(--lg-stroke-dark); background: var(--lg-bg-deep); }
.lg-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: var(--lg-ink-soft);
}
.lg-footer-inner a { text-decoration: none; }
.lg-footer-inner a:hover { color: var(--lg-ink); }

/* ─── Форма (triage-квиз) ───────────────────────────────────────── */
.lg-fieldset-legend { display: block; font-size: 15px; font-weight: 700; color: var(--lg-ink); margin-bottom: 2px; }
.lg-hint { font-size: 12px; color: var(--lg-muted); }

.lg-progress-track { flex: 1; height: 6px; border-radius: 99px; background: var(--lg-stroke); overflow: hidden; }
.lg-progress-bar { height: 100%; width: 0; background: var(--lg-accent); border-radius: 99px; transition: width 0.25s ease; }

.lg-option {
  display: flex;
  align-items: center;
  text-align: left;
  border: 1px solid var(--lg-stroke);
  background: var(--lg-surface);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--lg-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lg-option:hover { border-color: var(--lg-stroke-dark); }
.lg-option-active { border-color: var(--lg-pill); background: var(--lg-pill); color: #fff; font-weight: 600; }
.lg-option-pill { display: inline-flex; border-radius: 999px; padding: 8px 14px; font-size: 13px; }

.lg-field {
  width: 100%;
  border: 1px solid var(--lg-stroke);
  background: var(--lg-surface);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--lg-ink);
}
.lg-field:focus { outline: none; border-color: var(--lg-ink); }
textarea.lg-field { resize: vertical; }
select.lg-field { cursor: pointer; }

.lg-error-box {
  font-size: 13px;
  font-weight: 600;
  color: #b3261e;
  background: rgba(179,38,30,0.08);
  border: 1px solid rgba(179,38,30,0.25);
  border-radius: 12px;
  padding: 10px 14px;
}

/* ─── Мобильные ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lg-section { padding: 56px 18px; }
  .lg-card { padding: 22px; border-radius: 22px; }
  .lg-btn, .lg-btn-lg { width: 100%; padding: 18px 24px; font-size: 16px; }
  .lg-nav-inner { padding: 12px 18px; }
}

/* ─── Видео-разборы ─────────────────────────────────────────────── */
.lg-video { display: flex; flex-direction: column; gap: 10px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.lg-video-thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--lg-stroke); }
.lg-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s ease; }
.lg-video-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--lg-accent); color: #fff; font-size: 16px; padding-left: 3px; }
.lg-video:hover .lg-video-thumb img { opacity: .82; }
.lg-video-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--lg-ink); }

/* ─── Ранняя регистрация ────────────────────────────────────────── */
.lg-promo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--lg-pill);
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
}
.lg-promo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--lg-accent);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}
.lg-promo .lg-strike { color: rgba(255,255,255,0.45); }
.lg-price-was {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: line-through;
  text-decoration-color: var(--lg-accent);
  color: var(--lg-muted);
  margin-left: 10px;
}
.lg-tag-early {
  display: inline-flex;
  align-items: center;
  background: var(--lg-accent);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

/* ─── График повышения цены ───────────────────────── */
.lg-sched { display: flex; flex-direction: column; }
.lg-sched-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--lg-stroke);
  font-size: 15px;
  color: var(--lg-ink-soft);
}
.lg-sched-row > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.lg-sched-head {
  border-top: 0;
  padding-top: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lg-muted);
}
.lg-sched-now { color: var(--lg-ink); font-weight: 700; }
.lg-sched-when { display: flex; flex-direction: column; gap: 3px; }
.lg-sched-off { font-size: 13px; font-weight: 500; color: var(--lg-muted); }
.lg-sched-now .lg-sched-off { color: var(--lg-accent); font-weight: 700; }

@media (max-width: 640px) {
  .lg-sched-row { font-size: 14px; gap: 8px; }
}

/* ─── Лендинг Бойлерной ─────────────────────────────────────────── */
/* плашка челленджа над hero */
.lg-challenge-bar {
  max-width: 1080px; margin: 16px auto 0; padding: 10px 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--lg-ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.lg-body a.lg-challenge-bar { color: var(--lg-ink); text-decoration: none; }
.lg-body a.lg-challenge-bar:hover span:last-child { color: var(--lg-accent); }

/* текстовая метка тарифа */
.lg-tag {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; background: var(--lg-surface-dim); border: 1px solid var(--lg-stroke);
  color: var(--lg-ink-soft);
}
.lg-tag-accent { background: var(--lg-accent); border-color: var(--lg-accent); color: #fff; }
.lg-note { font-size: 14px; color: var(--lg-ink-soft); }

/* диаграмма пути: подсвеченный отрезок Бойлерной + серое продолжение */
.lg-path { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-path-part { border-radius: 24px; padding: 22px 24px; }
.lg-path-on  { background: var(--lg-pill); color: #fff; }
.lg-path-off { background: transparent; border: 1px dashed var(--lg-stroke-dark); color: var(--lg-ink-soft); }
.lg-path-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.lg-path-on .lg-path-label { color: var(--lg-accent-soft); }
.lg-path-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.lg-path-steps li { font-weight: 600; font-size: 15px; }
.lg-path-steps li:not(:last-child)::after { content: "→"; margin-left: 8px; opacity: 0.5; }
.lg-path-on .lg-path-steps li:last-child { color: var(--lg-accent-soft); }

/* скрины интерфейса */
.lg-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lg-shot img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--lg-stroke); box-shadow: var(--lg-shadow-card); }
.lg-shot figcaption { font-size: 14px; color: var(--lg-ink-soft); }

/* заглушка видео, пока ролик не опубликован */
div.lg-video { cursor: default; }
.lg-video-soon { display: flex; align-items: center; justify-content: center; background: var(--lg-surface-dim); color: var(--lg-muted); font-weight: 600; font-size: 14px; }

/* условия челленджа */
.lg-conditions { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.lg-conditions li { padding-left: 4px; line-height: 1.5; }

/* FAQ */
.lg-faq { padding: 20px 24px; }
.lg-faq:hover { transform: none; }
.lg-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary::after { content: "+"; color: var(--lg-accent); font-weight: 800; }
.lg-faq[open] summary::after { content: "−"; }

@media (max-width: 640px) {
  .lg-path { grid-template-columns: 1fr; }
  .lg-challenge-bar { padding: 10px 16px; font-size: 14px; }
}
.lg-conditions { list-style: decimal; }
.lg-conditions li { display: list-item; }
.lg-conditions li::marker { color: var(--lg-accent); font-weight: 800; }
/* цены в четырёх колонках тарифов — без переноса «₽» */
.lg-pricing-4 .lg-price { font-size: clamp(34px, 3.2vw, 44px); white-space: nowrap; }

/* ─── Hero лендинга: текст + скрины продукта ─────────────────────── */
.lg-body a.lg-challenge-strip {
  display: block; background: var(--lg-pill); color: #fff; text-align: center;
  padding: 11px 16px; font-size: 15px; text-decoration: none;
}
.lg-body a.lg-challenge-strip strong { color: var(--lg-accent-soft); }
.lg-body a.lg-challenge-strip:hover { color: #fff; background: #000; }

.lg-hero {
  padding-top: 64px; padding-bottom: 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
}
.lg-hero-text h1 { max-width: 13ch; }
.lg-hero-text .lg-lead { max-width: 46ch; }
.lg-hero-text .lg-note { max-width: 46ch; }
.lg-hero-shots { position: relative; aspect-ratio: 5 / 4; }
.lg-hero-shots img {
  position: absolute; display: block; border-radius: 16px; border: 1px solid var(--lg-stroke);
  background: #fff; box-shadow: var(--lg-shadow-float);
}
.lg-hero-back  { top: 0; right: 0; width: 92%; }
.lg-hero-front { left: 0; bottom: 0; width: 78%; }

@media (max-width: 900px) {
  .lg-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .lg-hero-shots { aspect-ratio: 4 / 3; }
}
.lg-faq summary { font-weight: 500; }
.lg-faq summary strong { font-weight: 800; }
.lg-card-dark .lg-conditions li { color: #fff; }
.lg-card-dark .lg-conditions li::marker { color: var(--lg-accent-soft); }
.lg-challenge-note { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 14px; color: rgba(255,255,255,0.7); }
.lg-card-dark .lg-challenge-note { margin-top: 24px; }
.lg-underline { text-decoration: underline; text-decoration-color: var(--lg-accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Курс: встроенное видео и карточки уроков */
.lg-video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lg-lesson-soon { padding: 16px; text-align: center; letter-spacing: 0.06em; line-height: 1.35; }
.lg-lesson-title { overflow-wrap: anywhere; }
.lg-video:target .lg-video-thumb, .lg-video:focus-visible .lg-video-thumb { outline: 3px solid var(--lg-accent); outline-offset: 3px; }

/* ─── Лендинг видеоразбора: шапка с видео, сомнения, витрина завода ─── */
.lg-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .lg-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; } }
.lg-hero-sub { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--lg-ink); }
.lg-hero-video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--lg-shadow-float); }
.lg-hero-video iframe, .lg-hero-video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.lg-hero-video .lg-video-soon { position: absolute; inset: 0; }

.lg-doubt { padding: 32px 28px; }
.lg-doubt:hover { transform: none; }
.lg-doubt-item { display: flex; gap: 14px; align-items: flex-start; }
.lg-doubt-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--lg-accent); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }

.lg-show { display: flex; flex-direction: column; gap: 8px; }
.lg-show-media { display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--lg-stroke); }
.lg-show-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-show h3 { font-size: 17px; margin-top: 6px; }
.lg-show p { font-size: 14px; line-height: 1.5; }

.lg-channel { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lg-channel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--lg-stroke); }
.lg-channel figcaption { font-size: 12px; font-weight: 600; color: var(--lg-ink-soft); line-height: 1.3; overflow-wrap: anywhere; }

.lg-reel { display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--lg-stroke); }
.lg-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }

.lg-faq-a { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.lg-faq-a p { font-size: 15px; line-height: 1.6; }
.lg-agents-badge { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; flex-shrink: 0; padding: 12px 20px; border-radius: 999px; background: var(--lg-accent); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.01em; box-shadow: 0 12px 28px rgba(216,86,58,0.32); transform: rotate(-2deg); }
.lg-agents-badge svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .lg-agents-badge { align-self: flex-end; } }

/* nav of the breakdown landing: all items in one line */
.lg-nav-links { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.lg-nav-links .lg-nav-link { font-size: 14px; white-space: nowrap; }

/* «Мастер-промпт»: the archive as an editor window */
.lg-ide { border-radius: 18px; overflow: hidden; background: #16161a; box-shadow: var(--lg-shadow-float); border: 1px solid #2a2a30; }
.lg-ide-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1f1f25; border-bottom: 1px solid #2a2a30; }
.lg-ide-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; }
.lg-ide-bar span:nth-child(1) { background: #ff5f57; } .lg-ide-bar span:nth-child(2) { background: #febc2e; } .lg-ide-bar span:nth-child(3) { background: #28c840; }
.lg-ide-bar b { margin-left: 10px; font-size: 13px; font-weight: 600; color: #9a9aa6; }
.lg-ide-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lg-ide-body { grid-template-columns: 240px 1fr; } }
.lg-ide-tree { margin: 0; padding: 16px 12px; list-style: none; font: 13px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #b8b8c4; border-bottom: 1px solid #2a2a30; }
@media (min-width: 768px) { .lg-ide-tree { border-bottom: 0; border-right: 1px solid #2a2a30; } }
.lg-ide-tree li { padding: 0 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-ide-tree i { font-style: normal; color: #6f6f7a; margin-left: 4px; }
.lg-ide-dir { color: #e8e8ee; font-weight: 600; }
.lg-ide-sub { padding-left: 22px !important; color: #8d8d99; }
.lg-ide-on { background: rgba(216,86,58,0.22); color: #fff; }
.lg-ide-code { position: relative; padding: 18px 22px 28px; font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #c9c9d3; max-height: 340px; overflow: hidden; }
.lg-ide-code::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #16161a); }
.lg-ide-code p { margin: 0 0 8px; color: inherit; }
.lg-ide-code b { color: #fff; }
.lg-ide-h { color: #e07a5f !important; font-weight: 700; margin-top: 14px !important; }
.lg-ide-h:first-child { margin-top: 0 !important; }

.lg-kit-table { border: 1px solid var(--lg-stroke); border-radius: 18px; background: var(--lg-surface); overflow: hidden; }
.lg-kit-row { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 16px 22px; border-top: 1px solid var(--lg-stroke); }
.lg-kit-row:first-child { border-top: 0; }
@media (min-width: 768px) { .lg-kit-row { grid-template-columns: 200px 1fr; align-items: baseline; } }
.lg-kit-row code, .lg-kit-mod code { font: 600 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--lg-accent); }
.lg-kit-row p { font-size: 15px; line-height: 1.55; }
.lg-kit-mod { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--lg-surface); border: 1px solid var(--lg-stroke); }
.lg-kit-mod code { font-size: 12.5px; }
.lg-kit-mod span { font-size: 14px; font-weight: 600; color: var(--lg-ink); }

/* ─── Общая шапка и подвал сайта (core/layouts/_site_nav, _site_footer) ─── */
.lg-logo-img { height: 34px; width: 34px; border-radius: 10px; display: block; object-fit: cover; }
.lg-nav-link-on { color: var(--lg-ink); font-weight: 700; }
.lg-nav-links .lg-btn-sm { width: auto; }
.lg-menu { position: relative; }
.lg-menu > summary { list-style: none; }
.lg-menu > summary::-webkit-details-marker { display: none; }
.lg-menu-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--lg-stroke-dark); background: var(--lg-surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lg-menu-btn svg { width: 20px; height: 20px; }
.lg-menu-panel { position: absolute; right: 0; top: 48px; min-width: 210px; background: var(--lg-surface); border: 1px solid var(--lg-stroke); border-radius: 18px; box-shadow: var(--lg-shadow-card); padding: 8px; display: flex; flex-direction: column; z-index: 60; }
.lg-menu-panel a { padding: 11px 14px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.lg-menu-panel a:hover { background: var(--lg-surface-dim); }
.lg-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.lg-footer-icon svg { width: 18px; height: 18px; display: block; }
@media (max-width: 640px) {
  .lg-nav-inner { padding: 12px 16px; }
  .lg-nav-links { gap: 10px; }
  .lg-logo-title { font-size: 15px; }
  .lg-nav-links .lg-btn-sm { width: auto; padding: 10px 14px; font-size: 14px; border-radius: 12px; }
}
