/* NovaX Industry — homepage.
   One loud element (the SANKOSHA disassembly); every other section is ruled, quiet and information-dense.
   Hairline grids use the 1px-gap technique so borders stay exact at every breakpoint. */

.home #main:focus { outline: none; }
.home #site-footer { margin-top: 0; }

/* ---------- shared bits ---------- */
.btn.lg { min-height: 52px; padding: 0 24px; font-size: var(--fs-md); }
.btn.light { --b: #f3f4f2; background: #f3f4f2; color: var(--ink); }
.btn.light:hover { --b: #fff; background: #fff; }
.btn.ghost { --b: rgba(255, 255, 255, .24); background: transparent; color: #e9ece8; }
.btn.ghost:hover { --b: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.btn .i, .link-arrow .i { transition: transform .2s var(--ease-out); }
.btn:hover .i, .link-arrow:hover .i { transform: translateX(3px); }
[dir=rtl] .btn .i, [dir=rtl] .link-arrow .i { transform: scaleX(-1); }
[dir=rtl] .btn:hover .i, [dir=rtl] .link-arrow:hover .i { transform: scaleX(-1) translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.head-tools { display: flex; align-items: center; gap: 12px; }
.section-head .h2, .erp .h2, .contact .h2 { font-size: clamp(1.875rem, 1.3rem + 1.7vw, 2.5rem); font-stretch: var(--wide); letter-spacing: -.022em; }

/* 1 · Hero and 2 · Brand strip live in /home/hero.css. */

/* ---------- 3 · Catalogue groups ---------- */
.grp-error { grid-column: 1 / -1; display: grid; justify-items: start; gap: 12px; padding: 32px; background: var(--paper); color: var(--ink-2); }

/* ---------- 4 · Featured rail ---------- */
.featured { padding-top: 0; }
.rail-nav { display: flex; gap: 6px; }
.rail-btn { border: 1px solid var(--line-2); background: var(--surface); }
.rail-btn:hover { border-color: var(--steel-2); }
.rail-btn:disabled { opacity: .4; cursor: default; background: transparent; }
.rail-btn .i { width: 18px; height: 18px; }
[dir=rtl] .rail-btn .i { transform: scaleX(-1); }
.rail { --gap: 16px; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding: 2px; margin: -2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; min-width: 0; display: grid; }
.rail .pcard { height: 100%; }
.rail .pcard-media { aspect-ratio: 1 / 1; padding: 22px; }
.pcard-foot .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
.pcard-foot .more .i { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.pcard:hover .pcard-foot .more .i { transform: translateX(3px); }
.pcard:focus-visible { outline-offset: 2px; }

/* ---------- 5 · Solutions ---------- */
.sol { border-top: 1px solid var(--line); }
.turnkey { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); padding-top: 28px; border-top: 2px solid var(--ink); }
.turnkey-intro { display: grid; align-content: start; justify-items: start; gap: 16px; }
.turnkey-intro .h3 { font-size: var(--fs-2xl); font-stretch: var(--wide); letter-spacing: -.015em; }
.turnkey-intro p { color: var(--ink-2); max-width: 44ch; }
.turnkey-intro .btn { margin-top: 6px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; align-self: start; }
.steps li { position: relative; counter-increment: step; display: grid; align-content: start; gap: 6px; padding: 28px 18px 8px 0; border-top: 1px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: -5px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--steel-2); transition: background .2s, border-color .2s, transform .3s var(--ease-out); }
.steps li:hover::before { background: var(--olive); border-color: var(--olive); transform: rotate(45deg); }
.step-n { font: 600 var(--fs-xs)/1 var(--display); font-stretch: var(--wide); color: var(--steel); letter-spacing: .04em; }
.step-n::before { content: counter(step, decimal-leading-zero); }
.steps b { font: 650 var(--fs-md)/1.3 var(--display); }
.steps p { font-size: var(--fs-sm); color: var(--steel); }

.services { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: var(--space-7); background: var(--line); border: 1px solid var(--line); }
.services li { display: grid; background: var(--paper); }
.services a { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 22px 22px 18px; text-decoration: none; transition: background .2s var(--ease); }
.services a:hover { background: var(--surface); }
.services b { font: 650 var(--fs-md)/1.3 var(--display); font-stretch: 104%; }
.services p { font-size: var(--fs-sm); color: var(--steel); }
.services .i { width: 18px; height: 18px; color: var(--steel); margin-top: 8px; transition: transform .2s var(--ease-out), color .2s; }
.services a:hover .i { transform: translateX(4px); color: var(--olive); }
[dir=rtl] .services .i { transform: scaleX(-1); }

/* Own store network — same ruled strip as the About page (site/pages.css owns .store-row).
   The block keeps its graphite panel here because it sits inside a light section. */
.stores { margin-top: var(--space-7); padding: 30px clamp(20px, 3vw, 36px) 26px; background: var(--graphite); border: 1px solid var(--graphite); }
.stores-title { font-size: var(--fs-xl); font-stretch: var(--wide); letter-spacing: -.015em; color: #fff; }
.stores-copy { display: grid; gap: 8px; max-width: 62ch; }
.stores-copy p { font-size: var(--fs-sm); color: #a9b1ab; }

/* ---------- 6 · NovaSoft ---------- */
.erp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.erp-copy { display: grid; justify-items: start; gap: 20px; }
.erp-logo { display: inline-flex; padding: 10px 14px; background: #f3f4f2; border-radius: var(--r); }
.erp-logo img { height: 34px; width: auto; }
.erp .h2 { color: #fff; font-stretch: var(--wide); letter-spacing: -.022em; }
.erp-lead { color: #b3bbb5; font-size: var(--fs-lg); max-width: 46ch; }
.erp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.erp-side { display: grid; gap: 24px; min-width: 0; }
.erp-caps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
.erp-caps li { display: grid; gap: 6px; align-content: start; padding: 22px 24px; background: var(--graphite); transition: background .2s var(--ease); }
.erp-caps li:hover { background: var(--graphite-2); }
.erp-caps b { display: flex; align-items: center; gap: 10px; font: 650 var(--fs-md)/1.3 var(--display); color: #fff; }
.erp-caps b::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--olive-2); }
.erp-caps p { font-size: var(--fs-sm); color: #a3aca5; padding-inline-start: 16px; }
.erp-screens { display: grid; gap: 12px; }
.erp-shot { margin: 0; display: grid; gap: 10px; }
.erp-shot-frame { display: grid; place-items: center; background: #151917; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.erp-shot-frame img { width: 100%; height: 100%; object-fit: contain; }
.erp-shot.is-mobile .erp-shot-frame img { width: auto; max-height: 100%; }
.erp-shot figcaption { font-size: var(--fs-sm); color: #a3aca5; }
.erp-shot figcaption b { color: #fff; font-weight: 600; margin-inline-end: 8px; }
.erp-thumbs { list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.erp-thumbs button { width: 96px; aspect-ratio: 16 / 10; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-sm); background: #151917; overflow: hidden; opacity: .65; transition: opacity .15s, border-color .15s; }
.erp-thumbs button:hover { opacity: 1; }
.erp-thumbs button[aria-pressed=true] { opacity: 1; border-color: var(--olive-2); }
.erp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 7 · Contact ---------- */
.contact { padding-bottom: var(--space-8); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-copy { display: grid; justify-items: start; gap: 18px; }
.contact-copy p { color: var(--ink-2); max-width: 44ch; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contact-cta .i { width: 18px; height: 18px; }
.contact-list { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); margin: 0; border-top: 2px solid var(--ink); }
.contact-list dt, .contact-list dd { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.contact-list dt { display: flex; align-items: center; gap: 10px; padding-inline-end: 24px; font-size: var(--fs-sm); color: var(--steel); }
.contact-list dt .i { width: 16px; height: 16px; color: var(--olive); }
.contact-list dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-list .big { font: 700 var(--fs-xl)/1.2 var(--display); font-stretch: var(--wide); letter-spacing: -.01em; }
.contact-list ul { list-style: none; display: grid; gap: 6px; font-weight: 500; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rail { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
}
@media (max-width: 900px) {
  .turnkey, .erp-grid, .contact-grid { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: calc((100% - var(--gap)) / 2.2); }
}
@media (max-width: 640px) {
  .section-head .head-tools { width: 100%; justify-content: space-between; }
  .steps { grid-template-columns: 1fr; row-gap: 0; border-inline-start: 1px solid var(--line-2); margin-inline-start: 4px; }
  .steps li { border-top: 0; padding: 0 0 22px 22px; }
  .steps li::before { top: 4px; inset-inline-start: -5px; }
  .services { grid-template-columns: 1fr; }
  .services li:last-child:nth-child(odd) { grid-column: auto; }
  .services a { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 18px 20px; }
  .services .i { grid-row: 1 / 3; grid-column: 2; align-self: center; margin: 0; }
  .erp-caps { grid-template-columns: 1fr; }
  .erp-caps li { padding: 18px 20px; }
  .rail { grid-auto-columns: 78%; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list dt { padding: 14px 0 2px; border-bottom: 0; }
  .contact-list dd { padding: 0 0 14px; }
  .contact-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rail { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- catalogue (index left, products right) */
.hcat { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 32px; align-items: start; }
.hcat-rail { position: sticky; top: calc(var(--header-h) + var(--util-h) + 16px); display: grid; gap: 14px; }
.hcat-rail.skel { height: 520px; }
.hcat-label { font-size: var(--fs-xs); font-weight: 650; color: var(--steel); padding: 0 12px; }
.hcat-tree { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.hcat-tree > li + li { border-top: 1px solid var(--line); }
.hcat-grow { display: flex; align-items: stretch; }
.hcat-node { flex: 1; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; background: none; text-align: start; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); transition: background .15s, color .15s; }
.hcat-node .count { margin-inline-start: auto; font-size: var(--fs-xs); font-weight: 500; color: var(--steel); }
.hcat-node:hover { background: var(--paper); }
.hcat-node[aria-current] { background: var(--olive-soft); box-shadow: inset 3px 0 0 var(--olive); }
[dir=rtl] .hcat-node[aria-current] { box-shadow: inset -3px 0 0 var(--olive); }
.hcat-toggle { width: 44px; flex: none; display: grid; place-items: center; border: 0; border-inline-start: 1px solid var(--line); background: none; color: var(--steel); }
.hcat-toggle:hover { background: var(--paper); color: var(--ink); }
.hcat-toggle .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hcat-toggle[aria-expanded=true] .i { transform: rotate(180deg); }
.hcat-cats { list-style: none; padding: 4px 0 8px; background: #fbfbfa; border-top: 1px solid var(--line); }
.hcat-cat { min-height: 40px; padding: 8px 14px 8px 16px; font-weight: 500; color: var(--ink-2); }
.hcat-ico { width: 18px; height: 18px; color: var(--steel); flex: none; }
.hcat-cat[aria-current] .hcat-ico { color: var(--olive); }
.hcat-help { display: grid; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: var(--fs-sm); }
.hcat-help p { color: var(--steel); }
.hcat-help a { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 650; text-decoration: none; }
.hcat-help .i { width: 16px; height: 16px; color: var(--olive); }
.hcat-main { min-width: 0; display: grid; gap: 16px; }
.hcat-main.in { animation: hcatIn .26s var(--ease-out); }
@keyframes hcatIn { from { opacity: 0; transform: translateY(6px); } }
.hcat-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hcat-title { font-size: var(--fs-2xl); font-stretch: var(--wide); letter-spacing: -.015em; }
.hcat-head .btn .i { width: 16px; height: 16px; }
.hcat-brands { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hcat-brands a { display: grid; place-items: center; height: 42px; min-width: 96px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.hcat-brands a:hover { border-color: var(--steel-2); }
.hcat-brands .brand-logo { max-height: 24px; max-width: 92px; }
.hcat-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hcat-cards > .skel { aspect-ratio: 3 / 4; }
.hcat-cards .pcard { height: 100%; }
@media (max-width: 1180px) { .hcat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hcat { grid-template-columns: 1fr; }
  .hcat-rail { position: static; }
  .hcat-rail .hcat-help { display: none; }
  .hcat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hcat-head { flex-wrap: wrap; align-items: start; }
}
.hcat-caret { width: 14px !important; height: 14px !important; margin-inline-start: 2px; color: var(--steel-2); transition: transform .2s var(--ease); }
.hcat-cat[aria-expanded=true] .hcat-caret { transform: rotate(180deg); color: var(--olive); }
.hcat-catli.open > .hcat-cat { background: var(--paper); }
.hcat-brandlist { list-style: none; margin: 2px 0 6px; padding-inline-start: 44px; animation: hcatIn .22s var(--ease-out); }
.hcat-brandlist .hcat-brand { min-height: 34px; padding: 6px 14px 6px 12px; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-2); border-inline-start: 1px solid var(--line); }
.hcat-brandlist .hcat-brand:hover { color: var(--ink); }
.hcat-brandlist .hcat-brand[aria-current] { color: var(--ink); font-weight: 650; box-shadow: inset 2px 0 0 var(--olive); background: var(--olive-soft); }

/* ---------------------------------------------------------------- soft catalogue index (from the «Şaxta» preview, original colours) */
:root {
  --nd-r-xl: 20px; --nd-pill: 999px;
  --nd-sh: 0 1px 2px rgba(26, 29, 27, .04), 0 6px 18px -8px rgba(26, 29, 27, .12);
  --nd-sh-2: 0 2px 4px rgba(26, 29, 27, .04), 0 18px 40px -16px rgba(26, 29, 27, .22);
}
html:not([data-theme]) .hcat-label { letter-spacing: .06em; text-transform: uppercase; color: var(--steel); padding-inline: 18px; }
html:not([data-theme]) .hcat-tree {
  border: 0; border-radius: var(--nd-r-xl); padding: 10px; background: var(--surface);
  box-shadow: var(--nd-sh); overflow: visible;
}
html:not([data-theme]) .hcat-tree > li + li { border-top: 0; }
html:not([data-theme]) .hcat-node { border-radius: var(--nd-pill); min-height: 44px; padding: 10px 16px; }
html:not([data-theme]) .hcat-node[aria-current] { background: var(--olive-soft); color: var(--olive-ink); box-shadow: none; }
html:not([data-theme]) .hcat-toggle { border-inline-start: 0; width: 40px; border-radius: var(--nd-pill); }
html:not([data-theme]) .hcat-cats {
  border-top: 0; background: transparent; padding: 2px 0 8px;
  margin-inline-start: 18px; padding-inline-start: 8px;
  border-inline-start: 1px solid var(--line);
}
html:not([data-theme]) .hcat-cat { border-radius: var(--nd-pill); padding: 8px 14px; }
html:not([data-theme]) .hcat-catli.open > .hcat-cat { background: var(--paper); }
html:not([data-theme]) .hcat-brandlist { padding-inline-start: 24px; }
html:not([data-theme]) .hcat-brandlist .hcat-brand { border-radius: var(--nd-pill); border-inline-start: 0; padding: 6px 14px; }
html:not([data-theme]) .hcat-brandlist .hcat-brand[aria-current] { background: var(--olive-soft); color: var(--olive-ink); box-shadow: none; }
html:not([data-theme]) .hcat-help { border: 0; border-radius: var(--nd-r-xl); padding: 20px; background: var(--surface); box-shadow: var(--nd-sh); }
html:not([data-theme]) .hcat-head { border-bottom-color: var(--line); }
html:not([data-theme]) .hcat-brands a { border-radius: var(--nd-pill); border-color: transparent; background: var(--surface); box-shadow: var(--nd-sh); height: 46px; }
html:not([data-theme]) .hcat-brands a:hover { border-color: transparent; box-shadow: var(--nd-sh-2); }
html:not([data-theme]) .hcat-cat .hcat-caret { margin-inline-start: auto; }
