/* =====================================================================
   Блок «Чем ещё помогаем» / «Все услуги» на посадочных JSON-CMS
   (ИИ, CRM, ERP, СЭД, интернет-магазин). Разметку размечает
   site2023/svc_icons.php -> w2_svc_decorate(): классы w2svc-*.

   Селекторы через :is(#__nuxt, body): вес как у ID в любом случае —
   правила билда и brand.css написаны через #__nuxt (+ !important),
   классом их не перебить (см. CLAUDE.md §8.51).
   ===================================================================== */

/* --- карточка ------------------------------------------------------- */
:is(#__nuxt, body) .w2svc-grid .w2svc-card{
    background: #fff !important;
    border: 1px solid #e6e6ef !important;
    border-radius: 20px !important;
    padding: 28px !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    margin: 0 !important;
    position: relative;
    z-index: 1;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
:is(#__nuxt, body) .w2svc-grid .w2svc-card:hover{
    transform: translateY(-3px);
    border-color: #dcd0f5 !important;
    box-shadow: 0 14px 34px rgba(19, 23, 39, .08) !important;
}
/* обёртки внутри карточки из вёрстки Nuxt — без своих полей и фона */
:is(#__nuxt, body) .w2svc-grid .w2svc-card .our-services__item--left,
:is(#__nuxt, body) .w2svc-grid .w2svc-card .our-services__item--flex{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
}
:is(#__nuxt, body) .w2svc-grid .w2svc-card .our-services__item--img{ display: none !important; }

/* --- заголовок карточки: просто текст (иконку снял заказчик 04.10.2026) --- */
:is(#__nuxt, body) .w2svc-grid .w2svc-title{
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    color: #131727 !important;
    text-align: left !important;
}

/* --- список ссылок ---------------------------------------------------- */
:is(#__nuxt, body) .w2svc-grid .w2svc-card ul{
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
:is(#__nuxt, body) .w2svc-grid .w2svc-card ul li{
    margin: 0 !important; padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
}
:is(#__nuxt, body) .w2svc-grid .w2svc-card ul li::before,
:is(#__nuxt, body) .w2svc-grid .w2svc-card ul li::after{ content: none !important; display: none !important; }

:is(#__nuxt, body) .w2svc-grid .w2svc-card a.w2svc-link{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 -10px !important;
    padding: 8px 10px !important;
    border-radius: 12px;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: #131727 !important;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}
:is(#__nuxt, body) .w2svc-grid .w2svc-card a.w2svc-link .w2svc-t{ color: inherit !important; flex: 1 1 auto; min-width: 0; }
:is(#__nuxt, body) .w2svc-grid .w2svc-card a.w2svc-link:hover{
    background: rgba(143, 66, 236, .06);
    color: #8f42ec !important;
}

/* маленькая иконка услуги слева */
:is(#__nuxt, body) .w2svc-grid .w2svc-i{
    flex: 0 0 34px;
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    background: rgba(143, 66, 236, .1) !important;
    color: #8f42ec !important;
}
/* стрелка — только при наведении */
:is(#__nuxt, body) .w2svc-grid .w2svc-arr{
    flex: 0 0 18px;
    display: inline-flex !important;
    color: #8f42ec !important;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
:is(#__nuxt, body) .w2svc-grid .w2svc-card a.w2svc-link:hover .w2svc-arr,
:is(#__nuxt, body) .w2svc-grid .w2svc-card a.w2svc-link:focus-visible .w2svc-arr{ opacity: 1; transform: none; }

/* SVG: только контур. Билд и brand.css заливают path в списках услуг
   (#__nuxt .our-services__item--list svg path{fill:#8f42ec}) — гасим. */
:is(#__nuxt, body) .w2svc-grid .w2svc-card svg{ display: block; width: auto; height: auto; flex: none; }
:is(#__nuxt, body) .w2svc-grid .w2svc-card .w2svc-i svg *,
:is(#__nuxt, body) .w2svc-grid .w2svc-card .w2svc-arr svg *{
    fill: none !important;
    fill-opacity: 1 !important;
    stroke: currentColor !important;
}

/* --- снимок Nuxt на странице интернет-магазина: слайдер -> сетка ------ */
:is(#__nuxt, body) .w2svc-im .our-services__swiper-next-prev{ display: none !important; }
:is(#__nuxt, body) .w2svc-im .our-services__swiper{
    max-width: 1240px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    overflow: visible !important;
}
:is(#__nuxt, body) .w2svc-im .our-services__swiper .swiper{ overflow: visible !important; padding: 0 !important; margin: 0 !important; }
:is(#__nuxt, body) .w2svc-im .our-services__swiper .swiper-wrapper{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    transform: none !important;
    width: auto !important;
    height: auto !important;
}
:is(#__nuxt, body) .w2svc-im .our-services__swiper .swiper-slide{ width: auto !important; height: auto !important; margin: 0 !important; display: flex; }
:is(#__nuxt, body) .w2svc-im .our-services__swiper .swiper-slide > .w2svc-card{ flex: 1 1 auto; }

@media (max-width: 1023px){
    :is(#__nuxt, body) .w2svc-im .our-services__swiper .swiper-wrapper{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px){
    :is(#__nuxt, body) .w2svc-grid .w2svc-card{ padding: 22px 20px !important; gap: 14px !important; }
    :is(#__nuxt, body) .w2svc-grid .w2svc-title{ font-size: 18px !important; }
    :is(#__nuxt, body) .w2svc-im .our-services__swiper .swiper-wrapper{ grid-template-columns: 1fr; gap: 16px; }
    /* на телефоне ховера нет — стрелку показываем всегда, тише */
    :is(#__nuxt, body) .w2svc-grid .w2svc-arr{ opacity: .45; transform: none; }
}
@media (prefers-reduced-motion: reduce){
    :is(#__nuxt, body) .w2svc-grid .w2svc-card,
    :is(#__nuxt, body) .w2svc-grid .w2svc-arr{ transition: none !important; }
    :is(#__nuxt, body) .w2svc-grid .w2svc-card:hover{ transform: none; }
}
