.page-hero {
    width: var(--container);
    margin: 64px auto 0;
    padding-bottom: 62px;
    border-bottom: 1px solid var(--line);
}

.title-row {
    display: flex;
    align-items: center;
    gap: 32px;
}

h1 {
    margin: 0;
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.tags {
    display: flex;
    gap: 8px;
}

.tags span {
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    color: var(--grey);
    background: rgba(127, 117, 130, 0.1);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
}

.tags i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.tags span:nth-child(2) i {
    background: var(--violet);
}

.tags span:nth-child(3) i {
    background: var(--cyan);
}

.intro-section {
    width: var(--container);
    margin: 63px auto 0;
}

.intro-section {
    display: grid;
    grid-template-columns: 1019px 372px;
    gap: 145px;
}

.intro-copy p {
    margin: 0 0 32px;
    color: #000;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.intro-side p {
    margin: 0 0 72px;
    color: #000;
    font-size: 16px;
    line-height: 1.4;
}

.service-catalog-link {
    position: relative;
    z-index: 4;
    width: 100%;
    min-height: 48px;
    margin-top: 22px;
    padding: 8px 8px 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, .94);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.service-catalog-link i {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    font-size: 18px;
    font-style: normal;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}

.it-support-side__content .service-catalog-link {
    width: min(520px, 76%);
}

.integration-side > .service-catalog-link {
    width: min(520px, 68%);
}

.accounting-side > .service-catalog-link {
    width: min(520px, 66%);
}

.service-catalog-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .42);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .service-catalog-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, .16);
        border-color: rgba(255, 255, 255, .34);
        box-shadow: none;
        transform: translateY(-1px);
    }

    .service-catalog-link:hover i {
        background: rgba(255, 255, 255, .18);
        transform: translateX(3px);
    }
}

.services-page small.service-important-label,
.services-page small.service-price-label,
.services-page small.service-section-label {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid var(--service-heading-label-border, rgba(168, 11, 235, 0.2));
    border-radius: 10px;
    color: #a80beb;
    background: linear-gradient(135deg, #c74dfc 0%, #ff6a00 100%);
    background-repeat: no-repeat;
    background-origin: content-box;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    box-shadow: 0 6px 16px rgba(172, 17, 255, 0.14);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.services-page :is(
    .stages-section,
    .service-price-notice,
    .updates-risk,
    .onec-signal,
    .onec-result,
    .bitrix24-notice,
    .accounting-notice,
    .it-support-process,
    .it-support-price-section,
    .development-solution-card,
    .development-order-callout,
    .development-project-stages
) {
    --service-heading-label-border: rgba(255, 255, 255, 0.3);
}

.services-page .service-price-notice {
    align-items: center;
}

/* Consistent corners for service-page promotional panels and media. */
.services-page :where(
    .accounting-side,
    .bitrix24-side,
    .integration-side,
    .marking-side,
    .updates-side,
    .onec-side,
    .it-support-side
) {
    border-radius: 32px;
    overflow: hidden;
}

.services-page :where(
    .intro-side > img,
    .intro-side__content > img,
    .intro-photos img
) {
    border-radius: 24px;
}

.intro-card {
    min-height: 124px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 32px 116px 32px 32px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 40%, #DA16FF 0 15%, transparent 36%),
        radial-gradient(circle at 94% 62%, #AC11FF 0 14%, transparent 34%),
        var(--black);
    border-radius: 32px;
    overflow: hidden;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.intro-card::after {
    position: absolute;
    right: 34px;
    bottom: 20px;
    width: 70px;
    height: 56px;
    content: "";
    border: 10px solid var(--indigo);
    border-radius: 50% 50% 45% 45%;
    opacity: 0.85;
}

.intro-photos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 70px;
    overflow: hidden;
    border-radius: 32px;
}

.intro-photos img {
    width: 100%;
    height: 553px;
    object-fit: cover;
}

.services-list-section,
.price-section {
    width: var(--container);
    margin: 112px auto 0;
}

.split-heading {
    display: grid;
    grid-template-columns: 501px 1fr;
    column-gap: 207px;
    row-gap: 0;
    align-items: start;
}

.split-heading h2 {
    margin: 0;
    color: var(--black);
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.split-heading p {
    grid-column: 2;
    margin: 0 0 24px;
    color: #000;
    font-size: 20px;
    line-height: 1.4;
}

.site-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 92px;
}

.site-service-card {
    min-height: 441px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    color: var(--black);
    background: #fff;
    border: 1px solid #F0ECF2;
    border-radius: 32px;
    transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.site-service-card.is-featured,
.site-service-card:hover,
.site-service-card:focus-within {
    color: #fff;
    background: #390894 url("../../img/services/background-service-card.png") center / 100% 100% no-repeat;
    border-color: transparent;
    box-shadow: 0 24px 48px rgba(127, 10, 173, .18);
    transform: translateY(-2px);
}

.site-service-card img,
.site-service-card h3,
.site-service-card p { position: relative; z-index: 1; }

.site-service-card:nth-child(1).is-featured .service-icon img,
.site-service-card:nth-child(1):hover .service-icon img,
.site-service-card:nth-child(1):focus-within .service-icon img { content: url("../../img/services/site-2.png"); }

.site-service-card:nth-child(2).is-featured .service-icon img,
.site-service-card:nth-child(2):hover .service-icon img,
.site-service-card:nth-child(2):focus-within .service-icon img { content: url("../../img/services/store-2.png"); }

.site-service-card:nth-child(3).is-featured .service-icon img,
.site-service-card:nth-child(3):hover .service-icon img,
.site-service-card:nth-child(3):focus-within .service-icon img { content: url("../../img/services/landing-page-2.png"); }

.site-service-card:nth-child(4).is-featured .service-icon img,
.site-service-card:nth-child(4):hover .service-icon img,
.site-service-card:nth-child(4):focus-within .service-icon img { content: url("../../img/services/portfolio-2.png"); }

.service-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border-radius: 16px;
    overflow: hidden;
}

.service-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.site-service-card small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 84px;
    color: var(--grey);
    font-size: 14px;
    font-weight: 500;
}

.site-service-card small::before {
    width: 6px;
    height: 6px;
    content: "";
    background: var(--orange);
    border-radius: 50%;
}

.site-service-card.is-featured small,
.site-service-card:hover small,
.site-service-card:focus-within small {
    color: #fff;
}

.site-service-card h3 {
    margin: 20px 0 16px;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
}

.site-service-card p {
    margin: 0 0 30px;
    color: var(--grey);
    font-size: 16px;
    line-height: 1.4;
}

.site-service-card.is-featured p,
.site-service-card:hover p,
.site-service-card:focus-within p {
    color: #fff;
}

.site-service-card a {
    width: 143px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.site-service-card a:hover,
.site-service-card a:focus-visible {
    color: #fff;
    background: var(--brand-gradient-action-hover);
    border-color: transparent;
    box-shadow: var(--brand-shadow);
    transform: translateY(-1px);
}

.site-service-card:hover a,
.site-service-card:focus-within a,
.site-service-card.is-featured a {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .72);
}

.site-service-card:hover a:hover,
.site-service-card:focus-within a:focus-visible,
.site-service-card.is-featured a:hover {
    background: #fff;
    color: var(--black);
    border-color: #fff;
}

.stages-section {
    width: var(--wide);
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 80px;
    align-items: start;
    margin: 112px auto 0;
    padding: 80px;
    color: #fff;
    background: var(--brand-gradient-panel);
    border-radius: 32px;
    overflow: hidden;
}

.stages-section::before {
    display: none;
}

.stages-bg-word {
    display: none;
}

.stages-left {
    position: relative;
    z-index: 1;
}

.stages-left small {
    display: block;
    margin-bottom: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.stages-left h2 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: 54px;
    font-weight: 700;
    line-height: .96;
    letter-spacing: -.06em;
}

.stages-left p {
    max-width: 580px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
    line-height: 1.35;
}

.stages-list {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 12px;
}

.stage {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 8px;
    padding: 24px;
    background: rgba(24, 9, 29, .42);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.stage-title {
    display: contents;
}

.stage-title span {
    width: 44px;
    height: 44px;
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7411a8, #fd5b03);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
}

.stage h3 {
    grid-column: 2;
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.stage p {
    grid-column: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
    .stage:hover {
        background: rgba(24, 9, 29, .56);
        border-color: rgba(255, 255, 255, .22);
        box-shadow: 0 18px 36px rgba(24, 9, 29, .18);
        transform: translateY(-2px);
    }
}

.price-section {
    margin-top: 112px;
}

.price-section .split-heading {
    margin-bottom: 92px;
}

.price-section .split-heading h2 {
    width: 760px;
}

.price-table {
    width: 100%;
    border-top: 1px solid rgba(127, 117, 130, 0.18);
    border-left: 1px solid rgba(127, 117, 130, 0.18);
    background: rgba(255, 255, 255, 0.2);
}

.services-page :where(
    .price-table,
    .accounting-table,
    .integration-table,
    .marking-table,
    .updates-table,
    .it-support-price-table
) {
    border-radius: 24px;
    overflow: hidden;
}

.price-row {
    display: grid;
    grid-template-columns: 244px 244px 480px 1fr;
}

.price-row > div {
    min-height: 132px;
    padding: 32px;
    border-right: 1px solid rgba(127, 117, 130, 0.18);
    border-bottom: 1px solid rgba(127, 117, 130, 0.18);
    color: #000;
    font-size: 16px;
    line-height: 1.4;
}

.price-head > div {
    min-height: 74px;
    color: var(--black);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.price-row .price {
    color: var(--violet);
    font-weight: 500;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .28), transparent 28%),
        linear-gradient(135deg, var(--indigo), var(--violet) 66%, var(--orange) 125%);
    border: 1px solid rgba(57, 8, 148, .12);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(57, 8, 148, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card-icon svg {
    width: 29px;
    height: 29px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
    article:hover > .service-card-icon {
        box-shadow: 0 18px 36px rgba(57, 8, 148, .26);
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card-icon {
        transition: none;
    }
}

@media (max-width: 1500px) {
    :root {
        --container: min(1200px, calc(100vw - 64px));
        --wide: min(1280px, calc(100vw - 64px));
    }

    .intro-section {
        grid-template-columns: 1fr 320px;
        gap: 48px;
    }

    .split-heading,
    .stages-section {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

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

    .price-row {
        grid-template-columns: 170px 170px 1fr 1fr;
    }

}

@media (max-width: 1279px) {
    .it-support-side__content .service-catalog-link,
    .integration-side > .service-catalog-link,
    .accounting-side > .service-catalog-link {
        width: 72%;
    }

    .stages-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 48px;
    }

    .stages-left h2 {
        font-size: 42px;
    }

    .stages-left p {
        font-size: 19px;
    }
}

@media (max-width: 900px) {
    :root {
        --container: calc(100vw - 32px);
        --wide: calc(100vw - 32px);
    }

    .title-row,
    .tags {
        flex-wrap: wrap;
        display: flex;
        justify-content: flex-start;
    }

    h1 {
        font-size: 42px;
    }

    .intro-section,
    .split-heading,
    .stages-section {
        grid-template-columns: 1fr;
    }

    .split-heading p {
        grid-column: auto;
    }

    .intro-copy p {
        font-size: 24px;
    }

    .intro-photos,
    .site-services {
        grid-template-columns: 1fr;
    }

    .intro-photos img {
        height: auto;
    }

    .site-service-card {
        min-height: 360px;
    }

    .stages-section {
        padding: 48px;
    }

    .stages-bg-word {
        position: static;
        grid-row: 3;
        font-size: 48px;
    }

    .price-section .split-heading h2 {
        width: 100%;
    }

    .price-table {
        overflow-x: auto;
    }

    .price-row {
        min-width: 900px;
    }

}

@media (max-width: 767px) {
    .it-support-side__content .service-catalog-link,
    .integration-side > .service-catalog-link,
    .accounting-side > .service-catalog-link {
        width: 100%;
    }

    .service-catalog-link {
        margin-top: 18px;
    }
}

@media (max-width: 640px) {
    .services-page small.service-important-label,
    .services-page small.service-price-label,
    .services-page small.service-section-label {
        padding: 6px 12px;
        border-radius: 9px;
        font-size: 16px;
    }

    :root {
        --container: calc(100vw - 24px);
        --wide: calc(100vw - 24px);
    }

    body {
        overflow-x: hidden;
    }

    .page-hero {
        margin-top: 40px;
        padding-bottom: 36px;
    }

    .tags {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }

    h1 {
        font-size: 36px;
        line-height: 1.04;
    }

    .title-row {
        gap: 18px;
    }

    .intro-section {
        margin-top: 40px;
        gap: 28px;
    }

    .intro-copy p {
        font-size: 22px;
        line-height: 1.25;
    }

    .intro-side {
        gap: 18px;
    }

    .services-page :where(
        .accounting-side,
        .bitrix24-side,
        .integration-side,
        .marking-side,
        .updates-side,
        .onec-side,
        .it-support-side
    ) {
        border-radius: 22px;
    }

    .services-page :where(
        .intro-side > img,
        .intro-side__content > img,
        .intro-photos img,
        .price-table,
        .accounting-table,
        .integration-table,
        .marking-table,
        .updates-table,
        .it-support-price-table
    ) {
        border-radius: 18px;
    }

    .intro-card {
        width: 100%;
        min-height: 88px;
        border-radius: 18px;
    }

    .intro-photos {
        gap: 8px;
    }

    .intro-photos img {
        min-height: 180px;
        border-radius: 18px;
        object-fit: cover;
    }

    .split-heading {
        gap: 24px;
        margin-top: 56px;
    }

    .split-heading h2,
    .price-section .split-heading h2 {
        font-size: 32px;
    }

    .site-services {
        gap: 12px;
    }

    .site-service-card {
        min-height: 330px;
        padding: 22px;
        border-radius: 18px;
    }

    .site-service-card h3 {
        font-size: 26px;
    }

    .site-service-card .detail-button {
        width: 100%;
        height: 52px;
    }

    .stages-section {
        width: var(--container);
        margin-top: 56px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .stages-left h2 {
        font-size: 34px;
    }

    .stages-left p,
    .stage p {
        font-size: 15px;
    }

    .stage {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px 14px;
        padding: 18px;
        border-radius: 18px;
    }

    .stage h3 {
        font-size: 20px;
    }

    .stage p {
        font-size: 14px;
    }

    .stage-title span {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 12px;
    }

    .stages-bg-word {
        font-size: 42px;
    }

    .price-section {
        margin-top: 56px;
    }

    .price-table {
        margin: 24px -12px 0;
        padding: 0 12px 8px;
        overflow-x: auto;
    }

    .price-row {
        min-width: 680px;
    }

}

/* Compact catalog links in narrow service-side cards. */
.marking-side__content .service-catalog-link,
.onec-side__content .service-catalog-link,
.it-support-side__content .service-catalog-link,
.accounting-side > .service-catalog-link {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
    padding-inline: 16px;
}
