/*
 * Services Hero
 * Figma: desktop 814:5644, tablet 851:9339, mobile 851:10587
 * Breakpoints: mobile ≤767, tablet 768–1199, large ≥1200
 */

.services-hero {
    --sh-pad-y: 120px;
    --sh-min-h: 700px;
    --sh-eyebrow-size: 16px;
    --sh-title-size: 40px;
    --sh-subtitle-size: 16px;
    --sh-content-max: 740px;

    position: relative;
    overflow: hidden;
    background: var(--black);
    min-height: var(--sh-min-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-block: var(--sh-pad-y);
    box-sizing: border-box;
}

.services-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.services-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.services-hero__bg-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.services-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: var(--akdev-content-inner-pad-x);
}

.services-hero__eyebrow {
    margin: 0 0 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: var(--sh-eyebrow-size);
    line-height: 1.5;
    color: var(--white);
}

.services-hero__lead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: var(--sh-content-max, 700px);
    margin-bottom: 40px;
}

.services-hero__lead:last-child {
    margin-bottom: 0;
}

.services-hero__title {
    margin: 0;
    max-width: 100%;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: var(--sh-title-size);
    line-height: 1.177;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 62%, #060606 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@supports not (background-clip: text) {
    .services-hero__title {
        color: var(--white);
        background: none;
    }
}

.services-hero__subtitle {
    margin: 0;
    max-width: 100%;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: var(--sh-subtitle-size);
    line-height: 1.3;
    color: var(--white);
    text-align: center;
}

.services-hero__placeholder {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.services-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.services-hero__cta.primary-button {
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

/* Tablet 768–1199 — кнопка по ширине текста, не на всю колонку */
@media (min-width: 768px) {
    .services-hero {
        --sh-title-size: 56px;
        --sh-subtitle-size: 18px;
    }

    .services-hero__actions {
        align-items: center;
        width: auto;
    }

    .services-hero__cta.primary-button {
        width: auto;
    }
}

/* Large desktop ≥1200 */
@media (min-width: 1200px) {
    .services-hero {
        --sh-title-size: 60px;
    }
}
