/**
 * SEO-лендинг CRM управления инвентарём (/crm).
 */

.crm-page {
    --crm-ink: #0f172a;
    --crm-ink-soft: #1e293b;
    --crm-muted: #64748b;
    --crm-text: #334155;
    --crm-accent: #ff6c37;
    --crm-accent-hover: #f45a24;
    --crm-surface: #ffffff;
    --crm-surface-alt: #f8fafc;
    --crm-line: rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 108, 55, 0.04), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 40%, rgba(15, 23, 42, 0.03), transparent 50%),
        var(--crm-surface);
    color: var(--crm-ink);
    overflow-x: clip;
}

/* —— Hero —— */
.crm-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
    color: #f8fafc;
    overflow: hidden;
}

.crm-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(152, 2, 25, 0.55) 0%, rgba(87, 61, 36, 0.45) 38%, rgba(15, 23, 42, 0.92) 72%),
        linear-gradient(180deg, #0f172a 0%, #1a2332 100%);
}

.crm-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 250, 252, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
    pointer-events: none;
}

.crm-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    animation: crm-hero-in 0.7s ease both;
}

.crm-hero__brand {
    display: inline-block;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.crm-hero__brand svg {
    display: block;
    max-width: min(220px, 70vw);
    height: auto;
    margin: 0 auto;
}

.crm-hero__brand-text {
    font-family: Orbitron, Roboto, Tahoma, Arial, sans-serif;
    font-size: 72px;
    font-weight: 400;
}

.crm-hero__brand-sed {
    fill: #ffffff;
}

.crm-hero__brand-nox {
    fill: #4a90e2;
}

.crm-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4.5vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
}

.crm-hero__lead {
    margin: 0 auto 1.75rem;
    max-width: 36rem;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    line-height: 1.65;
    color: rgba(248, 250, 252, 0.88);
}

.crm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* —— Buttons —— */
.crm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.crm-btn--primary {
    background: var(--crm-accent);
    color: #111;
    border-color: var(--crm-accent);
}

.crm-btn--primary:hover {
    background: var(--crm-accent-hover);
    border-color: var(--crm-accent-hover);
    color: #111;
    transform: translateY(-1px);
}

.crm-btn--ghost {
    background: transparent;
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.35);
}

.crm-btn--ghost:hover {
    background: rgba(248, 250, 252, 0.1);
    color: #fff;
    border-color: rgba(248, 250, 252, 0.55);
}

.crm-btn--secondary {
    background: transparent;
    color: var(--crm-ink);
    border-color: rgba(15, 23, 42, 0.22);
}

.crm-btn--secondary:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--crm-ink);
    color: var(--crm-ink);
}

/* —— Sections —— */
.crm-section {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.crm-section__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.crm-section__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--crm-ink);
    text-align: center;
}

.crm-section__lead {
    margin: 0 auto 2rem;
    max-width: 40rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--crm-text);
    text-align: center;
}

.crm-section--howto {
    background: var(--crm-surface-alt);
    border-top: 1px solid var(--crm-line);
    border-bottom: 1px solid var(--crm-line);
}

.crm-section--cta {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* —— Features —— */
.crm-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.crm-feature {
    padding: 1.35rem 1.25rem;
    background: var(--crm-surface);
    border: 1px solid #eeeeee;
    border-radius: 10px;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.crm-feature:hover {
    border-color: rgba(234, 88, 12, 0.28);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.06),
        0 2px 6px rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
}

.crm-feature__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.crm-feature__icon-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff3e0;
    transition: transform 0.2s ease;
}

.crm-feature:hover .crm-feature__icon-wrap {
    transform: translateY(-1px);
}

.crm-feature__icon {
    display: block;
    width: 24px;
    height: 24px;
}

.crm-feature__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--crm-ink);
    line-height: 1.3;
}

.crm-feature__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a5568;
}

.crm-feature__text a,
.crm-audience__text a,
.crm-faq__a a {
    color: #006bd6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.crm-feature__text a:hover,
.crm-audience__text a:hover,
.crm-faq__a a:hover {
    color: #004499;
}

/* —— Steps —— */
.crm-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    max-width: 42rem;
    margin-inline: auto;
}

.crm-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: var(--crm-surface);
    border: 1px solid var(--crm-line);
    border-radius: 10px;
}

.crm-step__num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--crm-ink);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.crm-step__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--crm-ink);
}

.crm-step__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--crm-text);
}

/* —— Audience —— */
.crm-audience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.crm-audience__card {
    padding: 1.5rem 1.35rem;
    border-top: 3px solid var(--crm-accent);
    background: linear-gradient(180deg, #fffaf7 0%, #fff 55%);
}

.crm-audience__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--crm-ink);
}

.crm-audience__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--crm-text);
}

/* —— FAQ —— */
.crm-faq {
    max-width: 40rem;
    margin: 0 auto;
    display: grid;
    gap: 0.65rem;
}

.crm-faq__item {
    border: 1px solid var(--crm-line);
    border-radius: 8px;
    background: var(--crm-surface);
    padding: 0;
    overflow: hidden;
}

.crm-faq__q {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.15rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--crm-ink);
    line-height: 1.4;
}

.crm-faq__q::-webkit-details-marker {
    display: none;
}

.crm-faq__q::after {
    content: '+';
    float: right;
    font-weight: 400;
    color: var(--crm-muted);
}

.crm-faq__item[open] .crm-faq__q::after {
    content: '−';
}

.crm-faq__a {
    margin: 0;
    padding: 0 1.15rem 1.1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--crm-text);
}

/* —— Bottom CTA —— */
.crm-cta {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #fff7f3 0%, #fff 100%);
    border: 1px solid rgba(255, 108, 55, 0.18);
}

.crm-cta__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--crm-ink);
}

.crm-cta__text {
    margin: 0 auto 1.5rem;
    max-width: 32rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--crm-text);
}

.crm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@keyframes crm-hero-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .crm-hero__inner {
        animation: none;
    }

    .crm-feature,
    .crm-feature:hover,
    .crm-btn,
    .crm-btn:hover,
    .crm-feature__icon-wrap,
    .crm-feature:hover .crm-feature__icon-wrap {
        transition: none;
        transform: none;
    }
}

@media (max-width: 900px) {
    .crm-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .crm-features,
    .crm-audience {
        grid-template-columns: 1fr;
    }

    .crm-hero__actions,
    .crm-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .crm-btn {
        width: 100%;
    }
}
