/* ============================================================
   Landing pages (production / field-service / 1c-excel)
   Минималистичная, чистая разметка под рекламный трафик.
   Использует переменные и базовые классы из styles/style.css.
   ============================================================ */

:root {
    --lp-bg: #ffffff;
    --lp-bg-soft: #f5f8fc;
    --lp-border: #e4ebf3;
    --lp-text: #1d2330;
    --lp-text-muted: #5a6477;
    --lp-accent: var(--main-color);
    --lp-accent-soft: rgba(70, 162, 214, 0.08);
    --lp-radius: 16px;
    --lp-radius-sm: 10px;
    --lp-shadow: 0 4px 24px rgba(20, 40, 80, 0.06);
}

body.lp-body {
    color: var(--lp-text);
    background: var(--lp-bg);
}

.lp-container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
}

/* ---------- Sticky breadcrumb / back to home ---------- */
.lp-breadcrumb {
    background: var(--lp-bg-soft);
    border-bottom: 1px solid var(--lp-border);
    font-size: 14px;
    color: var(--lp-text-muted);
}
.lp-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    flex-wrap: wrap;
}
.lp-breadcrumb a {
    color: var(--lp-text-muted);
    border-bottom: 1px dashed transparent;
    transition: color .2s, border-color .2s;
}
.lp-breadcrumb a:hover {
    color: var(--lp-accent);
    border-bottom-color: var(--lp-accent);
}
.lp-breadcrumb .sep { opacity: .5; }

/* ---------- Hero ---------- */
.lp-hero {
    padding: 56px 0 64px;
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(121, 226, 255, .18), transparent 60%),
        linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
    border-bottom: 1px solid var(--lp-border);
}
.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: start;
}
.lp-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--lp-accent);
    background: var(--lp-accent-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.lp-h1 {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.lp-hero-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--lp-text-muted);
    margin: 0 0 28px;
    max-width: 56ch;
}
.lp-hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
    color: var(--lp-text-muted);
    font-size: 14px;
}
.lp-hero-meta strong {
    display: block;
    color: var(--lp-text);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ---------- Hero form card ---------- */
.lp-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 28px;
    box-shadow: var(--lp-shadow);
}
.lp-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}
.lp-card .lp-card-sub {
    color: var(--lp-text-muted);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.5;
}
.lp-form { display: flex; flex-direction: column; gap: 12px; }
.lp-form label {
    font-size: 13px;
    color: var(--lp-text-muted);
    font-weight: 500;
}
.lp-form input, .lp-form textarea, .lp-form select {
    width: 100%;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--lp-text);
    transition: border-color .15s, box-shadow .15s;
}
.lp-form input:focus, .lp-form textarea:focus, .lp-form select:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px var(--lp-accent-soft);
}
.lp-form textarea { resize: vertical; min-height: 84px; }
.lp-form-submit {
    background: linear-gradient(to right, #6079BC, #79E2FF);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .3s;
    margin-top: 6px;
}
.lp-form-submit:hover {
    background: linear-gradient(to right, #79E2FF, #6079BC);
    box-shadow: 0 6px 20px rgba(121, 226, 255, 0.4);
    transform: translateY(-1px);
}
.lp-form .lp-form-note {
    font-size: 11px;
    text-align: center;
    color: #888;
    margin: 4px 0 0;
    line-height: 1.4;
}
.lp-form .lp-form-note a { color: #888; text-decoration: underline; }

/* ---------- Sections ---------- */
.lp-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--lp-border);
}
.lp-section.is-soft { background: var(--lp-bg-soft); }
.lp-section.is-dark {
    background: #11151f;
    color: #e7ecf3;
    border-bottom: none;
}
.lp-section.is-dark .lp-h2 { color: #fff; }
.lp-section.is-dark .lp-section-lead { color: #aab3c2; }

.lp-h2 {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.lp-section-lead {
    font-size: 17px;
    color: var(--lp-text-muted);
    margin: 0 0 36px;
    max-width: 68ch;
    line-height: 1.55;
}

/* ---------- Audience pills ---------- */
.lp-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.lp-audience li {
    background: #fff;
    border: 1px solid var(--lp-border);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--lp-text);
}

/* ---------- Pain points grid ---------- */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-pain {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color .2s, transform .2s;
}
.lp-pain:hover { border-color: var(--lp-accent); transform: translateY(-2px); }
.lp-pain-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 18px;
}
.lp-pain p { margin: 0; line-height: 1.5; font-size: 15px; }

/* ---------- After / outcomes ---------- */
.lp-outcomes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.lp-outcomes li {
    padding: 16px 18px 16px 46px;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}
.lp-outcomes li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 16px;
    height: 9px;
    border-left: 2px solid var(--lp-accent);
    border-bottom: 2px solid var(--lp-accent);
    transform: rotate(-45deg);
}

/* ---------- Steps / process ---------- */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    counter-reset: step;
}
.lp-step {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 22px;
    position: relative;
}
.lp-step::before {
    counter-increment: step;
    content: "0" counter(step);
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-accent);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}
.lp-step h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.lp-step p { margin: 0; font-size: 13.5px; color: var(--lp-text-muted); line-height: 1.5; }

/* ---------- Case block ---------- */
.lp-case {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 36px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
}
.lp-case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.lp-case-stat {
    background: var(--lp-bg-soft);
    border-radius: var(--lp-radius-sm);
    padding: 18px;
}
.lp-case-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--lp-accent);
    margin-bottom: 4px;
}
.lp-case-stat span { font-size: 13px; color: var(--lp-text-muted); line-height: 1.4; }
.lp-case h3 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.lp-case p { margin: 0 0 10px; color: var(--lp-text-muted); line-height: 1.55; }

/* ---------- Why-not-just-dev ---------- */
.lp-why {
    background: #11151f;
    color: #e7ecf3;
    border-radius: var(--lp-radius);
    padding: 44px;
    line-height: 1.55;
    font-size: 17px;
}
.lp-why p { margin: 0; max-width: 64ch; }
.lp-why .lp-eyebrow {
    background: rgba(121, 226, 255, .15);
    color: #79E2FF;
}

/* ---------- CTA block ---------- */
.lp-cta {
    padding: 80px 0;
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(121, 226, 255, .18), transparent 60%),
        linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
}
.lp-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.lp-cta-grid h2 {
    font-size: clamp(24px, 2.6vw, 34px);
    margin: 0 0 12px;
    line-height: 1.2;
}
.lp-cta-grid p {
    font-size: 17px;
    color: var(--lp-text-muted);
    line-height: 1.55;
    margin: 0 0 16px;
}

/* ---------- FAQ ---------- */
.lp-faq details {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    padding: 0;
    margin-bottom: 10px;
    overflow: hidden;
}
.lp-faq summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    transition: background .15s;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: var(--lp-accent);
    transition: transform .2s;
}
.lp-faq details[open] summary { background: var(--lp-bg-soft); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq .lp-faq-answer {
    padding: 0 22px 20px;
    color: var(--lp-text-muted);
    line-height: 1.6;
    font-size: 15px;
}

/* ---------- Trust strip ---------- */
.lp-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.lp-trust-item strong {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--lp-accent);
    margin-bottom: 6px;
}
.lp-trust-item span { font-size: 13px; color: var(--lp-text-muted); line-height: 1.4; }

/* ---------- Other landings links ---------- */
.lp-siblings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.lp-sibling {
    display: block;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 22px 24px;
    transition: border-color .2s, transform .2s;
}
.lp-sibling:hover { border-color: var(--lp-accent); transform: translateY(-2px); }
.lp-sibling .lp-sibling-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lp-accent);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.lp-sibling h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.lp-sibling p { margin: 0; color: var(--lp-text-muted); font-size: 14px; line-height: 1.5; }
.lp-sibling .arrow { float: right; font-weight: 700; color: var(--lp-accent); }

/* ---------- Sticky mobile CTA ---------- */
.lp-sticky-cta {
    display: none;
}

/* ---------- Index page: directions promo block ---------- */
.directions-section {
    padding: 70px 0;
    background: #f5f8fc;
    border-top: 1px solid #e4ebf3;
    border-bottom: 1px solid #e4ebf3;
}
.directions-section .directions-head {
    text-align: center;
    margin-bottom: 36px;
}
.directions-section h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    margin: 0 0 10px;
    color: #1d2330;
    font-weight: 700;
}
.directions-section .directions-sub {
    color: #5a6477;
    margin: 0;
    font-size: 16px;
}
.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.direction-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 16px;
    padding: 26px 26px 22px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.direction-card:hover {
    border-color: #46A2D6;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(20, 40, 80, 0.08);
}
.direction-card .direction-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #46A2D6;
    font-weight: 700;
    margin-bottom: 12px;
}
.direction-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: #1d2330;
    line-height: 1.25;
}
.direction-card p {
    margin: 0 0 18px;
    color: #5a6477;
    font-size: 14.5px;
    line-height: 1.5;
    flex: 1;
}
.direction-card .direction-cta {
    color: #46A2D6;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.direction-card .direction-cta::after {
    content: "→";
    transition: transform .2s;
}
.direction-card:hover .direction-cta::after { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .lp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .lp-grid, .lp-grid-3 { grid-template-columns: 1fr; }
    .lp-outcomes { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
    .lp-case { grid-template-columns: 1fr; padding: 26px; }
    .lp-cta-grid { grid-template-columns: 1fr; gap: 24px; }
    .lp-trust { grid-template-columns: repeat(2, 1fr); }
    .lp-siblings { grid-template-columns: 1fr; }
    .directions-grid { grid-template-columns: 1fr; }
    .lp-section { padding: 56px 0; }
    .lp-hero { padding: 40px 0 48px; }
    .lp-why { padding: 28px; font-size: 16px; }
}
@media (max-width: 600px) {
    .lp-steps { grid-template-columns: 1fr; }
    .lp-case-stats { grid-template-columns: 1fr; }
    .lp-hero-sub { font-size: 16px; }
    .lp-section { padding: 44px 0; }
    .lp-card { padding: 22px; }
}
