/* ===== Industry page («Отрасль-эталон») ===== */

.page--industry {
    background: transparent;
}

/* —— Logos —— */
.page--industry .industry-trust {
    background: var(--color-white);
}

/* —— About / solution —— */
.page--industry .service-about__title {
    margin-bottom: 24px;
}

.page--industry .service-about__col,
.page--industry .service-about__col p {
    font-size: var(--text-md);
    line-height: 1.2;
    color: var(--color-text-secondary);
}

.industry-solution__text {
    grid-column: 2;
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Отрасли: межстрочный меньше — clamp на 3 строки, иначе кнопка не нужна */
.page--industry .service-about__clamp.is-clamped {
    max-height: calc(3 * 1.2em);
}

@media (min-width: 1280px) {
    .page--industry .service-about__title {
        margin-bottom: 24px;
    }

    .page--industry .service-about__intro {
        margin-bottom: 50px;
        gap: 20px;
    }
}

/* —— Services cards —— */
.page--industry .industry-services {
    background: var(--color-white);
}

.page--industry .industry-services__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 90px;
}

.page--industry .industry-services .section__title {
    margin-bottom: 0;
}

.page--industry .related-card {
    height: 215px;
    padding: 20px;
    border-bottom: none;
    transition:
        padding 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-radius 0.25s ease;
}

.page--industry .related-card__title {
    margin: 0;
    max-width: none;
    font-size: var(--text-lg);
    line-height: 1.2;
    transition: font-size 0.25s ease, line-height 0.25s ease;
}

.page--industry .related-card__cta {
    display: none;
    font-size: var(--text-lg);
}

.page--industry .related-card--featured {
    padding: 30px;
    background: linear-gradient(
        326.02deg,
        var(--color-green-soft) 12.15%,
        var(--color-white) 73.32%
    );
    border-radius: 0 0 10px 10px;
}

.page--industry .related-card--featured::before {
    display: none;
}

.page--industry .related-card--featured .related-card__title {
    margin-top: 0;
    font-size: var(--text-2xl);
    line-height: 1;
}

.page--industry .related-card--featured .related-card__cta {
    display: inline;
    opacity: 1;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .page--industry .related-card:hover,
    .page--industry .related-card:focus-visible {
        padding: 30px;
        background: linear-gradient(
            326.02deg,
            var(--color-green-soft) 12.15%,
            var(--color-white) 73.32%
        );
        border-radius: 0 0 10px 10px;
    }

    .page--industry .related-card:hover::before,
    .page--industry .related-card:focus-visible::before {
        opacity: 0;
    }

    .page--industry .related-card:hover .related-card__title,
    .page--industry .related-card:focus-visible .related-card__title {
        margin-top: 0;
        font-size: var(--text-2xl);
        line-height: 1;
    }

    .page--industry .related-card:hover .related-card__cta,
    .page--industry .related-card:focus-visible .related-card__cta {
        display: inline;
        opacity: 1;
        transform: none;
    }

    .page--industry .service-related__row:has(.related-card:hover) .related-card--featured:not(:hover),
    .page--industry .service-related__row:has(.related-card:focus-visible) .related-card--featured:not(:focus-visible) {
        padding: 20px;
        background: var(--color-white);
        border-radius: 0;
        box-shadow: none;
    }

    .page--industry .service-related__row:has(.related-card:hover) .related-card--featured:not(:hover) .related-card__title,
    .page--industry .service-related__row:has(.related-card:focus-visible) .related-card--featured:not(:focus-visible) .related-card__title {
        font-size: var(--text-lg);
        line-height: 1.2;
    }

    .page--industry .service-related__row:has(.related-card:hover) .related-card--featured:not(:hover) .related-card__cta,
    .page--industry .service-related__row:has(.related-card:focus-visible) .related-card--featured:not(:focus-visible) .related-card__cta {
        display: none;
    }
}

@media (min-width: 768px) {
    .page--industry .related-card {
        border-right: none;
    }
}

@media (min-width: 1280px) {
    .page--industry .service-related__row {
        gap: 15px;
    }

    .page--industry .related-card {
        border-right: none;
    }

    .page--industry .related-card--featured .related-card__title {
        font-size: var(--text-2xl);
    }
}

/* —— FAQ / form —— */
.page--industry .section--faq {
    background: var(--color-white);
}

.page--industry .section--lead-form {
    background: var(--color-bg-form);
}

@media (max-width: 767px) {
    .page--industry .industry-services__head {
        flex-wrap: wrap;
        margin-bottom: 40px;
    }

    .page--industry .related-card--featured .related-card__title {
        font-size: var(--text-xl);
    }
}
