/* ===== Hero ===== */
.hero--home {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 589px;
    padding: 80px 0 40px;
    background: var(--color-white);
    overflow: hidden;
}

.hero--home .hero__media,
.hero--home .hero__overlay,
.hero--home .hero__gradient {
    display: none;
}

.hero__decor {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(68%, 980px);
    pointer-events: none;
    overflow: hidden;
}

.hero__pattern {
    position: absolute;
    right: -4%;
    top: 50%;
    width: 100%;
    max-width: 980px;
    transform: translateY(-50%);
}

.hero__pattern-art {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right center;
}

.hero--home .hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 449px;
    padding-top: 0;
    padding-bottom: 0;
}

.hero--home .hero__content {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    max-width: 790px;
}

.hero--home .hero__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.hero--home .hero__title {
    margin: 0;
    max-width: 790px;
    font-size: var(--text-display);
    line-height: 0.9;
    font-weight: 500;
    color: var(--color-black);
    letter-spacing: -2px;
    margin-inline-start: -0.07em;
}

.hero--home .hero__subtitle {
    margin: 0;
    max-width: 575px;
    font-size: var(--text-md);
    line-height: 1.3;
    font-weight: 400;
    color: var(--color-hero-muted);
}

.hero--home .hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.hero--home .hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.hero__iso {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 28px;
    font-weight: 500;
    color: var(--color-black);
    text-align: right;
}

/* ===== Trust marquee ===== */
.section--trust {
    background: var(--color-white);
    overflow: hidden;
    padding-block: 20px;
}

.trust-marquee__filter {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.trust-marquee__filter feFlood {
    flood-color: var(--color-trust-logo);
}

.trust-marquee {
    position: relative;
    width: 100%;
    max-width: none;
    height: 32px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-marquee__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    height: 100%;
    animation: trust-scroll 36s linear infinite;
}

.trust-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 80px;
    padding-right: 80px;
}

.trust-marquee__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 32px;
    padding: 0 8px;
    opacity: 0.85;
    transition: opacity 0.35s ease;
}

.trust-marquee__item:hover {
    opacity: 1;
}

.trust-marquee__logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-marquee__logo img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

.trust-marquee__logo-color {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trust-marquee__item:hover .trust-marquee__logo-color {
    opacity: 1;
}

.trust-marquee__logo-overlay {
    position: absolute;
    inset: -1px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: url(#trust-logo-silhouette);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.trust-marquee__item:hover .trust-marquee__logo-overlay {
    opacity: 0;
}

.trust-marquee__item span {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}

@keyframes trust-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .trust-marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .trust-marquee__group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 48px;
        padding-right: 0;
    }

    .trust-marquee__group[aria-hidden="true"] {
        display: none;
    }
}

/* ===== Services carousel ===== */
.section--services-home {
    position: relative;
    background: transparent;
    overflow: hidden;
}

.section--services-home__decor,
.section--services-home::before,
.section--services-home::after {
    display: none;
}

.services-home {
    position: relative;
    z-index: 1;
}

.services-home__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 110px;
}

.services-home__intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 675px;
}

.services-home__title {
    margin: 0;
    font-size: var(--text-h2);
    line-height: 1;
    font-weight: 500;
    color: var(--color-white);
}

.services-home__lead {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-white);
}

.services-home__controls {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-btn::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-left: 2.4px solid currentColor;
    border-bottom: 2.4px solid currentColor;
    transform: rotate(45deg);
}

.carousel-btn[data-carousel-next]::before {
    transform: rotate(-135deg);
}

.carousel-btn--light {
    color: #E0E0E3;
}

.carousel-btn--light:hover {
    color: var(--color-white);
}

.carousel-divider--light {
    background: #E7E5EF;
}

.services-carousel {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 40px;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-fade {
    --carousel-fade: var(--page-padding-x);
    position: relative;
    margin-inline: calc(-1 * var(--carousel-fade));
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 var(--carousel-fade),
        #000 calc(100% - var(--carousel-fade)),
        transparent
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 var(--carousel-fade),
        #000 calc(100% - var(--carousel-fade)),
        transparent
    );
}

.carousel-fade > [data-carousel] {
    padding-inline: var(--carousel-fade);
}

.carousel-fade.is-start {
    mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - var(--carousel-fade)),
        transparent
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - var(--carousel-fade)),
        transparent
    );
}

.carousel-fade.is-end {
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 var(--carousel-fade),
        #000
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 var(--carousel-fade),
        #000
    );
}

.carousel-fade.is-start.is-end {
    mask-image: none;
    -webkit-mask-image: none;
}

.carousel-fade--start-clear {
    margin-inline: 0;
    mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - var(--carousel-fade)),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - var(--carousel-fade)),
        transparent 100%
    );
}

.carousel-fade--start-clear > [data-carousel] {
    padding-inline: 0;
    scroll-padding-inline: 0;
}

.carousel-fade--start-clear.is-end {
    mask-image: none;
    -webkit-mask-image: none;
}

/* Shared carousel card: home, services catalog, industries catalog */
.service-slide {
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 350px;
    width: 350px;
    height: 250px;
    padding: 20px;
    overflow: hidden;
    background: var(--color-white);
    color: var(--color-black);
    text-decoration: none;
    transition: box-shadow 0.25s ease;
}

.service-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(326.02deg, var(--color-green-soft) 12.15%, var(--color-white) 73.32%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.service-slide > * {
    position: relative;
    z-index: 1;
}

.service-slide.is-featured {
    flex-basis: 517px;
    width: 517px;
    height: 380px;
    padding: 40px;
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
}

.service-slide.is-featured::before,
.service-slide:hover::before {
    opacity: 1;
}

.service-slide:hover {
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.15);
}

.section--services-home .services-carousel,
.catalog-category .services-carousel {
    height: 420px;
}

.services-carousel .service-slide {
    transition: flex-basis 0.3s ease, width 0.3s ease, height 0.3s ease, padding 0.3s ease, box-shadow 0.25s ease;
}

.services-carousel.is-revealing .service-slide:not(.is-featured) {
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .services-carousel .service-slide:hover {
        flex-basis: 517px;
        width: 517px;
        height: 380px;
        padding: 40px;
        border-radius: 0 0 10px 10px;
    }

    .services-carousel .service-slide:hover .service-slide__num {
        font-size: var(--text-3xl);
        line-height: 1.08;
    }

    .services-carousel .service-slide:hover .service-slide__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        font-size: var(--text-3xl);
        line-height: 1.15;
    }

    .services-carousel .service-slide:hover .service-slide__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .services-carousel .service-slide:hover .service-slide__more {
        display: inline;
    }

    .services-carousel:has(.service-slide:hover) .service-slide.is-featured:not(:hover) {
        flex-basis: 350px;
        width: 350px;
        height: 250px;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .services-carousel:has(.service-slide:hover) .service-slide.is-featured:not(:hover)::before {
        opacity: 0;
    }

    .services-carousel:has(.service-slide:hover) .service-slide.is-featured:not(:hover) .service-slide__num {
        font-size: var(--text-xl);
        line-height: 1.2;
    }

    .services-carousel:has(.service-slide:hover) .service-slide.is-featured:not(:hover) .service-slide__title {
        font-size: var(--text-lg);
        line-height: 1.2;
    }

    .services-carousel:has(.service-slide:hover) .service-slide.is-featured:not(:hover) .service-slide__text,
    .services-carousel:has(.service-slide:hover) .service-slide.is-featured:not(:hover) .service-slide__more {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-carousel .service-slide {
        transition: none;
    }
}

.service-slide__num {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    font-size: var(--text-xl);
    line-height: 1.2;
    font-weight: 300;
    color: var(--color-black);
}

.service-slide.is-featured .service-slide__num {
    font-size: var(--text-3xl);
    line-height: 1.08;
}

.service-slide__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin-top: auto;
    overflow: hidden;
}

.service-slide__title {
    margin: 0;
    width: 100%;
    flex-shrink: 0;
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
}

.service-slide.is-featured .service-slide__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: var(--text-3xl);
    line-height: 1.15;
}

.service-slide__text {
    display: none;
    margin: 0;
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
    overflow: hidden;
    font-size: var(--text-md);
    line-height: 1.25;
    color: var(--color-black);
    overflow-wrap: anywhere;
}

.service-slide.is-featured .service-slide__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.service-slide__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: 20px;
    flex-shrink: 0;
}

.service-slide__more {
    display: none;
    font-size: var(--text-lg);
    line-height: 1;
    font-weight: 500;
    text-decoration: underline;
}

.service-slide.is-featured .service-slide__more {
    display: inline;
}

.service-slide__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-black);
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    margin-left: auto;
}

.service-slide__arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-black);
    border-top: 2px solid var(--color-black);
    transform: rotate(45deg);
}

/* ===== Industries ===== */
.section--industries-home {
    background: var(--color-white);
}

.section__header--industries {
    align-items: flex-start;
}

.section__header--industries .section__lead {
    margin-top: 24px;
    margin-bottom: 0;
}

.industries-list {
    display: flex;
    flex-direction: column;
}

.industries-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 39px;
    min-height: 110px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease, min-height 0.35s ease;
}

.industries-row.is-active {
    align-items: flex-start;
    min-height: 176px;
    padding: 30px;
    background: linear-gradient(277.41deg, var(--color-green-soft) 27%, rgba(243, 243, 243, 0.49) 66.71%);
    border-bottom-color: transparent;
}

.industries-row.is-active .industries-row__action {
    align-self: center;
}

.industries-row__num {
    flex-shrink: 0;
    width: 40px;
    font-size: var(--text-md);
    line-height: 1;
    font-weight: 400;
    color: var(--color-black);
}

.industries-row__main {
    width: 512px;
    flex: 0 0 512px;
    margin-left: 50px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    transition: gap 0.35s ease;
}

.industries-row.is-active .industries-row__main {
    gap: 20px;
}

.industries-row__title {
    margin: 0;
    font-size: var(--text-xl);
    line-height: 1;
    font-weight: 500;
    color: var(--color-black);
}

.industries-row__text {
    display: grid;
    grid-template-rows: 0fr;
    max-width: 440px;
    opacity: 0;
    transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

.industries-row__text p {
    min-height: 0;
    overflow: hidden;
    margin: 0;
    max-width: 440px;
    font-size: var(--text-md);
    line-height: 1.1;
    color: var(--color-black);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.industries-row__value {
    color: var(--color-hero-muted);
}

.industries-row.is-active .industries-row__text {
    grid-template-rows: 1fr;
    opacity: 1;
}

.industries-row__action {
    position: relative;
    flex: 0 0 128px;
    width: 128px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.industries-row__cta {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: var(--color-white);
    border-radius: var(--radius-pill);
    font-size: var(--text-md);
    line-height: 19px;
    font-weight: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.industries-row.is-active .industries-row__cta {
    opacity: 1;
    pointer-events: auto;
}

.industries-row__chevron {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 12px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.industries-row__chevron::after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-green);
    border-bottom: 2px solid var(--color-green);
    transform: rotate(-45deg);
}

.industries-row.is-active .industries-row__chevron {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .industries-row,
    .industries-row__main,
    .industries-row__text,
    .industries-row__cta,
    .industries-row__chevron {
        transition: none;
    }
}

/* ===== Industry / principle tiles ===== */
.industry-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.industry-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    aspect-ratio: 1;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
    background: color-mix(in srgb, var(--color-white) 15%, transparent);
    backdrop-filter: blur(12px);
    color: var(--color-white);
    text-decoration: none;
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        backdrop-filter 0.35s ease;
}

/* Распорка между номером и текстом: сжимается при hover — текст плавно поднимается */
.industry-tile::before {
    content: "";
    order: 2;
    flex: 1 1 0;
    min-height: 0;
    pointer-events: none;
    transition: flex-grow 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.industry-tile__num {
    order: 1;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: var(--text-sm);
    line-height: 1;
    font-weight: 500;
}

.industry-tile__body {
    order: 3;
    min-width: 0;
    flex-shrink: 0;
}

.industry-tile__title {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.2;
    font-weight: 500;
}

.industry-tile__intro {
    display: -webkit-box;
    max-height: 0;
    margin: 0;
    font-size: var(--text-xs);
    line-height: 1.3;
    font-weight: 400;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    transition:
        max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        margin-top 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.3s ease,
        transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 0.45s;
}

@media (hover: hover) and (pointer: fine) {
    .industry-tile:hover,
    .industry-tile:focus-visible {
        background: var(--color-green);
        color: var(--color-white);
        backdrop-filter: blur(0);
    }

    .industry-tile:hover::before,
    .industry-tile:focus-visible::before {
        flex-grow: 0;
    }

    .industry-tile:hover .industry-tile__intro,
    .industry-tile:focus-visible .industry-tile__intro {
        max-height: 12em;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        -webkit-line-clamp: 8;
        transition-delay: 0s;
    }
}

@media (hover: none) {
    .industry-tile:focus-visible {
        background: var(--color-green);
        color: var(--color-white);
        backdrop-filter: blur(0);
    }

    .industry-tile:focus-visible::before {
        flex-grow: 0;
    }

    .industry-tile__intro {
        max-height: 5.2em;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        -webkit-line-clamp: 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .industry-tile,
    .industry-tile::before,
    .industry-tile__intro {
        transition: none;
    }
}

@media (max-width: 390px) {
    .industry-tile__intro {
        display: block;
        max-height: none;
        overflow: visible;
        text-overflow: clip;
        -webkit-line-clamp: unset;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
    }
}

@media (min-width: 768px) {
    .industry-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .industry-tile {
        padding: 18px;
    }
}

@media (min-width: 1280px) {
    .industry-tiles {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }

    .industry-tile__num {
        font-size: var(--text-md);
    }
}

/* ===== Dark CTA ===== */
.section--dark-cta {
    position: relative;
    background: transparent;
    overflow: hidden;
}

.dark-cta__decor {
    display: none;
}

.dark-cta__pattern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(-22deg);
}

.dark-cta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 445px) minmax(0, 790px);
    gap: 48px 130px;
    align-items: start;
}

.dark-cta__title {
    margin: 0 0 24px;
    font-size: var(--text-h2);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.dark-cta__lead {
    margin: 0;
    font-size: var(--text-md);
    line-height: 25px;
    color: var(--color-muted);
}

.form--dark-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 35px 36px;
    background: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.form--dark-cta > input[type="hidden"] {
    display: none;
}

.form--dark-cta .form__fields--stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form--dark-cta .form__input {
    width: 100%;
    height: 70px;
    padding: 0 28px;
    border: none;
    border-bottom: 1px solid var(--color-border-input);
    border-radius: 0;
    background: var(--color-white);
    font-family: var(--font-family);
    font-size: var(--text-lg);
    line-height: 24px;
    color: var(--color-black);
}

.form--dark-cta .form__input::placeholder {
    color: var(--color-gray-mid);
}

.form--dark-cta .form__row--phone {
    position: relative;
}

.form--dark-cta .form__phone-prefix {
    display: none;
}

.form--dark-cta .form__submit {
    width: 100%;
    min-height: 68px;
    font-size: var(--text-lg);
    line-height: 1;
    font-weight: 500;
    border-radius: var(--radius-pill);
}

.form--dark-cta .form__consent {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: var(--text-md);
    line-height: 1.1;
    color: var(--color-gray-mid);
}

.form--dark-cta .form__consent a {
    color: inherit;
    text-decoration: underline;
}

.form--dark-cta .form__consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

/* ===== About ===== */
.section--about-home {
    background: var(--color-white);
}

.about-home {
    display: grid;
    grid-template-columns: minmax(240px, 446px) minmax(0, 905px);
    gap: 37px 48px;
    align-items: start;
}

.about-home__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 481px;
}

.about-home__intro .section__title {
    margin-bottom: 24px;
}

.about-home__lead {
    margin: 0;
    max-width: 446px;
    font-size: var(--text-md);
    line-height: 1.4;
    color: var(--color-hero-muted);
}

.about-home__link {
    margin-top: auto;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.about-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    min-height: 233px;
    padding: 20px;
    background: var(--color-white);
    filter: drop-shadow(0 5px 24px rgba(0, 0, 0, 0.15));
    transition: filter 0.35s ease;
}

.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        339.06deg,
        var(--color-green-soft) 4.43%,
        var(--color-white) 50.07%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.about-card:hover {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.about-card:hover::before {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .about-card,
    .about-card::before {
        transition: none;
    }
}

.about-card__title {
    margin: 0;
    font-size: var(--text-xl);
    line-height: 1;
    font-weight: 500;
    color: var(--color-black);
}

.about-card__text {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-black);
}

/* ===== Process ===== */
.section--path-dark {
    position: relative;
    background: transparent;
    overflow: hidden;
}

.section--path-dark__decor {
    display: none;
}

.section--path-dark .container {
    position: relative;
    z-index: 1;
}

.section--path-dark .section__title {
    margin-bottom: 141px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    position: relative;
}

.process-timeline::before {
    content: "";
    position: absolute;
    top: 15px;
    /* Центр первого кружка (31px), дальше — до правого края экрана */
    left: 15px;
    width: calc(50% + 50vw - 15px);
    height: 1px;
    background: var(--color-white);
}

.process-timeline .process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    padding-top: 48px;
    cursor: pointer;
}

.process-timeline .process-step__num {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 30px;
    border-radius: var(--radius-pill);
    background: var(--color-white);
    font-size: var(--text-md);
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-black);
    z-index: 1;
    transition: width 0.25s ease, height 0.25s ease, top 0.25s ease, background 0.25s ease, font-size 0.25s ease, font-weight 0.25s ease, color 0.25s ease;
}

.process-timeline .process-step.is-active .process-step__num,
.process-timeline .process-step:hover .process-step__num {
    width: 46px;
    height: 45px;
    top: -14px;
    background: var(--color-green);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-white);
}

.process-timeline .process-step__title {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-white);
    transition: font-size 0.25s ease, transform 0.25s ease;
}

.process-timeline .process-step__text {
    margin: 0;
    max-width: 230px;
    font-size: var(--text-sm);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-white);
    transition: font-size 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .process-timeline:has(.process-step:hover) .process-step.is-active:not(:hover) .process-step__num {
        width: 31px;
        height: 30px;
        top: 0;
        background: var(--color-white);
        font-size: var(--text-md);
        font-weight: 400;
        color: var(--color-black);
    }

    .process-timeline:has(.process-step:hover) .process-step.is-active:not(:hover) .process-step__title {
        font-size: var(--text-lg);
    }

    .process-timeline:has(.process-step:hover) .process-step.is-active:not(:hover) .process-step__text {
        font-size: var(--text-md);
    }
}

/* ===== Calculator ===== */
.section--calculator {
    background: var(--color-white);
}

.section--calculator .section__lead {
    margin-bottom: 70px;
}

.calculator {
    display: flex;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    min-height: 520px;
    gap: 0;
    background: transparent;
}

.calculator__col {
    display: flex;
    flex-direction: column;
    flex: 0 0 320px;
    width: 320px;
    min-width: 0;
    gap: 30px;
    padding: 30px;
    background: var(--color-white);
}

.calculator__col[hidden],
.calculator__result[hidden] {
    display: none;
}

.calculator__col + .calculator__col,
.calculator__col + .calculator__result {
    border-left: 1px solid var(--color-border);
}

.calculator__col[data-calc-step]:not([data-calc-step="1"]),
.calculator__result {
    animation: calculator-step-in 0.4s ease;
}

@keyframes calculator-step-in {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .calculator__col[data-calc-step]:not([data-calc-step="1"]),
    .calculator__result {
        animation: none;
    }
}

.calculator__step-title {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1;
    font-weight: 500;
    color: var(--color-black);
}

.calculator__options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calculator-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 0;
    cursor: pointer;
}

.calculator-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calculator-option__radio {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: transparent;
    position: relative;
}

.calculator-option__input:checked + .calculator-option__radio {
    background: radial-gradient(50% 50% at 50% 50%, var(--color-green) 55.77%, var(--color-white) 77.88%);
}

.calculator-option__label {
    font-size: var(--text-md);
    line-height: 1.1;
    color: var(--color-black);
}

.calculator__result {
    display: flex;
    flex-direction: column;
    flex: 0 0 404px;
    width: 404px;
    min-width: 0;
    gap: 20px;
    padding: 30px;
    background-color: var(--color-white);
    background-image: linear-gradient(
        335.01deg,
        var(--color-green-soft) -3.34%,
        var(--color-white) 75%
    );
    border-radius: 0 0 10px 10px;
}

.calculator-result__eyebrow {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1;
    font-weight: 500;
    color: var(--color-black);
}

.calculator-result__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-result__title {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
}

.calculator-result__price {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1;
    font-weight: 500;
    color: var(--color-black);
}

.calculator-result__note {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.1;
    color: var(--color-muted);
}

.form--calculator {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.form--calculator .form__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form--calculator > input[type="hidden"] {
    display: none;
}

.form--calculator .form__input {
    width: 100%;
    height: 45px;
    padding: 0 28px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    font-family: var(--font-family);
    font-size: var(--text-md);
    line-height: 1.1;
    color: var(--color-black);
}

.form--calculator .form__input::placeholder {
    color: var(--color-gray-mid);
}

.form--calculator .form__submit {
    width: 100%;
    min-height: 45px;
    font-size: var(--text-md);
    line-height: 1.1;
    font-weight: 400;
    border-radius: var(--radius-pill);
}

.form--calculator .form__consent-row {
    gap: 8px;
    margin-top: 0;
}

.form--calculator .form__consent {
    font-size: var(--text-xs);
    line-height: 16px;
    color: var(--color-muted);
}

/* ===== Testimonials ===== */
.section--testimonials {
    background: var(--color-white);
}

/* Слева по контейнеру (как заголовок), справа — вылет в padding для peeks */
.section--testimonials .carousel-fade {
    margin-left: 0;
    margin-right: calc(-1 * var(--carousel-fade));
}

.section--testimonials .carousel-fade > [data-carousel] {
    padding-left: 0;
    padding-right: var(--carousel-fade);
    scroll-padding-inline: 0 var(--carousel-fade);
}

.testimonials-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 412px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 492px;
    padding: 22px 24px;
    background: var(--color-white);
    gap: 34px;
}

.testimonial-card--client {
    position: relative;
    gap: 24px;
    padding: 28px 24px;
    border-radius: var(--radius-review);
}

.testimonial-card--client::before,
.testimonial-card--client::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-border-alt) 16%,
        var(--color-border-alt) 84%,
        transparent
    );
}

.testimonial-card--client::before {
    left: 0;
}

.testimonial-card--client::after {
    right: 0;
}

.testimonial-card__head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.testimonial-card__photo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 32px;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.testimonial-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 64px;
    max-width: 240px;
}

.testimonial-card__logo img {
    display: block;
    max-width: 240px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.testimonial-card__name {
    margin: 0 0 5px;
    font-size: var(--text-xl);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
}

.testimonial-card--client .testimonial-card__name {
    margin: 0;
}

.testimonial-card__role {
    margin: 0;
    font-size: var(--text-md);
    line-height: 22px;
    color: var(--color-hero-muted);
}

.testimonial-card__text {
    margin: 0;
    flex-grow: 1;
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--color-black);
}

.testimonial-card__text p {
    margin: 0 0 0.75em;
}

.testimonial-card__text p:last-child {
    margin-bottom: 0;
}

.testimonial-card--client .testimonial-card__text {
    line-height: 1.5;
}

.testimonial-card__date {
    margin-top: auto;
    font-size: var(--text-md);
    line-height: 22px;
    color: var(--color-hero-muted);
}

/* ===== Lead form section ===== */
.section--lead-form {
    background: var(--color-bg-form);
}

.section--lead-form .section__title {
    margin-bottom: 12px;
}

.section--lead-form .section__lead {
    margin-bottom: 32px;
    font-size: var(--text-md);
    line-height: 1.4;
}

.section--lead-form .form--discuss {
    max-width: none;
}

/* ===== FAQ on home ===== */
.section--faq {
    background: var(--color-white);
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
    .hero__decor {
        width: min(50%, 600px);
        opacity: 0.85;
    }

    .dark-cta {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-home {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-home__intro {
        min-height: 0;
    }

    .about-home__link {
        margin-top: 32px;
    }

    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator {
        width: 100%;
        flex-wrap: wrap;
    }

    .calculator__col,
    .calculator__result {
        flex: 1 1 calc(50% - 1px);
        width: auto;
    }

    .calculator__col + .calculator__col,
    .calculator__col + .calculator__result {
        border-left: 0;
    }

    .services-home__header {
        margin-bottom: 48px;
    }

    .process-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .process-timeline::before {
        display: none;
    }

    .section--path-dark .section__title {
        margin-bottom: 56px;
    }
}

@media (max-width: 768px) {
    .hero--home {
        min-height: auto;
        padding: 48px 0 32px;
    }

    .hero__decor {
        display: none;
    }

    .hero--home .hero__inner {
        min-height: 0;
    }

    .hero--home .hero__content {
        flex: 0 0 auto;
        align-items: flex-start;
    }

    .hero--home .hero__title {
        letter-spacing: -1px;
    }

    .hero--home .hero__bottom {
        gap: 20px;
    }

    .hero--home .hero__subtitle {
        margin: 0;
    }

    .hero--home .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .hero--home .hero__cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero--home .hero__cta .btn {
        width: 100%;
        margin-left: 0;
    }

    .hero__iso {
        text-align: left;
    }

    .services-home__header {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .services-home__lead {
        font-size: var(--text-md);
        line-height: 1.3;
    }

    .services-home__controls {
        position: static;
        justify-content: flex-end;
        margin-bottom: 16px;
    }

    .services-carousel {
        align-items: stretch;
        gap: 0;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .section--services-home .services-carousel,
    .catalog-category .services-carousel {
        height: auto;
    }

    /* Одна карточка на экран: без fade-peek и без бокового padding трека */
    .carousel-fade {
        margin-inline: 0;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .carousel-fade > [data-carousel] {
        padding-inline: 0;
        scroll-padding-inline: 0;
    }

    .service-slide,
    .service-slide.is-featured,
    .services-carousel .service-slide:hover {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 250px;
        padding: 24px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .service-slide.is-featured .service-slide__title {
        font-size: var(--text-2xl);
    }

    .industries-row,
    .industries-row.is-active {
        gap: 16px;
        padding: 20px 4px 20px 0;
        min-height: 0;
    }

    .industries-row__main {
        flex: 1 1 auto;
        width: auto;
        margin-left: 0;
    }

    .industries-row__action {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        overflow: visible;
    }

    .industries-row.is-active .industries-row__action {
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        height: 40px;
    }

    .industries-row__chevron {
        padding-right: 2px;
        box-sizing: content-box;
    }

    .industries-row__cta {
        height: 40px;
    }

    .industries-row.is-active .industries-row__cta {
        position: relative;
        inset: auto;
        height: 40px;
        padding: 0 14px;
        font-size: var(--text-sm);
        white-space: nowrap;
    }

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

    .about-card {
        min-height: auto;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-left: 24px;
        border-left: 1px solid var(--color-white);
    }

    .process-timeline .process-step {
        padding-top: 0;
        padding-left: 20px;
    }

    .process-timeline .process-step__num,
    .process-timeline .process-step:hover .process-step__num,
    .process-timeline .process-step.is-active .process-step__num {
        position: absolute;
        left: -40px;
        top: 0;
        width: 32px;
        height: 32px;
        font-size: var(--text-sm);
    }

    .process-timeline .process-step.is-active .process-step__num,
    .process-timeline .process-step:hover .process-step__num {
        background: var(--color-green);
        color: var(--color-white);
        font-weight: 500;
    }

    .process-timeline .process-step.is-active .process-step__title,
    .process-timeline .process-step:hover .process-step__title {
        font-size: var(--text-lg);
    }

    .process-timeline .process-step.is-active .process-step__text,
    .process-timeline .process-step:hover .process-step__text {
        font-size: var(--text-md);
    }

    .calculator {
        width: 100%;
        flex-wrap: wrap;
    }

    .calculator__col,
    .calculator__result {
        flex: 1 1 100%;
        width: auto;
    }

    .testimonial-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        scroll-snap-stop: always;
    }

    .section--testimonials .carousel-fade {
        margin-right: 0;
    }

    .section--testimonials .carousel-fade > [data-carousel] {
        padding-right: 0;
        scroll-padding-inline: 0;
    }

    .testimonials-carousel {
        gap: 0;
    }

    .form--dark-cta {
        padding: 24px;
    }

    .section__header--industries {
        margin-bottom: 40px;
    }
}

/* ===== Shared: services accordion (service page) ===== */
.services-accordion {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 420px;
}

.services-accordion__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 200px;
    flex-shrink: 0;
    padding: 18px 27px;
    background: var(--color-bg-alt);
    border: 1px solid transparent;
    color: var(--color-black);
    text-decoration: none;
    transition: flex-grow 0.35s ease, background 0.25s ease, color 0.25s ease, width 0.35s ease;
    overflow: hidden;
    cursor: pointer;
}

.services-accordion__item.is-active {
    flex-grow: 1;
    width: auto;
    width: 315px;
    text-wrap-mode: wrap;
    padding: 30px 27px;
    background: var(--color-green);
    border-color: #D4D4D4;
    color: var(--color-white);
}

.services-accordion__title {
    margin: 0;
    font-size: var(--text-xl);
    line-height: 29px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.services-accordion__body {
    display: none;
    flex-direction: column;
    gap: 24px;
    margin-top: auto;
}

.services-accordion__item.is-active .services-accordion__body {
    display: flex;
}

.services-accordion__text {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 29px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.services-accordion__more {
    align-self: flex-end;
}

/* ===== Shared: case cards ===== */
.cases-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.case-home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-height: 574px;
    padding: 30px;
    background: var(--color-bg-alt);
}

.case-home-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-black);
    border-radius: 100px;
    overflow: hidden;
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 600;
    text-align: center;
}

.case-home-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-home-card__title {
    margin: 0;
    font-size: var(--text-xl);
    line-height: 29px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

.case-home-card__text {
    margin: 0;
    flex-grow: 1;
    font-size: var(--text-lg);
    line-height: 1.4;
    color: var(--color-muted);
    white-space: pre-line;
}

.case-home-card__btn {
    width: 100%;
    min-height: 53px;
    font-size: var(--text-lg);
    line-height: 22px;
    font-weight: 500;
}

/* ===== Shared: process steps (inner pages) ===== */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 60px;
}

.process-steps .process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
    width: 230px;
    text-align: center;
}

.process-steps .process-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid #C6C5C3;
    font-size: var(--text-lg);
    line-height: 1.1;
    font-weight: 700;
    color: var(--color-black);
    background: transparent;
    border-radius: 0;
    position: static;
}

.process-steps .process-step__title {
    margin: 0 0 10px;
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-black);
}

.process-steps .process-step__text {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-black);
    max-width: none;
}

.process-steps__arrow {
    display: block;
    width: 14px;
    height: 14px;
    margin-top: 23px;
    flex-shrink: 0;
    border-right: 2px solid var(--color-green);
    border-top: 2px solid var(--color-green);
    transform: rotate(45deg);
}

@media (max-width: 1280px) {
    .services-accordion {
        height: auto;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .services-accordion__item {
        min-height: 320px;
    }

    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 16px;
    }

    .process-steps__arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-accordion {
        flex-direction: column;
        height: auto;
    }

    .services-accordion__item,
    .services-accordion__item.is-active {
        width: 100%;
        min-width: 0;
        min-height: auto;
    }

    .services-accordion__body {
        display: none;
    }

    .services-accordion__item.is-active .services-accordion__body {
        display: flex;
        margin-top: 24px;
    }

    .cases-home-grid {
        grid-template-columns: 1fr;
    }

    .case-home-card {
        min-height: auto;
    }
}
