/* ===== Service page («Услуга-эталон») ===== */

.page--service {
    background: transparent;
}

/* —— Hero —— */
.service-hero {
    padding: 36px 0 48px;
    background: var(--color-white);
}

.service-hero__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.service-hero__breadcrumbs {
    color: var(--color-gray-mid);
}

.service-hero__breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.service-hero__breadcrumbs a:hover {
    color: var(--color-black);
}

.service-hero__main {
    max-width: 900px;
}

.service-hero__title {
    color: var(--color-black);
}

.service-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 674px;
}

.service-hero__subtitle {
    margin: 0;
    max-width: 674px;
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
}

.service-hero__intro {
    margin: 0;
    max-width: 560px;
    font-size: var(--text-md);
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-hero-muted);
}

.service-hero__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
}

.service-hero__cta {
    min-width: 310px;
    min-height: 54px;
}

.service-hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.service-hero__metric {
    font-size: var(--text-xl);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .service-hero__footer {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        width: 100%;
    }

    .service-hero__metrics {
        margin-left: auto;
        justify-content: flex-end;
    }
}

@media (min-width: 1280px) {
    .service-hero {
        min-height: 620px;
        padding: 36px 0 56px;
        display: flex;
        align-items: stretch;
    }

    .service-hero__inner {
        flex: 1 1 auto;
        min-height: 528px;
    }

    .service-hero__footer {
        margin-top: auto;
        padding-top: 48px;
    }
}

/* —— Anchor nav —— */
.service-anchors {
    background: transparent;
}

.service-anchors__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin: 0;
    padding: 28px 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.service-anchors__list::-webkit-scrollbar {
    display: none;
}

.service-anchors__link {
    display: inline-block;
    white-space: nowrap;
    font-size: var(--text-md);
    line-height: 1;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
}

.service-anchors__link:hover,
.service-anchors__link.is-active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
    .service-anchors:has(.service-anchors__link:hover) .service-anchors__link.is-active:not(:hover) {
        text-decoration: none;
    }
}

@media (min-width: 1280px) {
    .service-anchors__list {
        justify-content: space-between;
        gap: 40px;
        min-height: 120px;
        padding: 0;
        align-items: center;
    }
}

/* —— About —— */
.service-about {
    background: var(--color-white);
}

.service-about__title {
    margin: 0 0 32px;
    font-size: var(--text-h2);
    line-height: 1.15;
    font-weight: 500;
    color: var(--color-black);
}

.service-about__intro {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.service-about__col,
.service-about__col p {
    font-size: var(--text-md);
    line-height: 1.45;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.service-about__col p {
    margin: 0;
}

.service-about__col p + p {
    margin-top: 1em;
}

.service-about__intro:not(:has(*)) {
    display: none;
}

/* Collapsible about: left column clamped, right hidden until «Читать подробнее» */
.service-about__clamp {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-about__clamp.is-clamped {
    max-height: calc(1.6em * 4);
}

.service-about__clamp.is-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.2em;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        var(--color-white)
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-about__col--hidden {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    filter: brightness(0.3) blur(2px);
    transform: translateY(12px);
    transition:
        max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s ease,
        filter 0.55s ease,
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-about__col--hidden.is-open {
    opacity: 1;
    filter: brightness(1) blur(0);
    transform: translateY(0);
}

.service-about__more {
    display: inline-block;
    margin: 14px 0 40px;
    padding: 0;
    border: none;
    border-bottom: 1px solid currentColor;
    background: none;
    font: inherit;
    font-size: var(--text-md);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-green);
    cursor: pointer;
}

.service-about__more:hover {
    color: var(--color-text);
}

.service-about__intro:has(+ .service-about__more) {
    margin-bottom: 0;
}

@media (min-width: 1280px) {
    .service-about__intro {
        grid-template-columns: 1fr 1fr;
        gap: 65px;
        margin-bottom: 56px;
    }
}

/* —— About accordion —— */
.service-acc {
    --acc-cols: 48px minmax(0, 1fr) 28px;
    counter-reset: acc;
    display: flex;
    flex-direction: column;
}

.service-acc__item {
    counter-increment: acc;
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.service-acc__item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        277deg,
        color-mix(in srgb, var(--color-green-soft) 70%, transparent),
        color-mix(in srgb, var(--color-bg-alt) 49%, transparent)
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-acc__item[open]:not(.is-closing)::before {
    opacity: 1;
}

.service-acc__summary,
.service-acc__body {
    display: grid;
    grid-template-columns: var(--acc-cols);
    column-gap: 16px;
    align-items: start;
}

.service-acc__summary {
    padding: 24px 12px;
    cursor: pointer;
    list-style: none;
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
    transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-acc__item[open]:not(.is-closing) .service-acc__summary {
    padding-bottom: 16px;
}

.service-acc__summary::-webkit-details-marker {
    display: none;
}

.service-acc__summary::marker {
    content: "";
}

.service-acc__num {
    grid-column: 1;
    font-size: var(--text-md);
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-gray-mid);
}

.service-acc__num::before {
    content: "[" counter(acc, decimal-leading-zero) "]";
}

.service-acc__label {
    grid-column: 2;
}

.service-acc__summary::after {
    content: "";
    grid-column: 3;
    justify-self: end;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-right: 2px solid var(--color-green);
    border-bottom: 2px solid var(--color-green);
    transform: rotate(-45deg);
    transform-origin: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-acc__item[open]:not(.is-closing) .service-acc__summary::after {
    transform: rotate(45deg);
    border-color: var(--color-black);
}

.service-acc__body {
    box-sizing: border-box;
    padding: 0 12px 32px;
    overflow: hidden;
}

.service-acc__list {
    grid-column: 2;
}

.service-acc__pricing {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 10px;
}

.service-acc__pricing-offer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-acc__price {
    margin: 0;
    font-size: var(--text-3xl);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
}

.service-acc__price-note,
.service-acc__price-disclaimer {
    margin: 0;
    color: var(--color-muted);
}

.service-acc__price-note {
    font-size: var(--text-sm);
    line-height: 1.1;
}

.service-acc__price-disclaimer,
.service-acc__price-disclaimer p {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.1;
}

.service-acc__price-disclaimer {
    min-width: 0;
}

.service-acc__cta {
    min-width: 0;
    width: 100%;
    text-align: center;
    font-size: var(--text-sm);
}

@media (min-width: 1280px) {
    .service-acc__pricing {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .service-acc__pricing-offer,
    .service-acc__price-disclaimer {
        flex: 1 1 0;
        max-width: 270px;
    }

    .service-acc__price {
        white-space: nowrap;
    }

    .service-acc__cta {
        width: 270px;
        flex: 0 0 270px;
    }
}

.task-table {
    display: block;
    grid-column: 2;
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.task-table tbody {
    display: block;
}

.task-table tr {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    transition: background-color 0.25s ease;
}

.task-table tr:first-child {
    border-top: none;
    padding-top: 0;
}

.task-table td {
    display: block;
    width: auto;
    padding: 0;
    border: none;
    font-size: var(--text-md);
    line-height: 1.5;
    vertical-align: top;
}

.task-table td:first-child {
    position: relative;
    padding-left: 22px;
    color: var(--color-gray-mid);
}

.task-table td:first-child::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 8px;
    height: 2px;
    background: var(--color-border-alt);
}

.task-table td + td {
    position: relative;
    padding-left: 34px;
    color: var(--color-heading);
    font-weight: 500;
    transition: transform 0.25s ease;
}

.task-table td + td::before {
    content: "→";
    position: absolute;
    top: 0;
    left: 0;
    font-size: var(--text-lg);
    line-height: 1.35;
    color: var(--color-green);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.task-table tr:hover {
    background: rgba(80, 189, 78, 0.06);
}

.task-table tr:hover td + td {
    transform: translateY(-3px);
}

.task-table tr:hover td + td::before {
    transform: translateX(3px) scale(1.15);
    filter: drop-shadow(0 0 5px rgba(80, 189, 78, 0.5));
}

@media (max-width: 768px) {
    .task-table tr {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .task-table td + td {
        padding-left: 22px;
    }
}

@media (min-width: 768px) {
    .service-acc {
        --acc-cols: minmax(72px, 22%) minmax(0, 1fr) 40px;
    }

    .service-acc__summary,
    .service-acc__body {
        column-gap: 24px;
    }
}

@media (min-width: 1280px) {
    .service-acc {
        --acc-cols: minmax(96px, 28%) minmax(0, 1fr) 48px;
    }

    .service-acc__summary {
        padding: 32px 24px;
    }

    .service-acc__item[open]:not(.is-closing) .service-acc__summary {
        padding-bottom: 18px;
    }

    .service-acc__body {
        padding: 0 24px 40px;
    }
}

/* —— Industries —— */
.service-industries__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.service-industries .section__title {
    margin-bottom: 0;
}

/* —— Cases (dump case-item accordion) —— */
.service-cases {
    background: var(--color-white);
}

.service-cases__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 38px;
}

.service-cases__title {
    margin: 0;
    font-size: var(--text-h2);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-black);
}

.service-cases .cases-grid {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.service-cases .case-item {
    --case-open-content: calc(min(var(--page-max-width), 100vw) - 454px);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 280px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    transition:
        flex-basis 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        padding 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.35s ease;
}

.service-cases .case-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(326deg, var(--color-green-soft) 12%, var(--color-white) 73%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}

.service-cases .case-item > * {
    position: relative;
    z-index: 1;
}

.service-cases .case-item.is-featured {
    flex: 1 1 560px;
    padding: 40px;
    border-color: var(--color-border-soft);
    box-shadow: 0 12px 28px rgba(23, 23, 23, 0.06);
}

.service-cases .case-item.is-featured::before {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .service-cases .cases-grid .case-item:hover {
        flex: 1 1 560px;
        padding: 40px;
        border-color: var(--color-border-soft);
        box-shadow: 0 12px 28px rgba(23, 23, 23, 0.06);
    }

    .service-cases .cases-grid .case-item:hover::before {
        opacity: 1;
    }

    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover) {
        flex: 0 0 280px;
        padding: 24px;
        border-color: var(--color-border);
        box-shadow: none;
    }

    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover)::before {
        opacity: 0;
    }
}

.service-cases .case-item__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.service-cases .case-item__logo {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    line-height: 1.2;
    color: var(--color-gray-mid);
}

.service-cases .case-item__logo--image {
    padding: 8px 14px;
}

.service-cases .case-item__logo--image img {
    display: block;
    height: 18px;
    width: auto;
    filter: grayscale(1) opacity(0.75);
}

.service-cases .case-item__title {
    margin: 0;
    margin-top: auto;
    font-size: var(--text-md);
    line-height: 1.3;
    font-weight: 500;
    color: var(--color-heading);
    text-wrap: balance;
    transition:
        font-size 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        margin 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-cases .case-item.is-featured .case-item__title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: var(--text-xl);
}

.service-cases .case-item__cols {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@keyframes case-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.service-cases .case-item.is-featured .case-item__cols,
.service-cases .case-item.is-featured .case-item__title {
    width: var(--case-open-content);
}

.service-cases .case-item.is-featured .case-item__cols {
    display: grid;
    animation: case-reveal 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}

.service-cases .case-item.is-featured .case-item__link {
    display: inline-flex;
    animation: case-reveal 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.22s both;
}

.service-cases .case-item__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.service-cases .case-item__link {
    display: none;
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-green);
    text-decoration: none;
}

.service-cases .case-item__link:hover {
    color: var(--color-text);
}

.service-cases .case-item.is-featured .case-item__footer {
    justify-content: space-between;
}

.service-cases .case-item__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-cases .case-item__label {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-heading);
}

.service-cases .case-item__label::after {
    content: ":";
}

.service-cases .case-item__text {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.55;
    color: var(--color-gray-mid);
    text-wrap: pretty;
}

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

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

@media (hover: hover) and (pointer: fine) {
    .service-cases .cases-grid .case-item:hover .case-item__title {
        margin-top: 0;
        margin-bottom: 24px;
        font-size: var(--text-xl);
    }

    .service-cases .cases-grid .case-item:hover .case-item__cols,
    .service-cases .cases-grid .case-item:hover .case-item__title {
        width: var(--case-open-content);
    }

    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover) .case-item__cols,
    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover) .case-item__title {
        width: auto;
    }

    .service-cases .cases-grid .case-item:hover .case-item__cols {
        display: grid;
        animation: case-reveal 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
    }

    .service-cases .cases-grid .case-item:hover .case-item__link {
        display: inline-flex;
        animation: case-reveal 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.22s both;
    }

    .service-cases .cases-grid .case-item:hover .case-item__footer {
        justify-content: space-between;
    }

    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover) .case-item__title {
        margin-top: auto;
        margin-bottom: 0;
        font-size: var(--text-md);
    }

    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover) .case-item__cols {
        display: none;
    }

    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover) .case-item__footer {
        justify-content: flex-end;
    }

    .service-cases .cases-grid:has(.case-item:hover) .case-item.is-featured:not(:hover) .case-item__link {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-cases .case-item,
    .service-cases .case-item::before,
    .service-cases .case-item__title {
        transition: none;
    }

    .service-cases .case-item.is-featured .case-item__cols,
    .service-cases .case-item.is-featured .case-item__link,
    .service-cases .cases-grid .case-item:hover .case-item__cols,
    .service-cases .cases-grid .case-item:hover .case-item__link {
        animation: none;
    }
}

@media (max-width: 900px) {
    .service-cases .cases-grid {
        flex-direction: column;
    }

    .service-cases .case-item,
    .service-cases .case-item.is-featured {
        flex-basis: auto;
        padding: 24px;
    }

    .service-cases .case-item__cols,
    .service-cases .case-item.is-featured .case-item__cols,
    .service-cases .case-item__title,
    .service-cases .case-item.is-featured .case-item__title {
        width: auto;
    }

    .service-cases .case-item__title,
    .service-cases .case-item.is-featured .case-item__title {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: var(--text-lg);
    }

    .service-cases .case-item__cols,
    .service-cases .case-item.is-featured .case-item__cols {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-cases .case-item__footer,
    .service-cases .case-item.is-featured .case-item__footer {
        display: flex;
        justify-content: space-between;
    }

    .service-cases .case-item__link,
    .service-cases .case-item.is-featured .case-item__link {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .service-cases__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.service-process .process-step__text,
.service-process .process-step.is-active .process-step__text,
.service-process .process-step:hover .process-step__text,
.service-process .process-timeline:has(.process-step:hover) .process-step.is-active:not(:hover) .process-step__text {
    font-size: var(--text-sm);
    transform: none;
}

/* —— Trust metrics —— */
.service-trust {
    background: var(--color-white);
}

.service-trust .section__title {
    margin-bottom: 48px;
}

.service-trust__grid {
    display: grid;
    gap: 24px;
}

.service-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    text-align: center;
}

.service-trust__value {
    margin: 0;
    font-size: var(--text-h2);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-green);
}

.service-trust__text {
    margin: 0;
    max-width: 304px;
    font-size: var(--text-md);
    line-height: 19px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .service-trust__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        justify-items: center;
    }
}

@media (min-width: 1280px) {
    .service-trust__grid {
        gap: 60px;
    }
}

/* —— Technology tags —— */
.service-tech {
    background: var(--color-bg-alt);
}

.service-tech__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 50px;
}

.service-tech__header .section__title {
    margin: 0;
}

.service-tech__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.service-tech__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px;
    min-height: 53px;
    background: var(--color-white);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 65px;
    font-size: var(--text-lg);
    line-height: 1.5;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.service-tech__tag:hover,
.service-tech__tag:focus-visible {
    background: var(--color-green);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 2px 6px 12px rgba(0, 0, 0, 0.12);
}

/* —— Related services —— */
.service-related {
    background: var(--color-bg-alt);
}

.service-related .section__title {
    margin-bottom: 50px;
}

.service-related__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 220px;
    padding: 24px 20px;
    overflow: hidden;
    background: var(--color-white);
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
}

.related-card::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;
}

.related-card > * {
    position: relative;
    z-index: 1;
}

.related-card__title {
    margin: 56px 0 0;
    max-width: calc(100% - 64px);
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 500;
    transition: margin-top 0.35s ease, max-width 0.35s ease;
}

.related-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.related-card__cta {
    font-size: var(--text-md);
    line-height: 1;
    font-weight: 500;
    text-decoration: underline;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.related-card:hover,
.related-card:focus-visible {
    z-index: 1;
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
}

.related-card:hover::before,
.related-card:focus-visible::before {
    opacity: 1;
}

.related-card:hover .related-card__title,
.related-card:focus-visible .related-card__title {
    margin-top: 0;
    max-width: 100%;
}

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

@media (min-width: 768px) {
    .service-related__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-card {
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }

    .related-card:nth-child(2n) {
        border-right: none;
    }
}

@media (min-width: 1280px) {
    .service-related__row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .related-card:nth-child(2n) {
        border-right: 1px solid var(--color-border);
    }

    .related-card:last-child {
        border-right: none;
    }

    .related-card__title {
        font-size: var(--text-lg);
    }
}

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

/* —— Lead form / FAQ —— */
.page--service .section--lead-form {
    background: var(--color-bg-alt);
}

.page--service .section--faq {
    background: var(--color-white);
}

@media (max-width: 767px) {
    .service-hero__cta {
        width: 100%;
        min-width: 0;
    }

    .service-hero__metric {
        white-space: normal;
    }

}

/* —— Category services mesh in hero —— */
.service-hero--mesh {
    position: relative;
}

.service-hero__mesh {
    display: none;
}

@media (min-width: 1024px) {
    .service-hero--mesh {
        overflow: hidden;
    }

    .service-hero--mesh .service-hero__inner {
        position: relative;
        z-index: 1;
    }

    .service-hero--mesh .service-hero__main {
        max-width: min(640px, 50%);
    }

    .service-hero--mesh .service-hero__actions {
        max-width: min(520px, 46%);
    }

    .service-hero__mesh {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .service-hero__mesh .hero-mesh {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        transform: none;
    }

    .service-hero__mesh-canvas {
        z-index: 0;
        -webkit-mask-image:
            linear-gradient(
                90deg,
                transparent 0%,
                transparent 38%,
                rgba(0, 0, 0, 0.35) 50%,
                #000 62%,
                #000 94%,
                transparent 100%
            ),
            linear-gradient(
                180deg,
                transparent 0%,
                #000 10%,
                #000 90%,
                transparent 100%
            );
        mask-image:
            linear-gradient(
                90deg,
                transparent 0%,
                transparent 38%,
                rgba(0, 0, 0, 0.35) 50%,
                #000 62%,
                #000 94%,
                transparent 100%
            ),
            linear-gradient(
                180deg,
                transparent 0%,
                #000 10%,
                #000 90%,
                transparent 100%
            );
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .service-hero__mesh-nodes {
        z-index: 2;
    }

    .service-hero__mesh .hero-mesh__node {
        width: 128px;
        pointer-events: none;
        visibility: hidden;
    }

    .service-hero__mesh .hero-mesh__dot {
        overflow: hidden;
    }

    .service-hero__mesh .hero-mesh__icon {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .service-hero__mesh.is-mesh-ready .hero-mesh__node {
        visibility: visible;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .service-hero__mesh .hero-mesh__node {
        width: 52px;
    }
}
