/* ==========================================
   ИНТОНЕР — НАШИ УСЛУГИ
   Seller 2.0
   ========================================== */

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */

.it-services {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1500px;
    margin: 0 auto;
    padding: 45px 0 65px;
    color: #172635;
}

.it-services,
.it-services * {
    box-sizing: border-box;
}

/* ===== ЗАГОЛОВОК РАЗДЕЛА ===== */

.it-services__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.it-services__heading {
    flex: 1 1 auto;
    min-width: 0;
}

.it-services__title {
    margin: 0 0 12px;
    color: #172635;
    font-size: clamp(28px, 2.8vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.it-services__description {
    margin: 0;
    color: #647485;
    font-size: 16px;
    line-height: 1.55;
}

.it-services__all {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    color: #1755a6;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color .2s ease;
}

.it-services__all:hover {
    color: #123f80;
}

/* ===== СЕТКА КАРТОЧЕК ===== */

/* 12 колонок:
   первый ряд — 3 карточки по 4 колонки;
   второй ряд — 4 карточки по 3 колонки */

.it-services__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* По умолчанию — 4 карточки в ряду */

.it-services__card {
    display: flex;
    flex-direction: column;
    grid-column: span 3;
    min-width: 0;
    overflow: hidden;

    border: 1px solid #e3e9ef;
    border-radius: 20px;
    background: #fff;

    color: #172635 !important;
    text-decoration: none !important;

    box-shadow: 0 9px 25px rgba(23, 38, 53, .045);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

/* Первые три карточки — крупнее */

.it-services__card:nth-child(-n+3) {
    grid-column: span 4;
}

/* Наведение */

.it-services__card:hover {
    transform: translateY(-4px);
    border-color: #d1dce8;
    box-shadow: 0 14px 32px rgba(23, 38, 53, .10);
}

/* ===== ФОТОГРАФИИ ===== */

.it-services__image {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f4f6;
    border-radius: 19px 19px 0 0;
}

.it-services__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.it-services__card:hover .it-services__image img {
    transform: scale(1.035);
}

/* ===== НИЖНЯЯ ЧАСТЬ КАРТОЧКИ ===== */

.it-services__body {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 104px;
    padding: 17px 18px 19px;
    background: #fff;
}

.it-services__words {
    flex: 1 1 auto;
    min-width: 0;
}

.it-services__name {
    margin: 0 0 7px;
    color: #172635;
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.it-services__text {
    margin: 0;
    color: #728091;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

/* ===== КРУГЛАЯ СТРЕЛКА ===== */

.it-services__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    border: 1px solid #b7c8d9;
    border-radius: 50%;
    background: #fff;

    color: #1755a6;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.it-services__card:hover .it-services__arrow {
    transform: translateX(2px);
    background: #1755a6;
    border-color: #1755a6;
    color: #fff;
}

/* ===== ПЛАНШЕТЫ И МОБИЛЬНЫЕ ДО 1024px ===== */

@media (max-width: 1024px) {

    .it-services {
        padding: 35px 0 50px;
    }

    .it-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .it-services__card,
    .it-services__card:nth-child(-n+3) {
        grid-column: span 1;
    }

    .it-services__body {
        min-height: 95px;
        padding: 15px 15px 17px;
    }

    .it-services__name {
        font-size: 17px;
    }

    .it-services__text {
        font-size: 13px;
    }
}

/* ===== ТЕЛЕФОНЫ 541–767px ===== */

@media (min-width: 541px) and (max-width: 767px) {

    .it-services__header {
        align-items: flex-start;
        gap: 18px;
    }

    .it-services__description {
        font-size: 14px;
    }

    .it-services__name {
        font-size: 15px;
    }

    .it-services__text {
        font-size: 12px;
    }

    .it-services__body {
        min-height: 100px;
        padding: 13px;
        gap: 8px;
    }

    .it-services__arrow {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 19px;
    }
}

/* ===== УЗКИЕ ЭКРАНЫ ДО 540px ===== */

@media (max-width: 540px) {

    .it-services {
        width: calc(100% - 24px);
        padding: 28px 0 42px;
    }

    .it-services__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 22px;
    }

    .it-services__title {
        margin-bottom: 10px;
        font-size: 28px;
    }

    .it-services__description {
        font-size: 14px;
        line-height: 1.5;
    }

    .it-services__all {
        font-size: 14px;
    }

    .it-services__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .it-services__card {
        border-radius: 18px;
    }

    .it-services__image {
        aspect-ratio: 16 / 9;
        border-radius: 17px 17px 0 0;
    }

    .it-services__body {
        min-height: 90px;
        padding: 15px 17px 17px;
        gap: 12px;
    }

    .it-services__name {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .it-services__text {
        font-size: 13px;
    }

    .it-services__arrow {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 21px;
    }
}


/* ==========================================
   ИНТОНЕР — ФИРМЕННЫЕ ЛИНИИ ЗАГОЛОВКОВ
   ========================================== */

/* Блок «Наши услуги» */

.it-services__heading::before {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin-bottom: 17px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #35baf6,
        #3276dc
    );
}




/* ==========================================
   ИНТОНЕР — КАРТОЧКИ
   ========================================== */

.it-services .it-services__card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
}

/* Фото без отступов, с округлением */

.it-services .it-services__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 21px;
    background: #f1f4f6;
}

.it-services .it-services__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 21px;
    object-fit: cover;
    object-position: center;
}

/* Нижняя часть — продолжение карточки */

.it-services .it-services__body {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 100px;
    margin: 0;
    padding: 16px 19px 18px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

/* Мобильная адаптация */

@media (max-width: 540px) {

    .it-services .it-services__card {
        border-radius: 19px;
    }

    .it-services .it-services__image,
    .it-services .it-services__image img {
        border-radius: 18px;
    }

    .it-services .it-services__body {
        min-height: 88px;
        padding: 14px 16px 16px;
    }
}


/* ==========================================
   ИНТОНЕР — ФИНАЛЬНАЯ ДОРАБОТКА КАРТОЧЕК
   ========================================== */

/* ===== СВЕТЛО-СЕРЫЙ ФОН ПОД ФОТО ===== */

.it-services .it-services__body {
    background: #f5f7f9;
}

/* Вся карточка имеет единый фон */

.it-services .it-services__card {
    background: #f5f7f9;
}

/* ===== СТРЕЛКИ В ФИРМЕННОМ СТИЛЕ ===== */

.it-services .it-services__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;
    width: 38px;
    height: 38px;

    padding: 0;
    border: 1px solid #d9e6f4;
    border-radius: 12px;

    background: #e8f1fb;
    color: #1755a6;

    font-size: 0;
    line-height: 1;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.it-services .it-services__arrow svg {
    display: block;
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* Наведение на карточку */

.it-services .it-services__card:hover .it-services__arrow {
    transform: translateX(2px);
    background: #1755a6;
    border-color: #1755a6;
    color: #fff;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */

@media (max-width: 540px) {

    .it-services .it-services__arrow {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .it-services .it-services__arrow svg {
        width: 19px;
        height: 19px;
    }
}




/* ===== ДОСТУПНОСТЬ ===== */

.it-services__card:focus-visible,
.it-services__all:focus-visible {
    outline: 2px solid #1755a6;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .it-services__card,
    .it-services__image img,
    .it-services__arrow,
    .it-services__all {
        transition: none;
    }
}


/* =========================================
   ИНТОНЕР — УСЛУГИ
   РЕМОНТ СКОЛОВ / ДООСНАЩЕНИЕ
   ========================================= */

/* ПК: показываем сколы, скрываем дооснащение */
@media (min-width: 1024px) {

    .it-services__grid > .it-services__card--equipment {
        display: none !important;
    }

    .it-services__grid > .it-services__card--chips {
        display: flex;
    }
}

/* Мобильная версия: показываем обе услуги */
@media (max-width: 1023px) {

    .it-services__grid > .it-services__card--equipment,
    .it-services__grid > .it-services__card--chips {
        display: flex;
    }
}

