/*
 * Страница «IT-аутсорсинг» (/outsourcing).
 *
 * Общие блоки — плитки с цифрами, нумерованные пункты, плашки, тёмные секции,
 * анимации появления (.inv-ready / .is-visible) — берутся из investors.css.
 * Здесь только то, чего там нет. Цвета те же: красный #e21e26, текст #231f20,
 * серый фон секций #e7e8e9, светло-розовый #fbe3e4.
 */

/* Отрасли: иконки в красных кругах */

.os-sectors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.os-sector {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
}

.os-sector:before {
    content: none !important;
}

.os-sector-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e21e26;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px #fbe3e4;
    transition: transform 0.3s ease;
}

.os-sector:hover .os-sector-icon {
    transform: scale(1.08);
}

.os-sector-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.os-sector-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

/* Команда до 100 человек: сетка из 100 точек */

.os-team {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.os-team-dots {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(10, 14px);
    gap: 9px;
}

.os-team-dots i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e21e26;
}

.os-team-dots i.is-extra {
    background: transparent;
    box-shadow: inset 0 0 0 2px #e21e26;
}

.os-team-text {
    margin: 0;
    max-width: 420px;
}

.os-team-text strong {
    display: block;
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 1;
    color: #fff;
}

.os-team-text span {
    display: block;
    margin-top: 12px;
    font-size: 20px;
    color: #c6c7c8;
}

/* Процесс работы: карточки со списками */

.os-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.os-process-card {
    background: #fff;
    border-top: 4px solid #e21e26;
    padding: 26px 28px 10px;
}

.os-process-card h4 {
    margin: 0 0 16px;
}

.os-process-card .inv-facts > li {
    font-size: 15px;
    margin-bottom: 12px;
}

/* Технологии */

.os-tech {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 50px;
}

.os-tech-group h4 {
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 3px solid #e21e26;
}

.os-tech .inv-chips {
    margin-bottom: 30px;
}

.os-tech .inv-chip {
    font-size: 14px;
    padding: 9px 14px;
}

/* Достижения */

.os-awards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.os-award {
    border-top: 4px solid #e21e26;
    padding-top: 24px;
}

.os-award-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.os-award-logos img {
    height: 52px;
    width: auto;
    padding: 10px 14px;
    background: #fff;
    box-sizing: content-box;
}

.os-award h4 {
    margin: 0 0 8px;
    color: #fff;
}

.os-award p {
    margin: 0;
    color: #c6c7c8;
}

/* Логотипы партнёров и клиентов */

.os-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.os-clients {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.os-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 14px 20px;
    background: #fff;
    box-sizing: border-box;
}

.os-clients .os-logo {
    border: 1px solid #e7e8e9;
}

.os-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.os-partners .os-logo img {
    max-height: 46px;
}

/*
 * Анимации — по той же схеме, что в investors.css: начальное состояние только
 * при .inv-ready (его ставит скрипт), конечное — при .is-visible.
 */

.inv-ready .os-sector,
.inv-ready .os-process-card,
.inv-ready .os-tech-group,
.inv-ready .os-award,
.inv-ready .os-logo {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.inv-ready.is-visible .os-sector,
.inv-ready.is-visible .os-process-card,
.inv-ready.is-visible .os-tech-group,
.inv-ready.is-visible .os-award,
.inv-ready.is-visible .os-logo {
    opacity: 1;
    transform: none;
}

/* Логотипов много — общая лесенка задержек слишком растягивается, у них своя, короче. */
.inv-ready .os-logo {
    transition-delay: calc(var(--i, 0) * 30ms) !important;
}

.inv-ready .os-team-dots i {
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: calc(var(--i, 0) * 12ms);
}

.inv-ready.is-visible .os-team-dots i {
    opacity: 1;
    transform: none;
}

.inv-ready .os-sector-icon {
    transform: scale(0.6);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: inherit;
}

.inv-ready.is-visible .os-sector-icon {
    transform: none;
}

/* Адаптив */

@media (max-width: 1024px) {
    .os-sectors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-process,
    .os-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .os-clients {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .os-sectors,
    .os-process,
    .os-tech,
    .os-awards {
        grid-template-columns: 1fr;
    }

    .os-logos,
    .os-clients {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-team {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .os-team-text strong {
        font-size: 56px;
    }
}
