/* Корневая страница «Отраслевые решения» — netcat_template/module/solutions_page.php (макет 30.09.2026).
   Все правила — внутри main.tps: другие страницы не затрагиваются. */

.tps {
    padding-bottom: 80px;
}

/* ===== Заголовок и плитки направлений ===== */
.tps .tps-top {
    padding-top: 28px;
}

.tps .tps-h1 {
    margin: 0 0 50px;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.2;
}

.tps .tps-dirs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.tps .tps-dir {
    display: block;
    padding: 34px 36px 40px;
    color: #fff;
    text-decoration: none;
    transition: background .18s;
}

.tps .tps-dir:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.tps .tps-dir:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.tps .tps-dir:hover {
    background: rgba(242, 101, 34, .06);
}

/* иконка — SVG в разметке, линии цвета currentColor */
.tps .tps-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 330px;
    margin-bottom: 22px;
    color: #aeb6c4;
    transition: color .18s;
}

.tps .tps-ico svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tps .tps-dir:hover .tps-ico {
    color: #f26522;
}

.tps .tps-dir-t {
    display: block;
    margin-bottom: 10px;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.55;
    transition: color .18s;
}

.tps .tps-dir:hover .tps-dir-t {
    color: #ff7a3d;
}

.tps .tps-dir-x {
    display: block;
    max-width: 460px;
    color: rgba(255, 255, 255, .62);
    font-size: 16px;
    line-height: 1.55;
}

.tps .tps-go {
    display: inline-block;
    margin-top: 16px;
    color: #ff7a3d;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .18s, transform .18s;
}

.tps .tps-dir:hover .tps-go,
.tps .tps-dir:focus-visible .tps-go {
    opacity: 1;
    transform: none;
}

/* на сенсорных экранах наведения нет — подпись видна сразу */
@media (hover: none) {
    .tps .tps-go {
        opacity: 1;
        transform: none;
    }
}

/* ===== Блоки направлений: заголовок + карточки (как .tpBox на страницах направлений) ===== */
.tps .tps-branch {
    padding-top: 50px;
}

.tps .tps-branch + .tps-branch {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.tps .tps-bh {
    margin: 0 0 50px;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.2;
}

.tps .tps-bh a {
    color: inherit;
    text-decoration: none;
    transition: color .18s;
}

.tps .tps-bh a:hover {
    color: #ff7a3d;
}

.tps .tps-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 27.5px;
}

.tps .tps-card {
    display: block;
    margin-bottom: 70px;
    color: #fff;
    text-decoration: none;
}

.tps .tps-ph {
    display: block;
    aspect-ratio: 380 / 257;
    overflow: hidden;
    background: #1b2130;
}

.tps .tps-ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.tps .tps-card:hover img {
    transform: scale(1.04);
}

.tps .tps-card h3 {
    margin: 16px 0 0;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: normal;
    text-transform: uppercase;
    transition: color .18s;
}

.tps .tps-card h3::after {
    content: "";
    display: block;
    width: 57px;
    height: 3px;
    margin-top: 10px;
    background: #FF5A00;
}

.tps .tps-card:hover h3 {
    color: #ff7a3d;
}

/* ===== Планшет ===== */
@media (max-width: 1080px) {
    .tps .tps-dir {
        padding: 26px 22px 30px;
    }

    .tps .tps-ico {
        height: 240px;
    }

    .tps .tps-dir-t {
        font-size: 21px;
    }

    .tps .tps-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
    }
}

/* ===== Телефон ===== */
@media (max-width: 767px) {
    .tps .tps-top {
        padding-top: 16px;
    }

    .tps .tps-h1,
    .tps .tps-bh {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .tps .tps-dirs {
        grid-template-columns: minmax(0, 1fr);
    }

    .tps .tps-dir:nth-child(n) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .tps .tps-dir:last-child {
        border-bottom: 0;
    }

    .tps .tps-ico {
        height: 200px;
    }

    .tps .tps-branch {
        padding-top: 40px;
    }

    .tps .tps-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .tps .tps-card {
        margin-bottom: 40px;
    }
}
