/* =====================================================================
   Контакты v2 — макет «Шаблон 2 - Контакты» (Claude Design, NOIR).
   Всё скоупится под .nxp, чтобы не конфликтовать с mastbro (Tailwind)
   и home-v2 chrome (.btn, .wrap и т.п. там уже заняты).
   Акцент = фирменный красный сайта (var(--accent) из :root шапки).
   ===================================================================== */
.nxp {
  --nxa: var(--accent, #e73c4f);
  --nxa-d: #c22b3e;
  --nxa-tint: #fcecec;
  --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-2: #1d1b14;
  --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 { 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-light { background: #fff; color: var(--nx-ink); }
.nxp .btnx-light:hover { background: var(--nx-yellow); }
.nxp .btnx-sm { height: 46px; padding: 0 22px; font-size: 14px; }

/* tags */
.nxp .tagx { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.nxp .tagx-red { background: var(--nxa); color: #fff; }
.nxp .tagx-ink { background: var(--nx-ink); color: #fff; }

/* 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; }

/* city tabs */
.nxp .nx-city-tabs { padding: 26px 0 0; }
.nxp .nx-city-tabs .wrapx { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.nxp .nx-city-tabs .wrapx::-webkit-scrollbar { display: none; }
.nxp .nx-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; background: var(--nx-paper); box-shadow: inset 0 0 0 1.5px var(--nx-line); font-size: 14px; font-weight: 600; border-radius: 999px; white-space: nowrap; transition: all .15s; cursor: pointer; }
.nxp .nx-chip:hover, .nxp .nx-chip.on { background: var(--nx-ink); color: #fff; box-shadow: none; }

/* office */
.nxp .nx-office { display: grid; grid-template-columns: 440px 1fr; gap: 1px; background: var(--nx-line); box-shadow: 0 0 0 1px var(--nx-line); }
.nxp .nx-office-card { background: var(--nx-paper); padding: 36px; display: flex; flex-direction: column; }
.nxp .nx-office-card .role { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.nxp .nx-office-card h2 { font-family: var(--nx-display); font-size: 30px; letter-spacing: -.02em; }
.nxp .nx-office-rows { margin-top: 26px; display: flex; flex-direction: column; }
.nxp .nx-office-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--nx-line-2); align-items: flex-start; }
.nxp .nx-office-row:first-child { border-top: 0; padding-top: 0; }
.nxp .nx-office-row .i { width: 44px; height: 44px; background: var(--nxa-tint); color: var(--nxa); display: grid; place-items: center; border-radius: var(--nx-r); }
.nxp .nx-office-row .i svg { width: 20px; height: 20px; }
.nxp .nx-office-row .k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-ink-3); }
.nxp .nx-office-row .v { font-size: 16px; font-weight: 600; margin-top: 3px; line-height: 1.35; }
.nxp .nx-office-row .v a:hover { color: var(--nxa); }
.nxp .nx-office-row .v small { display: block; font-size: 12.5px; font-weight: 500; color: var(--nx-ink-3); margin-top: 2px; }
.nxp .nx-office-card .acts { margin-top: auto; padding-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

/* map */
.nxp .nx-office-map { position: relative; background: var(--nx-bg-2); min-height: 480px; overflow: hidden; }
.nxp .nx-map-frame,
.nxp .nx-map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.nxp .nx-map-frame { border: 0; background: #fff; z-index: 1; }
.nxp .nx-map-frame[hidden],
.nxp .nx-map-fallback[hidden] { display: none !important; }
.nxp .nx-map-fallback { overflow: hidden; }
.nxp .nx-office-map .map-grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--nx-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--nx-line-2) 1px, transparent 1px);
  background-size: 44px 44px; }
.nxp .nx-office-map .map-roads { position: absolute; inset: 0; opacity: .5;
  background:
    linear-gradient(115deg, transparent 47.6%, #fff 47.6%, #fff 49.2%, transparent 49.2%),
    linear-gradient(24deg, transparent 63.6%, #fff 63.6%, #fff 65.4%, transparent 65.4%),
    linear-gradient(24deg, transparent 30.6%, #fff 30.6%, #fff 32.1%, transparent 32.1%); }
.nxp .nx-map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); z-index: 2; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.nxp .nx-map-pin .bub { background: var(--nx-ink); color: #fff; padding: 12px 18px; font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: var(--nx-sh-2); border-radius: var(--nx-r); }
.nxp .nx-map-pin .bub small { display: block; font-weight: 500; font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 2px; }
.nxp .nx-map-pin .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--nxa); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(20,18,13,.35); margin-top: 8px; }
.nxp .nx-map-open { position: absolute; right: 16px; bottom: 16px; z-index: 3; }

/* channels */
.nxp .nx-channels { 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-channel { position: relative; background: var(--nx-paper); padding: 28px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; transition: background .2s; overflow: hidden; }
.nxp .nx-channel:hover { background: var(--nx-ink); color: #fff; }
.nxp .nx-channel .ic { width: 42px; height: 42px; color: var(--nxa); transition: color .2s; }
.nxp .nx-channel:hover .ic { color: var(--nx-yellow); }
.nxp .nx-channel .ic svg { width: 100%; height: 100%; }
.nxp .nx-channel h3 { font-size: 18px; letter-spacing: -.01em; }
.nxp .nx-channel .d { font-size: 12.5px; color: var(--nx-ink-3); margin-top: 4px; }
.nxp .nx-channel:hover .d { color: rgba(255,255,255,.6); }
.nxp .nx-channel .go { position: absolute; right: 22px; top: 26px; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--nx-line); display: grid; place-items: center; opacity: 0; transform: translateX(-6px); transition: all .2s; }
.nxp .nx-channel:hover .go { opacity: 1; transform: translateX(0); box-shadow: inset 0 0 0 1.5px var(--nx-yellow); color: var(--nx-yellow); }
.nxp .nx-channel .go svg { width: 15px; height: 15px; }

/* showroom */
.nxp .nx-showroom { background: var(--nx-dark); color: #fff; overflow: hidden; }
.nxp .nx-showroom .wrapx { display: grid; grid-template-columns: 1fr .9fr; gap: 56px; align-items: center; }
.nxp .nx-showroom .lead { margin: 22px 0 0; font-size: 16px; color: rgba(255,255,255,.66); max-width: 520px; line-height: 1.65; }
.nxp .nx-showroom .perks { margin-top: 30px; display: flex; flex-direction: column; }
.nxp .nx-showroom .perk { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--nx-dark-line); font-size: 14.5px; align-items: start; }
.nxp .nx-showroom .perk svg { width: 22px; height: 22px; color: var(--nx-yellow); margin-top: 1px; }
.nxp .nx-showroom .perk b { color: #fff; }
.nxp .nx-showroom .perk span { color: rgba(255,255,255,.66); }
.nxp .nx-showroom .cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.nxp .nx-showroom-media { position: relative; }
.nxp .nx-showroom-media .frame { position: relative; aspect-ratio: 4/3; background: var(--nx-dark-2); overflow: hidden; border-radius: var(--nx-r); display: grid; place-items: center; }
.nxp .nx-showroom-media .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nxp .nx-showroom-media .frame .ph { color: rgba(255,255,255,.25); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nxp .nx-showroom-media .chip { position: absolute; left: -22px; bottom: 30px; z-index: 2; background: var(--nx-yellow); color: var(--nx-ink); padding: 16px 20px; max-width: 230px; border-radius: var(--nx-r); }
.nxp .nx-showroom-media .chip b { font-family: var(--nx-display); display: block; font-size: 15px; }
.nxp .nx-showroom-media .chip span { font-size: 12.5px; }

/* form + requisites */
.nxp .nx-cform-grid { display: grid; grid-template-columns: 1fr 400px; gap: 1px; background: var(--nx-line); box-shadow: 0 0 0 1px var(--nx-line); align-items: stretch; }
.nxp .nx-cform { background: var(--nx-paper); padding: 40px; }
.nxp .nx-cform p.sub { margin: 12px 0 28px; color: var(--nx-ink-2); font-size: 15px; max-width: 480px; }
.nxp .nx-cform .frows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nxp .nx-cform .frows .full { grid-column: 1 / -1; }
.nxp .nx-cform label { display: block; }
.nxp .nx-cform label span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-ink-3); margin-bottom: 8px; }
.nxp .nx-cform input, .nxp .nx-cform textarea { width: 100%; border: 0; background: var(--nx-bg); box-shadow: inset 0 0 0 1.5px transparent; border-radius: var(--nx-r); padding: 14px 16px; font-size: 15px; font-family: inherit; color: inherit; transition: box-shadow .15s; }
.nxp .nx-cform input { height: 52px; padding: 0 16px; }
.nxp .nx-cform textarea { min-height: 110px; resize: vertical; }
.nxp .nx-cform input:focus, .nxp .nx-cform textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--nxa); background: var(--nx-paper); }
.nxp .nx-cform .foot { margin-top: 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nxp .nx-cform .agree { font-size: 12.5px; color: var(--nx-ink-3); max-width: 320px; }
.nxp .nx-cform .agree a { text-decoration: underline; }
.nxp .nx-cform .err { margin-top: 12px; font-size: 13px; color: var(--nxa); display: none; }
.nxp .nx-req { background: var(--nx-ink); color: #fff; padding: 40px; display: flex; flex-direction: column; }
.nxp .nx-req h3 { font-family: var(--nx-display); font-size: 20px; color: var(--nx-yellow); margin-bottom: 22px; }
.nxp .nx-req dl { margin: 0; }
.nxp .nx-req dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); padding-top: 16px; border-top: 1px solid var(--nx-dark-line); }
.nxp .nx-req dl > div:first-child dt { padding-top: 0; border-top: 0; }
.nxp .nx-req dd { margin: 4px 0 16px; font-size: 14.5px; font-weight: 600; }
.nxp .nx-req .note { margin-top: auto; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* honeypot: скрыто от людей, «видимо» для ботов */
.nxp .hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* toast */
.nxp-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 900; background: #14120d; color: #fff; padding: 14px 22px; border-radius: 6px; font-size: 14px; font-weight: 600; box-shadow: 0 18px 50px -18px rgba(20,18,13,.4); opacity: 0; pointer-events: none; transition: all .3s ease; }
.nxp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1100px) {
  .nxp .nx-office { grid-template-columns: 1fr; }
  .nxp .nx-office-map { min-height: 380px; }
  .nxp .nx-cform-grid { grid-template-columns: 1fr; }
}
@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-showroom .wrapx { grid-template-columns: 1fr; gap: 36px; }
  .nxp .nx-showroom-media .chip { left: 16px; }
}
@media (max-width: 640px) {
  .nxp .wrapx { padding: 0 18px; }
  .nxp .sectx { padding: 44px 0; }
  .nxp .sectx-sm { padding: 32px 0; }
  .nxp .nx-cform .frows { grid-template-columns: 1fr; }
  .nxp .nx-office-card, .nxp .nx-cform, .nxp .nx-req { padding: 26px; }
  .nxp .nx-cat-hero .ghost { font-size: 130px; }
}
