/**
 * SEO-посадочные (C1+): поверх styles.css + landing-redesign.css.
 * Не использует legal-doc — та же визуальная система, что у главной.
 */

body.seo-landing.page-redesign {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.seo-landing.page-redesign > .header,
body.seo-landing.page-redesign > .nav-backdrop,
body.seo-landing.page-redesign > main,
body.seo-landing.page-redesign > .footer {
    position: relative;
    z-index: 1;
}

body.seo-landing.page-redesign > main {
    flex: 1;
}

/* ——— Hero ——— */
.seo-landing .seo-hero {
    padding: 40px 0 48px;
}

.seo-landing .seo-hero .container {
    max-width: var(--redesign-container, 1440px);
    padding-left: max(20px, var(--redesign-gutter, 48px));
    padding-right: max(20px, var(--redesign-gutter, 48px));
}

.seo-landing .seo-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px 48px;
    align-items: start;
}

.seo-landing .seo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}

.seo-landing .seo-hero h1 {
    margin: 0 0 14px;
    font-family: var(--font-heading, Inter, sans-serif);
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.seo-landing .seo-hero h1 .highlight {
    color: #4f46e5;
}

.seo-landing .seo-lead {
    margin: 0 0 20px;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #475569;
}

.seo-landing .seo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.seo-landing .seo-meta a,
.seo-landing .seo-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.seo-landing .seo-meta a:hover {
    border-color: #c7d2fe;
    color: #4338ca;
}

.seo-landing .seo-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.seo-landing a.btn-primary,
.seo-landing a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    min-height: 48px;
    line-height: 1.2;
}

/* Панель потока: тема → план → текст → DOCX */
.seo-landing .seo-flow {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 20px 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.seo-landing .seo-flow__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.seo-landing .seo-flow__sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.seo-landing .seo-flow__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-landing .seo-flow__item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2ff;
}

.seo-landing .seo-flow__num {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff !important;
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.seo-landing .seo-flow__item strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 2px;
}

.seo-landing .seo-flow__item > div > span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.seo-landing .seo-flow__foot {
    margin: 14px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* ——— Секции контента ——— */
.seo-landing .seo-section {
    padding: 56px 0;
}

.seo-landing .seo-section--alt {
    background: rgba(238, 242, 255, 0.45);
}

.seo-landing .seo-section .container {
    max-width: 960px;
    padding-left: max(20px, var(--redesign-gutter, 48px));
    padding-right: max(20px, var(--redesign-gutter, 48px));
}

.seo-landing .seo-section--wide .container {
    max-width: var(--redesign-container, 1440px);
}

.seo-landing .seo-section .section-title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    scroll-margin-top: 88px;
}

.seo-landing .seo-answer {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
    max-width: 42rem;
}

.seo-landing .seo-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.seo-landing .seo-feature {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.seo-landing .seo-feature__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
}

.seo-landing .seo-feature strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 4px;
}

.seo-landing .seo-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.seo-landing .seo-note {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    font-size: 14px;
    line-height: 1.55;
    color: #3730a3;
}

.seo-landing .seo-steps {
    counter-reset: seo-step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.seo-landing .seo-steps li {
    position: relative;
    padding: 16px 16px 16px 60px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}

.seo-landing .seo-steps li::before {
    counter-increment: seo-step;
    content: counter(seo-step);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-landing .seo-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 16px;
}

.seo-landing .seo-price-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-landing .seo-price-card--hit {
    border-color: #a5b4fc;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
}

.seo-landing .seo-price-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.seo-landing .seo-price-card .seo-price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.02em;
}

.seo-landing .seo-price-card .seo-price-amount span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.seo-landing .seo-price-card ul {
    margin: 4px 0 0;
    padding: 0 0 0 1.1em;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.seo-landing .seo-table-wrap {
    overflow-x: auto;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.seo-landing table.seo-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 520px;
}

.seo-landing table.seo-compare th,
.seo-landing table.seo-compare td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.seo-landing table.seo-compare th {
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
}

.seo-landing table.seo-compare tr:last-child td {
    border-bottom: none;
}

.seo-landing .seo-faq details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 10px;
}

.seo-landing .seo-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.seo-landing .seo-faq summary::-webkit-details-marker {
    display: none;
}

.seo-landing .seo-faq summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-landing .seo-faq details[open] summary::after {
    content: '−';
}

.seo-landing .seo-faq details p {
    margin: 12px 0 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.seo-landing .seo-cta-banner {
    margin: 0;
    padding: 36px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.seo-landing .seo-cta-banner h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #fff;
}

.seo-landing .seo-cta-banner p {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.55;
}

.seo-landing .seo-cta-banner a.btn-primary {
    background: #fff;
    color: #312e81;
    border-color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    text-shadow: none;
}

.seo-landing .seo-cta-banner a.btn-primary::before {
    display: none;
}

@media (max-width: 960px) {
    .seo-landing .seo-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .seo-landing .seo-price-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .seo-landing .seo-hero {
        padding: 28px 0 36px;
    }

    .seo-landing .seo-feature-grid {
        grid-template-columns: 1fr;
    }

    .seo-landing .seo-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .seo-landing .seo-cta-row a.btn-primary,
    .seo-landing .seo-cta-row a.btn-secondary {
        width: 100%;
    }

    .seo-landing .seo-section {
        padding: 40px 0;
    }
}
