/* Единый лендинг сервисных страниц (макет Figma «Draft» → Section 1). Разметка: templates/includes/service_landing.html. */

/* ---------- Шапка ---------- */

.cl-hero.cover-letter-header {
    padding: 32px 0 16px;
    text-align: center;
}

.cl-hero .cover-letter-title {
    margin: 0 0 12px;
    color: var(--text-color);
    font-size: var(--fs-32);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-32);
    letter-spacing: var(--ls-32);
}

.cl-hero .cover-letter-subtitle {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

/* Подзаголовки верхнего блока на всех сервисах — серые и не шире 800px, как подзаголовки секций */
.cover-letter-header .cover-letter-subtitle,
.cv-check-subtitle,
.mock-interview-subtitle {
    max-width: 800px;
    color: var(--text-muted);
}

/* ---------- Общее ---------- */

.cl-landing {
    margin-top: 56px;
    color: var(--text-color);
}

.cl-landing > * + * {
    margin-top: 80px;
}

.cl-landing :where(h2, h3, p, ul, ol) {
    margin: 0;
}

.cl-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.cl-h2 {
    color: var(--text-color);
    font-size: var(--fs-32);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-32);
    letter-spacing: var(--ls-32);
}

.cl-lead {
    max-width: 800px;
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    text-align: center;
}

.cl-gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cl-grid-bg {
    position: absolute;
    left: 50%;
    z-index: 0;
    width: 1401px;
    max-width: none;
    height: auto;
    pointer-events: none;
    transform: translateX(-50%) scaleY(-1);
}

html.dark-theme .cl-grid-bg {
    filter: invert(1);
    opacity: 0.5;
}

.cl-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 500px);
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.cl-card > img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
}

/* ---------- 12 000+ ---------- */

.cl-stats {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
}

.cl-stats .cl-grid-bg {
    top: -403px;
}

.cl-stats-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    padding: 32px;
    text-align: center;
}

.cl-stats-number {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 100px;
    font-weight: var(--fw-semibold);
    line-height: var(--lh-40);
    letter-spacing: var(--ls-40);
}

.cl-stats-title {
    color: var(--text-color);
    font-size: var(--fs-32);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-32);
    letter-spacing: var(--ls-32);
}

.cl-stats-tag {
    margin-top: 8px;
    padding: 8px 16px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent-color) 20%, var(--surface-primary));
    color: color-mix(in srgb, var(--accent-color) 55%, var(--text-color));
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    transform: rotate(0.5deg);
}

/* ---------- Таймлайн «почему не сработает» ---------- */

.cl-timeline {
    --cl-timeline-x: calc(192px + (100% - 192px - 538px) / 2 + 6px);
    position: relative;
    margin-top: 40px;
}

.cl-timeline::before,
.cl-timeline-progress {
    position: absolute;
    top: 0;
    left: var(--cl-timeline-x);
    width: 2px;
}

.cl-timeline::before {
    content: '';
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0, color-mix(in srgb, var(--text-color) 15%, var(--bg-color)) 66px, color-mix(in srgb, var(--text-color) 15%, var(--bg-color)) calc(100% - 64px), transparent 100%);
}

.cl-timeline-progress {
    z-index: 1;
    height: var(--cl-progress, 0px);
    background: linear-gradient(to bottom, transparent 0, var(--accent-color) 66px);
}

.cl-timeline-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 0 0 192px;
    list-style: none;
}

.cl-timeline-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 538px;
}

.cl-timeline-dot {
    position: relative;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-color) 15%, var(--bg-color));
}

.cl-timeline-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: var(--cl-item, 1);
}

.cl-timeline-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    width: 500px;
    padding: 12px 24px;
    opacity: calc(0.25 + 0.75 * var(--cl-item, 1));
}

.cl-timeline-num {
    align-self: flex-start;
    font-size: var(--fs-18);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
}

.cl-timeline-card strong {
    margin-bottom: -8px;
    color: var(--text-color);
    font-size: var(--fs-18);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
}

.cl-timeline-card p {
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

/* ---------- Как HireHi создаёт письмо ---------- */

.cl-how {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.cl-how-card {
    display: flex;
    flex: 0 0 352px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 352px;
    padding: 16px;
    border-radius: 24px;
    filter: drop-shadow(-1px 0 5px var(--shadow-light));
}

html.dark-theme .cl-how-card {
    filter: none;
}

.cl-how-card h3 {
    color: var(--text-color);
    font-size: var(--fs-18);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
    text-align: center;
}

.cl-how-box {
    position: relative;
    width: 100%;
    height: 288px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--cl-fill);
}

.cl-how-arrow {
    flex: 0 0 30px;
}

.cl-how-doc {
    position: absolute;
    top: 16px;
    left: 50%;
    box-sizing: border-box;
    width: 287px;
    height: 272px;
    padding: 20px 27.7px 0;
    overflow: hidden;
    border-radius: 18.9px;
    background: var(--surface-primary);
    color: var(--text-color);
    transform: translateX(-50%);
}

.cl-how-doc::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    width: 300px;
    height: 79px;
    background: linear-gradient(to bottom, transparent, var(--cl-fill));
    transform: translateX(-50%);
}

.cl-how-vacancy {
    display: flex;
    flex-direction: column;
    gap: 6.3px;
    line-height: 1.1;
}

.cl-how-company {
    font-size: 15.75px;
    font-weight: var(--fw-medium);
    letter-spacing: -0.01em;
}

.cl-how-vacancy strong {
    font-size: 18.9px;
    font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
}

.cl-how-meta {
    display: inline-flex;
    align-items: center;
    gap: 6.3px;
    margin-top: 4px;
    color: color-mix(in srgb, var(--text-color) 50%, transparent);
    font-size: 12.6px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cl-how-meta i {
    width: 2.4px;
    height: 2.4px;
    border-radius: 50%;
    background: var(--text-color);
}

.cl-how-label {
    display: block;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 12.6px;
    font-weight: var(--fw-medium);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cl-how-reqs {
    display: flex;
    flex-direction: column;
    gap: 9.45px;
    margin-top: 9.45px;
    padding: 0;
    list-style: none;
}

.cl-how-reqs li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.6px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cl-how-reqs li::before,
.cl-how-facts li::before {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dot);
}

.cl-how-facts-title {
    position: absolute;
    top: 32px;
    right: 0;
    left: 0;
    color: var(--text-color);
    font-size: var(--fs-18);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
    text-align: center;
}

.cl-how-facts {
    position: absolute;
    top: 105px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.36px;
    width: 246px;
    padding: 0;
    list-style: none;
    transform: translateX(-50%);
}

.cl-how-facts li {
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    padding: 8.4px;
    border-radius: 10.1px;
    background: var(--surface-primary);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 9px;
    line-height: 11.35px;
    letter-spacing: -0.02em;
    opacity: 0.6;
}

.cl-how-facts li.is-main {
    flex: 0 0 auto;
    width: 300px;
    padding: 10.6px;
    border-radius: 12.7px;
    opacity: 1;
}

.cl-how-facts li span {
    flex: 1 1 auto;
}

.cl-how-facts li img {
    flex: 0 0 18px;
}

.cl-how-doc--letter {
    padding-top: 30px;
}

.cl-how-doc--letter::after {
    bottom: 0;
    height: 44px;
}

.cl-how-doc--letter p {
    font-size: 12.6px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cl-how-doc--letter mark {
    color: inherit;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.cl-mark-green { background: rgba(73, 161, 130, 0.5); }
.cl-mark-yellow { background: rgba(254, 216, 142, 0.5); }
.cl-mark-orange { background: rgba(255, 119, 51, 0.5); }

.cl-caption {
    max-width: 452px;
    margin: 4px auto 0;
    color: var(--text-muted);
    font-size: var(--fs-12);
    line-height: var(--lh-12);
    letter-spacing: var(--ls-12);
    text-align: center;
}

/* ---------- Таблица: разметка и стили comparison-table-* из candidates.css ---------- */

.cl-compare.comparison-table-wrap {
    margin: 32px auto 0;
}

/* У сервисов 5 строк вместо 7 на /candidates (grid-auto-flow: column требует точного числа строк). */
.cl-compare .comparison-table-grid {
    grid-template-rows: 40px repeat(5, minmax(80px, auto));
}

/* ---------- Уровни опыта ---------- */

.cl-levels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 800px;
    max-width: 100%;
    margin: 32px auto 0;
}

.cl-switcher {
    display: flex;
    width: 100%;
    background: var(--cl-fill);
}

.cl-switcher .segment-control-option {
    flex: 1 1 0;
    text-align: center;
}

.cl-level-panel {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: var(--cl-fill);
}

/* Панели табов лежат в одной ячейке грида: высота не прыгает, смена — плавная перекрёстная */
.cl-stage {
    display: grid;
    width: 100%;
}

.cl-landing .cl-stage > * {
    grid-area: 1 / 1;
    transition: opacity 0.6s ease, visibility 0s linear 0s;
}

.cl-landing .cl-stage > [hidden] {
    /* !important: на /cv_check действует .cv-check-page [hidden] { display: none !important } */
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

@media (prefers-reduced-motion: reduce) {
    .cl-landing .cl-stage > * {
        transition: none;
    }
}

.cl-plan-body[hidden] {
    display: none;
}

.cl-level-copy {
    display: flex;
    flex: 0 1 348px;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0 24px;
}

.cl-level-copy span {
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

.cl-level-copy strong {
    color: var(--text-color);
    font-size: var(--fs-18);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
}

.cl-mock-doc {
    position: relative;
    flex: 0 0 288px;
    width: 288px;
    height: 282px;
    overflow: hidden;
    border-radius: 18.9px;
    background: var(--surface-primary);
}

.cl-mock-doc::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 402px;
    height: 77px;
    background: linear-gradient(to bottom, transparent, var(--cl-fill));
    transform: translateX(-50%);
}

.cl-mock-doc-title {
    position: absolute;
    top: 25.2px;
    left: 34px;
    color: var(--text-color);
    font-size: 18.9px;
    font-weight: var(--fw-semibold);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.cl-mock-doc-body {
    position: absolute;
    top: 66px;
    left: 31.3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 233px;
}

.cl-skel-group,
.cl-skel-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cl-skel-group { gap: 6.3px; }
.cl-skel-list { gap: 9.45px; }

.cl-skel-row {
    display: flex;
    gap: 6.3px;
}

.cl-skel {
    display: block;
    width: 100%;
    height: 17.3px;
    background: linear-gradient(-58deg, color-mix(in srgb, var(--text-color) 11%, var(--surface-primary)) 0.5%, color-mix(in srgb, var(--text-color) 7%, var(--surface-primary)) 92%);
}

.cl-skel--lead { width: 190.6px; }
.cl-skel-row .cl-skel { width: 71.67px; }
.cl-skel--flat { background: color-mix(in srgb, var(--text-color) 11%, var(--surface-primary)); }

.cl-mock-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 10.6px 10.6px 10px;
    border-radius: 12.7px;
    background: var(--surface-primary);
    box-shadow: 0 1px 1.5px var(--shadow-dark);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: var(--fs-12);
    line-height: var(--lh-12);
    letter-spacing: var(--ls-17);
}

.cl-mock-chip img {
    flex: 0 0 18px;
}

/* ---------- Промо-блоки с крупным заголовком ---------- */

.cl-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 96px;
    overflow: hidden;
}

.cl-promo .cl-grid-bg {
    top: -476px;
}

.cl-promo--final .cl-grid-bg {
    top: -425px;
}

.cl-display {
    position: relative;
    z-index: 1;
    max-width: 898px;
    color: var(--text-color);
    font-size: 64px;
    font-weight: var(--fw-semibold);
    line-height: var(--lh-40);
    letter-spacing: var(--ls-40);
    text-align: center;
}

.cl-promo .cl-lead {
    position: relative;
    z-index: 1;
    margin-top: 12px;
}

.cl-cards--promo {
    padding-top: 32px;
}

.cl-promo:not(.cl-promo--final) .cl-cards--promo {
    padding-bottom: 32px;
}

.cl-final-action {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 0 32px;
}

.cl-final-action p {
    max-width: 452px;
    color: var(--text-muted);
    font-size: var(--fs-12);
    line-height: var(--lh-12);
    letter-spacing: var(--ls-12);
    text-align: center;
}

/* ---------- Всё для поиска работы (шаги) ---------- */

.cl-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* Десктоп: ширина как у сетки карточек выше (2 × 500px + 12px) */
    width: 100%;
    max-width: 1012px;
    margin: 32px auto 0;
}

.cl-steps-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.cl-steps-tab {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 107px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

.cl-steps-tab:hover,
.cl-steps-tab.active {
    opacity: 1;
}

.cl-steps-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: var(--surface-primary);
    font-size: var(--fs-18);
    letter-spacing: var(--ls-18);
    font-weight: var(--fw-medium);
    line-height: var(--lh-18);
}

.cl-steps-panel {
    display: flex;
    align-items: center;
    gap: 62px;
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
}

/* Рамка на контейнере, а не на панелях — при смене шага не тускнеет */
.cl-steps .cl-stage {
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    border-radius: 24px;
}

.cl-steps-copy {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-self: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px 24px;
}

.cl-steps-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
}

.cl-steps-text strong {
    color: var(--text-color);
    font-size: var(--fs-28);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-28);
    letter-spacing: var(--ls-28);
}

.cl-steps-text p {
    max-width: 440px;
    color: var(--text-color);
    font-size: var(--fs-18);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
}

.cl-steps-text a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    color: var(--accent-color);
    font-size: var(--fs-18);
    font-weight: var(--fw-medium);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
    text-decoration: none;
}

/* Заголовок и текст сверху, ссылка прижата к низу карточки */
.cl-steps-text a {
    margin-top: auto;
}

.cl-steps-image {
    display: block;
    flex: 0 0 400px;
    width: 400px;
    height: 400px;
    border-radius: 24px;
}

/* ---------- Отзывы (ленты из candidates.css) ---------- */

.cl-landing .cl-reviews > h2 {
    font-size: var(--fs-32);
    line-height: var(--lh-32);
    letter-spacing: var(--ls-32);
}

.cl-landing .cl-reviews > .candidate-testimonial-viewport:first-of-type {
    margin-top: 52px;
}

/* Оценка по верхнему краю: на одной линии с именем, а не по центру аватара */
.cl-reviews .candidate-testimonial-card header {
    align-items: flex-start;
}

.cl-reviews .candidate-rating {
    height: calc(var(--fs-16) * var(--lh-16));
}

/* Отступы между отзывами как между карточками лендинга — 12px */
.cl-landing .cl-reviews > .candidate-testimonial-viewport + .candidate-testimonial-viewport {
    margin-top: 12px;
}

.cl-reviews .candidate-testimonial-rail {
    --candidate-testimonial-loop-distance: calc(var(--cl-rail-count) * (var(--candidate-testimonial-card-width) + 12px));
    gap: 12px;
}

/* ---------- Подписка ---------- */

.cl-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
}

.cl-switcher--period {
    width: 560px;
    max-width: 100%;
}

.cl-plans {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 24px 16px;
}

.cl-plan {
    display: flex;
    flex: 0 1 352px;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    position: relative;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: var(--surface-primary);
}

/* PRO — инвертированная карточка (тёмная в светлой теме, светлая в тёмной), без теней и обводок */
.cl-plan--pro {
    background: var(--text-color);
}

.cl-plan--pro .cl-plan-head strong,
.cl-plan--pro .cl-plan-features li {
    color: var(--surface-primary);
}

.cl-plan--pro .cl-plan-head {
    border-bottom-color: color-mix(in srgb, var(--surface-primary) 14%, transparent);
}

.cl-plan--pro .cl-plan-price {
    color: var(--accent-color);
}

.cl-plan-badge {
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--accent-color);
    color: #FFFFFF;
    font-size: var(--fs-12);
    font-weight: var(--fw-medium);
    line-height: var(--lh-12);
    letter-spacing: var(--ls-17);
}

.cl-plan-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 6%, transparent);
}

.cl-plan-head strong {
    color: var(--text-color);
    font-size: var(--fs-18);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
}

.cl-plan-head span {
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

.cl-plan-body {
    flex: 1 1 auto;
}

.cl-plan-price {
    padding: 24px 0;
    color: var(--text-color);
    font-size: var(--fs-24);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-24);
    letter-spacing: var(--ls-24);
    text-align: center;
}

.cl-plan-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 0 0;
    list-style: none;
}

.cl-plan-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: var(--fs-16);
    letter-spacing: var(--ls-16);
    font-weight: var(--fw-medium);
    line-height: var(--lh-16);
}

.cl-plan-features img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cl-plan-features li:nth-child(3) img {
    padding: 0 1.1px;
    box-sizing: border-box;
}

.cl-plan-btn {
    width: 100%;
    margin-top: 24px;
}

/* ---------- Карточка-оценка в «Как работает» ---------- */

.cl-how-doc--score {
    padding-top: 24px;
}

.cl-how-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 6px;
    font-size: 44px;
    font-weight: var(--fw-semibold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.cl-how-score small {
    color: var(--text-muted);
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
}

.cl-how-bar {
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--cl-fill);
}

.cl-how-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-color);
}

.cl-how-doc--score .cl-how-label {
    margin-top: 20px;
}

.cl-how-doc--score .cl-how-label:first-child {
    margin-top: 0;
}

/* ---------- SEO-статья ---------- */

.cl-article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cl-article-body {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin-top: 32px;
    color: var(--text-color);
}

.cl-article.is-collapsed .cl-article-body {
    max-height: 560px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, #000 65%, transparent);
}

.cl-article-body h3 {
    margin: 32px 0 12px;
    color: var(--text-color);
    font-size: var(--fs-20);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-20);
    letter-spacing: var(--ls-20);
}

.cl-article-body h3:first-child {
    margin-top: 0;
}

.cl-article-body p,
.cl-article-body li {
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

.cl-article-body p {
    margin: 0 0 12px;
}

.cl-article-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.cl-article-body li + li {
    margin-top: 6px;
}

.cl-article-toggle {
    margin-top: 16px;
}

.cl-article-toggle[hidden] {
    display: none;
}

/* ---------- Статьи блога ---------- */

.cl-blog-all {
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    margin: 16px auto 0;
    color: var(--accent-color);
    font-size: var(--fs-16);
    letter-spacing: var(--ls-16);
    line-height: var(--lh-16);
    font-weight: var(--fw-medium);
    text-decoration: none;
}

/* ---------- Конструктор резюме (/resume-builder): шапка, форматы, примеры ---------- */

.rb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.rb-hero-note {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

.rb-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rb-spinner {
    display: none;
    animation: rb-spin 1s linear infinite;
}

.rb-upload.loading .rb-spinner {
    display: block;
}

.rb-upload.loading {
    cursor: progress;
}

@keyframes rb-spin {
    to { transform: rotate(360deg); }
}

/* Сцена шапки: зелёная плашка в цветах логотипа, листы резюме веером выезжают снизу */
/* Сцена: мягкий градиент из цветов логотипа, без обводки. Общая для шапки и блока форматов */
.rb-stage {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(77, 178, 136, 0.30), transparent 65%),
        radial-gradient(55% 75% at 100% 0%, rgba(254, 216, 142, 0.50), transparent 65%),
        radial-gradient(60% 70% at 100% 100%, rgba(255, 119, 51, 0.20), transparent 65%),
        radial-gradient(50% 60% at 0% 100%, rgba(77, 178, 136, 0.16), transparent 65%),
        var(--surface-primary);
    text-decoration: none;
}

.rb-stage-sheet {
    position: absolute;
    left: 50%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 24px 56px -24px rgba(0, 0, 0, 0.16);
}

.rb-hero-stage {
    max-width: 1200px;
    height: 520px;
    margin: 48px auto 0;
}

/* Низ сцены растворяется, лист как будто продолжается */
.rb-hero-stage::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 96px;
    background: linear-gradient(to bottom, transparent, var(--surface-primary));
    pointer-events: none;
}

.rb-hero-sheet {
    top: 56px;
    width: 460px;
    transform: translateX(-50%);
}

/* Карточки функций заходят на край листа: левые прижаты правым краем, правые — левым */
.rb-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: 18px;
    background: var(--surface-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 12px 32px -8px rgba(0, 0, 0, 0.10);
    color: var(--text-color);
    text-align: left;
    white-space: nowrap;
    animation: rb-float 7s ease-in-out infinite;
}

.rb-float-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--remote-bg);
    color: var(--remote-text);
}

.rb-float-icon--text {
    background: var(--remote-rf-bg);
    color: var(--remote-rf-text);
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
}

.rb-float-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rb-float-text b {
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-14);
}

.rb-float-text span {
    color: var(--text-muted);
    font-size: var(--fs-12);
    line-height: var(--lh-12);
}

/* Зелёная галочка «готово» */
.rb-float-check {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(77, 178, 136, 0.16);
}

.rb-float-check::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 7px;
    width: 4px;
    height: 8px;
    border: solid var(--accent-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rb-float--import {
    top: 132px;
    right: calc(50% + 170px);
}

.rb-float--lang {
    top: 340px;
    right: calc(50% + 190px);
    animation-delay: -3s;
}

.rb-float--formats {
    top: 96px;
    left: calc(50% + 170px);
    gap: 2px;
    padding: 4px;
    border-radius: 100px;
    background: var(--switcher-bg);
    font-size: var(--fs-14);
    font-weight: var(--fw-medium);
    animation-delay: -5s;
}

.rb-float--formats span {
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--text-muted);
}

.rb-float--formats .is-active {
    background: var(--surface-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
}

.rb-float--link {
    top: 290px;
    left: calc(50% + 190px);
    animation-delay: -2s;
}

@keyframes rb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .rb-float {
        animation: none;
    }
}

.rb-templates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.rb-template {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    background: var(--surface-primary);
}

.rb-template-stage {
    height: 400px;
    margin-bottom: 8px;
    border-radius: 20px;
}

.rb-template-stage .rb-stage-sheet {
    top: 40px;
    width: 72%;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
}

.rb-template-stage:hover .rb-stage-sheet {
    transform: translateX(-50%) translateY(-8px);
}

/* У ATS тёплая сторона градиента, чтобы два формата различались */
.rb-template--2 .rb-template-stage {
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(255, 119, 51, 0.24), transparent 65%),
        radial-gradient(55% 75% at 0% 0%, rgba(254, 216, 142, 0.55), transparent 65%),
        radial-gradient(60% 70% at 0% 100%, rgba(77, 178, 136, 0.14), transparent 65%),
        var(--surface-primary);
}

.rb-template h3 {
    color: var(--text-color);
    font-size: var(--fs-24);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-24);
    letter-spacing: var(--ls-24);
}

.rb-example-copy h3 {
    color: var(--text-color);
    font-size: var(--fs-20);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-20);
    letter-spacing: var(--ls-20);
}

.rb-template p {
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

.rb-template ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
    color: var(--text-color);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

/* Что сделано хорошо — короткий список с галочками */
.rb-example-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.rb-example-points li {
    position: relative;
    padding-left: 24px;
    color: var(--text-color);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

.rb-example-points li::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--accent-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Примеры — сетка карточек, кнопки прижаты к низу, чтобы в ряду стояли на одной линии */
.rb-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 32px;
}

.rb-example {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: var(--surface-primary);
}

.rb-example-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rb-example-meta {
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

.rb-example-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.rb-example-buttons {
    display: flex;
    gap: 8px;
}

.rb-example-buttons .btn {
    flex: 1 1 0;
    white-space: nowrap;
    text-decoration: none;
}

.rb-example-more {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: var(--accent-color);
    font-size: var(--fs-14);
    font-weight: var(--fw-medium);
    line-height: var(--lh-14);
    text-decoration: none;
}

/* ---------- Мобильная версия ---------- */

@media (max-width: 1279px) {
    .rb-hero-actions .btn {
        flex: 1 1 100%;
    }

    .rb-br {
        display: none;
    }

    .rb-hero-stage {
        height: 380px;
        margin-top: 24px;
        border-radius: 24px;
    }

    .rb-hero-stage::after {
        height: 64px;
    }

    .rb-hero-sheet {
        top: 72px;
        width: 260px;
        border-radius: 12px;
    }

    .rb-float--lang,
    .rb-float--link,
    .rb-float--formats {
        display: none;
    }

    .rb-float--import {
        top: auto;
        right: auto;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        animation: none;
    }

    .rb-templates {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .rb-template {
        padding: 16px;
    }

    .rb-template-stage {
        height: 300px;
    }

    .rb-template-stage .rb-stage-sheet {
        top: 24px;
        width: 80%;
    }

    .rb-template h3 {
        font-size: var(--fs-20);
        line-height: var(--lh-20);
        letter-spacing: var(--ls-20);
    }

    .rb-examples {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .rb-example {
        gap: 20px;
        padding: 16px;
        border-radius: 20px;
    }

    .rb-example-points {
        margin-top: 12px;
    }

    .cl-hero.cover-letter-header {
        padding: 16px 0 24px;
    }

    .cl-hero .cover-letter-title,
    .cl-h2,
    .cl-stats-title,
    .cl-landing .cl-reviews > h2 {
        font-size: var(--fs-24);
        letter-spacing: var(--ls-24);
        line-height: var(--lh-24);
    }

    .cl-hero br,
    .cl-lead br,
    .cl-card-text br,
    .cl-timeline-card br {
        display: none;
    }

    .cl-landing {
        margin-top: 40px;
    }

    .cl-landing > * + * {
        margin-top: 64px;
    }

    .cl-cards {
        grid-template-columns: 1fr;
    }

    .cl-card {
        gap: 16px;
        padding: 16px;
    }

    .cl-card > img {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .cl-stats-hero {
        padding: 24px 0;
    }

    .cl-stats-number {
        font-size: 64px;
    }

    .cl-stats-tag {
        max-width: 100%;
        box-sizing: border-box;
    }

    .cl-timeline {
        --cl-timeline-x: 6px;
        margin-top: 32px;
    }

    .cl-timeline-list {
        align-items: stretch;
        padding-left: 0;
    }

    .cl-timeline-item {
        gap: 16px;
        width: 100%;
    }

    .cl-timeline-card {
        flex: 1 1 auto;
        width: auto;
        padding: 12px 0;
    }

    .cl-how {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }

    /* Карточки и макеты на всю ширину контейнера */
    .cl-how-card {
        flex-basis: auto;
        width: 100%;
        padding: 0;
    }

    .cl-how-doc {
        width: calc(100% - 32px);
    }

    .cl-how-doc::after {
        width: calc(100% + 20px);
    }

    .cl-how-facts {
        width: calc(100% - 64px);
    }

    .cl-how-facts li.is-main {
        width: calc(100% + 40px);
    }

    .cl-mock-doc {
        width: 100%;
    }

    .cl-mock-doc-body {
        right: 31.3px;
        width: auto;
    }

    .cl-skel--lead {
        width: 82%;
    }

    .cl-skel-row .cl-skel {
        flex: 1 1 0;
        width: auto;
    }

    .cl-how-arrow {
        transform: rotate(90deg);
    }

    .cl-level-panel {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }

    .cl-mock-doc {
        flex: 0 0 auto;
    }

    .cl-level-copy {
        flex-basis: auto;
        align-self: stretch;
        padding: 4px 0 0;
    }

    .cl-promo {
        padding-top: 48px;
    }

    .cl-display {
        font-size: 36px;
    }

    .cl-steps {
        max-width: none;
    }

    .cl-steps-nav {
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .cl-steps-nav::-webkit-scrollbar {
        display: none;
    }

    .cl-steps-tab {
        min-width: 96px;
    }

    /* Мобилка: высота карточки по активному шагу — скрытые панели вне потока, без пустоты снизу */
    .cl-steps .cl-stage {
        position: relative;
        overflow: hidden;
    }

    .cl-landing .cl-steps .cl-stage > [hidden] {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
    }

    /* Мобилка: сначала текст со ссылкой, под ними картинка */
    .cl-steps-panel {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .cl-steps-copy {
        flex: 0 0 auto;
        padding: 4px 4px 0;
    }

    /* Ссылка сразу под текстом: отступ 16px задаёт gap */
    .cl-steps-text a {
        margin-top: 0;
    }

    .cl-steps-text strong {
        font-size: var(--fs-24);
        letter-spacing: var(--ls-24);
        line-height: var(--lh-24);
    }

    .cl-steps-text p,
    .cl-steps-text a {
        font-size: var(--fs-16);
        letter-spacing: var(--ls-16);
        line-height: var(--lh-16);
    }

    .cl-steps-image {
        flex-basis: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .cl-plans {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 0 0;
    }

    .cl-plan {
        flex-basis: auto;
        padding: 16px;
    }

    .cl-plan-badge {
        top: 14px;
        right: 16px;
    }

    .cl-article-body h3 {
        font-size: var(--fs-18);
        letter-spacing: var(--ls-18);
        line-height: var(--lh-18);
    }
}

/* ---------- Реклама (/ads, /promo) ---------- */

.mk-section-body {
    margin-top: 40px;
}

.cl-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mk-formats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mk-format {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: var(--surface-primary);
}

/* Макет страницы: контент — скелетоны, место баннера — фирменный градиент со свечением */
.mk-mock {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    aspect-ratio: 16 / 10;
    padding: 28px;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent-color) 28%, transparent), transparent 65%),
        var(--cl-fill);
}

.mk-mock-window {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 12px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--text-color) 10%, transparent);
}

.mk-mock-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-mock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mk-mock-cols {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
}

.mk-mock-main,
.mk-mock-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mk-mock-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    background: var(--surface-primary);
}

.mk-sk {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--text-color) 10%, transparent);
}

.mk-sk--logo { flex: 0 0 auto; width: 14px; height: 14px; margin-right: auto; border-radius: 50%; }
.mk-sk--title { width: 40%; height: 10px; border-radius: 5px; }
.mk-sk--w15 { width: 15%; }
.mk-sk--w30 { width: 30%; }
.mk-sk--w50 { width: 50%; }
.mk-sk--w70 { width: 70%; }
.mk-sk--w90 { width: 90%; }
.mk-sk--w100 { width: 100%; }

.mk-mock-banner {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-gradient);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 25%, transparent), 0 8px 24px color-mix(in srgb, var(--accent-color) 45%, transparent);
    color: #FFFFFF;
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-12);
    letter-spacing: var(--ls-12);
}

.mk-mock-banner--top {
    height: 26px;
    margin: -4px -4px 2px;
}

.mk-mock-banner--vacancy {
    height: 48px;
}

.mk-format strong {
    color: var(--text-color);
    font-size: var(--fs-18);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-18);
    letter-spacing: var(--ls-18);
}

.mk-format ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

.mk-hero .cover-letter-subtitle,
.mk-landing .cl-lead {
    max-width: 560px;
    text-wrap: balance;
}

.mk-hero .cover-letter-subtitle {
    margin-right: auto;
    margin-left: auto;
}

.mk-switcher {
    width: 400px;
}

.cl-plans[hidden] {
    display: none;
}

.mk-final-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 1279px) {
    .cl-cards--three,
    .mk-formats {
        grid-template-columns: 1fr;
    }

    .mk-section-body {
        margin-top: 32px;
    }

    .mk-format {
        padding: 16px;
    }

    .mk-mock {
        padding: 16px;
    }

    .mk-final-buttons .btn {
        flex: 1 1 100%;
    }
}
