/* Five visual directions for design review. The base layout remains shared. */
:root {
    --radius: 0;
    --shadow: none;
    --heading-font: Inter, Arial, sans-serif;
    --body-font: Inter, Arial, sans-serif;
    --theme-panel: #fff;
}

html {
    font-family: var(--body-font);
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 34px;
    padding: 3px 8px;
    border: 2px solid currentColor;
    line-height: .9;
}

.brand__mark::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: var(--accent);
    display: inline-block;
}

.brand__logo {
    display: none;
    width: 172px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

html[data-theme="industrial"] .brand__logo--industrial,
html[data-theme="architect"] .brand__logo--industrial,
html[data-theme="nordic"] .brand__logo--industrial,
html[data-theme="contrast"] .brand__logo--contrast,
html[data-theme="engineering"] .brand__logo--contrast {
    display: block;
}

.brand:has(.brand__logo[style]) .brand__mark {
    display: none;
}

.brand .brand__mark {
    display: none;
}

html[data-theme="nordic"] .brand__logo--nordic {
    width: 170px;
    height: 54px;
}

html[data-theme="architect"] .brand__logo--architect,
html[data-theme="engineering"] .brand__logo--editorial {
    width: 174px;
    height: 54px;
}

html[data-theme="industrial"] .brand__logo--industrial {
    width: 208px;
    height: 62px;
    transform: scale(1.12);
    transform-origin: left center;
}

.site-header .brand__logo,
.site-footer .brand__logo {
    filter: brightness(0) invert(1);
}

.site-header .brand__logo--stk,
.site-footer .brand__logo--stk {
    display: block;
    width: 172px;
    height: 56px;
    filter: none;
}

.home-page .site-header .brand {
    min-width: 190px;
}

html[data-theme="industrial"] .home-page .site-header .brand {
    min-width: 230px;
}

@media(max-width:700px) {
    .brand__logo,
    html[data-theme="nordic"] .brand__logo--nordic,
    html[data-theme="architect"] .brand__logo--architect,
    html[data-theme="engineering"] .brand__logo--editorial {
        width: 142px;
        height: 44px;
    }

    html[data-theme="industrial"] .brand__logo--industrial {
        width: 164px;
        height: 48px;
        transform: scale(1.06);
    }

    .home-page .site-header .brand,
    html[data-theme="industrial"] .home-page .site-header .brand {
        min-width: 150px;
    }
}

/* Final responsive overrides must come after all theme rules. */
@media(max-width:700px){
    .site-header__inner,.home-page .site-header__inner{min-height:68px!important;padding:10px 16px!important;flex-wrap:nowrap!important}
    .brand,.home-page .site-header .brand{min-width:0!important;flex:1}
    .brand__logo,html[data-theme="industrial"] .brand__logo--industrial{width:132px!important;height:40px!important}
    .menu-toggle{order:2;flex:0 0 42px}
    .header-action,.home-page .header-action{order:3;width:46px!important;min-width:46px!important;height:46px;min-height:46px;margin:0;padding:0;box-shadow:none!important}
    .header-action span,.home-page .header-action span{display:none}
    .header-action b,.home-page .header-action b{display:block;font-size:21px}
    .home-page .hero{min-height:610px!important;padding:48px 24px 36px!important;background-position:62% center!important}
    .hero h1{max-width:340px;font-size:clamp(38px,11vw,46px)!important;line-height:1.02!important}
    .hero__proof{grid-template-columns:1fr!important;gap:8px!important;margin-top:20px!important;padding-top:14px!important}
    .audience-switch{grid-template-columns:1fr;margin-top:18px}
    .category-grid,.product-grid{grid-template-columns:1fr!important}
}

/* Final typography contract: text rhythm is shared by every page. */
body,
button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif !important;
}

h1,
h2,
h3,
.brand span,
.product-card__body b,
.price {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: -0.7px;
}

h1 {
    font-size: clamp(40px, 4.6vw, 60px) !important;
    line-height: 1.04 !important;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(30px, 3vw, 38px) !important;
    line-height: 1.08 !important;
}

p,
li,
label,
input,
select,
textarea,
button,
.main-nav a,
.header-contact a,
.header-contact span {
    line-height: 1.45;
}

.page-intro h1,
.hero h1 {
    max-width: 760px;
}

.page-intro p:not(.eyebrow),
.hero p:not(.eyebrow) {
    line-height: 1.6;
}

/* Public product system: one header, one logo, one commercial hierarchy. */
html[data-theme="industrial"] {
    --heading-font: Arial, Helvetica, sans-serif;
    --body-font: Arial, Helvetica, sans-serif;
}

body .topline,
body.home-page .topline,
body:not(.home-page) .topline {
    background: #111915 !important;
    color: #cbd5cd;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

body .site-header,
body.home-page .site-header,
body:not(.home-page) .site-header {
    background: #1a231f !important;
    border-bottom: 1px solid rgba(255, 255, 255, .14) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    backdrop-filter: none !important;
}

body .site-header .brand,
body .site-header .main-nav a,
body .site-header .header-contact a {
    color: #fff !important;
}

body .site-header .brand small,
body .site-header .header-contact span {
    color: #aebbb1 !important;
}

body .site-header .main-nav a:hover {
    color: #d7a23a !important;
}

body .menu-toggle {
    background: #1a231f;
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

body.home-page .topline,
body.home-page .site-header {
    position: sticky;
    inset: auto;
}

body.home-page .site-header {
    top: 0;
}

body.home-page .hero {
    width: auto;
    margin-left: -40px;
    margin-right: -40px;
    min-height: 620px;
    padding-top: 80px;
}

body.home-page .stats,
body.home-page .trust-strip,
body.home-page .solution-section,
body.home-page .process-section,
body.home-page .services-section,
body.home-page .cta-band {
    width: auto;
    margin-left: -40px;
    margin-right: -40px;
}

.site-header__inner {
    min-height: 76px;
}

.brand__logo,
html[data-theme="industrial"] .brand__logo--industrial {
    width: 184px;
    height: 52px;
    transform: none;
}

.main-nav {
    justify-content: flex-start !important;
    gap: 22px !important;
}

.main-nav a {
    padding: 29px 0 !important;
}

.header-action {
    min-height: 44px;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(38px, 4.6vw, 62px);
    text-transform: none !important;
    letter-spacing: -1px !important;
}

.hero__content {
    max-width: 760px;
}

.hero__proof {
    max-width: 680px;
}

.category--tile,
.product-card,
.service-page-card {
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
}

.service-page-card img {
    display: block;
    width: calc(100% + 50px) !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: -25px -25px 18px !important;
}

.service-page-card h2 {
    margin-top: 0;
}

.category--tile:hover,
.product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(20, 35, 25, .09) !important;
}

.section-heading h2 {
    font-size: 36px !important;
    text-transform: none !important;
}

@media(max-width:1100px) {
    body.home-page .hero,
    body.home-page .stats,
    body.home-page .trust-strip,
    body.home-page .solution-section,
    body.home-page .process-section,
    body.home-page .services-section,
    body.home-page .cta-band {
        margin-left: -24px;
        margin-right: -24px;
    }
}

/* Keep full-bleed homepage bands stable on ultrawide and 4K displays. */
@media(min-width:1101px) {
    body.home-page .hero,
    body.home-page .stats,
    body.home-page .trust-strip,
    body.home-page .solution-section,
    body.home-page .process-section,
    body.home-page .services-section,
    body.home-page .cta-band {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    body.home-page .category-grid--tiles,
    body.home-page .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.home-page .production,
    body.home-page .decision-section,
    body.home-page .faq-section {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    body.home-page .process-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    body.home-page .project-gallery {
        grid-template-columns: 1.35fr 1fr 1fr;
    }

    body.home-page .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.home-page .cta-band {
        flex-direction: row;
    }
}

@media(max-width:700px) {
    body.home-page .hero {
        min-height: 600px;
        padding-top: 48px;
    }

    .brand__logo,
    html[data-theme="industrial"] .brand__logo--industrial {
        width: 148px;
        height: 44px;
    }

    .site-header__inner {
        min-height: 70px;
    }

    .section-heading h2 {
        font-size: 30px !important;
    }
}

/* Visual production cycle */
.stats {
    padding-top: 0;
    padding-bottom: 0;
    gap: 1px;
    background: var(--line);
}

.stats .stat-card {
    min-width: 0;
    display: block;
    position: relative;
    overflow: hidden;
    border: 0;
    margin: 0;
    background: var(--dark);
}

.stat-card img {
    width: 100%;
    height: 245px;
    display: block;
    object-fit: cover;
    opacity: .78;
    transition: transform .35s ease, opacity .35s ease;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 25% 0 0;
    background: linear-gradient(transparent, rgba(11, 17, 14, .94));
    pointer-events: none;
}

.stat-card__content {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 19px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 13px;
}

.stats .stat-card__content strong {
    font-size: 24px;
    line-height: 1;
}

.stats .stat-card__content > span {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card:hover img {
    transform: scale(1.045);
    opacity: .92;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: 72px;
    align-items: center;
}

.about-section__media {
    position: relative;
    min-height: 470px;
    background: var(--dark);
    overflow: hidden;
}

.about-section__media img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    display: block;
    object-fit: cover;
}

.about-slider {
    position: relative;
}

.about-slider__track {
    position: absolute;
    inset: 0;
}

.about-slide {
    position: absolute;
    inset: 0;
    min-height: 0 !important;
    height: 100% !important;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .7s ease;
}

.about-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.about-slider__controls {
    position: absolute;
    z-index: 2;
    inset: 0 18px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    pointer-events: auto;
}

.about-slider__arrow,
.about-slider__dot {
    border: 1px solid rgba(255,255,255,.48);
    background: rgba(17, 24, 20, .55);
    color: #fff;
    cursor: pointer;
}

.about-slider__arrow {
    width: 34px;
    height: 34px;
    font-size: 17px;
    padding: 0;
    pointer-events: auto;
    border-radius: 50%;
    transition: background .2s, transform .2s;
}

.about-slider__arrow:hover {
    background: var(--accent);
    color: var(--ink);
    transform: scale(1.08);
}

.about-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
}

.about-slider__dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

@media(max-width:700px) {
    .about-slider__controls {
        inset: 0 12px;
    }

    .about-slider__dots {
        bottom: 14px;
    }
}

.about-section__stamp {
    position: absolute;
    left: 22px;
    bottom: 20px;
    padding: 9px 11px;
    background: var(--accent);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.about-section__content h2 {
    max-width: 620px;
    font-size: 42px;
}

.about-section__content > p:not(.eyebrow) {
    max-width: 610px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.about-facts {
    margin: 30px 0;
    border-top: 1px solid var(--line);
}

.about-facts div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.about-facts strong {
    color: var(--accent-dark);
    font-size: 13px;
}

.about-facts span {
    max-width: 430px;
    font-size: 13px;
    line-height: 1.4;
}

html[data-theme="architect"] .about-section__content h2,
html[data-theme="engineering"] .about-section__content h2 {
    font-weight: 400;
}

html[data-theme="nordic"] .about-section__media {
    border-radius: var(--radius);
}

html[data-theme="contrast"] .about-section__media {
    border: 2px solid var(--dark);
}

@media(max-width:900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-section__media,
    .about-section__media img {
        min-height: 360px;
    }
}

@media(max-width:700px) {
    .about-section__content h2 {
        font-size: 30px;
    }

    .about-section__media,
    .about-section__media img {
        min-height: 280px;
    }
}

@media(max-width:900px) {
    .stat-card img {
        height: 230px;
    }
}

@media(max-width:700px) {
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        padding: 0;
    }

    .stats .stat-card {
        padding: 0;
    }

    .stat-card img {
        height: 205px;
    }

    .stat-card__content {
        left: 14px;
        right: 14px;
        bottom: 14px;
        display: block;
    }

    .stats .stat-card__content strong {
        display: block;
        margin-bottom: 7px;
        font-size: 20px;
    }

    .stats .stat-card__content > span {
        font-size: 12px;
    }
}

body,
button,
input,
select,
textarea {
    font-family: var(--body-font);
}

h1,
h2,
.brand span,
.product-card__body b,
.price {
    font-family: var(--heading-font);
}

.category,
.product-card,
.service-page-card,
.legal-page,
.form-page,
.lead-modal form,
.tab-panel,
.filters {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.button,
.header-action,
.menu-toggle,
.category__action em,
.services-grid a,
.cta-band {
    border-radius: calc(var(--radius) * .7);
}

/* Theme picker */
.theme-switcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
}

.theme-switcher__toggle {
    min-width: 106px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: 800 12px/1 var(--body-font);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.theme-switcher__icon {
    color: var(--accent);
    font-size: 19px;
    line-height: 1;
}

.theme-switcher__panel {
    position: absolute;
    right: 0;
    bottom: 56px;
    width: 300px;
    padding: 10px;
    background: var(--theme-panel);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 18px 54px rgba(15, 24, 20, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
}

.theme-switcher.is-open .theme-switcher__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.theme-switcher__heading {
    padding: 10px 10px 14px;
    border-bottom: 1px solid var(--line);
}

.theme-switcher__heading strong,
.theme-switcher__heading small {
    display: block;
}

.theme-switcher__heading strong {
    font-size: 14px;
}

.theme-switcher__heading small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.theme-option {
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: inherit;
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    gap: 10px;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.theme-option:last-child {
    border-bottom: 0;
}

.theme-option:hover {
    background: var(--paper);
}

.theme-option__swatch {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, .12);
}

.theme-option__swatch--industrial { background: linear-gradient(135deg, #c6df38 50%, #202b27 50%); }
.theme-option__swatch--architect { background: linear-gradient(135deg, #b45435 50%, #e9e7e1 50%); }
.theme-option__swatch--nordic { background: linear-gradient(135deg, #286a63 50%, #edf3f0 50%); }
.theme-option__swatch--contrast { background: linear-gradient(135deg, #ffcf24 50%, #111 50%); }
.theme-option__swatch--engineering { background: linear-gradient(135deg, #1677a5 50%, #e7edf0 50%); }
.theme-option__swatch--noir { background: linear-gradient(135deg, #d1a76a 50%, #171614 50%); }
.theme-option__swatch--eco { background: linear-gradient(135deg, #a6b77d 50%, #f0eee4 50%); }
.theme-option__swatch--swiss { background: linear-gradient(135deg, #e8483e 50%, #f4f4f1 50%); }
.theme-option__swatch--urban { background: linear-gradient(135deg, #e56f42 50%, #25282b 50%); }
.theme-option__swatch--tech { background: linear-gradient(135deg, #7867e8 50%, #eef0ff 50%); }

.theme-option span strong,
.theme-option span small {
    display: block;
}

.theme-option span strong {
    font-size: 12px;
}

.theme-option span small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.theme-option b {
    color: var(--accent-dark);
    font-size: 14px;
    opacity: 0;
}

.theme-option.is-active b {
    opacity: 1;
}

/* 01: Industrial. Brutalist factory catalogue with hard edges and strong labels. */
html[data-theme="industrial"] {
    --ink: #1d2521;
    --muted: #66716b;
    --line: #d8dfd8;
    --paper: #f4f6f1;
    --white: #fff;
    --accent: #d7a23a;
    --accent-dark: #a8751f;
    --dark: #202b27;
    --theme-panel: #fff;
    --heading-font: "Arial Narrow", Impact, Arial, sans-serif;
    --body-font: Arial, Helvetica, sans-serif;
}

html[data-theme="industrial"] .hero {
    background-image: linear-gradient(90deg, rgba(8, 18, 13, .96) 0%, rgba(8, 18, 13, .52) 55%, rgba(8, 18, 13, .08)), url('/media/products/glavnaya-1.jpg');
    background-position: center 58%;
}

html[data-theme="industrial"] .hero h1,
html[data-theme="industrial"] .section-heading h2 {
    text-transform: uppercase;
    letter-spacing: -.5px;
}

html[data-theme="industrial"] .category--tile,
html[data-theme="industrial"] .product-card,
html[data-theme="industrial"] .service-page-card {
    border: 2px solid var(--dark);
}

html[data-theme="industrial"] .category--tile:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 var(--accent);
}

html[data-theme="industrial"] .stats {
    border-top: 6px solid var(--accent);
}

html[data-theme="industrial"] .hero__actions .button--accent,
html[data-theme="industrial"] .header-action {
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
}

html[data-theme="industrial"] .brand__mark {
    letter-spacing: 1px;
}

html[data-theme="industrial"] .section-heading h2 {
    max-width: 520px;
}

/* 02: Architectural editorial. An image-led, magazine-like direction. */
html[data-theme="architect"] {
    --ink: #252421;
    --muted: #706d66;
    --line: #d9d4ca;
    --paper: #f1f0ec;
    --white: #fff;
    --accent: #b85b3d;
    --accent-dark: #8f3f28;
    --dark: #292927;
    --theme-panel: #faf9f6;
    --radius: 2px;
    --heading-font: Georgia, "Times New Roman", serif;
    --body-font: "Segoe UI", Arial, sans-serif;
}

html[data-theme="architect"] h1,
html[data-theme="architect"] h2 {
    font-weight: 500;
    line-height: 1.03;
}

html[data-theme="architect"] .eyebrow,
html[data-theme="architect"] .hero__kicker,
html[data-theme="architect"] .brand small {
    letter-spacing: 2px;
}

html[data-theme="architect"] .hero {
    background-image: linear-gradient(90deg, rgba(31, 30, 27, .9), rgba(31, 30, 27, .1)), url('/media/products/1705-vd2-1.jpg');
    background-position: center 42%;
}

html[data-theme="architect"] .category--tile,
html[data-theme="architect"] .service-page-card {
    border-top: 3px solid var(--accent);
}

html[data-theme="architect"] .section-heading {
    align-items: flex-start;
}

html[data-theme="architect"] .section-heading h2 {
    max-width: 620px;
}

html[data-theme="architect"] .category-grid,
html[data-theme="architect"] .product-grid {
    gap: 24px;
}

html[data-theme="architect"] .category--tile,
html[data-theme="architect"] .product-card {
    background: transparent;
    border-left: 0;
    border-right: 0;
}

html[data-theme="architect"] .category--tile {
    min-height: 250px;
}

html[data-theme="architect"] .product-card__image {
    aspect-ratio: 1.35;
}

html[data-theme="architect"] .solution-list a {
    grid-template-columns: 46px minmax(0, 1fr) 190px;
    padding-top: 28px;
    padding-bottom: 28px;
}

html[data-theme="architect"] .hero {
    align-items: center;
}

html[data-theme="architect"] .hero__content {
    max-width: 680px;
    padding-left: 7vw;
}

html[data-theme="architect"] .brand__mark {
    border-width: 1px;
    padding: 7px 10px;
    font-size: 26px;
    font-weight: 500;
}

html[data-theme="architect"] .brand__mark::before {
    width: 5px;
    height: 22px;
    margin-right: 9px;
    background: var(--accent);
}

html[data-theme="architect"] .hero__kicker {
    font-family: var(--body-font);
}

html[data-theme="architect"] .trust-strip {
    background: #292927;
    color: #fff;
    border: 0;
}

html[data-theme="architect"] .trust-strip span {
    color: #c5c1b8;
}

html[data-theme="architect"] .trust-strip div {
    border-color: rgba(255, 255, 255, .2);
}

html[data-theme="architect"] .cta-band {
    background: #292927;
    color: #fff;
}

html[data-theme="architect"] .button,
html[data-theme="architect"] .header-action {
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* 03: Nordic living. Quiet, spacious and warmer for private customers. */
html[data-theme="nordic"] {
    --ink: #18322f;
    --muted: #627570;
    --line: #cfded9;
    --paper: #edf3f0;
    --white: #fff;
    --accent: #efb15c;
    --accent-dark: #286a63;
    --dark: #1f4e49;
    --theme-panel: #fff;
    --radius: 8px;
    --shadow: 0 8px 24px rgba(31, 78, 73, .07);
    --heading-font: "Trebuchet MS", Arial, sans-serif;
    --body-font: "Segoe UI", Arial, sans-serif;
}

html[data-theme="nordic"] .site-header:not(.home-page .site-header),
html[data-theme="nordic"] .trust-strip,
html[data-theme="nordic"] .solution-section {
    background: #f8fbfa;
}

html[data-theme="nordic"] .hero {
    background-image: linear-gradient(90deg, rgba(18, 62, 56, .88), rgba(18, 62, 56, .08)), url('/media/products/1705-vd2-1.jpg');
}

html[data-theme="nordic"] .category--tile:hover,
html[data-theme="nordic"] .product-card:hover {
    box-shadow: 0 14px 34px rgba(31, 78, 73, .14);
}

html[data-theme="nordic"] .hero {
    min-height: 680px;
}

html[data-theme="nordic"] .hero__content {
    max-width: 620px;
}

html[data-theme="nordic"] .hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -1.8px;
}

html[data-theme="nordic"] .trust-strip {
    border-bottom: 0;
    box-shadow: 0 8px 20px rgba(31, 78, 73, .05);
}

html[data-theme="nordic"] .category--tile,
html[data-theme="nordic"] .product-card {
    border: 0;
    box-shadow: var(--shadow);
}

html[data-theme="nordic"] .category--tile {
    min-height: 230px;
}

html[data-theme="nordic"] .solution-section,
html[data-theme="nordic"] .services-section {
    background: #f8fbfa;
}

html[data-theme="nordic"] .hero {
    background-position: 62% center;
    background-image: linear-gradient(90deg, rgba(18, 62, 56, .88), rgba(18, 62, 56, .08)), url('/media/products/dachnaya-bytovka-1024x768.jpg');
}

html[data-theme="nordic"] .hero__actions .button--accent {
    background: var(--accent);
    color: #18322f;
}

html[data-theme="nordic"] .brand__mark {
    border: 0;
    padding: 0;
    font-size: 28px;
    letter-spacing: 1px;
}

html[data-theme="nordic"] .brand__mark::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 7px;
}

html[data-theme="nordic"] .category--tile strong,
html[data-theme="nordic"] .product-card__body strong {
    font-weight: 700;
}

html[data-theme="nordic"] .production__caption {
    background: rgba(31, 78, 73, .92);
}

html[data-theme="nordic"] .process-section {
    background: #286a63;
}

html[data-theme="nordic"] .button,
html[data-theme="nordic"] .header-action {
    border-radius: 6px;
}

/* 04: High contrast retail. Poster-like and deliberately attention-grabbing. */
html[data-theme="contrast"] {
    --ink: #101010;
    --muted: #626262;
    --line: #c9c9c9;
    --paper: #f3f3f3;
    --white: #fff;
    --accent: #ffcf24;
    --accent-dark: #d59d00;
    --dark: #111;
    --theme-panel: #fff;
    --radius: 0;
    --heading-font: Impact, "Arial Narrow", Arial, sans-serif;
    --body-font: Arial, Helvetica, sans-serif;
}

html[data-theme="contrast"] h1,
html[data-theme="contrast"] h2,
html[data-theme="contrast"] .brand span {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
}

html[data-theme="contrast"] .hero {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .16)), url('/media/products/1705-vd2-1.jpg');
    background-position: center;
}

html[data-theme="contrast"] .hero__content {
    max-width: 900px;
}

html[data-theme="contrast"] .hero h1 {
    font-size: clamp(44px, 7vw, 90px);
    line-height: .92;
}

html[data-theme="contrast"] .eyebrow {
    background: var(--accent);
    color: #111;
    display: inline-block;
    padding: 6px 9px;
}

html[data-theme="contrast"] .category-grid,
html[data-theme="contrast"] .product-grid {
    gap: 8px;
}

html[data-theme="contrast"] .category,
html[data-theme="contrast"] .product-card,
html[data-theme="contrast"] .services-grid,
html[data-theme="contrast"] .filters {
    border-color: #111;
}

html[data-theme="contrast"] .category--tile:hover {
    transform: translate(-4px, -4px);
    box-shadow: 7px 7px 0 #111;
}

html[data-theme="contrast"] .button,
html[data-theme="contrast"] .header-action {
    border: 2px solid #111;
}

html[data-theme="contrast"] .stats {
    background: var(--accent);
    color: #111;
}

html[data-theme="contrast"] .stats strong,
html[data-theme="contrast"] .stats span {
    color: #111;
}

html[data-theme="contrast"] .cta-band {
    background: #111;
    color: #fff;
}

html[data-theme="contrast"] .site-header {
    box-shadow: 0 4px 0 var(--accent);
}

html[data-theme="contrast"] .brand__mark {
    border: 0;
    background: var(--accent);
    color: #111;
    padding: 7px 9px 5px;
    transform: skew(-8deg);
}

html[data-theme="contrast"] .brand__mark::before {
    display: none;
}

html[data-theme="contrast"] .hero__kicker {
    color: #fff;
    font-weight: 800;
}

html[data-theme="contrast"] .trust-strip {
    background: #111;
    color: #fff;
}

html[data-theme="contrast"] .trust-strip span {
    color: #cfcfcf;
}

html[data-theme="contrast"] .trust-strip div {
    border-color: #444;
}

html[data-theme="contrast"] .category--tile {
    min-height: 240px;
}

html[data-theme="contrast"] .category--tile strong,
html[data-theme="contrast"] .product-card__body strong {
    text-transform: uppercase;
}

/* 05: Engineering system. Dense, precise and B2B-focused. */
html[data-theme="engineering"] {
    --ink: #17252c;
    --muted: #5d6d75;
    --line: #c9d5da;
    --paper: #e7edf0;
    --white: #fff;
    --accent: #20a7c9;
    --accent-dark: #126f91;
    --dark: #172e39;
    --theme-panel: #f6f9fa;
    --radius: 3px;
    --heading-font: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --body-font: Consolas, "Segoe UI", sans-serif;
}

html[data-theme="engineering"] body {
    background-image:
        linear-gradient(rgba(23, 46, 57, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 46, 57, .035) 1px, transparent 1px);
    background-size: 24px 24px;
}

html[data-theme="engineering"] h1,
html[data-theme="engineering"] h2 {
    text-transform: uppercase;
    font-stretch: condensed;
}

html[data-theme="engineering"] .hero {
    min-height: 640px;
}

html[data-theme="engineering"] .hero h1 {
    max-width: 720px;
    font-size: clamp(38px, 4.8vw, 62px);
    letter-spacing: -.5px;
}

html[data-theme="engineering"] .topline,
html[data-theme="engineering"] .site-header {
    border-bottom: 2px solid var(--accent);
}

html[data-theme="engineering"] .category-grid,
html[data-theme="engineering"] .product-grid,
html[data-theme="engineering"] .services-grid {
    gap: 2px;
}

html[data-theme="engineering"] .hero {
    background-image: linear-gradient(90deg, rgba(12, 39, 51, .95), rgba(12, 39, 51, .25)), url('/media/products/1705-vd2-1.jpg');
    background-position: center 35%;
}

/* Keep the homepage header independent from a photographic hero background. */
body.home-page .hero {
    background-image: none;
    background-color: var(--dark);
}

html[data-theme="engineering"] .eyebrow,
html[data-theme="engineering"] .category__number,
html[data-theme="engineering"] .process-grid span {
    color: var(--accent-dark);
}

html[data-theme="engineering"] .hero .eyebrow,
html[data-theme="engineering"] .process-section .eyebrow,
html[data-theme="engineering"] .process-grid span {
    color: var(--accent);
}

html[data-theme="engineering"] .category--tile,
html[data-theme="engineering"] .product-card,
html[data-theme="engineering"] .service-page-card {
    background:
        linear-gradient(135deg, transparent 10px, #fff 10px) top left;
}

html[data-theme="engineering"] .section-heading {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dark);
}

html[data-theme="engineering"] .brand__mark {
    border: 1px solid var(--accent);
    padding: 5px 7px;
    font-size: 25px;
    letter-spacing: 2px;
}

html[data-theme="engineering"] .brand__mark::before {
    width: 5px;
    height: 22px;
    margin-right: 6px;
    background: var(--accent);
}

/* 06: Noir premium. A high-end, material-focused direction. */
html[data-theme="noir"] {
    --ink: #eee9df;
    --muted: #aaa397;
    --line: #3c3934;
    --paper: #1d1b19;
    --white: #282522;
    --accent: #d1a76a;
    --accent-dark: #b78645;
    --dark: #12110f;
    --theme-panel: #24211e;
    --radius: 0;
    --shadow: 0 16px 34px rgba(0, 0, 0, .25);
    --heading-font: Georgia, "Times New Roman", serif;
    --body-font: "Segoe UI", Arial, sans-serif;
}

html[data-theme="noir"] .hero {
    background-image: linear-gradient(90deg, rgba(16, 14, 12, .93), rgba(16, 14, 12, .24)), url('/media/products/dom-dachnyj-modulnyj-1024x799.jpg');
    background-position: center 45%;
}

html[data-theme="noir"] .site-header,
html[data-theme="noir"] .trust-strip,
html[data-theme="noir"] .category,
html[data-theme="noir"] .product-card,
html[data-theme="noir"] .service-page-card,
html[data-theme="noir"] .tab-panel {
    background: var(--white);
    color: var(--ink);
}

html[data-theme="noir"] .brand__mark {
    border: 1px solid var(--accent);
    padding: 8px 10px;
    font-weight: 500;
    letter-spacing: 2px;
}

html[data-theme="noir"] .brand__mark::before {
    width: 4px;
    height: 22px;
    background: var(--accent);
}

html[data-theme="noir"] .section-heading h2 {
    font-weight: 400;
}

/* 07: Eco living. Tactile, calm and close to nature. */
html[data-theme="eco"] {
    --ink: #2b3427;
    --muted: #74806b;
    --line: #d7ddc9;
    --paper: #f0eee4;
    --white: #fbfaf5;
    --accent: #a6b77d;
    --accent-dark: #617447;
    --dark: #334331;
    --theme-panel: #fbfaf5;
    --radius: 14px;
    --shadow: 0 10px 26px rgba(68, 83, 51, .1);
    --heading-font: Georgia, "Times New Roman", serif;
    --body-font: "Trebuchet MS", Arial, sans-serif;
}

html[data-theme="eco"] .hero {
    background-image: linear-gradient(90deg, rgba(43, 58, 35, .86), rgba(43, 58, 35, .08)), url('/media/products/bani-tandartnye.jpg');
    background-position: center 48%;
}

html[data-theme="eco"] .hero h1 {
    font-weight: 400;
}

html[data-theme="eco"] .brand__mark {
    border: 0;
    padding: 0;
    font-size: 27px;
    font-weight: 700;
}

html[data-theme="eco"] .brand__mark::before {
    width: 11px;
    height: 11px;
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg);
}

html[data-theme="eco"] .process-section {
    background: #617447;
}

html[data-theme="eco"] .category--tile:hover,
html[data-theme="eco"] .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 32px rgba(68, 83, 51, .16);
}

/* 08: Swiss grid. Minimal, exact and easy to scan. */
html[data-theme="swiss"] {
    --ink: #191919;
    --muted: #6c6c6c;
    --line: #d2d2d2;
    --paper: #f4f4f1;
    --white: #fff;
    --accent: #e8483e;
    --accent-dark: #b62d26;
    --dark: #191919;
    --theme-panel: #fff;
    --radius: 0;
    --heading-font: Helvetica, Arial, sans-serif;
    --body-font: Helvetica, Arial, sans-serif;
}

html[data-theme="swiss"] .hero {
    background-image: linear-gradient(90deg, rgba(22, 22, 22, .92), rgba(22, 22, 22, .08)), url('/media/products/modulnyj-domik-na-dachu.jpg');
}

html[data-theme="swiss"] h1,
html[data-theme="swiss"] h2 {
    font-weight: 700;
    letter-spacing: -1.8px;
}

html[data-theme="swiss"] .brand__mark {
    border: 0;
    padding: 0;
    font-size: 28px;
}

html[data-theme="swiss"] .brand__mark::before {
    width: 7px;
    height: 28px;
    margin-right: 8px;
    background: var(--accent);
}

html[data-theme="swiss"] .category-grid,
html[data-theme="swiss"] .product-grid,
html[data-theme="swiss"] .services-grid {
    gap: 1px;
}

html[data-theme="swiss"] .section-heading {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 16px;
}

html[data-theme="swiss"] .category--tile:hover {
    background: var(--accent);
    color: #fff;
}

/* 09: Urban work. Fast, energetic and commercial. */
html[data-theme="urban"] {
    --ink: #25282b;
    --muted: #73777b;
    --line: #d7d9da;
    --paper: #eef0f1;
    --white: #fff;
    --accent: #e56f42;
    --accent-dark: #bd482d;
    --dark: #25282b;
    --theme-panel: #fff;
    --radius: 5px;
    --shadow: 0 8px 18px rgba(37, 40, 43, .1);
    --heading-font: "Arial Narrow", Impact, Arial, sans-serif;
    --body-font: "Segoe UI", Arial, sans-serif;
}

html[data-theme="urban"] .hero {
    background-image: linear-gradient(90deg, rgba(30, 33, 36, .92), rgba(30, 33, 36, .18)), url('/media/products/1705-vd2-1.jpg');
    background-position: center 32%;
}

html[data-theme="urban"] .hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    text-transform: uppercase;
}

html[data-theme="urban"] .brand__mark {
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 7px 9px 5px;
    transform: skew(-7deg);
}

html[data-theme="urban"] .brand__mark::before {
    display: none;
}

html[data-theme="urban"] .category--tile:hover,
html[data-theme="urban"] .product-card:hover {
    transform: translateY(-4px) rotate(-.5deg);
    box-shadow: 6px 6px 0 var(--dark);
}

/* 10: Soft tech. Contemporary digital product language for modern modularity. */
html[data-theme="tech"] {
    --ink: #25253a;
    --muted: #72738b;
    --line: #dfe1f0;
    --paper: #eef0ff;
    --white: #fff;
    --accent: #7867e8;
    --accent-dark: #5545c4;
    --dark: #292748;
    --theme-panel: #fff;
    --radius: 12px;
    --shadow: 0 12px 30px rgba(68, 59, 150, .11);
    --heading-font: "Trebuchet MS", Arial, sans-serif;
    --body-font: "Segoe UI", Arial, sans-serif;
}

html[data-theme="tech"] .hero {
    background-image: linear-gradient(90deg, rgba(39, 35, 77, .9), rgba(39, 35, 77, .12)), url('/media/products/glavnaya-1.jpg');
}

html[data-theme="tech"] .hero h1 {
    font-weight: 700;
}

html[data-theme="tech"] .brand__mark {
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    padding: 7px 9px 5px;
}

html[data-theme="tech"] .brand__mark::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

html[data-theme="tech"] .category--tile,
html[data-theme="tech"] .product-card,
html[data-theme="tech"] .service-page-card {
    border: 0;
    box-shadow: var(--shadow);
}

html[data-theme="tech"] .cta-band {
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
}

html[data-theme="engineering"] .hero__kicker,
html[data-theme="engineering"] .header-contact span,
html[data-theme="engineering"] .topline {
    letter-spacing: .7px;
}

html[data-theme="engineering"] .trust-strip {
    background: var(--dark);
    color: #fff;
}

html[data-theme="engineering"] .trust-strip span {
    color: #b8cbd2;
}

html[data-theme="engineering"] .trust-strip div {
    border-color: rgba(255, 255, 255, .2);
}

html[data-theme="engineering"] .category--tile,
html[data-theme="engineering"] .product-card {
    border-top: 4px solid var(--accent);
}

html[data-theme="engineering"] .category--tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px var(--accent);
}

@media (max-width: 700px) {
    .theme-switcher {
        right: 10px;
        bottom: 10px;
    }

    .theme-switcher__toggle {
        min-width: 48px;
        width: 48px;
        padding: 0;
    }

    .theme-switcher__toggle span:last-child {
        display: none;
    }

    .theme-switcher__panel {
        width: min(300px, calc(100vw - 20px));
    }

    html[data-theme="contrast"] h1 {
        font-size: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-switcher__panel,
    .category--tile,
    .product-card img {
        transition: none;
    }
}

/* Curated client presentation pass: the last theme names are intentionally
   positioned as product concepts, while the underlying theme keys stay stable. */
html[data-theme="engineering"] {
    --ink: #26231f;
    --muted: #756d64;
    --line: #ddd5cb;
    --paper: #f2eee8;
    --white: #fffdf9;
    --accent: #b06a45;
    --accent-dark: #86462d;
    --dark: #292521;
    --theme-panel: #fffdf9;
    --radius: 2px;
    --shadow: 0 12px 30px rgba(59, 42, 31, .08);
    --heading-font: Georgia, "Times New Roman", serif;
    --body-font: "Segoe UI", Arial, sans-serif;
}

html[data-theme="engineering"] .hero {
    min-height: 700px;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(36, 29, 24, .88), rgba(36, 29, 24, .15)), url('/media/products/dom-dachnyj-modulnyj-1024x799.jpg');
    background-position: center 42%;
}

html[data-theme="engineering"] .hero__content {
    max-width: 680px;
    padding-left: 5vw;
}

html[data-theme="engineering"] h1,
html[data-theme="engineering"] h2 {
    font-weight: 400;
    letter-spacing: -1.1px;
    text-transform: none;
}

html[data-theme="engineering"] .brand__mark {
    border: 1px solid var(--accent);
    padding: 7px 10px;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 1px;
}

html[data-theme="engineering"] .brand__mark::before {
    width: 4px;
    height: 22px;
    margin-right: 8px;
    background: var(--accent);
}

html[data-theme="engineering"] .trust-strip {
    background: var(--dark);
    color: #fff;
}

html[data-theme="engineering"] .trust-strip span {
    color: #d0c7bd;
}

html[data-theme="engineering"] .category-grid,
html[data-theme="engineering"] .product-grid {
    gap: 24px;
}

html[data-theme="engineering"] .category--tile,
html[data-theme="engineering"] .product-card {
    border: 0;
    border-top: 2px solid var(--accent);
    background: var(--white);
}

html[data-theme="engineering"] .section-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

html[data-theme="industrial"] {
    --heading-font: "Arial Narrow", Arial, sans-serif;
}

html[data-theme="industrial"] .hero {
    min-height: 650px;
}

html[data-theme="industrial"] .category--tile {
    min-height: 230px;
}

html[data-theme="industrial"] .section-heading h2 {
    max-width: 640px;
}

html[data-theme="architect"] .hero__content,
html[data-theme="engineering"] .hero__content {
    position: relative;
}

html[data-theme="architect"] .hero__content::after,
html[data-theme="engineering"] .hero__content::after {
    content: "СТК / modular objects";
    display: block;
    margin-top: 42px;
    color: rgba(255,255,255,.65);
    font: 10px/1 var(--body-font);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Theme-specific image system. The source photos are processed into wide,
   copy-safe assets in media/theme-assets/. */
html[data-theme="industrial"] .hero {
    background-image:
        linear-gradient(90deg, rgba(8, 18, 13, .94) 0%, rgba(8, 18, 13, .68) 46%, rgba(8, 18, 13, .22) 100%),
        url('/media/theme-assets/industrial-generated.webp');
}
html[data-theme="architect"] .hero {
    background-image:
        linear-gradient(90deg, rgba(31, 27, 24, .9) 0%, rgba(31, 27, 24, .62) 45%, rgba(31, 27, 24, .18) 100%),
        url('/media/theme-assets/architect-generated.webp');
}
html[data-theme="nordic"] .hero {
    background-image:
        linear-gradient(90deg, rgba(22, 62, 56, .9) 0%, rgba(22, 62, 56, .64) 48%, rgba(22, 62, 56, .18) 100%),
        url('/media/theme-assets/nordic-generated.webp');
}
html[data-theme="contrast"] .hero {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .72) 48%, rgba(0, 0, 0, .2) 100%),
        url('/media/theme-assets/contrast-generated.webp');
}
html[data-theme="engineering"] .hero {
    background-image:
        linear-gradient(90deg, rgba(36, 29, 24, .92) 0%, rgba(36, 29, 24, .66) 48%, rgba(36, 29, 24, .2) 100%),
        url('/media/theme-assets/editorial-generated.webp');
}

html[data-theme="industrial"] .hero h1,
html[data-theme="architect"] .hero h1,
html[data-theme="nordic"] .hero h1,
html[data-theme="contrast"] .hero h1,
html[data-theme="engineering"] .hero h1 {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

html[data-theme="industrial"] .hero p:not(.eyebrow),
html[data-theme="architect"] .hero p:not(.eyebrow),
html[data-theme="nordic"] .hero p:not(.eyebrow),
html[data-theme="contrast"] .hero p:not(.eyebrow),
html[data-theme="engineering"] .hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, .94);
    text-shadow: 0 1px 9px rgba(0, 0, 0, .3);
}

/* Content photography must remain visible in every theme. Earlier theme
   backgrounds hid the real images and made these sections appear empty. */
.production__media {
    background-image: none !important;
}

.production__media img {
    opacity: 1 !important;
}

.project-gallery a {
    background-image: none !important;
}

.project-gallery img {
    opacity: 1 !important;
}

/* Direction cards: three visual columns with image-led hierarchy. */
.home-page .category-grid--tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category--tile {
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.category__image {
    display: block;
    aspect-ratio: 1.55;
    overflow: hidden;
    background: var(--dark);
}

.category__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.production-tabs .tab-panel{display:grid;grid-template-columns:minmax(240px,42%) 1fr;gap:24px;align-items:center}
.production-tabs .tab-panel[hidden]{display:none!important}
.production-tabs .tab-panel img{display:block;width:100%;max-height:360px;object-fit:contain;background:#fff}
.production-tabs .tab-panel strong{display:block;margin-bottom:10px}
@media(max-width:700px){.production-tabs .tab-panel{grid-template-columns:1fr;gap:16px}}

body.home-page .category-grid--tiles .category--tile:first-child .category__image img {
    object-position: center 72%;
}

body.home-page .category-grid--tiles .category--tile:first-child .category__image {
    background: #dce3df;
}

body.home-page .product-grid .product-card:nth-child(4) .product-card__image img {
    object-position: center top;
    transform: scale(1.05);
}

.category--tile:hover .category__image img {
    transform: scale(1.045);
    filter: saturate(1.08);
}

.category__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.category__body .category__number {
    margin: 0 0 18px;
}

.category__body strong {
    max-width: none;
    font-size: 21px;
    line-height: 1.12;
}

.category__body .category__description {
    max-width: none;
    min-height: 38px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.category__body .category__footer {
    margin-top: auto;
    padding-top: 24px;
}

html[data-theme="contrast"] .category--tile:hover {
    transform: translateY(-4px);
}

html[data-theme="nordic"] .category--tile,
html[data-theme="engineering"] .category--tile {
    border: 0;
}

@media(max-width:900px) {
    .home-page .category-grid--tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:700px) {
    .home-page .category-grid--tiles {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category__image {
        aspect-ratio: 1.7;
    }

    .category__body strong {
        font-size: 19px;
    }
}
/* Keep the homepage image below the header instead of behind it. */
body.home-page .topline,
body.home-page .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}
body.home-page .hero {
    padding-top: 70px;
}
@media(max-width:700px) {
    body.home-page .hero {
        padding-top: 34px;
    }
}

/* Final header contract: homepage and inner pages share exactly one shell. */
body.home-page .topline,
body:not(.home-page) .topline {
    position: relative !important;
    top: auto;
    left: auto;
    right: auto;
    inset-inline: auto;
}

/* Final readability and hierarchy pass for the public industrial theme. */
html[data-theme="industrial"] .hero__kicker {
    font-size: 13px;
    letter-spacing: 1.35px;
}

html[data-theme="industrial"] .hero__proof {
    font-size: 15px;
    line-height: 1.4;
}

html[data-theme="industrial"] .eyebrow {
    font-size: 15px;
    letter-spacing: 1.6px;
    line-height: 1.35;
    font-weight: 800;
}

html[data-theme="industrial"] .category__number,
html[data-theme="industrial"] .services-grid > a > span,
html[data-theme="industrial"] .service-page-card__number,
html[data-theme="industrial"] .process-grid > li > span,
html[data-theme="industrial"] .decision-grid > div > span,
html[data-theme="industrial"] .about-facts > div > strong {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

html[data-theme="industrial"] .audience-switch > a > span,
html[data-theme="industrial"] .product-price-box__label {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

html[data-theme="industrial"] .brand__logo--industrial {
    width: 224px;
    height: 68px;
}

html[data-theme="industrial"] .brand--footer .brand__logo--industrial {
    width: 232px;
    height: 70px;
}

html[data-theme="industrial"] .services-section {
    background: #e7ebe6;
    border-top: 1px solid #d1d8d0;
    border-bottom: 1px solid #d1d8d0;
}

html[data-theme="industrial"] .process-section {
    background: #e7ebe6;
    color: var(--ink);
    border-top: 1px solid #d1d8d0;
    border-bottom: 1px solid #d1d8d0;
}

html[data-theme="industrial"] .solution-section {
    background: #e7ebe6;
    border-top: 1px solid #d1d8d0;
    border-bottom: 1px solid #d1d8d0;
}

html[data-theme="industrial"] .trust-strip {
    background: #e7ebe6;
    border-top: 1px solid #cbd4cb;
    border-bottom: 1px solid #cbd4cb;
    padding-top: 26px;
    padding-bottom: 26px;
}

html[data-theme="industrial"] .trust-strip strong {
    font-size: 18px;
    line-height: 1.3;
}

html[data-theme="industrial"] .trust-strip span {
    font-size: 14px;
    line-height: 1.45;
}

html[data-theme="industrial"] .process-section .eyebrow {
    color: var(--accent-dark);
}

html[data-theme="industrial"] .process-section .section-lead,
html[data-theme="industrial"] .process-grid p {
    color: var(--muted);
}

html[data-theme="industrial"] .process-grid {
    border-top-color: #cbd4cb;
}

html[data-theme="industrial"] .process-grid li {
    border-right-color: #cbd4cb;
}

html[data-theme="industrial"] .cta-band {
    background: #202b27;
    color: #fff;
    border-top: 5px solid var(--accent);
}

html[data-theme="industrial"] .cta-band .eyebrow {
    color: var(--accent);
}

html[data-theme="industrial"] .cta-band p:not(.eyebrow) {
    color: #d7dfd8;
}

html[data-theme="industrial"] .cta-band .button--light {
    background: var(--accent);
    color: var(--ink);
}

html[data-theme="industrial"] .cta-phone {
    color: #fff;
}

html[data-theme="industrial"] body {
    font-size: 16px;
}

html[data-theme="industrial"] .brand-wordmark {
    display: inline-block;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: .82;
}

html[data-theme="industrial"] .brand--footer .brand-wordmark {
    font-size: 50px;
}

html[data-theme="industrial"] .main-nav a,
html[data-theme="industrial"] .header-contact a {
    font-size: 15px;
}

html[data-theme="industrial"] .header-contact span,
html[data-theme="industrial"] .topline {
    font-size: 13px;
}

html[data-theme="industrial"] .hero__content > p:not(.eyebrow) {
    font-size: 19px;
    line-height: 1.6;
}

html[data-theme="industrial"] .category--tile strong {
    font-size: 22px;
}

html[data-theme="industrial"] .category--tile .category__description {
    font-size: 15px;
    line-height: 1.5;
}

html[data-theme="industrial"] .stat-card__content > span,
html[data-theme="industrial"] .solution-list p,
html[data-theme="industrial"] .services-grid p,
html[data-theme="industrial"] .decision-grid p,
html[data-theme="industrial"] .faq-list details p,
html[data-theme="industrial"] .section-lead {
    font-size: 15px;
    line-height: 1.55;
}

html[data-theme="industrial"] .solution-list strong,
html[data-theme="industrial"] .services-grid strong,
html[data-theme="industrial"] .process-grid strong,
html[data-theme="industrial"] .decision-grid strong,
html[data-theme="industrial"] .faq-list summary {
    font-size: 18px;
}

html[data-theme="industrial"] .product-card__body strong {
    font-size: 18px;
}

html[data-theme="industrial"] .product-card__meta,
html[data-theme="industrial"] .product-card__details,
html[data-theme="industrial"] .service-page-card p,
html[data-theme="industrial"] .footer-brand p,
html[data-theme="industrial"] .site-footer__inner a,
html[data-theme="industrial"] .site-footer__inner span {
    font-size: 14px;
    line-height: 1.5;
}

html[data-theme="industrial"] body.home-page .stats {
    width: auto;
    margin: 58px 0 0;
    padding: 0;
    gap: 16px;
    background: transparent;
    border-top: 0;
}

html[data-theme="industrial"] .stats .stat-card {
    border: 1px solid var(--line);
}

html[data-theme="industrial"] .stat-card img {
    height: 230px;
}

html[data-theme="industrial"] .stat-card__content {
    display: block;
}

html[data-theme="industrial"] .stats .stat-card__content > span {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
}

html[data-theme="industrial"] .solution-list a {
    grid-template-columns: minmax(0, 1fr) 240px;
}

html[data-theme="industrial"] .process-grid li {
    padding-top: 34px;
}

html[data-theme="industrial"] .services-grid a {
    padding-top: 30px;
}

html[data-theme="industrial"] .service-page-card h2 {
    margin-top: 0;
}

html[data-theme="industrial"] .about-facts div {
    grid-template-columns: 1fr;
}

@media(max-width:700px) {
    html[data-theme="industrial"] .hero__kicker,
    html[data-theme="industrial"] .hero__proof {
        font-size: 14px;
    }

    html[data-theme="industrial"] .eyebrow {
        font-size: 13px;
    }

    html[data-theme="industrial"] .hero__content > p:not(.eyebrow) {
        font-size: 17px;
    }

    html[data-theme="industrial"] .category--tile strong {
        font-size: 20px;
    }

    html[data-theme="industrial"] .category--tile .category__description,
    html[data-theme="industrial"] .stat-card__content > span,
    html[data-theme="industrial"] .solution-list p,
    html[data-theme="industrial"] .services-grid p,
    html[data-theme="industrial"] .decision-grid p,
    html[data-theme="industrial"] .faq-list details p {
        font-size: 14px;
    }

    html[data-theme="industrial"] .brand__logo--industrial,
    html[data-theme="industrial"] .brand--footer .brand__logo--industrial {
        width: 172px !important;
        height: 52px !important;
    }

    html[data-theme="industrial"] .brand-wordmark {
        font-size: 34px;
    }

    html[data-theme="industrial"] .brand--footer .brand-wordmark {
        font-size: 42px;
    }

    html[data-theme="industrial"] body.home-page .stats {
        grid-template-columns: 1fr;
        margin-top: 42px;
        gap: 12px;
    }

    html[data-theme="industrial"] .stats .stat-card__content > span {
        font-size: 17px;
    }

    html[data-theme="industrial"] .solution-list a {
        grid-template-columns: 1fr;
    }

    html[data-theme="industrial"] .solution-list b {
        grid-column: 1;
    }
}

/* Final category layout contract: three cards per row on desktop. */
body.home-page .category-grid--tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.home-page .category-grid--tiles .category__footer {
    display: none !important;
}

@media(max-width:900px) {
    body.home-page .category-grid--tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media(max-width:700px) {
    body.home-page .category-grid--tiles {
        grid-template-columns: 1fr !important;
    }
}

body.home-page .site-header,
body:not(.home-page) .site-header {
    position: sticky !important;
    left: auto;
    right: auto;
    inset-inline: auto;
}

body.home-page .topline,
body:not(.home-page) .topline {
    height: 35px;
}

body.home-page .site-header,
body:not(.home-page) .site-header {
    top: 0;
    height: 77px;
}

body.home-page .site-header__inner,
body:not(.home-page) .site-header__inner {
    min-height: 76px;
    height: 76px;
}

body.home-page .hero {
    padding-top: 70px;
}

@media(max-width:700px) {
    body.home-page .site-header,
    body:not(.home-page) .site-header {
        height: auto;
    }

    body.home-page .site-header__inner,
    body:not(.home-page) .site-header__inner {
        height: auto;
        min-height: 70px;
    }

    body.home-page .hero {
        padding-top: 34px;
    }
}
