:root {
    --crm-primary: #2f6bff;
    --crm-primary-dark: #1f4fd1;
    --crm-ink: #14213d;
    --crm-muted: #64748b;
    --crm-soft: #f4f7fb;
    --crm-line: #dfe7f1;
    --crm-white: #ffffff;
    --crm-success: #16a36a;
    --crm-radius: 20px;
    --crm-shadow: 0 18px 50px rgba(30, 64, 175, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--crm-ink);
    background: var(--crm-white);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}
a { color: var(--crm-primary); text-decoration: none; }
a:hover { color: var(--crm-primary-dark); text-decoration: none; }
img { max-width: 100%; }

.crm-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.crm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(223, 231, 241, .9);
    backdrop-filter: blur(14px);
}
.crm-header__inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.crm-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.crm-logo img { width: 174px; height: auto; }
.crm-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.crm-nav a { color: #344054; font-size: 15px; font-weight: 600; }
.crm-nav a:hover, .crm-nav a[aria-current="page"] { color: var(--crm-primary); }
.crm-header__actions { display: flex; align-items: center; gap: 12px; }
.crm-menu-toggle { display: none; border: 0; background: transparent; font-size: 25px; color: var(--crm-ink); }

.crm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--crm-primary);
    border-radius: 12px;
    background: var(--crm-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: .2s ease;
}
.crm-btn:hover { background: var(--crm-primary-dark); border-color: var(--crm-primary-dark); color: #fff; transform: translateY(-1px); }
.crm-btn--small { min-height: 42px; padding: 0 17px; }
.crm-btn--ghost { background: #fff; color: var(--crm-primary); }
.crm-btn--ghost:hover { background: #edf3ff; color: var(--crm-primary-dark); }
.crm-btn--dark { background: var(--crm-ink); border-color: var(--crm-ink); }
.crm-btn--dark:hover { background: #263552; border-color: #263552; }

.crm-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 82px;
    background: radial-gradient(circle at 88% 12%, #dfe9ff 0, rgba(223, 233, 255, 0) 34%), linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.crm-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(47, 107, 255, .06); left: -220px; top: -230px; }
.crm-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
.crm-eyebrow { color: var(--crm-primary); text-transform: uppercase; letter-spacing: .11em; font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.crm-hero h1, .crm-page-hero h1 { margin: 0 0 22px; color: var(--crm-ink); font-size: clamp(38px, 5vw, 62px); line-height: 1.07; letter-spacing: -.035em; }
.crm-hero p { max-width: 700px; margin: 0; color: #475467; font-size: 19px; }
.crm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.crm-hero__note { margin-top: 16px; color: var(--crm-muted); font-size: 13px; }
.crm-hero__visual { padding: 12px; background: #fff; border: 1px solid var(--crm-line); border-radius: 24px; box-shadow: var(--crm-shadow); transform: rotate(1deg); }
.crm-hero__visual img { display: block; width: 100%; border-radius: 14px; }

.crm-metrics { border-top: 1px solid var(--crm-line); border-bottom: 1px solid var(--crm-line); background: #fff; }
.crm-metrics__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.crm-metric { padding: 28px; text-align: center; border-right: 1px solid var(--crm-line); }
.crm-metric:last-child { border-right: 0; }
.crm-metric strong { display: block; color: var(--crm-ink); font-size: 24px; line-height: 1.25; }
.crm-metric span { color: var(--crm-muted); font-size: 14px; }

.crm-section { padding: 92px 0; }
.crm-section--soft { background: var(--crm-soft); }
.crm-section--compact { padding: 64px 0; }
.crm-section__head { max-width: 750px; margin: 0 auto 46px; text-align: center; }
.crm-section__head--left { margin-left: 0; text-align: left; }
.crm-section__head h2 { margin: 0 0 15px; font-size: clamp(31px, 4vw, 46px); line-height: 1.15; letter-spacing: -.025em; }
.crm-section__head p { margin: 0; color: var(--crm-muted); font-size: 17px; }

.crm-grid { display: grid; gap: 22px; }
.crm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crm-card { padding: 30px; background: #fff; border: 1px solid var(--crm-line); border-radius: var(--crm-radius); box-shadow: 0 8px 26px rgba(15, 23, 42, .04); }
.crm-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: #edf3ff; color: var(--crm-primary); font-size: 21px; }
.crm-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; }
.crm-card p { margin: 0; color: var(--crm-muted); }
.crm-card ul, .crm-list { margin: 18px 0 0; padding: 0; list-style: none; }
.crm-card li, .crm-list li { position: relative; margin: 9px 0; padding-left: 24px; color: #475467; }
.crm-card li::before, .crm-list li::before { content: "✓"; position: absolute; left: 0; color: var(--crm-success); font-weight: 800; }

.crm-step { position: relative; padding-top: 66px; }
.crm-step__number { position: absolute; top: 0; left: 0; color: #dce7ff; font-size: 54px; line-height: 1; font-weight: 900; }
.crm-step h3 { position: relative; }

.crm-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.crm-price-card { position: relative; display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--crm-line); border-radius: 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.crm-price-card--featured { border: 2px solid var(--crm-primary); box-shadow: var(--crm-shadow); }
.crm-price-card__badge { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 999px; background: #eaf1ff; color: var(--crm-primary); font-size: 12px; font-weight: 800; }
.crm-price-card h3 { margin: 0 0 8px; font-size: 23px; }
.crm-price-card__audience { min-height: 48px; color: var(--crm-muted); font-size: 14px; }
.crm-price { margin: 20px 0 4px; font-size: 38px; line-height: 1.1; font-weight: 850; letter-spacing: -.035em; }
.crm-price span { color: var(--crm-muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.crm-price-card ul { flex: 1; margin: 24px 0; padding: 0; list-style: none; }
.crm-price-card li { position: relative; margin: 11px 0; padding-left: 25px; color: #475467; }
.crm-price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--crm-success); font-weight: 800; }
.crm-price-card .crm-btn { width: 100%; }
.crm-pricing-note { margin-top: 25px; color: var(--crm-muted); text-align: center; font-size: 14px; }

.crm-page-hero { padding: 78px 0 70px; background: linear-gradient(135deg, #eef4ff, #f8fbff 62%, #fff); }
.crm-page-hero h1 { font-size: clamp(36px, 4vw, 52px); }
.crm-page-hero p { max-width: 760px; margin: 0; color: #475467; font-size: 18px; }
.crm-breadcrumb { margin-bottom: 16px; color: var(--crm-muted); font-size: 14px; }
.crm-breadcrumb a { color: var(--crm-muted); }

.crm-cta { padding: 44px; border-radius: 26px; background: linear-gradient(135deg, #2f6bff, #1749c7); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.crm-cta h2 { margin: 0 0 8px; color: #fff; font-size: 31px; }
.crm-cta p { margin: 0; color: rgba(255,255,255,.84); }
.crm-cta .crm-btn { background: #fff; border-color: #fff; color: var(--crm-primary-dark); white-space: nowrap; }

.crm-compare { width: 100%; overflow-x: auto; border: 1px solid var(--crm-line); border-radius: 18px; background: #fff; }
.crm-compare table { width: 100%; min-width: 720px; border-collapse: collapse; }
.crm-compare th, .crm-compare td { padding: 17px 20px; border-bottom: 1px solid var(--crm-line); text-align: center; }
.crm-compare th:first-child, .crm-compare td:first-child { text-align: left; }
.crm-compare thead th { background: #eef3f8; color: var(--crm-ink); }
.crm-compare tr:last-child td { border-bottom: 0; }

.crm-faq { max-width: 860px; margin: 0 auto; }
.crm-faq details { margin-bottom: 12px; padding: 20px 22px; background: #fff; border: 1px solid var(--crm-line); border-radius: 14px; }
.crm-faq summary { cursor: pointer; color: var(--crm-ink); font-weight: 750; }
.crm-faq details p { margin: 13px 0 0; color: var(--crm-muted); }

.crm-legal { max-width: 920px; margin: 0 auto; }
.crm-legal__intro { padding: 24px; margin-bottom: 30px; background: #eef3f8; border-radius: 16px; }
.crm-legal h2 { margin: 42px 0 14px; font-size: 27px; }
.crm-legal h3 { margin: 28px 0 10px; font-size: 20px; }
.crm-legal p, .crm-legal li { color: #475467; }
.crm-legal li { margin: 8px 0; }
.crm-legal table { width: 100%; margin: 20px 0; border-collapse: collapse; }
.crm-legal th, .crm-legal td { padding: 13px; border: 1px solid var(--crm-line); vertical-align: top; text-align: left; }
.crm-legal th { background: #eef3f8; }

.crm-footer { padding: 66px 0 28px; background: #101a31; color: rgba(255,255,255,.72); }
.crm-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.2fr; gap: 40px; }
.crm-footer img { width: 174px; filter: brightness(0) invert(1); }
.crm-footer h3 { margin: 0 0 16px; color: #fff; font-size: 16px; }
.crm-footer p { margin: 16px 0; }
.crm-footer ul { margin: 0; padding: 0; list-style: none; }
.crm-footer li { margin: 9px 0; }
.crm-footer a { color: rgba(255,255,255,.78); }
.crm-footer a:hover { color: #fff; }
.crm-footer__legal { font-size: 13px; }
.crm-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; }

.crm-cookie { display: none; position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1500; max-width: 760px; margin: auto; padding: 18px 20px; background: #fff; border: 1px solid var(--crm-line); border-radius: 16px; box-shadow: 0 20px 60px rgba(15,23,42,.2); }
.crm-cookie__inner { display: flex; align-items: center; gap: 18px; }
.crm-cookie p { margin: 0; color: #475467; font-size: 13px; }
.crm-cookie .crm-btn { flex: 0 0 auto; }

@media (max-width: 991px) {
    .crm-menu-toggle { display: block; margin-left: auto; }
    .crm-nav, .crm-header__actions { display: none; }
    .crm-header.is-open .crm-header__inner { flex-wrap: wrap; padding: 14px 0; }
    .crm-header.is-open .crm-nav { display: flex; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding: 15px 0; border-top: 1px solid var(--crm-line); }
    .crm-header.is-open .crm-header__actions { display: flex; order: 4; width: 100%; }
    .crm-hero__grid { grid-template-columns: 1fr; }
    .crm-hero__visual { max-width: 720px; }
    .crm-grid--3, .crm-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .crm-container { width: min(100% - 28px, 1160px); }
    .crm-header__inner { min-height: 68px; }
    .crm-logo img { width: 145px; }
    .crm-hero { padding: 64px 0 58px; }
    .crm-hero h1 { font-size: 38px; }
    .crm-hero p { font-size: 17px; }
    .crm-metrics__grid, .crm-grid--2, .crm-grid--3, .crm-pricing, .crm-footer__grid { grid-template-columns: 1fr; }
    .crm-metric { border-right: 0; border-bottom: 1px solid var(--crm-line); }
    .crm-metric:last-child { border-bottom: 0; }
    .crm-section { padding: 68px 0; }
    .crm-card, .crm-price-card { padding: 24px; }
    .crm-cta { padding: 30px; flex-direction: column; align-items: flex-start; }
    .crm-cta .crm-btn { width: 100%; }
    .crm-header.is-open .crm-header__actions { flex-direction: column; align-items: stretch; }
    .crm-header.is-open .crm-header__actions .crm-btn { width: 100%; }
    .crm-footer__bottom, .crm-cookie__inner { align-items: flex-start; flex-direction: column; }
    .crm-cookie .crm-btn { width: 100%; }
}
