:root {
    --crm-home-accent: #2563eb;
    --crm-home-text: #111827;
    --crm-home-muted: #64748b;
    --crm-home-line: #dbe3ef;
    --crm-home-soft: #f7f9fc;
    --crm-home-white: #ffffff;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--crm-home-white);
    color: var(--crm-home-text);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.crm-public-home,
.crm-public-home * { box-sizing: border-box; }
.crm-public-home { min-width: 0; overflow: hidden; background: var(--crm-home-white); color: var(--crm-home-text); }
.crm-public-home a { color: inherit; text-decoration: none; }
.crm-public-home b,
.crm-public-home strong { font-weight: 500; }
.crm-public-home h1,
.crm-public-home h2,
.crm-public-home h3,
.crm-public-home p { margin-top: 0; }
.crm-public-home h1,
.crm-public-home h2,
.crm-public-home h3 { font-weight: 400; letter-spacing: -0.035em; }
.crm-home-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.crm-home-header {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--crm-home-line);
}
.crm-home-header__inner { min-height: 72px; display: flex; align-items: center; gap: 36px; }
.crm-home-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; white-space: nowrap; }
.crm-home-brand__mark { width: 20px; height: 20px; border: 1.5px solid var(--crm-home-accent); border-radius: 50%; position: relative; }
.crm-home-brand__mark::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--crm-home-accent); inset: 0; margin: auto; }
.crm-home-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; color: #475569; }
.crm-home-nav a,
.crm-home-login,
.crm-home-text-link { transition: color .18s ease; }
.crm-home-nav a:hover,
.crm-home-login:hover,
.crm-home-text-link:hover { color: var(--crm-home-accent); }
.crm-home-login { font-size: 14px; color: var(--crm-home-accent) !important; border-bottom: 1px solid currentColor; padding: 4px 0; white-space: nowrap; }

.crm-home-hero { padding: 112px 0 104px; border-bottom: 1px solid var(--crm-home-line); }
.crm-home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr); gap: 56px; align-items: center; }
.crm-home-eyebrow,
.crm-home-section-label { color: var(--crm-home-accent); font-size: 12px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.crm-home-hero h1 { max-width: 760px; margin-bottom: 30px; font-size: clamp(48px, 5.4vw, 78px); line-height: .99; }
.crm-home-lead { max-width: 720px; margin-bottom: 34px; color: #475569; font-size: 20px; line-height: 1.6; }
.crm-home-actions { display: flex; align-items: center; gap: 26px; }
.crm-home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 23px; border: 1px solid var(--crm-home-accent); border-radius: 7px; background: var(--crm-home-accent); color: #fff !important; font-size: 15px; font-weight: 500; transition: background .18s ease, border-color .18s ease; }
.crm-home-button:hover { background: #1d4ed8; border-color: #1d4ed8; }
.crm-home-text-link { color: var(--crm-home-accent) !important; font-size: 15px; border-bottom: 1px solid currentColor; padding: 5px 0; }

.crm-home-hero-visual { position: relative; min-width: 0; }
.crm-home-hero-visual::before { content: ""; position: absolute; inset: 8% 2% 10% 14%; border: 1px solid #edf2fb; border-radius: 50%; pointer-events: none; }
.crm-home-hero-visual svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.crm-home-hero-visual svg text { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 400; fill: #475569; }
.crm-home-hero-visual svg .crm-home-hero-visual__micro { font-size: 10px; fill: #64748b; }
.crm-home-hero-visual svg .crm-home-hero-visual__label { font-size: 10px; letter-spacing: .1em; fill: #94a3b8; }
.crm-home-hero-visual svg .crm-home-hero-visual__label--accent { fill: #2563eb; }
.crm-home-hero-visual__caption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: -18px; color: #94a3b8; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.crm-home-hero-visual__caption i { display: block; width: 22px; height: 1px; background: #cbd5e1; }
.crm-home-hero-visual__caption span:nth-of-type(2) { color: var(--crm-home-accent); }

.crm-home-context { padding: 102px 0; background: var(--crm-home-soft); border-bottom: 1px solid var(--crm-home-line); }
.crm-home-context__grid { display: grid; grid-template-columns: 200px 1fr; gap: 76px; }
.crm-home-context h2,
.crm-home-heading h2,
.crm-home-functions__intro h2,
.crm-home-final h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.1; }
.crm-home-context h2 { max-width: 860px; margin-bottom: 42px; }
.crm-home-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.crm-home-two-columns p,
.crm-home-functions__intro > p:last-child,
.crm-home-final__grid > div:last-child > p { color: #475569; font-size: 17px; line-height: 1.75; }
.crm-home-legal { display: grid; grid-template-columns: 230px 1fr; gap: 40px; margin-top: 54px; padding-top: 26px; border-top: 1px solid #cdd7e5; }
.crm-home-legal span { color: var(--crm-home-accent); font-size: 14px; font-weight: 500; }
.crm-home-legal p { margin: 0; color: var(--crm-home-muted); font-size: 14px; line-height: 1.7; }
.crm-home-context-graphic { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 58px; padding-top: 34px; border-top: 1px solid #cdd7e5; }
.crm-home-context-graphic__side { min-width: 0; }
.crm-home-context-graphic__title { display: block; margin-bottom: 10px; color: #64748b; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.crm-home-context-graphic__side--safe .crm-home-context-graphic__title { color: var(--crm-home-accent); }
.crm-home-context-graphic svg { display: block; width: 100%; height: auto; }
.crm-home-context-graphic svg text { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 400; }
.crm-home-context-graphic svg .crm-home-context-graphic__micro { font-size: 9px; }
.crm-home-context-graphic__arrow { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #94a3b8; font-size: 10px; line-height: 1.4; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.crm-home-context-graphic__arrow i { position: relative; display: block; width: 72px; height: 1px; background: var(--crm-home-accent); }
.crm-home-context-graphic__arrow i::after { content: ""; position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-top: 1px solid var(--crm-home-accent); border-right: 1px solid var(--crm-home-accent); transform: rotate(45deg); }

.crm-home-section { padding: 112px 0; border-bottom: 1px solid var(--crm-home-line); }
.crm-home-heading { max-width: 820px; margin-bottom: 72px; }
.crm-home-heading--wide { max-width: 940px; }
.crm-home-heading h2 { margin-bottom: 18px; }
.crm-home-heading > p:last-child { color: var(--crm-home-muted); font-size: 16px; line-height: 1.65; }
.crm-home-use-list { border-top: 1px solid var(--crm-home-line); }
.crm-home-use { display: grid; grid-template-columns: 42px 200px minmax(230px, .9fr) minmax(250px, 1fr); gap: 34px; padding: 40px 0; border-bottom: 1px solid var(--crm-home-line); align-items: center; }
.crm-home-use__number { align-self: start; color: #94a3b8; font-size: 13px; }
.crm-home-use__visual { min-width: 0; }
.crm-home-use__visual svg { display: block; width: 100%; height: auto; }
.crm-home-use__copy h3 { margin: 0 0 14px; font-size: 27px; line-height: 1.2; }
.crm-home-use__copy p { margin: 0; color: #475569; font-size: 16px; line-height: 1.7; }
.crm-home-use ul,
.crm-home-boundary ul { margin: 0; padding: 0; list-style: none; }
.crm-home-use li { position: relative; margin: 0 0 10px; padding-left: 18px; color: #475569; font-size: 14px; line-height: 1.55; }
.crm-home-use li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--crm-home-accent); }

.crm-home-boundary { padding: 112px 0; background: #0f172a; color: #fff; }
.crm-home-boundary .crm-home-section-label { color: #93b4ff; }
.crm-home-boundary__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr) minmax(0, 1fr); gap: 46px; padding-top: 54px; border-top: 1px solid rgba(255,255,255,.18); align-items: center; }
.crm-home-boundary__title { display: block; margin-bottom: 26px; color: #93b4ff; font-size: 14px; font-weight: 500; }
.crm-home-boundary li { margin-bottom: 15px; color: #d7e0ec; font-size: 17px; line-height: 1.55; }
.crm-home-boundary__flow { min-width: 0; }
.crm-home-boundary__flow svg { display: block; width: 100%; height: auto; }
.crm-home-boundary__flow svg text { font-family: Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 400; fill: #8190a6; letter-spacing: .07em; text-transform: uppercase; }

.crm-home-functions { display: grid; grid-template-columns: .78fr 1.22fr; gap: 100px; }
.crm-home-functions__intro h2 { margin-bottom: 24px; }
.crm-home-function-list { border-top: 1px solid var(--crm-home-line); }
.crm-home-function-list > div { display: grid; grid-template-columns: 44px 180px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--crm-home-line); align-items: baseline; }
.crm-home-function-list span { color: #94a3b8; font-size: 12px; }
.crm-home-function-list h3 { margin: 0; font-size: 20px; }
.crm-home-function-list p { margin: 0; color: var(--crm-home-muted); font-size: 14px; line-height: 1.65; }

.crm-home-tariffs { padding: 112px 0; background: var(--crm-home-soft); border-bottom: 1px solid var(--crm-home-line); }
.crm-home-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #cdd7e5; border-bottom: 1px solid #cdd7e5; }
.crm-home-plan-grid--many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.crm-home-plan { min-width: 0; padding: 35px 32px 36px; border-right: 1px solid #cdd7e5; }
.crm-home-plan:first-child { padding-left: 0; }
.crm-home-plan:last-child { padding-right: 0; border-right: 0; }
.crm-home-plan h3 { margin-bottom: 30px; font-size: 24px; }
.crm-home-plan__price { min-height: 76px; margin-bottom: 30px; }
.crm-home-plan__price span { display: block; font-size: 40px; line-height: 1; letter-spacing: -0.04em; color: var(--crm-home-accent); }
.crm-home-plan__price small { color: var(--crm-home-muted); font-size: 12px; }
.crm-home-plan dl { margin: 0 0 30px; }
.crm-home-plan dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #dfe6f0; font-size: 13px; }
.crm-home-plan dt { color: var(--crm-home-muted); }
.crm-home-plan dd { margin: 0; text-align: right; font-weight: 500; }
.crm-home-plan > a { color: var(--crm-home-accent) !important; font-size: 14px; border-bottom: 1px solid currentColor; }
.crm-home-tariffs__empty { padding: 28px 0; border-top: 1px solid var(--crm-home-line); border-bottom: 1px solid var(--crm-home-line); color: var(--crm-home-muted); }

.crm-home-final { padding: 108px 0; }
.crm-home-final__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: end; }
.crm-home-final h2 { margin-bottom: 0; }
.crm-home-final__grid > div:last-child > p { margin-bottom: 30px; }

.crm-home-footer { border-top: 1px solid var(--crm-home-line); padding: 32px 0; }
.crm-home-footer .crm-home-shell { display: grid; grid-template-columns: 180px 1fr auto; gap: 30px; align-items: center; }
.crm-home-footer span { font-weight: 500; }
.crm-home-footer p { margin: 0; color: var(--crm-home-muted); font-size: 13px; }
.crm-home-footer a { color: var(--crm-home-accent) !important; font-size: 13px; }

@media (max-width: 1040px) {
    .crm-home-hero__grid { grid-template-columns: 1fr; gap: 62px; }
    .crm-home-hero-visual { width: min(620px, 100%); margin: 0 auto; }
    .crm-home-context__grid { grid-template-columns: 1fr; gap: 28px; }
    .crm-home-context-graphic { grid-template-columns: 1fr; gap: 18px; }
    .crm-home-context-graphic__arrow { flex-direction: column; justify-content: center; }
    .crm-home-context-graphic__arrow i { width: 1px; height: 52px; }
    .crm-home-context-graphic__arrow i::after { top: auto; right: -3px; bottom: 0; transform: rotate(135deg); }
    .crm-home-use { grid-template-columns: 44px 190px 1fr; }
    .crm-home-use ul { grid-column: 3; }
    .crm-home-functions { grid-template-columns: 1fr; gap: 56px; }
    .crm-home-plan-grid,
    .crm-home-plan-grid--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-home-plan:nth-child(2n) { border-right: 0; padding-right: 0; }
    .crm-home-plan:nth-child(2n+1) { padding-left: 0; }
    .crm-home-plan:nth-child(n+3) { border-top: 1px solid #cdd7e5; }
}

@media (max-width: 760px) {
    .crm-home-shell { width: min(100% - 32px, 1180px); }
    .crm-home-header__inner { min-height: 64px; gap: 18px; }
    .crm-home-nav { display: none; }
    .crm-home-login { margin-left: auto; }
    .crm-home-hero { padding: 74px 0 72px; }
    .crm-home-hero h1 { margin-bottom: 24px; font-size: clamp(42px, 13vw, 60px); }
    .crm-home-lead { font-size: 17px; line-height: 1.65; }
    .crm-home-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .crm-home-context,
    .crm-home-section,
    .crm-home-boundary,
    .crm-home-tariffs,
    .crm-home-final { padding: 76px 0; }
    .crm-home-context h2,
    .crm-home-heading h2,
    .crm-home-functions__intro h2,
    .crm-home-final h2 { font-size: 38px; }
    .crm-home-two-columns { grid-template-columns: 1fr; gap: 12px; }
    .crm-home-legal { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
    .crm-home-heading { margin-bottom: 48px; }
    .crm-home-hero-visual__caption { display: none; }
    .crm-home-context-graphic { margin-top: 42px; padding-top: 28px; }
    .crm-home-context-graphic__arrow { padding: 6px 0; }
    .crm-home-use { grid-template-columns: 38px 1fr; gap: 18px; padding: 34px 0; align-items: start; }
    .crm-home-use__visual { grid-column: 2; max-width: 240px; margin-bottom: 4px; }
    .crm-home-use__copy,
    .crm-home-use ul { grid-column: 2; }
    .crm-home-boundary__grid { grid-template-columns: 1fr; gap: 28px; }
    .crm-home-boundary__flow { width: min(270px, 86%); margin: 2px auto; }
    .crm-home-function-list > div { grid-template-columns: 34px 1fr; }
    .crm-home-function-list p { grid-column: 2; }
    .crm-home-plan-grid,
    .crm-home-plan-grid--many { grid-template-columns: 1fr; }
    .crm-home-plan,
    .crm-home-plan:first-child,
    .crm-home-plan:last-child,
    .crm-home-plan:nth-child(2n),
    .crm-home-plan:nth-child(2n+1) { padding: 30px 0; border-right: 0; border-top: 1px solid #cdd7e5; }
    .crm-home-plan:first-child { border-top: 0; }
    .crm-home-final__grid { grid-template-columns: 1fr; gap: 34px; }
    .crm-home-footer .crm-home-shell { grid-template-columns: 1fr auto; }
    .crm-home-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 420px) {
    .crm-home-brand { font-size: 15px; }
    .crm-home-login { font-size: 13px; }
    .crm-home-hero h1 { font-size: 39px; }
    .crm-home-context h2,
    .crm-home-heading h2,
    .crm-home-functions__intro h2,
    .crm-home-final h2 { font-size: 34px; }
    .crm-home-hero-visual { width: calc(100% + 20px); margin-left: -10px; }
    .crm-home-context-graphic__title { font-size: 11px; }
}
