/* Страница /remove-color-from-image/. Только то, что относится к этой странице (префикс rc-):
   заглушки картинок, раскладка экрана редактора, ряд «цвет + пипетка», подсказка и свой вид секции How it works.
   Блоки — css/blocks.css, шапка/подвал/секции — css/landing.css. План — docs/landings/remove-color/PLAN.md. */

.hidden { display: none !important; }

/* ---------- Заглушки картинок ----------
   TODO: заменить на настоящие webp (280/560/840, как на главной), когда будет фото для hero
   и скриншоты для How it works (скриншоты снимаем с готовой страницы). */
/* Половина — синий логотип на белом, половина — белый убран (шахматка) */
.rc-hero-ph {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, #fff 0 50%, transparent 50%),
        repeating-conic-gradient(#e0e0e0 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.rc-hero-ph::before {
    content: "R";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #1e5bd8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font: 800 clamp(48px, 9vw, 110px)/1 system-ui, sans-serif;
}
.rc-hero-ph::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    border-left: 2px dashed rgba(0,0,0,.25);
}

/* ---------- Экран редактора ----------
   Раскладка как на /change-png-opacity/ и в /app (.container / .result-controls): первый экран на всю высоту окна,
   тулбар сверху, ниже ряд «картинка + панель». Размер картинки и перенос панели — layoutEditor()
   в js/pages/remove-color-from-image.js (тот же алгоритм, что applyAdaptiveLayout в /app). */
.hero-screen.is-editing {
    min-height: calc(100vh - var(--header-h) - var(--body-pt));
    min-height: calc(100dvh - var(--header-h) - var(--body-pt));
    align-items: stretch;
    padding: 20px;
}
.rc-editor {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.rc-editor .mb-toolbar { align-self: center; }
.rc-workspace {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: space-evenly;
    gap: 20px;
    padding-top: 20px;
}
.rc-workspace.no-wrap { flex-wrap: nowrap; }

/* Плитка цвета на всю ширину, пипетка справа */
.rc-color-row { display: flex; gap: 8px; align-items: stretch; }
.rc-color-row__swatch { flex: 1 1 auto; min-width: 0; }

/* Подсказка под Entire image / Clicked area */
.rc-hint {
    min-height: 2.9em;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}
.rc-hint.is-warn { color: #b45309; }

/* ---------- How it works: свой вид для этой страницы ---------- */
.rc-how { background: var(--brand-tint-soft); }
.rc-cards {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1040px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.rc-card {
    padding: 20px 20px 26px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 4px 24px rgba(var(--brand-rgb), .08);
}
.rc-card__ph {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
    border-radius: 14px;
    background: repeating-conic-gradient(#ececec 0% 25%, #fafafa 0% 50%) 0 0 / 20px 20px;
}
@media (max-width: 900px) {
    .rc-cards { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
}
