.marketing-page {
    --mkt-max: 1120px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
}

.mkt-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: hsl(var(--background) / .85);
    border-bottom: 1px solid hsl(var(--border));
}

.mkt-header-inner,
.mkt-section-inner,
.mkt-footer-inner {
    max-width: var(--mkt-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.mkt-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
}

.mkt-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}

.mkt-nav {
    display: none;
    gap: 1.25rem;
}

.mkt-nav a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
}

.mkt-nav a:hover {
    color: hsl(var(--foreground));
}

.mkt-header-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.mkt-main {
    min-height: calc(100vh - 8rem);
}

.mkt-flash {
    max-width: var(--mkt-max);
    margin: 1rem auto 0;
    padding: .75rem 1rem;
    border-radius: .75rem;
    font-size: .9rem;
}

.mkt-flash--success {
    background: hsl(142 76% 36% / .12);
    border: 1px solid hsl(142 76% 36% / .35);
}

.mkt-flash--error {
    background: hsl(0 84% 60% / .1);
    border: 1px solid hsl(0 84% 60% / .35);
}

.mkt-hero {
    padding: 4rem 0 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, hsl(var(--primary) / .18), transparent),
        hsl(var(--background));
}

.mkt-hero-inner,
.mkt-pricing-hero .mkt-section-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}

.mkt-eyebrow {
    font-size: .85rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.mkt-hero h1,
.mkt-pricing-hero h1 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.mkt-lead {
    font-size: 1.05rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.mkt-demo-hint {
    margin: 0.75rem auto 0;
    max-width: 36rem;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.mkt-section {
    padding: 3rem 0;
}

.mkt-section--muted {
    background: hsl(var(--muted) / .35);
}

.mkt-section-title {
    text-align: center;
    font-size: 1.65rem;
    margin-bottom: 2rem;
}

.mkt-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.mkt-benefit-card {
    padding: 1.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    background: hsl(var(--card));
}

.mkt-benefit-card h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
}

.mkt-benefit-card p {
    font-size: .9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0;
}

.mkt-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.mkt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.mkt-price-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    background: hsl(var(--card));
    display: flex;
    flex-direction: column;
}

.mkt-price-card.is-highlight {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--primary) / .35);
}

.mkt-price-badge {
    position: absolute;
    top: .85rem;
    right: .85rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2rem .45rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.mkt-price-desc {
    font-size: .85rem;
    color: hsl(var(--muted-foreground));
    min-height: 2.5rem;
}

.mkt-price-amount {
    font-size: 2rem;
    font-weight: 800;
    margin: .75rem 0 .25rem;
}

.mkt-price-amount span {
    font-size: .95rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.mkt-price-users {
    font-size: .8rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.mkt-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.mkt-price-features li {
    font-size: .875rem;
    padding: .35rem 0 .35rem 1.1rem;
    position: relative;
}

.mkt-price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
    font-weight: 700;
}

.mkt-addons {
    display: grid;
    gap: .5rem;
    max-width: 640px;
    margin: 0 auto;
}

.mkt-addon-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: .75rem;
    background: hsl(var(--card));
    font-size: .9rem;
}

.mkt-trial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.mkt-trial-form {
    padding: 1.25rem;
}

.mkt-form-note {
    font-size: .75rem;
    color: hsl(var(--muted-foreground));
    margin: .75rem 0 0;
}

.mkt-contact-line {
    font-size: .9rem;
    margin: .35rem 0;
}

.mkt-faq {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: .5rem;
}

.mkt-faq-item {
    border: 1px solid hsl(var(--border));
    border-radius: .75rem;
    background: hsl(var(--card));
    padding: .75rem 1rem;
}

.mkt-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.mkt-faq-item p {
    margin: .75rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: .9rem;
    line-height: 1.55;
}

.mkt-footer {
    border-top: 1px solid hsl(var(--border));
    padding: 2rem 0;
    margin-top: 2rem;
}

.mkt-footer-inner {
    display: grid;
    gap: 1rem;
}

.mkt-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mkt-footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: .875rem;
}

.mkt-footer-copy {
    font-size: .8rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.mkt-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.mkt-case-card {
    padding: 1.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    background: hsl(var(--card));
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.mkt-case-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem;
}

.mkt-case-head h3 {
    margin: 0;
    font-size: 1rem;
}

.mkt-case-location {
    font-size: .75rem;
    color: hsl(var(--muted-foreground));
}

.mkt-case-metric {
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin: 0;
}

.mkt-case-summary {
    font-size: .875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0;
}

.mkt-case-results {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mkt-case-results li {
    font-size: .82rem;
    padding: .25rem 0 .25rem 1rem;
    position: relative;
}

.mkt-case-results li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
}

.mkt-legal-doc {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.mkt-legal-doc h1 {
    font-size: 1.75rem;
    margin-bottom: .5rem;
}

.mkt-legal-meta {
    font-size: .85rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.mkt-legal-doc h2 {
    font-size: 1.1rem;
    margin: 1.5rem 0 .65rem;
}

.mkt-legal-doc p,
.mkt-legal-doc li {
    font-size: .9rem;
    line-height: 1.65;
    color: hsl(var(--foreground));
}

.mkt-legal-doc ul {
    padding-left: 1.25rem;
}

.mkt-legal-requisites {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mkt-legal-requisites li {
    padding: .2rem 0;
}

.onboarding-card {
    padding: 1rem 1.25rem;
}

.onboarding-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .75rem;
}

.onboarding-progress {
    height: .45rem;
    background: hsl(var(--muted));
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.onboarding-progress-bar {
    height: 100%;
    background: hsl(var(--primary));
    border-radius: 999px;
    transition: width .3s ease;
}

.onboarding-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .65rem;
    border-radius: .65rem;
    border: 1px solid hsl(var(--border));
    font-size: .875rem;
}

.onboarding-step.is-done {
    opacity: .72;
}

.onboarding-step-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 2px solid hsl(var(--border));
    display: grid;
    place-items: center;
    font-size: .7rem;
    flex-shrink: 0;
}

..onboarding-step.is-done .onboarding-step-check {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.onboarding-step-body {
    flex: 1;
    min-width: 0;
}

.onboarding-step-body strong {
    display: block;
}

.onboarding-step-body span {
    display: block;
    font-size: .78rem;
    color: hsl(var(--muted-foreground));
}

.setup-steps {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.setup-step-pill {
    font-size: .75rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.setup-step-pill.is-active {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    background: hsl(var(--primary) / .08);
}

.auth-marketing-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    font-size: .85rem;
}

.auth-marketing-links a {
    color: hsl(var(--primary));
    text-decoration: none;
    margin: 0 .35rem;
}

/* ===== Comparison table section ===== */
.mkt-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    margin-top: .5rem;
}
.mkt-compare-table th,
.mkt-compare-table td {
    padding: .7rem .75rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}
.mkt-compare-table thead th {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    background: hsl(var(--muted) / .35);
}
.mkt-compare-table thead th:first-child {
    border-radius: .65rem 0 0 0;
}
.mkt-compare-table thead th:last-child {
    border-radius: 0 .65rem 0 0;
}
.mkt-compare-table th:first-child,
.mkt-compare-table td:first-child {
    font-weight: 600;
    min-width: 160px;
}
.mkt-compare-table tbody tr:hover {
    background: hsl(var(--muted) / .2);
}
.mkt-compare-table .mkt-check-yes {
    color: hsl(142 76% 36%);
    font-weight: 700;
}
.mkt-compare-table .mkt-check-no {
    color: hsl(var(--muted-foreground));
    opacity: .5;
}
.mkt-compare-col--highlight {
    background: hsl(var(--primary) / .06);
}
.mkt-compare-col--highlight th,
.mkt-compare-col--highlight td {
    border-bottom-color: hsl(var(--primary) / .15);
}
@media (max-width: 680px) {
    .mkt-compare-table {
        font-size: .75rem;
    }
    .mkt-compare-table th,
    .mkt-compare-table td {
        padding: .5rem .4rem;
    }
    .mkt-compare-table th:first-child,
    .mkt-compare-table td:first-child {
        min-width: 100px;
    }
}

/* ===== Cases carousel ===== */
.mkt-carousel {
    position: relative;
    overflow: hidden;
}
.mkt-carousel-track {
    display: flex;
    transition: transform .45s ease;
    gap: 0;
}
.mkt-carousel-track > * {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 .25rem;
    box-sizing: border-box;
}
.mkt-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.mkt-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: hsl(var(--foreground));
    transition: background .15s, border-color .15s;
}
.mkt-carousel-btn:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--primary));
}
.mkt-carousel-dots {
    display: flex;
    gap: .5rem;
}
.mkt-carousel-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s, border-color .2s;
}
.mkt-carousel-dot.is-active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}
@media (min-width: 768px) {
    .mkt-carousel-track > * {
        flex: 0 0 33.333%;
        padding: 0 .5rem;
    }
}
@media (max-width: 767px) and (min-width: 480px) {
    .mkt-carousel-track > * {
        flex: 0 0 50%;
    }
}

/* ===== Pricing calculator ===== */
.mkt-calc {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}
.mkt-calc-row {
    display: grid;
    gap: .5rem;
}
.mkt-calc-row label {
    font-weight: 600;
    font-size: .95rem;
}
.mkt-calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.mkt-calc-option {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: .65rem .5rem;
    border: 1px solid hsl(var(--border));
    border-radius: .75rem;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    background: hsl(var(--card));
    transition: border-color .15s, background .15s;
    user-select: none;
}
.mkt-calc-option:hover {
    border-color: hsl(var(--primary) / .5);
}
.mkt-calc-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mkt-calc-option.is-selected {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / .08);
    color: hsl(var(--primary));
    font-weight: 700;
}
.mkt-calc-result {
    margin-top: .5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid hsl(var(--primary) / .25);
    background: hsl(var(--primary) / .04);
    text-align: center;
    display: grid;
    gap: .35rem;
}
.mkt-calc-result-label {
    font-size: .85rem;
    color: hsl(var(--muted-foreground));
}
.mkt-calc-result-name {
    font-size: 1.35rem;
    font-weight: 800;
}
.mkt-calc-result-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: hsl(var(--primary));
}
.mkt-calc-result-price small {
    font-size: .9rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}
.mkt-calc-result-cta {
    margin-top: .5rem;
}

@media (min-width: 768px) {
    .mkt-nav {
        display: flex;
    }
}

@media (max-width: 860px) {
    .mkt-trial-grid {
        grid-template-columns: 1fr;
    }

    .mkt-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Блог ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg, .75rem);
    background: hsl(var(--card));
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 20px hsl(var(--foreground) / .07);
    transform: translateY(-2px);
}

.blog-card-body {
    padding: 1.25rem 1.5rem 0;
    flex: 1;
}

.blog-card-date {
    font-size: .8rem;
    color: hsl(var(--muted-foreground));
    display: block;
    margin-bottom: .5rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    line-height: 1.3;
}

.blog-card-link {
    color: inherit;
    text-decoration: none;
}

.blog-card-link:hover {
    color: hsl(var(--primary));
}

.blog-card-desc {
    font-size: .9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0 0 1rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .75rem;
}

.blog-tag {
    font-size: .72rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.blog-card-footer {
    padding: .75rem 1.5rem 1.25rem;
    border-top: 1px solid hsl(var(--border));
}
