/* =====================================================================
   Услуги v2 — макет «Шаблон 2 - Услуги» (Claude Design, NOIR).
   Самодостаточный: базовые NOIR-хелперы (как в contacts-v2.css) +
   спец-блоки услуг. Всё под .nxp, чтобы не конфликтовать с mastbro
   (Tailwind) и home-v2 chrome. Акцент = фирменный красный (--accent).
   ===================================================================== */
.nxp {
  --nxa: var(--accent, #e73c4f);
  --nxa-d: #c22b3e;
  --nx-yellow: #ffce26;
  --nx-ink: #14120d;
  --nx-ink-2: #4a463d;
  --nx-ink-3: #7d7869;
  --nx-ink-4: #a8a294;
  --nx-paper: #ffffff;
  --nx-bg: #f6f3ec;
  --nx-bg-2: #efeae0;
  --nx-line: rgba(20,18,13,.13);
  --nx-line-2: rgba(20,18,13,.07);
  --nx-dark: #14120d;
  --nx-dark-line: rgba(255,255,255,.12);
  --nx-display: 'Unbounded', 'Onest', sans-serif;
  --nx-r: 6px;
  --nx-sh-2: 0 18px 50px -18px rgba(20,18,13,.26);
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--nx-ink);
  background: var(--nx-bg);
  line-height: 1.45;
}
.nxp *, .nxp *::before, .nxp *::after { box-sizing: border-box; }
.nxp h1, .nxp h2, .nxp h3, .nxp h4 { margin: 0; font-weight: 700; }
.nxp p { margin: 0; }
.nxp a { color: inherit; text-decoration: none; }
.nxp svg { display: block; }

.nxp .wrapx { max-width: 1340px; margin: 0 auto; padding: 0 32px; }
.nxp .sectx { padding: 64px 0; }
.nxp .sectx-sm { padding: 44px 0; }

/* type helpers */
.nxp .kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--nxa); }
.nxp .kicker::before { content: ''; width: 28px; height: 2px; background: var(--nxa); }
.nxp .kicker.on-dark { color: var(--nx-yellow); }
.nxp .kicker.on-dark::before { background: var(--nx-yellow); }
.nxp .h-lg { font-family: var(--nx-display); font-weight: 700; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; line-height: 1.05; }
.nxp .h-md { font-family: var(--nx-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; }

/* buttons */
.nxp .btnx { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border: 0; cursor: pointer; border-radius: var(--nx-r); font-size: 15px; font-weight: 700; letter-spacing: .01em; transition: all .18s ease; white-space: nowrap; font-family: inherit; }
.nxp .btnx svg { width: 18px; height: 18px; }
.nxp .btnx-red { background: var(--nxa); color: #fff; }
.nxp .btnx-red:hover { background: var(--nxa-d); transform: translateY(-2px); box-shadow: var(--nx-sh-2); }
.nxp .btnx-out { background: transparent; box-shadow: inset 0 0 0 1.6px var(--nx-ink); color: var(--nx-ink); }
.nxp .btnx-out:hover { background: var(--nx-ink); color: #fff; }
.nxp .btnx-out-light { background: transparent; box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.3); color: #fff; }
.nxp .btnx-out-light:hover { background: #fff; color: var(--nx-ink); }
.nxp .btnx-light { background: #fff; color: var(--nx-ink); }
.nxp .btnx-light:hover { background: var(--nx-yellow); }
.nxp .btnx-ink { background: var(--nx-ink); color: #fff; }
.nxp .btnx-ink:hover { transform: translateY(-2px); box-shadow: var(--nx-sh-2); }

/* crumbs */
.nxp .nx-crumbs { padding: 18px 0; font-size: 13px; color: var(--nx-ink-3); }
.nxp .nx-crumbs a:hover { color: var(--nxa); }
.nxp .nx-crumbs .sep { margin: 0 8px; color: var(--nx-ink-4); }

/* hero */
.nxp .nx-cat-hero { background: var(--nx-dark); color: #fff; padding: 48px 0 52px; position: relative; overflow: hidden; }
.nxp .nx-cat-hero .wrapx { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.nxp .nx-cat-hero h1 { margin: 14px 0 0; }
.nxp .nx-cat-hero .sub { margin: 16px 0 0; color: rgba(255,255,255,.6); font-size: 16px; max-width: 560px; }
.nxp .nx-cat-hero .mini { display: flex; gap: 30px; }
.nxp .nx-cat-hero .mini .n { font-family: var(--nx-display); font-size: 26px; font-weight: 700; color: var(--nx-yellow); }
.nxp .nx-cat-hero .mini .l { font-size: 12px; color: rgba(255,255,255,.5); }
.nxp .nx-cat-hero .ghost { position: absolute; right: -40px; bottom: -60px; font-family: var(--nx-display); font-weight: 800; font-size: 220px; color: rgba(255,255,255,.03); z-index: 0; line-height: 1; user-select: none; }

/* section head */
.nxp .sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.nxp .sect-head .sh-l { max-width: 720px; }
.nxp .sect-head p { margin: 14px 0 0; color: var(--nx-ink-2); font-size: 16px; max-width: 560px; }
.nxp .sect-head .h-md { margin-top: 12px; }

/* ── process (steps) ── */
.nxp .nx-svc-process { display: flex; flex-direction: column; }
.nxp .nx-svc-step-row { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--nx-line-2); }
.nxp .nx-svc-step-row:first-child { border-top: 0; padding-top: 0; }
.nxp .nx-svc-step-row .num { font-family: var(--nx-display); font-weight: 800; font-size: 22px; color: var(--nxa); }
.nxp .nx-svc-step-row h4 { font-size: 18px; margin-bottom: 6px; }
.nxp .nx-svc-step-row p { color: var(--nx-ink-2); font-size: 14.5px; line-height: 1.6; max-width: 620px; }

/* ── core service cards ── */
.nxp .nx-svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--nx-line); box-shadow: 0 0 0 1px var(--nx-line); }
.nxp .nx-svc-card { position: relative; background: var(--nx-paper); padding: 30px 28px; min-height: 260px; display: flex; flex-direction: column; transition: background .2s; overflow: hidden; }
.nxp a.nx-svc-card:hover { background: var(--nx-ink); color: #fff; }
.nxp .nx-svc-card .ic { width: 46px; height: 46px; color: var(--nxa); transition: color .2s; }
.nxp a.nx-svc-card:hover .ic { color: var(--nx-yellow); }
.nxp .nx-svc-card .ic svg { width: 100%; height: 100%; }
.nxp .nx-svc-card h3 { font-size: 19px; letter-spacing: -.01em; margin-top: 18px; }
.nxp .nx-svc-card p { font-size: 13.5px; color: var(--nx-ink-3); margin-top: 10px; line-height: 1.55; }
.nxp a.nx-svc-card:hover p { color: rgba(255,255,255,.66); }
.nxp .nx-svc-card .go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: all .2s; }
.nxp a.nx-svc-card:hover .go { opacity: 1; transform: translateX(0); color: var(--nx-yellow); }
.nxp .nx-svc-card .go svg { width: 14px; height: 14px; }

/* ── trade-in offer band ── */
.nxp .nx-svc-offer { position: relative; background: var(--nxa); color: #fff; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; overflow: hidden; border-radius: var(--nx-r); }
.nxp .nx-svc-offer .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.nxp .nx-svc-offer h3 { font-family: var(--nx-display); font-size: clamp(24px, 3vw, 34px); margin: 14px 0 12px; max-width: 620px; position: relative; z-index: 1; }
.nxp .nx-svc-offer p { font-size: 15px; max-width: 560px; color: rgba(255,255,255,.9); line-height: 1.6; position: relative; z-index: 1; }
.nxp .nx-svc-offer p b { color: var(--nx-yellow); }
.nxp .nx-svc-offer .big { position: absolute; right: 26px; top: 14px; font-family: var(--nx-display); font-weight: 800; font-size: 100px; opacity: .12; line-height: 1; user-select: none; }
.nxp .nx-svc-offer .acts { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }

/* ── CTA band ── */
.nxp .nx-svc-cta { background: var(--nx-dark); color: #fff; }
.nxp .nx-svc-cta .wrapx { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.nxp .nx-svc-cta .lead { margin: 14px 0 0; color: rgba(255,255,255,.66); font-size: 15.5px; max-width: 520px; }
.nxp .nx-svc-cta .acts { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nxp .nx-cat-hero .wrapx { grid-template-columns: 1fr; align-items: start; }
  .nxp .nx-cat-hero .mini { gap: 20px; }
  .nxp .nx-svc-offer { grid-template-columns: 1fr; }
  .nxp .nx-svc-offer .acts { flex-direction: row; flex-wrap: wrap; }
  .nxp .nx-svc-cta .wrapx { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nxp .wrapx { padding: 0 18px; }
  .nxp .sectx { padding: 44px 0; }
  .nxp .sectx-sm { padding: 32px 0; }
  .nxp .nx-svc-offer { padding: 30px; }
  .nxp .nx-cat-hero .ghost { font-size: 130px; }
}
