.index-page .home-case-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); margin: 32px 0; }
.index-page .home-case { display: flex; flex-direction: column; gap: 16px; padding: var(--grid-gap); background: var(--white-color, #fff); border-radius: var(--ds-r-surface); color: var(--main-text-color); text-decoration: none; min-width: 0; }
.index-page .home-case h3 { color: var(--primary-color); }
.index-page .home-case span { margin-top: auto; color: var(--primary-color); }
.index-page .home-case:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
@media (max-width: 1199px) { .index-page .home-case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .index-page .home-case-list { grid-template-columns: minmax(0, 1fr); }
}

.home-services { margin: 64px 0; }
.home-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); padding: 0; margin: 32px 0 0; list-style: none; }
.index-page .home-services__item { min-width: 0; padding: 0; margin: 0; list-style: none; }
.index-page .home-services__item::before { content: none; }
.home-services__card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 460px; padding: 32px; box-sizing: border-box; overflow: hidden; background: var(--white-color, #fff); color: var(--main-text-color); text-decoration: none; transition: background-color 240ms ease, color 240ms ease; }
.index-page .home-services__title { color: inherit; }
.home-services__title { position: relative; z-index: 2; display: block; width: 57%; min-width: 0; overflow-wrap: anywhere; font-family: var(--h-font); font-size: 28px; line-height: 1.15; text-transform: uppercase; }
.home-services__symbol { position: absolute; top: 32px; left: 32px; z-index: 2; color: var(--primary-color); font-family: var(--h-font); font-size: 120px; line-height: 1; transition: color 240ms ease; }
.home-services__symbol svg { display: block; width: 80px; height: 108px; }
.home-services__symbol svg path { fill: currentColor; }
.home-services__art { position: absolute; z-index: 1; right: 0; bottom: 0; display: block; width: 40%; height: 55%; overflow: hidden; pointer-events: none; }
.home-services__art img { position: absolute; left: 0; top: 0; display: block; width: 160%; max-width: none; height: 160%; object-fit: contain; object-position: left top; }
.home-services__art_column img { width: 200%; height: auto; }
.home-services__art_branch img { width: 220%; height: 220%; }
.home-services__art_portrait img,
.home-services__art img[src$="/software.webp"] { transform: scaleX(-1); }
.home-services__symbol .home-services__barcode { width: 92px; height: 108px; }
@media (max-width: 767px) { .home-services__symbol .home-services__barcode { width: 72px; height: 86px; } }
.home-services__card:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 4px; background: var(--primary-color); color: var(--white-color, #fff); }
.home-services__card:focus-visible .home-services__symbol { color: var(--white-color, #fff); }
@media (hover: hover) and (pointer: fine) {
    .home-services__card:hover { background: var(--primary-color); color: var(--white-color, #fff); }
    .home-services__card:hover .home-services__symbol { color: var(--white-color, #fff); }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-services__card { min-height: 400px; padding: 24px; }
    .home-services__title { width: 57%; font-size: 26px; }
    .home-services__symbol { left: 24px; right: auto; top: 24px; font-size: 96px; }
}
@media (max-width: 767px) {
    .home-services { margin: 48px 0; }
    .home-services__grid { grid-template-columns: minmax(0, 1fr); }
    .home-services__card { min-height: 320px; padding: 24px; }
    .home-services__title { width: 57%; font-size: 26px; }
    .home-services__symbol { left: 24px; right: auto; top: 24px; font-size: 88px; }
    .home-services__symbol svg { width: 64px; height: 86px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-services__card, .home-services__symbol, .home-services__art { transition: none; }
    .home-services__card:hover .home-services__art { transform: none; }
}

/* Large screens: the hero artwork must not run under the header/nav. */
@media (min-width: 1200px) {
    .main-offer__picture {
        top: 0;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 96px);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 96px);
    }
}
