/*
Theme Name: TruckHACKER Firmware
Theme URI: https://firmware-truck.ru/
Author: TruckHACKER
Description: Фирменная тема для каталога, определения и заказа прошивок TruckHACKER. Совместима с плагином TruckHACKER Firmware Store.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: truckhacker-firmware
*/

:root {
    --th-black: #080a0d;
    --th-black-soft: #0e1116;
    --th-panel: #15191f;
    --th-panel-raised: #1c2129;
    --th-line: #2a3039;
    --th-line-bright: #414954;
    --th-white: #f5f5f2;
    --th-muted: #a0a6ae;
    --th-orange: #ff6b35;
    --th-orange-hot: #ff8254;
    --th-orange-dark: #cc4218;
    --th-green: #56d595;
    --th-red: #ff7777;
    --th-container: 1240px;
    --th-radius: 18px;
    --th-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    --thfw-orange: var(--th-orange);
    --thfw-orange-dark: var(--th-orange-dark);
    --thfw-bg: var(--th-black-soft);
    --thfw-panel: var(--th-panel);
    --thfw-panel-2: var(--th-panel-raised);
    --thfw-text: var(--th-white);
    --thfw-muted: var(--th-muted);
    --thfw-line: var(--th-line);
    --thfw-green: var(--th-green);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
    min-width: 320px;
    margin: 0;
    color: var(--th-white);
    background:
        radial-gradient(circle at 82% 5%, rgba(255, 107, 53, .09), transparent 28rem),
        linear-gradient(180deg, #0a0d11 0, var(--th-black) 36rem);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .th-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #111318; background: var(--th-orange); }

.th-container { width: min(var(--th-container), calc(100% - 48px)); margin-inline: auto; }
.th-main { min-height: 54vh; overflow: hidden; }
.th-skip {
    position: fixed;
    z-index: 99999;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: #111318;
    background: var(--th-orange);
    border-radius: 8px;
    font-weight: 800;
    transform: translateY(-150%);
}
.th-skip:focus { transform: none; }

.th-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: 86px;
    background: rgba(8, 10, 13, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}
.th-header-inner { display: flex; min-height: 86px; align-items: center; gap: 38px; }
.th-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 13px; text-decoration: none; }
.th-brand img { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: contain; }
.th-brand > span { display: flex; flex-direction: column; line-height: 1; }
.th-brand strong, .th-footer-wordmark {
    color: var(--th-white);
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -.055em;
}
.th-brand strong span, .th-footer-wordmark span { color: var(--th-orange); }
.th-brand small {
    margin-top: 6px;
    color: var(--th-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.th-navigation { margin-left: auto; }
.th-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.th-menu li { position: relative; margin: 0; }
.th-menu a {
    display: block;
    padding: 10px 0;
    color: #c8cbd0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}
.th-menu a:hover, .th-menu a:focus-visible, .th-menu .current-menu-item > a { color: var(--white, #fff); }
.th-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 12px 16px;
    background: var(--th-panel-raised);
    border: 1px solid var(--th-line);
    border-radius: 12px;
    list-style: none;
    box-shadow: var(--th-shadow);
}
.th-menu li:hover > .sub-menu, .th-menu li:focus-within > .sub-menu { display: block; }
.th-header-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.th-language.thfw-lang { gap: 2px; margin: 0; padding: 3px; background: #11151a; border-color: var(--th-line); }
.th-language.thfw-lang a { min-width: 39px; padding: 6px 8px; color: var(--th-muted); font-size: 12px; }
.th-language.thfw-lang a.active { color: #111318; background: var(--th-orange); }
.th-menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    color: white;
    background: transparent;
    border: 1px solid var(--th-line);
    border-radius: 10px;
    cursor: pointer;
}
.th-menu-toggle span { width: 19px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.th-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.th-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.th-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.thfw-store,
.thfw-page {
    width: min(var(--th-container), calc(100% - 48px));
    margin: 0 auto;
    padding: 0;
    color: var(--th-white);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
}
.thfw-store h1, .thfw-store h2, .thfw-store h3, .thfw-page h1 { color: var(--th-white); }
.thfw-store p, .thfw-page p { color: var(--th-muted); }

.th-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    min-height: 640px;
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    margin: 0;
    padding: clamp(70px, 8vw, 116px) 0 clamp(66px, 8vw, 104px);
}
.th-hero::before {
    position: absolute;
    z-index: -1;
    top: 14%;
    right: -12%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(255, 107, 53, .11), transparent 66%);
    content: "";
    pointer-events: none;
}
.th-hero-copy { position: relative; z-index: 2; }
.th-hero-copy > .thfw-brand, .th-hero-copy > .thfw-lang { display: none; }
.th-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px !important;
    color: var(--th-orange) !important;
    font-size: 12px !important;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.th-eyebrow::before { width: 25px; height: 2px; background: currentColor; content: ""; }
.thfw-store-head.th-hero h1 {
    max-width: 750px;
    margin: 0;
    font-size: clamp(46px, 6.2vw, 82px);
    font-weight: 900;
    letter-spacing: -.065em;
    line-height: .98;
    text-wrap: balance;
}
.thfw-store-head.th-hero > .th-hero-copy > p:not(.th-eyebrow) {
    max-width: 650px;
    margin: 27px 0 0;
    color: #b5bac1;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.68;
}
.th-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 38px; }
.th-button, .thfw-primary {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 44px;
    padding: 14px 20px 14px 25px;
    color: #111318 !important;
    background: var(--th-orange);
    border: 1px solid var(--th-orange);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(255, 93, 36, .16);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .025em;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.th-button:hover, .th-button:focus-visible, .thfw-primary:hover, .thfw-primary:focus-visible {
    color: #111318 !important;
    background: var(--th-orange-hot);
    border-color: var(--th-orange-hot);
    box-shadow: 0 16px 40px rgba(255, 93, 36, .23);
    transform: translateY(-2px);
}
.th-button span { font-size: 20px; }
.th-text-link { color: var(--th-white); font-size: 14px; font-weight: 800; text-decoration: none; }
.th-text-link span { display: inline-block; margin-left: 7px; color: var(--th-orange); transition: transform .2s ease; }
.th-text-link:hover span { transform: translateX(4px); }
.th-hero-visual {
    position: relative;
    overflow: hidden;
    min-height: 490px;
    background: linear-gradient(145deg, rgba(33, 38, 46, .88), rgba(11, 14, 18, .98));
    border: 1px solid var(--th-line);
    border-radius: 3px 42px 3px 3px;
    box-shadow: var(--th-shadow);
}
.th-hero-visual::after {
    position: absolute;
    top: 64px;
    right: 0;
    width: 4px;
    height: 125px;
    background: var(--th-orange);
    box-shadow: 0 0 30px rgba(255, 107, 53, .5);
    content: "";
}
.th-hero-visual img { position: absolute; inset: 51px 0 39px; width: 100%; height: calc(100% - 90px); object-fit: cover; }
.th-visual-heading, .th-visual-bottom {
    position: absolute;
    z-index: 2;
    right: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #9ea4ac;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}
.th-visual-heading { top: 22px; }
.th-visual-bottom { bottom: 19px; color: #dadee3; }
.th-signal-line { flex: 1; height: 1px; margin: 0 18px; background: linear-gradient(90deg, var(--th-line), var(--th-orange), var(--th-line)); }

.th-process { margin: 0 0 clamp(80px, 10vw, 130px); }
.th-process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-block: 1px solid var(--th-line); list-style: none; }
.th-process li { display: flex; min-height: 180px; gap: 20px; padding: 35px 30px; border-right: 1px solid var(--th-line); }
.th-process li:last-child { border-right: 0; }
.th-step-number { flex: 0 0 auto; color: var(--th-orange); font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 900; }
.th-process h2 { margin: 0 0 9px; font-size: 19px; letter-spacing: -.025em; }
.th-process p { margin: 0; font-size: 14px; line-height: 1.65; }

.thfw-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; scroll-margin-top: 112px; }
.thfw-catalog > h2 {
    grid-column: 1 / -1;
    max-width: 780px;
    margin: 0 0 28px;
    font-size: clamp(32px, 5vw, 55px);
    letter-spacing: -.05em;
    line-height: 1.03;
}
.thfw-catalog > h2::before {
    display: block;
    margin-bottom: 17px;
    color: var(--th-orange);
    content: "MODULE SOLUTIONS";
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.thfw-offer-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: linear-gradient(155deg, var(--th-panel-raised), #101318);
    border: 1px solid var(--th-line);
    border-radius: 14px;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.thfw-offer-card:hover { border-color: #555d68; box-shadow: 0 20px 55px rgba(0,0,0,.24); transform: translateY(-4px); }
.thfw-offer-card::after { position: absolute; top: 0; right: 0; width: 46px; height: 3px; background: var(--th-orange); content: ""; }
.thfw-offer-card > img, .thfw-offer-placeholder {
    display: grid;
    width: 100%;
    height: 205px;
    object-fit: cover;
    place-items: center;
    color: var(--th-orange);
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.025) 48% 52%, transparent 52%),
        radial-gradient(circle at 50% 55%, #303740, #15191f 62%);
    font-size: 52px;
    font-weight: 950;
    letter-spacing: -.06em;
}
.thfw-offer-card > div:last-child { display: flex; min-height: 295px; flex-direction: column; padding: 26px; }
.thfw-offer-card small { color: var(--th-orange); font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: .1em; }
.thfw-offer-card h3 { margin: 11px 0 8px; font-size: 25px; letter-spacing: -.035em; }
.thfw-offer-card p { margin-top: 0; font-size: 14px; }
.thfw-offer-card details { margin: 11px 0; color: var(--th-muted); font-size: 14px; }
.thfw-offer-card summary { color: #e5e7ea; }
.thfw-price { margin-top: auto; padding-top: 20px; color: var(--th-white); font-size: 27px; letter-spacing: -.04em; }
.thfw-empty { grid-column: 1 / -1; padding: 30px; background: var(--th-panel); border: 1px solid var(--th-line); border-radius: 12px; }

.thfw-order-box {
    display: grid;
    grid-template-columns: minmax(250px, .75fr) minmax(0, 1.45fr);
    grid-template-rows: auto 1fr;
    gap: 6px clamp(35px, 7vw, 90px);
    margin: clamp(80px, 10vw, 130px) 0 0;
    padding: clamp(28px, 5vw, 62px);
    background:
        linear-gradient(100deg, rgba(255,107,53,.07), transparent 35%),
        var(--th-panel);
    border: 1px solid var(--th-line);
    border-left: 4px solid var(--th-orange);
    border-radius: 4px 18px 18px 4px;
    scroll-margin-top: 112px;
}
.thfw-order-box h2 { grid-column: 1; margin: 0; font-size: clamp(30px, 4vw, 47px); letter-spacing: -.05em; line-height: 1.05; }
.thfw-order-box > p { grid-column: 1; margin: 18px 0 0; font-size: 15px; }
.thfw-order-box form { grid-column: 2; grid-row: 1 / span 2; }
.thfw-fields { gap: 17px; }
.thfw-fields label > span { margin-bottom: 8px; color: #c7cbd1; font-size: 13px; }
.thfw-fields input, .thfw-fields select {
    min-height: 55px;
    padding: 12px 14px;
    color: var(--th-white);
    background: #0f1318;
    border: 1px solid #343b45;
    border-radius: 8px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.thfw-fields input:focus, .thfw-fields select:focus { border-color: var(--th-orange); box-shadow: 0 0 0 3px rgba(255,107,53,.13); }
.thfw-fields select option { color: var(--th-white); background: #15191f; }
.thfw-fields input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 11px;
    color: #111318;
    background: #d8dadd;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 800;
}
.thfw-consent { color: var(--th-muted); font-size: 13px; }
.thfw-consent a, .thfw-legal-links a, .thfw-page a { color: var(--th-orange-hot); }
.thfw-primary { min-width: 200px; }
.thfw-primary:disabled { opacity: .55; transform: none; }
.thfw-result { margin: 24px 0 0; }
.thfw-message, .thfw-order-state, .thfw-identity { background: var(--th-panel-raised); border-color: var(--th-line); border-radius: 12px; }
.thfw-message.is-warning { border-color: #9c6b29; }
.thfw-result.is-error .thfw-message, .thfw-message.is-error { color: #ffb5b5; border-color: #a64848; }
.thfw-solutions { gap: 14px; }
.thfw-solution { background: var(--th-panel-raised); border-color: var(--th-line); border-radius: 11px; transition: transform .2s ease, border-color .2s ease; }
.thfw-solution:hover { border-color: var(--th-orange); }

.thfw-store > .thfw-legal-links { margin-bottom: 90px; }
.thfw-page { max-width: 980px; padding: clamp(55px, 8vw, 100px) 0 clamp(75px, 9vw, 120px); }
.thfw-page > .thfw-lang { display: none; }
.thfw-page > h1 { margin: 0 0 34px; font-size: clamp(39px, 6vw, 65px); letter-spacing: -.055em; line-height: 1.02; }
.thfw-page > h1::before {
    display: block;
    margin-bottom: 18px;
    color: var(--th-orange);
    content: "TRUCKHACKER / INFO";
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .16em;
}
.thfw-document { font-size: 17px; }
.thfw-document p, .thfw-page > p { max-width: 820px; }
.thfw-details { margin: 34px 0 0; padding: clamp(22px, 4vw, 38px); background: var(--th-panel); border: 1px solid var(--th-line); border-radius: 14px; }
.thfw-identity dl > div, .thfw-details > div { grid-template-columns: minmax(150px, .58fr) 1.42fr; border-color: var(--th-line); }
.thfw-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thfw-contacts a { background: var(--th-panel); border-color: var(--th-line); }
.thfw-legal-links { gap: 13px 25px; border-color: var(--th-line); font-size: 13px; }

.th-standalone-hero, .th-editorial { padding-block: clamp(70px, 10vw, 135px); }
.th-standalone-hero { max-width: 900px; min-height: 62vh; }
.th-standalone-hero h1, .th-editorial > h1 { max-width: 900px; margin: 0; font-size: clamp(44px, 7vw, 78px); letter-spacing: -.06em; line-height: 1; }
.th-standalone-hero > p:not(.th-eyebrow) { max-width: 680px; margin: 27px 0 36px; color: var(--th-muted); font-size: 19px; }
.th-editorial { max-width: 940px; }
.th-editorial > h1 { margin-bottom: 42px; }
.th-prose { color: #c5c8cd; font-size: 17px; }
.th-prose h2, .th-prose h3 { margin-top: 2em; color: var(--th-white); line-height: 1.2; }
.th-prose a, .th-post-card a { color: var(--th-orange-hot); }
.th-prose blockquote { margin: 30px 0; padding: 5px 0 5px 22px; border-left: 3px solid var(--th-orange); }
.th-post-card { padding: 28px 0; border-top: 1px solid var(--th-line); }
.th-post-card h2 { margin: 4px 0; font-size: 31px; }
.th-post-card h2 a { color: var(--th-white); text-decoration: none; }
.th-post-date { color: var(--th-orange); font-size: 12px; font-weight: 800; }
.th-post-image { margin: 0 0 36px; border-radius: 14px; }

.th-footer { margin-top: 20px; background: #07090c; border-top: 1px solid var(--th-line); }
.th-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; padding-block: clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--th-line); }
.th-contact-copy h2 { max-width: 560px; margin: 0; font-size: clamp(40px, 5.5vw, 68px); letter-spacing: -.06em; line-height: .98; }
.th-contact-copy > p:last-child { max-width: 530px; margin: 23px 0 0; color: var(--th-muted); }
.th-contact-links { display: grid; gap: 10px; }
.th-contact-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 20px;
    padding: 22px 55px 22px 23px;
    background: var(--th-panel);
    border: 1px solid var(--th-line);
    border-radius: 11px;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.th-contact-card:hover { background: var(--th-panel-raised); border-color: #505862; }
.th-contact-name { grid-column: 1; color: var(--th-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.th-contact-card strong { grid-column: 1; font-size: clamp(19px, 3vw, 26px); letter-spacing: -.02em; }
.th-contact-arrow { position: absolute; top: 50%; right: 23px; color: var(--th-orange); font-size: 24px; transform: translateY(-50%); }
.th-contact-email { padding: 12px 2px; color: var(--th-orange-hot); font-weight: 700; text-decoration: none; }
.th-footer-bottom { display: grid; grid-template-columns: 1.25fr 1fr auto; gap: 45px; padding-block: 48px; }
.th-footer-wordmark { display: inline-block; font-size: 28px; text-decoration: none; }
.th-footer-identity p { max-width: 420px; margin: 13px 0 0; color: #8f949c; font-size: 12px; }
.th-footer-identity .th-registration { margin-top: 5px; }
.th-footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.th-footer-nav a { color: #b2b6bd; font-size: 13px; text-decoration: none; }
.th-footer-nav a:hover { color: var(--th-white); }
.th-copyright { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; color: #757a82; font-family: ui-monospace, Consolas, monospace; font-size: 10px; letter-spacing: .06em; }

:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--th-orange); outline-offset: 3px; }

@media (max-width: 980px) {
    body.admin-bar .th-header { top: 46px; }
    .th-header-inner { gap: 16px; }
    .th-menu-toggle { display: inline-flex; }
    .th-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 24px;
        left: 24px;
        display: none;
        margin: 0;
        padding: 14px 20px;
        background: rgba(16, 20, 25, .98);
        border: 1px solid var(--th-line);
        border-radius: 0 0 13px 13px;
        box-shadow: 0 22px 50px rgba(0,0,0,.38);
    }
    .th-navigation.is-open { display: block; }
    .th-menu { align-items: stretch; flex-direction: column; gap: 0; }
    .th-menu a { padding: 11px 0; }
    .th-menu .sub-menu { position: static; display: block; padding: 0 0 0 15px; background: transparent; border: 0; box-shadow: none; }
    .th-hero { grid-template-columns: 1fr; min-height: 0; }
    .th-hero-copy { max-width: 800px; }
    .th-hero-visual { min-height: 420px; }
    .thfw-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .thfw-order-box { grid-template-columns: 1fr; }
    .thfw-order-box h2, .thfw-order-box > p, .thfw-order-box form { grid-column: 1; grid-row: auto; }
    .thfw-order-box form { margin-top: 25px; }
    .th-contact { grid-template-columns: 1fr; }
    .th-footer-bottom { grid-template-columns: 1fr 1fr; }
    .th-copyright { grid-column: 1 / -1; align-items: flex-start; }
}

@media (max-width: 700px) {
    .th-container, .thfw-store, .thfw-page { width: min(100% - 28px, var(--th-container)); }
    .th-header, .th-header-inner { min-height: 72px; }
    .th-brand img { width: 44px; height: 44px; }
    .th-brand strong { font-size: 20px; }
    .th-brand small { display: none; }
    .th-language.thfw-lang a { min-width: 34px; padding: 5px 6px; }
    .th-header-tools { gap: 7px; }
    .th-navigation { right: 14px; left: 14px; }
    .th-hero { gap: 42px; padding: 62px 0 72px; }
    .thfw-store-head.th-hero h1 { font-size: clamp(41px, 13vw, 64px); }
    .th-hero-actions { align-items: stretch; flex-direction: column; }
    .th-button { width: 100%; justify-content: space-between; }
    .th-hero-visual { min-height: 330px; border-radius: 2px 27px 2px 2px; }
    .th-hero-visual img { inset-block: 42px 32px; height: calc(100% - 74px); }
    .th-process ol { grid-template-columns: 1fr; }
    .th-process li { min-height: 0; padding: 26px 4px; border-right: 0; border-bottom: 1px solid var(--th-line); }
    .th-process li:last-child { border-bottom: 0; }
    .thfw-catalog, .thfw-solutions, .thfw-fields, .thfw-contacts { grid-template-columns: 1fr; }
    .thfw-catalog > h2 { font-size: 39px; }
    .thfw-offer-card > img, .thfw-offer-placeholder { height: 175px; }
    .thfw-order-box { margin-inline: -4px; padding: 25px 20px; }
    .thfw-primary { width: 100%; }
    .thfw-identity dl > div, .thfw-details > div { grid-template-columns: 1fr; gap: 3px; }
    .thfw-page { padding-top: 60px; }
    .th-footer-bottom { grid-template-columns: 1fr; }
    .th-copyright { grid-column: auto; }
}

@media (max-width: 370px) {
    .th-language.thfw-lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

