/* Посадочные страницы редакторов: палитра и типографика главной. */
.cp-editor-seo { --editor-accent: var(--home-purple); }
.cp-editor-seo .section-pad { padding-block: clamp(3rem, 6vw, 6rem); }
.cp-editor-seo .editor-hero { padding: 6.5rem 0 0; }
.cp-editor-seo .editor-hero__grid,
.cp-editor-seo .product-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
}
.cp-editor-seo .editor-hero__grid { padding: clamp(1.5rem, 3.5vw, 3.25rem); border-radius: 1rem; background: var(--portal-color-purple-light); }
.cp-editor-seo :is(.editor-hero,.product-hero) h1 {
    margin: 0; max-width: 21ch; font: 700 clamp(1.8rem, 3.4vw, 3.3rem)/1.18 Unbounded, sans-serif;
    letter-spacing: -.055em; color: var(--home-ink); overflow-wrap: normal;
}
.cp-editor-seo :is(.editor-hero,.product-hero) h1 em { color: var(--home-purple); font-style: normal; }
.cp-editor-seo .semantic-breadcrumbs { color: var(--home-muted); flex-wrap: wrap; margin-bottom: 1.5rem; font-size: .7rem; gap: .6rem; }
.cp-editor-seo .semantic-breadcrumbs a { color: var(--home-purple); }
.cp-editor-seo :is(.editor-hero__lead,.product-hero__lead) { margin: 1.5rem 0; color: var(--home-muted); font-size: 1rem; line-height: 1.7; max-width: 45rem; }
.cp-editor-seo .eyebrow { margin-bottom: 1rem; color: var(--home-purple); text-transform: none; letter-spacing: 0; font-size: .75rem; }
.cp-editor-seo .eyebrow span { background: none; padding: 0; }
.cp-editor-seo .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.4rem; }
.cp-editor-seo :is(.editor-hero__note,.product-hero__note) { margin-top: 1.1rem; color: var(--home-muted); font-size: .75rem; line-height: 1.6; }
.editor-demo { min-width: 0; margin: 0; padding: .85rem; border-radius: .8rem; color: var(--home-ink); background: var(--home-paper); }
.editor-demo__label { display: flex; justify-content: space-between; gap: .7rem; padding: .2rem .2rem .85rem; color: var(--home-muted); font-size: .6rem; }
.editor-demo__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: .4rem; background: #171a2b; }
.editor-demo figcaption { padding: .85rem .2rem .15rem; color: var(--home-muted); font-size: .75rem; line-height: 1.5; }
.cp-editor-seo .editor-section-heading { display: grid; grid-template-columns: minmax(8rem, .4fr) minmax(0, 1fr); gap: 2rem; margin-bottom: 2rem; }
.cp-editor-seo h2 { margin: 0 0 1rem; font: 650 clamp(1.4rem, 2.6vw, 2.3rem)/1.3 Unbounded, sans-serif; letter-spacing: -.04em; }
.cp-editor-seo .section-index { display: block; color: var(--home-purple); font-size: .75rem; letter-spacing: 0; text-transform: none; }
.cp-editor-seo .editor-section-heading p { max-width: 55rem; margin: 0; color: var(--home-muted); line-height: 1.7; }
.editor-feature { display: grid; grid-template-columns: 2rem minmax(9rem, .7fr) minmax(0, 1.3fr); gap: clamp(1rem, 3vw, 3rem); padding-block: 1.75rem; border-top: 1px solid var(--home-line); }
.editor-feature__index { color: var(--home-purple); font-size: .75rem; }
.cp-editor-seo .editor-feature h3 { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; }
.editor-feature p { margin: 0 0 .8rem; color: var(--home-muted); line-height: 1.75; }
.editor-feature ul { margin: .85rem 0 0; padding-left: 1.2rem; color: var(--home-ink); }
.editor-feature li { margin: .4rem 0; line-height: 1.7; }
.editor-seo-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.editor-seo-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--home-blue); text-decoration: underline; text-underline-offset: .25em; }
.cp-editor-seo .editor-how { background: var(--portal-color-surface-secondary); border-block: 1px solid var(--home-line); }
.cp-editor-seo .editor-how ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 0; margin: 2rem 0 0; list-style: none; counter-reset: editor-step; }
.editor-how li { counter-increment: editor-step; border-top: 1px solid var(--home-line); padding-top: 1rem; }
.editor-how li::before { content: '0' counter(editor-step); color: var(--home-purple); font-size: .75rem; }
.cp-editor-seo .editor-how h3 { margin: 1rem 0 .75rem; font-size: 1.2rem; }
.editor-how li p { color: var(--home-muted); line-height: 1.75; }
.cp-editor-seo .editor-faq details { border-bottom: 1px solid var(--home-line); padding-block: .5rem; }
.cp-editor-seo .editor-faq summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; font-weight: 650; cursor: pointer; list-style: none; gap: 1rem; }
.cp-editor-seo .editor-faq summary::-webkit-details-marker { display: none; }
.cp-editor-seo .editor-faq summary::after { content: '+'; color: var(--home-purple); font-size: 1.5rem; }
.cp-editor-seo .editor-faq details[open] summary::after { content: '−'; }
.cp-editor-seo .editor-faq details p { margin: .5rem 0 1.25rem; color: var(--home-muted); line-height: 1.75; max-width: 55rem; }
.cp-editor-seo .editor-final { border-radius: 1rem; background: var(--portal-color-purple-light); padding: clamp(1.5rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; }
.cp-editor-seo .editor-final h2 { margin-bottom: 0; }
.cp-editor-seo .product-hero { padding: 7rem 0 2rem; background: none; min-height: 0; }
.cp-editor-seo .product-content { background: var(--portal-color-surface-secondary); }
.cp-editor-seo .product-content__grid { grid-template-columns: minmax(7rem,.3fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,4rem); }
.cp-editor-seo .product-content__body { font-size: 1rem; line-height: 1.8; }
.cp-editor-seo .product-content__body h2 { margin-top: 2.5rem; }
.cp-editor-seo :focus-visible { outline: 2px solid var(--home-blue); outline-offset: 4px; }
@media (max-width: 900px) {
    .cp-editor-seo .editor-hero__grid, .cp-editor-seo .product-hero__grid { grid-template-columns: 1fr; }
    .cp-editor-seo .editor-hero { padding-top: 5.75rem; }
    .cp-editor-seo .editor-how ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-editor-seo .editor-section-heading { grid-template-columns: 1fr; gap: .75rem; }
    .editor-feature { grid-template-columns: 1.5rem minmax(0,1fr); gap: .6rem 1rem; }
    .editor-feature > div { grid-column: 2; }
}
@media (max-width: 600px) {
    .cp-editor-seo .editor-hero__grid { padding: 1.35rem; }
    .cp-editor-seo .editor-how ol { grid-template-columns: 1fr; gap: 1.25rem; }
    .cp-editor-seo .product-content__grid { grid-template-columns: 1fr; gap: 1rem; }
    .cp-editor-seo .editor-final .cp-button { width: 100%; }
    .editor-demo { padding: .6rem; }
}
/* Страница смены цвета сохраняет существующие тексты и встроенный инструмент. */
.cp-guide-page.cp-editor-seo .semantic-hero__grid { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); color: var(--home-ink); background: var(--portal-color-purple-light); }
.cp-guide-page.cp-editor-seo .semantic-hero__grid::before { display: none; }
.cp-guide-page.cp-editor-seo .semantic-hero h1,
.cp-guide-page.cp-editor-seo .semantic-hero h1 em,
.cp-guide-page.cp-editor-seo .semantic-hero__lead { color: var(--home-ink); }
.cp-guide-page.cp-editor-seo .semantic-hero h1 em { color: var(--home-purple); }
.cp-guide-page.cp-editor-seo .semantic-hero :is(.eyebrow,.semantic-breadcrumbs,.semantic-hero__note) { color: var(--home-muted); }
.cp-guide-page.cp-editor-seo .semantic-hero :is(.cp-text-link,.semantic-breadcrumbs a) { color: var(--home-blue); }
.cp-guide-page.cp-editor-seo .semantic-hero__grid > .semantic-canvas { grid-column: 1 / -1; width: 100%; }
.cp-guide-page.cp-editor-seo .semantic-canvas__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) {
    .cp-guide-page.cp-editor-seo .semantic-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .cp-guide-page.cp-editor-seo .semantic-canvas__items { grid-template-columns: 1fr; gap: .75rem; }
}
/* Старые продуктовые страницы используют те же кнопки и мягкий демонстрационный блок. */
.cp-editor-seo .eyebrow span { color: var(--home-purple); }
.cp-editor-seo .product-board { border-radius: 1rem; overflow: hidden; box-shadow: none; color: var(--home-ink); background: var(--portal-color-purple-light); }
.cp-editor-seo .product-board__top, .cp-editor-seo .product-board__timeline { background: var(--home-paper); }
.cp-editor-seo .product-board__stage { background: var(--portal-color-purple-light); }
.cp-editor-seo .product-board__stage strong, .cp-editor-seo .product-board__stage small { color: var(--home-ink); }
.cp-editor-seo .product-board__stage i { border-color: var(--home-purple); opacity: .12; }


/* Каталожный образец остаётся лёгким: кадр либо заранее собранный цикл без редакторского runtime. */
.editor-hero-preview { position: relative; min-width: 0; margin: 0; }
.editor-hero-preview__media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: .55rem; }
.editor-hero-preview--portrait .editor-hero-preview__media { width: min(100%, 23.9rem); aspect-ratio: auto; max-height: 28rem; margin-inline: auto; }
.editor-hero-preview figcaption { margin-top: .8rem; color: var(--home-muted); font-size: .7rem; line-height: 1.5; }
.editor-hero-preview--portrait figcaption { text-align: center; }
.editor-hero-preview__toggle { position: absolute; right: .6rem; top: .6rem; min-height: 2.75rem; padding: .5rem .8rem; border: 1px solid var(--home-line); border-radius: .3rem; color: var(--home-ink); background: var(--home-paper); font: 600 .7rem Onest, sans-serif; cursor: pointer; }
.cp-editor-seo .editor-demo-section { padding-block: clamp(2.5rem, 5vw, 5rem); }
.editor-demo-section__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(1.5rem,4vw,4rem); }
.editor-demo-section__copy .section-index { margin-bottom: 1rem; }
.editor-demo-section__copy p { margin: 1rem 0 1.5rem; max-width: 36rem; color: var(--home-muted); line-height: 1.7; }
@media (max-width: 900px) {
    .editor-demo-section__grid { grid-template-columns: 1fr; }
    .editor-demo-section__copy { grid-row: 1; }
    .editor-hero-preview--portrait .editor-hero-preview__media { width: min(100%, 20.48rem); max-height: 24rem; }
}
@media (max-width: 600px) {
    .editor-hero-preview__toggle { right: .35rem; top: .35rem; }
    .editor-hero-preview--portrait .editor-hero-preview__media { width: min(100%, 17.07rem); max-height: 20rem; }
}

/* Сеть Делоне заполняет первый экран; смысловой текст остаётся доступным HTML. */
.cp-editor-seo .editor-hero--background .editor-hero__grid { position: relative; display: block; overflow: hidden; isolation: isolate; background: var(--home-paper); }
.editor-hero--background .editor-hero__grid > div { position: relative; z-index: 1; max-width: 42rem; }
.editor-hero--background .editor-hero-preview { position: absolute; inset: 0; z-index: 0; }
.editor-hero--background .editor-hero-preview__media { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.editor-hero--background .editor-hero-preview__toggle { z-index: 2; }
.editor-hero--background .editor-hero-preview figcaption { position: absolute; right: 1rem; bottom: .6rem; margin: 0; padding: .2rem .4rem; border-radius: .2rem; background: var(--home-paper); }
@media (max-width: 600px) {
    .editor-hero--background .editor-hero__grid { padding-top: 4.25rem; padding-bottom: 3rem; }
}

/* Прямой Canvas-рендер сети сохраняет резкость при любой ширине блока. */
.editor-hero--background .editor-hero-preview__stage,
.editor-hero--background .editor-hero-preview__stage .editor-hero-preview__media { position: absolute; inset: 0; width: 100%; height: 100%; }
.editor-hero-preview canvas[hidden] { display: none; }
.editor-hero--background .editor-hero-preview.is-ready img { display: none; }
.cp-editor-seo .editor-hero--text .editor-hero__grid { display: block; }
.editor-hero--text .editor-hero__lead { max-width: 52rem; }

/* Лёгкая CSS-версия камеры: четыре строки, приближение и остановка на полном экране. */
.cp-editor-seo .editor-hero--text .editor-hero__grid {
    background-color: #F7F8FC;
    background-image: url('/media/editor-heroes/text-perimeter-paper-soft.webp');
    background-position: center;
    background-size: cover;
    overflow: hidden;
}
.editor-hero--text .semantic-breadcrumbs { max-width: 55rem; }
.editor-hero--text .eyebrow,
.editor-hero--text .editor-hero__lead,
.editor-hero--text .editor-hero__note { text-align: center; margin-inline: auto; }
.editor-hero--text .hero-actions { justify-content: center; }
.editor-camera { position: relative; }
.cp-editor-seo .editor-hero--text h1.editor-camera__viewport {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: none; height: clamp(16rem, 31vw, 26rem);
    margin: 1rem 0 1.5rem; padding: .5rem; overflow: hidden;
    font: 700 clamp(1rem, 5.4vw, 4.4rem)/1.06 Unbounded, sans-serif;
    letter-spacing: -.055em; text-align: center;
}
.editor-camera__world { display: block; transform-origin: center; }
.editor-camera__line { display: block; white-space: nowrap; }
.editor-camera__line--3 { color: #0B6EDC; }
.editor-camera__toggle { top: 0; right: 0; }
.editor-camera__toggle[hidden] { display: none; }
.editor-camera__viewport.motion-started .editor-camera__world {
    animation: editor-camera-pan 6s cubic-bezier(.22,.7,.25,1) both;
}
.editor-camera__viewport.motion-started .editor-camera__line { animation: editor-camera-reveal 6s linear both; }
.editor-camera__viewport.motion-started .editor-camera__line--1 { animation-name: editor-camera-reveal-second; }
.editor-camera__viewport.motion-started .editor-camera__line--2 { animation-name: editor-camera-reveal-third; }
.editor-camera__viewport.motion-started .editor-camera__line--3 { animation-name: editor-camera-reveal-fourth; }
.editor-camera__viewport.motion-started:not(.is-playing) .editor-camera__world,
.editor-camera__viewport.motion-started:not(.is-playing) .editor-camera__line { animation-play-state: paused; }
@keyframes editor-camera-pan {
    0%, 12% { transform: translateY(38%) scale(1.12); }
    28% { transform: translateY(13%) scale(1.1); }
    45% { transform: translateY(-13%) scale(1.07); }
    62% { transform: translateY(-38%) scale(1.04); }
    80%, 100% { transform: translateY(0) scale(1); }
}
@keyframes editor-camera-reveal { 0%, 100% { opacity: 1; } }
@keyframes editor-camera-reveal-second { 0%, 15% { opacity: 0; } 24%, 100% { opacity: 1; } }
@keyframes editor-camera-reveal-third { 0%, 32% { opacity: 0; } 41%, 100% { opacity: 1; } }
@keyframes editor-camera-reveal-fourth { 0%, 49% { opacity: 0; } 58%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .editor-camera__viewport:not(.is-manual) .editor-camera__world,
    .editor-camera__viewport:not(.is-manual) .editor-camera__line { animation: none !important; transform: none !important; opacity: 1 !important; }
}
@media (max-width: 600px) {
    .cp-editor-seo .editor-hero--text .editor-hero__grid {
        background-image: linear-gradient(90deg, rgba(247,248,252,.45), rgba(247,248,252,.98) 24%, rgba(247,248,252,.98) 76%, rgba(247,248,252,.45)), url('/media/editor-heroes/text-perimeter-paper-soft.webp'), url('/media/editor-heroes/text-perimeter-paper-soft.webp');
        background-size: 100% 100%, auto 52%, auto 52%;
        background-position: center, left top, right bottom;
        background-repeat: no-repeat;
    }
    .cp-editor-seo .editor-hero--text h1.editor-camera__viewport { height: 16rem; }
    .editor-camera__toggle { font-size: .65rem; }
}


/* Badge и управление повторяют язык главной; подпись действия остаётся доступной. */
.editor-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.cp-editor-seo .editor-hero-top .semantic-breadcrumbs { flex: 1; min-width: 0; margin-bottom: 0; }
.editor-hero-top .cp-tool-free { flex-shrink: 0; white-space: nowrap; }
.editor-hero--background .editor-hero__grid > div { max-width: none; }
.cp-editor-seo .editor-hero--background .editor-hero__grid { padding-bottom: 4rem; }
.cp-editor-seo .editor-hero-toggle { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: .3rem; background: transparent; }
.editor-hero-toggle svg { display: block; width: 24px; height: 24px; }
.cp-editor-seo .editor-hero-toggle:hover:not(:disabled) { background: var(--home-blue); color: #F7F8FC; }
.editor-hero-toggle:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 2px; }
.editor-hero-toggle[hidden] { display: none; }
.editor-hero--background .editor-hero-toggle { top: auto; right: auto; bottom: .75rem; left: 1.3rem; }
.editor-camera .editor-camera__toggle { top: auto; right: auto; bottom: 0; left: 0; }
@media (max-width: 600px) {
    .editor-hero-top { gap: .6rem; }
    .cp-editor-seo .editor-hero--background .editor-hero__grid { padding-top: 1.35rem; }
}
/* Первый экран: общая строка хлебных крошек, badge и управление внизу слева. */
.cp-editor-seo .editor-hero__grid { position: relative; grid-template-rows: auto 1fr; row-gap: 1.25rem; padding-bottom: 4rem; }
.cp-editor-seo .editor-hero-top { grid-column: 1 / -1; align-items: center; margin-bottom: 0; align-self: start; }
.cp-editor-seo .editor-hero--background .editor-hero__grid,
.cp-editor-seo .editor-hero--text .editor-hero__grid { display: grid; grid-template-columns: minmax(0,1fr); }
.editor-hero__copy { min-width: 0; }
.cp-editor-seo .editor-hero__grid > .editor-hero-toggle { position: absolute; left: 1.3rem; bottom: .75rem; top: auto; right: auto; z-index: 3; }
.editor-hero-preview__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .55rem; }
.editor-hero-preview--portrait .editor-hero-preview__stage { width: min(100%, 17rem); aspect-ratio: 2 / 3; margin-inline: auto; }
.editor-hero-preview__stage iframe { position: absolute; border: 0; transform-origin: 0 0; pointer-events: none; visibility: hidden; }
.editor-hero-preview.is-ready iframe { visibility: visible; }
.editor-hero-preview.is-ready img { display: none; }
.editor-palette-example .semantic-canvas__body { display: block; }
.editor-palette-example .semantic-canvas__items { margin-top: 1.5rem; }
.editor-palette-example .semantic-canvas__body > svg { display: block; width: 100%; max-width: 46rem; margin: 1.5rem auto; }
@media (min-width: 901px) {
    .cp-editor-seo .editor-hero__grid { height: 580px; padding: 2rem 2.25rem 4rem; box-sizing: border-box; }
    .cp-editor-seo .editor-hero h1 { font-size: clamp(1.8rem,3vw,2.65rem); }
    .cp-editor-seo .editor-hero__lead { font-size: .9rem; margin-block: 1rem; }
    .cp-editor-seo .editor-hero--text h1.editor-camera__viewport { height: 16rem; margin: 0 0 1rem; font-size: clamp(2.4rem,4.2vw,3.4rem); }
    .cp-guide-page.cp-editor-seo .semantic-hero__grid { min-height: 580px; box-sizing: border-box; }
}
@media (max-width: 900px) {
    .cp-editor-seo .editor-hero__grid { height: auto; grid-template-columns: minmax(0,1fr); }
    .cp-editor-seo .editor-hero-top { grid-column: 1; }
}
/* Без JS график сохраняет реальные числа, полученные из тех же каталогов. */
.editor-hero-data-fallback { height: 100%; box-sizing: border-box; padding: 6%; background: #F7F8FC; color: #171A2B; font: 600 clamp(.5rem,1vw,.8rem) Onest,sans-serif; }
.editor-hero-data-fallback > strong { display: block; font-size: 1.5em; }
.editor-hero-data-fallback > small { display: block; margin: .5em 0 1.5em; color: #626B7F; }
.editor-hero-data-fallback > div { display: grid; grid-template-columns: 28% 1fr 8%; align-items: center; gap: .5em; margin-block: 1.2em; }
.editor-hero-data-fallback i { width: var(--bar-width); height: .55em; background: #FE8502; }
.editor-hero-preview.is-ready .editor-hero-data-fallback { display: none; }
/* Четверть исходного зазора под шапкой высотой 4rem. */
.cp-editor-seo .editor-hero { padding-top: calc((6.5rem + 12rem) / 4); }
.cp-guide-page.cp-editor-seo .semantic-hero { padding-top: calc((6.3rem + 12rem) / 4); }
.cp-editor-seo .semantic-breadcrumbs { text-shadow: 0 1px 2px #fff, 0 0 5px rgba(247,248,252,.95); }


@media (max-width: 900px) {
    .cp-editor-seo .editor-hero { padding-top: calc((5.75rem + 12rem) / 4); }
}
.cp-editor-seo .editor-hero .hero-actions { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); justify-content: center; white-space: nowrap; }
@media (max-width: 600px) {
    .cp-editor-seo .editor-hero .editor-hero__grid { padding-bottom: 7rem; }
    .cp-editor-seo .editor-hero .hero-actions { bottom: 4rem; }
}
/* Ссылка привязана к общей сетке первого экрана, включая фоновую сцену. */
.cp-editor-seo .editor-hero--background .editor-hero__grid > .editor-hero__copy { position: static; }
.cp-editor-seo .editor-hero .hero-actions { z-index: 2; }
/* Возможности обозначаются теми же крупными SVG, что и разделы меню проекта. */
.editor-feature-icon { display: flex; align-items: flex-start; justify-content: center; color: var(--home-purple); }
.editor-feature-icon svg { display: block; width: 120px; height: 120px; stroke-width: 1.25; }
.editor-hero-preview--portrait .editor-hero-preview__stage { width: 100%; height: 25.5rem; aspect-ratio: auto; border-radius: 0; }
.cp-guide-page.cp-editor-seo .semantic-hero__grid { position: relative; grid-template-rows: auto 1fr; padding-bottom: 4rem; row-gap: 1.25rem; }
.cp-guide-page.cp-editor-seo .editor-palette-action { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); }
.cp-guide-page.cp-editor-seo .editor-palette-action .cp-text-link { color: var(--home-ink); }
@media (max-width: 600px) {
    .editor-feature-icon { justify-content: flex-start; }
    .editor-feature-icon svg { width: 88px; height: 88px; }
    .editor-hero-preview--portrait .editor-hero-preview__stage { width: calc(100% + 2rem); margin-inline: -1rem; height: clamp(20rem,105vw,25.5rem); }
}
/* Выбранный фон «Матовое стекло» сохраняет свободный центр для текста и живой плашки. */
.cp-editor-seo .editor-hero--lower-third .editor-hero__grid {
    background: var(--home-paper) url('/media/editor-heroes/lower-third-background-2.webp') center / cover no-repeat;
}
/* Светлые фоны оставляют центр для текста и живой демонстрации. */
.cp-editor-seo .editor-hero--subscribe .editor-hero__grid {
    --editor-hero-background: url('/media/editor-heroes/subscribe-background-icons-lines-v1.webp');
}
.cp-editor-seo .editor-hero--data .editor-hero__grid {
    --editor-hero-background: url('/media/editor-heroes/data-hero-v1.webp');
}
.cp-editor-seo :is(.editor-hero--subscribe, .editor-hero--data) .editor-hero__grid {
    background: var(--home-paper) var(--editor-hero-background) center / cover no-repeat;
}
:root[data-site-theme="dark"] .cp-editor-seo :is(.editor-hero--subscribe, .editor-hero--data) .editor-hero__grid {
    background-image: linear-gradient(rgba(15,20,36,.9), rgba(15,20,36,.9)), var(--editor-hero-background);
}

/* На узком экране декор остаётся сверху и снизу, без обрезки широкого фона по центру. */
@media (max-width: 600px) {
    .cp-editor-seo :is(.editor-hero--subscribe, .editor-hero--data) .editor-hero__grid {
        background-image: var(--editor-hero-background), var(--editor-hero-background);
        background-position: center top, center bottom;
        background-size: 100% auto, 100% auto;
    }
    :root[data-site-theme="dark"] .cp-editor-seo :is(.editor-hero--subscribe, .editor-hero--data) .editor-hero__grid {
        background-image: linear-gradient(rgba(15,20,36,.9), rgba(15,20,36,.9)), var(--editor-hero-background), var(--editor-hero-background);
        background-position: center, center top, center bottom;
        background-size: auto, 100% auto, 100% auto;
    }
    .cp-editor-seo .editor-hero--subscribe .editor-hero__grid,
    :root[data-site-theme="dark"] .cp-editor-seo .editor-hero--subscribe .editor-hero__grid {
        position: relative; isolation: isolate; background-image: none;
    }
    /* Показываем только края фона, чтобы угловые иконки не повторялись за заголовком. */
    .editor-hero--subscribe .editor-hero__grid::before,
    .editor-hero--subscribe .editor-hero__grid::after {
        content: ''; position: absolute; left: 0; right: 0; z-index: -1;
        height: clamp(70px, 23vw, 100px); border-radius: inherit; pointer-events: none;
        background-image: var(--editor-hero-background); background-repeat: no-repeat; background-size: 100% auto;
    }
    .editor-hero--subscribe .editor-hero__grid::before {
        top: 0; background-position: center top; mask-image: linear-gradient(to bottom, #000 65%, transparent);
    }
    .editor-hero--subscribe .editor-hero__grid::after {
        bottom: 0; background-position: center bottom; mask-image: linear-gradient(to top, #000 65%, transparent);
    }
    :root[data-site-theme="dark"] .editor-hero--subscribe .editor-hero__grid::before,
    :root[data-site-theme="dark"] .editor-hero--subscribe .editor-hero__grid::after {
        background-image: linear-gradient(rgba(15,20,36,.9), rgba(15,20,36,.9)), var(--editor-hero-background);
        background-size: 100% 100%, 100% auto;
    }
}

/* Популярные шаблоны используют карточки общего каталога. */
.editor-popular{--bc-gap:1.7rem}
.editor-popular__lead{color:var(--home-muted);max-width:48rem;line-height:1.7;margin-bottom:2rem}
.editor-popular .catalog-template-preview{width:100%;height:auto;aspect-ratio:16/9;border-radius:.6rem}
.editor-popular .bc-card__heading h3{font:650 1.02rem/1.45 Onest,sans-serif;letter-spacing:-.02em;margin:0;flex:1}
