/* Единый лендинг сервисных страниц (макет 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;
}

