/**
 * ElectroPanel Designer — стили посадочных страниц (/<slug>/index.html).
 * Подключается ПОСЛЕ styles.css и использует только его переменные.
 */

.lp-hero {
  padding: 140px 0 56px;
}

.lp-breadcrumbs {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.lp-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.lp-breadcrumbs a:hover {
  color: var(--accent-blue);
}

.lp-title {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 20ch;
}

.lp-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 72ch;
  margin: 0 0 28px;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lp-hero-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Основной текст --- */

.lp-body {
  max-width: 820px;
}

.lp-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 650;
  margin: 52px 0 16px;
  letter-spacing: -0.01em;
}

.lp-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--text-primary);
}

.lp-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.lp-body ul,
.lp-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.lp-body li {
  margin-bottom: 8px;
}

.lp-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.lp-body a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
}

.lp-body a:hover {
  color: var(--accent-blue-hover);
}

/* --- Таблица --- */

.lp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin: 0 0 22px;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.lp-table th,
.lp-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.lp-table th {
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.lp-table td {
  color: var(--text-secondary);
}

.lp-table tbody tr:last-child td {
  border-bottom: none;
}

.lp-table td.mono,
.lp-table th.mono {
  font-family: var(--font-mono);
}

/* --- Врезка --- */

.lp-callout {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-amber);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 0 0 22px;
}

.lp-callout p:last-child {
  margin-bottom: 0;
}

.lp-callout-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 650;
  margin-bottom: 8px;
}

.lp-callout--blue {
  border-left-color: var(--accent-blue);
}

.lp-callout--blue .lp-callout-title {
  color: var(--accent-blue);
}

/* --- Шаги --- */

.lp-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  counter-reset: lp-step;
}

.lp-steps li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  counter-increment: lp-step;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lp-steps li::before {
  content: counter(lp-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* --- Перелинковка --- */

.lp-related {
  border-top: 1px solid var(--border-subtle);
  margin-top: 56px;
  padding-top: 32px;
}

.lp-related h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

.lp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.lp-related-grid a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.lp-related-grid a:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .lp-hero {
    padding: 110px 0 40px;
  }
}
