.services-section {
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    background-image: url('../assets/images/section4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
 * Figma's title/list positioning below is all absolute px offsets sized
 * for a ~1408px-wide frame. Without a max-width, a wide viewport just
 * stretches .services-section and leaves the whole composition pinned to
 * the left edge, dumping the extra width out as bare background photo on
 * the right (reads as oversized/lopsided vs. the tightly-cropped Figma
 * frame). Capping + centering it here renders byte-identical to before
 * on any viewport up to 1440px, and only kicks in beyond that.
 */
.services-section__inner {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: inherit;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 48px;
    padding: 60px 24px 60px 48px;
}

.services-section__line {
    position: absolute;
    left: 29%;
    top: 30%;
    height: 31%;
    width: auto;
    opacity: 0.8;
    pointer-events: none;
}

.services-section__title {
    flex: 1 1 50%;
    box-sizing: border-box;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 66px;
    line-height: 108%;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

.services-section__title-line {
    display: block;
}

.services-section__highlight {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: rgba(252, 169, 58, 1);
}

.services-section__list {
    flex: 1 1 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.services-section__item {
    box-sizing: border-box;
    flex-shrink: 0;
    padding: 40px 44px;
    border: 1px solid rgba(252, 169, 58, 1);
    border-radius: 32px;
    background: rgba(0, 0, 0, 0.01);
}

.services-section__item p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

@media (max-width: 1024px) {
    .services-section__inner {
        flex-direction: column;
        padding: 160px 32px 96px;
    }

    .services-section__title {
        font-size: 56px;
    }
}

@media (max-width: 600px) {
    /* min-height:100vh (set above) forces this section to at least fill
       the screen even when the title + cards don't need that much
       height on a narrow/short viewport — auto lets it size to content
       instead of leaving a chunk of empty background photo. */
    .services-section {
        min-height: auto;
    }

    .services-section__inner {
        gap: 24px;
        padding: 48px 20px 48px;
    }

    .services-section__title {
        font-size: 28px;
    }

    .services-section__list {
        gap: 16px;
    }

    .services-section__item {
        padding: 24px 20px;
    }

    .services-section__item p {
        font-size: 15px;
    }
}
