/* ==========================================================================
   Concept Home — hi-fi editorial layer for the «Фабрика Эффективности» landing.
   Maps to design_handoff README tokens: warm off-white, hairline borders,
   near-square corners, no shadows, serif antiqua headings.
   Накладывается поверх editorial-tech.css только на body.concept-home.
   ========================================================================== */

/* --- Design tokens (README) ----------------------------------------------- */
body.site-page.editorial-page.concept-home {
    /* README palette */
    --bg: #F3F1EC;            /* warm off-white page background */
    --surface: #FFFFFF;       /* service cards, light blocks */
    --surface-muted: #EDEAE3; /* «Магазин» и «Битрикс24» секции */
    --ink: #161513;           /* primary buttons, dark cards */
    --dark-block: #1A1916;    /* hero dashboard, case cards */
    --text-primary: #1C1B19;  /* headings, body text */
    --text-secondary: #6B6862;/* paragraphs, descriptions */
    --label: #8A8475;         /* uppercase caps labels */
    --border: rgba(28, 27, 25, 0.12);
    --accent-bitrix: #1FA8DC;

    --ch-radius: 3px;         /* near-square corners */
    --ch-radius-lg: 4px;

    /* Bridge tokens used by selectors inherited from editorial-tech.css */
    --editorial-bg: var(--bg);
    --editorial-paper: var(--surface);
    --editorial-paper-strong: var(--surface);
    --editorial-ink: var(--text-primary);
    --editorial-muted: var(--text-secondary);
    --editorial-line: var(--border);
    --editorial-accent: var(--ink);
    --editorial-accent-soft: rgba(28, 27, 25, 0.06);
    --editorial-warm: var(--label);
    --editorial-shadow: none;

    --ch-dark: var(--dark-block);
    --ch-dark-2: #232019;
    --ch-on-dark: #F4F0E7;
    --ch-on-dark-muted: rgba(244, 240, 231, 0.62);
    --ch-on-dark-line: rgba(244, 240, 231, 0.16);
    --ch-bitrix: var(--accent-bitrix);

    background: var(--bg);
}

/* Flatten inherited editorial radii/shadows on the home concept ------------- */
body.site-page.editorial-page.concept-home .button {
    border-radius: var(--ch-radius);
    box-shadow: none;
}

/* Header: large logo, rectangular outline CTA + round dark burger ----------- */
body.site-page.editorial-page.concept-home .site-header {
    padding-top: 0;
    background: rgba(243, 241, 236, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

body.site-page.editorial-page.concept-home .site-header__inner {
    min-height: 132px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
    transition: min-height 0.3s ease;
}

body.site-page.editorial-page.concept-home .site-brand__logo {
    height: 88px;
    transition: height 0.3s ease;
}

/* Сжатие шапки при прокрутке */
body.site-page.editorial-page.concept-home.is-scrolled .site-header {
    box-shadow: none;
    border-bottom-color: var(--border);
}

body.site-page.editorial-page.concept-home.is-scrolled .site-header__inner {
    min-height: 78px;
}

body.site-page.editorial-page.concept-home.is-scrolled .site-brand__logo {
    height: 52px;
}

body.site-page.editorial-page.concept-home .site-brand__mark {
    background: var(--ink);
}

body.site-page.editorial-page.concept-home .site-brand__subtitle {
    color: var(--label);
}

/* «Обсудить проект» — outline, прямоугольная */
body.site-page.editorial-page.concept-home .site-nav a.is-accent {
    padding: 11px 20px;
    border-radius: var(--ch-radius);
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
}

body.site-page.editorial-page.concept-home .site-nav a.is-accent:hover {
    background: var(--ink);
    color: var(--ch-on-dark);
}

body.site-page.editorial-page.concept-home .site-nav a.site-nav__item--upcoming {
    gap: 12px;
}

/* Круглая тёмная бургер-иконка */
body.site-page.editorial-page.concept-home .site-nav-toggle {
    border-radius: 50%;
    background: var(--ink);
    border-color: var(--ink);
    color: var(--ch-on-dark);
}

body.site-page.editorial-page.concept-home .site-nav-toggle span,
body.site-page.editorial-page.concept-home .site-nav-toggle span::before,
body.site-page.editorial-page.concept-home .site-nav-toggle span::after {
    background: var(--ch-on-dark);
}

@media (max-width: 960px) {
    body.site-page.editorial-page.concept-home .site-nav a.site-nav__item--upcoming {
        gap: 10px;
    }
}

/* --- Общий заголовок секции ------------------------------------------------ */
.ch-sechead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ch-sechead__main {
    max-width: 26ch;
}

.ch-eyebrow {
    display: block;
    margin: 0 0 16px;
    color: var(--label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch-sechead h2 {
    margin: 0;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.ch-sechead__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    transition: gap 0.2s ease, border-color 0.2s ease;
}

.ch-sechead__link::after { content: "\2192"; font-size: 1rem; transition: transform 0.2s ease; }
.ch-sechead__link:hover { border-color: var(--ink); }
.ch-sechead__link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.ch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    padding-bottom: 8px;
}

.ch-hero__eyebrow {
    display: block;
    margin: 4px 0 24px;
    color: var(--label);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch-hero__title {
    margin: 0;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.ch-hero__lead {
    margin: 24px 0 0;
    max-width: 46ch;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.75;
}

.ch-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

/* primary со стрелкой → */
.ch-hero__actions .button.primary::after {
    content: "\2192";
    margin-left: 10px;
    transition: transform 0.2s ease;
}
.ch-hero__actions .button.primary:hover::after { transform: translateX(4px); }

.ch-hero__panel {
    display: grid;
    gap: 16px;
}

/* Тёмный дашборд-мокап */
.ch-dash {
    position: relative;
    padding: 26px;
    border-radius: var(--ch-radius-lg);
    background: linear-gradient(160deg, var(--ch-dark-2), var(--ch-dark));
    color: var(--ch-on-dark);
    box-shadow: none;
    overflow: hidden;
}

.ch-dash::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(180deg, transparent 0 22px, rgba(244, 240, 231, 0.03) 23px 24px);
    pointer-events: none;
}

.ch-dash__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ch-on-dark-muted);
}

.ch-dash__tag {
    padding: 5px 11px;
    border: 1px solid var(--ch-on-dark-line);
    border-radius: 999px;
}

.ch-dash__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

/* Круговое прогресс-кольцо — единственный круглый элемент (кроме бургера) */
.ch-ring {
    --val: 87;
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background:
        conic-gradient(var(--ch-on-dark) calc(var(--val) * 1%), rgba(244, 240, 231, 0.12) 0);
    display: grid;
    place-items: center;
}

.ch-ring::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: var(--ch-dark);
}

.ch-ring strong {
    position: relative;
    font-family: "Fraunces", "PT Serif", serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.ch-dash__metrics { display: grid; gap: 14px; }

.ch-dash__metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ch-on-dark-line);
}

.ch-dash__metric:last-child { border-bottom: 0; padding-bottom: 0; }

.ch-dash__metric span {
    color: var(--ch-on-dark-muted);
    font-size: 0.82rem;
}

.ch-dash__metric b {
    font-family: "Fraunces", "PT Serif", serif;
    font-size: 1.18rem;
    font-weight: 500;
}

/* Светлая панель «продуманные решения» */
.ch-solutions {
    padding: 26px;
    border-radius: var(--ch-radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: none;
}

.ch-solutions h3 {
    margin: 0 0 12px;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.12;
    color: var(--text-primary);
}

.ch-solutions > p {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.ch-solutions__label {
    display: block;
    margin-bottom: 14px;
    color: var(--label);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch-solutions ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
}

.ch-solutions li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.ch-solutions li:first-child { border-top: 0; }
.ch-solutions li i { width: 18px; color: var(--ink); font-size: 0.9rem; }

/* ==========================================================================
   TRUST — ряд метрик доверия
   ========================================================================== */
.ch-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ch-trust__item {
    padding: 26px 8px;
    text-align: left;
}

.ch-trust__item + .ch-trust__item { border-left: 1px solid var(--border); padding-left: 26px; }

.ch-trust__num {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: "Fraunces", "PT Serif", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.ch-trust__num small { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }

.ch-trust__label {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.45;
}

/* ==========================================================================
   SERVICES — нумерованные направления (5 колонок, hairline grid)
   ========================================================================== */
.ch-service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: var(--ch-radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.ch-service {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border-right: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.25s ease;
}

.ch-service:last-child { border-right: 0; }
.ch-service:hover { background: var(--surface-muted); }

.ch-service__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ch-service__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--ch-radius);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 1.1rem;
}

.ch-service__num {
    font-family: "Fraunces", "PT Serif", serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--label);
}

.ch-service h3 {
    margin: 0 0 10px;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: 1.22rem;
    line-height: 1.14;
    color: var(--text-primary);
}

.ch-service p {
    margin: 0 0 22px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ch-service__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.ch-service__link::after { content: "\2192"; font-size: 0.95rem; transition: transform 0.2s ease; }
.ch-service__link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Тёмные карточки с изображением (магазин и кейсы)
   ========================================================================== */
.ch-imgcard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 24px;
    border-radius: var(--ch-radius-lg);
    overflow: hidden;
    color: var(--ch-on-dark);
    text-decoration: none;
    isolation: isolate;
}

.ch-imgcard::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-image: var(--img);
    transition: transform 0.5s ease;
}

.ch-imgcard::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(16, 14, 10, 0.15) 0%, rgba(16, 14, 10, 0.82) 78%);
}

.ch-imgcard:hover::before { transform: scale(1.05); }

.ch-imgcard__topic {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(244, 240, 231, 0.16);
    backdrop-filter: blur(6px);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch-imgcard h3 {
    margin: 0 0 6px;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: 1.28rem;
    line-height: 1.12;
}

.ch-imgcard p {
    margin: 0;
    color: var(--ch-on-dark-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Цена на карточке магазина */
.ch-imgcard__price {
    margin-top: 14px;
    font-family: "Fraunces", "PT Serif", serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ch-on-dark);
}

.ch-imgcard__note {
    margin-top: 14px;
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(244, 240, 231, 0.14);
    border: 1px solid rgba(244, 240, 231, 0.16);
    color: var(--ch-on-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Магазин: визуал и текст разделены на две спокойные зоны */
.ch-shop-card {
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-rows: minmax(210px, 228px) 1fr;
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    appearance: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.ch-shop-card::before,
.ch-shop-card::after {
    content: none;
}

.ch-shop-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.ch-shop-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 14, 10, 0.04) 0%, rgba(16, 14, 10, 0.24) 100%);
}

.ch-shop-card__body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    padding: 18px 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff 100%);
}

.ch-shop-card .ch-imgcard__topic {
    position: static;
    width: fit-content;
    padding: 7px 11px;
    background: var(--surface-muted);
    backdrop-filter: none;
    border: 1px solid var(--border);
    color: var(--ink);
}

.ch-shop-card__title {
    margin: 0;
    display: block;
    color: var(--text-primary);
}

.ch-shop-card__description {
    margin: 0;
    display: block;
    color: var(--text-secondary);
}

.ch-shop-card .ch-imgcard__note {
    margin-top: 0;
    background: rgba(28, 27, 25, 0.05);
    border-color: var(--border);
    color: var(--ink);
}

.ch-shop-card:hover {
    border-color: rgba(28, 27, 25, 0.22);
}

.ch-shop-card:focus-visible {
    outline: 2px solid var(--accent-bitrix);
    outline-offset: 4px;
}

.ch-shop-card:hover .ch-shop-card__media {
    transform: scale(1.035);
}

.shop-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.shop-preview-modal[hidden] {
    display: none;
}

.shop-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 18, 0.82);
    backdrop-filter: blur(6px);
}

.shop-preview-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: var(--ch-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(28, 27, 25, 0.12);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

.shop-preview-modal__dialog img {
    display: block;
    width: auto;
    max-width: min(92vw, 1280px);
    height: min(70vh, 920px);
    max-height: 70vh;
    object-fit: contain;
    border-radius: calc(var(--ch-radius-lg) - 8px);
}

.shop-preview-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 14, 10, 0.74);
    color: #fff;
    cursor: pointer;
}

.shop-preview-modal__close:hover,
.shop-preview-modal__close:focus-visible {
    background: rgba(16, 14, 10, 0.9);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .shop-preview-modal__dialog {
    background: rgba(27, 31, 30, 0.96);
    border-color: rgba(244, 240, 231, 0.12);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .shop-preview-modal__dialog img {
    border: 1px solid rgba(244, 240, 231, 0.08);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .shop-preview-modal__close {
    background: rgba(244, 240, 231, 0.12);
    color: #f4f0e7;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .shop-preview-modal__close:hover,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .shop-preview-modal__close:focus-visible {
    background: rgba(244, 240, 231, 0.2);
}

/* Карусели на главной */
.ch-carousel {
    display: grid;
    gap: 16px;
}

.home-landing .ch-carousel__stage {
    position: relative;
    display: grid;
}

.ch-carousel__viewport {
    overflow: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.ch-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.ch-carousel__viewport:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 6px;
}

.ch-carousel__track {
    display: grid;
    gap: 18px;
    grid-template-columns: none;
    align-items: stretch;
    will-change: transform;
    transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ch-carousel__track > * {
    min-width: 0;
}

.ch-shop__grid.ch-carousel__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, calc((100% - 36px) / 3));
}

.ch-case-grid.ch-carousel__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(340px, calc((100% - 18px) / 2));
}

.ch-carousel__footer {
    display: block;
}

.ch-carousel__listing {
    display: grid;
    gap: 8px;
}

.ch-carousel__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--label);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch-carousel__status-separator {
    width: 24px;
    height: 1px;
    background: rgba(28, 27, 25, 0.24);
}

.ch-carousel__progress {
    width: min(100%, 240px);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(28, 27, 25, 0.1);
}

.ch-carousel__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(28, 27, 25, 0.72) 100%);
    transition: width 0.28s ease;
}

.ch-carousel__hint {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

.ch-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: clamp(12px, 1.8vw, 18px);
    pointer-events: none;
}

.ch-carousel__nav {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
    color: rgba(28, 27, 25, 0.84);
    cursor: pointer;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 28px rgba(28, 27, 25, 0.12);
}

.ch-carousel__nav i {
    font-size: 0.88rem;
}

.ch-carousel__nav:hover:not([disabled]) {
    transform: translateY(-1px);
    background: var(--surface);
    color: var(--ink);
    border-color: rgba(28, 27, 25, 0.22);
    box-shadow: 0 10px 24px rgba(28, 27, 25, 0.1);
}

.ch-carousel__nav:focus-visible {
    outline: 2px solid var(--accent-bitrix);
    outline-offset: 4px;
}

.ch-carousel__nav[disabled] {
    opacity: 0.32;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Магазин: фон --surface-muted, текст слева + 3 тёмные карточки справа */
.ch-shop {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: stretch;
}

.ch-shop__intro { align-self: center; }
.ch-shop__intro h2 {
    margin: 0 0 16px;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}
.ch-shop__intro p {
    margin: 0 0 26px;
    max-width: 38ch;
    color: var(--text-secondary);
    line-height: 1.75;
}

.ch-shop__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Кейсы: карусель скриншотов готовых проектов */
.ch-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.ch-case-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--border);
    border-radius: var(--ch-radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.ch-case-card__media {
    background: linear-gradient(180deg, rgba(28, 27, 25, 0.04), rgba(28, 27, 25, 0.1));
    border-bottom: 1px solid var(--border);
}

.ch-case-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1015 / 1550;
    object-fit: cover;
    object-position: center top;
}

.ch-case-card__body {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.ch-case-card__topic {
    color: var(--label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch-case-card h3 {
    margin: 0;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
}

.ch-case-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.72;
}

.ch-case-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.ch-case-card__link::after { content: "\2192"; transition: transform 0.2s ease; }
.ch-case-card:hover .ch-case-card__link::after { transform: translateX(4px); }

/* ==========================================================================
   BITRIX24 — partner band (фон --surface-muted)
   ========================================================================== */
.ch-bitrix {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(26px, 3vw, 48px);
    align-items: center;
    padding: clamp(28px, 3.4vw, 44px);
    border-radius: var(--ch-radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    box-shadow: none;
}

.ch-bitrix h2 {
    margin: 0 0 14px;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.ch-bitrix p {
    margin: 0 0 24px;
    max-width: 44ch;
    color: var(--text-secondary);
    line-height: 1.75;
}

.ch-bitrix__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 9px 15px;
    border-radius: var(--ch-radius);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.ch-bitrix__badge i { color: var(--accent-bitrix); font-size: 1.05rem; }

.ch-bitrix__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ch-bitrix__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--ch-radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.ch-bitrix__item i {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--ch-radius);
    background: var(--editorial-accent-soft);
    color: var(--ink);
}

.ch-bitrix__item strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: 1.04rem;
    color: var(--text-primary);
}

.ch-bitrix__item span {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* ==========================================================================
   JOURNAL
   ========================================================================== */
.ch-journal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.ch-article {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--ch-radius-lg);
    overflow: hidden;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96)),
        var(--surface);
    text-decoration: none;
    transition: border-color 0.25s ease;
}

.ch-article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ink), rgba(28, 27, 25, 0.18));
}

.ch-article:hover { border-color: rgba(28, 27, 25, 0.28); }

.ch-article__media {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-image: var(--img);
    filter: grayscale(0.35) contrast(1.02);
}

.ch-article__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }

.ch-article__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--label);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ch-article h3 {
    margin: 0 0 18px;
    font-family: "Fraunces", "PT Serif", "Lora", serif;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.18;
    color: var(--text-primary);
}

.ch-article__excerpt {
    margin: 0 0 22px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.74;
}

.ch-article__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ch-article__cta::after { content: "\2192"; transition: transform 0.2s ease; }
.ch-article:hover .ch-article__cta::after { transform: translateX(4px); }

/* ==========================================================================
   Full-bleed полосы — секции на --surface-muted (Магазин, Битрикс24)
   ========================================================================== */
.ch-band {
    width: 100%;
    padding: clamp(54px, 6vw, 96px) 0;
}

/* Магазин: светлая «muted» полоса вместо тёмной */
.ch-band--muted,
.ch-band--dark {
    position: relative;
    background: var(--surface-muted);
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ch-band > .site-shell {
    position: relative;
    z-index: 1;
}

/* О компании: фото и личная подача */
body.site-page.editorial-page.concept-home.about-profile .site-brand__subtitle {
    max-width: 22ch;
    font-size: 0.82rem;
    line-height: 1.24;
}

body.site-page.editorial-page.concept-home.about-profile .page-hero--split {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

body.site-page.editorial-page.concept-home.about-profile {
    --about-hero-photo-height: 505px;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-top {
    display: grid;
    gap: 12px;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 390px);
    gap: 40px;
    align-items: start;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-copy {
    display: grid;
    gap: 26px;
    padding-top: 14px;
}

body.site-page.editorial-page.concept-home.about-profile .page-title {
    max-width: 9.2ch;
    font-size: clamp(2.75rem, 4.6vw, 4.45rem);
    line-height: 0.96;
}

body.site-page.editorial-page.concept-home.about-profile .page-lead {
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.72;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-intro {
    display: grid;
    gap: 22px;
    min-height: var(--about-hero-photo-height);
    align-content: end;
}

body.site-page.editorial-page.concept-home.about-profile .about-portrait-card {
    width: 100%;
    justify-self: end;
}

body.site-page.editorial-page.concept-home.about-profile .hero-actions {
    margin-top: 0;
}

body.site-page.editorial-page.concept-home.about-profile .hero-actions .button {
    min-height: 54px;
}

body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait {
    display: grid;
    align-content: start;
    gap: 0;
    padding: 10px;
    justify-self: start;
}

body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait img {
    margin-bottom: 0;
    aspect-ratio: 896 / 1200;
    object-fit: cover;
    object-position: center 10%;
    max-height: none;
}

body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    line-height: 1.08;
}

body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.72;
}

body.site-page.editorial-page.concept-home.about-profile .hero-visual__list {
    margin-top: 18px;
    gap: 10px;
}

body.site-page.editorial-page.concept-home.about-profile .hero-visual__list li {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.58;
}

body.site-page.editorial-page.concept-home.about-profile .about-page-stack {
    gap: clamp(28px, 4vw, 42px);
    padding-bottom: clamp(56px, 8vw, 84px);
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-shell {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.site-page.editorial-page.concept-home.about-profile .about-portrait-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    gap: 16px;
    align-items: start;
    overflow: visible;
}

body.site-page.editorial-page.concept-home.about-profile .about-portrait-card__media {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    min-height: var(--about-hero-photo-height);
    width: fit-content;
    max-width: calc(100% - 18px);
    margin-left: auto;
    overflow: visible;
}

body.site-page.editorial-page.concept-home.about-profile .about-portrait-card__media img {
    width: auto;
    max-width: none;
    height: calc(var(--about-hero-photo-height) + 74px);
    display: block;
    border-radius: 24px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    max-height: none;
    margin-left: -64px;
    transform: none;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note h2,
body.site-page.editorial-page.concept-home.about-profile .about-hero-note p {
    margin: 0;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note > p {
    color: var(--text-secondary);
    line-height: 1.68;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note {
    color: var(--text-primary);
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note::before {
    content: "";
    display: none;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note {
    grid-auto-flow: row;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note h2 {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.06;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note {
    grid-template-areas:
        "title"
        "copy";
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note h2 {
    grid-area: title;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-note > p {
    grid-area: copy;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-side {
    display: grid;
    gap: 16px;
    justify-items: end;
    overflow: visible;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-points {
    width: 100%;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero-points .hero-visual__list {
    margin-top: 0;
    gap: 12px;
}

body.site-page.editorial-page.concept-home.about-profile .about-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

body.site-page.editorial-page.concept-home.about-profile .about-column {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 8px 26px 0;
}

body.site-page.editorial-page.concept-home.about-profile .about-column:first-child {
    padding-left: 0;
}

body.site-page.editorial-page.concept-home.about-profile .about-column:last-child {
    padding-right: 0;
}

body.site-page.editorial-page.concept-home.about-profile .about-column + .about-column {
    border-left: 1px solid var(--border);
}

body.site-page.editorial-page.concept-home.about-profile .about-column h3 {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.06;
}

body.site-page.editorial-page.concept-home.about-profile .about-column p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.66;
}

body.site-page.editorial-page.concept-home.about-profile .about-column__details {
    display: grid;
    gap: 12px;
}

body.site-page.editorial-page.concept-home.about-profile .about-column__title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
}

body.site-page.editorial-page.concept-home.about-profile .about-column__list {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
}

body.site-page.editorial-page.concept-home.about-profile .about-core-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
}

body.site-page.editorial-page.concept-home.about-profile .about-core-panel,
body.site-page.editorial-page.concept-home.about-profile .about-core-note,
body.site-page.editorial-page.concept-home.about-profile .about-core-team {
    padding: clamp(24px, 3vw, 34px);
}

body.site-page.editorial-page.concept-home.about-profile .about-core-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

body.site-page.editorial-page.concept-home.about-profile .about-core-panel:nth-child(2),
body.site-page.editorial-page.concept-home.about-profile .about-core-team {
    border-left: 1px solid var(--border);
}

body.site-page.editorial-page.concept-home.about-profile .about-core-note,
body.site-page.editorial-page.concept-home.about-profile .about-core-team {
    border-top: 1px solid var(--border);
}

body.site-page.editorial-page.concept-home.about-profile .about-core-grid h2,
body.site-page.editorial-page.concept-home.about-profile .about-lead-shell h2 {
    margin: 0;
    max-width: 12ch;
}

body.site-page.editorial-page.concept-home.about-profile .about-core-grid h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.12;
}

body.site-page.editorial-page.concept-home.about-profile .about-core-grid p,
body.site-page.editorial-page.concept-home.about-profile .about-core-grid li {
    color: var(--text-secondary);
}

body.site-page.editorial-page.concept-home.about-profile .about-core-panel__details,
body.site-page.editorial-page.concept-home.about-profile .about-core-note,
body.site-page.editorial-page.concept-home.about-profile .about-core-team {
    display: grid;
    gap: 14px;
    align-content: start;
}

body.site-page.editorial-page.concept-home.about-profile .about-core-note p,
body.site-page.editorial-page.concept-home.about-profile .about-core-team li {
    line-height: 1.66;
}

body.site-page.editorial-page.concept-home.about-profile .about-lead-shell {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 22px;
    align-items: start;
}

body.site-page.editorial-page.concept-home.about-profile .about-contact-card,
body.site-page.editorial-page.concept-home.about-profile .about-lead-shell .lead-form {
    border-color: var(--border);
}

body.site-page.editorial-page.concept-home.about-profile .about-contact-card {
    margin-top: 20px;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero {
    overflow: hidden;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero__copy {
    display: grid;
    align-content: start;
    gap: 22px;
}

body.site-page.editorial-page.concept-home.about-profile .about-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.site-page.editorial-page.concept-home.about-profile .about-fact {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
}

body.site-page.editorial-page.concept-home.about-profile .about-fact__label {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.site-page.editorial-page.concept-home.about-profile .about-fact strong {
    font-size: 0.98rem;
    line-height: 1.45;
}

body.site-page.editorial-page.concept-home.about-profile .about-portrait__body {
    display: grid;
    gap: 12px;
}

body.site-page.editorial-page.concept-home.about-profile .about-signal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body.site-page.editorial-page.concept-home.about-profile .about-signal__item {
    min-height: 100%;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

body.site-page.editorial-page.concept-home.about-profile .about-signal__num {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1;
}

body.site-page.editorial-page.concept-home.about-profile .about-signal__item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.72;
}

body.site-page.editorial-page.concept-home.about-profile .about-section {
    display: grid;
    gap: 24px;
}

body.site-page.editorial-page.concept-home.about-profile .about-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 24px;
    align-items: end;
}

body.site-page.editorial-page.concept-home.about-profile .about-section__head--compact {
    grid-template-columns: 1fr;
}

body.site-page.editorial-page.concept-home.about-profile .about-section__head h2,
body.site-page.editorial-page.concept-home.about-profile .about-process-card h2,
body.site-page.editorial-page.concept-home.about-profile .about-results h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.02;
    text-wrap: balance;
}

body.site-page.editorial-page.concept-home.about-profile .about-section__head p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

body.site-page.editorial-page.concept-home.about-profile .about-focus-card,
body.site-page.editorial-page.concept-home.about-profile .about-result-card {
    background: var(--surface);
}

body.site-page.editorial-page.concept-home.about-profile .about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 18px;
    align-items: start;
}

body.site-page.editorial-page.concept-home.about-profile .about-process-card,
body.site-page.editorial-page.concept-home.about-profile .about-results {
    padding: clamp(26px, 3vw, 34px);
}

body.site-page.editorial-page.concept-home.about-profile .about-process-card .step-list {
    margin-top: 22px;
}

body.site-page.editorial-page.concept-home.about-profile .about-side-stack {
    display: grid;
    gap: 18px;
}

body.site-page.editorial-page.concept-home.about-profile .about-team-box {
    padding: 24px;
}

body.site-page.editorial-page.concept-home.about-profile .about-team-box .ch-eyebrow {
    margin-bottom: 12px;
}

body.site-page.editorial-page.concept-home.about-profile .about-team-box--accent {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.08));
}

body.site-page.editorial-page.concept-home.about-profile .about-results {
    display: grid;
    gap: 24px;
}

body.site-page.editorial-page.concept-home.about-profile .about-results__grid {
    gap: 16px;
}

body.site-page.editorial-page.concept-home.about-profile .about-result-card {
    box-shadow: none;
}

body.site-page.editorial-page.concept-home.about-profile :is(
    .about-hero,
    .cta-panel,
    .lead-section
) {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.site-page.editorial-page.concept-home.about-profile :is(
    .about-fact,
    .about-signal__item,
    .about-process-card,
    .about-results,
    .about-team-box,
    .about-result-card
) {
    border-color: transparent;
    box-shadow: none;
}

body.site-page.editorial-page.concept-home.about-profile :is(
    .about-fact,
    .about-signal__item,
    .about-process-card,
    .about-team-box,
    .about-result-card
) {
    background: var(--editorial-accent-soft);
}

body.site-page.editorial-page.concept-home.about-profile .about-results {
    background: transparent;
}

body.site-page.editorial-page.concept-home.about-profile :is(
    .hero-visual--portrait,
    .about-team-box--accent,
    .cta-panel > .contact-box,
    .lead-form,
    .lead-section .contact-box
) {
    border-color: var(--border);
}

body.site-page.editorial-page.concept-home.about-profile .site-footer__inner {
    border-color: transparent;
    box-shadow: none;
}

/* ==========================================================================
   Homepage typography polish — applies only to index.html via .home-landing
   ========================================================================== */
body.site-page.editorial-page.concept-home.home-landing {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
}

body.site-page.editorial-page.concept-home.home-landing :is(
    .ch-hero__title,
    .page-title,
    .ch-sechead h2,
    .ch-shop__intro h2,
    .ch-bitrix h2,
    .lead-section h2,
    .ch-service h3,
    .ch-solutions h3,
    .ch-imgcard h3,
    .ch-case-card h3,
    .ch-article h3
) {
    text-wrap: balance;
}

body.site-page.editorial-page.concept-home.home-landing :is(
    .ch-hero__lead,
    .page-lead,
    .ch-solutions > p,
    .ch-trust__label,
    .ch-service p,
    .ch-imgcard p,
    .ch-shop__intro p,
    .ch-case-card p,
    .ch-bitrix p,
    .ch-bitrix__item span,
    .ch-article__meta,
    .lead-section p,
    .form-note,
    .footer-note,
    .site-brand__subtitle,
    .clean-list li
) {
    text-wrap: pretty;
}

body.site-page.editorial-page.concept-home.home-landing .site-header__inner {
    gap: 24px;
}

body.site-page.editorial-page.concept-home.home-landing .site-brand {
    gap: 16px;
}

body.site-page.editorial-page.concept-home.home-landing .site-brand__text {
    gap: 6px;
    max-width: 18rem;
}

body.site-page.editorial-page.concept-home.home-landing .site-brand__subtitle {
    max-width: 21ch;
    font-size: 0.84rem;
    line-height: 1.28;
    letter-spacing: 0.015em;
}

body.site-page.editorial-page.concept-home.home-landing .site-nav a {
    padding: 12px 16px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.015em;
}

body.site-page.editorial-page.concept-home.home-landing .site-nav a.is-accent {
    padding-inline: 19px;
}

body.site-page.editorial-page.concept-home.home-landing .button {
    font-size: 0.89rem;
    letter-spacing: 0.015em;
}

body.site-page.editorial-page.concept-home.home-landing .eyebrow,
body.site-page.editorial-page.concept-home.home-landing .ch-eyebrow,
body.site-page.editorial-page.concept-home.home-landing .ch-hero__eyebrow {
    letter-spacing: 0.14em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: clamp(32px, 4.4vw, 72px);
}

body.site-page.editorial-page.concept-home.home-landing .ch-hero__lead-col {
    max-width: 43rem;
}

body.site-page.editorial-page.concept-home.home-landing .ch-hero__eyebrow {
    margin-bottom: 20px;
    font-size: 0.76rem;
}

body.site-page.editorial-page.concept-home.home-landing .ch-hero__title {
    max-width: 12ch;
    font-size: clamp(2.7rem, 5.6vw, 4.45rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-hero__lead {
    margin-top: 28px;
    max-width: 50ch;
    font-size: 1.08rem;
    line-height: 1.82;
}

body.site-page.editorial-page.concept-home.home-landing .ch-hero__actions {
    margin-top: 34px;
}

body.site-page.editorial-page.concept-home.home-landing .ch-hero__actions .button {
    min-height: 56px;
    padding-inline: 24px;
}

body.site-page.editorial-page.concept-home.home-landing .ch-dash__head {
    margin-bottom: 24px;
    letter-spacing: 0.13em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-dash__metric span {
    font-size: 0.8rem;
    line-height: 1.45;
}

body.site-page.editorial-page.concept-home.home-landing .ch-dash__metric b {
    font-size: 1.22rem;
    letter-spacing: -0.015em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-solutions h3 {
    margin-bottom: 14px;
    font-size: 1.42rem;
    line-height: 1.08;
}

body.site-page.editorial-page.concept-home.home-landing .ch-solutions > p {
    font-size: 0.98rem;
    line-height: 1.74;
}

body.site-page.editorial-page.concept-home.home-landing .ch-solutions__label {
    letter-spacing: 0.14em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-solutions li {
    font-size: 0.95rem;
    line-height: 1.42;
}

body.site-page.editorial-page.concept-home.home-landing .ch-trust__item {
    padding: 30px 10px 28px;
}

body.site-page.editorial-page.concept-home.home-landing .ch-trust__num {
    font-size: clamp(1.95rem, 3.1vw, 2.75rem);
}

body.site-page.editorial-page.concept-home.home-landing .ch-trust__label {
    margin-top: 10px;
    max-width: 24ch;
    font-size: 0.9rem;
    line-height: 1.55;
}

body.site-page.editorial-page.concept-home.home-landing .page-hero--split {
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
    gap: 40px;
}

body.site-page.editorial-page.concept-home.home-landing .page-title {
    max-width: 12.5ch;
    font-size: clamp(2.8rem, 4.9vw, 4.6rem);
    line-height: 0.98;
}

body.site-page.editorial-page.concept-home.home-landing .page-lead {
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.88;
}

body.site-page.editorial-page.concept-home.home-landing .contact-box h3 {
    margin-bottom: 16px;
    font-size: clamp(1.3rem, 1.9vw, 1.62rem);
}

body.site-page.editorial-page.concept-home.home-landing .clean-list li {
    font-size: 0.96rem;
    line-height: 1.72;
}

body.site-page.editorial-page.concept-home.home-landing .ch-sechead__main {
    max-width: 34ch;
}

body.site-page.editorial-page.concept-home.home-landing .ch-sechead h2 {
    max-width: 18ch;
    font-size: clamp(1.82rem, 3.2vw, 2.5rem);
    line-height: 1.02;
}

body.site-page.editorial-page.concept-home.home-landing .ch-sechead__link {
    font-size: 0.74rem;
    letter-spacing: 0.085em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-service h3 {
    max-width: 12ch;
    font-size: 1.28rem;
    line-height: 1.08;
}

body.site-page.editorial-page.concept-home.home-landing .ch-service p {
    font-size: 0.94rem;
    line-height: 1.68;
}

body.site-page.editorial-page.concept-home.home-landing .ch-service__link {
    font-size: 0.74rem;
    letter-spacing: 0.085em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-shop__intro h2 {
    max-width: 13ch;
    font-size: clamp(1.86rem, 3.2vw, 2.55rem);
    line-height: 1.02;
}

body.site-page.editorial-page.concept-home.home-landing .ch-shop__intro p {
    font-size: 0.99rem;
    line-height: 1.78;
}

body.site-page.editorial-page.concept-home.home-landing .ch-imgcard__topic {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-imgcard h3 {
    max-width: 12ch;
    font-size: 1.36rem;
    line-height: 1.08;
}

body.site-page.editorial-page.concept-home.home-landing .ch-imgcard p {
    max-width: 30ch;
    font-size: 0.92rem;
    line-height: 1.56;
}

body.site-page.editorial-page.concept-home.home-landing .ch-imgcard__price {
    font-size: 1.48rem;
}

body.site-page.editorial-page.concept-home.home-landing .ch-imgcard__note {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-shop-card h3 {
    max-width: 14ch;
    font-size: 1.22rem;
    line-height: 1.12;
}

body.site-page.editorial-page.concept-home.home-landing .ch-shop-card p {
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.62;
}

body.site-page.editorial-page.concept-home.home-landing .ch-case-card h3 {
    max-width: 16ch;
    font-size: 1.24rem;
    line-height: 1.08;
}

body.site-page.editorial-page.concept-home.home-landing .ch-case-card p {
    font-size: 0.95rem;
    line-height: 1.72;
}

body.site-page.editorial-page.concept-home.home-landing .ch-case-card__link {
    letter-spacing: 0.09em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-bitrix h2 {
    max-width: 14ch;
    font-size: clamp(1.86rem, 3.1vw, 2.5rem);
    line-height: 1.02;
}

body.site-page.editorial-page.concept-home.home-landing .ch-bitrix p {
    font-size: 0.99rem;
    line-height: 1.78;
}

body.site-page.editorial-page.concept-home.home-landing .ch-bitrix__item strong {
    font-size: 1.08rem;
    line-height: 1.12;
}

body.site-page.editorial-page.concept-home.home-landing .ch-bitrix__item span {
    font-size: 0.9rem;
    line-height: 1.58;
}

body.site-page.editorial-page.concept-home.home-landing .ch-article__meta {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

body.site-page.editorial-page.concept-home.home-landing .ch-article h3 {
    font-size: 1.14rem;
    line-height: 1.14;
}

body.site-page.editorial-page.concept-home.home-landing .ch-article__excerpt {
    font-size: 0.93rem;
    line-height: 1.76;
}

body.site-page.editorial-page.concept-home.home-landing .lead-section h2 {
    max-width: 13ch;
    font-size: clamp(1.9rem, 3.1vw, 2.45rem);
    line-height: 1.02;
}

body.site-page.editorial-page.concept-home.home-landing .lead-section p {
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.8;
}

body.site-page.editorial-page.concept-home.home-landing .form-group label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.site-page.editorial-page.concept-home.home-landing .form-note,
body.site-page.editorial-page.concept-home.home-landing .footer-note {
    font-size: 0.9rem;
    line-height: 1.72;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1080px) {
    .ch-hero { grid-template-columns: 1fr; }
    .ch-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-service:nth-child(3) { border-right: 0; }
    .ch-service:nth-child(n+4) { border-top: 1px solid var(--border); }
    .ch-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-bitrix { grid-template-columns: 1fr; }
    .ch-shop__grid.ch-carousel__track { grid-auto-columns: minmax(260px, calc((100% - 18px) / 2)); }
    .ch-case-grid.ch-carousel__track { grid-auto-columns: minmax(320px, calc((100% - 18px) / 1.55)); }

    body.site-page.editorial-page.concept-home.home-landing .ch-hero,
    body.site-page.editorial-page.concept-home.home-landing .page-hero--split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body.site-page.editorial-page.concept-home.home-landing .ch-hero__lead-col,
    body.site-page.editorial-page.concept-home.home-landing .ch-hero__panel {
        max-width: none;
    }

    body.site-page.editorial-page.concept-home.about-profile .page-hero--split {
        gap: 28px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero-copy {
        padding-top: 0;
        gap: 22px;
    }

    body.site-page.editorial-page.concept-home.about-profile {
        --about-hero-photo-height: auto;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero-intro {
        min-height: 0;
        align-content: start;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-columns,
    body.site-page.editorial-page.concept-home.about-profile .about-core-grid {
        grid-template-columns: 1fr;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-column {
        padding: 0;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-column + .about-column,
    body.site-page.editorial-page.concept-home.about-profile .about-core-panel:nth-child(2),
    body.site-page.editorial-page.concept-home.about-profile .about-core-team {
        border-left: 0;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-column + .about-column {
        border-top: 1px solid var(--border);
        margin-top: 22px;
        padding-top: 22px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero__facts,
    body.site-page.editorial-page.concept-home.about-profile .about-signal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.site-page.editorial-page.concept-home.about-profile .about-section__head,
    body.site-page.editorial-page.concept-home.about-profile .about-layout {
        grid-template-columns: 1fr;
    }

    body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait {
        width: 100%;
        max-width: 460px;
        justify-self: start;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-portrait-card {
        width: 100%;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero-side {
        justify-items: stretch;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-portrait-card__media {
        min-height: 0;
        justify-content: center;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-portrait-card__media img {
        width: 100%;
        margin-left: 0;
        height: auto;
        max-height: none;
        transform: none;
    }
}

@media (max-width: 900px) {
    .ch-shop { grid-template-columns: 1fr; }
    .ch-shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-case-grid { grid-template-columns: 1fr; }
    .ch-shop__grid.ch-carousel__track { grid-auto-columns: minmax(260px, calc((100% - 18px) / 1.45)); }
    .ch-case-grid.ch-carousel__track { grid-auto-columns: minmax(300px, 82%); }
    .home-landing .ch-carousel__stage { gap: 14px; }
    .home-landing .ch-carousel__controls {
        position: static;
        inset: auto;
        justify-content: flex-end;
        gap: 8px;
        padding: 0;
        pointer-events: auto;
    }
}

@media (max-width: 760px) {
    body.site-page.editorial-page.concept-home .site-header__inner { min-height: 96px; }
    body.site-page.editorial-page.concept-home .site-brand__logo { height: 56px; }
    body.site-page.editorial-page.concept-home.is-scrolled .site-header__inner { min-height: 64px; }
    body.site-page.editorial-page.concept-home.is-scrolled .site-brand__logo { height: 42px; }
    body.site-page.editorial-page.concept-home .site-header__inner { padding-left: clamp(72px, 16vw, 92px); }
    body.site-page.editorial-page.concept-home .site-brand { min-width: 0; max-width: calc(100% - 56px); }
    body.site-page.editorial-page.concept-home .site-brand__text { min-width: 0; }
    body.site-page.editorial-page.concept-home .site-nav { width: min(92vw, 360px); max-height: calc(100vh - 124px); overflow-y: auto; }

    body.site-page.editorial-page.concept-home.home-landing .site-header__inner {
        gap: 16px;
    }

    body.site-page.editorial-page.concept-home.home-landing .site-brand {
        gap: 12px;
    }

    body.site-page.editorial-page.concept-home.home-landing .site-brand__text {
        max-width: 13rem;
    }

    body.site-page.editorial-page.concept-home.home-landing .site-brand__subtitle {
        font-size: 0.76rem;
        line-height: 1.2;
    }

    body.site-page.editorial-page.concept-home.about-profile .site-header__inner {
        padding-left: 74px;
        gap: 12px;
    }

    body.site-page.editorial-page.concept-home.about-profile .site-brand__logo {
        height: 50px;
    }

    body.site-page.editorial-page.concept-home.about-profile .site-brand__subtitle {
        max-width: 14ch;
        font-size: 0.72rem;
        line-height: 1.16;
    }
}

@media (max-width: 720px) {
    .ch-service-grid { grid-template-columns: 1fr; }
    .ch-service { border-right: 0; border-top: 1px solid var(--border); }
    .ch-service:first-child { border-top: 0; }
    .ch-service:nth-child(n+4) { border-top: 1px solid var(--border); }
    .ch-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-trust__item { padding: 20px 12px; }
    .ch-trust__item:nth-child(odd) { border-left: 0; padding-left: 12px; }
    .ch-trust__item:nth-child(2) { border-left: 1px solid var(--border); }
    .ch-trust__item:nth-child(n+3) { border-top: 1px solid var(--border); }
    .ch-shop__grid { grid-template-columns: 1fr; }
    .ch-journal-grid { grid-template-columns: 1fr; }
    .ch-bitrix__grid { grid-template-columns: 1fr; }
    .ch-dash__body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .ch-dash__metrics { width: 100%; }
    .ch-shop__grid.ch-carousel__track,
    .ch-case-grid.ch-carousel__track { grid-auto-columns: 86%; }
    .ch-carousel__progress { width: 100%; }
    .ch-carousel__nav { width: 36px; height: 36px; }

    body.site-page.editorial-page.concept-home .page-title {
        max-width: 100%;
        font-size: clamp(2.1rem, 10vw, 3rem);
        text-wrap: pretty;
    }

    body.site-page.editorial-page.concept-home .page-lead,
    body.site-page.editorial-page.concept-home .lead-section p {
        max-width: none;
        font-size: 0.98rem;
        line-height: 1.68;
    }

    body.site-page.editorial-page.concept-home .breadcrumbs {
        font-size: 0.74rem;
        line-height: 1.45;
    }

    body.site-page.editorial-page.concept-home .page-hero,
    body.site-page.editorial-page.concept-home .page-card,
    body.site-page.editorial-page.concept-home .info-card,
    body.site-page.editorial-page.concept-home .contact-box,
    body.site-page.editorial-page.concept-home .lead-section {
        padding: 22px 18px;
    }

    body.site-page.editorial-page.concept-home .hero-actions,
    body.site-page.editorial-page.concept-home .button-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.site-page.editorial-page.concept-home .hero-actions .button,
    body.site-page.editorial-page.concept-home .button-group .button {
        width: 100%;
    }

    body.site-page.editorial-page.concept-home .contact-row {
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: start;
    }

    body.site-page.editorial-page.concept-home .contact-row > :last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.site-page.editorial-page.concept-home.home-landing .ch-hero__title {
        max-width: 12ch;
        font-size: clamp(2.25rem, 12vw, 3.05rem);
    }

    body.site-page.editorial-page.concept-home.home-landing .ch-hero__lead,
    body.site-page.editorial-page.concept-home.home-landing .page-lead,
    body.site-page.editorial-page.concept-home.home-landing .ch-shop__intro p,
    body.site-page.editorial-page.concept-home.home-landing .ch-bitrix p,
    body.site-page.editorial-page.concept-home.home-landing .lead-section p {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    body.site-page.editorial-page.concept-home.home-landing .page-title {
        font-size: clamp(2.35rem, 10vw, 3rem);
        max-width: 13ch;
    }

    body.site-page.editorial-page.concept-home.home-landing .ch-sechead h2,
    body.site-page.editorial-page.concept-home.home-landing .ch-shop__intro h2,
    body.site-page.editorial-page.concept-home.home-landing .ch-bitrix h2,
    body.site-page.editorial-page.concept-home.home-landing .lead-section h2 {
        max-width: 100%;
        font-size: clamp(1.7rem, 8.2vw, 2.15rem);
    }

    body.site-page.editorial-page.concept-home.home-landing .ch-trust__label {
        max-width: none;
        font-size: 0.86rem;
    }

    body.site-page.editorial-page.concept-home.home-landing .ch-hero__actions .button {
        width: 100%;
    }

    body.site-page.editorial-page.concept-home.home-landing .page-hero--split {
        gap: 28px;
    }

    body.site-page.editorial-page.concept-home.about-profile .page-hero--split {
        gap: 24px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero-top {
        gap: 10px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-page-stack {
        gap: 24px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero__copy {
        gap: 18px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.site-page.editorial-page.concept-home.about-profile .about-hero__facts .about-fact:last-child {
        grid-column: 1 / -1;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-signal,
    body.site-page.editorial-page.concept-home.about-profile .about-results__grid {
        grid-template-columns: 1fr;
    }

    body.site-page.editorial-page.concept-home.about-profile .page-title {
        max-width: 8.2ch;
        font-size: clamp(2.15rem, 11vw, 2.95rem);
    }

    body.site-page.editorial-page.concept-home.about-profile .page-lead {
        font-size: 0.96rem;
        line-height: 1.62;
    }

    body.site-page.editorial-page.concept-home.about-profile .hero-actions {
        margin-top: 22px;
    }

    body.site-page.editorial-page.concept-home.about-profile .hero-actions .button {
        width: 100%;
        min-height: 52px;
    }

    body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait {
        padding: 16px;
        gap: 14px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-column h3 {
        font-size: 1.45rem;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-core-panel,
    body.site-page.editorial-page.concept-home.about-profile .about-core-note,
    body.site-page.editorial-page.concept-home.about-profile .about-core-team {
        padding: 22px 20px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-core-grid h2,
    body.site-page.editorial-page.concept-home.about-profile .about-lead-shell h2 {
        max-width: 100%;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-fact,
    body.site-page.editorial-page.concept-home.about-profile .about-signal__item,
    body.site-page.editorial-page.concept-home.about-profile .about-team-box {
        padding: 18px;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-fact strong {
        font-size: 0.92rem;
    }

    body.site-page.editorial-page.concept-home.about-profile .about-section__head h2,
    body.site-page.editorial-page.concept-home.about-profile .about-process-card h2,
    body.site-page.editorial-page.concept-home.about-profile .about-results h2 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait img {
        aspect-ratio: 896 / 1200;
    }

    body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait h2 {
        font-size: 1.42rem;
    }

    body.site-page.editorial-page.concept-home.about-profile .hero-visual--portrait p,
    body.site-page.editorial-page.concept-home.about-profile .hero-visual__list li {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    body.site-page.editorial-page.concept-home.about-profile .site-brand__subtitle {
        display: none;
    }
}

/* ==========================================================================
   Гармонизация общего «shell» под стиль главной — лид-форма, поля, футер,
   контакт-бокс приводятся к near-square углам и токенам concept-home
   (работает в обеих темах через переменные).
   ========================================================================== */
body.site-page.editorial-page.concept-home .lead-section,
body.site-page.editorial-page.concept-home .lead-form,
body.site-page.editorial-page.concept-home .contact-box {
    border-radius: var(--ch-radius-lg);
}

body.site-page.editorial-page.concept-home .lead-form {
    background: var(--surface);
    border-color: var(--border);
}

body.site-page.editorial-page.concept-home .lead-form input,
body.site-page.editorial-page.concept-home .lead-form select,
body.site-page.editorial-page.concept-home .lead-form textarea {
    border-radius: var(--ch-radius);
    border-color: var(--border);
    background: var(--bg);
    color: var(--text-primary);
}

body.site-page.editorial-page.concept-home .form-group label {
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.04em;
}

body.site-page.editorial-page.concept-home .form-status { border-radius: var(--ch-radius); }

body.site-page.editorial-page.concept-home .site-footer__inner {
    border-radius: var(--ch-radius-lg) var(--ch-radius-lg) 0 0;
}

/* ==========================================================================
   НОЧНОЙ РЕЖИМ (dark) — тёплая тёмная палитра для главной.
   Селектор на html[data-theme] (выставляется theme-bootstrap.js до отрисовки),
   поэтому переключение без вспышки. Переопределяем только примитивные токены —
   компоненты, завязанные на переменные, перекрашиваются автоматически.
   ========================================================================== */
html[data-theme="dark"] body.site-page.editorial-page.concept-home {
    --bg: #131210;
    --surface: #1C1A15;
    --surface-muted: #221F19;
    --ink: #F3EFE6;            /* теперь это светлый «передний» акцент */
    --dark-block: #232019;
    --text-primary: #F4F0E7;
    --text-secondary: #ADA697;
    --label: #8E887A;
    --border: rgba(244, 240, 231, 0.14);
    --editorial-accent-soft: rgba(244, 240, 231, 0.08);
    --ch-dark-2: #2A271F;
    background: var(--bg);
}

/* Шапка и кнопка темы */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-header {
    background: rgba(19, 18, 16, 0.86);
    border-bottom-color: var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-theme-toggle {
    background: rgba(28, 26, 21, 0.82);
    border-color: var(--border);
    color: var(--text-primary);
}

/* Навигация */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav a:hover {
    background: rgba(244, 240, 231, 0.08);
    color: var(--text-primary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav a.is-accent:hover {
    background: var(--ink);
    color: #14130F;
}

/* Бургер: тёмный чип со светлыми линиями (т.к. --ink стал светлым) */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav-toggle span,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav-toggle span::before,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav-toggle span::after {
    background: var(--text-primary);
}

/* Кнопки: primary становится светлой → текст тёмный; secondary — контурная */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .button.primary {
    background: var(--ink);
    color: #14130F;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .button.primary:hover {
    background: #ffffff;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .button.secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .button.secondary:hover {
    background: rgba(244, 240, 231, 0.06);
}

/* Тёмные карточки получают хайратную рамку для отделения от фона */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-dash,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-imgcard {
    border: 1px solid var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-case-card,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-article,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-carousel__nav {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-carousel__status-separator {
    background: rgba(244, 240, 231, 0.24);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-carousel__progress {
    background: rgba(244, 240, 231, 0.1);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-carousel__progress span {
    background: linear-gradient(90deg, var(--text-primary) 0%, rgba(244, 240, 231, 0.7) 100%);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-shop-card,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-shop-card__body {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-shop-card .ch-imgcard__topic {
    background: rgba(244, 240, 231, 0.08);
    color: var(--text-primary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-shop-card .ch-imgcard__note {
    background: rgba(244, 240, 231, 0.06);
    color: var(--text-primary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-case-card__media {
    background: #16140F;
    border-bottom-color: var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .ch-carousel__nav:hover:not([disabled]) {
    background: var(--ink);
    color: #14130F;
}

/* Поля лид-формы в тёмной теме */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .lead-form input,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .lead-form select,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .lead-form textarea {
    background: #16140F;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .lead-form input::placeholder,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .lead-form textarea::placeholder {
    color: rgba(244, 240, 231, 0.42);
}

/* Production automation pricing: keep prices aligned across cards. */
body.site-page.editorial-page.concept-home.production-automation-page .pricing-grid--wide {
    align-items: stretch;
}

body.site-page.editorial-page.concept-home.production-automation-page .pricing-grid--wide .pricing-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.site-page.editorial-page.concept-home.production-automation-page .pricing-grid--wide .pricing-card h3 {
    min-height: 3.5em;
    margin-bottom: 0;
}

body.site-page.editorial-page.concept-home.production-automation-page .pricing-grid--wide .pricing-card .price {
    margin-top: 16px;
}

/* ==========================================================================
   Активный пункт навигации (aria-current="page")
   Тонкая нижняя линия — не конфликтует с is-accent CTA
   ========================================================================== */
body.site-page.editorial-page.concept-home .site-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
    position: relative;
}

body.site-page.editorial-page.concept-home .site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav a[aria-current="page"] {
    color: var(--text-primary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-nav a[aria-current="page"]::after {
    background: var(--text-primary);
}

/* ==========================================================================
   Dark mode: нейтрализуем «фиолетовые» токены site.css которые могут
   просачиваться в card-surface, lead-section, footer и прочие компоненты.
   ========================================================================== */
html[data-theme="dark"] body.site-page.editorial-page.concept-home {
    --bg-soft: rgba(244, 240, 231, 0.06);
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --surface-strong: var(--surface);
}

/* card-surface используется в lead-section и footer */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .card-surface {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

/* Контактный блок внутри формы */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .contact-box {
    background: #1A1714;
    border-color: var(--border);
}

/* Футер */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .site-footer__inner {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .footer-links a,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .footer-links li {
    color: var(--text-secondary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .footer-links a:hover {
    color: var(--text-primary);
}

/* Breadcrumbs и eyebrow на тёмных страницах */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .breadcrumbs a,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .breadcrumbs span {
    color: var(--text-secondary);
}

/* page-hero / landing-hero / card-surface hero */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .page-hero,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .landing-hero {
    background: var(--surface);
    border-color: var(--border);
}

/* Пакеты/прайс-блоки на внутренних страницах */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .package-card,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .service-card,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .info-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .package-card h3,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .service-card h3,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .info-card h3 {
    color: var(--text-primary);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home .package-label {
    background: var(--surface-muted);
    color: var(--label);
    border-color: var(--border);
}

/* Цена */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .price {
    color: var(--text-primary);
}

/* Теги и бейджи */
html[data-theme="dark"] body.site-page.editorial-page.concept-home .tag,
html[data-theme="dark"] body.site-page.editorial-page.concept-home .badge {
    background: var(--surface-muted);
    color: var(--text-secondary);
    border-color: var(--border);
}

/* Горизонтальные разделители */
html[data-theme="dark"] body.site-page.editorial-page.concept-home hr {
    border-color: var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home.about-profile :is(
    .about-hero,
    .cta-panel,
    .lead-section
) {
    background: transparent;
    border-color: transparent;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home.about-profile :is(
    .about-fact,
    .about-signal__item,
    .about-process-card,
    .about-team-box,
    .about-result-card
) {
    background: var(--editorial-accent-soft);
    border-color: transparent;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home.about-profile .about-results {
    background: transparent;
    border-color: transparent;
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home.about-profile :is(
    .hero-visual--portrait,
    .about-team-box--accent,
    .cta-panel > .contact-box,
    .lead-form,
    .lead-section .contact-box
) {
    border-color: var(--border);
}

html[data-theme="dark"] body.site-page.editorial-page.concept-home.about-profile .site-footer__inner {
    border-color: transparent;
}

/* select dropdown — системный, но border важен */
html[data-theme="dark"] body.site-page.editorial-page.concept-home select {
    background: #16140F;
    color: var(--text-primary);
    border-color: var(--border);
}

/* Иконка переключателя темы управляется site.js (innerHTML → fa-sun/fa-moon) */
