/* ============================================================
   KANASA — pages.css
   Shared chrome + components for inner pages
   (category, product detail, about, contact).
   Pairs with theme.css. Neutral, content-forward system that
   harmonizes with any of the three homepage directions.
   ============================================================ */

/* ---------- header ---------- */
.shdr { position: sticky; top: 0; z-index: 50; background: rgba(8,9,11,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); transition: border-color .2s; }
.shdr.is-scrolled { border-bottom-color: var(--line); }
.shdr__bar { display: flex; align-items: center; gap: 26px; height: 70px; }
.sbrand { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .04em;
  text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.sbrand .mk { width: 9px; height: 9px; background: var(--primary-color); }
.sbrand b { color: var(--primary-color); }
.snav { display: flex; gap: 2px; margin-left: auto; }
.snav a { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); padding: 8px 13px; transition: color .15s; }
.snav a:hover, .snav a[aria-current="page"] { color: var(--text); }
.snav a[aria-current="page"] { color: var(--primary-color); }
.stools { display: flex; align-items: center; gap: 14px; }
.stools .lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stools .lang button { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; padding: 7px 10px;
  background: transparent; color: var(--text-dim); }
.stools .lang button[aria-pressed="true"] { background: var(--primary-color); color: #fff; }
.squote { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 13.5px;
  letter-spacing: .04em; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.squote:hover { border-color: var(--primary-color); color: #fff; }

/* ---------- breadcrumb ---------- */
.crumb { border-bottom: 1px solid var(--line-soft); }
.crumb__in { display: flex; align-items: center; gap: 10px; padding-block: 16px; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); flex-wrap: wrap; }
.crumb__in a { color: var(--text-muted); }
.crumb__in a:hover { color: var(--primary-color); }
.crumb__in .sep { color: var(--line); }
.crumb__in .cur { color: var(--text); }

/* ---------- page hero ---------- */
.phero { padding: clamp(40px,6vw,80px) 0 clamp(28px,3vw,40px); border-bottom: 1px solid var(--line-soft); }
.phero h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px,5.4vw,72px); line-height: .96; letter-spacing: -.01em; margin: 16px 0 0; }
.phero h1 em { font-style: normal; color: var(--primary-color); }
.phero p { color: var(--text-muted); max-width: 56ch; margin-top: 18px; font-size: clamp(15px,1.4vw,18px); }

/* ---------- generic section ---------- */
.psec { padding-block: clamp(48px,7vw,96px); }

/* ---------- product grid (shared with catalog look) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-900);
  transition: border-color .2s, transform .2s; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--primary-color); transform: translateY(-3px); }
.pcard__img { aspect-ratio: 4/3; }
.pcard__b { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pcard__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-dim); }
.pcard__t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 21px; line-height: 1.05; }
.pcard__d { font-size: 14px; color: var(--text-muted); }
.pcard__meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex;
  justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; color: var(--text-dim); text-transform: uppercase; }
.pcard__meta svg { width: 16px; height: 16px; color: var(--primary-color); transition: transform .2s; }
.pcard:hover .pcard__meta svg { transform: translateX(4px); }

/* ---------- filter bar ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 40px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.filters__lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin-right: 6px; }
.chip { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: 13.5px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text-muted); transition: all .15s; }
.chip:hover { border-color: var(--text-muted); color: var(--text); }
.chip.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.results-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: .06em; }

/* ---------- spec table ---------- */
.spectable { width: 100%; border-collapse: collapse; }
.spectable caption { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary-color); padding-bottom: 14px; }
.spectable tr { border-top: 1px solid var(--line-soft); }
.spectable tr:last-child { border-bottom: 1px solid var(--line-soft); }
.spectable th { text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); padding: 14px 0; width: 48%; vertical-align: top; }
.spectable td { font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 14px 0; text-align: right; }
.spectable td b { color: var(--primary-color); }

/* ---------- footer ---------- */
.sft { border-top: 1px solid var(--line); padding: clamp(48px,6vw,80px) 0 30px; background: var(--bg-900); }
.sft__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 42px; border-bottom: 1px solid var(--line-soft); }
.sft h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 15px; }
.sft li { margin-bottom: 9px; } .sft a { color: var(--text-muted); font-size: 14.5px; } .sft a:hover { color: var(--primary-color); }
.sft__about { max-width: 34ch; color: var(--text-muted); font-size: 14.5px; margin-top: 14px; }
.sft__bot { display: flex; justify-content: space-between; padding-top: 22px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; color: var(--text-dim); flex-wrap: wrap; gap: 12px; }

.has-js [data-reveal]{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease;}
.has-js [data-reveal].is-in{opacity:1;transform:none;}
@media (prefers-reduced-motion: reduce){ .has-js [data-reveal]{opacity:1;transform:none;transition:none;} }

/* ---------- news / article cards ---------- */
.news-feat { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px,4vw,48px); align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-900); }
.news-feat__media { position: relative; aspect-ratio: 16/11; min-height: 100%; }
.news-feat__media .kx-ph { position: absolute; inset: 0; border: 0; }
.news-feat__body { padding: clamp(24px,3vw,44px); }
.news-feat__body h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px,3vw,40px); line-height: 1.02; margin: 14px 0 14px; }
.news-feat__body p { color: var(--text-muted); margin-bottom: 22px; max-width: 50ch; }
.news-meta { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.news-meta .cat { color: var(--primary-color); }
.news-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.acard { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-900); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.acard:hover { border-color: var(--primary-color); transform: translateY(-3px); }
.acard__img { aspect-ratio: 16/10; position: relative; }
.acard__b { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.acard__t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 1.08; }
.acard__d { font-size: 14px; color: var(--text-muted); }
.acard__go { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; }
.acard__go svg { width: 15px; height: 15px; color: var(--primary-color); transition: transform .2s; }
.acard:hover .acard__go svg { transform: translateX(4px); }

/* ---------- article prose ---------- */
.prose { max-width: 70ch; margin-inline: auto; }
.prose > * + * { margin-top: 22px; }
.prose p { color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.prose h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px,2.6vw,30px); line-height: 1.1; margin-top: 44px; color: var(--text); }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-top: 32px; color: var(--text); }
.prose ul { display: grid; gap: 12px; padding-left: 0; }
.prose ul li { color: var(--text-muted); font-size: 16.5px; padding-left: 24px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; background: var(--primary-color); }
.prose blockquote { border-left: 2px solid var(--primary-color); padding: 6px 0 6px 24px; margin-left: 0; }
.prose blockquote p { color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: clamp(20px,2.4vw,28px); line-height: 1.3; }
.prose figure { margin: 0; }
.prose figure .kx-ph { aspect-ratio: 16/9; border-radius: 6px; }
.prose figure figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-dim); margin-top: 10px; text-align: center; }
.prose a.inl { color: var(--primary-color); }

/* ---------- error pages (404 / 403 / 500 / 503) ---------- */
.err { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: clamp(44px,8vw,104px) 0; position: relative; overflow: hidden; }
.err::before { /* faint studio grid backdrop */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 76px,
    radial-gradient(60% 60% at 50% 30%, rgba(255,59,48,.10), transparent 60%);
  mask-image: radial-gradient(80% 80% at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 45%, #000 30%, transparent 80%);
}
.err__in { position: relative; z-index: 2; max-width: 60ch; }
.err__sig { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; margin-bottom: 30px; }
.err__sig .led { width: 9px; height: 9px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 0 0 rgba(255,59,48,.6); animation: errpulse 1.8s ease-out infinite; }
@keyframes errpulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
@media (prefers-reduced-motion: reduce){ .err__sig .led { animation: none; } }
.err__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(110px,24vw,280px); line-height: .82; letter-spacing: -.02em; text-transform: uppercase; }
.err__code em { font-style: normal; color: var(--primary-color); }
.err__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px,3.4vw,44px); line-height: 1; margin: 18px 0 16px; }
.err__msg { color: var(--text-muted); font-size: clamp(15px,1.5vw,18px); margin: 0 auto 32px; max-width: 46ch; }
.err__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.err__links { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: inline-flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.err__links a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; }
.err__links a:hover { color: var(--primary-color); }
.err__links a svg { width: 13px; height: 13px; color: var(--primary-color); }

/* ---------- services ---------- */
.sv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sv-card { background: var(--bg-900); padding: clamp(26px,3vw,40px); display: flex; flex-direction: column; gap: 12px; transition: background .2s; }
.sv-card:hover { background: var(--bg-800); }
.sv-card__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-dim); }
.sv-card svg.ic { width: 32px; height: 32px; color: var(--primary-color); margin-bottom: 6px; }
.sv-card h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 21px; line-height: 1.05; }
.sv-card p { color: var(--text-muted); font-size: 14.5px; }
.sv-card ul { display: grid; gap: 7px; margin-top: 4px; }
.sv-card ul li { color: var(--text-muted); font-size: 13.5px; padding-left: 18px; position: relative; }
.sv-card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--primary-color); }

/* process steps */
.sv-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sv-step { padding: clamp(24px,2.6vw,34px); border-right: 1px solid var(--line); position: relative; }
.sv-step:last-child { border-right: 0; }
.sv-step .num { font-family: var(--font-mono); font-size: 12px; color: var(--primary-color); letter-spacing: .1em; }
.sv-step h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 17px; margin: 14px 0 8px; }
.sv-step p { color: var(--text-muted); font-size: 13.5px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; }
.faq-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-color); margin: 38px 0 8px; }
.faq-cat:first-child { margin-top: 0; }
.acc { border-bottom: 1px solid var(--line-soft); }
.acc:first-of-type { border-top: 1px solid var(--line-soft); }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; background: transparent; border: 0; text-align: left; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(16px,1.8vw,20px); color: var(--text); letter-spacing: .01em; }
.acc__q:hover { color: var(--primary-color); }
.acc__ic { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: background .2s, border-color .2s; }
.acc.is-open .acc__ic { background: var(--primary-color); border-color: var(--primary-color); }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; background: currentColor; transition: transform .25s, opacity .2s; }
.acc__ic::before { width: 13px; height: 2px; } .acc__ic::after { width: 2px; height: 13px; }
.acc.is-open .acc__ic { color: #fff; }
.acc.is-open .acc__ic::after { transform: rotate(90deg); opacity: 0; }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc__a p { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; padding: 0 4px 24px; max-width: 70ch; }

@media (max-width: 900px){ .sv-grid { grid-template-columns: 1fr 1fr; } .sv-steps { grid-template-columns: 1fr 1fr; } .sv-step { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 600px){ .sv-grid { grid-template-columns: 1fr; } .sv-steps { grid-template-columns: 1fr; } }

@media (max-width: 980px){
  .snav { display: none; }
  .pgrid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px){
  .pgrid { grid-template-columns: 1fr; }
  .sft__top { grid-template-columns: 1fr 1fr; }
  .squote { display: none; }
}
