/* Страницы отраслевых решений — netcat_template/module/industry_page.php (макет 29.09.2026).
   Все правила — внутри main.tpi: другие страницы компонента «Статья» не затрагиваются. */

html:has(main.tpi) {
    scroll-behavior: smooth;
}

.tpi #tpi-series,
.tpi #raschet {
    scroll-margin-top: 130px;
}

/* ===== Фоны секций ===== */
.tpi .tpi-dark,
.tpi .tpi-dark2 {
    color: #fff;
    background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 14px 14px;
}

.tpi .tpi-dark {
    background-color: #252c3d;
}

.tpi .tpi-dark2 {
    background-color: #212838;
}

.tpi .tpi-light {
    background: #fff;
    color: #252c3d;
}

/* ===== Первый экран ===== */
.tpi .tpi-hero {
    padding: 26px 0 56px;
}

.tpi .tpi-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 44px;
    align-items: start;
}

.tpi .tpi-h1 {
    margin: 0 0 24px;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
}

.tpi .tpi-gal {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.tpi .tpi-gal img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s;
}

.tpi .tpi-gal img.is-on {
    opacity: 1;
}

.tpi .tpi-gal-btn {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .15s;
}

.tpi .tpi-gal--js .tpi-gal-btn {
    display: flex;
}

.tpi .tpi-gal-btn:hover {
    background: #f26522;
}

.tpi .tpi-gal-prev {
    left: 14px;
}

.tpi .tpi-gal-next {
    right: 14px;
}

.tpi .tpi-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}

.tpi .tpi-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: width .2s, background .2s;
}

.tpi .tpi-dots button.is-on {
    width: 24px;
    border-radius: 4px;
    background: #f26522;
}

.tpi .tpi-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tpi .tpi-card {
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
}

.tpi .tpi-card p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 16px;
    line-height: 22px;
    text-align: justify;
}

/* ===== Кнопки ===== */
.tpi .tpi-btn {
    display: block;
    padding: 18px 24px;
    border: 0;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .03em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.tpi .tpi-btn--o {
    background: #f26522;
    color: #fff;
}

.tpi .tpi-btn--o:hover {
    background: #ff7a3d;
    color: #fff;
}

.tpi .tpi-btn--g {
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: #fff;
}

.tpi .tpi-btn--g:hover {
    border-color: #f26522;
    color: #ff7a3d;
}

/* ===== Секции ===== */
.tpi .tpi-sec {
    padding: 60px 0;
}

.tpi .tpi-h {
    margin: 0 0 16px;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.25;
    letter-spacing: .02em;
}

.tpi .tpi-sub {
    max-width: 96ch;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .62);
    font-size: 16px;
    line-height: 22px;
    text-align: justify;
}

.tpi .tpi-light .tpi-sub {
    color: #667;
}

.tpi .tpi-more {
    margin-top: 34px;
    text-align: center;
}

.tpi .tpi-more a {
    border-bottom: 1px solid rgba(255, 122, 61, .4);
    color: #ff7a3d;
    font-weight: 600;
    text-decoration: none;
}

.tpi .tpi-more a:hover {
    border-bottom-color: #ff7a3d;
}

/* ===== Реализованные объекты ===== */
.tpi .tpi-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.tpi .tpi-case {
    display: block;
    text-decoration: none;
}

.tpi .tpi-case-ph {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1b2231;
}

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

.tpi .tpi-case:hover .tpi-case-ph img {
    transform: scale(1.03);
}

.tpi .tpi-case h3 {
    margin: 16px 0 0;
    color: #ff7a3d;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    text-transform: uppercase;
}

.tpi .tpi-case h3::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 8px;
    background: #f26522;
}

.tpi .tpi-case-s {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    font-weight: 600;
}

/* ===== Порядок расчёта ===== */
.tpi .tpi-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.tpi .tpi-step {
    position: relative;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
}

.tpi .tpi-step::after {
    content: "›";
    position: absolute;
    top: 64px;
    right: -13px;
    color: #f26522;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.tpi .tpi-step:last-child::after {
    display: none;
}

.tpi .tpi-n {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #252c3d;
    font-size: 13px;
    font-weight: 800;
}

.tpi .tpi-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}

.tpi .tpi-ico img {
    width: auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.tpi .tpi-ico svg {
    width: 100%;
    height: 80px;
}

.tpi .tpi-step p {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.tpi .tpi-step small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .62);
    font-size: 12.5px;
    font-weight: 400;
}

.tpi .tpi-calc-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.tpi .tpi-calc-cta .tpi-btn {
    min-width: 250px;
}

.tpi .tpi-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-left: 12px;
}

.tpi .tpi-contacts div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tpi .tpi-contacts span {
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tpi .tpi-contacts a {
    color: #ff7a3d;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.tpi .tpi-contacts a:hover {
    color: #fff;
}

/* ===== Варианты конструкции ===== */
.tpi .tpi-series {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.tpi .tpi-serie {
    display: block;
    color: #fff;
    text-decoration: none;
}

.tpi .tpi-serie-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.tpi .tpi-serie-l {
    font-family: Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
}

.tpi .tpi-serie-roof {
    height: 48px;
    opacity: .9;
}

.tpi .tpi-serie-iso {
    display: block;
    width: 100%;
    height: 132px;
    margin-bottom: 16px;
    object-fit: contain;
    object-position: left center;
    transition: transform .15s;
}

.tpi .tpi-serie:hover .tpi-serie-iso {
    transform: translateY(-3px);
}

.tpi .tpi-serie h3 {
    margin: 0 0 12px;
    color: #ff7a3d;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
}

.tpi .tpi-serie h3::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 8px;
    background: #f26522;
}

.tpi .tpi-serie-w {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    font-weight: 600;
}

.tpi .tpi-serie-x {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: 13.5px;
    line-height: 1.55;
}

/* ===== Лицензии и сертификаты (светлая секция) ===== */
.tpi .tpi-certs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.tpi .tpi-certs a {
    display: block;
    overflow: hidden;
    border: 1px solid #e2e7ec;
    background: #fff;
    transition: border-color .15s, transform .15s;
}

.tpi .tpi-certs a:hover {
    border-color: #f26522;
    transform: translateY(-2px);
}

.tpi .tpi-certs img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.tpi .tpi-light .tpi-more {
    margin-top: 20px;
    text-align: left;
}

.tpi .tpi-light .tpi-more a {
    border-bottom: 0;
    color: #f26522;
    font-weight: 400;
}

/* ===== Текст страницы (как есть, оформление старых классов) ===== */
.tpi .tpi-text {
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    line-height: 1.6;
}

.tpi .tpi-text p {
    max-width: 900px;
    margin: 0 0 16px;
}

.tpi .tpi-text p:empty {
    display: none;
}

.tpi .tpi-text .zakolovok_foot {
    display: block;
    margin: 0 0 15px;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 25px;
    line-height: 1.3;
}

.tpi .tpi-text .zakolovok_foot.popor {
    margin-top: 44px;
}

.tpi .tpi-text h3 {
    margin: 44px 0 20px;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.25;
}

.tpi .tpi-text h4 {
    margin: 30px 0 14px;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 21px;
}

.tpi .tpi-text > :first-child,
.tpi .tpi-text > :first-child > .zakolovok_foot {
    margin-top: 0;
}

.tpi .tpi-text b,
.tpi .tpi-text strong {
    color: #fff;
}

.tpi .tpi-text ul,
.tpi .tpi-text ol {
    max-width: 900px;
    margin: 0 0 30px;
    padding-left: 22px;
}

.tpi .tpi-text ul {
    list-style: circle;
}

.tpi .tpi-text li {
    margin: 0 0 10px;
}

.tpi .tpi-text a:not([class]),
.tpi .tpi-text a.orange,
.tpi .tpi-text .oranget {
    color: #ff7a3d;
}

.tpi .tpi-text a:not([class]):hover,
.tpi .tpi-text a.orange:hover {
    color: #fff;
}

.tpi .tpi-text blockquote,
.tpi .tpi-text .quote {
    max-width: 900px;
    margin: 0 0 16px;
    padding: 16px 20px;
    border-left: 3px solid #f26522;
    background: rgba(255, 255, 255, .04);
}

.tpi .tpi-text .btn2 {
    max-width: 300px;
    margin: 10px 0 20px;
}

/* большие фото в тексте — фоновые блоки .photo_full, по ширине текста */
.tpi .tpi-text .photo_full {
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 32px 0 40px;
    background-color: #1b2231;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===== «Возможно, вас также заинтересует» — карточки как на страницах направлений (.tpBox из main.css) ===== */
.tpi .tpi-related h3 {
    margin: 0 0 40px;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.25;
    letter-spacing: .02em;
}

.tpi .tpi-related .tpBox article {
    margin-bottom: 30px;
}

/* ===== Форма ===== */
.tpi .tpi-form {
    padding-bottom: 80px;
}

/* ===== Планшет ===== */
@media (max-width: 1080px) {
    .tpi .tpi-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .tpi .tpi-cases,
    .tpi .tpi-steps,
    .tpi .tpi-series {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tpi .tpi-step::after {
        display: none;
    }

    .tpi .tpi-certs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .tpi .tpi-sec {
        padding: 44px 0;
    }

    .tpi .tpi-cases,
    .tpi .tpi-steps,
    .tpi .tpi-series {
        grid-template-columns: minmax(0, 1fr);
    }

    .tpi .tpi-sub,
    .tpi .tpi-card p {
        text-align: left;
    }

    .tpi .tpi-calc-cta .tpi-btn {
        width: 100%;
        min-width: 0;
    }

    .tpi .tpi-contacts {
        margin-left: 0;
    }

    .tpi .tpi-gal-btn {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .tpi .tpi-text h3 {
        font-size: 23px;
    }

    .tpi .tpi-text .zakolovok_foot {
        font-size: 21px;
    }
}
