/* Big Lava CRM — продуктовые лендинги (/crm, /crm/mebel) и страница Bakesoft (/bakesoft).
   Самодостаточный файл без Bootstrap. Бренд: фон #010521, оранжевый акцент #ff5a1f → #ff9a3c (дозированно). */

:root {
    --bg: #010521;
    --bg-2: #060b2e;
    --surface: rgba(255, 255, 255, .04);
    --surface-2: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .10);
    --text: #ffffff;
    --muted: #b7bbd3;
    --dim: #8a8fae;
    --orange-1: #ff5a1f;
    --orange-2: #ff9a3c;
    --grad: linear-gradient(135deg, var(--orange-1), var(--orange-2));
    --radius: 18px;
    --wrap: 1200px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body.crm {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 var(--font);
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); }
a:hover { color: #ffb978; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.crm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .crm-wrap { padding: 0 32px; } }
.crm-wrap--narrow { max-width: 860px; }

.crm-skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.crm-skip:focus { left: 8px; }

/* Header */
.crm-header { position: sticky; top: 0; z-index: 50; background: rgba(1, 5, 33, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.crm-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.crm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.crm-brand img { width: 128px; height: auto; }
.crm-brand__tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--bg); background: var(--grad); padding: 3px 8px; border-radius: 6px; }
.crm-nav { display: none; gap: 28px; }
.crm-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.crm-nav a:hover { color: #fff; }
.crm-header__back { color: var(--muted); text-decoration: none; font-size: 15px; }
@media (min-width: 860px) { .crm-nav { display: flex; } .crm-brand img { width: 150px; } }

/* Buttons */
.crm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 26px; border-radius: 12px;
    font: 700 16px/1.2 var(--font); text-decoration: none; text-align: center;
    border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.crm-btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); }
.crm-btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 90, 31, .85); }
.crm-btn--ghost { background: var(--surface); color: #fff; border-color: rgba(255, 255, 255, .22); }
.crm-btn--ghost:hover { color: #fff; background: var(--surface-2); border-color: rgba(255, 255, 255, .4); }
.crm-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.crm-btn--block { width: 100%; }
.crm-btn[disabled] { opacity: .65; cursor: progress; }

/* Hero */
.crm-hero { position: relative; padding: 40px 0 48px; overflow: hidden; }
.crm-hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 90, 31, .28), rgba(255, 154, 60, .08) 55%, transparent 72%);
}
.crm-hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.crm-hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.crm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.crm-hero__meta { font-size: 14px; color: var(--dim); margin: 0; }
.crm-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    font-size: 13px; font-weight: 600; color: #ffd2b0; letter-spacing: .02em;
    padding: 6px 12px; border-radius: 999px; background: rgba(255, 90, 31, .12); border: 1px solid rgba(255, 154, 60, .35);
}
.crm-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 0 4px rgba(255, 154, 60, .2); }

.crm-hero__visual { position: relative; padding-bottom: 28px; }
.crm-window {
    position: relative; border-radius: 14px; overflow: hidden; background: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .03), 0 0 90px -30px rgba(255, 90, 31, .55);
}
.crm-window img { width: 100%; }
.crm-phone {
    position: absolute; right: -6px; bottom: 0; width: 26%; max-width: 170px; min-width: 96px;
    border-radius: 22px; overflow: hidden; background: #0d1235;
    border: 5px solid #1a1f45; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .9);
}
.crm-phone--static { position: relative; right: auto; bottom: auto; width: 260px; max-width: 70%; min-width: 0; margin: 0 auto; }

@media (min-width: 992px) {
    .crm-hero { padding: 72px 0 56px; }
    .crm-hero__cta .crm-btn { padding: 0 22px; }
    .crm-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; }
    .crm-hero__visual { margin-right: -90px; }
    .crm-phone { right: -10px; }
}

/* Sections */
.crm-section { padding: 72px 0; position: relative; }
.crm-section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 992px) { .crm-section { padding: 104px 0; } }
.crm-head { max-width: 760px; margin-bottom: 40px; }
.crm-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 10px; }
.crm-lead { color: var(--muted); font-size: 18px; }

/* Pain cards */
.crm-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .crm-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .crm-cards { grid-template-columns: repeat(4, 1fr); } }
.crm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.crm-card h3 { font-size: 19px; }
.crm-card p { color: var(--muted); font-size: 16px; margin: 0; }
.crm-card__icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
    border-radius: 12px; color: var(--orange-2); background: rgba(255, 90, 31, .1); border: 1px solid rgba(255, 154, 60, .25);
}
.crm-ico { width: 24px; height: 24px; }

/* Feature rows */
.crm-feature { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
.crm-feature:first-of-type { margin-top: 0; }
.crm-feature__text h3 { font-size: clamp(22px, 2.4vw, 30px); }
.crm-feature__text > p { color: var(--muted); font-size: 18px; }
@media (min-width: 992px) {
    .crm-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; margin-top: 96px; }
    .crm-feature--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .crm-feature--rev .crm-feature__media { order: 2; }
    .crm-feature--phone { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.crm-feature--phone .crm-feature__media { position: relative; }
.crm-feature--phone .crm-feature__media::before {
    content: ""; position: absolute; inset: 10% 15%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 90, 31, .3), transparent); filter: blur(10px);
}

.crm-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.crm-checks li { position: relative; padding-left: 30px; color: #e3e5f1; }
.crm-checks li::before {
    content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255, 154, 60, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Video */
.crm-video { display: grid; gap: 36px; align-items: center; }
.crm-video__frame { justify-self: center; width: 100%; max-width: 340px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(255, 90, 31, .5); }
.crm-video__frame video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (min-width: 860px) { .crm-video { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }

/* Steps */
.crm-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .crm-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.crm-step { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.crm-step::before {
    content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
    border-radius: 50%; font-weight: 800; color: #fff; background: var(--grad);
}
.crm-step p { color: var(--muted); margin: 0; }

/* Pricing */
.crm-pay { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.crm-sbp { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.crm-sbp__mark { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 7px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, #5b57d1, #1d9bf0 45%, #24b47e); }
.crm-pay__note { font-size: 14px; color: #ffd2b0; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 154, 60, .35); background: rgba(255, 90, 31, .1); }

.crm-plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .crm-plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.crm-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.crm-plan--hl { background: linear-gradient(180deg, rgba(255, 90, 31, .12), rgba(255, 255, 255, .03) 60%); border-color: rgba(255, 154, 60, .55); box-shadow: 0 0 80px -40px rgba(255, 90, 31, .8); }
.crm-plan__badge { position: absolute; top: -12px; left: 26px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--grad); }
.crm-plan__name { font-size: 24px; margin-bottom: 4px; }
.crm-plan__summary { color: var(--muted); font-size: 15px; min-height: 2.6em; }
.crm-plan__price { margin: 8px 0 2px; display: flex; align-items: baseline; gap: 4px; }
.crm-plan__num { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.crm-plan__per { color: var(--muted); font-size: 18px; }
.crm-plan__sbp { font-size: 13px; color: var(--dim); margin-bottom: 20px; }
.crm-plan__list { margin-bottom: 26px; flex: 1; }
.crm-plan .crm-checks li { font-size: 15px; }

/* FAQ */
.crm-faq { display: grid; gap: 12px; }
.crm-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.crm-faq__item summary {
    cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17px; position: relative;
}
.crm-faq__item summary::-webkit-details-marker { display: none; }
.crm-faq__item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
    color: var(--orange-2); border: 1px solid rgba(255, 154, 60, .4); font-size: 18px; line-height: 1;
}
.crm-faq__item[open] summary::after { content: "−"; }
.crm-faq__item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Final CTA + form */
.crm-final { background: radial-gradient(800px 500px at 15% 30%, rgba(255, 90, 31, .18), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.crm-final__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) { .crm-final__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 72px; } }
.crm-final__text .crm-checks { margin-top: 24px; }
.crm-formcard { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 28px 22px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
@media (min-width: 640px) { .crm-formcard { padding: 36px 34px; } }
.crm-form { display: grid; gap: 16px; }
.crm-field { display: grid; gap: 6px; }
.crm-field label { font-size: 14px; font-weight: 600; color: #e3e5f1; }
.crm-field__opt { font-weight: 400; color: var(--dim); margin-left: 4px; }
.crm-field input, .crm-field select {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
    font: 400 16px/1.3 var(--font); color: #fff; background: rgba(1, 5, 33, .65);
    border: 1px solid rgba(255, 255, 255, .2); transition: border-color .15s ease, box-shadow .15s ease;
}
.crm-field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background: rgba(1, 5, 33, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7bbd3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
.crm-field select option { color: #000; }
.crm-field input::placeholder { color: #6f7495; }
.crm-field input:focus, .crm-field select:focus { outline: none; border-color: var(--orange-2); box-shadow: 0 0 0 3px rgba(255, 154, 60, .25); }
.crm-field input[aria-invalid="true"], .crm-consent input[aria-invalid="true"] { border-color: #ff6b6b; }
.crm-field__err { font-size: 13px; color: #ff8f8f; min-height: 0; }
.crm-field__err:empty { display: none; }
.crm-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.crm-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange-1); }
.crm-form__alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 107, 107, .4); color: #ffc2c2; }
.crm-form__note { font-size: 13px; color: var(--dim); margin: 0; text-align: center; }
.crm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.crm-success { text-align: center; padding: 24px 8px; }
.crm-success:focus { outline: none; }
.crm-success__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 0 60px -10px rgba(255, 90, 31, .8); }
.crm-success p { color: var(--muted); margin: 0; }
[hidden] { display: none !important; }

/* Hub */
.crm-hero--hub .crm-hero__sub { max-width: 720px; }
.crm-hub { position: relative; z-index: 1; display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 860px) { .crm-hub { grid-template-columns: 1fr 1fr; } }
.crm-hub__card { display: block; text-decoration: none; color: #fff; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 26px; transition: border-color .15s ease, transform .15s ease; }
.crm-hub__card:hover { color: #fff; border-color: rgba(255, 154, 60, .55); transform: translateY(-2px); }
.crm-hub__card .crm-window { margin-bottom: 22px; }
.crm-hub__card h2 { font-size: 26px; padding: 0 6px; }
.crm-hub__card p { color: var(--muted); padding: 0 6px; }
.crm-hub__more { color: var(--orange-2); font-weight: 700; padding: 0 6px; }

/* Footer */
.crm-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; color: var(--muted); }
.crm-footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .crm-footer__grid { grid-template-columns: 2fr 1.3fr 1.3fr; } }
.crm-footer__text { margin-top: 16px; max-width: 380px; }
.crm-footer__h { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.crm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crm-footer a { color: var(--muted); text-decoration: none; }
.crm-footer a:hover { color: #fff; }
.crm-footer__nap { font-style: normal; line-height: 1.8; }
.crm-footer__copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 479px) { .crm-hero__cta .crm-btn { width: 100%; } }
