/*
 * KrAstra — mobile dark theme
 * Add this stylesheet AFTER the existing styles.css.
 * Mobile-first overrides for screens up to 767px.
 *
 * Design:
 * - dark background
 * - orange card frames
 * - comfortable mobile spacing
 * - high-contrast typography
 * - services and process cards use the same visual language
 */

@media (max-height: 399px) {

    .t843__blockimg {
        display: none !important;
    }
}

@media screen and (max-width: 767px) {

    /* ================================================================
       GLOBAL
       ================================================================ */

    html,
    body,
    #allrecords {
        background: #0b0b0b !important;
        color: #f5f5f5 !important;
    }

    #allrecords {
        overflow-x: hidden;
    }

        #allrecords .t-text,
        #allrecords .t-descr,
        #allrecords .t-heading,
        #allrecords .t-title,
        #allrecords .t-name,
        #allrecords .t-uptitle,
        #allrecords .t-section__title,
        #allrecords .t-section__descr {
            color: #f5f5f5 !important;
        }

        #allrecords a:not(.t-card__link) {
            color: #ff8a00 !important;
        }

    /* ================================================================
       MOBILE HEADER / MENU
       ================================================================ */

    .tmenu-mobile {
        background: #0b0b0b !important;
    }

    #rec4133367503 .t-menu-base__maincontainer {
        background-color: #0b0b0b !important;
    }

    #rec4133367503 .t-menu-burger_span {
        background-color: #ff8a00 !important;
    }

    /* ================================================================
       HERO
       ================================================================ */
    #rec4183614503 {
        background: #0b0b0b !important;
    }

        #rec4183614503 .t1241__container {
            min-height: auto;
            padding: 55px 20px 45px;
            border: 1px solid #ff8a00;
            border-radius: 14px;
        }

        #rec4183614503 .t1241__title {
            color: #ffffff !important;
            font-size: 34px !important;
            line-height: 1.08 !important;
            font-weight: 500;
            margin-bottom: 20px;
        }

        #rec4183614503 .t1241__descr {
            color: #d6d6d6 !important;
            font-size: 17px !important;
            line-height: 1.5 !important;
            opacity: 1;
        }

        #rec4183614503 .t1241__cover {
            border-radius: 0 !important;
        }

    /* ================================================================
       SECTIONS
       ================================================================ */

    .t843 {
        border-top: 1px solid #ff8a00;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .t-rec_pt_90,
    .t-rec_pt_105 {
        padding-top: 45px;
    }

    .t-rec_pb_150,
    .t-rec_pb_105 {
        padding-bottom: 75px;
    }

    #rec4133366803,
    #rec4155612203 {
        background: #0b0b0b !important;
        padding-top: 25px;
        padding-bottom: 25px;
    }

        #rec4133366803 .t-section__title,
        #rec4155612203 .t-section__title {
            color: #ffffff !important;
            font-size: 28px !important;
            line-height: 1.15 !important;
            margin-bottom: 14px !important;
        }

        #rec4133366803 .t-section__descr,
        #rec4155612203 .t-section__descr {
            color: #bdbdbd !important;
            font-size: 16px !important;
            line-height: 1.5 !important;
            margin-bottom: 28px !important;
        }

        /* ================================================================
       ORANGE FRAME CARDS
       ================================================================ */

        #rec4133366803 .t-card,
        #rec4133366803 .t-card__col,
        #rec4133366803 .t-card__link,
        #rec4155612203 .t-card,
        #rec4155612203 .t-card__col,
        #rec4155612203 .t-card__link {
            box-sizing: border-box;
        }

        #rec4133366803 .t-item,
        #rec4155612203 .t-item {
            background: #151515 !important;
            border: 1px solid #ff8a00 !important;
            border-radius: 14px !important;
            box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
            margin-bottom: 16px !important;
            overflow: hidden;
            padding: 14px 7px 14px 7px !important;
        }

        #rec4133366803 .t-card,
        #rec4155612203 .t-card {
            background: #151515 !important;
            border: 1px solid #ff8a00 !important;
            border-radius: 14px !important;
            box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
            margin-bottom: 16px !important;
            padding: 22px 20px !important;
            overflow: hidden;
        }

            #rec4133366803 .t-card:last-child,
            #rec4155612203 .t-card:last-child {
                margin-bottom: 0 !important;
            }

        /* If card content is the clickable element */
        #rec4133366803 .t-card__link,
        #rec4155612203 .t-card__link {
            display: block;
            color: inherit !important;
            text-decoration: none !important;
        }

        #rec4133366803 .t-card__title,
        #rec4155612203 .t-card__title {
            color: #ff9d2e !important;
            font-size: 22px !important;
            line-height: 1.2 !important;
            font-weight: 600 !important;
            margin-bottom: 10px !important;
        }

        #rec4133366803 .t-card__descr,
        #rec4155612203 .t-card__descr {
            color: #d5d5d5 !important;
            font-size: 16px !important;
            line-height: 1.5 !important;
        }

        /* Images/icons inside cards */
        #rec4133366803 .t-card img,
        #rec4155612203 .t-card img {
            max-width: 100%;
            height: auto;
        }

        /* ================================================================
       CARD HOVER / TAP FEEDBACK
       ================================================================ */

        #rec4133366803 .t-item:active,
        #rec4155612203 .t-item:active {
            border-color: #ffb45c !important;
            transform: scale(0.99);
        }

        #rec4133366803 .t-card:active,
        #rec4155612203 .t-card:active {
            border-color: #ffb45c !important;
            transform: scale(0.99);
        }

    /* ================================================================
       FOOTER
       ================================================================ */

    #rec4133367103 {
        background: #080808 !important;
        border-top: 1px solid #ff8a00;
        color: #f5f5f5 !important;
        padding-top: 30px;
        padding-bottom: 30px;
    }

        #rec4133367103 .t420__title,
        #rec4133367103 .t420__descr,
        #rec4133367103 .t420__logo-link,
        #rec4133367103 .t420__logo {
            color: #f5f5f5 !important;
        }

        #rec4133367103 a {
            color: #ff8a00 !important;
        }

    /* ================================================================
       MOBILE BUTTONS
       ================================================================ */

    #allrecords .t-btn,
    #allrecords button {
        min-height: 46px;
        border-radius: 10px !important;
    }

        /* Orange outline style for buttons */
        #allrecords .t-btn:not(.t-btn_sm) {
            border-color: #ff8a00 !important;
        }

    /* ================================================================
       SMALL PHONES
       ================================================================ */

    @media (max-width: 480px) {
        #rec4183614503 .t1241__cover {
            border-radius: 1000px 1000px 0px 0px;
        }
    }

    @media screen and (max-width: 380px) {

        #rec4183614503 .t1241__container {
            padding-left: 16px;
            padding-right: 16px;
        }

        #rec4183614503 .t1241__title {
            font-size: 30px !important;
        }

        #rec4133366803 .t-card,
        #rec4155612203 .t-card {
            padding: 18px 16px !important;
            border-radius: 12px !important;
        }

        #rec4133366803 .t-card__title,
        #rec4155612203 .t-card__title {
            font-size: 20px !important;
        }
    }
}
