.sh-service-hero,
.sh-service-hero button,
.sh-service-hero input,
.sh-service-hero textarea,
.sh-service-hero select {
    font-family: inherit;
}

.sh-service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;

    width: min(1300px, calc(100% - 32px));
    max-width: 1300px;
    margin: 0 auto;

    box-sizing: border-box;
}

/* Левая часть */


.sh-service-hero__visual {
    min-width: 0;
    padding: 14px;
    background: #f4f0ff;
    border: 1px solid #ebe4ff;
    border-radius: 24px;
    box-sizing: border-box;
}

.sh-service-hero__image {
    margin: 0;
}

.sh-service-hero__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}


/* =========================
   КАРТОЧКА ПРИМЕРА РАБОТЫ
   ========================= */

.sh-service-case {
    margin-top: 6px;

    background: #ffffff;
    border: 1px solid #e5dffc;
    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(70, 48, 130, 0.06);
}

/* Вся карточка является ссылкой */

.sh-service-case__link {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;

    color: inherit;
    text-decoration: none;

    border-radius: 16px;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Наведение */

.sh-service-case__link:hover {
    background-color: #faf8ff;
    text-decoration: none;
}

.sh-service-case__link:focus-visible {
    outline: 3px solid #a48cff;
    outline-offset: 3px;
}

.sh-service-case__link:not(a)::after {
    display: none;
}

.sh-service-case__link:not(a):hover {
    background-color: transparent;
}

/* Универсальная SVG-иконка документа */

.sh-service-case__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 59px;

    color: #6838ff;

    background: linear-gradient(
        135deg,
        #f1edff 0%,
        #e8e1ff 100%
    );

    border-radius: 12px;
    box-sizing: border-box;
}

.sh-service-case__icon svg {
    display: block;
    width: 35px;
    height: 35px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Текстовая часть */

.sh-service-case__body {
    min-width: 0;
}

.sh-service-case__label {
    display: block;
    margin-bottom: 4px;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;

    color: #16151a;
}

/* Название кейса */

.sh-service-case__title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    color: #663cff;
}

.sh-service-case__link:hover .sh-service-case__title {
    color: #5420e8;
}

/* Короткое описание */

.sh-service-case__description {
    margin-top: 5px;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;

    color: #686274;
}

/* Стрелка справа */

.sh-service-case__link::after {
    content: "";

    display: block;
    width: 9px;
    height: 9px;

    border-top: 2px solid #282135;
    border-right: 2px solid #282135;

    transform: rotate(45deg);

    transition: transform 0.2s ease;
}

.sh-service-case__link:hover::after {
    transform: translateX(3px) rotate(45deg);
}

/* Карточка без ссылки — без стрелки */

.sh-service-case:not(:has(> .sh-service-case__link)) {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;

    padding: 16px 18px;
}



/* =========================
   СОВМЕСТИМОСТЬ С 1С
   ========================= */

.sh-service-compatibility {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: center;

    margin-top: 6px;
    padding: 14px 18px;

    width: 100%;

    background: #ffffff;
    border: 1px solid #e6ddfb;
    border-radius: 16px;

    box-sizing: border-box;
}

.sh-service-compatibility__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
}

.sh-service-compatibility__logo {
    display: block;

    width: 64px;
    height: 64px;

    object-fit: contain;
    border-radius: 12px;
}

.sh-service-compatibility__content {
    min-width: 0;
}

/* Заголовок */

.sh-service-compatibility__title {
    margin-bottom: 8px;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;

    color: #1b1824;
}

/* Список */

.sh-service-compatibility__list {
    display: block;
    width: 100%;
}

.sh-service-compatibility__item {
    position: relative;

    min-width: 0;
    padding-left: 18px;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;

    color: #59536a;
}

/* Зеленая галочка */

.sh-service-compatibility__item::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;

    color: #18bf70;
}





/* =========================
   ПРАВАЯ ЧАСТЬ
   ========================= */

.sh-service-hero__content {
    min-width: 0;
}


/* Верхняя строка-теги */

.sh-service-tags {
    display: inline-block;
    width: fit-content;

    margin: 0 0 10px;
    padding: 8px 14px;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    color: #7000f4;
    background: #f1edff;

    border-radius: 10px;

    box-shadow: inset 0 0 0 1px rgba(109, 74, 255, 0.04);

    box-sizing: border-box;
}


/* Заголовок */

.sh-service-title {
    margin: 0 0 10px;

    font-size: clamp(36px, 4vw, 46px);
    line-height: 1.03;
    letter-spacing: -0.035em;
    font-weight: 700;

    color: #101014;
}

/* Лид */

.sh-service-hero p.sh-service-lead {
    margin-top: 0;
    margin-bottom: 10px;

    margin-block-start: 0;
    margin-block-end: 10px;
}



/* Дополнительное описание */

.sh-service-hero p.sh-service-description {
    margin: 0 0 10px;

    max-width: 620px;

    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;

    color: #686274;
}

.sh-service-lead,
.sh-service-description {
    margin-block-start: 0;
    margin-block-end: 0;
}



/* =========================
   СПИСОК ПРЕИМУЩЕСТВ
   ========================= */

.sh-service-benefits {
    display: grid;
    gap: 6px;

    margin: 0 0 10px;
}

.sh-service-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;
}

/* Фиолетовая галочка — рисуется кодом */

.sh-service-benefit::before {
    content: "✓";

    display: flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;
    margin-top: 2px;

    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;

    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(109, 74, 255, 0.18);

    box-sizing: border-box;
}

.sh-service-benefit:nth-child(1)::before {
    background: linear-gradient(135deg, #7c6cff 0%, #6d4aff 100%);
}

.sh-service-benefit:nth-child(2)::before {
    background: linear-gradient(135deg, #8a5cff 0%, #6a46ff 100%);
}

.sh-service-benefit:nth-child(3)::before {
    background: linear-gradient(135deg, #9b59ff 0%, #7d45ff 100%);
}

.sh-service-benefit:nth-child(4)::before {
    background: linear-gradient(135deg, #c14dff 0%, #a93fff 100%);
}

/* Старые загружаемые иконки пока просто скрываем */

.sh-service-benefit__icon {
    display: none;
}

.sh-service-benefit__text {
    min-width: 0;

    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;

    color: #24212b;
}


/* =========================
   СТОИМОСТЬ РАЗРАБОТКИ
   ========================= */

.sh-service-price {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 15px;
    row-gap: 4px;

    margin-top: 14px;
    padding: 14px 16px 14px;

    color: #191820;

    background: linear-gradient(
        135deg,
        #f7f6ff 0%,
        #ecebf9 100%
    );

    border: 1px solid #ded8f7;
    border-radius: 16px;

    box-sizing: border-box;
}


/* Header "растворяем" в общей grid-сетке */

.sh-service-price__header {
    display: contents;
}


/* Иконка слева */

.sh-service-price__icon {
 grid-column: 1;
    grid-row: 1 / span 2;

    align-self: center;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;
    padding: 11px;

    color: #663cff;

    background: linear-gradient(
        135deg,
        #f0ebff 0%,
        #e7dfff 100%
    );

    border-radius: 50%;

    box-sizing: border-box;
}

.sh-service-price__icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Заголовок */

.sh-service-price__title {
    grid-column: 2 / -1;
    grid-row: 1;

    align-self: end;

    margin: 0;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;

    color: #5c35f2;
}


/* Первая цена */

.sh-service-price__header + .sh-service-price__item {
    grid-column: 2;
    grid-row: 2;

    padding-right: 18px;
}


/* Вторая цена */

.sh-service-price__item + .sh-service-price__item {
    grid-column: 3;
    grid-row: 2;

    margin: 0;
    padding: 0 0 0 18px;

    border-top: 0;
    border-left: 1px solid #d8d2e8;
}


.sh-service-price__value {
    margin: 0 0 4px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;

    color: #16151a;
}


.sh-service-price__description {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;

    color: #625d70;
}


/* Нижняя строка с примечанием */

.sh-service-price__note {
    grid-column: 1 / -1;
    grid-row: 3;

    position: relative;

    margin: 7px 0 0;
    padding: 12px 0 0 28px;

    font-size: 13px;
    line-height: 1.4;

    color: #666174;

    border-top: 1px solid #ded9ec;
}


/* Фиолетовая info-иконка */

.sh-service-price__note::before {
    content: "i";

    position: absolute;
    left: 0;
    top: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    font-style: normal;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #8158ff 0%,
        #6039f4 100%
    );

    border-radius: 50%;

    box-sizing: border-box;
}


/* =========================
   КНОПКИ — стиль шаблона
   ========================= */

.sh-service-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;

    margin-top: 14px;
}

.sh-service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 15px 20px;

    border: 0;
    border-radius: 3px;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;

    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    box-sizing: border-box;

    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sh-service-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    margin-right: 10px;
}

.sh-service-button__icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;
    stroke: #7000f4;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Фиолетовая */

.sh-service-button--primary {
    color: #ffffff;
    background-color: #7000f4;

    box-shadow:
        0 2px 4px rgba(45, 35, 66, 0.20),
        0 7px 13px -3px rgba(45, 35, 66, 0.30),
        inset 0 -3px 0 rgba(58, 65, 111, 0.50);

    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.40);
}

.sh-service-button--primary::after {
    content: "";

    flex: 0 0 18px;

    width: 18px;
    height: 18px;
    margin-left: 10px;

    background-color: currentColor;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E")
        center / contain no-repeat;
}


/* Белая */

.sh-service-button--secondary {
    color: #26232c;
    background-color: #ffffff;

    box-shadow:
        0 2px 4px rgba(45, 35, 66, 0.10),
        0 7px 13px -3px rgba(45, 35, 66, 0.30),
        inset 0 -3px 0 #d6d6e7;
}


/* Наведение — вся кнопка вместе с нижней гранью вверх */

.sh-service-button:hover {
    transform: translateY(-2px);
}

.sh-service-button--primary:hover {
    color: #ffffff;
    background-color: #7000f4;
}

.sh-service-button--secondary:hover {
    color: #26232c;
    background-color: #ffffff;
}


/* Нажатие */

.sh-service-button:active {
    transform: translateY(2px);

    box-shadow:
        0 2px 2px rgba(45, 35, 66, 0.15);
}


/* Доступность */

.sh-service-button:focus-visible {
    outline: 3px solid rgba(112, 0, 244, 0.22);
    outline-offset: 4px;
}


/* =========================
   МИНИ-ПРЕИМУЩЕСТВА
   ========================= */

.sh-service-mini-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-top: 14px;
}

.sh-service-mini-benefit {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

/* Светло-фиолетовая плашка с иконкой */

.sh-service-mini-benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    background: linear-gradient(
        135deg,
        #f0ecff 0%,
        #e9e3fc 100%
    );

    border-radius: 12px;
    box-sizing: border-box;
}

/* SVG-иконка */

.sh-service-mini-benefit__icon svg {
    display: block;

    width: 22px;
    height: 22px;

    fill: none;
    stroke: #6737fc;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Подпись */

.sh-service-mini-benefit__text {
    min-width: 0;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;

    color: #514c65;
}

/* =========================================================
   БЛОК "ВОЗМОЖНОСТИ"
   ========================================================= */

.sh-service-tasks {
    width: min(1300px, calc(100% - 32px));
    max-width: 1300px;
    margin: 0 auto;

    padding: 14px 0 22px;

    box-sizing: border-box;
}

.sh-service-tasks__inner {
    width: min(1300px, calc(100% - 32px));
    max-width: 1300px;

    margin: 0 auto;

    box-sizing: border-box;
}


/* Маленькая надпись "ВОЗМОЖНОСТИ" */

.sh-service-tasks__label {
    margin: 0 0 5px;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: #7000f4;
}


/* Заголовок */

.sh-service-tasks__title {
    max-width: none;

    margin: 0 0 16px;

    font-size: clamp(27px, 2.4vw, 34px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;

    color: #111015;
}


/* 4 карточки */

.sh-service-tasks__grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}


/* Карточка */

.sh-service-task-card {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
    min-height: 78px;

    padding: 11px 15px;

    background: linear-gradient(180deg, #fbfcff 0%, #f5f7ff 100%);

    border: 1px solid #f2f1f7;
    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(61, 48, 100, 0.035);

    box-sizing: border-box;
}


/* Круг под иконкой */

.sh-service-task-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 48px;

    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;

    background: linear-gradient(
        135deg,
        #eee9ff 0%,
        #e4dcff 100%
    );

    border-radius: 50%;

    overflow: hidden;
    box-sizing: border-box;
}


/* Загружаемая иконка */

.sh-service-task-card__icon {
    display: block;

    flex: none;

    width: 27px !important;
    height: 27px !important;

    min-width: 27px;
    min-height: 27px;
    max-width: 27px !important;
    max-height: 27px !important;

    object-fit: contain;

    margin: 0;
    padding: 0;
}


/* Текстовая часть */

.sh-service-task-card__content {
    min-width: 0;

    padding: 0;
}


/* Заголовок карточки */

.sh-service-task-card__title {
    margin: 0 0 3px;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;

    color: #18151f;
}


/* Описание */

.sh-service-task-card__text {
    margin: 0;

    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 400;

    color: #625d70;
}

/* =========================================================
   АДАПТИВ — ДО 1000px
   Карточки "Возможности"
   ========================================================= */

@media (max-width: 1000px) {

    /* Блок "Возможности" */

    .sh-service-tasks {
        padding: 28px 0 24px;
    }

    .sh-service-tasks__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sh-service-task-card {
        min-height: 82px;
    }
}


/* =========================================================
   ПЛАНШЕТ — ДО 900px
   ========================================================= */

@media (max-width: 900px) {

    /* Hero */

    .sh-service-hero {
        grid-template-columns: 1fr;
        gap: 32px;

        padding: 24px;
    }

    .sh-service-hero__content {
        order: 1;
    }

    .sh-service-hero__visual {
        order: 2;
    }

    .sh-service-title {
        font-size: clamp(32px, 8vw, 38px);
    }
}


/* =========================================================
   МОБИЛЬНЫЙ — ДО 600px
   ========================================================= */

@media (max-width: 600px) {

    /* =========================
       HERO
       ========================= */

    .sh-service-hero {
        padding: 16px;
    }

    .sh-service-hero__visual {
        padding: 20px;
        border-radius: 20px;
    }


    /* =========================
       КНОПКИ
       ========================= */

    .sh-service-actions {
        grid-template-columns: 1fr;
    }

    .sh-service-button {
        width: 100%;
    }


    /* =========================
       МИНИ-ПРЕИМУЩЕСТВА
       ========================= */

    .sh-service-mini-benefits {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    /* =========================
       СОВМЕСТИМОСТЬ С 1С
       ========================= */

    .sh-service-compatibility {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;

        padding: 12px;
    }

    .sh-service-compatibility__icon {
        width: 52px;
        height: 52px;
    }

    .sh-service-compatibility__logo {
        width: 52px;
        height: 52px;
    }


    /* =========================
   БЛОК "ВОЗМОЖНОСТИ"
   ========================= */

    .sh-service-tasks {
        padding: 28px 0 24px;
    }

    .sh-service-tasks__inner {
        width: min(1300px, calc(100% - 24px));
    }

    .sh-service-tasks__label {
        margin-bottom: 5px;

        font-size: 12px;
    }

    .sh-service-tasks__title {
        margin-bottom: 16px;

        font-size: 26px;
        line-height: 1.12;
    }

    .sh-service-tasks__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sh-service-task-card {
        gap: 13px;

        min-height: 74px;

        padding: 11px 14px;

        border-radius: 12px;
    }

    .sh-service-task-card__title {
        font-size: 14px;
    }

    .sh-service-task-card__text {
        font-size: 12.5px;
    }

    /* =========================
    СТОИМОСТЬ
   ========================= */

.sh-service-price {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;

    padding: 16px;
}


/* Иконка */

.sh-service-price__icon {
    grid-column: 1;
    grid-row: 1;

    width: 52px;
    height: 52px;

    padding: 9px;
}


/* Заголовок */

.sh-service-price__title {
    grid-column: 2;
    grid-row: 1;

    align-self: center;

    font-size: 16px;
}


/* Первая цена */

.sh-service-price__header + .sh-service-price__item {
    grid-column: 1 / -1;
    grid-row: 2;

    padding: 10px 0 0;

    border-top: 1px solid #ded9ec;
}


/* Вторая цена */

.sh-service-price__item + .sh-service-price__item {
    grid-column: 1 / -1;
    grid-row: 3;

    margin: 0;
    padding: 10px 0 0;

    border-left: 0;
    border-top: 1px solid #ded9ec;
}


/* Цена */

.sh-service-price__value {
    margin-bottom: 3px;

    font-size: 19px;
}


/* Описание цены */

.sh-service-price__description {
    font-size: 13px;
    line-height: 1.4;
}


/* Примечание */

.sh-service-price__note {
    grid-column: 1 / -1;
    grid-row: 4;

    margin-top: 2px;
}

/* HERO — убираем лишние внешние отступы на планшете */
@media (max-width: 900px) {
    .sh-service-hero {
        width: 100%;
        max-width: 1300px;
        margin: 0 auto;
        padding: 24px 0;
    }
}

/* HERO — мобильный */
@media (max-width: 600px) {
    .sh-service-hero {
        padding: 16px 0;
    }

    .sh-service-tasks {
        width: 100%;
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;
    }

    .sh-service-tasks__inner {
        width: 100%;
        max-width: 1300px;
        box-sizing: border-box;
    }
}
}