/* ============================================================
   Страница: Каталог услуг и сервисов 1С:ИТС для торговли
   layout: main_ds_2025 | дизайн-система ds2025
   Mobile-first: 320 -> 576/750 -> 992 -> 1200
   ============================================================ */

/* ---------- Hero ---------- */
.ct-hero {
    background: var(--bg_accent_blue_lite);
    padding: 40px 0 32px;
}
.ct-hero__in {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}
.ct-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.ct-hero__btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
}
.ct-hero__btns .button,
.ct-hero__btns .button_line {
    width: 100%;
    max-width: none;
}
.ct-img-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 272 / 236;
    background: var(--bg_neutral1);
    border: 1px dashed var(--border_normal);
    border-radius: 16px;
    color: var(--body2);
}
.ct-img-ph svg {
    flex-shrink: 0;
}
.ct-hero__pic {
    display: block;
    width: 100%;
    aspect-ratio: 272 / 236;
    border-radius: 16px;
    object-fit: cover;
}

@media (min-width: 576px) {
    .ct-hero__btns {
        flex-direction: row;
        width: auto;
    }
    .ct-hero__btns .button,
    .ct-hero__btns .button_line {
        width: auto;
    }
}
@media (min-width: 992px) {
    .ct-hero {
        padding: 64px 0;
    }
    .ct-hero__in {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .ct-hero__content {
        gap: 20px;
    }
    .ct-img-ph {
        aspect-ratio: 574 / 524;
        border-radius: 24px;
    }
    .ct-hero__pic {
        aspect-ratio: 574 / 524;
        border-radius: 24px;
    }
}

/* ---------- Hero-копия (как на /1c-programmy) ---------- */
.promo {
    display: flex;
    align-items: center;
    min-height: 100%;
}
.new_promo .promo__content {
    height: auto;
    padding-top: 48px;
    padding-bottom: 320px;
    background-image: var(--promo_bg) !important;
    background-position: bottom 48px center;
    background-repeat: no-repeat;
    background-size: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.new_promo .promo__content > * {
    margin: 0;
}
.new_promo .button {
    gap: 0;
}
.promo__btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.promo__btn-txt--mob {
    display: none;
}
@media (max-width: 575px) {
    .promo__btn-txt {
        display: none;
    }
    .promo__btn-txt--mob {
        display: inline;
    }
}
@media (min-width: 576px) {
    .promo__btns {
        flex-direction: row;
        width: auto;
    }
}
@media (min-width: 576px) {
    .new_promo .promo__content {
        padding: 72px 0;
        align-items: flex-start;
        background-image: none !important;
    }
}
@media (min-width: 700px) {
    .new_promo .promo__content {
        padding: 72px 227px 72px 0;
        background-image: var(--promo_bg) !important;
        background-position: calc(100% + 227px) center;
        background-size: 452px;
        margin-right: var(--negindent_sm);
    }
}
@media (min-width: 1200px) {
    .new_promo .promo__content {
        padding: 72px 0;
        margin-right: 0;
        min-height: 500px;
        justify-content: center;
        background-size: 574px 500px;
        background-position: right center;
    }
    .new_promo .promo__content > * {
        max-width: 574px;
    }
}

/* ---------- Заголовок секции ---------- */
.ct-section__title {
    margin-bottom: 32px;
}
@media (min-width: 992px) {
    .ct-section__title {
        margin-bottom: 42px;
    }
}

/* ---------- Карточки ---------- */
.ct-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.ct-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 220px;
    padding: 20px;
    background: var(--bg_neutral1);
    border-radius: 16px;
    overflow: hidden;
}
.ct-card__link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
}
.ct-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ct-card__text {
    color: var(--body2);
}
.ct-card__btn {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.ct-card:hover .ct-card__btn {
    background: var(--bg_black);
    border-color: var(--bg_black);
}
.ct-card:hover .ct-card__btn svg path {
    stroke: var(--white);
}
.ct-card__img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 136px;
    height: 100px;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
}
.ct-card__img--cover {
    background-size: cover;
}
.ct-card__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg_neutral2);
    border-radius: 8px;
    color: var(--body2);
}
.ct-card__img--ph svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.ct-card--wide .ct-card__img {
    width: 170px;
    height: 125px;
}
@media (max-width: 575px) {
    .ct-card__img {
        bottom: var(--mob_bottom, 0);
        top: auto;
        transform: none;
    }
}

@media (min-width: 576px) {
    .ct-cards {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .ct-card--full {
        grid-column: span 2;
    }
}
@media (min-width: 992px) {
    .ct-card {
        border-radius: 24px;
    }
}
@media (min-width: 1200px) {
    .ct-card {
        padding: 24px;
        gap: 24px;
    }
    .ct-card--wide .ct-card__img,
    .ct-card--half .ct-card__img,
    .ct-card--full .ct-card__img {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    /* Секция «Программное обеспечение и сопровождение»: 3 + 2 */
    .ct-cards--po {
        grid-template-columns: repeat(6, 1fr);
        gap: 32px;
    }
    .ct-cards--po .ct-card--third {
        grid-column: span 2;
    }
    .ct-cards--po .ct-card--half {
        grid-column: span 3;
    }
    .ct-cards--po .ct-card--full {
        grid-column: span 3;
    }
    /* Секция «Сервисы 1С для торговли» */
    .ct-cards--serv {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    /* Секция «Программы 1С для торговли» */
    .ct-cards--prog {
        gap: 32px;
    }
    .ct-card--full .ct-card__body,
    .ct-card--half .ct-card__body,
    .ct-card--wide .ct-card__body {
        margin-right: 178px;
    }
}

/* ---------- Статистика ---------- */
.ct-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.ct-stat {
    padding: 24px;
    border-radius: 8px;
    background: var(--bg_accent_blue_lite);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ct-stat__num {
    font-family: var(--font_roboto);
    font-weight: 500;
    font-size: 32px;
    line-height: 1.1;
    color: var(--accent_blue);
}
.ct-stat__label {
    font-size: 16px;
    line-height: 1.4;
    color: var(--body);
}
@media (min-width: 576px) {
    .ct-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
@media (min-width: 1200px) {
    .ct-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
    .ct-stat {
        padding: 32px;
        border-radius: 16px;
    }
    .ct-stat__num {
        font-size: 52px;
    }
    .ct-stat__label {
        font-size: 18px;
    }
}

/* ---------- CTA «Остались вопросы?» ---------- */
.ct-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    background: var(--bg_accent_blue_lite);
    border-radius: 16px;
    padding: 38px 24px 0 24px;
    overflow: hidden;
}
.ct-cta__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
.ct-cta__img {
    position: relative;
    z-index: 1;
}
.ct-img-ph--cta {
    max-width: 380px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}
.ct-cta__pic {
    display: block;
    /*aspect-ratio: 16 / 9;*/
    /*width: 100%;*/
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}
.ct-cta .button{
    width: 100%;
}
@media (min-width: 700px) {
    .ct-cta {
        padding: 38px;
    }
    .ct-cta__img {
        position: absolute;
        bottom:0;
        right: -66px;
        z-index: 1;
        height: 100%;
        display: flex;
    }
    .ct-img-ph--cta,
    .ct-cta__pic {
        margin: 0;
        width: auto;
    }
    .ct-cta .button{
        width: auto;
    }
}
@media (min-width: 992px) {
    .ct-cta {
        border-radius: 24px;
        padding: 48px;
    }
}
@media (min-width: 1200px) {
    .ct-cta__img {
        right: 0;
    }
}

/* ---------- Форма + рейтинг Яндекс (как на главной) ---------- */
.form_review_wrap {
    display: grid;
    gap: 38px;
}
.yandex_rating {
    padding: 24px 24px 87px 24px;
    border-radius: 10px;
    background: #FFD643;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-image: var(--bg_ya_mb);
    background-position: bottom center;
    background-repeat: no-repeat;
    align-items: stretch;
}
.yandex_rating_txt {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 576px) {
    .form_review_wrap {
        gap: 48px;
    }
    .yandex_rating {
        padding: 32px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 48px;
        background-image: none;
    }
}
@media (min-width: 992px) {
    .form_review_wrap {
        grid-template-columns: 1fr 472px;
        gap: 34px;
        align-items: center;
    }
    .yandex_rating {
        padding: 32px 32px 134px 32px;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        background-image: var(--bg_ya);
        background-position: bottom center;
        align-items: stretch;
    }
}