/*
=====================================================================
AMIABLE IMPEX — HOMEPAGE ("Obsidian & Copper")
Tokens live in nx-theme.css. Body class: "nx-ui nx-home".
=====================================================================
*/

/* ---------- Base ---------- */
body.nx-ui {
    margin: 0;
    background: var(--nx-paper);
    color: var(--nx-text);
    font-family: var(--nx-sans);
    font-size: 15.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nx-ui main { display: block; }
body.nx-ui main p { margin: 0; }
body.nx-ui main img { max-width: 100%; }
body.nx-ui ::selection { background: var(--nx-copper); color: #fff; }

/* Neutralise the global h1–h4 !important sizes; each heading sets its own vars */
html body.nx-ui main :is(h1, h2, h3, h4) {
    margin: 0;
    font-family: var(--h-ff, var(--nx-serif)) !important;
    font-size: var(--h-fs, 18px) !important;
    line-height: var(--h-lh, 1.3) !important;
    font-weight: var(--h-fw, 600) !important;
    letter-spacing: var(--h-ls, -.005em);
    color: inherit;
}

.nx-wrap { position: relative; z-index: 1; max-width: var(--nx-wrap); margin: 0 auto; padding: 0 28px; }
.nx-section { position: relative; padding: 112px 0; }
.nx-dark { background: var(--nx-ink); color: var(--nx-bone); }
.nx-br { display: inline; }

.nx-kicker--dark { color: var(--nx-copper-3); }

.nx-h2 {
    --h-ff: var(--nx-serif);
    --h-fs: clamp(27px, 2.6vw, 38px);
    --h-lh: 1.15;
    --h-fw: 400;
    --h-ls: -.018em;
}
.nx-h2 em { font-style: normal; color: var(--nx-copper-3); }
.nx-dark .nx-h2 em { color: var(--nx-copper-2); }

.nx-head { display: grid; gap: 22px; margin-bottom: 64px; }
.nx-head p { max-width: 640px; color: var(--nx-muted); font-size: 16px; }
.nx-dark .nx-head p { color: var(--nx-muted-d); }
.nx-head--center { justify-items: center; text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.nx-head--center p { max-width: 780px; }
.nx-head--split {
    grid-template-columns: minmax(200px, 300px) 1fr;
    align-items: start;
    column-gap: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--nx-line);
}
.nx-dark .nx-head--split { border-top-color: var(--nx-line-d); }
.nx-head--split .nx-kicker { padding-top: 14px; }

/* ---------- Buttons ---------- */
.nx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    font: 500 14.5px/1 var(--nx-sans);
    letter-spacing: .01em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .45s var(--nx-ease), background .45s var(--nx-ease), color .45s var(--nx-ease), border-color .45s var(--nx-ease), box-shadow .45s var(--nx-ease);
}
.nx-btn > span { transition: transform .45s var(--nx-ease); }
.nx-btn:hover > span { transform: translateX(4px); }
.nx-btn:focus-visible { outline: 2px solid var(--nx-copper-2); outline-offset: 3px; }

.nx-btn--copper { background: var(--nx-copper-grad); color: #fff; box-shadow: 0 18px 36px -18px rgba(229, 52, 59, .8); }
.nx-btn--copper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .9s var(--nx-ease);
    z-index: -1;
}
.nx-btn--copper:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -18px rgba(229, 52, 59, .9); }
.nx-btn--copper:hover::after { transform: translateX(120%); }

.nx-btn--line { color: var(--nx-bone); border-color: rgba(243, 238, 230, .3); background: rgba(255, 255, 255, .03); }
.nx-btn--line:hover { background: var(--nx-bone); color: var(--nx-ink); border-color: var(--nx-bone); }

.nx-btn--ink { background: var(--nx-ink); color: var(--nx-bone); }
.nx-btn--ink:hover { background: var(--nx-copper); color: #fff; transform: translateY(-2px); }

.nx-btn--lg { min-height: 62px; padding: 0 44px; font-size: 16px; }

/* =====================================================================
   OFFERINGS
===================================================================== */
/* Offerings styles live in css/nx-offerings.css */

/* =====================================================================
   PROCESS + BROCHURE + ADVANTAGES
===================================================================== */
.nx-process { background: var(--nx-paper); }

.nx-process-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: start; }

.nx-process-copy { display: grid; justify-items: start; gap: 26px; }
.nx-process-copy > p { color: var(--nx-muted); }
.nx-process-sub { display: grid; gap: 12px; padding: 4px 0 4px 26px; border-left: 2px solid var(--nx-copper); }
.nx-process-sub h3 { --h-fs: 19px; --h-fw: 600; color: var(--nx-ink); }
.nx-process-sub p { color: var(--nx-muted); }

.nx-brochure {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 44px 40px 40px;
    color: var(--nx-bone);
    background: var(--nx-ink);
    border-radius: 30px;
    box-shadow: 0 50px 100px -50px rgba(11, 12, 15, .7);
}
.nx-brochure::before {
    content: "";
    position: absolute;
    inset: -30% -30% auto auto;
    width: 420px; height: 420px;
    background: radial-gradient(closest-side, rgba(229, 52, 59, .35), transparent);
    z-index: -1;
}
.nx-brochure::after { content: ""; position: absolute; left: 40px; right: 40px; top: 0; height: 2px; background: var(--nx-copper-grad); }

html body.nx-ui main .nx-brochure h2 {
    --h-ff: var(--nx-serif);
    --h-fs: 34px;
    --h-lh: 1.1;
    --h-fw: 400;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    color: var(--nx-bone);
}
.nx-brochure-icon { font: 400 18px/1 var(--nx-sans); color: var(--nx-copper-2); }

.nx-brochure .amiable-form-message {
    margin: 0 0 18px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--nx-bone);
    background: rgba(166, 207, 63, .12);
    border: 1px solid rgba(166, 207, 63, .35);
    border-radius: 14px;
}
.nx-brochure .amiable-form-message a { color: var(--nx-copper-2); }
.nx-brochure .amiable-form-message.is-error { background: rgba(227, 38, 47, .12); border-color: rgba(227, 38, 47, .45); }

.nx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nx-form-wide { grid-column: 1 / -1; }
html body.nx-ui .nx-form input,
html body.nx-ui .nx-form textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font: 400 14.5px/1.4 var(--nx-sans);
    color: var(--nx-bone);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--nx-line-d);
    border-radius: 14px;
    outline: none;
    box-shadow: none;
    transition: border-color .3s var(--nx-ease), background .3s var(--nx-ease), box-shadow .3s var(--nx-ease);
}
html body.nx-ui .nx-form textarea { min-height: 120px; padding: 16px 18px; resize: vertical; }
html body.nx-ui .nx-form input::placeholder,
html body.nx-ui .nx-form textarea::placeholder { color: rgba(243, 238, 230, .45); }
html body.nx-ui .nx-form input:focus,
html body.nx-ui .nx-form textarea:focus { border-color: var(--nx-copper-2); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(166, 207, 63, .14); }
.nx-form .nx-btn { min-height: 56px; margin-top: 6px; }

/* Advantages: full-width white band closing the process section */
.nx-process { padding-bottom: 0; }
.nx-advantages {
    margin-top: 104px;
    padding: 88px 0 112px;
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
}
.nx-advantages > h3 {
    --h-ff: var(--nx-serif);
    --h-fs: clamp(26px, 2.4vw, 36px);
    --h-lh: 1.12;
    --h-fw: 400;
    --h-ls: -.01em;
    max-width: 820px;
    color: var(--nx-ink);
}
.nx-adv-list {
    list-style: none;
    margin: 44px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.nx-adv-list li {
    position: relative;
    padding: 30px 24px 28px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--nx-muted);
    background: var(--nx-paper);
    border: 1px solid var(--nx-line);
    border-radius: 22px;
    transition: transform .5s var(--nx-ease), box-shadow .5s var(--nx-ease), border-color .5s var(--nx-ease);
}
.nx-adv-list li::before {
    content: "";
    display: block;
    width: 34px; height: 34px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #c9e57a, var(--nx-copper) 55%, var(--nx-copper-3));
    box-shadow: 0 10px 22px -10px rgba(229, 52, 59, .9);
}
.nx-adv-list li:hover { background: #fff; transform: translateY(-4px); border-color: rgba(229, 52, 59, .45); box-shadow: 0 30px 50px -34px rgba(11, 12, 15, .45); }
.nx-adv-list strong { display: block; margin-bottom: 10px; font: 600 16px/1.35 var(--nx-sans); color: var(--nx-ink); }

.nx-adv-closing { max-width: 880px; margin-top: 40px !important; font: 400 21px/1.5 var(--nx-serif); color: var(--nx-ink); }
.nx-adv-closing a { color: var(--nx-copper-3); text-decoration: underline; text-decoration-color: rgba(229, 52, 59, .45); text-underline-offset: 5px; }
.nx-adv-closing a:hover { color: var(--nx-copper); text-decoration-color: currentColor; }

/* =====================================================================
   APPLICATIONS
===================================================================== */
.nx-applications { background: var(--nx-bone); }

.nx-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nx-app-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    background: var(--nx-ink);
    isolation: isolate;
}
.nx-app-media { position: absolute; inset: 0; z-index: -1; }
.nx-app-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--nx-ease); }
.nx-app-card:hover .nx-app-media img { transform: scale(1.07); }
.nx-app-body {
    position: absolute;
    left: 14px; right: 14px; bottom: 14px;
    display: grid;
    gap: 8px;
    padding: 24px 24px 22px;
    background: rgba(250, 248, 244, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    transition: transform .6s var(--nx-ease);
}
.nx-app-card:hover .nx-app-body { transform: translateY(-6px); }
.nx-app-body h3 { --h-ff: var(--nx-serif); --h-fs: 27px; --h-lh: 1.1; --h-fw: 400; color: var(--nx-ink); }
.nx-app-body p { font-size: 14.5px; line-height: 1.6; color: var(--nx-muted); }

/* =====================================================================
   WHY CHOOSE US
===================================================================== */
.nx-why { overflow: hidden; }
.nx-why-glow {
    position: absolute;
    left: 50%; top: -260px;
    width: 1100px; height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(229, 52, 59, .22), transparent);
    pointer-events: none;
}
.nx-why .nx-head p + p { margin-top: -8px; }

.nx-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--nx-line-d);
    border: 1px solid var(--nx-line-d);
    border-radius: 28px;
    overflow: hidden;
}
.nx-reason {
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 44px 38px 42px;
    background: var(--nx-ink);
    transition: background .5s var(--nx-ease);
}
.nx-reason::after {
    content: "";
    position: absolute;
    left: 38px; right: 38px; top: 0;
    height: 2px;
    background: var(--nx-copper-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .7s var(--nx-ease);
}
.nx-reason:hover { background: var(--nx-ink-3); }
.nx-reason:hover::after { transform: scaleX(1); }
.nx-reason > span {
    margin-bottom: 18px;
    font: 400 58px/.9 var(--nx-serif);
    background: linear-gradient(150deg, #f3c9a2, var(--nx-copper) 60%, var(--nx-copper-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nx-reason h3 { --h-fs: 19px; --h-fw: 500; color: var(--nx-bone); }
.nx-reason p { font-size: 14.5px; line-height: 1.7; color: var(--nx-muted-d); }

.nx-why-closing {
    max-width: 760px;
    margin: 64px auto 0 !important;
    text-align: center;
    font: 400 clamp(22px, 2vw, 28px)/1.35 var(--nx-serif);
    color: var(--nx-bone);
}

/* =====================================================================
   FACILITIES SLIDER (hooks used by resources/js/app.js)
===================================================================== */
html body.nx-home section.nx-facilities { background: #fff !important; color: var(--nx-text); padding: 112px 0; }

html body.nx-home .nx-fac-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between;
    gap: 32px;
    margin: 0 0 48px;
    padding: 0;
    max-width: none;
}
html body.nx-home .nx-fac-head h2 { color: var(--nx-ink) !important; max-width: 760px; }

html body.nx-home .nx-fac-controls { display: flex; gap: 10px; flex: none; margin: 0; }
html body.nx-home .nx-fac-controls button {
    display: grid;
    place-items: center;
    width: 56px !important; height: 56px !important;
    padding: 0;
    font-size: 18px;
    color: var(--nx-ink);
    background: transparent !important;
    border: 1px solid rgba(11, 12, 15, .2) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background .4s var(--nx-ease), color .4s var(--nx-ease), border-color .4s var(--nx-ease);
}
html body.nx-home .nx-fac-controls button:hover,
html body.nx-home .nx-fac-controls button:focus-visible { background: var(--nx-ink) !important; color: var(--nx-copper-2); border-color: var(--nx-ink) !important; outline: none; }

html body.nx-home .nx-facilities .facility-track {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    grid-template-columns: none;
    column-gap: 24px;
    gap: 24px;
    align-items: stretch !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 0 8px;
    margin: 0;
}
html body.nx-home .nx-facilities .facility-track::-webkit-scrollbar { display: none; }

html body.nx-home .nx-facilities .facility-card {
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--nx-paper) !important;
    border: 1px solid var(--nx-line) !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    transform: none;
    transition: border-color .5s var(--nx-ease), box-shadow .5s var(--nx-ease);
}
html body.nx-home .nx-facilities .facility-card:hover { border-color: rgba(229, 52, 59, .45) !important; box-shadow: 0 34px 60px -40px rgba(11, 12, 15, .5) !important; }

html body.nx-home .nx-facilities .facility-card > img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0 !important;
    margin: 0 !important;
    background: var(--nx-bone);
    transition: transform 1.2s var(--nx-ease);
}
html body.nx-home .nx-facilities .facility-card:hover > img { transform: scale(1.04); }

html body.nx-home .nx-facilities .facility-card > div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    padding: 26px 26px 26px !important;
    background: #fff;
}
html body.nx-home .nx-facilities .facility-card span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 11px/1.4 var(--nx-mono) !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nx-copper-3) !important;
}
html body.nx-home .nx-facilities .facility-card span::before { content: ""; width: 18px; height: 1px; background: currentColor; }
html body.nx-home .nx-facilities .facility-card h3 { --h-fs: 19px; --h-lh: 1.3; --h-fw: 600; margin: 12px 0 10px; min-height: 0; color: var(--nx-ink) !important; }
html body.nx-home .nx-facilities .facility-card p { font-size: 14.5px !important; line-height: 1.7 !important; color: var(--nx-muted) !important; min-height: 0; }
html body.nx-home .nx-facilities .facility-card p.is-collapsed { -webkit-line-clamp: 3; line-clamp: 3; min-height: 0; }

html body.nx-home .nx-facilities .facility-read-toggle {
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    font: 500 11.5px/1 var(--nx-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nx-ink);
}
html body.nx-home .nx-facilities .facility-read-toggle::after { content: "→"; font-family: var(--nx-sans); color: var(--nx-copper); transition: transform .4s var(--nx-ease); }
html body.nx-home .nx-facilities .facility-read-toggle[aria-expanded="true"]::after { transform: rotate(-90deg); }
html body.nx-home .nx-facilities .facility-read-toggle:hover { color: var(--nx-copper-3); text-decoration: none; }

html body.nx-home .nx-facilities .facility-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
html body.nx-home .nx-facilities .facility-dot {
    width: 28px; height: 3px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(11, 12, 15, .15);
    cursor: pointer;
    transition: width .5s var(--nx-ease), background .5s var(--nx-ease);
}
html body.nx-home .nx-facilities .facility-dot.active { width: 64px; background: var(--nx-copper); }

/* =====================================================================
   QUALITY
===================================================================== */
/* Bright textured canvas */
.nx-quality {
    isolation: isolate;
    overflow: hidden;
    color: var(--nx-text);
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f0 100%);
}
.nx-quality-texture { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nx-quality-texture::before { /* fine engineering grid, strongest behind the heading */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 31, 39, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 31, 39, .09) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 0%, transparent 75%);
}
.nx-quality-texture::after { /* warm copper light + paper grain */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 320px at 50% 0%, rgba(166, 207, 63, .28), transparent 70%),
        radial-gradient(420px 300px at 100% 100%, rgba(229, 52, 59, .1), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nx-quality-head h2 { color: var(--nx-ink); }
.nx-quality-head { gap: 18px; }
.nx-quality-head > div { display: grid; justify-items: center; }
html body.nx-ui main .nx-quality-head .nx-head-sub { margin-top: 16px !important; }
.nx-quality .nx-head-sub { color: var(--nx-copper-3) !important; }
.nx-head-sub { --h-ff: var(--nx-serif); --h-fs: 22px; --h-fw: 400; margin-top: 18px !important; color: var(--nx-copper-3); }
.nx-dark .nx-head-sub { color: var(--nx-copper-2); }

.nx-quality-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nx-quality-card { margin: 0; }
.nx-quality-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--nx-line);
    box-shadow: 0 30px 50px -36px rgba(11, 12, 15, .4);
    border-radius: 22px;
}
.nx-quality-media::after { /* copper corner ticks */
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    background:
        linear-gradient(var(--nx-copper), var(--nx-copper)) 0 0 / 18px 1px,
        linear-gradient(var(--nx-copper), var(--nx-copper)) 0 0 / 1px 18px,
        linear-gradient(var(--nx-copper), var(--nx-copper)) 100% 100% / 18px 1px,
        linear-gradient(var(--nx-copper), var(--nx-copper)) 100% 100% / 1px 18px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .5s var(--nx-ease);
    pointer-events: none;
}
.nx-quality-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; transition: transform 1.2s var(--nx-ease); }
.nx-quality-card:hover .nx-quality-media img { transform: scale(1.06); }
.nx-quality-card:hover .nx-quality-media::after { opacity: 1; }
.nx-quality-card figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font: 500 12px/1.4 var(--nx-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nx-ink);
}
.nx-quality-card figcaption::before { content: ""; width: 22px; height: 1px; background: var(--nx-copper); }

/* =====================================================================
   FAQ
===================================================================== */
.nx-faq { background: #fff; padding-bottom: 72px; }
/* FAQ layout + accordion styles live in css/nx-faq.css */

/* Final catalogue button */
.nx-catalogue-cta { padding: 0 0 112px; background: #fff; text-align: center; }

/* =====================================================================
   RESPONSIVE
===================================================================== */
@media (max-width: 1200px) {
    .nx-adv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .nx-section { padding: 88px 0; }
    .nx-process { padding-bottom: 0; }
    .nx-advantages { margin-top: 88px; padding: 72px 0 88px; }
    .nx-process-grid, .nx-faq-layout { grid-template-columns: 1fr; gap: 48px; }
    .nx-faq-head { position: static; }
    .nx-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-head--split { grid-template-columns: 1fr; row-gap: 18px; }
    .nx-head--split .nx-kicker { padding-top: 0; }
    html body.nx-home section.nx-facilities { padding: 88px 0; }
}

@media (max-width: 1050px) {
    html body.nx-home .nx-facilities .facility-track { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (max-width: 900px) {
    .nx-app-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .nx-br { display: none; }
}

@media (max-width: 820px) {
    html body.nx-home .nx-facilities .facility-track { grid-auto-columns: 100%; }
    html body.nx-home .nx-fac-head { flex-direction: column; align-items: flex-start !important; }
}

@media (max-width: 640px) {
    body.nx-ui { font-size: 15px; }
    .nx-wrap { padding: 0 18px; }
    .nx-section { padding: 72px 0; }
    .nx-process { padding-bottom: 0; }
    .nx-advantages { margin-top: 72px; padding: 56px 0 72px; }
    html body.nx-home section.nx-facilities { padding: 72px 0; }
    .nx-head { margin-bottom: 44px; }
    .nx-brochure { padding: 36px 22px 26px; border-radius: 24px; }
    .nx-brochure::after { left: 22px; right: 22px; }
    .nx-form { grid-template-columns: 1fr; }
    .nx-adv-list, .nx-quality-grid, .nx-reason-grid { grid-template-columns: 1fr; }
    .nx-reason { padding: 34px 26px; }
    .nx-faq-answer { padding-right: 0; }
    .nx-catalogue-cta { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-video-toggle::before, .nx-video-toggle::after, .nx-video-note i { animation: none !important; }
    body.nx-ui main * { transition: none !important; }
}
