/* css/landing.css — оформление лендинга поверх Bootstrap 5.3 (vendor/bootstrap/bootstrap.min.css, подключается ДО этого файла).
   Дизайн прежний: тёмная палитра, IBM Plex Sans / JetBrains Mono, янтарный акцент, рамки 3–6px. Здесь — только то,
   чего нет в Bootstrap: перенастройка его переменных под палитру, фирменные блоки (консоль, «лампа», бейдж доступа)
   и мелочи. Сетка, кнопки, карточки, форма, карусель, адаптивность — штатные компоненты Bootstrap. */

/* ===================== ПАЛИТРА И ПЕРЕМЕННЫЕ BOOTSTRAP ===================== */
:root,
[data-bs-theme="light"] {
    --bg: #F7F8FA;
    --bg-card: #FFFFFF;
    --border: #D9DEE5;
    --text-primary: #1B2128;
    --text-secondary: #566170;
    --text-muted: #667282;
    --bg-bar: #EEF1F5;
    --bg-header: rgba(247, 248, 250, 0.92);
    --shadow-card: 0 24px 60px -24px rgba(30, 40, 55, 0.25);
    --accent: #B8680A;
    --accent-bg: #E8A23D;
    --info: #3D7396;
    --success: #2F8A58;
    --danger: #C2402F;
    --lp-mono: 'JetBrains Mono', monospace;
    --lp-sans: 'IBM Plex Sans', -apple-system, sans-serif;
    color-scheme: light;
}
[data-bs-theme="dark"] {
    --bg: #0A0D12;
    --bg-card: #12161C;
    --border: #232A33;
    --text-primary: #E4E8EC;
    --text-secondary: #8B96A3;
    --text-muted: #7A8592;
    --bg-bar: #0D1117;
    --bg-header: rgba(10, 13, 18, 0.9);
    --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
    --accent: #E8A23D;
    --accent-bg: #E8A23D;
    --info: #5B8FB0;
    --success: #4FA876;
    --danger: #D6564A;
    --lp-mono: 'JetBrains Mono', monospace;
    --lp-sans: 'IBM Plex Sans', -apple-system, sans-serif;
    color-scheme: dark;
}
:root {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text-primary);
    --bs-body-font-family: var(--lp-sans);
    --bs-body-line-height: 1.55;
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--text-secondary);
    --bs-card-bg: var(--bg-card);
    --bs-card-border-color: var(--border);
    --bs-card-color: var(--text-primary);
    --bs-border-radius: 6px;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

h1, h2, h3 { font-family: var(--lp-mono); font-weight: 600; letter-spacing: -0.01em; }

/* Ссылки как раньше: наследуют цвет, без подчёркивания; акцентные — .lp-link */
a, a:hover { color: inherit; text-decoration: none; }
a.lp-link, a.lp-link:hover { color: var(--accent); text-decoration: underline; }
.lp-footer a:hover { color: var(--accent); }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.btn:focus-visible, .form-control:focus-visible { box-shadow: none; }

/* Контейнер 1080px, поля 24px (16px на узких) */
.container.lp-container { max-width: 1080px; --bs-gutter-x: 48px; }
@media (max-width: 480px) {
    .container.lp-container { --bs-gutter-x: 32px; }
}

/* ===================== КНОПКИ ===================== */
.btn {
    --bs-btn-border-radius: 3px;
    --bs-btn-font-family: var(--lp-sans);
    --bs-btn-font-size: 14px;
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 20px;
    --bs-btn-padding-y: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    --bs-btn-color: #17110A;
    --bs-btn-bg: var(--accent-bg);
    --bs-btn-border-color: var(--accent-bg);
    --bs-btn-hover-color: #17110A;
    --bs-btn-hover-bg: #F0AD53;
    --bs-btn-hover-border-color: #F0AD53;
    --bs-btn-active-color: #17110A;
    --bs-btn-active-bg: #F0AD53;
    --bs-btn-active-border-color: #F0AD53;
    --bs-btn-disabled-color: #17110A;
    --bs-btn-disabled-bg: var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
}
/* Вторичная кнопка: прозрачная, рамка палитры */
.btn-outline-secondary {
    --bs-btn-color: var(--text-primary);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: var(--text-primary);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: var(--text-secondary);
    --bs-btn-active-color: var(--text-primary);
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: var(--text-secondary);
}
/* На десктопе кнопки в шапке героя — не уже 200px */
@media (min-width: 576px) {
    .lp-btn-wide { min-width: 200px; }
}

/* ===================== ШАПКА ===================== */
.lp-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-header);
    backdrop-filter: blur(8px);
}
/* Плашка «демоверсия» — внутри липкой шапки, видна при прокрутке */
.lp-demo-notice {
    background: var(--accent-bg);
    color: #17110A;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 6px 16px;
}
.lp-demo-notice iconify-icon { vertical-align: -2px; margin-right: 4px; }

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--lp-mono);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}
.lp-brand img { border-radius: 4px; }
.lp-header-cta {
    --bs-btn-font-family: var(--lp-mono);
    --bs-btn-font-size: 13px;
    --bs-btn-padding-x: 14px;
    --bs-btn-padding-y: 8px;
    gap: 6px;
}
.lp-header-cta:hover { color: var(--accent); --bs-btn-hover-border-color: var(--accent); }
@media (max-width: 480px) {
    .lp-brand { font-size: 13.5px; }
    .lp-header-cta { --bs-btn-font-size: 12px; --bs-btn-padding-x: 11px; --bs-btn-padding-y: 7px; }
}

/* Навигация по разделам в шапке: на широком экране — между логотипом и кнопкой, на узком — отдельной строкой с горизонтальной прокруткой */
.lp-nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.lp-nav::-webkit-scrollbar { display: none; }
.lp-nav a {
    font-family: var(--lp-mono);
    font-size: 13px;
    color: inherit;
    opacity: 0.8;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
}
.lp-nav a:hover { opacity: 1; color: var(--accent); }
@media (min-width: 768px) {
    .lp-nav { order: 0; width: auto; margin-left: auto; margin-right: 8px; overflow: visible; }
}
/* Заголовки секций при переходе по якорю не прячутся под липкую шапку */
.lp-section[id], .lp-cta[id] { scroll-margin-top: 130px; }
@media (min-width: 768px) { .lp-section[id], .lp-cta[id] { scroll-margin-top: 110px; } }

/* ===================== HERO ===================== */
.lp-hero { padding: 64px 0 56px; }
@media (max-width: 767.98px) { .lp-hero { padding-top: 48px; } }
/* Планшет в портрете (в т.ч. iPad mini, 744–768px): герой в одну колонку, текст не растягивается на всю ширину */
@media (max-width: 991.98px) { .lp-hero .lp-console { max-width: 640px; } }

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--lp-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.lp-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(79, 168, 118, 0.18);
}

.lp-hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 18px; }
.lp-hero .lp-lead {
    font-size: 15.5px;
    color: var(--text-secondary);
    max-width: 48ch;
    margin-bottom: 28px;
}
@media (max-width: 767.98px) { .lp-hero h1 { font-size: 27px; } }

/* Плитки статистики */
.lp-stats { padding-top: 24px; border-top: 1px solid var(--border); }
.lp-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 100%;
    padding: 13px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}
.lp-stat iconify-icon { font-size: 19px; color: var(--accent); flex-shrink: 0; }
.lp-stat--danger { border-left-color: var(--danger); }
.lp-stat--danger iconify-icon { color: var(--danger); }
.lp-stat-num { font-weight: 700; font-size: 17px; font-family: var(--lp-mono); line-height: 1.2; }
.lp-stat-lbl { color: var(--text-muted); font-size: 11.5px; line-height: 1.3; }

/* «Консоль» справа в герое */
.lp-console {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.lp-console-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-bar);
}
.lp-console-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.lp-console-path { margin-left: 8px; font-family: var(--lp-mono); font-size: 11.5px; color: var(--text-muted); }
.lp-console-body { padding: 20px 18px; font-family: var(--lp-mono); font-size: 13px; }
.lp-console-line { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.lp-console-line .status-ok { color: var(--success); }
.lp-console-line .status-warn { color: var(--accent); }
.lp-console-line .name { min-width: 130px; }
.lp-console-line .detail { color: var(--text-muted); font-size: 12px; }
.lp-console-line--total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.lp-console-line--total .label { color: var(--text-secondary); }
/* На узких экранах «name» и «detail» в одну строку не помещаются — detail уходит на новую */
@media (max-width: 480px) {
    .lp-console-line { flex-wrap: wrap; }
    .lp-console-line .name { min-width: 0; }
    .lp-console-line .detail { flex-basis: 100%; padding-left: 20px; }
}

/* ===================== РАЗДЕЛЫ ===================== */
.lp-section { padding: 56px 0; border-top: 1px solid var(--border); }
.lp-section--first { padding-top: 40px; }
.lp-section-head { margin-bottom: 36px; max-width: 58ch; }
.lp-section-head--wide { max-width: 100%; }

.lp-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 4px 10px;
    font-family: var(--lp-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(232, 162, 61, 0.35);
    border-radius: 3px;
    background: rgba(232, 162, 61, 0.08);
}
.lp-section-head h2 { font-size: 28px; margin-bottom: 8px; }
.lp-section-head p { color: var(--text-secondary); font-size: 15px; margin-bottom: 0; }

/* Карточки возможностей / болей / FAQ — штатный .card */
.lp-grid { --bs-gutter-x: 1.25rem; --bs-gutter-y: 1.25rem; }
.lp-card { transition: border-color 0.15s; }
.lp-card:hover { border-color: var(--accent); }
.lp-card .card-body { padding: 24px 20px; }
.lp-card h3 { font-family: var(--lp-sans); font-size: 16px; margin-bottom: 6px; }
.lp-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0; }

.lp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 6px;
    background: rgba(232, 162, 61, 0.12);
    color: var(--accent);
    font-size: 20px;
}
.lp-icon--danger { background: rgba(214, 86, 74, 0.12); color: var(--danger); }
.lp-icon--info { background: rgba(91, 143, 176, 0.12); color: var(--info); }

.lp-narrow { max-width: 720px; }

/* Преимущества */
.lp-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 6px 0;
}
.lp-benefits li iconify-icon { color: var(--success); font-size: 18px; flex-shrink: 0; }

/* ===================== КАРУСЕЛЬ СО СКРИНШОТАМИ (штатный .carousel) ===================== */
.lp-shots { position: relative; max-width: 860px; margin: 0 auto; }
.lp-shots .carousel-inner {
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.lp-shots .carousel-item { height: 100%; }
/* contain — картинка вписывается целиком без обрезки и растяжения, у скриншотов разные пропорции */
.lp-shots .carousel-item img { width: 100%; height: 100%; object-fit: contain; display: block; }

.lp-shots .carousel-control-prev,
.lp-shots .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    opacity: 1;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 18px;
    transition: border-color 0.15s, color 0.15s;
}
.lp-shots .carousel-control-prev { left: -18px; }
.lp-shots .carousel-control-next { right: -18px; }
.lp-shots .carousel-control-prev:hover,
.lp-shots .carousel-control-next:hover { border-color: var(--accent); color: var(--accent); }

.lp-shots .carousel-indicators {
    position: static;
    margin: 16px 0 0;
    gap: 8px;
}
.lp-shots .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--border);
    opacity: 1;
    transition: background 0.15s, transform 0.15s;
}
.lp-shots .carousel-indicators .active { background: var(--accent-bg); transform: scale(1.25); }
@media (max-width: 639.98px) {
    /* На телефоне — свайп и точки, стрелки не нужны */
    .lp-shots .carousel-control-prev, .lp-shots .carousel-control-next { display: none; }
}

/* ===================== ТАРИФЫ ===================== */
.lp-toggle {
    --bs-btn-font-family: var(--lp-mono);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px;
    font-family: var(--lp-mono);
    font-size: 13px;
}
.lp-toggle .btn {
    --bs-btn-border-radius: 4px;
    --bs-btn-padding-x: 16px;
    --bs-btn-padding-y: 8px;
    --bs-btn-font-size: 13px;
    --bs-btn-color: var(--text-secondary);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--text-primary);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    gap: 6px;
    border: 0;
    border-radius: 4px !important;
}
.lp-toggle .btn-check:checked + .btn { background: var(--accent-bg); color: #17110A; }
.lp-discount {
    background: rgba(79, 168, 118, 0.18);
    color: var(--success);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
}
.lp-toggle .btn-check:checked + .btn .lp-discount { background: rgba(23, 17, 10, 0.2); color: #17110A; }

.lp-pricing { position: relative; overflow: visible; }
.lp-pricing .card-body { padding: 26px 24px; display: flex; flex-direction: column; }
/* Три колонки от 768px: на планшете карточки уже — паддинг и шрифты чуть компактнее */
@media (min-width: 768px) and (max-width: 991.98px) {
    .lp-pricing .card-body { padding: 22px 16px; }
    .lp-price .amount { font-size: 24px; }
}
.lp-pricing--soon { opacity: 0.6; }
.lp-tariff-desc { font-size: 13px; color: var(--text-secondary); margin: -8px 0 12px; }
.lp-trial-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(79, 168, 118, 0.18);
    color: var(--success);
    font-family: var(--lp-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: nowrap;
}
.lp-pricing h3 { font-size: 17px; margin-bottom: 14px; }
.lp-price { font-family: var(--lp-mono); margin-bottom: 4px; }
.lp-price .amount { font-size: 28px; font-weight: 700; }
.lp-price .period { font-size: 13px; color: var(--text-muted); }
.lp-price-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; min-height: 16px; }
.lp-price-list { margin-bottom: 22px; flex-grow: 1; }
.lp-price-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); padding: 6px 0; }
.lp-price-list li iconify-icon { color: var(--success); font-size: 15px; flex-shrink: 0; }

/* ===================== CTA ===================== */
.lp-cta { padding: 56px 0 64px; border-top: 1px solid var(--border); }
.lp-cta-card .card-body { padding: 40px; }
.lp-cta-card h2 { font-size: 22px; margin-bottom: 10px; }
.lp-cta-card p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 22px; max-width: 48ch; }
@media (max-width: 767.98px) { .lp-cta-card .card-body { padding: 28px; } }

/* Три кнопки CTA: в ряд на десктопе (мелкий шрифт), столбцом на телефоне */
@media (min-width: 992px) {
    .lp-cta-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        gap: 5px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .lp-cta-actions .btn:first-child { flex-grow: 1.7; }
}

.lp-id-badge { background: var(--bg-bar); border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; }
.lp-id-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-family: var(--lp-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.lp-id-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-top: 1px dashed var(--border);
    font-family: var(--lp-mono);
    font-size: 13.5px;
}
.lp-id-row:first-of-type { border-top: 0; }
.lp-id-row span:first-child { color: var(--text-muted); }
.lp-id-row span:last-child { font-weight: 600; }

/* ===================== ПОДВАЛ ===================== */
.lp-footer {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    font-family: var(--lp-mono);
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ===================== COOKIE-БАННЕР (152-ФЗ) ===================== */
.lp-cookie {
    z-index: 1500;
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    line-height: 1.5;
}
.lp-cookie p { color: var(--text-secondary); flex: 1 1 280px; margin: 0; }
.lp-cookie .btn { --bs-btn-padding-y: 10px; --bs-btn-padding-x: 18px; --bs-btn-font-size: 13.5px; }
.lp-cookie .btn-primary { --bs-btn-padding-x: 20px; }
.lp-cookie .btn-outline-secondary { --bs-btn-color: var(--text-secondary); }

/* ===================== ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ ===================== */
.reveal { opacity: 1; transform: none; }
.js-motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-motion .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== ЛАМПА (декор рядом с карточкой тарифа) =====================
   Адаптация анимированной настольной лампы: всё под неймспейсом .lamp-widget, цвета — из палитры сайта.
   Стоит у ЛЕВОГО КРАЯ ЭКРАНА и развёрнута на тарифы (зеркально: голова лампы слева, свет идёт вправо на карточки) — справа
   место занимают сами карточки. Позиция считается от края окна, а не от карточки: левое поле страницы
   = (ширина окна − 1080px)/2 + 24px (поле контейнера), лампа шириной sW = 260px × масштаб прижимается вплотную к краю
   (left = sW − поле), но не заходит на карточку (min с −12px). Уходящее левее края окна горизонтальной прокрутки не даёт.
   Масштаб уменьшается на узких десктопах, а на экранах уже 1280px лампа скрыта. Якорь — левый нижний угол блока
   (transform-origin), scaleX(−s) разворачивает лампу влево от якоря. +8px — запас на ширину вертикальной полосы прокрутки
   (100vw её включает). */
.lamp-widget {
    --lamp-scale: 1;
    --lamp-w: calc(260px * var(--lamp-scale));
    position: absolute;
    left: min(-12px, calc(var(--lamp-w) - ((100vw - 1080px) / 2 + 24px) + 8px));
    bottom: 0;
    width: 260px;
    height: 420px;
    transform-origin: 0 100%;
    transform: scale(calc(var(--lamp-scale) * -1), var(--lamp-scale));
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 1599.98px) { .lamp-widget { --lamp-scale: .85; } }
@media (max-width: 1439.98px) { .lamp-widget { --lamp-scale: .7; } }
@media (max-width: 1365.98px) { .lamp-widget { --lamp-scale: .5; } }
@media (max-width: 1279.98px) { .lamp-widget { display: none; } }
.lamp-widget *, .lamp-widget *::after, .lamp-widget *::before { box-sizing: content-box; }
.lamp-widget .lw-inner { position: relative; width: 100%; height: 100%; }
.lamp-widget .lampBase { position: absolute; bottom: 0; right: 150px; height: 5px; width: 66px; background: var(--text-muted); }
.lamp-widget .lampStand {
    transform-origin: 76px bottom; position: absolute; right: 0; bottom: 0; height: 100%; width: 100%;
    animation: lw-rotate1 6s 2s infinite ease-in-out;
}
.lamp-widget .bar { position: absolute; width: 7px; background: var(--text-muted); }
.lamp-widget .bar::after { content: ""; position: absolute; display: block; width: 25px; height: 25px; background: var(--bg-card); border-radius: 50%; }
.lamp-widget .bar1 { height: 110px; right: 180px; bottom: 5px; transform-origin: center bottom; }
.lamp-widget .bar1::after { transform: translate(-9px, -20px); border: 5px solid var(--border); z-index: 1; }
.lamp-widget .bar2 {
    transform: rotate(45deg); height: 110px; right: 0; bottom: 120px; transform-origin: center bottom;
    animation: lw-rotate2 6s 2s infinite ease-in-out;
}
.lamp-widget .bar2::after { top: 0; border: 5px solid var(--accent); transform: translate(-10px, -17px); }
.lamp-widget .rotator {
    transform: rotate(-100deg); position: relative; right: 0; top: -115px; height: 110px; transform-origin: center bottom;
    animation: lw-rotate3 6s 2s infinite ease-in-out;
}
.lamp-widget .bar3 { height: 100px; }
.lamp-widget .bar3::after { border: 5px solid var(--info); transform: translate(-9px, -23px); }
.lamp-widget .cord1 {
    position: absolute; background: var(--bg-card); width: 40px; height: 90px; border: 5px solid var(--border);
    border-radius: 20px; z-index: -1; top: -12px; left: -15px; transform: rotate(-26deg);
}
.lamp-widget .bar4 {
    transform: rotate(0deg); height: 50px; right: 0; top: -70px; transform-origin: center bottom;
    box-shadow: inset -1px 17px 0px 0px rgba(255,255,255,0.15);
    animation: lw-rotate4 6s 2s infinite ease-in-out;
}
.lamp-widget .bar4::after { display: none; }
.lamp-widget .cord2 {
    border: 5px solid var(--border); border-radius: 50%; width: 72px; height: 110px; position: absolute;
    left: -24px; top: -35px; z-index: -1; transform: rotate(120deg);
}
.lamp-widget .lampHead {
    position: absolute; transform-origin: 100% -140%; right: 0; top: 50px; width: 30px; height: 30px;
    transform: rotate(120deg);
}
.lamp-widget .bulb {
    width: 40px; height: 40px; background: #e8e8e8; left: -10px; top: -12px; position: absolute;
    z-index: -1; transform: rotate(-200deg); border-radius: 50%;
}
.lamp-widget .bulb::after {
    content: ""; position: absolute; display: block; width: 36px; height: 20px; background: var(--accent-bg);
    left: 2px; top: 9px; border-radius: 10%; transform: rotate(20deg);
}
.lamp-widget .lampshade {
    position: absolute; border-bottom: 73px solid var(--text-primary); border-left: 9px solid transparent;
    border-right: 9px solid transparent; height: 0; width: 59px; right: -10px; top: -60px; z-index: 0;
}
/* Мягкое свечение лампочки (пятно у головы) */
.lamp-widget .lightBeam {
    position: absolute; right: -18px; top: -6px; width: 66px; height: 66px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,214,140,0.95), rgba(232,162,61,0.5) 45%, transparent 75%);
    animation: lw-flicker 10s linear infinite;
    z-index: 2;
}
/* Конус света: часть самой лампы (внутри .lampHead), двигается вместе с ней; clip-path + градиент вдоль луча */
.lamp-widget .lamp-card-glow {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 700px;
    height: 700px;
    clip-path: polygon(96% 5%, -29% 27%, 41% 119%);
    transform: rotate(-35deg);
    transform-origin: 96% 5%;
    filter: blur(6px);
    background: linear-gradient(to bottom left,
        rgba(255,214,140,0.7) 0%, rgba(232,162,61,0.35) 30%, rgba(232,162,61,0.12) 55%, transparent 75%);
    pointer-events: none;
    z-index: -1;
}

@keyframes lw-rotate1 {
    0% { transform: rotate(0deg); } 5% { transform: rotate(-15deg); } 75% { transform: rotate(-15deg); }
    80% { transform: rotate(0deg); } 100% { transform: rotate(0deg); }
}
@keyframes lw-rotate2 {
    0% { transform: rotate(45deg); } 5% { transform: rotate(65deg); } 45% { transform: rotate(65deg); }
    50% { transform: rotate(45deg); } 100% { transform: rotate(45deg); }
}
@keyframes lw-rotate3 {
    0% { transform: rotate(-100deg); } 5% { transform: rotate(-130deg); } 45% { transform: rotate(-130deg); }
    50% { transform: rotate(-100deg); } 100% { transform: rotate(-100deg); }
}
@keyframes lw-rotate4 {
    0% { transform: rotate(0deg); } 5% { transform: rotate(30deg); } 45% { transform: rotate(30deg); }
    50% { transform: rotate(0deg); } 100% { transform: rotate(0deg); }
}
@keyframes lw-eyeballing {
    0% { transform: rotate(122deg); } 20% { transform: rotate(80deg); } 50% { transform: rotate(100deg); }
    90% { transform: rotate(90deg); } 100% { transform: rotate(122deg); }
}
@keyframes lw-flicker {
    0% { opacity: 0; } 6% { opacity: 0.22; } 11% { opacity: 0; } 22% { opacity: 0.22; } 38% { opacity: 0.22; }
    39% { opacity: 0.03; } 42% { opacity: 0.22; } 53% { opacity: 0.28; } 59% { opacity: 0.2; } 60% { opacity: 0; }
    73% { opacity: 0.2; } 75% { opacity: 0.08; } 79% { opacity: 0.2; } 100% { opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
    .lamp-widget .lampStand, .lamp-widget .bar2, .lamp-widget .rotator, .lamp-widget .bar4, .lamp-widget .lightBeam { animation: none; }
}

/* ===================== МЕЛОЧИ ===================== */
.lp-note { font-size: 13.5px; color: var(--text-muted); margin: 20px 0 0; }
.lp-faq { gap: 12px; }

/* ===================== БЛОГ (страницы /blog/) ===================== */
.lp-brand-link { color: inherit; text-decoration: none; }
.lp-article { max-width: 720px; margin: 0 auto; padding: 48px 0 64px; }
.lp-article h1 { font-size: 32px; line-height: 1.25; margin-bottom: 10px; }
.lp-article h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 12px; }
.lp-article p, .lp-article li { font-size: 17px; line-height: 1.7; }
.lp-article p { margin-bottom: 16px; }
.lp-article ul { padding-left: 22px; margin-bottom: 16px; }
.lp-article li { margin-bottom: 6px; }
.lp-article a { color: var(--accent); }
.lp-article-meta { font-family: var(--lp-mono); font-size: 13px; opacity: 0.7; margin-bottom: 28px; }
.lp-crumbs { font-family: var(--lp-mono); font-size: 13px; opacity: 0.8; margin-bottom: 18px; }
.lp-crumbs a { color: inherit; text-decoration: none; }
.lp-crumbs a:hover { color: var(--accent); }
.lp-post { text-decoration: none; color: inherit; }
.lp-post:hover { border-color: var(--accent); }
.lp-post h2 { font-size: 20px; margin: 0 0 8px; }
.lp-post p { font-size: 15px; margin-bottom: 10px; }
.lp-post .lp-article-meta { margin: 0; }
@media (max-width: 767.98px) {
    .lp-article { padding-top: 32px; }
    .lp-article h1 { font-size: 26px; }
    .lp-article p, .lp-article li { font-size: 16px; }
}

/* ===================== СТРАНИЦЫ-СТАТЬИ: таблицы, врезки, нумерованные списки, призыв, перелинковка (2026-10-19) ===================== */
.lp-article ol { padding-left: 24px; margin-bottom: 16px; }
.lp-article h3 { font-size: 18px; line-height: 1.35; margin: 24px 0 8px; }
.lp-article strong, .lp-article b { font-weight: 600; }
.lp-table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.lp-article table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; min-width: 520px; }
.lp-article th, .lp-article td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.lp-article th { background: var(--bg-card); font-weight: 600; color: var(--text-primary); }
.lp-article td { color: var(--text-secondary); }
.lp-article caption { caption-side: top; text-align: left; padding: 0 0 8px; color: var(--text-muted); font-size: 13px; }
.lp-callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--bg-card); border-radius: 4px; padding: 14px 16px; margin: 0 0 20px; }
.lp-callout p { margin: 0 0 8px; font-size: 15.5px; }
.lp-callout p:last-child { margin-bottom: 0; }
.lp-article-cta { border: 1px solid var(--border); background: var(--bg-card); border-radius: 6px; padding: 22px 22px 18px; margin: 36px 0 8px; }
.lp-article-cta h2 { margin-top: 0; font-size: 20px; }
.lp-article-cta p { font-size: 16px; }
.lp-article-cta .d-flex { margin-top: 6px; }
.lp-article-cta a.btn, .lp-article-cta a.btn:hover { color: inherit; text-decoration: none; }
.lp-article-cta a.btn-primary, .lp-article-cta a.btn-primary:hover { color: #0A0D12; }
.lp-related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
.lp-related h2 { font-size: 18px; margin: 0 0 10px; }
.lp-related ul { list-style: none; padding-left: 0; }
.lp-related li { margin-bottom: 8px; }
.lp-article .lp-lead { font-size: 18px; color: var(--text-secondary); }
.lp-sec-list { list-style: none; padding-left: 0; }
.lp-sec-list li { padding-left: 0; }
.lp-sec-list li strong { color: var(--text-primary); }
@media (max-width: 767.98px) {
    .lp-article table { font-size: 13.5px; }
    .lp-article-cta { padding: 18px 16px 14px; }
}

/* ===================== ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ (плавающая кнопка) ===================== */
.lp-theme-fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040;
    width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--border); box-shadow: var(--shadow-card); cursor: pointer; padding: 0;
}
.lp-theme-fab:hover { border-color: var(--accent); color: var(--accent); }
.lp-theme-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-theme-fab .ico-moon { display: none; }
[data-bs-theme="light"] .lp-theme-fab .ico-sun { display: none; }
[data-bs-theme="light"] .lp-theme-fab .ico-moon { display: inline; }
.lp-cookie ~ .lp-theme-fab { bottom: 18px; }
@media (max-width: 575px) { .lp-theme-fab { right: 12px; bottom: 84px; } }

/* Лампа — декор тёмной темы (свет от неё на светлом фоне не виден): в светлой теме скрыта */
[data-bs-theme="light"] .lamp-widget { display: none; }
